Documentation ¶
Index ¶
- Constants
- Variables
- func GetDelegationsByValKey(valAddr sdk.ValAddress, delAddr sdk.AccAddress) []byte
- func GetDelegationsByValPrefixKey(valAddr sdk.ValAddress) []byte
- func GetHistoricalInfoKey(height int64) []byte
- func MigrateStore(ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec) error
- func ParseDelegationKey(bz []byte) (sdk.AccAddress, sdk.ValAddress, error)
Constants ¶
View Source
const (
// ModuleName is the name of the module
ModuleName = "staking"
)
Variables ¶
View Source
var ( DelegationKey = []byte{0x31} // key for a delegation HistoricalInfoKey = []byte{0x50} // prefix for the historical info DelegationByValIndexKey = []byte{0x71} // key for delegations by a validator )
Functions ¶
func GetDelegationsByValKey ¶
func GetDelegationsByValKey(valAddr sdk.ValAddress, delAddr sdk.AccAddress) []byte
GetDelegationsByValKey creates the key for delegations by validator address VALUE: staking/Delegation
func GetDelegationsByValPrefixKey ¶
func GetDelegationsByValPrefixKey(valAddr sdk.ValAddress) []byte
GetDelegationsByValPrefixKey builds a prefix key bytes with the given validator address bytes.
func GetHistoricalInfoKey ¶
GetHistoricalInfoKey returns a key prefix for indexing HistoricalInfo objects.
func MigrateStore ¶
func MigrateStore(ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec) error
MigrateStore performs in-place store migrations from v4 to v5.
func ParseDelegationKey ¶
func ParseDelegationKey(bz []byte) (sdk.AccAddress, sdk.ValAddress, error)
ParseDelegationKey parses given key and returns delagator, validator address bytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.