Skip to content

Commit

Permalink
react-app: Define custom vote options enum for gql
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico committed Jun 30, 2022
1 parent 3793c96 commit 81499d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions react-app/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ generates:
config:
enumValues:
ProposalStatus: ../models/cosmos/gov#ProposalStatus
ProposalVoteOption: ../models/cosmos/gov#VoteOption
plugins:
- "typescript"
- "typescript-operations"
Expand Down
7 changes: 7 additions & 0 deletions react-app/src/models/cosmos/gov.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ export enum ProposalStatus {
Invalid = "PROPOSAL_STATUS_INVALID",
}

export enum VoteOption {
Abstain = "VOTE_OPTION_ABSTAIN",
No = "VOTE_OPTION_NO",
NoWithVeto = "VOTE_OPTION_NO_WITH_VETO",
Yes = "VOTE_OPTION_YES",
}

export enum ProposalType {
Signaling = "Signaling",
ParameterChange = "ParameterChange",
Expand Down

0 comments on commit 81499d4

Please sign in to comment.