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

# Packages

Package v1 is a reverse proxy.
Package v1beta1 is a reverse proxy.

# Functions

ActiveProposalByTimeKey gets the active proposal queue key by endTime.
ActiveProposalQueueKey returns the key for a proposalID in the activeProposalQueue.
DefaultConfig returns the default config for gov.
DepositKey key of a specific deposit from the store.
DepositsKey gets the first part of the deposits key based on the proposalID.
GetProposalIDBytes returns the byte representation of the proposalID.
GetProposalIDFromBytes returns proposalID in uint64 format from a byte array.
InactiveProposalByTimeKey gets the inactive proposal queue key by endTime.
InactiveProposalQueueKey returns the key for a proposalID in the inactiveProposalQueue.
No description provided by the author
ProposalKey gets a specific proposal from the store.
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.
VoteKey key of a specific vote from the store.
VotesKey gets the first part of the votes key based on the proposalID.

# Constants

Governance module event types.
Governance module event types.
Msg type_urls in the proposal.
Governance module event types.
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.
Governance module event types.
Governance module event types.
Governance module event types.
Governance module event types.
Governance module event types.
Governance module event types.
ModuleName is the name of the module.
QuerierRoute is the querier route for gov.
RouterKey is the message route for gov.
StoreKey is the store key string for gov.

# 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><depositorAddrLen (1 Byte)><depositorAddr_Bytes>: Deposit - 0x20<proposalID_Bytes><voterAddrLen (1 Byte)><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><depositorAddrLen (1 Byte)><depositorAddr_Bytes>: Deposit - 0x20<proposalID_Bytes><voterAddrLen (1 Byte)><voterAddr_Bytes>: Voter.
x/gov module sentinel errors.
x/gov module sentinel errors.
x/gov module sentinel errors.
Errors 5 & 6 are legacy errors related to v1beta1.Proposal.
x/gov module sentinel errors.
x/gov module sentinel errors.
x/gov module sentinel errors.
x/gov module sentinel errors.
x/gov module sentinel errors.
x/gov module sentinel errors.
x/gov module sentinel errors.
x/gov module sentinel errors.
x/gov module sentinel errors.
x/gov module sentinel errors.
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><depositorAddrLen (1 Byte)><depositorAddr_Bytes>: Deposit - 0x20<proposalID_Bytes><voterAddrLen (1 Byte)><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><depositorAddrLen (1 Byte)><depositorAddr_Bytes>: Deposit - 0x20<proposalID_Bytes><voterAddrLen (1 Byte)><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><depositorAddrLen (1 Byte)><depositorAddr_Bytes>: Deposit - 0x20<proposalID_Bytes><voterAddrLen (1 Byte)><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><depositorAddrLen (1 Byte)><depositorAddr_Bytes>: Deposit - 0x20<proposalID_Bytes><voterAddrLen (1 Byte)><voterAddr_Bytes>: Voter.

# Structs

Config is a config struct used for intialising the gov module to avoid using globals.

# Interfaces

AccountKeeper defines the expected account keeper (noalias).
BankKeeper defines the expected interface needed to retrieve account balances.
GovHooks event hooks for governance proposal object (noalias).
ParamSubspace defines the expected Subspace interface for parameters (noalias).
StakingKeeper expected staking keeper (Validator and Delegator sets) (noalias).

# Type aliases

combine multiple governance hooks, all hook functions are run in array sequence.