v4

package
v0.0.0-...-08ff881 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetParamsLegacy

func GetParamsLegacy(
	ctx sdk.Context,
	storeKey storetypes.StoreKey,
	cdc codec.BinaryCodec,
) (params types.LegacyParams, found bool)

func MigrateStore

func MigrateStore(
	ctx sdk.Context,
	emissionsKeeper EmissionsKeeper,
) error

MigrateStore migrates the store from v3 to v4 The v3 params are copied to the v4 params, and the v4 params are set in the store v4 params removes unused parameters from v3; these values are discarded. v4 introduces a new parameter, BlockRewardAmount, which is set to the default value

Types

type EmissionsKeeper

type EmissionsKeeper interface {
	SetParams(ctx sdk.Context, params types.Params) error
	GetCodec() codec.BinaryCodec
	GetStoreKey() storetypes.StoreKey
}

Jump to

Keyboard shortcuts

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