forked from gretzke/foundry-template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfoundry.toml
49 lines (41 loc) · 903 Bytes
/
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
[profile.default]
src = "src"
out = "out"
libs = ["lib"]
optimizer = true
optimizer_runs = 999999
via_ir = true
solc = "0.8.26"
verbosity = 2
ffi = true
fs_permissions = [
{ access = "read-write", path = ".forge-snapshots"},
{ access = "read", path = "script/" }
]
remappings = [
"forge-std=lib/forge-std/src",
"@openzeppelin/contracts=lib/openzeppelin-contracts/contracts",
"@openzeppelin/contracts-upgradeable=lib/openzeppelin-contracts-upgradeable/contracts"
]
additional_compiler_profiles = [
{ name = "test", via_ir = false }
]
compilation_restrictions = [
{ paths = "test/**", via_ir = false }
]
[profile.default.fuzz]
runs = 1000
[profile.pr.fuzz]
runs = 10000
[profile.ci.fuzz]
runs = 100000
[profile.debug]
via_ir = false
optimizer_runs = 200
fuzz.runs = 100
[fmt]
line_length = 120
tab_width = 4
quote_style = "single"
sort_imports = true
number_underscore = "thousands"