package
0.38.0-preview.0
Repository: https://github.com/onflow/flow-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
GetDefaultSigner returns a signer which is compatible with the default config.
GetSigner returns a evm signer object that is compatible with the given config Despite its misleading name, signer encapsulates transaction signature validation functionality and does not provide actual signing functionality.
NewCallTracker constructs a new CallTracker.
NewConfig initializes a new config.
NewEmulator constructs a new EVM Emulator.
WithBlockNumber sets the block height in the block context.
WithBlockTime sets the block time in the block context.
WithBlockTotalGasSoFar sets the total amount of gas used for this block so far.
WithBlockTxCountSoFar sets the total number of transactions included in the current block so far.
WithChainID sets the evm chain ID.
WithCoinbase sets the coinbase of the block where the fees are collected in.
WithDirectCallBaseGasUsage sets the base direct call gas usage.
WithExtraPrecompiledContracts appends the precompiled contract list with extra precompiled contracts.
WithGasLimit sets the gas limit of the transaction.
WithGasPrice sets the gas price for the transaction (usually the one sets by the sender).
WithGetBlockHashFunction sets the functionality to look up block hash by height.
WithOrigin sets the origin of the transaction (signer).
WithRandom sets the block context random field.
WithTransactionTracer sets a transaction tracer.

# Variables

DefaultChainConfig is the default chain config used by the emulator considers majority of EVM upgrades (e.g.

# Structs

BlockView allows mutation of the evm state as part of a block current version only accepts only a single interaction per block view.
CallTracker captures precompiled calls.
Config aggregates all the configuration (chain, evm, block, tx, ...) needed during executing a transaction.
Emulator wraps an EVM runtime where evm transactions and direct calls are accepted.
ReadOnlyBlockView provides a read only view of a block could be used for multiple queries against a block.
No description provided by the author

# Type aliases

No description provided by the author