-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfoundry.toml
More file actions
58 lines (48 loc) · 1.65 KB
/
foundry.toml
File metadata and controls
58 lines (48 loc) · 1.65 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
56
57
58
# Foundry Configuration File
# Default definitions: https://github.com/foundry-rs/foundry/blob/b7917fa8491aedda4dd6db53fbb206ea233cd531/config/src/lib.rs#L782
# See more config options at: https://github.com/foundry-rs/foundry/tree/master/.config
# The Default Profile
[profile.default]
solc_version = "0.8.30"
evm_version = "paris" # Cancun will be tested in the CI.
auto_detect_solc = false
optimizer = true
optimizer_runs = 1_000
gas_limit = 100_000_000 # ETH is 30M, but we use a higher value.
skip = ["*/*7702*", "*/*BlockHashLib*", "*/*Transient*", "*/ext/ithaca/*", "*/ext/zksync/*"]
fs_permissions = [{ access = "read", path = "./test/data"}]
remappings = [
"forge-std=test/utils/forge-std/"
]
[profile.pre_global_structs]
skip = ["*/g/*", "*/*7702*", "*/*BlockHashLib*", "*/*Transient*", "*/ext/ithaca/*", "*/ext/zksync/*"]
[profile.post_prague]
evm_version = "prague"
skip = ["*/ext/ithaca/*"]
[profile.zksync]
match_path = "*/ext/zksync/*"
evm_version = "cancun"
skip = []
[profile.ithaca]
gas_limit = 16_777_216 # To prevent EVM error.
evm_version = "prague"
test = "test/ext/ithaca"
skip = []
[profile.solx]
solc_version = "/usr/local/bin/solx"
evm_version = "paris" # Cancun will be tested in the CI.
optimization = 3
gas_limit = 100_000_000 # ETH is 30M, but we use a higher value.
skip = ["*/*7702*", "*/*Transient*", "*/ext/ithaca/*", "*/ext/zksync/*"]
fs_permissions = [{ access = "read", path = "./test/data"}]
remappings = [
"forge-std=test/utils/forge-std/"
]
[fmt]
line_length = 100 # While we allow up to 120, we lint at 100 for readability.
ignore = ["src/accounts/EIP7702Proxy.sol"]
[profile.default.fuzz]
runs = 256
[invariant]
depth = 15
runs = 10