v2

package
v0.47.16-ics-lsm Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

View Source
const (
	ModuleName = "group"

	// Group Policy Table
	GroupPolicyTablePrefix    byte = 0x20
	GroupPolicyTableSeqPrefix byte = 0x21
)

Variables

This section is empty.

Functions

func Migrate

func Migrate(
	ctx sdk.Context,
	storeKey storetypes.StoreKey,
	accountKeeper group.AccountKeeper,
	groupPolicySeq orm.Sequence,
	groupPolicyTable orm.PrimaryKeyTable,
) error

Migrate migrates the x/group module state from the consensus version 1 to version 2. Specifically, it changes the group policy account from module account to base account.

func MigrateGenState

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

MigrateGenState accepts exported v0.46 x/auth genesis state and migrates it to v0.47 x/auth genesis state. The migration includes: - If the group module is enabled, replace group policy accounts from module accounts to base accounts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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