-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfoundry.toml
58 lines (49 loc) · 1.71 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
[profile.default]
evm_version = "cancun"
fs_permissions = [
{ access = "read", path = "./config" },
{ access = "read", path = "./test/fork/fixtures/" },
]
fork_block_number = 21_146_367
gas_reports = ["HubPortal", "SpokePortal"]
gas_reports_ignore = []
ignored_error_codes = []
optimizer = false
solc_version = "0.8.26"
verbosity = 3
via_ir = false
[profile.production]
build_info = true
optimizer = true
optimizer_runs = 800
sizes = true
via_ir = true
[fuzz]
runs = 5_000
[invariant]
runs = 512 # The number of calls to make in the invariant tests
depth = 25 # The number of times to run the invariant tests
fail_on_revert = true # Fail the test if the contract reverts
[profile.ci]
optimizer = true
[profile.ci.fuzz]
runs = 10_000
[profile.ci.invariant]
runs = 512
depth = 250
[rpc_endpoints]
localhost = "${LOCALHOST_RPC_URL}"
mainnet = "${MAINNET_RPC_URL}"
base = "${BASE_RPC_URL}"
optimism = "${OPTIMISM_RPC_URL}"
sepolia = "${SEPOLIA_RPC_URL}"
base_sepolia = "${BASE_SEPOLIA_RPC_URL}"
optimism_sepolia = "${OPTIMISM_SEPOLIA_RPC_URL}"
[etherscan]
mainnet = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api" }
base = { key = "${BASE_ETHERSCAN_API_KEY}", url = "https://api.basescan.org/api" }
optimism = { key = "${OPTIMISM_ETHERSCAN_API_KEY}", url = "https://api-optimistic.etherscan.io/api" }
sepolia = { key = "${ETHERSCAN_API_KEY}", url = "https://api-sepolia.etherscan.io/api" }
base_sepolia = { key = "${BASE_ETHERSCAN_API_KEY}", url = "https://api-sepolia.basescan.org/api" }
optimism_sepolia = { key = "${OPTIMISM_ETHERSCAN_API_KEY}", url = "https://api-sepolia-optimistic.etherscan.io/api" }
# See more config options at https://github.com/foundry-rs/foundry/tree/master/crates/config