# Functions
ContentFromProposalType returns a Content object based on the proposal type.
DefaultDepositParams returns the default parameters for deposits.
DefaultGenesisState defines the default governance genesis state.
DefaultParams returns the default governance params.
DefaultTallyParams returns default parameters for tallying.
DefaultVotingParams default parameters for voting.
EmptyTallyResult returns an empty TallyResult.
IsValidProposalType returns a boolean determining if the proposal type is valid.
NewDeposit creates a new Deposit instance
nolint:interfacer.
NewDepositParams creates a new DepositParams object.
NewGenesisState creates a new genesis state for the governance module.
No description provided by the author
NewMsgDeposit creates a new MsgDeposit instance
nolint:interfacer.
NewMsgSubmitProposal creates a new MsgSubmitProposal.
NewMsgVote creates a message to cast a vote on an active proposal
nolint:interfacer.
NewMsgVoteWeighted creates a message to cast a vote on an active proposal
nolint:interfacer.
NewNonSplitVoteOption creates a single option vote with weight 1.
NewParams creates a new gov Params instance.
NewProposal creates a new Proposal instance.
No description provided by the author
NewQueryDepositParams creates a new instance of QueryDepositParams.
NewQueryProposalParams creates a new instance of QueryProposalParams.
NewQueryProposalsParams creates a new instance of QueryProposalsParams.
NewQueryProposalVotesParams creates new instance of the QueryProposalVotesParams.
NewQueryVoteParams creates a new instance of QueryVoteParams.
NewRouter creates a new Router interface instance.
NewTallyParams creates a new TallyParams object.
NewTallyResult creates a new TallyResult instance.
NewTallyResultFromMap creates a new TallyResult instance from a Option -> Dec map.
NewTextProposal creates a text proposal Content.
NewValidatorGovInfo creates a ValidatorGovInfo instance.
NewVote creates a new Vote instance
nolint:interfacer.
NewVotingParams creates a new VotingParams object.
ProposalHandler implements the Handler interface for governance module-based proposals (ie.
ProposalStatusFromString turns a string into a ProposalStatus.
RegisterInterfaces registers the interfaces types with the Interface Registry.
RegisterLegacyAminoCodec registers all the necessary types and interfaces for the governance module.
No description provided by the author
RegisterProposalType registers a proposal type.
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
ValidateAbstract validates a proposal's abstract contents returning an error if invalid.
ValidateGenesis checks if parameters are within valid ranges.
ValidProposalStatus checks if the proposal status is valid.
ValidVoteOption returns true if the vote option is valid and false otherwise.
ValidWeightedVoteOption returns true if the sub vote is valid and false otherwise.
VoteOptionFromString returns a VoteOption from a string.
WeightedVoteOptionsFromString returns weighted vote options from string.
WrapHandler converts a Cosmos SDK gov Handler to GovGen gov Handler.
# Constants
14 days.
DefaultStartingProposalID is 1.
21 days.
Constants pertaining to a Content object.
Proposal types.
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.
query endpoints supported by the governance Querier.
query endpoints supported by the governance Querier.
query endpoints supported by the governance Querier.
Proposal types.
query endpoints supported by the governance Querier.
query endpoints supported by the governance Querier.
query endpoints supported by the governance Querier.
query endpoints supported by the governance Querier.
query endpoints supported by the governance Querier.
query endpoints supported by the governance Querier.
query endpoints supported by the governance Querier.
query endpoints supported by the governance Querier.
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 proposal 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.
Governance message types and routes.
Governance message types and routes.
Governance message types and routes.
Governance message types and routes.
# Variables
Default governance params.
Default governance params.
Default governance params.
Default governance params.
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
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.
GenesisState defines the gov module's genesis state.
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.
MsgVoteWeighted defines a message to cast a vote.
MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
Params returns all of the governance params.
Proposal defines the core field members of a governance proposal.
QueryDepositParams params for query 'custom/gov/deposit'.
QueryDepositRequest is the request type for the Query/Deposit RPC method.
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.
QueryParamsResponse is the response type for the Query/Params RPC method.
QueryProposalParams Params for queries: - 'custom/gov/proposal' - 'custom/gov/deposits' - 'custom/gov/tally'.
QueryProposalRequest is the request type for the Query/Proposal RPC method.
QueryProposalResponse is the response type for the Query/Proposal RPC method.
QueryProposalsParams Params for query 'custom/gov/proposals'.
QueryProposalsRequest is the request type for the Query/Proposals RPC method.
QueryProposalsResponse is the response type for the Query/Proposals RPC method.
QueryProposalVotesParams used for queries to 'custom/gov/votes'.
QueryTallyResultRequest is the request type for the Query/Tally RPC method.
QueryTallyResultResponse is the response type for the Query/Tally RPC method.
QueryVoteParams Params for query 'custom/gov/vote'.
QueryVoteRequest is the request type for the Query/Vote RPC method.
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.
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.
ValidatorGovInfo used for tallying.
Vote defines a vote on a governance proposal.
VotingParams defines the params for voting on governance proposals.
WeightedVoteOption defines a unit of vote for vote split.
# Interfaces
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.
Router implements a governance Handler router.
# Type aliases
Deposits is a collection of Deposit objects.
Handler defines a function that handles a proposal after it has passed the governance process.
Proposals is an array of proposal.
ProposalStatus enumerates the valid statuses of a proposal.
VoteOption enumerates the valid vote options for a given governance proposal.
Votes is an array of vote.
WeightedVoteOptions describes array of WeightedVoteOptions.