v042

package
v1.13.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MarkerStoreKeyPrefixLegacy legacy prefix for marker-address < v043
	MarkerStoreKeyPrefixLegacy = []byte{0x01}
)

Functions

func MarkerStoreKeyLegacy

func MarkerStoreKeyLegacy(addr sdk.AccAddress) []byte

MarkerStoreKeyLegacy turn an address to key used to get it from the account store

func MigrateMarkerAddressKeys

func MigrateMarkerAddressKeys(ctx sdk.Context, storeKey storetypes.StoreKey) error

func MigrateMarkerPermissions

func MigrateMarkerPermissions(ctx sdk.Context, k MarkerKeeperI) error

MigrateMarkerPermissions inspects existing COIN markers for grants of Access_Transfer and removes the invalid grant to prevent validation errors with the strict access validation updates in 1.6.0

Types

type MarkerKeeperI

type MarkerKeeperI interface {
	// Set a marker in the auth account store
	SetMarker(sdk.Context, types.MarkerAccountI)
	// IterateMarker processes all markers with the given handler function.
	IterateMarkers(sdk.Context, func(types.MarkerAccountI) bool)
}

MarkerKeeperI is a minimal set of marker keeper operations required for store migrations

Jump to

Keyboard shortcuts

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