forked from ProjectOpenSea/seaport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
foundry.toml
62 lines (52 loc) · 1.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
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
[profile.default]
solc = '0.8.17'
src = 'contracts'
out = 'out'
libs = ["node_modules", "lib"]
test = 'test/foundry'
remappings = [
'ds-test/=lib/ds-test/src/',
'forge-std/=lib/forge-std/src/',
'@rari-capital/solmate/=lib/solmate/',
'murky/=lib/murky/src/',
'openzeppelin-contracts/=lib/openzeppelin-contracts/'
]
optimizer_runs = 4_294_967_295
fs_permissions = [
{ access = "read", path = "./optimized-out" },
{ access = "read", path = "./reference-out" },
]
[fuzz]
runs = 1_000
max_test_rejects = 1_000_000
[profile.reference]
solc = '0.8.13'
src = 'reference'
out = 'reference-out'
script = 'reference'
# specify something so it doesn't try to compile the 0.8.17 files in test/foundry
test = 'reference'
[profile.optimized]
via_ir = true
out = 'optimized-out'
script = 'contracts'
# 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'
[profile.offerers]
src='offerers'
test='offerers'
out = 'offerers-out'
script = 'offerers'
[fmt]
line_length = 80
tab_width = 4
bracket_spacing = true
# See more config options https://github.com/gakonst/foundry/tree/master/config