Get desktop application:
View/edit binary Protocol Buffers messages
Msg defines the bank Msg service.
SubmitProposal defines a method to create new proposal given a content.
MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary proposal Content.
content is the proposal's content.
initial_deposit is the deposit value that must be paid at proposal submission.
proposer is the account address of the proposer.
MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
proposal_id defines the unique id of the proposal.
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.
MsgVoteResponse defines the Msg/Vote response type.
(message has no fields)
VoteWeighted defines a method to add a weighted vote on a specific proposal. Since: cosmos-sdk 0.43
MsgVoteWeighted defines a message to cast a vote. Since: cosmos-sdk 0.43
proposal_id defines the unique id of the proposal.
voter is the voter address for the proposal.
options defines the weighted vote options.
MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. Since: cosmos-sdk 0.43
(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)
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.
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.
voting_params defines the parameters related to voting.
deposit_params defines the parameters related to deposit.
tally_params defines the parameters related to tally.
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.
params defines all the parameters of related to deposit.
params defines all the parameters of related to voting.
params defines all the parameters of related to tally.
Proposal defines the core field members of a governance proposal.
Used in:
, ,proposal_id defines the unique id of the proposal.
content is the proposal's content.
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.
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 is the number of yes votes on a proposal.
abstain is the number of abstain votes on a proposal.
no is the number of no votes on a proposal.
no_with_veto is the number of no with veto votes on a proposal.
TextProposal defines a standard text proposal whose changes need to be manually updated in case of approval.
title of the proposal.
description associated with the 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.
Deprecated: Prefer to use `options` instead. This field is set in queries if and only if `len(options) == 1` and that option has weight 1. In all other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
options is the weighted vote options. Since: cosmos-sdk 0.43
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. Since: cosmos-sdk 0.43
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.