Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 880 Bytes

File metadata and controls

18 lines (13 loc) · 880 Bytes

sim module

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

load sim

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.