package
2.2.0+incompatible
Repository: https://github.com/dispatchlabs/disgo.git
Documentation: pkg.go.dev
# Packages
Package abi implements the Ethereum ABI (Application Binary Interface).
Package common contains various helper functions.
No description provided by the author
No description provided by the author
Package event deals with subscriptions to real-time events.
No description provided by the author
No description provided by the author
No description provided by the author
Package state provides a caching layer atop the Ethereum state trie.
Package trie implements Merkle Patricia Tries.
Package types contains data types related to Ethereum consensus.
No description provided by the author
# Functions
ApplyMessage computes the new state by applying the given message against the old state within the environment.
CanTransfer checks wether there are enough funds in the address' account to make a transfer.
IntrinsicGas computes the 'intrinsic gas' for a message with the given data.
NewStateTransition initialises and returns a new state transition object.
Transfer subtracts amount from sender and adds amount to recipient using the given Db.
# Variables
ErrBlacklistedHash is returned if a block to import is on the blacklist.
ErrGasLimitReached is returned by the gas pool if the amount of gas required by a transaction is higher than what's left in the block.
ErrKnownBlock is returned when a block to import is already known locally.
ErrNonceTooHigh is returned if the nonce of a transaction is higher than the next one expected based on the local chain.
FROM: github.com/ethereum/go-ethereum/core/tx_pool.go.
NotFound is returned by API methods if the requested item does not exist.
# Structs
CallMsg contains parameters for contract calls.
FilterQuery contains options for contract log filtering.
The State Transitioning Model
A state transition is a change made when a transaction is applied to the current world state
The state transitioning model does all all the necessary work to work out a valid new state root.
SyncProgress gives progress indications when the node is synchronising with the Ethereum network.
# Interfaces
ChainReader provides access to the blockchain.
ChainStateReader wraps access to the state trie of the canonical blockchain.
ChainSyncReader wraps access to the node's current sync status.
A ContractCaller provides contract calls, essentially transactions that are executed by the EVM but not mined into the blockchain.
GasEstimator wraps EstimateGas, which tries to estimate the gas needed to execute a specific transaction based on the pending state.
GasPricer wraps the gas price oracle, which monitors the blockchain to determine the optimal gas price given current fee market conditions.
LogFilterer provides access to contract log events using a one-off query or continuous event subscription.
Message represents a message sent to a contract.
PendingContractCaller can be used to perform calls against the pending state.
A PendingStateEventer provides access to real time notifications about changes to the pending state.
A PendingStateReader provides access to the pending state, which is the result of all known executable transactions which have not yet been included in the blockchain.
Subscription represents an event subscription where events are delivered on a data channel.
TransactionReader provides access to past transactions and their receipts.
TransactionSender wraps transaction sending.
# Type aliases
GasPool tracks the amount of gas available during execution of the transactions in a block.