Functionsยง
- check_
broadcast ๐ - convert_
to_ ๐bytes - Convert fixed bytes and address values to bytes in order to prevent encoding issues.
- create_
fork ๐ - Creates a new fork
- create_
fork_ ๐at_ transaction - Creates a new fork at the given transaction
- create_
fork_ ๐request - Creates the request object for a new fork request
- create_
select_ ๐fork - Creates and then also selects the new fork
- create_
select_ ๐fork_ at_ transaction - Creates and then also selects the new fork at the given transaction
- fork_
env_ ๐op - Clones the EVM and tx environments, runs a fork operation that may modify them, then writes them back. This is the common pattern for all fork-switching cheatcodes (rollFork, selectFork, createSelectFork).
- invalidate_
active_ ๐fork_ cache - Invalidates the fork DB cache after a
vm.rpccall on the active fork that mutates the node directly (bypassing the cache), so later DB reads (e.g. the broadcast simulation runner) re-fetch the new value. Only well-known Anvil/Hardhat account/storage setters are handled; chain-advancing methods (e.g.eth_sendTransaction) need re-forking, not eviction. - persist_
caller ๐ - persistent_
created_ ๐accounts - record_
fork_ ๐roll - record_
fork_ ๐switch - rpc_
call ๐ - Performs an Ethereum JSON-RPC request to the given endpoint.
- rpc_
json_ ๐call - Performs an Ethereum JSON-RPC request to the given endpoint and returns the JSON result.
- rpc_
result ๐ - transact ๐