-
Notifications
You must be signed in to change notification settings - Fork 29
/
foundry.toml
26 lines (25 loc) · 2.27 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
26
# Defaults for all profiles.
[profile.default]
src = "src" # Set the source directory.
test = "test" # Set the test directory.
out = "out" # Set the output directory for the artifacts.
libs = ["lib"] # Configure an array of library directories.
cache = true # Enable caching.
cache_path = "cache" # Set the path to the cache.
force = false # Do not ignore the cache.
solc_version = "0.8.23" # Set the Solidity compiler version.
evm_version = "paris" # Set the EVM target version (prevent using the `PUSH0` and `cancun` opcodes).
optimizer = true # Enable the Solidity compiler optimiser.
optimizer_runs = 10_000_000 # Configure the number of optimiser runs.
via_ir = false # Prevent the compilation pipeline from running through the Yul intermediate representation.
bytecode_hash = "none" # Remove the metadata hash from the bytecode.
verbosity = 3 # Set the verbosity level for the tests.
fs_permissions = [{ access = "read-write", path = "./" }] # Configure read-write access to the project root.
fuzz = { runs = 256 } # Configure the number of fuzz runs for the tests.
invariant = { runs = 256, depth = 15 } # Configure the number of runs and calls (executed in one run) for each invariant test group.
# Default overrides for the CI runs.
[profile.ci]
force = true # Perform always a clean build.
verbosity = 4 # Increase the verbosity level for the tests.
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.