v2

package
v0.2.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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 context.Context,
	storeService store.KVStoreService,
	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, addressCodec address.Codec) *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