v9

package
v10.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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