package
0.17.0
Repository: https://github.com/lmittmann/w3.git
Documentation: pkg.go.dev

# Functions

New creates a new VM, that is configured with the given options.
NewRPCFetcher returns a new [Fetcher] that fetches account state from the given RPC client for the given block number.
NewTestingRPCFetcher returns a new [Fetcher] like [NewRPCFetcher], but caches the fetched state on disk in the testdata directory of the tests package.
RandA returns a random address.
Slot returns the storage slot of a mapping with the given position and key.
Slot2 returns the storage slot of a double mapping with the given position and keys.
WETHAllowanceSlot returns the storage slot that stores the WETH allowance of the given owner and spender.
WETHBalanceSlot returns the storage slot that stores the WETH balance of the given addr.
WithBlockContext sets the block context for the VM.
WithChainConfig sets the chain config for the VM.
WithFetcher sets the fetcher for the VM.
WithFork sets the client and block number to fetch state from and sets the block context for the VM.
WithHeader sets the block context for the VM based on the given header.
WithNoBaseFee forces the EIP-1559 base fee to 0 for the VM.
WithState sets the pre state of the VM.
WithStateDB sets the state DB for the VM.
WithTB enables persistent state caching when used together with [WithFork].

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Receipt represents the result of an applied [w3types.Message].
No description provided by the author

# Interfaces

Fetcher is the interface to access account state of a blockchain.

# Type aliases

An Option configures a [VM].