forked from nomad-xyz/monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
foundry.toml
85 lines (73 loc) · 2.65 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
76
77
78
79
80
81
82
83
84
85
[profile.default]
solc_version = '0.7.6' # Version of solc that we use
remappings = [ # Libraries that we use from node_modules and are used by the smart contracts
"@openzeppelin/=node_modules/@openzeppelin/",
"@summa-tx/=node_modules/@summa-tx/",
"@nomad-xyz/=packages/",
"forge-std/=lib/forge-std/src/",
]
optimizer = true # Enable or disable the solc optimizer
optimizer_runs = 999999 # The number of optimizer runs
verbosity = 3 # The verbosity of tests
bytecode_hash = "none" # For deterministic code
block_timestamp = 1622400000 # Timestamp for tests (non-zero)
# silence warnings
# 2462 - ignored constructor visibility in OZ dependency
# 5868 - Failure condition of 'send' ignored in bridge
# 9302 - Failure condition of 'call' ignored in bridge
ignored_error_codes = [2462, 5878, 9302]
libs = ["node_modules", "lib"]
[profile.core]
src = 'packages/contracts-core/contracts'
test = 'packages/contracts-core/contracts/test'
out = 'packages/contracts-core/foundry_artifacts'
ffi = true
[profile.core-ci]
src = 'packages/contracts-core/contracts'
test = 'packages/contracts-core/contracts/test'
out = 'packages/contracts-core/foundry_artifacts'
ffi = true
[profile.core-ci.fuzz]
runs = 10_000
[profile.router]
src = 'packages/contracts-router/contracts'
test = 'packages/contracts-router/contracts/test'
out = 'packages/contracts-router/foundry_artifacts'
[profile.router-ci]
src = 'packages/contracts-router/contracts'
test = 'packages/contracts-router/contracts/test'
out = 'packages/contracts-router/foundry_artifacts'
[profile.router-ci.fuzz]
runs = 10_000
[profile.bridge]
src = 'packages/contracts-bridge/contracts'
test = 'packages/contracts-bridge/contracts/test'
out = 'packages/contracts-bridge/foundry_artifacts'
ffi = true
[profile.bridge-ci]
src = 'packages/contracts-bridge/contracts'
test = 'packages/contracts-bridge/contracts/test'
out = 'packages/contracts-bridge/foundry_artifacts'
ffi = true
[profile.bridge-ci.fuzz]
runs = 10_000
[profile.da-bridge]
src = 'packages/contracts-da-bridge/contracts'
test = 'packages/contracts-da-bridge/contracts/test'
out = 'packages/contracts-da-bridge/foundry_artifacts'
ffi = true
[profile.da-bridge-ci]
src = 'packages/contracts-da-bridge/contracts'
test = 'packages/contracts-da-bridge/contracts/test'
out = 'packages/contracts-da-bridge/foundry_artifacts'
ffi = true
[profile.da-bridge-ci.fuzz]
runs = 10_000
[profile.ops]
src = 'packages/contracts-ops/contracts'
test = 'packages/contracts-ops/contracts/test'
out = 'packages/contracts-ops/foundry_artifacts'
ffi = true
fs_permissions = [{ access = "read-write", path = "./actions" }]
# same as above, + 5574 for contract size
ignored_error_codes = [2462, 5878, 9302, 5574]