Versions in this module Expand all Collapse all v1 v1.0.1 Jul 26, 2023 v1.0.0 Sep 16, 2022 Changes in this version + const ExceedBlockGasLimitError + func AllTxLogsFromEvents(events []abci.Event) ([][]*ethtypes.Log, error) + func GetLogsFromBlockResults(blockRes *tmrpctypes.ResultBlockResults) ([][]*ethtypes.Log, error) + func ParseTxLogsFromEvent(event abci.Event) ([]*ethtypes.Log, error) + func ShouldIgnoreGasUsed(res *abci.ResponseDeliverTx) bool + func TxExceedBlockGasLimit(res *abci.ResponseDeliverTx) bool + func TxLogsFromEvents(events []abci.Event, msgIndex int) ([]*ethtypes.Log, error) + func TxSuccessOrExceedsBlockGasLimit(res *abci.ResponseDeliverTx) bool + type Backend struct + func NewBackend(ctx *server.Context, logger log.Logger, clientCtx client.Context, ...) *Backend + func (b *Backend) BaseFee(blockRes *tmrpctypes.ResultBlockResults) (*big.Int, error) + func (b *Backend) BlockBloom(blockRes *tmrpctypes.ResultBlockResults) (ethtypes.Bloom, error) + func (b *Backend) BlockByHash(hash common.Hash) (*ethtypes.Block, error) + func (b *Backend) BlockByNumber(blockNum types.BlockNumber) (*ethtypes.Block, error) + func (b *Backend) BlockNumber() (hexutil.Uint64, error) + func (b *Backend) BloomStatus() (uint64, uint64) + func (b *Backend) ChainConfig() *params.ChainConfig + func (b *Backend) CurrentHeader() *ethtypes.Header + func (b *Backend) EstimateGas(args evmtypes.TransactionArgs, blockNrOptional *types.BlockNumber) (hexutil.Uint64, error) + func (b *Backend) EthBlockFromTendermint(resBlock *tmrpctypes.ResultBlock, blockRes *tmrpctypes.ResultBlockResults, ...) (map[string]interface{}, error) + func (b *Backend) EthBlockFromTm(resBlock *tmrpctypes.ResultBlock, blockRes *tmrpctypes.ResultBlockResults) (*ethtypes.Block, error) + func (b *Backend) FeeHistory(userBlockCount rpc.DecimalOrHex, lastBlock rpc.BlockNumber, ...) (*types.FeeHistoryResult, error) + func (b *Backend) GetBlockByHash(hash common.Hash, fullTx bool) (map[string]interface{}, error) + func (b *Backend) GetBlockByNumber(blockNum types.BlockNumber, fullTx bool) (map[string]interface{}, error) + func (b *Backend) GetBlockNumberByHash(blockHash common.Hash) (*big.Int, error) + func (b *Backend) GetCoinbase() (sdk.AccAddress, error) + func (b *Backend) GetEthereumMsgsFromTendermintBlock(resBlock *tmrpctypes.ResultBlock, blockRes *tmrpctypes.ResultBlockResults) []*evmtypes.MsgEthereumTx + func (b *Backend) GetLogs(hash common.Hash) ([][]*ethtypes.Log, error) + func (b *Backend) GetLogsByHeight(height *int64) ([][]*ethtypes.Log, error) + func (b *Backend) GetTendermintBlockByHash(blockHash common.Hash) (*tmrpctypes.ResultBlock, error) + func (b *Backend) GetTendermintBlockByNumber(blockNum types.BlockNumber) (*tmrpctypes.ResultBlock, error) + func (b *Backend) GetTendermintBlockResultByNumber(height *int64) (*tmrpctypes.ResultBlockResults, error) + func (b *Backend) GetTransactionByHash(txHash common.Hash) (*types.RPCTransaction, error) + func (b *Backend) GetTransactionCount(address common.Address, blockNum types.BlockNumber) (*hexutil.Uint64, error) + func (b *Backend) GetTxByEthHash(hash common.Hash) (*tmrpctypes.ResultTx, error) + func (b *Backend) GetTxByTxIndex(height int64, index uint) (*tmrpctypes.ResultTx, error) + func (b *Backend) GlobalMinGasPrice() (sdk.Dec, error) + func (b *Backend) HeaderByHash(blockHash common.Hash) (*ethtypes.Header, error) + func (b *Backend) HeaderByNumber(blockNum types.BlockNumber) (*ethtypes.Header, error) + func (b *Backend) PendingTransactions() ([]*sdk.Tx, error) + func (b *Backend) RPCBlockRangeCap() int32 + func (b *Backend) RPCEVMTimeout() time.Duration + func (b *Backend) RPCFeeHistoryCap() int32 + func (b *Backend) RPCFilterCap() int32 + func (b *Backend) RPCGasCap() uint64 + func (b *Backend) RPCLogsCap() int32 + func (b *Backend) RPCMinGasPrice() int64 + func (b *Backend) RPCTxFeeCap() float64 + func (b *Backend) SendTransaction(args evmtypes.TransactionArgs) (common.Hash, error) + func (b *Backend) SetTxDefaults(args evmtypes.TransactionArgs) (evmtypes.TransactionArgs, error) + func (b *Backend) SuggestGasTipCap(baseFee *big.Int) (*big.Int, error) + func (b Backend) UnprotectedAllowed() bool + type BackendI interface + type CosmosBackend interface + type EVMBackend interface + BaseFee func(blockRes *tmrpctypes.ResultBlockResults) (*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) + GetBlockNumberByHash func(blockHash common.Hash) (*big.Int, error) + GetCoinbase func() (sdk.AccAddress, error) + GetEthereumMsgsFromTendermintBlock func(block *tmrpctypes.ResultBlock, blockRes *tmrpctypes.ResultBlockResults) []*evmtypes.MsgEthereumTx + 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) + GetTendermintBlockResultByNumber func(height *int64) (*tmrpctypes.ResultBlockResults, error) + GetTransactionByHash func(txHash common.Hash) (*types.RPCTransaction, error) + GetTransactionCount func(address common.Address, blockNum types.BlockNumber) (*hexutil.Uint64, error) + GetTxByEthHash func(txHash common.Hash) (*tmrpctypes.ResultTx, error) + GetTxByTxIndex func(height int64, txIndex uint) (*tmrpctypes.ResultTx, error) + GlobalMinGasPrice func() (sdk.Dec, 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(baseFee *big.Int) (*big.Int, error) + UnprotectedAllowed func() bool