# Functions
ContentFromProposalType returns a Content object based on the proposal type.
IsValidProposalType returns a boolean determining if the proposal type is valid.
No description provided by the author
No description provided by the author
NewMsgSubmitProposal creates a new MsgSubmitProposal.nolint:interfacer.
NewProposal creates a new Proposal instance.
No description provided by the author
NewTextProposal creates a text proposal Content.
ProposalStatusFromString turns a string into a ProposalStatus.
No description provided by the author
No description provided by the author
RegisterProposalType registers a proposal type.
No description provided by the author
ValidProposalStatus returns true if the proposal status is valid and false otherwise.
No description provided by the author
# Constants
No description provided by the author
DefaultStartingProposalID is 1.
Constants pertaining to a Content object.
Constants pertaining to a Content object.
No description provided by the author
VOTE_OPTION_ABSTAIN defines an abstain vote option.
VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
VOTE_OPTION_NO defines a no vote option.
VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
VOTE_OPTION_YES defines a yes vote option.
Proposal types.
PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit period.
PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has failed.
PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status.
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_VOTING_PERIOD defines a proposal status during the voting period.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Deposit defines an amount deposited by an account address to an active proposal.
DepositParams defines the params for deposits on governance proposals.
No description provided by the author
MsgDeposit defines a message to submit a deposit to an existing proposal.
MsgDepositResponse defines the Msg/Deposit response type.
MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary proposal Content.
MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
MsgVote defines a message to cast a vote.
MsgVoteResponse defines the Msg/Vote response type.
Proposal defines the core field members of a governance proposal.
QueryDepositRequest is the request type for the Query/Deposit RPC method.
No description provided by the author
QueryDepositResponse is the response type for the Query/Deposit RPC method.
QueryDepositsRequest is the request type for the Query/Deposits RPC method.
QueryDepositsResponse is the response type for the Query/Deposits RPC method.
QueryParamsRequest is the request type for the Query/Params RPC method.
No description provided by the author
QueryParamsResponse is the response type for the Query/Params RPC method.
QueryProposalRequest is the request type for the Query/Proposal RPC method.
No description provided by the author
QueryProposalResponse is the response type for the Query/Proposal RPC method.
QueryProposalsRequest is the request type for the Query/Proposals RPC method.
QueryProposalsResponse is the response type for the Query/Proposals RPC method.
QueryTallyResultRequest is the request type for the Query/Tally RPC method.
No description provided by the author
QueryTallyResultResponse is the response type for the Query/Tally RPC method.
QueryVoteRequest is the request type for the Query/Vote RPC method.
No description provided by the author
QueryVoteResponse is the response type for the Query/Vote RPC method.
QueryVotesRequest is the request type for the Query/Votes RPC method.
QueryVotesResponse is the response type for the Query/Votes RPC method.
No description provided by the author
TallyParams defines the params for tallying votes on governance proposals.
TallyResult defines a standard tally for a governance proposal.
TextProposal defines a standard text proposal whose changes need to be manually updated in case of approval.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
Vote defines a vote on a governance proposal.
No description provided by the author
VotingParams defines the params for voting on governance proposals.
# Interfaces
expose Gov module api for user.
Content defines an interface that a proposal must implement.
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
ProposalStatus enumerates the valid statuses of a proposal.
VoteOption enumerates the valid vote options for a given governance proposal.
No description provided by the author