package
5.10.6
Repository: https://github.com/zenrock-foundation/zrchain.git
Documentation: pkg.go.dev

# Functions

Get the validator operator address from LastValidatorPowerKey.
gets the key for delegator bond with validator VALUE: staking/Delegation.
gets the prefix for a delegator for all validators.
GetHistoricalInfoKey returns a key prefix for indexing HistoricalInfo objects.
get the bonded validator index key for an operator address.
gets the index-key for a redelegation, stored by destination-validator-index VALUE: none (key rearrangement used).
gets the index-key for a redelegation, stored by source-validator-index VALUE: none (key rearrangement used).
GetRedelegationTimeKey returns a key prefix for indexing an unbonding redelegation based on a completion time.
GetREDKey returns a key prefix for indexing a redelegation from a delegator and source validator to a destination validator.
GetREDKeyFromValDstIndexKey rearranges the ValDstIndexKey to get the REDKey.
GetREDKeyFromValSrcIndexKey rearranges the ValSrcIndexKey to get the REDKey.
GetREDsFromValSrcIndexKey returns a key prefix for indexing a redelegation to a source validator.
GetREDsKey returns a key prefix for indexing a redelegation from a delegator address.
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.
GetValidatorQueueKey returns the prefix key used for getting a set of unbonding validators whose unbonding completion occurs at the given time and height.
get the validator by power index.
from GetValidatorQueueKey.

# Constants

DefaultHistorical entries is 10000.
Default maximum entries in a UBD/RED pair.
Default maximum number of bonded validators.
DefaultUnbondingTime reflects three weeks in seconds as the default unbonding time.

# Variables

key for a delegation.
prefix for the historical info.
prefix for the total power.
prefix for each key to a validator index, for bonded validators.
prefix for each key for an redelegation, by destination validator operator.
prefix for each key for an redelegation, by source validator operator.
key for a redelegation.
prefix for the timestamps in redelegations queue.
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.
prefix for each key to a validator.