-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathfoundry.toml
More file actions
36 lines (32 loc) · 1.08 KB
/
Copy pathfoundry.toml
File metadata and controls
36 lines (32 loc) · 1.08 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
# Root-level Foundry configuration
# Covers the root test/ directory; Contracts/ has its own foundry.toml for Contracts/test/
#
# Run tests from repo root:
# forge test -- runs test/ (this profile)
# forge test --root Contracts -- runs Contracts/test/ (Contracts/foundry.toml)
#
# See docs/PATH_CONFIG.md for full details.
[profile.default]
src = "Contracts/contracts"
out = "Contracts/out"
libs = ["Contracts/lib"]
test = "test"
script = "Contracts/script"
solc = "0.8.28"
optimizer = true
optimizer_runs = 200
via_ir = true
auto_detect_solc = true
remappings = [
"forge-std/=Contracts/lib/forge-std/src/",
"@openzeppelin/contracts/=Contracts/lib/openzeppelin-contracts/contracts/",
"openzeppelin-contracts/=Contracts/lib/openzeppelin-contracts/",
"@prb/math/=Contracts/lib/prb-math/",
# Convenience aliases so test files can import by short path
"contracts/=Contracts/contracts/",
"src/=Contracts/src/",
]
[profile.default.fuzz]
runs = 256
[rpc_endpoints]
mainnet = "${MAINNET_RPC_URL}"