Versions in this module Expand all Collapse all v0 v0.1.1 May 14, 2023 Changes in this version + var EarliestBlockNumber = BlockNumber(1) + var ErrResourceNotFound = errors.New("resource not found") + var LatestBlockNumber = BlockNumber(0) + var PendingBlockNumber = BlockNumber(-1) + func BlockMaxGasFromConsensusParams(_ context.Context, clientCtx clientcontext.CLIContext) (int64, error) + func EthHeaderFromTendermint(header tmtypes.Header) *ethtypes.Header + func EthTransactionsFromTendermint(clientCtx clientcontext.CLIContext, txs []tmtypes.Tx, blockHash common.Hash, ...) (*big.Int, []*watcher.Transaction, error) + func FormatBlock(header tmtypes.Header, size int, curBlockHash tmbytes.HexBytes, gasLimit int64, ...) *evmtypes.Block + func GetBlockCumulativeGas(cdc *codec.Codec, block *tmtypes.Block, idx int) uint64 + func GetEthSender(tr *ctypes.ResultTx) (string, error) + func GetKeyByAddress(keys []ethsecp256k1.PrivKey, address common.Address) (key *ethsecp256k1.PrivKey, exist bool) + func RawTxResultToEthReceipt(chainID *big.Int, tr *ctypes.ResultTx, realTx sdk.Tx, blockHash common.Hash) (*watcher.TransactionResult, error) + func RawTxToEthTx(clientCtx clientcontext.CLIContext, bz []byte, height int64) (*evmtypes.MsgEthereumTx, error) + func RawTxToRealTx(clientCtx clientcontext.CLIContext, bz tmtypes.Tx, blockHash common.Hash, ...) (sdk.Tx, error) + func RpcBlockFromTendermint(clientCtx clientcontext.CLIContext, block *tmtypes.Block, fullTx bool) (*evmtypes.Block, error) + func ToTransaction(tx *evmtypes.MsgEthereumTx, from *common.Address) *watcher.Transaction + type AccountResult struct + AccountProof []string + Address common.Address + Balance *hexutil.Big + CodeHash common.Hash + Nonce hexutil.Uint64 + StorageHash common.Hash + StorageProof []StorageResult + type AddrLocker struct + func (l *AddrLocker) LockAddr(address common.Address) + func (l *AddrLocker) UnlockAddr(address common.Address) + type BlockNumber int64 + func NewBlockNumber(n *big.Int) BlockNumber + func (bn *BlockNumber) UnmarshalJSON(data []byte) error + func (bn BlockNumber) Int64() int64 + func (bn BlockNumber) TmHeight() *int64 + type BlockNumberOrHash struct + BlockHash *common.Hash + BlockNumber *BlockNumber + RequireCanonical bool + func BlockNumberOrHashWithHash(hash common.Hash, canonical bool) BlockNumberOrHash + func BlockNumberOrHashWithNumber(blockNr BlockNumber) BlockNumberOrHash + func (bnh *BlockNumberOrHash) Hash() (common.Hash, bool) + func (bnh *BlockNumberOrHash) Number() (BlockNumber, bool) + func (bnh *BlockNumberOrHash) UnmarshalJSON(data []byte) error + type CallArgs struct + Data *hexutil.Bytes + From *common.Address + Gas *hexutil.Uint64 + GasPrice *hexutil.Big + To *common.Address + Value *hexutil.Big + func (ca CallArgs) String() string + type EthHeaderWithBlockHash struct + Bloom ethtypes.Bloom + Coinbase common.Address + Difficulty *hexutil.Big + Extra hexutil.Bytes + GasLimit hexutil.Uint64 + GasUsed hexutil.Uint64 + Hash common.Hash + MixDigest common.Hash + Nonce ethtypes.BlockNonce + Number *hexutil.Big + ParentHash common.Hash + ReceiptHash common.Hash + Root common.Hash + Time hexutil.Uint64 + TxHash common.Hash + UncleHash common.Hash + func EthHeaderWithBlockHashFromTendermint(tmHeader *tmtypes.Header) (header *EthHeaderWithBlockHash, err error) + type FeeHistoryResult struct + BaseFee []*hexutil.Big + GasUsedRatio []float64 + OldestBlock *hexutil.Big + Reward [][]*hexutil.Big + type GPIn3Gears struct + Average *hexutil.Big + Fastest *hexutil.Big + SafeLow *hexutil.Big + func NewGPIn3Gears(safelow, avg, fastest *big.Int) GPIn3Gears + type SendTxArgs struct + Data *hexutil.Bytes + From *common.Address + Gas *hexutil.Uint64 + GasPrice *hexutil.Big + Input *hexutil.Bytes + Nonce *hexutil.Uint64 + To *common.Address + Value *hexutil.Big + func (ca SendTxArgs) String() string + type SignTransactionResult struct + Raw hexutil.Bytes + Tx *watcher.Transaction + type StorageResult struct + Key string + Proof []string + Value *hexutil.Big