interfaces

package
v0.4.9-rc9 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicFeeEVMKeeper

type DynamicFeeEVMKeeper interface {
	ChainID() *big.Int
	GetParams(ctx cosmos.Context) evmtypes.Params
	GetBaseFee(ctx cosmos.Context, ethCfg *params.ChainConfig) *big.Int
}

DynamicFeeEVMKeeper is a subset of EVMKeeper interface that supports dynamic fee checker

type EVMKeeper

type EVMKeeper interface {
	states.Keeper
	DynamicFeeEVMKeeper

	NewEVM(ctx cosmos.Context, msg *core.Message, cfg *states.EVMConfig, tracer vm.EVMLogger, stateDB vm.StateDB) *vm.EVM
	DeductTxCostsFromUserBalance(ctx cosmos.Context, fees cosmos.Coins, from common.Address) error
	GetBalance(ctx cosmos.Context, addr common.Address) *big.Int
	ResetTransientGasUsed(ctx cosmos.Context)
	GetTxIndexTransient(ctx cosmos.Context) uint64
	GetParams(ctx cosmos.Context) evmtypes.Params
	GetChainConfig(ctx cosmos.Context) *params.ChainConfig
	VerifySig(ctx cosmos.Context, tx *ethereum.Transaction) (common.Address, []byte, error)
	EVMConfigFromCtx(ctx cosmos.Context) (*states.EVMConfig, error)
	GetBlockContext() *artvmtype.EthBlockContext
	MakeSigner(ctx cosmos.Context, tx *ethereum.Transaction, config *params.ChainConfig, blockNumber *big.Int, blockTime uint64) ethereum.Signer
}

EVMKeeper defines the expected keeper interface used on the AnteHandler

type FeeKeeper

type FeeKeeper interface {
	GetParams(ctx cosmos.Context) (params feemodule.Params)
	AddTransientGasWanted(ctx cosmos.Context, gasWanted uint64) (uint64, error)
	GetBaseFeeEnabled(ctx cosmos.Context) bool
}

type ProtoTxProvider

type ProtoTxProvider interface {
	GetProtoTx() *tx.Tx
}

Jump to

Keyboard shortcuts

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