-
Notifications
You must be signed in to change notification settings - Fork 217
Expand file tree
/
Copy pathfoundry.toml
More file actions
55 lines (48 loc) · 1.5 KB
/
foundry.toml
File metadata and controls
55 lines (48 loc) · 1.5 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
53
54
55
[profile.default]
auto_detect_remappings = false
libs = ["lib"]
src = "contracts"
test = "tests"
out = "artifacts"
cache_path = "cache"
bytecode_hash = "none"
cbor_metadata = false
verbosity = 3
fs_permissions = [{ access = "read", path = "./artifacts"}]
optimizer = true
optimizer_runs = 200
# Ignore compiler warnings that should be intentionally-skipped
ignored_warnings_from = [
"contracts/release/extensions/integration-manager/integrations/utils/0.8.19/bases/GenericWrappingAdapterBase.sol",
"contracts/templates/"
]
# NOTE: Specifying shanghai as the evm_version seems required for the Goerli tests to pass
evm_version = "cancun"
[profile.default.optimizer_details]
yul = false
[profile.dev]
optimizer=false
[rpc_endpoints]
mainnet = "${ETHEREUM_NODE_MAINNET}"
polygon = "${ETHEREUM_NODE_POLYGON}"
arbitrum = "${ETHEREUM_NODE_ARBITRUM}"
base = "${ETHEREUM_NODE_BASE}"
[etherscan]
mainnet = { key = "${ETHERSCAN_API_KEY_MAINNET}", chain = "mainnet" }
polygon = { key = "${ETHERSCAN_API_KEY_POLYGON}", chain = "polygon" }
[lint]
# Several lints fail on acronyms like "ERC" instead of "Erc", so we exclude those.
# Some other lints are helpful but there are many violations in the codebase already. We could inline-exclude those.
exclude_lints = [
"pascal-case-struct",
"mixed-case-function",
"mixed-case-variable",
"unaliased-plain-import",
"asm-keccak256",
"unwrapped-modifier-logic",
"unsafe-typecast"
]
ignore = [
"contracts/external-interfaces/**/*.sol",
"tests/**/*.sol"
]