-
Notifications
You must be signed in to change notification settings - Fork 0
/
foundry.toml
73 lines (63 loc) · 1.55 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# See more config options https://github.com/foundry-rs/foundry/tree/master/config
[profile.default]
solc_version = '0.8.19'
src = 'src'
out = 'out'
libs = ['lib']
optimizer = true
optimizer_runs = 512
# @see {@link https://github.com/foundry-rs/foundry/issues/4060}
auto_detect_remappings = false
bytecode_hash = "none"
cbor_metadata = false
sparse_mode = false
build_info = true
via_ir = true
fuzz_runs = 500
deny_warnings = false
[profile.default.optimizer_details]
constantOptimizer = true
yul = true
[profile.default.optimizer_details.yulDetails]
stackAllocation = true
[profile.mainnet]
solc_version = '0.8.19'
src = 'src'
out = 'out'
libs = ['lib']
chain_id = 1
[profile.goerli]
src = 'src'
out = 'out'
libs = ['lib']
chain_id = 5
[profile.ci]
solc_version = '0.8.19'
src = 'src'
out = 'out'
libs = ['lib']
[etherscan]
mainnet = { key = "${ETHERSCAN_API_KEY}" }
goerli = { key = "${ETHERSCAN_API_KEY}" }
optimism = { key = "${ETHERSCAN_API_KEY}" }
bsc = { key = "${BSCSCAN_API_KEY}" }
polygon = { key = "${POLYGONSCAN_API_KEY}" }
arbitrum = { key = "${ARBISCAN_API_KEY}" }
avalanche = { key = "${SNOWSCAN_API_KEY}" }
[rpc_endpoints]
mainnet = "${RPC_MAINNET}"
goerli = "${RPC_GOERLI}"
polygon = "${POLYGON_MAINNET_RPC_URL}"
arbitrum = "${ARBITRUM_MAINNET_RPC_URL}"
bsc = "${BSC_MAINNET_RPC_URL}"
optimism = "${OPTIMISM_RPC_URL}"
avalanche = "${AVALANCHE_RPC_URL}"
[fmt]
line_length = 160
bracket_spacing = true
number_underscore = "thousands"
wrap_comments = true
int_types = "long"
multiline_func_header = "all"
quote_style = "double"
ignore = ["libs/*","*.t.sol"]