# Governance

# Submit a Proposal

jigu.core.msg.MsgSubmitProposal

Submit a proposal alongside an initial deposit. Learn about the different proposal types here.

# example content
from jigu.core.proposal import TextProposal
from jigu.core.msg import MsgSubmitProposal

MsgSubmitProposal(
    content=TextProposal(
        title="test proposal",
        description="do nothing."
    ),
    initial_deposit=Coins(uluna=1000000),
    proposer="terra..."
)
Attribute Type Description
content Type[Content] proposal content to submit
initial_deposit Coins deposit provided
proposer AccAddress proposer's account address

# Add a Deposit for a Proposal

jigu.core.msg.MsgDeposit
from jigu.core.msg import MsgDeposit

MsgDeposit(
    proposal_id=5,
    depositor="terra...",
    amount=Coins(uluna=1000000)
)
Attribute Type Description
proposal_id int ID of proposal to deposit to
depositor AccAddress depositor's account address
amount Coins amount to deposit

# Vote for a Proposal

jigu.core.msg.MsgVote
from jigu.core.msg import MsgVote

MsgVote(
    proposal_id=5,
    voter="terra...",
    option=MsgVote.NO_WITH_VETO
)
Attribute Type Description
proposal_id int ID of proposal to vote on
voter AccAddress voter's account address
option str one of voting options

# Voting Options

Constants Value Description
MsgVote.EMPTY "Empty" -
MsgVote.YES "Yes" Yes
MsgVote.ABSTAIN "Abstain" Do not vote
MsgVote.NO "No" No
MsgVote.NO_WITH_VETO "NoWithVeto" No with the option to veto if it passes
Updated on: 3/12/2020, 5:03:55 AM