-
Notifications
You must be signed in to change notification settings - Fork 1
/
foundry.toml
55 lines (48 loc) · 1.47 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[profile.default]
evm_version = "paris"
fs_permissions = [
{ access = "write", path = "./test/gas-reports/gov-staker-gas-report.json" },
]
optimizer = true
optimizer_runs = 10_000_000
remappings = ["openzeppelin/=lib/openzeppelin-contracts/contracts"]
solc_version = "0.8.26"
verbosity = 3
[profile.ci]
fuzz = { runs = 5000 }
invariant = { runs = 1000 }
[profile.coverage]
fuzz = { runs = 100 }
invariant = { runs = 0 }
[profile.lite]
fuzz = { runs = 50 }
invariant = { runs = 10 }
# Speed up compilation and tests during development.
optimizer = false
[rpc_endpoints]
mainnet = "${MAINNET_RPC_URL}"
[fmt]
bracket_spacing = false
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
[fuzz]
# We turn on this setting to prevent the fuzzer from picking DelegationSurrogate contracts,
# including before they're actually even deployed, as some other entity in the test, for example
# depositor. This makes no sense and breaks test assertions, but is extremely difficult to handle
# with assume statements because we don't have the surrogate address until it's deployed later in
# the test.
include_storage = false
[invariant]
call_override = false
depth = 50
dictionary_weight = 80
fail_on_revert = false
include_push_bytes = true
include_storage = true
runs = 256