-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathfoundry.toml
More file actions
55 lines (44 loc) · 1.27 KB
/
foundry.toml
File metadata and controls
55 lines (44 loc) · 1.27 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[profile.default]
via_ir = true
optimizer = true
optimizer_runs = 100000
bytecode_hash = "none"
evm_version = "cancun"
dynamic_test_linking = true
[profile.default.fmt]
wrap_comments = true
[lint]
exclude_lints = [
"screaming-snake-case-immutable",
"asm-keccak256"
]
ignore = [
'test/**/*.sol'
]
[profile.no_via_ir]
via_ir = false
[fuzz]
runs = 2048
[[profile.default.compilation_restrictions]]
paths = "src/imports/MorphoImport.sol"
optimizer_runs = 999999
evm_version = "paris"
[[profile.default.compilation_restrictions]]
paths = "src/imports/MetaMorphoV1_1Import.sol"
optimizer_runs = 200
evm_version = "cancun"
[[profile.default.compilation_restrictions]]
paths = "src/imports/MetaMorphoImport.sol"
optimizer_runs = 200
evm_version = "cancun"
# For every restriction above there must be some compatible foundry profile.
# The first matching profile will be used. For clarity, all profiles below should be incompatible with each other.
[[profile.default.additional_compiler_profiles]]
name = "999999-paris"
optimizer_runs = 999999
evm_version = "paris"
[[profile.default.additional_compiler_profiles]]
name = "200-cancun"
optimizer_runs = 200
evm_version = "cancun"
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options