Repository navigation
Expand file tree
/
Copy pathfoundry.toml
More file actions
117 lines (103 loc) · 3.07 KB
/
Copy pathfoundry.toml
File metadata and controls
117 lines (103 loc) · 3.07 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
[profile.default]
solc = '0.8.24'
evm_version = 'cancun'
src = 'contracts'
out = 'out'
libs = ["lib"]
test = 'test/foundry'
remappings = [
'@rari-capital/solmate/=lib/solmate/',
'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'
# Separate from the default `cache`, so the test profile doesn't evict it and
# CI can cache this build on its own.
cache_path = 'optimized-cache'
script = 'contracts'
bytecode_hash = 'none'
# This profile reproduces the deployed Seaport 1.6 init code, which
# test/foundry/DeployedBytecode.t.sol checks. 1.6 was verified with 9_999_999
# optimizer runs, but the default 4_294_967_295 produces identical bytecode.
# 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
int_types = "preserve"
number_underscore = "preserve"
quote_style = "double"
prefer_compact = "none"
# The deployed contracts keep their audited formatting, so their source stays
# identical to what was verified onchain. Tests, scripts, mocks, and the
# reference implementation are formatted.
ignore = [
"contracts/Seaport.sol",
"contracts/conduit/**",
"contracts/helpers/**",
"contracts/interfaces/**",
"contracts/zones/**",
]
[lint]
lint_on_build = false
# Deployed contracts are frozen, so findings there can't be fixed. The mocks in
# contracts/test are deliberately unsafe (reentrancy, unchecked transfers,
# arbitrary calls) to exercise Seaport's defenses. CI runs
# `forge lint --deny warnings` on everything else.
ignore = [
"contracts/Seaport.sol",
"contracts/conduit/**",
"contracts/helpers/**",
"contracts/interfaces/**",
"contracts/zones/**",
"contracts/test/**",
]
# See more config options https://github.com/foundry-rs/foundry/tree/master/crates/config