v9

package
v9.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpgradeName = "v9.0.0"
)

Variables

This section is empty.

Functions

func CreateUpgradeHandler

func CreateUpgradeHandler(
	mm *module.Manager,
	configurator module.Configurator,
	storeKeys map[string]*storetypes.KVStoreKey,
	appCodec codec.Codec,
	accountKeeper authkeeper.AccountKeeper,
	evmKeeper EvmKeeper,
	erc20Keeper ERC20Keeper,
) upgradetypes.UpgradeHandler

func MigrateErc20Module

func MigrateErc20Module(ctx sdk.Context, keys map[string]*storetypes.KVStoreKey, keeper ERC20Keeper)

func MigrateEthAccountsToBaseAccounts

func MigrateEthAccountsToBaseAccounts(ctx sdk.Context, ak authkeeper.AccountKeeper, ek EvmKeeper)

MigrateEthAccountsToBaseAccounts is used to store the code hash of the associated smart contracts in the dedicated store in the EVM module and convert the former EthAccounts to standard Cosmos SDK accounts.

func MigrateEvmModule

func MigrateEvmModule(ctx sdk.Context, keys map[string]*storetypes.KVStoreKey, codec codec.Codec, evmKeeper EvmKeeper) error

Types

type ERC20Keeper

type ERC20Keeper interface {
	SetDynamicPrecompile(ctx sdk.Context, precompile common.Address)
	SetNativePrecompile(ctx sdk.Context, precompile common.Address)
}

type EvmKeeper

type EvmKeeper interface {
	GetParams(ctx sdk.Context) evmtypes.Params
	SetParams(ctx sdk.Context, params evmtypes.Params) error
	SetCodeHash(ctx sdk.Context, addrBytes, hashBytes []byte)
}

Jump to

Keyboard shortcuts

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