package
1.2.0-dhobyghaut
Repository: https://github.com/functionx/fx-core.git
Documentation: pkg.go.dev
# Functions
AccumulativeGasUsedOfMsg accumulate the gas used by msgs before `msgIndex`.
BaseFeeFromEvents parses the feemarket basefee from cosmos events.
BlockMaxGasFromConsensusParams returns the gas limit for the current block from the chain consensus params.
ContextWithHeight wraps a context with the a gRPC block height header.
No description provided by the author
EthHeaderFromTendermint is an util function that returns an Ethereum Header from a tendermint Header.
FindAttribute find event attribute with specified key, if not found returns nil.
FindTxAttributes returns the msg index of the eth tx in cosmos tx, and the attributes, returns -1 and nil if not found.
FindTxAttributesByIndex search the msg in tx events by txIndex returns the msgIndex, returns -1 if not found.
FormatBlock creates an ethereum block from a tendermint header and ethereum-formatted transactions.
GetUint64Attribute parses the uint64 value from event attributes.
NewBlockNumber creates a new BlockNumber instance.
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).
RawTxToEthTx returns a evm MsgEthereum transaction from raw tx bytes.
# 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
# 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.
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.
No description provided by the author
SignTransactionResult represents a RLP encoded signed transaction.
StorageResult defines the format for storage proof return.
# Interfaces
No description provided by the author
# Type aliases
BlockNumber represents decoding hex string to block values.
StateOverride is the collection of overridden accounts.