-
Notifications
You must be signed in to change notification settings - Fork 34
/
foundry.toml
75 lines (63 loc) · 1.28 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
[profile.default]
solc = '0.8.26'
via_ir = false
evm_version = 'paris'
src = 'src'
test = 'test'
libs = ['lib', 'node_modules']
out = 'out'
optimizer = true
optimizer_runs = 200
auto_detect_solc = false
bytecode_hash = "none"
auto_detect_remappings = false
fs_permissions = [
{ access = "read", path = "./out-optimized" },
{ access = "read", path = "./test/bin" },
]
[fuzz]
runs = 500
[invariant]
runs = 500
fail_on_revert = true
depth = 10
[profile.optimized-build]
deny_warnings = true
via_ir = true
test = 'src'
optimizer_runs = 15000
out = 'out-optimized'
cache_path = 'cache-optimized'
[profile.optimized-test]
deny_warnings = true
src = 'test'
[profile.optimized-test-deep]
deny_warnings = true
src = 'test'
[profile.optimized-test-deep.fuzz]
runs = 10000
[profile.optimized-test-deep.invariant]
runs = 5000
depth = 32
[profile.deep.fuzz]
runs = 100000
[profile.deep.invariant]
runs = 5000
depth = 32
[profile.gas]
via_ir = true
deny_warnings = true
test = 'gas'
optimizer_runs = 15000
out = 'out-optimized'
cache_path = 'cache-optimized'
snapshots = 'gas-snapshots'
ffi = true
isolate = true
[fmt]
line_length = 115
wrap_comments = true
sort_imports = true
number_underscore = "thousands"
int_types = "long"
# See more config options https://github.com/foundry-rs/foundry/tree/master/config