v040

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "metadata"
)

Variables

This section is empty.

Functions

func BackportScope

func BackportScope(
	ctx sdk.Context,
	k metadatakeeper.Keeper,
	newScope v040metadata.Scope,
) (old v039metadata.Scope, err error)

BackportScope takes a reference to a current scope and backports it to the v039 version by reading the components from the keeper to reconstruct it.

func Migrate

func Migrate(oldGenState v039metadata.GenesisState) *v040metadata.GenesisState

Migrate accepts exported x/metadata genesis state from v0.39 and migrates it to v0.40 x/metadata genesis state. The migration includes:

- Convert addresses from bytes to bech32 strings. - Re-encode in v0.40 GenesisState.

Types

This section is empty.

Jump to

Keyboard shortcuts

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