# Functions
Get the validator operator address from LastValidatorPowerKey.
DefaultGenesisState gets the raw genesis raw message for testing.
DefaultParams returns a default set of parameters.
gets the key for delegator bond with validator VALUE: staking/Delegation.
gets the prefix for a delegator for all validators.
GetHistoricalInfoKey gets the key for the historical info.
get the bonded validator index key for an operator address.
No description provided by the author
No description provided by the author
gets the index-key for an unbonding delegation, stored by validator-index VALUE: none (key rearrangement used).
gets the key for an unbonding delegation by delegator and validator addr VALUE: staking/UnbondingDelegation.
rearranges the ValIndexKey to get the UBDKey.
gets the prefix keyspace for the indexes of unbonding delegations for a validator.
gets the prefix for all unbonding delegations from a delegator.
gets the prefix for all unbonding delegations from a delegator.
gets the key for the validator with pubkey VALUE: validator operator address ([]byte).
gets the key for the validator with address VALUE: staking/Validator.
gets the prefix for all unbonding delegations from a delegator.
get the validator by power index.
No description provided by the author
MustMarshalDelegation returns the delegation bytes.
MustMarshalHistoricalInfo wll marshal historical info and panic on error.
return the unbonding delegation.
return the validator.
MustUnmarshalDelegation return the unmarshaled delegation from bytes.
MustUnmarshalHistoricalInfo wll unmarshal historical info and panic on error.
unmarshal the current staking params value from store key or panic.
unmarshal a unbonding delegation from a store value.
unmarshal a validator from a store value.
NewDelegation creates a new delegation object.
NewDelegationResp creates a new DelegationResponse instance.
NewDescription returns a new Description with the provided values.
NewGenesisState creates a new GenesisState instanc e.
NewHistoricalInfo will create a historical information struct from header and valset it will first sort valset before inclusion into historical info.
NewMsgCreateValidator creates a new MsgCreateValidator instance.
NewMsgDelegate creates a new MsgDelegate instance.
NewMsgEditValidator creates a new MsgEditValidator instance.
NewMsgUndelegate creates a new MsgUndelegate instance.
No description provided by the author
NewParams creates a new Params instance.
NewPool creates a new Pool instance used for queries.
No description provided by the author
No description provided by the author
NewQueryHistoricalInfoParams creates a new QueryHistoricalInfoParams instance.
No description provided by the author
No description provided by the author
NewUnbondingDelegation - create a new unbonding delegation object.
NewUnbondingDelegationEntry - create a new unbonding delegation object.
NewValidator - initialize a new validator.
parse the validators operator address from power rank key.
parse the validators operator address from ticket rank key.
Register concrete types on codec codec.
return the delegation.
UnmarshalHistoricalInfo will unmarshal historical info and return any error.
unmarshal the current staking params value from store key.
unmarshal a unbonding delegation from a store value.
unmarshal a validator from a store value.
ValidateBasic will ensure HistoricalInfo is not nil and sorted.
# Constants
staking module event types.
staking module event types.
staking module event types.
staking module event types.
names used as root for pool module accounts:
- NotBondedPool -> "not_bonded_tokens_pool"
- BondedPool -> "bonded_tokens_pool".
DefaultHistorical entries is 0 since it must only be non-zero for IBC connected chains.
Default maximum entries in a UBD/RED pair.
devnet: 5.
devnet: time.Second * 60 * 5.
constant used in flags to indicate that description field should not be updated.
staking module event types.
staking module event types.
staking module event types.
staking module event types.
staking module event types.
nolint.
nolint.
TODO: Why can't we just have one string description which can be JSON by convention.
nolint.
nolint.
ModuleName is the name of the staking module.
names used as root for pool module accounts:
- NotBondedPool -> "not_bonded_tokens_pool"
- BondedPool -> "bonded_tokens_pool".
QuerierRoute is the querier route for the staking module.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
RouterKey is the msg router key for the staking module.
StoreKey is the string store representation.
TStoreKey is the string transient store representation.
# Variables
This line is the default staking requirement for a validator 10,000,000,000,000 pin = 100k Anatha.
key for a delegation.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
x/staking module sentinel errors
TODO: Many of these errors are redundant.
prefix for the historical info.
nolint - Keys for parameter access.
nolint - Keys for parameter access.
nolint - Keys for parameter access.
nolint - Keys for parameter access.
nolint - Keys for parameter access.
prefix for the total power.
prefix for each key to a validator index, for bonded validators.
generic sealed codec to be used throughout this module.
nolint.
prefix for each key for an unbonding-delegation, by validator operator.
key for an unbonding-delegation.
prefix for the timestamps in unbonding queue.
prefix for the timestamps in validator queue.
prefix for each key to a validator index, by pubkey.
prefix for each key to a validator index, sorted by power.
nolint.
prefix for each key to a validator.
# Structs
Delegation represents the bond with tokens held by an account.
DelegationResponse is equivalent to Delegation except that it contains a balance in addition to shares which is more suitable for client responses.
Description - description fields for a validator.
DVPair is struct that just has a delegator-validator pair with no other data.
GenesisState - all staking state that must be provided at genesis.
HistoricalInfo contains the historical information that gets stored at each height.
LastValidatorPower required for validator set update logic.
MsgCreateValidator - struct for bonding transactions.
MsgDelegate - struct for bonding transactions.
MsgEditValidator - struct for editing a validator.
MsgUndelegate - struct for unbonding transactions.
Params defines the high level settings for staking.
Pool - tracking bonded and not-bonded token supply of the bond denomination.
defines the params for the following queries: - 'custom/staking/delegation' - 'custom/staking/unbondingDelegation' - 'custom/staking/delegatorValidator'.
defines the params for the following queries: - 'custom/staking/delegatorDelegations' - 'custom/staking/delegatorUnbondingDelegations' - 'custom/staking/delegatorValidators'.
QueryHistoricalInfoParams defines the params for the following queries: - 'custom/staking/historicalInfo'.
defines the params for the following queries: - 'custom/staking/validator' - 'custom/staking/validatorDelegations' - 'custom/staking/validatorUnbondingDelegations'.
QueryValidatorsParams defines the params for the following queries: - 'custom/staking/validators'.
UnbondingDelegation stores all of a single delegator's unbonding bonds for a single validator in an time-ordered list.
UnbondingDelegationEntry - entry to an UnbondingDelegation.
Validator defines the total amount of bond shares and their exchange rate to coins.
# Interfaces
AccountKeeper defines the expected account keeper (noalias).
DelegationSet expected properties for the set of all delegations for a particular (noalias).
DistributionKeeper expected distribution keeper (noalias).
StakingHooks event hooks for staking validator object (noalias).
SupplyKeeper defines the expected supply Keeper (noalias).
ValidatorSet expected properties for the set of all validators (noalias).
# Type aliases
DelegationResponses is a collection of DelegationResp.
Delegations is a collection of delegations.
combine multiple staking hooks, all hook functions are run in array sequence.
UnbondingDelegations is a collection of UnbondingDelegation.
Validators is a collection of Validator.