-
Notifications
You must be signed in to change notification settings - Fork 588
/
foundry.toml
83 lines (70 loc) · 1.83 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[profile.default]
solc = '0.8.24'
evm_version='cancun'
src = 'contracts'
out = 'out'
libs = ["node_modules", "lib"]
test = 'test/foundry'
remappings = [
'@rari-capital/solmate/=lib/solmate/',
'ds-test/=lib/ds-test/src/',
'forge-std/=lib/forge-std/src/',
'murky/=lib/murky/src/',
'@openzeppelin/=lib/openzeppelin-contracts/',
'solarray/=lib/solarray/src/',
'solady/=lib/solady/',
'seaport-sol/=lib/seaport-sol/',
'seaport-types/=lib/seaport-types/',
'seaport-core/=lib/seaport-core/',
'seaport/=contracts/'
]
optimizer_runs = 4_294_967_295
fs_permissions = [
{ access = "read", path = "./optimized-out" },
{ access = "read", path = "./reference-out" },
{ access = "write", path = "./call-metrics.txt" },
{ access = "write", path = "./mutation-metrics.txt" },
{ access = "write", path = "./assume-metrics.txt" },
{ access = "write", path = "./fuzz_debug.json" }
]
[profile.validator]
solc = '0.8.17'
src = 'contracts/helpers/order-validator'
optimizer_runs = 1
[fuzz]
runs = 1_000
max_test_rejects = 1_000_000
[profile.reference]
solc = '0.8.24'
src = 'reference'
via_ir = false
out = 'reference-out'
script = 'reference'
test = 'test/foundry'
cache_path = 'reference-cache'
[profile.optimized]
via_ir = true
out = 'optimized-out'
script = 'contracts'
bytecode_hash = 'none'
# no need to compile tests with via-ir since they load optimized bytecode directly by default
test ='contracts'
[profile.test]
src = 'test/foundry'
[profile.test.fuzz]
runs = 1_000
[profile.lite]
out = 'optimized-out'
[profile.debug]
src = 'contracts'
optimizer = false
[profile.moat_debug]
optimizer = false
test = 'test/foundry/new'
[profile.offerers]
test='test/foundry/offerers'
[fmt]
line_length = 80
tab_width = 4
bracket_spacing = true
# See more config options https://github.com/gakonst/foundry/tree/master/config