Versions in this module Expand all Collapse all v0 v0.24.0 Nov 28, 2024 Changes in this version + func AllTxLogsFromEvents(events []abci.Event) ([][]*ethtypes.Log, error) + func GetHexProofs(proof *crypto.ProofOps) []string + func GetLogsFromBlockResults(blockRes *tmrpctypes.ResultBlockResults) ([][]*ethtypes.Log, error) + func ParseTxLogsFromEvent(event abci.Event) ([]*ethtypes.Log, error) + func ShouldIgnoreGasUsed(res *abci.ResponseDeliverTx) bool + func TxLogsFromEvents(events []abci.Event, msgIndex int) ([]*ethtypes.Log, error) + type Backend struct + func NewBackend(ctx *server.Context, logger log.Logger, clientCtx client.Context, ...) *Backend + func (b *Backend) Accounts() ([]common.Address, error) + func (b *Backend) BaseFee(blockRes *tmrpctypes.ResultBlockResults) (*big.Int, error) + func (b *Backend) BlockBloom(blockRes *tmrpctypes.ResultBlockResults) (ethtypes.Bloom, error) + func (b *Backend) BlockNumber() (hexutil.Uint64, error) + func (b *Backend) BlockNumberFromTendermint(blockNrOrHash rpctypes.BlockNumberOrHash) (rpctypes.BlockNumber, error) + func (b *Backend) BlockNumberFromTendermintByHash(blockHash common.Hash) (*big.Int, error) + func (b *Backend) BloomStatus() (uint64, uint64) + func (b *Backend) ChainConfig() *params.ChainConfig + func (b *Backend) ChainID() (*hexutil.Big, error) + func (b *Backend) CurrentHeader() *ethtypes.Header + func (b *Backend) DoCall(args evmtypes.TransactionArgs, blockNr rpctypes.BlockNumber) (*evmtypes.MsgEthereumTxResponse, error) + func (b *Backend) EstimateGas(args evmtypes.TransactionArgs, blockNrOptional *rpctypes.BlockNumber) (hexutil.Uint64, error) + func (b *Backend) EthBlockByNumber(blockNum rpctypes.BlockNumber) (*ethtypes.Block, error) + func (b *Backend) EthBlockFromTendermintBlock(resBlock *tmrpctypes.ResultBlock, blockRes *tmrpctypes.ResultBlockResults) (*ethtypes.Block, error) + func (b *Backend) EthMsgsFromTendermintBlock(resBlock *tmrpctypes.ResultBlock, blockRes *tmrpctypes.ResultBlockResults) []*evmtypes.MsgEthereumTx + func (b *Backend) FeeHistory(userBlockCount rpc.DecimalOrHex, lastBlock rpc.BlockNumber, ...) (*rpctypes.FeeHistoryResult, error) + func (b *Backend) GasPrice() (*hexutil.Big, error) + func (b *Backend) GetBalance(address common.Address, blockNrOrHash rpctypes.BlockNumberOrHash) (*hexutil.Big, error) + func (b *Backend) GetBlockByHash(hash common.Hash, fullTx bool) (map[string]interface{}, error) + func (b *Backend) GetBlockByNumber(blockNum rpctypes.BlockNumber, fullTx bool) (map[string]interface{}, error) + func (b *Backend) GetBlockTransactionCount(block *tmrpctypes.ResultBlock) *hexutil.Uint + func (b *Backend) GetBlockTransactionCountByHash(hash common.Hash) *hexutil.Uint + func (b *Backend) GetBlockTransactionCountByNumber(blockNum rpctypes.BlockNumber) *hexutil.Uint + func (b *Backend) GetCode(address common.Address, blockNrOrHash rpctypes.BlockNumberOrHash) (hexutil.Bytes, error) + func (b *Backend) GetCoinbase() (sdk.AccAddress, error) + func (b *Backend) GetGasUsed(res *ethermint.TxResult, price *big.Int, gas uint64) uint64 + func (b *Backend) GetLogs(hash common.Hash) ([][]*ethtypes.Log, error) + func (b *Backend) GetLogsByHeight(height *int64) ([][]*ethtypes.Log, error) + func (b *Backend) GetProof(address common.Address, storageKeys []string, ...) (*rpctypes.AccountResult, error) + func (b *Backend) GetStorageAt(address common.Address, key string, blockNrOrHash rpctypes.BlockNumberOrHash) (hexutil.Bytes, error) + func (b *Backend) GetTransactionByBlockAndIndex(block *tmrpctypes.ResultBlock, idx hexutil.Uint) (*rpctypes.RPCTransaction, error) + func (b *Backend) GetTransactionByBlockHashAndIndex(hash common.Hash, idx hexutil.Uint) (*rpctypes.RPCTransaction, error) + func (b *Backend) GetTransactionByBlockNumberAndIndex(blockNum rpctypes.BlockNumber, idx hexutil.Uint) (*rpctypes.RPCTransaction, error) + func (b *Backend) GetTransactionByHash(txHash common.Hash) (*rpctypes.RPCTransaction, error) + func (b *Backend) GetTransactionCount(address common.Address, blockNum rpctypes.BlockNumber) (*hexutil.Uint64, error) + func (b *Backend) GetTransactionReceipt(hash common.Hash) (map[string]interface{}, error) + func (b *Backend) GetTxByEthHash(hash common.Hash) (*ethermint.TxResult, error) + func (b *Backend) GetTxByTxIndex(height int64, index uint) (*ethermint.TxResult, error) + func (b *Backend) GlobalMinGasPrice() (sdk.Dec, error) + func (b *Backend) HeaderByHash(blockHash common.Hash) (*ethtypes.Header, error) + func (b *Backend) HeaderByNumber(blockNum rpctypes.BlockNumber) (*ethtypes.Header, error) + func (b *Backend) ImportRawKey(privkey, password string) (common.Address, error) + func (b *Backend) ListAccounts() ([]common.Address, error) + func (b *Backend) NewMnemonic(uid string, _ keyring.Language, hdPath, bip39Passphrase string, ...) (*keyring.Record, error) + func (b *Backend) PendingTransactions() ([]*sdk.Tx, error) + func (b *Backend) RPCBlockFromTendermintBlock(resBlock *tmrpctypes.ResultBlock, blockRes *tmrpctypes.ResultBlockResults, ...) (map[string]interface{}, 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) Resend(args evmtypes.TransactionArgs, gasPrice *hexutil.Big, gasLimit *hexutil.Uint64) (common.Hash, error) + func (b *Backend) SendRawTransaction(data hexutil.Bytes) (common.Hash, error) + func (b *Backend) SendTransaction(args evmtypes.TransactionArgs) (common.Hash, error) + func (b *Backend) SetEtherbase(etherbase common.Address) bool + func (b *Backend) SetGasPrice(gasPrice hexutil.Big) bool + func (b *Backend) SetTxDefaults(args evmtypes.TransactionArgs) (evmtypes.TransactionArgs, error) + func (b *Backend) Sign(address common.Address, data hexutil.Bytes) (hexutil.Bytes, error) + func (b *Backend) SignTypedData(address common.Address, typedData apitypes.TypedData) (hexutil.Bytes, error) + func (b *Backend) SuggestGasTipCap(baseFee *big.Int) (*big.Int, error) + func (b *Backend) Syncing() (interface{}, error) + func (b *Backend) TendermintBlockByHash(blockHash common.Hash) (*tmrpctypes.ResultBlock, error) + func (b *Backend) TendermintBlockByNumber(blockNum rpctypes.BlockNumber) (*tmrpctypes.ResultBlock, error) + func (b *Backend) TendermintBlockResultByNumber(height *int64) (*tmrpctypes.ResultBlockResults, error) + func (b *Backend) TraceBlock(height rpctypes.BlockNumber, config *evmtypes.TraceConfig, ...) ([]*evmtypes.TxTraceResult, error) + func (b *Backend) TraceTransaction(hash common.Hash, config *evmtypes.TraceConfig) (interface{}, error) + func (b Backend) UnprotectedAllowed() bool + type BackendI interface + type CosmosBackend interface + type EVMBackend interface + Accounts func() ([]common.Address, error) + BaseFee func(blockRes *tmrpctypes.ResultBlockResults) (*big.Int, error) + BlockBloom func(blockRes *tmrpctypes.ResultBlockResults) (ethtypes.Bloom, error) + BlockNumber func() (hexutil.Uint64, error) + BlockNumberFromTendermint func(blockNrOrHash rpctypes.BlockNumberOrHash) (rpctypes.BlockNumber, error) + BlockNumberFromTendermintByHash func(blockHash common.Hash) (*big.Int, error) + BloomStatus func() (uint64, uint64) + ChainConfig func() *params.ChainConfig + ChainID func() (*hexutil.Big, error) + CurrentHeader func() *ethtypes.Header + DoCall func(args evmtypes.TransactionArgs, blockNr rpctypes.BlockNumber) (*evmtypes.MsgEthereumTxResponse, error) + EstimateGas func(args evmtypes.TransactionArgs, blockNrOptional *rpctypes.BlockNumber) (hexutil.Uint64, error) + EthBlockByNumber func(blockNum rpctypes.BlockNumber) (*ethtypes.Block, error) + EthBlockFromTendermintBlock func(resBlock *tmrpctypes.ResultBlock, blockRes *tmrpctypes.ResultBlockResults) (*ethtypes.Block, error) + EthMsgsFromTendermintBlock func(block *tmrpctypes.ResultBlock, blockRes *tmrpctypes.ResultBlockResults) []*evmtypes.MsgEthereumTx + FeeHistory func(blockCount rpc.DecimalOrHex, lastBlock rpc.BlockNumber, ...) (*rpctypes.FeeHistoryResult, error) + GasPrice func() (*hexutil.Big, error) + GetBalance func(address common.Address, blockNrOrHash rpctypes.BlockNumberOrHash) (*hexutil.Big, error) + GetBlockByHash func(hash common.Hash, fullTx bool) (map[string]interface{}, error) + GetBlockByNumber func(blockNum rpctypes.BlockNumber, fullTx bool) (map[string]interface{}, error) + GetBlockTransactionCountByHash func(hash common.Hash) *hexutil.Uint + GetBlockTransactionCountByNumber func(blockNum rpctypes.BlockNumber) *hexutil.Uint + GetCode func(address common.Address, blockNrOrHash rpctypes.BlockNumberOrHash) (hexutil.Bytes, error) + GetCoinbase func() (sdk.AccAddress, error) + GetLogs func(hash common.Hash) ([][]*ethtypes.Log, error) + GetLogsByHeight func(height *int64) ([][]*ethtypes.Log, error) + GetProof func(address common.Address, storageKeys []string, ...) (*rpctypes.AccountResult, error) + GetStorageAt func(address common.Address, key string, blockNrOrHash rpctypes.BlockNumberOrHash) (hexutil.Bytes, error) + GetTransactionByBlockAndIndex func(block *tmrpctypes.ResultBlock, idx hexutil.Uint) (*rpctypes.RPCTransaction, error) + GetTransactionByBlockHashAndIndex func(hash common.Hash, idx hexutil.Uint) (*rpctypes.RPCTransaction, error) + GetTransactionByBlockNumberAndIndex func(blockNum rpctypes.BlockNumber, idx hexutil.Uint) (*rpctypes.RPCTransaction, error) + GetTransactionByHash func(txHash common.Hash) (*rpctypes.RPCTransaction, error) + GetTransactionCount func(address common.Address, blockNum rpctypes.BlockNumber) (*hexutil.Uint64, error) + GetTransactionReceipt func(hash common.Hash) (map[string]interface{}, error) + GetTxByEthHash func(txHash common.Hash) (*ethermint.TxResult, error) + GetTxByTxIndex func(height int64, txIndex uint) (*ethermint.TxResult, error) + GlobalMinGasPrice func() (sdk.Dec, error) + HeaderByHash func(blockHash common.Hash) (*ethtypes.Header, error) + HeaderByNumber func(blockNum rpctypes.BlockNumber) (*ethtypes.Header, error) + ImportRawKey func(privkey, password string) (common.Address, error) + ListAccounts func() ([]common.Address, error) + NewMnemonic func(uid string, language keyring.Language, hdPath, bip39Passphrase string, ...) (*keyring.Record, error) + PendingTransactions func() ([]*sdk.Tx, error) + RPCBlockFromTendermintBlock func(resBlock *tmrpctypes.ResultBlock, blockRes *tmrpctypes.ResultBlockResults, ...) (map[string]interface{}, error) + RPCEVMTimeout func() time.Duration + RPCGasCap func() uint64 + RPCMinGasPrice func() int64 + RPCTxFeeCap func() float64 + Resend func(args evmtypes.TransactionArgs, gasPrice *hexutil.Big, gasLimit *hexutil.Uint64) (common.Hash, error) + SendRawTransaction func(data hexutil.Bytes) (common.Hash, error) + SendTransaction func(args evmtypes.TransactionArgs) (common.Hash, error) + SetEtherbase func(etherbase common.Address) bool + SetGasPrice func(gasPrice hexutil.Big) bool + SetTxDefaults func(args evmtypes.TransactionArgs) (evmtypes.TransactionArgs, error) + Sign func(address common.Address, data hexutil.Bytes) (hexutil.Bytes, error) + SignTypedData func(address common.Address, typedData apitypes.TypedData) (hexutil.Bytes, error) + SuggestGasTipCap func(baseFee *big.Int) (*big.Int, error) + Syncing func() (interface{}, error) + TendermintBlockByHash func(blockHash common.Hash) (*tmrpctypes.ResultBlock, error) + TendermintBlockByNumber func(blockNum rpctypes.BlockNumber) (*tmrpctypes.ResultBlock, error) + TendermintBlockResultByNumber func(height *int64) (*tmrpctypes.ResultBlockResults, error) + TraceBlock func(height rpctypes.BlockNumber, config *evmtypes.TraceConfig, ...) ([]*evmtypes.TxTraceResult, error) + TraceTransaction func(hash common.Hash, config *evmtypes.TraceConfig) (interface{}, error) + UnprotectedAllowed func() bool