Skip to content

Commit 13b61e9

Browse files
committed
react-app: Define custom vote options enum for gql
refs oursky#128
1 parent de160b3 commit 13b61e9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

react-app/codegen.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ generates:
66
config:
77
enumValues:
88
ProposalStatus: ../models/cosmos/gov#ProposalStatus
9+
ProposalVoteOption: ../models/cosmos/gov#VoteOption
910
plugins:
1011
- "typescript"
1112
- "typescript-operations"

react-app/src/models/cosmos/gov.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ export enum ProposalStatus {
2323
Invalid = "PROPOSAL_STATUS_INVALID",
2424
}
2525

26+
export enum VoteOption {
27+
Abstain = "VOTE_OPTION_ABSTAIN",
28+
No = "VOTE_OPTION_NO",
29+
NoWithVeto = "VOTE_OPTION_NO_WITH_VETO",
30+
Yes = "VOTE_OPTION_YES",
31+
}
32+
2633
export enum ProposalType {
2734
Signaling = "Signaling",
2835
ParameterChange = "ParameterChange",

0 commit comments

Comments
 (0)