package
0.0.0-20220620005849-a315113d9162
Repository: https://github.com/mycodeku/transtionhelper.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.
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.
Migrate accepts exported v0.36 x/gov genesis state and migrates it to v0.40 x/gov genesis state.
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

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><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.
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.