Get desktop application:
View/edit binary Protocol Buffers messages
Msg defines the gov Msg service.
SubmitProposal defines a method to create new proposal given the messages.
MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary proposal Content.
messages are the arbitrary messages to be executed if proposal passes.
initial_deposit is the deposit value that must be paid at proposal submission.
proposer is the account address of the proposer.
metadata is any arbitrary metadata attached to the proposal.
title is the title of the proposal. Since: cosmos-sdk 0.47
summary is the summary of the proposal Since: cosmos-sdk 0.47
MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
proposal_id defines the unique id of the proposal.
ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal to execute a legacy content-based proposal.
MsgExecLegacyContent is used to wrap the legacy content field into a message. This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
content is the proposal's content.
authority must be the gov module address.
MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type.
(message has no fields)
Vote defines a method to add a vote on a specific proposal.
MsgVote defines a message to cast a vote.
proposal_id defines the unique id of the proposal.
voter is the voter address for the proposal.
option defines the vote option.
metadata is any arbitrary metadata attached to the Vote.
MsgVoteResponse defines the Msg/Vote response type.
(message has no fields)
VoteWeighted defines a method to add a weighted vote on a specific proposal.
MsgVoteWeighted defines a message to cast a vote.
proposal_id defines the unique id of the proposal.
voter is the voter address for the proposal.
options defines the weighted vote options.
metadata is any arbitrary metadata attached to the VoteWeighted.
MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
(message has no fields)
Deposit defines a method to add deposit on a specific proposal.
MsgDeposit defines a message to submit a deposit to an existing proposal.
proposal_id defines the unique id of the proposal.
depositor defines the deposit addresses from the proposals.
amount to be deposited by depositor.
MsgDepositResponse defines the Msg/Deposit response type.
(message has no fields)
UpdateParams defines a governance operation for updating the x/gov module parameters. The authority is defined in the keeper. Since: cosmos-sdk 0.47
MsgUpdateParams is the Msg/UpdateParams request type. Since: cosmos-sdk 0.47
authority is the address that controls the module (defaults to x/gov unless overwritten).
params defines the x/gov parameters to update. NOTE: All parameters must be supplied.
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message. Since: cosmos-sdk 0.47
(message has no fields)
Query defines the gRPC querier service for gov module
Proposal queries proposal details based on ProposalID.
QueryProposalRequest is the request type for the Query/Proposal RPC method.
proposal_id defines the unique id of the proposal.
QueryProposalResponse is the response type for the Query/Proposal RPC method.
proposal is the requested governance proposal.
Proposals queries all proposals based on given status.
QueryProposalsRequest is the request type for the Query/Proposals RPC method.
proposal_status defines the status of the proposals.
voter defines the voter address for the proposals.
depositor defines the deposit addresses from the proposals.
pagination defines an optional pagination for the request.
QueryProposalsResponse is the response type for the Query/Proposals RPC method.
proposals defines all the requested governance proposals.
pagination defines the pagination in the response.
Vote queries voted information based on proposalID, voterAddr.
QueryVoteRequest is the request type for the Query/Vote RPC method.
proposal_id defines the unique id of the proposal.
voter defines the voter address for the proposals.
QueryVoteResponse is the response type for the Query/Vote RPC method.
vote defines the queried vote.
Votes queries votes of a given proposal.
QueryVotesRequest is the request type for the Query/Votes RPC method.
proposal_id defines the unique id of the proposal.
pagination defines an optional pagination for the request.
QueryVotesResponse is the response type for the Query/Votes RPC method.
votes defines the queried votes.
pagination defines the pagination in the response.
Params queries all parameters of the gov module.
QueryParamsRequest is the request type for the Query/Params RPC method.
params_type defines which parameters to query for, can be one of "voting", "tallying" or "deposit".
QueryParamsResponse is the response type for the Query/Params RPC method.
Deprecated: Prefer to use `params` instead. voting_params defines the parameters related to voting.
Deprecated: Prefer to use `params` instead. deposit_params defines the parameters related to deposit.
Deprecated: Prefer to use `params` instead. tally_params defines the parameters related to tally.
params defines all the paramaters of x/gov module. Since: cosmos-sdk 0.47
Deposit queries single deposit information based proposalID, depositAddr.
QueryDepositRequest is the request type for the Query/Deposit RPC method.
proposal_id defines the unique id of the proposal.
depositor defines the deposit addresses from the proposals.
QueryDepositResponse is the response type for the Query/Deposit RPC method.
deposit defines the requested deposit.
Deposits queries all deposits of a single proposal.
QueryDepositsRequest is the request type for the Query/Deposits RPC method.
proposal_id defines the unique id of the proposal.
pagination defines an optional pagination for the request.
QueryDepositsResponse is the response type for the Query/Deposits RPC method.
deposits defines the requested deposits.
pagination defines the pagination in the response.
TallyResult queries the tally of a proposal vote.
QueryTallyResultRequest is the request type for the Query/Tally RPC method.
proposal_id defines the unique id of the proposal.
QueryTallyResultResponse is the response type for the Query/Tally RPC method.
tally defines the requested tally.
Deposit defines an amount deposited by an account address to an active proposal.
Used in:
, ,proposal_id defines the unique id of the proposal.
depositor defines the deposit addresses from the proposals.
amount to be deposited by depositor.
DepositParams defines the params for deposits on governance proposals.
Used in:
,Minimum deposit for a proposal to enter voting period.
Maximum period for Atom holders to deposit on a proposal. Initial value: 2 months.
GenesisState defines the gov module's genesis state.
starting_proposal_id is the ID of the starting proposal.
deposits defines all the deposits present at genesis.
votes defines all the votes present at genesis.
proposals defines all the proposals present at genesis.
Deprecated: Prefer to use `params` instead. deposit_params defines all the paramaters of related to deposit.
Deprecated: Prefer to use `params` instead. voting_params defines all the paramaters of related to voting.
Deprecated: Prefer to use `params` instead. tally_params defines all the paramaters of related to tally.
params defines all the paramaters of x/gov module. Since: cosmos-sdk 0.47
Params defines the parameters for the x/gov module. Since: cosmos-sdk 0.47
Used in:
, ,Minimum deposit for a proposal to enter voting period.
Maximum period for Atom holders to deposit on a proposal. Initial value: 2 months.
Duration of the voting period.
Minimum percentage of total stake needed to vote for a result to be considered valid.
Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
Minimum value of Veto votes to Total votes ratio for proposal to be vetoed. Default value: 1/3.
The ratio representing the proportion of the deposit value that must be paid at proposal submission.
burn deposits if a proposal does not meet quorum
burn deposits if the proposal does not enter voting period
burn deposits if quorum with vote type no_veto is met
Proposal defines the core field members of a governance proposal.
Used in:
, ,id defines the unique id of the proposal.
messages are the arbitrary messages to be executed if the proposal passes.
status defines the proposal status.
final_tally_result is the final tally result of the proposal. When querying a proposal via gRPC, this field is not populated until the proposal's voting period has ended.
submit_time is the time of proposal submission.
deposit_end_time is the end time for deposition.
total_deposit is the total deposit on the proposal.
voting_start_time is the starting time to vote on a proposal.
voting_end_time is the end time of voting on a proposal.
metadata is any arbitrary metadata attached to the proposal.
title is the title of the proposal Since: cosmos-sdk 0.47
summary is a short summary of the proposal Since: cosmos-sdk 0.47
Proposer is the address of the proposal sumbitter Since: cosmos-sdk 0.47
ProposalStatus enumerates the valid statuses of a proposal.
Used in:
,PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.
PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit period.
PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting period.
PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has passed.
PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has been rejected.
PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has failed.
TallyParams defines the params for tallying votes on governance proposals.
Used in:
,Minimum percentage of total stake needed to vote for a result to be considered valid.
Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
Minimum value of Veto votes to Total votes ratio for proposal to be vetoed. Default value: 1/3.
TallyResult defines a standard tally for a governance proposal.
Used in:
,yes_count is the number of yes votes on a proposal.
abstain_count is the number of abstain votes on a proposal.
no_count is the number of no votes on a proposal.
no_with_veto_count is the number of no with veto votes on a proposal.
Vote defines a vote on a governance proposal. A Vote consists of a proposal ID, the voter, and the vote option.
Used in:
, ,proposal_id defines the unique id of the proposal.
voter is the voter address of the proposal.
options is the weighted vote options.
metadata is any arbitrary metadata to attached to the vote.
VoteOption enumerates the valid vote options for a given governance proposal.
Used in:
,VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
VOTE_OPTION_YES defines a yes vote option.
VOTE_OPTION_ABSTAIN defines an abstain vote option.
VOTE_OPTION_NO defines a no vote option.
VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
VotingParams defines the params for voting on governance proposals.
Used in:
,Duration of the voting period.
WeightedVoteOption defines a unit of vote for vote split.
Used in:
,option defines the valid vote options, it must not contain duplicate vote options.
weight is the vote weight associated with the vote option.