-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathfoundry.toml
More file actions
32 lines (31 loc) · 1.4 KB
/
foundry.toml
File metadata and controls
32 lines (31 loc) · 1.4 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
[profile.default]
src = 'contracts/src'
out = 'contracts/out/forge'
libs = ['node_modules', 'contracts/lib']
test = 'contracts/test'
cache_path = 'contracts/cache/forge'
optimizer_runs = 200
solc_version = "0.8.29"
evm_version = "prague"
# Disable auto-discovery of remappings from submodules/node_modules. Forge's auto-detected
# remappings include paths that depend on which nested submodules are initialized, which
# differs between local (recursive submodule init) and CI (non-recursive). Since
# metadata.settings.remappings is embedded in the IPFS metadata hash, any drift there
# causes bytecode divergence. Explicit remappings below are the only ones compiled code
# touches; everything else was auto-discovered cruft.
auto_detect_remappings = false
remappings = [
"forge-std/=contracts/lib/forge-std/src/",
"@openzeppelin/contracts-upgradeable/=contracts/lib/openzeppelin-contracts-upgradeable/contracts/",
"@openzeppelin/contracts/=contracts/lib/openzeppelin-contracts/contracts/",
]
fs_permissions = [
{ access = "read", path = "./assets/artifacts/" },
{ access = "read", path = "./contracts/out/forge" },
{ access = "write", path = "./contracts/cache" },
{ access = "write", path = "./assets/*/genesis.json" }
]
# Lint configuration
[lint]
ignore = ["contracts/test/scripts/*.t.sol"]
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options