evm

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName        = types.ModuleName
	StoreKey          = types.StoreKey
	RouterKey         = types.RouterKey
	DefaultParamspace = types.DefaultParamspace
)

nolint

Variables

View Source
var (
	NewKeeper            = keeper.NewKeeper
	TxDecoder            = types.TxDecoder
	NewSimulateKeeper    = keeper.NewSimulateKeeper
	NewLogProcessEvmHook = keeper.NewLogProcessEvmHook
	NewMultiEvmHooks     = keeper.NewMultiEvmHooks
)

nolint

View Source
var (
	ErrNoMatchParam = errors.New("no match the abi param")
)

Functions

func CloseDB

func CloseDB()

func DecodeParam added in v1.6.6

func DecodeParam(data []byte) ([]byte, error)

func EncodeResultData added in v1.6.6

func EncodeResultData(txHash, data []byte) ([]byte, error)

func EvmConvertJudge added in v1.6.6

func EvmConvertJudge(msg sdk.Msg) ([]byte, bool)

func EvmParamParse added in v1.6.6

func EvmParamParse(msg sdk.Msg) ([]byte, error)

func InitGenesis

func InitGenesis(ctx sdk.Context, k Keeper, accountKeeper types.AccountKeeper, data GenesisState) []abci.ValidatorUpdate

InitGenesis initializes genesis state based on exported genesis

func IsMatchSystemContractFunction added in v1.6.6

func IsMatchSystemContractFunction(data []byte) bool

func NewHandler

func NewHandler(k *Keeper) sdk.Handler

NewHandler returns a handler for Ethermint type messages.

func NewManageContractDeploymentWhitelistProposalHandler

func NewManageContractDeploymentWhitelistProposalHandler(k *Keeper) govTypes.Handler

NewManageContractDeploymentWhitelistProposalHandler handles "gov" type message in "evm"

func ParseContractParam added in v1.6.6

func ParseContractParam(input []byte) ([]byte, error)

func RegisterHandle added in v1.6.6

func RegisterHandle()

func WithMoreDeocder added in v1.3.0

func WithMoreDeocder(cdc *codec.Codec, cc sdk.TxDecoder) sdk.TxDecoder

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

AppModule implements an application module for the evm module.

func NewAppModule

func NewAppModule(k *Keeper, ak types.AccountKeeper) AppModule

NewAppModule creates a new AppModule Object

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)

BeginBlock function for module at start of each block

func (AppModule) EndBlock

func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate

EndBlock function for module at end of block

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage

ExportGenesis exports the genesis state to be used by daemon

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate

InitGenesis instantiates the genesis state

func (AppModule) Name

func (AppModule) Name() string

Name is module name

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler sets up a new handler for module

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler sets up new querier handler for module

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

QuerierRoute sets up path for queries

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

RegisterInvariants interface for registering invariants

func (AppModule) Route

func (am AppModule) Route() string

Route specifies path for transactions

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic struct

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis is json default structure

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

GetQueryCmd Gets the root query command of this module

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

GetTxCmd Gets the root tx command of this module

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name for app module basic

func (AppModuleBasic) RegisterCodec

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

RegisterCodec registers types for module

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)

RegisterRESTRoutes Registers rest routes

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

ValidateGenesis is the validation check of the Genesis

type EvmLogHandler added in v1.6.6

type EvmLogHandler = types.EvmLogHandler

nolint

type GenesisState

type GenesisState = types.GenesisState

nolint

func ExportGenesis

func ExportGenesis(ctx sdk.Context, k Keeper, ak types.AccountKeeper) GenesisState

ExportGenesis exports genesis state of the EVM module

type Keeper

type Keeper = keeper.Keeper

nolint

Directories

Path Synopsis
cli
legacy
txs

Jump to

Keyboard shortcuts

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