-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfoundry.toml
More file actions
41 lines (35 loc) · 1.12 KB
/
foundry.toml
File metadata and controls
41 lines (35 loc) · 1.12 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
[profile.default]
src = "contracts"
out = "out"
libs = ["node_modules", "lib"]
test = "test/foundry"
cache_path = "cache_forge"
# Solidity compiler settings
solc = "0.8.34"
optimizer = true
optimizer_runs = 200
via_ir = true
evm_version = "osaka"
# Remappings for OpenZeppelin dependencies
remappings = [
"@openzeppelin/=node_modules/@openzeppelin/",
"forge-std/=lib/forge-std/src/",
]
# Suppress common compiler warnings (lint-style) so build output is clean
# Shadowing (2519) is NOT suppressed so the compiler surfaces variable-shadowing issues.
# Codes: 2072=unused-var, 5667=unused-param, 2018=func-mutability, 1878=license, 2462=constructor-visibility, 3628=missing-receive-ether, 6321=unnamed-return
ignored_error_codes = [2072, 5667, 2018, 1878, 2462, 3628, 6321]
# Fuzzing configuration
[fuzz]
runs = 256
max_test_rejects = 262144
seed = '0x1234'
# Invariant testing configuration
[invariant]
runs = 256
depth = 15
fail_on_revert = false
# Do not run forge-lint during build (no unaliased-plain-import / unsafe-typecast / etc. output)
# Run `forge lint` separately when you want lint feedback.
[lint]
lint_on_build = false