-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfoundry.toml
More file actions
52 lines (42 loc) · 1.57 KB
/
Copy pathfoundry.toml
File metadata and controls
52 lines (42 loc) · 1.57 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
[profile.default]
src = "src"
out = "out"
libs = ["lib"]
optimizer-runs = 10_000
# fork_url = "hyperliquid"
# fork_block_number = 17133085
rpc_storage_caching = { chains = "all", endpoints = "all" }
no_storage_caching = false
# Create additional compiler profiles to satisfy compilation restrictions
additional_compiler_profiles = [
{ name = "low-opt", optimizer = true, optimizer_runs = 500 }
]
compilation_restrictions = [
{ paths = "./lib/cash/src/LoanManager.sol", optimizer_runs = 500 },
{ paths = "./lib/cash/src/GeneralManager.sol", optimizer_runs = 500 },
]
fs_permissions = [
{ access = "read", path = "../contracts/addresses/addresses-31337.json"},
{ access = "read", path = "../contracts/addresses/addresses-998.json"},
{ access = "read", path = "../contracts/addresses/addresses-999.json"},
{ access = "read-write", path = "./addresses/addresses-31337.json"},
{ access = "read-write", path = "./addresses/addresses-998.json"},
{ access = "read-write", path = "./addresses/addresses-999.json"},
{ access = "read", path = "./test/artifacts/WHYPE9.json"}
]
[profile.coverage]
via_ir = false
optimizer = false
optimizer_runs = 1_000
[dependencies]
core = "../contracts"
[fmt]
tab_width = 2
[etherscan]
hyperliquid = { key = "${API_KEY_ETHERSCAN}" }
[rpc_endpoints]
hyperliquid = "${HYPERLIQUID_MAINNET_RPC_URL}"
hyperliquid-testnet = "${HYPERLIQUID_TESTNET_RPC_URL}"
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
[lint]
exclude_lints = ['mixed-case-variable', 'screaming-snake-case-immutable']