Documentation ¶
Index ¶
- Variables
- func LegacyAccrualTimeKeyFromClaimType(claimType types.ClaimType) []byte
- func LegacyRewardIndexesKeyFromClaimType(claimType types.ClaimType) []byte
- func MigrateAccrualTimes(store sdk.KVStore, cdc codec.BinaryCodec, claimType types.ClaimType) error
- func MigrateEarnClaims(store sdk.KVStore, cdc codec.BinaryCodec) error
- func MigrateRewardIndexes(store sdk.KVStore, cdc codec.BinaryCodec, claimType types.ClaimType) error
- func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EarnClaimKeyPrefix = []byte{0x18} // prefix for keys that store earn claims EarnRewardIndexesKeyPrefix = []byte{0x19} // prefix for key that stores earn reward indexes PreviousEarnRewardAccrualTimeKeyPrefix = []byte{0x20} // prefix for key that stores the previous time earn rewards accrued )
Legacy store key prefixes
Functions ¶
func MigrateAccrualTimes ¶
func MigrateAccrualTimes( store sdk.KVStore, cdc codec.BinaryCodec, claimType types.ClaimType, ) error
MigrateAccrualTimes migrates accrual times from v2 to v3
func MigrateEarnClaims ¶
func MigrateEarnClaims(store sdk.KVStore, cdc codec.BinaryCodec) error
MigrateEarnClaims migrates earn claims from v2 to v3
func MigrateRewardIndexes ¶
func MigrateRewardIndexes( store sdk.KVStore, cdc codec.BinaryCodec, claimType types.ClaimType, ) error
MigrateRewardIndexes migrates reward indexes from v2 to v3
func MigrateStore ¶
func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error
MigrateStore performs in-place migrations from incentive ConsensusVersion 2 to 3.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.