package
0.0.0-20220620005849-a315113d9162
Repository: https://github.com/mycodeku/transtionhelper.git
Documentation: pkg.go.dev

# Functions

DefaultDepositParams default parameters for deposits.
DefaultGenesisState defines the default governance genesis state.
DefaultParams default governance params.
DefaultTallyParams default parameters for tallying.
DefaultVotingParams default parameters for voting.
EmptyTallyResult returns an empty TallyResult.
LegacyContentFromMessage extracts the legacy Content interface from a MsgExecLegacyContent.
NewDeposit creates a new Deposit instancenolint:interfacer.
NewDepositParams creates a new DepositParams object.
NewGenesisState creates a new genesis state for the governance module.
NewLegacyContent creates a new MsgExecLegacyContent from a legacy Content interface.
No description provided by the author
NewMsgDeposit creates a new MsgDeposit instancenolint:interfacer.
No description provided by the author
NewMsgSubmitProposal creates a new MsgSubmitProposal.nolint:interfacer.
NewMsgVote creates a message to cast a vote on an active proposalnolint:interfacer.
NewMsgVoteWeighted creates a message to cast a vote on an active proposalnolint: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.
NewTallyParams creates a new TallyParams object.
NewTallyResult creates a new TallyResult instance.
NewTallyResultFromMap creates a new TallyResult instance from a Option -> Dec map.
NewValidatorGovInfo creates a ValidatorGovInfo instance.
NewVote creates a new Vote instancenolint:interfacer.
NewVotingParams creates a new VotingParams object.
No description provided by the author
ParamKeyTable - Key declaration for parameters.
ProposalStatusFromString turns a string into a ProposalStatus.
No description provided by the author
RegisterLegacyAminoCodec registers all the necessary types and interfaces for the governance module.
No description provided by the author
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
ValidateGenesis checks if parameters are within valid ranges.
ValidProposalStatus returns true if the proposal status is valid and false otherwise.
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.

# Constants

2 days.
DefaultStartingProposalID is 1.
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
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_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_UNSPECIFIED defines the default proposal status.
PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting period.
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.
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
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.
VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
VOTE_OPTION_YES defines a yes vote option.

# 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
Parameter store key.
Parameter store key.
Parameter store key.
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.
MsgDeposit defines a message to submit a deposit to an existing proposal.
MsgDepositResponse defines the Msg/Deposit response type.
MsgExecLegacyContent is used to wrap the legacy content field into a message.
MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent 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.
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

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

Deposits is a collection of Deposit objects.
No description provided by the author
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 a collection of Vote objects.
WeightedVoteOptions describes array of WeightedVoteOptions.