Repository navigation
Expand file tree
/
Copy pathfoundry.toml
More file actions
68 lines (59 loc) · 1.65 KB
/
Copy pathfoundry.toml
File metadata and controls
68 lines (59 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
59
60
61
62
63
64
65
66
67
68
[profile.""] # added for foundry-zksync to detect profile.default
[profile.default]
unchecked_cheatcode_artifacts = true
ignored_error_codes = [2394, 2424, 4591, 5159, 9170]
# https://github.com/foundry-rs/foundry/issues/6780#issuecomment-1962319449
bytecode_hash = "none"
auto_detect_remappings = false
auto_detect_solc = true
cbor_metadata = false
sparse_mode = false
optimizer = true
via_ir = true
optimizer_runs = 2_000
evm_version = "osaka"
gas_limit = 16_777_216
block_gas_limit = 16_777_216
no_match_path = "test/integration/*"
# needed for marktoda/forge-gas-snapshot
ffi = true
fs_permissions = [
{ access = "read-write", path = ".forge-snapshots/" },
{ access = "read", path = "out" },
{ access = "read", path = "zkout" },
{ access = "read", path = "script/" },
]
gas_snapshot_emit = true
# https://github.com/foundry-rs/foundry/issues/6780#issuecomment-1962319449
[profile.default.optimizer_details]
constantOptimizer = true
yul = true
[profile.default.zksync]
bytecode_hash = "none"
cbor_metadata = false
[profile.integration]
no_match_path = "test/unit/*"
match_path = "test/integration/*"
gas_snapshot_emit = false
evm_version = "osaka"
gas_limit = 50_000_000
block_gas_limit = 50_000_000
code_size_limit = 200_000
disable_block_gas_limit = true
[fuzz]
runs = 100_000
max_test_rejects = 1_000_000
[invariant]
fail_on_revert = true
runs = 1_000
depth = 20
[rpc_endpoints]
mainnet = "${MAINNET_RPC_URL}"
bnb = "${BNB_MAINNET_RPC_URL}"
plasma = "${PLASMA_MAINNET_RPC_URL}"
arbitrum = "${ARBITRUM_MAINNET_RPC_URL}"
base = "${BASE_MAINNET_RPC_URL}"
monad = "${MONAD_MAINNET_RPC_URL}"
robinhood = "${ROBINHOOD_MAINNET_RPC_URL}"
[lint]
lint_on_build = false