-
Notifications
You must be signed in to change notification settings - Fork 6
/
foundry.toml
105 lines (91 loc) · 2.41 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[profile.default]
solc = '0.8.24'
evm_version = 'cancun'
src = 'src'
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/src/=src/sol/',
'seaport-sol/=src/sol/',
'seaport-types/src/=src/types/',
'seaport-types/=src/types/',
'seaport-core/src/=src/core/',
'seaport-core/=src/core/',
'seaport/=src/main/',
]
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.24'
src = 'src/main/helpers/order-validator'
optimizer_runs = 1
[fuzz]
runs = 1_000
max_test_rejects = 1_000_000
[profile.reference]
solc = '0.8.24'
src = 'reference'
out = 'reference-out'
script = 'reference'
# specify something so it doesn't try to compile the files in test/foundry
test = 'test/foundry'
cache_path = 'reference-cache'
[profile.optimized]
src = 'src'
via_ir = true
out = 'optimized-out'
# Necessary to get the optimized profile to compile the TransferHelper
script = 'script'
bytecode_hash = 'none'
# no need to compile tests with via-ir since they load optimized bytecode directly by default
test = 'src/main'
evm_version = 'cancun'
cache_path = 'optimized-cache'
extra_output_files = ['irOptimized']
[profile.test]
src = 'test/foundry'
cache_path = 'test-cache'
[profile.test.fuzz]
runs = 1_000
[profile.lite]
out = 'optimized-out'
[profile.debug]
src = 'src/main'
optimizer = false
[profile.moat_debug]
optimizer = false
test = 'test/foundry/new'
[profile.offerers]
src = 'offerers'
test = 'offerers'
out = 'offerers-out'
script = 'offerers'
[profile.tstorish]
test = 'tstorish'
evm_version = 'cancun'
[profile.tstorishLegacy]
src = 'tstorishLegacy'
test = 'tstorishLegacy'
out = 'tstorishLegacy-out'
script = 'tstorishLegacy'
evm_version = 'shanghai'
[fmt]
line_length = 80
tab_width = 4
bracket_spacing = true
# See more config options https://github.com/gakonst/foundry/tree/master/config