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 simCommands
Section titled “Commands”| Command | Description |
|---|---|
| sim:expect | Assert that a condition is true. |
| sim:fork | Fork the blockchain and execute commands in a simulation. |
| sim:set-balance | Set the ETH balance of an account in a fork simulation. |
| sim:set-code | Set the bytecode at an address in a fork simulation. |
| sim:set-storage-at | Set a storage slot value at an address in a fork simulation. |