Re-exportsΒ§
use crate::Cheatcode;πuse crate::Cheatcodes;πuse crate::CheatcodesCore;πuse crate::CheatcodesExecutor;πuse crate::CheatsCtxt;πuse crate::Result;πuse crate::json::json_value_to_token;πuse alloy_dyn_abi::DynSolValue;πuse alloy_network::AnyNetwork;πuse alloy_primitives::Address;πuse alloy_primitives::B256;πuse alloy_primitives::U256;πuse alloy_provider::Provider;πuse alloy_provider::RootProvider;πuse alloy_rpc_types::Filter;πuse alloy_sol_types::SolValue;πuse foundry_common::provider::ProviderBuilder;πuse foundry_evm_core::backend::Backend;πuse foundry_evm_core::backend::ForkAccountField;πuse foundry_evm_core::backend::LocalForkId;πuse foundry_evm_core::evm::ExecutionPhase;πuse foundry_evm_core::evm::FoundryEvmFor;πuse foundry_evm_core::evm::FoundryEvmNetwork;πuse foundry_evm_core::fork::CreateFork;πuse crate::Vm::*;π
FunctionsΒ§
- active_
fork_ πprovider - Returns a provider for the active fork, configured with the RPC options the fork was created with (e.g. auth headers, retries and timeouts).
- 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_op π
- Runs a fork operation that switches or replaces the running context, such as
rollFork,selectForkorcreateSelectFork. - persist_
caller π - persistent_
created_ πaccounts - record_
fork_ πroll - record_
fork_ πswitch - refresh_
active_ πfork_ state - Refreshes cached fork and journal state after a
vm.rpccall on the active fork that mutates the node directly. Only well-known Anvil/Hardhat account/storage setters are handled; chain-advancing methods (e.g.eth_sendTransaction) need re-forking, not synchronization. - 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 π - sync_
chain_ πid_ override - Makes
CHAINIDon the forkfork_idjust switched to or rolled read the forkβs chain ID at once, replacing an earliervm.chainId. - transact π