package
0.1.3-beta
Repository: https://github.com/zama-ai/ethermint.git
Documentation: pkg.go.dev

# Functions

BaseFeeFromEvents parses the feemarket basefee from cosmos events.
BlockMaxGasFromConsensusParams returns the gas limit for the current block from the chain consensus params.
CheckTxFee is an internal function used to check whether the fee of the given transaction is _reasonable_(under the cap).
ContextWithHeight wraps a context with the a gRPC block height header.
EthHeaderFromTendermint is an util function that returns an Ethereum Header from a tendermint Header.
FormatBlock creates an ethereum block from a tendermint header and ethereum-formatted transactions.
NewBlockNumber creates a new BlockNumber instance.
NewParsedTx initialize a ParsedTx.
NewQueryClient creates a new gRPC query client.
NewTransactionFromData returns a transaction that will serialize to the RPC representation, with the given location metadata set (if available).
NewTransactionFromMsg returns a transaction that will serialize to the RPC representation, with the given location metadata set (if available).
ParseTxIndexerResult parse tm tx result to a format compatible with the custom tx indexer.
ParseTxResult parse eth tx infos from cosmos-sdk events.
RawTxToEthTx returns a evm MsgEthereum transaction from raw tx bytes.
TxExceedBlockGasLimit returns true if the tx exceeds block gas limit.
TxSuccessOrExceedsBlockGasLimit returnsrue if the transaction was successful or if it failed with an ExceedBlockGasLimit error.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ExceedBlockGasLimitError defines the error message when tx execution exceeds the block gas limit.

# Structs

AccountResult struct for account proof.
AddrLocker is a mutex structure used to avoid querying outdated account data.
BlockNumberOrHash represents a block number or a block hash.
No description provided by the author
No description provided by the author
OverrideAccount indicates the overriding fields of account during the execution of a message call.
ParsedTx is the tx infos parsed from events.
ParsedTxs is the tx infos parsed from eth tx events.
QueryClient defines a gRPC Client used for: - Transaction simulation - EVM module queries - Fee market module queries.
RPCTransaction represents a transaction that will serialize to the RPC representation of a transaction.
SignTransactionResult represents a RLP encoded signed transaction.
StorageResult defines the format for storage proof return.

# Type aliases

BlockNumber represents decoding hex string to block values.
EventFormat is the format version of the events.
StateOverride is the collection of overridden accounts.