-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfoundry.toml
53 lines (44 loc) · 1023 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
50
51
52
53
[profile.default]
src = 'src'
lib = 'lib'
test = 'test'
script = 'script'
out = 'out'
cache_path = 'cache'
# required by upgradability
# see: https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades
ffi = true
ast = true
build_info = true
extra_output = ["storageLayout"]
# forces recompilation, required by Upgradable contracts
force = true
optimizer = true
optimizer_runs = 200
# testing does not care about the upgrade checks above
# so we disable them with
[profile.test]
ffi = false
ast = false
build_info = false
force = false
# fs permissions for deployment (false by default)
fs_permissions = [
{ access = "read", path = "out" },
{ access = "read-write", path = "deployments" },
]
# fuzzing options
[fuzz]
runs = 100
# invariant options
[invariant]
runs = 20
[profile.ci]
optimizer = true
optimizer_runs = 200
via_ir = true
ffi = false
ast = false
build_info = false
force = false
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options