package
2.0.0+incompatible
Repository: https://github.com/okex/exchain.git
Documentation: pkg.go.dev

# Functions

BlockMaxGasFromConsensusParams returns the gas limit for the latest block from the chain consensus params.
No description provided by the author
No description provided by the author
EthHeaderFromTendermint is an util function that returns an Ethereum Header from a tendermint Header.
EthHeaderWithBlockHashFromTendermint gets the eth Header with block hash from Tendermint block inside.
EthTransactionsFromTendermint returns a slice of ethereum transaction hashes and the total gas usage from a set of tendermint block transactions.
FormatBlock creates an ethereum block from a tendermint header and ethereum-formatted transactions.
GetBlockCumulativeGas returns the cumulative gas used on a block up to a given transaction index.
GetKeyByAddress returns the private key matching the given address.
NewBlockNumber creates a new BlockNumber instance.
RawTxToEthTx returns a evm MsgEthereum transaction from raw tx bytes.
RpcBlockFromTendermint returns a JSON-RPC compatible Ethereum blockfrom a given Tendermint block.
No description provided by the author

# Constants

EarliestBlockNumber mapping from "earliest" to 1 for tm query (earliest query not supported).
LatestBlockNumber mapping from "latest" to 0 for tm query.
PendingBlockNumber mapping from "pending" to -1 for tm query.

# Variables

No description provided by the author

# Structs

Account indicates the overriding fields of account during the execution of a message call.
AccountResult struct for account proof.
AddrLocker is a mutex structure used to avoid querying outdated account data.
No description provided by the author
CallArgs represents the arguments for a call.
EthHeaderWithBlockHash represents a block header in the Ethereum blockchain with block hash generated from Tendermint Block.
No description provided by the author
SendTxArgs represents the arguments to submit a new transaction into the transaction pool.
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.