Msg

Vote allows a voter to vote on a proposal.

post/cosmos.group.v1.Msg/Vote

Request body

exec'EXEC_UNSPECIFIED' | 'EXEC_TRY'

Exec defines modes of execution of a proposal on creation or on new vote.

  • EXEC_UNSPECIFIED: An empty value means that there should be a separate MsgExec request for the proposal to execute.
  • EXEC_TRY: Try to execute the proposal immediately. If the proposal is not allowed per the DecisionPolicy, the proposal will still be open and could be executed at a later point.
metadatastring

metadata is any arbitrary metadata attached to the vote.

option'VOTE_OPTION_UNSPECIFIED' | 'VOTE_OPTION_YES' | 'VOTE_OPTION_ABSTAIN' | 'VOTE_OPTION_NO' | 'VOTE_OPTION_NO_WITH_VETO'

VoteOption enumerates the valid vote options for a given proposal.

  • VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will return an error.
  • VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option.
  • VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option.
  • VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option.
  • VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
proposal_idstring uint64

proposal is the unique ID of the proposal.

voterstring

voter is the voter account address.

Response

A successful response.

CosmosGroupV1MsgVoteResponse required

MsgVoteResponse is the Msg/Vote response type.

Changes