v3

package
v0.12.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 LegacyAccrualTimeKeyFromClaimType

func LegacyAccrualTimeKeyFromClaimType(claimType types.ClaimType) []byte

func LegacyRewardIndexesKeyFromClaimType

func LegacyRewardIndexesKeyFromClaimType(claimType types.ClaimType) []byte

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL