package
4.0.2+incompatible
Repository: https://github.com/dipper-labs/dipper-protocol.git
Documentation: pkg.go.dev

# Functions

ActiveProposalByTimeKey gets the active proposal queue key by endTime.
ActiveProposalQueueKey returns the key for a proposalID in the activeProposalQueue.
No description provided by the author
DefaultDepositParams default parameters for deposits.
DefaultGenesisState gets raw genesis raw message for testing.
DefaultParams default governance params.
DefaultTallyParams default parameters for tallying.
DefaultVotingParams default parameters for voting.
DepositKey key of a specific deposit from the store.
DepositsKey gets the first part of the deposits key based on the proposalID.
EmptyTallyResult returns an empty TallyResult.
InactiveProposalByTimeKey gets the inactive proposal queue key by endTime.
InactiveProposalQueueKey returns the key for a proposalID in the inactiveProposalQueue.
IsValidProposalType returns a boolean determining if the proposal type is valid.
NewDeposit creates a new Deposit instance.
NewDepositParams creates a new DepositParams object.
NewGenesisState creates a new genesis state for the governance module.
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
NewQueryDepositParams creates a new instance of QueryDepositParams.
NewQueryProposalParams creates a new instance of QueryProposalParams.
NewQueryProposalsParams creates a new instance of QueryProposalsParams.
NewQueryVoteParams creates a new instance of QueryVoteParams.
No description provided by the author
NewTallyParams creates a new TallyParams object.
No description provided by the author
No description provided by the author
No description provided by the author
NewVote creates a new Vote instance.
NewVotingParams creates a new VotingParams object.
Key declaration for parameters.
ProposalKey gets a specific proposal from the store.
ProposalStatusToString turns a string into a ProposalStatus.
RegisterCodec registers all the necessary types and interfaces for governance.
RegisterProposalType registers a proposal type.
RegisterProposalTypeCodec registers an external proposal content type defined in another module for the internal ModuleCdc.
SplitActiveProposalQueueKey split the active proposal key and returns the proposal id and endTime.
SplitInactiveProposalQueueKey split the inactive proposal key and returns the proposal id and endTime.
SplitKeyDeposit split the deposits key and returns the proposal id and depositor address.
SplitKeyVote split the votes key and returns the proposal id and voter address.
SplitProposalKey split the proposal key and returns the proposal id.
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.
VoteKey key of a specific vote from the store.
VoteOptionFromString returns a VoteOption from a string.
VotesKey gets the first part of the votes key based on the proposalID.

# Constants

Governance module event types.
Governance module event types.
Governance module event types.
Governance module event types.
Governance module event types.
didn't meet min deposit.
error on proposal handler.
met vote quorum.
didn't meet vote quorum.
1 days.
DefaultParamspace default name for parameter store.
5 days.
Governance module event types.
Governance module event types.
Governance module event types.
Governance module event types.
Governance module event types.
No description provided by the author
No description provided by the author
No description provided by the author
Vote options.
Vote options.
Vote options.
Vote options.
Vote options.
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
QuerierRoute is the querier route for gov.
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.
RouterKey is the message route for gov.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
StoreKey is the store key string for gov.
Governance message types and routes.
Governance message types and routes.
Governance message types and routes.
Governance message types and routes.

# Variables

Keys for governance store Items are stored with the following key: values - 0x00<proposalID_Bytes>: Proposal - 0x01<endTime_Bytes><proposalID_Bytes>: activeProposalID - 0x02<endTime_Bytes><proposalID_Bytes>: inactiveProposalID - 0x03: nextProposalID - 0x10<proposalID_Bytes><depositorAddr_Bytes>: Deposit - 0x20<proposalID_Bytes><voterAddr_Bytes>: Voter.
Default governance params.
Default governance params.
Default governance params.
Default governance params.
Keys for governance store Items are stored with the following key: values - 0x00<proposalID_Bytes>: Proposal - 0x01<endTime_Bytes><proposalID_Bytes>: activeProposalID - 0x02<endTime_Bytes><proposalID_Bytes>: inactiveProposalID - 0x03: nextProposalID - 0x10<proposalID_Bytes><depositorAddr_Bytes>: Deposit - 0x20<proposalID_Bytes><voterAddr_Bytes>: Voter.
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
Keys for governance store Items are stored with the following key: values - 0x00<proposalID_Bytes>: Proposal - 0x01<endTime_Bytes><proposalID_Bytes>: activeProposalID - 0x02<endTime_Bytes><proposalID_Bytes>: inactiveProposalID - 0x03: nextProposalID - 0x10<proposalID_Bytes><depositorAddr_Bytes>: Deposit - 0x20<proposalID_Bytes><voterAddr_Bytes>: Voter.
ModuleCdc - generic sealed codec to be used throughout this module.
Parameter store key.
Parameter store key.
Parameter store key.
Keys for governance store Items are stored with the following key: values - 0x00<proposalID_Bytes>: Proposal - 0x01<endTime_Bytes><proposalID_Bytes>: activeProposalID - 0x02<endTime_Bytes><proposalID_Bytes>: inactiveProposalID - 0x03: nextProposalID - 0x10<proposalID_Bytes><depositorAddr_Bytes>: Deposit - 0x20<proposalID_Bytes><voterAddr_Bytes>: Voter.
Keys for governance store Items are stored with the following key: values - 0x00<proposalID_Bytes>: Proposal - 0x01<endTime_Bytes><proposalID_Bytes>: activeProposalID - 0x02<endTime_Bytes><proposalID_Bytes>: inactiveProposalID - 0x03: nextProposalID - 0x10<proposalID_Bytes><depositorAddr_Bytes>: Deposit - 0x20<proposalID_Bytes><voterAddr_Bytes>: Voter.
Keys for governance store Items are stored with the following key: values - 0x00<proposalID_Bytes>: Proposal - 0x01<endTime_Bytes><proposalID_Bytes>: activeProposalID - 0x02<endTime_Bytes><proposalID_Bytes>: inactiveProposalID - 0x03: nextProposalID - 0x10<proposalID_Bytes><depositorAddr_Bytes>: Deposit - 0x20<proposalID_Bytes><voterAddr_Bytes>: Voter.
Keys for governance store Items are stored with the following key: values - 0x00<proposalID_Bytes>: Proposal - 0x01<endTime_Bytes><proposalID_Bytes>: activeProposalID - 0x02<endTime_Bytes><proposalID_Bytes>: inactiveProposalID - 0x03: nextProposalID - 0x10<proposalID_Bytes><depositorAddr_Bytes>: Deposit - 0x20<proposalID_Bytes><voterAddr_Bytes>: Voter.
Keys for governance store Items are stored with the following key: values - 0x00<proposalID_Bytes>: Proposal - 0x01<endTime_Bytes><proposalID_Bytes>: activeProposalID - 0x02<endTime_Bytes><proposalID_Bytes>: inactiveProposalID - 0x03: nextProposalID - 0x10<proposalID_Bytes><depositorAddr_Bytes>: Deposit - 0x20<proposalID_Bytes><voterAddr_Bytes>: Voter.

# Structs

Deposit defines an amount deposited by an account address to an active proposal.
Param around deposits for governance.
GenesisState - all staking state that must be provided at genesis.
MsgDeposit.
MsgSubmitProposal.
MsgVote.
Params returns all of the governance params.
Proposal defines a struct used by the governance module to allow for voting on network changes.
QueryDepositParams params for query 'custom/gov/deposit'.
QueryProposalParams for queries: - 'custom/gov/proposal' - 'custom/gov/deposits' - 'custom/gov/tally' - 'custom/gov/votes'.
QueryProposalsParams Params for query 'custom/gov/proposals'.
QueryVoteParams for query 'custom/gov/vote'.
No description provided by the author
Param around Tallying votes in governance.
Tally Results.
No description provided by the author
Vote.
Param around Voting in governance.

# Interfaces

No description provided by the author

# Type aliases

Deposits is a collection of Deposit objects.
No description provided by the author
No description provided by the author
Proposals is an array of proposal.
No description provided by the author
VoteOption defines a vote option.
Votes is a collection of Vote objects.