-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfoundry.toml
58 lines (54 loc) · 1.66 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
[profile.default]
auto_detect_solc = false
# NOTE: by excluding the metadata hash we make sure future contracts can be partially modified without altering their bytecode.
bytecode_hash = "none" # Disables the metadata
cbor_metadata = false # Diasbles the metadata
evm_version = "cancun"
libs = ["lib"]
optimizer = true
optimizer-runs = 200
out = "out"
script = "script"
solc = "0.8.28"
src = "src"
test = "test"
via_ir = true
[fmt]
bracket_spacing = true
contract_new_lines = false
int_types = "long"
line_length = 120
multiline_func_header = "all"
number_underscore = "thousands"
quote_style = "double"
sort_imports = true
tab_width = 4
wrap_comments = true
[rpc_endpoints]
arbitrum = "${ARBITRUM_RPC_URL}"
avalanche = "${AVALANCHE_RPC_URL}"
base = "${BASE_RPC_URL}"
berachain = "${BERACHAIN_RPC_URL}"
bsc = "${BSC_RPC_URL}"
gnosis = "${GNOSIS_RPC_URL}"
hyper = "${HYPER_RPC_URL}"
linea = "${LINEA_RPC_URL}"
mainnet = "${ETHEREUM_RPC_URL}"
optimism = "${OPTIMISM_RPC_URL}"
polygon = "${POLYGON_RPC_URL}"
sonic = "${SONIC_RPC_URL}"
zksync = "${ZKSYNC_RPC_URL}"
[etherscan]
arbitrum = { key = "${ARBITRUM_BLOCKSCAN_KEY}" }
avalanche = { key = "${AVALANCHE_BLOCKSCAN_KEY}" }
base = { key = "${BASE_BLOCKSCAN_KEY}" }
berachain = { key = "verifyContract" }
bsc = { key = "${BSC_BLOCKSCAN_KEY}" }
gnosis = { key = "${GNOSIS_BLOCKSCAN_KEY}" }
linea = { key = "${LINEA_BLOCKSCAN_KEY}" }
mainnet = { key = "${ETHEREUM_BLOCKSCAN_KEY}" }
optimism = { key = "${OPTIMISM_BLOCKSCAN_KEY}" }
polygon = { key = "${POLYGON_BLOCKSCAN_KEY}" }
sonic = { key = "${SONIC_BLOCKSCAN_KEY}" }
zksync = { key = "${ZKSYNC_BLOCKSCAN_KEY}" }
# See more config options https://github.com/foundry-rs/foundry/tree/master/config