Skip to content

sim

Simulation module: fork chains and execute commands in a sandboxed environment using Anvil, Hardhat, Tenderly, or EthereumJS backends. Forks are multichain: switch moves between one fork per chain, and bridge transfers are auto-relayed to the destination fork.

load sim
CommandDescription
sim:expectAssert that a condition is true.
sim:forkFork the blockchain and execute commands in a simulation.
sim:set-balanceSet the ETH balance of an account in a fork simulation.
sim:set-codeSet the bytecode at an address in a fork simulation.
sim:set-storage-atSet a storage slot value at an address in a fork simulation.