-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfoundry.toml
More file actions
147 lines (116 loc) · 5.36 KB
/
Copy pathfoundry.toml
File metadata and controls
147 lines (116 loc) · 5.36 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# Full reference https://github.com/foundry-rs/foundry/tree/master/crates/config
[profile.default]
auto_detect_solc = false
block_timestamp = 1_680_220_800 # March 31, 2023 at 00:00 GMT
bytecode_hash = "none"
evm_version = "cancun" # See https://www.evmdiff.com/features?name=PUSH0&kind=opcode
fuzz = { runs = 1_000 }
via-ir = true
gas_reports = ["*"]
optimizer = true
optimizer_runs = 999
out = "out"
script = "scripts"
solc = "0.8.27"
src = "contracts"
test = "test"
cache_path = "cache_forge"
libs = ["node_modules"]
gas_reports_ignore = ["MockToken"]
fs_permissions = [{ access = "read", path = "script/deploy/artifacts"}, { access = "read", path = "script/deploy"}]
[profile.ci]
fuzz = { runs = 1_000 }
verbosity = 3
[profile.via-ir]
via-ir = true
[fmt]
bracket_spacing = true
int_types = "long"
line_length = 120
multiline_func_header = "all"
number_underscore = "thousands"
quote_style = "double"
tab_width = 4
wrap_comments = true
ignore = ["contracts/validators/stx-validator/submodules/p256/P256Verifier.sol"]
[lint]
lint_on_build = true
ignore = [
# Test files
"test/*/*.t.sol",
"test/*.t.sol",
"test/**/*.t.sol",
# Mock contracts
"test/mock/*.sol",
"contracts/mock/*.sol",
"**/mock/*.sol",
# Specific file patterns that are often problematic
"**/*Mock*.sol",
"**/*Test*.sol",
# borrowed p256 verifier from Daimo's lib
"contracts/validators/stx-validator/submodules/p256/P256Verifier.sol",
]
severity = ["high", "med", "gas"]
[etherscan]
# ETHEREUM
mainnet = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "1"}
sepolia = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "11155111"}
# BASE
base = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "8453"}
base-sepolia = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "84532"}
# POLYGON
polygon = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "137"}
polygon-amoy = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "80002"}
# ARBITRUM
arbitrum-one = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "42161"}
arbitrum-sepolia = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "421614"}
# OPTIMISM
optimism = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "10"}
optimism-sepolia = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "11155420"}
# BNB
bnb = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "56"}
bnb-testnet = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "97"}
# SONIC
sonic = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "146"}
sonic-testnet = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "14601"}
# SCROLL
scroll = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "534352"}
scroll-sepolia = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "534351"}
# GNOSIS
gnosis = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "100"}
# gnosis-chiado = { key = "", url = "", chain = "10200"}
# AVALANCHE
avalanche = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "43114"}
avalanche-fuji = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "43113"}
# APECHAIN
apechain = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "33139"}
apechain-curtis = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "33111"}
# HYPEREVM
hyperevm = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "999"}
# CORE
# core-testnet-2 = { key = "", url = "", chain = "1114"}
# NEURA
# neura-testnet = { key = "", url = "", chain = "267"}
# SEI
sei = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "1329"}
sei-testnet = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "1328"}
# UNICHAIN
unichain = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "130"}
unichain-sepolia = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "1301"}
# KATANA
katana = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "747474"}
# LISK
# lisk = { key = "", url = "", chain = "1135"}
# WORLDCHAIN
worldchain = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "480"}
worldchain-sepolia = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "4801"}
# MONAD
# monad = { key = "", url = "", chain = "143"}
monad-testnet = { key = "${ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api", chain = "10143"}
# PLASMA
# plasma = { key = "", url = "", chain = "9745"}
# plasma-testnet = { key = "", url = "", chain = "9746"}
# ARC
# arc-testnet = { key = "", url = "", chain = "5042002"}
# SOPHON
sophon-zk-testnet = { key = "", url = "https://block-explorer-api.zksync-os-testnet-sophon.zksync.dev/api", chain = "531050204"}