Versions in this module Expand all Collapse all v0 v0.9.1 Dec 24, 2021 Changes in this version + func TxLogsFromEvents(events []abci.Event) ([]*ethtypes.Log, error) + type Backend interface + BaseFee func(height int64) (*big.Int, error) + BlockByHash func(blockHash common.Hash) (*ethtypes.Block, error) + BlockByNumber func(blockNum types.BlockNumber) (*ethtypes.Block, error) + BlockNumber func() (hexutil.Uint64, error) + BloomStatus func() (uint64, uint64) + ChainConfig func() *params.ChainConfig + CurrentHeader func() *ethtypes.Header + EstimateGas func(args evmtypes.TransactionArgs, blockNrOptional *types.BlockNumber) (hexutil.Uint64, error) + FeeHistory func(blockCount rpc.DecimalOrHex, lastBlock rpc.BlockNumber, ...) (*types.FeeHistoryResult, error) + GetBlockByHash func(hash common.Hash, fullTx bool) (map[string]interface{}, error) + GetBlockByNumber func(blockNum types.BlockNumber, fullTx bool) (map[string]interface{}, error) + GetCoinbase func() (sdk.AccAddress, error) + GetEthereumMsgsFromTendermintBlock func(block *tmrpctypes.ResultBlock, blockRes *tmrpctypes.ResultBlockResults) []*evmtypes.MsgEthereumTx + GetFilteredBlocks func(from int64, to int64, filter [][]filters.BloomIV, filterAddresses bool) ([]int64, error) + GetLogs func(hash common.Hash) ([][]*ethtypes.Log, error) + GetLogsByHeight func(height *int64) ([][]*ethtypes.Log, error) + GetTendermintBlockByHash func(blockHash common.Hash) (*tmrpctypes.ResultBlock, error) + GetTendermintBlockByNumber func(blockNum types.BlockNumber) (*tmrpctypes.ResultBlock, error) + GetTransactionByHash func(txHash common.Hash) (*types.RPCTransaction, error) + GetTransactionCount func(address common.Address, blockNum types.BlockNumber) (*hexutil.Uint64, error) + GetTransactionLogs func(txHash common.Hash) ([]*ethtypes.Log, error) + GetTxByEthHash func(txHash common.Hash) (*tmrpctypes.ResultTx, error) + GetTxByTxIndex func(height int64, txIndex uint) (*tmrpctypes.ResultTx, error) + HeaderByHash func(blockHash common.Hash) (*ethtypes.Header, error) + HeaderByNumber func(blockNum types.BlockNumber) (*ethtypes.Header, error) + PendingTransactions func() ([]*sdk.Tx, error) + RPCEVMTimeout func() time.Duration + RPCGasCap func() uint64 + RPCMinGasPrice func() int64 + RPCTxFeeCap func() float64 + SendTransaction func(args evmtypes.TransactionArgs) (common.Hash, error) + SetTxDefaults func(args evmtypes.TransactionArgs) (evmtypes.TransactionArgs, error) + SuggestGasTipCap func() (*big.Int, error) + type EVMBackend struct + func NewEVMBackend(ctx *server.Context, logger log.Logger, clientCtx client.Context) *EVMBackend + func (e *EVMBackend) BaseFee(height int64) (*big.Int, error) + func (e *EVMBackend) BlockBloom(height *int64) (ethtypes.Bloom, error) + func (e *EVMBackend) BlockByHash(hash common.Hash) (*ethtypes.Block, error) + func (e *EVMBackend) BlockByNumber(blockNum types.BlockNumber) (*ethtypes.Block, error) + func (e *EVMBackend) BlockNumber() (hexutil.Uint64, error) + func (e *EVMBackend) BloomStatus() (uint64, uint64) + func (e *EVMBackend) ChainConfig() *params.ChainConfig + func (e *EVMBackend) CurrentHeader() *ethtypes.Header + func (e *EVMBackend) EstimateGas(args evmtypes.TransactionArgs, blockNrOptional *types.BlockNumber) (hexutil.Uint64, error) + func (e *EVMBackend) EthBlockFromTendermint(block *tmtypes.Block, fullTx bool) (map[string]interface{}, error) + func (e *EVMBackend) EthBlockFromTm(block *tmtypes.Block) (*ethtypes.Block, error) + func (e *EVMBackend) FeeHistory(userBlockCount rpc.DecimalOrHex, lastBlock rpc.BlockNumber, ...) (*rpctypes.FeeHistoryResult, error) + func (e *EVMBackend) GetBlockByHash(hash common.Hash, fullTx bool) (map[string]interface{}, error) + func (e *EVMBackend) GetBlockByNumber(blockNum types.BlockNumber, fullTx bool) (map[string]interface{}, error) + func (e *EVMBackend) GetCoinbase() (sdk.AccAddress, error) + func (e *EVMBackend) GetEthereumMsgsFromTendermintBlock(block *tmrpctypes.ResultBlock, blockRes *tmrpctypes.ResultBlockResults) []*evmtypes.MsgEthereumTx + func (e *EVMBackend) GetFilteredBlocks(from int64, to int64, filters [][]filters.BloomIV, filterAddresses bool) ([]int64, error) + func (e *EVMBackend) GetLogs(hash common.Hash) ([][]*ethtypes.Log, error) + func (e *EVMBackend) GetLogsByHeight(height *int64) ([][]*ethtypes.Log, error) + func (e *EVMBackend) GetLogsByNumber(blockNum types.BlockNumber) ([][]*ethtypes.Log, error) + func (e *EVMBackend) GetTendermintBlockByHash(blockHash common.Hash) (*tmrpctypes.ResultBlock, error) + func (e *EVMBackend) GetTendermintBlockByNumber(blockNum types.BlockNumber) (*tmrpctypes.ResultBlock, error) + func (e *EVMBackend) GetTransactionByHash(txHash common.Hash) (*types.RPCTransaction, error) + func (e *EVMBackend) GetTransactionCount(address common.Address, blockNum types.BlockNumber) (*hexutil.Uint64, error) + func (e *EVMBackend) GetTransactionLogs(txHash common.Hash) ([]*ethtypes.Log, error) + func (e *EVMBackend) GetTxByEthHash(hash common.Hash) (*tmrpctypes.ResultTx, error) + func (e *EVMBackend) GetTxByTxIndex(height int64, index uint) (*tmrpctypes.ResultTx, error) + func (e *EVMBackend) HeaderByHash(blockHash common.Hash) (*ethtypes.Header, error) + func (e *EVMBackend) HeaderByNumber(blockNum types.BlockNumber) (*ethtypes.Header, error) + func (e *EVMBackend) PendingTransactions() ([]*sdk.Tx, error) + func (e *EVMBackend) RPCEVMTimeout() time.Duration + func (e *EVMBackend) RPCFeeHistoryCap() int32 + func (e *EVMBackend) RPCFilterCap() int32 + func (e *EVMBackend) RPCGasCap() uint64 + func (e *EVMBackend) RPCMinGasPrice() int64 + func (e *EVMBackend) RPCTxFeeCap() float64 + func (e *EVMBackend) SendTransaction(args evmtypes.TransactionArgs) (common.Hash, error) + func (e *EVMBackend) SetTxDefaults(args evmtypes.TransactionArgs) (evmtypes.TransactionArgs, error) + func (e *EVMBackend) SuggestGasTipCap() (*big.Int, error)