-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathfoundry.toml
49 lines (42 loc) · 1.26 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
[fmt]
line_length = 120
tab_width = 2
bracket_spacing = false
int_types = 'long'
quote_style = 'single'
number_underscore = 'thousands'
multiline_func_header = 'params_first'
sort_imports = true
[profile.default]
solc_version = '0.8.25'
libs = ["node_modules", "lib"]
optimizer_runs = 500
evm_version = 'cancun'
fs_permissions = [{ access = "read-write", path = ".forge-snapshots/"}]
# 2018: function can be view, so far only caused by mocks
# 2394: solc insists on reporting on every transient storage use
# 5574, 3860: bytecode size limit, so far only caused by test contracts
# 1878: Some imports don't have the license identifier
ignored_error_codes = [2018, 2394, 5574, 3860, 1878]
deny_warnings = true
[profile.optimized]
via_ir = true
out = 'out-via-ir'
[profile.test]
via_ir = true
out = 'out-via-ir'
[profile.docs]
src = 'src/interfaces/'
[fuzz]
runs = 1000
max_test_rejects = 2_500_000
[rpc_endpoints]
mainnet = "${MAINNET_RPC}"
gnosis = "${GNOSIS_RPC}"
sepolia = "${SEPOLIA_RPC}"
arbitrum = "${ARBITRUM_RPC}"
[etherscan]
mainnet = { key = "${ETHERSCAN_API_KEY}", chain = "mainnet" }
gnosis = { key = "${ETHERSCAN_API_KEY}", chain = "gnosis" }
sepolia = { key = "${ETHERSCAN_API_KEY}", chain = "sepolia" }
arbitrum_one = { key = "${ETHERSCAN_API_KEY}", chain = "arbitrum" }