terra_sdk.core.gov.msgs
Gov module message types.
MsgSubmitProposal Objects
_2@attr.s_2class MsgSubmitProposal(Msg)
Submit the attached proposal with an initial deposit.
Arguments:
contentContent - type of proposalinitial_depositCoins - initial deposit for proposal made by proposerproposerAccAddress - proposal submitter
MsgDeposit Objects
_2@attr.s_2class MsgDeposit(Msg)
Deposit funds for an active deposit-stage proposal.
Arguments:
proposal_idint - proposal number to deposit fordepositorAccAddress - account making depositamountCoins - amount to deposit
MsgVote Objects
_2@attr.s_2class MsgVote(Msg)
Vote for an active voting-stage proposal.
Arguments:
proposal_idint - proposal to vote forvoterAccAddress - account casting voteoptionVoteOption - vote option (must be one of: :data:MsgVote.ABSTAIN, :data:MsgVote.YES, :data:MsgVote.NO, or :data:MsgVote.NO_WITH_VETO),
EMPTY
Encodes an empty vote option.
option
_12def _check_option(self, attribute, value):_12 possible_options = [_12 self.EMPTY,_12 self.YES,_12 self.ABSTAIN,_12 self.NO,_12 self.NO_WITH_VETO,_12 ]_12 if value not in possible_options:_12 raise TypeError(_12 f"incorrect value for option: {value}, must be one of: {possible_options}";_12 )