v4

package
v0.47.10 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

View Source
const ModuleName = "bank"

Variables

View Source
var ParamsKey = []byte{0x05}

Functions

func MigrateGenState

func MigrateGenState(oldState *types.GenesisState) *types.GenesisState

MigrateGenState accepts exported v0.43 x/bank genesis state and migrates it to v0.47 x/bank genesis state. The migration includes: - Move the SendEnabled entries from Params to the new GenesisState.SendEnabled field.

func MigrateStore

func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, legacySubspace exported.Subspace, cdc codec.BinaryCodec) error

MigrateStore migrates the x/bank module state from the consensus version 3 to version 4. Specifically, it takes the parameters that are currently stored and managed by the x/params module and stores them directly into the x/bank module state.

Types

This section is empty.

Jump to

Keyboard shortcuts

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