forked from nonergodic/core-bridge
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfoundry.toml
More file actions
39 lines (31 loc) · 1.16 KB
/
foundry.toml
File metadata and controls
39 lines (31 loc) · 1.16 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
[profile.default]
solc_version = "0.8.28"
evm_version = "paris" # prevent use of PUSH0 opcode until it is widely supported
optimizer = true
optimizer_runs = 100000
via_ir = true
extra_output = ["evm.assembly", "irOptimized", "metadata", "storageLayout", "evm.deployedBytecode.immutableReferences"]
libs = [
"lib",
]
remappings = [
"forge-std/=lib/forge-std/src/",
"wormhole-sdk/=lib/wormhole-solidity-sdk/src/",
"core-bridge/=src/",
]
[profile.benchmark]
verbosity = 4
match-test = "test_benchmark"
[fuzz]
runs = 10000
# seed = "0x3e1"
dictionary_weight = 60
max_test_rejects = 6553600
[lint]
# We disabled "incorrect-shift" since it considers `0x32629d58 << (256 - 32)` to be an incorrectly ordered shift.
# We disabled "mixed-case-variable" because it considers parsedVM to be incorrectly cased: `(CoreBridgeVM memory parsedVM,`
# We also disabled other stylistic lint rules since they don't make sense for our test files:
# - screaming-snake-case-const
# - screaming-snake-case-immutable
# - mixed-case-function
exclude_lints = ["mixed-case-function", "incorrect-shift", "screaming-snake-case-immutable", "mixed-case-variable", "screaming-snake-case-const"]