-
Notifications
You must be signed in to change notification settings - Fork 14
/
foundry.toml
25 lines (24 loc) · 2.07 KB
/
foundry.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## defaults for all profiles
[profile.default]
src = "src" # the source directory
test = "test" # the test directory
out = "out" # the output directory (for artifacts)
libs = ["lib"] # a list of library directories
cache = true # cache the builds
cache_path = "cache" # where the cache is stored
solc_version = "0.8.23" # override for the solc version
evm_version = "paris" # set the EVM target version (prevent using the `PUSH0` opcode)
optimizer = true # enable the solc optimiser
optimizer_runs = 10_000_000 # the number of optimiser runs
via_ir = false # disable compilation pipeline to go through the Yul intermediate representation
bytecode_hash = "none" # remove the metadata hash from the bytecode
fuzz = { runs = 256 } # the number of fuzz runs for tests
invariant = { runs = 256, depth = 15 } # the number of runs and calls (executed in one run) for each invariant test group
verbosity = 3 # the verbosity of tests
fs_permissions = [{ access = "read-write", path = "./" }] # set read-write access to project root
## default overrides for the CI runs
[profile.ci]
force = true # always perform a clean build
fuzz = { runs = 10_000 } # increase the number of fuzz runs
invariant = { runs = 500, depth = 500 } # increase the number of runs (while preserving the default depth) for each invariant test group
verbosity = 4 # increase the verbosity of tests