-
Notifications
You must be signed in to change notification settings - Fork 8
/
foundry.toml
39 lines (34 loc) · 1.15 KB
/
foundry.toml
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
[profile.default]
# We don't specify a solc version because Aave contracts are pinned to 0.8.10,
# but we use more recent solc versions for other contracts, so we let forge
# auto-detect solc versions.
optimizer = true
optimizer_runs = 10_000_000
remappings = ["@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts"]
verbosity = 3
[profile.ci]
fuzz = { runs = 5000 }
invariant = { runs = 1000 }
[profile.lite]
fuzz = { runs = 50 }
invariant = { runs = 10 }
# Speed up compilation and tests during development.
optimizer = false
[rpc_endpoints]
mainnet = "${MAINNET_RPC_URL}"
optimism = "${OPTIMISM_RPC_URL}"
[fmt]
bracket_spacing = false
ignore = [
'src/GovernorCountingFractional.sol', # Ignored b/c it follows OZ's styleguide.
]
int_types = "long"
line_length = 100
multiline_func_header = "attributes_first"
number_underscore = "thousands"
quote_style = "double"
single_line_statement_blocks = "single"
tab_width = 2
wrap_comments = true
# Copied from https://github.com/ScopeLift/foundry-template/blob/main/foundry.toml
# See more config options https://github.com/foundry-rs/foundry/tree/master/config