Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 818 Bytes

FOUNDRY.md

File metadata and controls

31 lines (22 loc) · 818 Bytes

Blockchain Team template for Foundry

Setup

forge install

Compilation

Compile contracts:

forge build

Testing

Run tests with:

forge test -vv                                   (basic test in local network)
forge test -vvv                                  (test with traces in local network)
forge test -vv --fork-url {RPC_URL}              (basic test in forked network)
forge test -vvv --fork-url {RPC_URL}             (test with traces in forked network)

Cool Features

forge test -vvv --watch                          (auto-compiles and makes a generic screen to watch execution with traces)
forge bind                                       (rust bindings created in the project)
forge inspect "contract.sol" assembly            (assembly output for the contract)