-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathfoundry.toml
60 lines (49 loc) · 2.15 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[profile.default]
contracts = 'contracts' # The source directory
test = 'tests' # The test directory
libs = ['modules'] # A list of library directories
optimizer = false # Enable or disable the solc optimizer
verbosity = 3 # The verbosity of tests
block_timestamp = 1_685_721_539 # Timestamp for tests (non-zero)
gas_limit = "18446744073709551615" # Gas limit for tests
evm_version = "cancun" # EVM version for tests
[profile.production]
optimizer = true # Enable or disable the solc optimizer
optimizer_runs = 200 # The number of optimizer runs
[fuzz]
runs = 100
[invariant]
runs = 10 # The number of calls to make in the invariant tests
depth = 100 # The number of times to run the invariant tests
call_override = false # Override calls
fail_on_revert = true # Fail the test if the contract reverts
[profile.mainnet_simulations]
test = 'simulations/mainnet' # The test directory
block_number = 17386767 # Block number for tests Note: Update in CI when changed
fork_block_number = 17386767
rpc_storage_caching = { chains = ["mainnet"], endpoints = "all" }
[profile.bytecode_checks]
optimizer = true # Enable or disable the solc optimizer
test = 'bytecode-checks' # The test directory
[profile.shallow.fuzz]
runs = 20
[profile.deep.fuzz]
optimizer = true
runs = 1_000
[profile.deep.invariant]
optimizer = true
runs = 10 # The number of times to run the invariant tests
depth = 250 # The number of calls to make in the invariant tests
call_override = false # Override calls
fail_on_revert = true # Fail the test if the contract reverts
[profile.super_deep.fuzz]
optimizer = true
runs = 10_000
[profile.super_deep.invariant]
optimizer = true
runs = 200 # The number of calls to make in the invariant tests
depth = 250 # The number of times to run the invariant tests
[profile.scenarios]
test = 'scenarios'
fs_permissions = [{ access = "read", path = "./" }]
verbosity = 2