@snowbridge/contract-types 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,2766 @@
|
|
|
1
|
+
WARN Issue while reading "/home/runner/work/snowbridge/snowbridge/web/.npmrc". Failed to replace env in config: ${NPM_AUTH_TOKEN}
|
|
2
|
+
|
|
3
|
+
> @snowbridge/contract-types@0.2.0 build /home/runner/work/snowbridge/snowbridge/web/packages/contract-types
|
|
4
|
+
> rm -rf src && rm -rf dist && cd ../../../contracts && forge build && cd ../web/packages/contract-types && pnpm typechain && tsc --build --force
|
|
5
|
+
|
|
6
|
+
No files changed, compilation skipped
|
|
7
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
8
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Agent.sol:19:25
|
|
9
|
+
|
|
|
10
|
+
19 | constructor(bytes32 agentID) {
|
|
11
|
+
| -------
|
|
12
|
+
|
|
|
13
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
14
|
+
|
|
15
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
16
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Functions.sol:31:34
|
|
17
|
+
|
|
|
18
|
+
31 | function ensureAgent(bytes32 agentID) internal view returns (address agent) {
|
|
19
|
+
| -------
|
|
20
|
+
|
|
|
21
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
22
|
+
|
|
23
|
+
note[unused-import]: unused imports should be removed
|
|
24
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/scripts/upgrade/DeployGateway202509.sol:7:9
|
|
25
|
+
|
|
|
26
|
+
7 | import {ParaID} from "../../src/Types.sol";
|
|
27
|
+
| ------
|
|
28
|
+
|
|
|
29
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
30
|
+
|
|
31
|
+
note[unused-import]: unused imports should be removed
|
|
32
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Initializer.sol:5:9
|
|
33
|
+
|
|
|
34
|
+
5 | import {AgentExecutor} from "./AgentExecutor.sol";
|
|
35
|
+
| -------------
|
|
36
|
+
|
|
|
37
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
38
|
+
|
|
39
|
+
note[unused-import]: unused imports should be removed
|
|
40
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Initializer.sol:7:24
|
|
41
|
+
|
|
|
42
|
+
7 | import {OperatingMode, ParaID, TokenInfo, Channel, ChannelID} from "./Types.sol";
|
|
43
|
+
| ------
|
|
44
|
+
|
|
|
45
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
46
|
+
|
|
47
|
+
note[unused-import]: unused imports should be removed
|
|
48
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Initializer.sol:7:52
|
|
49
|
+
|
|
|
50
|
+
7 | import {OperatingMode, ParaID, TokenInfo, Channel, ChannelID} from "./Types.sol";
|
|
51
|
+
| ---------
|
|
52
|
+
|
|
|
53
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
54
|
+
|
|
55
|
+
note[unused-import]: unused imports should be removed
|
|
56
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Initializer.sol:16:18
|
|
57
|
+
|
|
|
58
|
+
16 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
|
|
59
|
+
| -------
|
|
60
|
+
|
|
|
61
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
62
|
+
|
|
63
|
+
note[unused-import]: unused imports should be removed
|
|
64
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Initializer.sol:16:27
|
|
65
|
+
|
|
|
66
|
+
16 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
|
|
67
|
+
| -------
|
|
68
|
+
|
|
|
69
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
70
|
+
|
|
71
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
72
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:249:47
|
|
73
|
+
|
|
|
74
|
+
249 | function channelOperatingModeOf(ChannelID channelID) external view returns (OperatingMode) {
|
|
75
|
+
| ---------
|
|
76
|
+
|
|
|
77
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
78
|
+
|
|
79
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
80
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:253:40
|
|
81
|
+
|
|
|
82
|
+
253 | function channelNoncesOf(ChannelID channelID) external view returns (uint64, uint64) {
|
|
83
|
+
| ---------
|
|
84
|
+
|
|
|
85
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
86
|
+
|
|
87
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
88
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:257:30
|
|
89
|
+
|
|
|
90
|
+
257 | function agentOf(bytes32 agentID)
|
|
91
|
+
| -------
|
|
92
|
+
|
|
|
93
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
94
|
+
|
|
95
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
96
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:287:14
|
|
97
|
+
|
|
|
98
|
+
287 | function queryForeignTokenID(address token) external view returns (bytes32) {
|
|
99
|
+
| -------------------
|
|
100
|
+
|
|
|
101
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
102
|
+
|
|
103
|
+
note[pascal-case-struct]: structs should use PascalCase
|
|
104
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Verification.sol:24:12
|
|
105
|
+
|
|
|
106
|
+
24 | struct MMRLeafPartial {
|
|
107
|
+
| --------------
|
|
108
|
+
|
|
|
109
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#pascal-case-struct
|
|
110
|
+
|
|
111
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
112
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Verification.sol:28:16
|
|
113
|
+
|
|
|
114
|
+
28 | uint64 nextAuthoritySetID;
|
|
115
|
+
| ------------------
|
|
116
|
+
|
|
|
117
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
118
|
+
|
|
119
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
120
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Verification.sol:51:16
|
|
121
|
+
|
|
|
122
|
+
51 | bytes4 consensusEngineID;
|
|
123
|
+
| -----------------
|
|
124
|
+
|
|
|
125
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
126
|
+
|
|
127
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
128
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:324:37
|
|
129
|
+
|
|
|
130
|
+
324 | function tokenAddressOf(bytes32 tokenID) external view returns (address) {
|
|
131
|
+
| -------
|
|
132
|
+
|
|
|
133
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
134
|
+
|
|
135
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
136
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:333:14
|
|
137
|
+
|
|
|
138
|
+
333 | function v1_handleAgentExecute(bytes calldata data) external onlySelf {
|
|
139
|
+
| ---------------------
|
|
140
|
+
|
|
|
141
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
142
|
+
|
|
143
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
144
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:338:14
|
|
145
|
+
|
|
|
146
|
+
338 | function v1_handleUpgrade(bytes calldata data) external onlySelf {
|
|
147
|
+
| ----------------
|
|
148
|
+
|
|
|
149
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
150
|
+
|
|
151
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
152
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:343:14
|
|
153
|
+
|
|
|
154
|
+
343 | function v1_handleSetOperatingMode(bytes calldata data) external onlySelf {
|
|
155
|
+
| -------------------------
|
|
156
|
+
|
|
|
157
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
158
|
+
|
|
159
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
160
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:348:14
|
|
161
|
+
|
|
|
162
|
+
348 | function v1_handleSetTokenTransferFees(bytes calldata data) external onlySelf {
|
|
163
|
+
| -----------------------------
|
|
164
|
+
|
|
|
165
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
166
|
+
|
|
167
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
168
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:353:14
|
|
169
|
+
|
|
|
170
|
+
353 | function v1_handleSetPricingParameters(bytes calldata data) external onlySelf {
|
|
171
|
+
| -----------------------------
|
|
172
|
+
|
|
|
173
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
174
|
+
|
|
175
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
176
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:358:14
|
|
177
|
+
|
|
|
178
|
+
358 | function v1_handleUnlockNativeToken(bytes calldata data) external onlySelf {
|
|
179
|
+
| --------------------------
|
|
180
|
+
|
|
|
181
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
182
|
+
|
|
183
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
184
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/scripts/DeployLocal.sol:84:9
|
|
185
|
+
|
|
|
186
|
+
84 | weth.transfer(user, 10 ether);
|
|
187
|
+
| -----------------------------
|
|
188
|
+
|
|
|
189
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
190
|
+
|
|
191
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
192
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:19:14
|
|
193
|
+
|
|
|
194
|
+
19 | function H160(address account) internal pure returns (bytes memory) {
|
|
195
|
+
| ----
|
|
196
|
+
|
|
|
197
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
198
|
+
|
|
199
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
200
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:23:14
|
|
201
|
+
|
|
|
202
|
+
23 | function VecU8(bytes memory input) internal pure returns (bytes memory) {
|
|
203
|
+
| -----
|
|
204
|
+
|
|
|
205
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
206
|
+
|
|
207
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
208
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:33:14
|
|
209
|
+
|
|
|
210
|
+
33 | function None() internal pure returns (bytes memory) {
|
|
211
|
+
| ----
|
|
212
|
+
|
|
|
213
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
214
|
+
|
|
215
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
216
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:42:14
|
|
217
|
+
|
|
|
218
|
+
42 | function RegisterToken(address token, uint128 fee) internal view returns (bytes memory) {
|
|
219
|
+
| -------------
|
|
220
|
+
|
|
|
221
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
222
|
+
|
|
223
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
224
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:57:14
|
|
225
|
+
|
|
|
226
|
+
57 | function SendTokenToAssetHubAddress32(
|
|
227
|
+
| ----------------------------
|
|
228
|
+
|
|
|
229
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
230
|
+
|
|
231
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
232
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:76:14
|
|
233
|
+
|
|
|
234
|
+
76 | function SendTokenToAddress32(
|
|
235
|
+
| --------------------
|
|
236
|
+
|
|
|
237
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
238
|
+
|
|
239
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
240
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:78:16
|
|
241
|
+
|
|
|
242
|
+
78 | ParaID paraID,
|
|
243
|
+
| ------
|
|
244
|
+
|
|
|
245
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
246
|
+
|
|
247
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
248
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:99:14
|
|
249
|
+
|
|
|
250
|
+
99 | function SendTokenToAddress20(
|
|
251
|
+
| --------------------
|
|
252
|
+
|
|
|
253
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
254
|
+
|
|
255
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
256
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:101:16
|
|
257
|
+
|
|
|
258
|
+
101 | ParaID paraID,
|
|
259
|
+
| ------
|
|
260
|
+
|
|
|
261
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
262
|
+
|
|
263
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
264
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:121:14
|
|
265
|
+
|
|
|
266
|
+
121 | function SendForeignTokenToAssetHubAddress32(
|
|
267
|
+
| -----------------------------------
|
|
268
|
+
|
|
|
269
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
270
|
+
|
|
271
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
272
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:363:14
|
|
273
|
+
|
|
|
274
|
+
363 | function v1_handleRegisterForeignToken(bytes calldata data) external onlySelf {
|
|
275
|
+
| -----------------------------
|
|
276
|
+
|
|
|
277
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
278
|
+
|
|
279
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
280
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:368:14
|
|
281
|
+
|
|
|
282
|
+
368 | function v1_handleMintForeignToken(ChannelID channelID, bytes calldata data)
|
|
283
|
+
| -------------------------
|
|
284
|
+
|
|
|
285
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
286
|
+
|
|
287
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
288
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:368:50
|
|
289
|
+
|
|
|
290
|
+
368 | function v1_handleMintForeignToken(ChannelID channelID, bytes calldata data)
|
|
291
|
+
| ---------
|
|
292
|
+
|
|
|
293
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
294
|
+
|
|
295
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
296
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:394:14
|
|
297
|
+
|
|
|
298
|
+
394 | function v1_transactionBaseGas() internal pure returns (uint256) {
|
|
299
|
+
| ---------------------
|
|
300
|
+
|
|
|
301
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
302
|
+
|
|
303
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
304
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:410:14
|
|
305
|
+
|
|
|
306
|
+
410 | function v2_submit(
|
|
307
|
+
| ---------
|
|
308
|
+
|
|
|
309
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
310
|
+
|
|
311
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
312
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:444:14
|
|
313
|
+
|
|
|
314
|
+
444 | function v2_outboundNonce() external view returns (uint64) {
|
|
315
|
+
| ----------------
|
|
316
|
+
|
|
|
317
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
318
|
+
|
|
319
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
320
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:448:14
|
|
321
|
+
|
|
|
322
|
+
448 | function v2_isDispatched(uint64 nonce) external view returns (bool) {
|
|
323
|
+
| ---------------
|
|
324
|
+
|
|
|
325
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
326
|
+
|
|
327
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
328
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:453:14
|
|
329
|
+
|
|
|
330
|
+
453 | function v2_sendMessage(
|
|
331
|
+
| --------------
|
|
332
|
+
|
|
|
333
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
334
|
+
|
|
335
|
+
note[unused-import]: unused imports should be removed
|
|
336
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:5:9
|
|
337
|
+
|
|
|
338
|
+
5 | import {TokenInfo, OperatingMode} from "./types/Common.sol";
|
|
339
|
+
| ---------
|
|
340
|
+
|
|
|
341
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
342
|
+
|
|
343
|
+
note[unused-import]: unused imports should be removed
|
|
344
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:5:20
|
|
345
|
+
|
|
|
346
|
+
5 | import {TokenInfo, OperatingMode} from "./types/Common.sol";
|
|
347
|
+
| -------------
|
|
348
|
+
|
|
|
349
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
350
|
+
|
|
351
|
+
note[unused-import]: unused imports should be removed
|
|
352
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:6:9
|
|
353
|
+
|
|
|
354
|
+
6 | import {UD60x18} from "prb/math/src/UD60x18.sol";
|
|
355
|
+
| -------
|
|
356
|
+
|
|
|
357
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
358
|
+
|
|
359
|
+
note[unused-import]: unused imports should be removed
|
|
360
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:8:5
|
|
361
|
+
|
|
|
362
|
+
8 | ParaID,
|
|
363
|
+
| ------
|
|
364
|
+
|
|
|
365
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
366
|
+
|
|
367
|
+
note[unused-import]: unused imports should be removed
|
|
368
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:9:5
|
|
369
|
+
|
|
|
370
|
+
9 | ChannelID,
|
|
371
|
+
| ---------
|
|
372
|
+
|
|
|
373
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
374
|
+
|
|
375
|
+
note[unused-import]: unused imports should be removed
|
|
376
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:10:5
|
|
377
|
+
|
|
|
378
|
+
10 | Channel,
|
|
379
|
+
| -------
|
|
380
|
+
|
|
|
381
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
382
|
+
|
|
383
|
+
note[unused-import]: unused imports should be removed
|
|
384
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:11:5
|
|
385
|
+
|
|
|
386
|
+
11 | InboundMessage as InboundMessageV1,
|
|
387
|
+
| ----------------------------------
|
|
388
|
+
|
|
|
389
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
390
|
+
|
|
391
|
+
note[unused-import]: unused imports should be removed
|
|
392
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:12:5
|
|
393
|
+
|
|
|
394
|
+
12 | Command as CommandV1,
|
|
395
|
+
| --------------------
|
|
396
|
+
|
|
|
397
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
398
|
+
|
|
399
|
+
note[screaming-snake-case-immutable]: immutables should use SCREAMING_SNAKE_CASE
|
|
400
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Token.sol:17:30
|
|
401
|
+
|
|
|
402
|
+
17 | address public immutable gateway;
|
|
403
|
+
| -------
|
|
404
|
+
|
|
|
405
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-immutable
|
|
406
|
+
|
|
407
|
+
note[screaming-snake-case-immutable]: immutables should use SCREAMING_SNAKE_CASE
|
|
408
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Token.sol:18:28
|
|
409
|
+
|
|
|
410
|
+
18 | uint8 public immutable decimals;
|
|
411
|
+
| --------
|
|
412
|
+
|
|
|
413
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-immutable
|
|
414
|
+
|
|
415
|
+
note[unused-import]: unused imports should be removed
|
|
416
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/scripts/DeployLocal.sol:17:9
|
|
417
|
+
|
|
|
418
|
+
17 | import {UD60x18, ud60x18} from "prb/math/src/UD60x18.sol";
|
|
419
|
+
| -------
|
|
420
|
+
|
|
|
421
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
422
|
+
|
|
423
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
424
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:57:16
|
|
425
|
+
|
|
|
426
|
+
57 | uint64 validatorSetID;
|
|
427
|
+
| --------------
|
|
428
|
+
|
|
|
429
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
430
|
+
|
|
431
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
432
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/interfaces/IERC20Metadata.sol:7:8
|
|
433
|
+
|
|
|
434
|
+
7 | import "./IERC20.sol";
|
|
435
|
+
| --------------
|
|
436
|
+
|
|
|
437
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
438
|
+
|
|
439
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
440
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/interfaces/IERC20Permit.sol:11:14
|
|
441
|
+
|
|
|
442
|
+
11 | function DOMAIN_SEPARATOR() external view returns (bytes32);
|
|
443
|
+
| ----------------
|
|
444
|
+
|
|
|
445
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
446
|
+
|
|
447
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
448
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:69:16
|
|
449
|
+
|
|
|
450
|
+
69 | bytes2 payloadID;
|
|
451
|
+
| ---------
|
|
452
|
+
|
|
|
453
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
454
|
+
|
|
455
|
+
note[pascal-case-struct]: structs should use PascalCase
|
|
456
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:109:12
|
|
457
|
+
|
|
|
458
|
+
109 | struct MMRLeaf {
|
|
459
|
+
| -------
|
|
460
|
+
|
|
|
461
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#pascal-case-struct
|
|
462
|
+
|
|
463
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
464
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:122:17
|
|
465
|
+
|
|
|
466
|
+
122 | bytes32 tokenID,
|
|
467
|
+
| -------
|
|
468
|
+
|
|
|
469
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
470
|
+
|
|
471
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
472
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:140:14
|
|
473
|
+
|
|
|
474
|
+
140 | function SendForeignTokenToAddress32(
|
|
475
|
+
| ---------------------------
|
|
476
|
+
|
|
|
477
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
478
|
+
|
|
479
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
480
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:141:17
|
|
481
|
+
|
|
|
482
|
+
141 | bytes32 tokenID,
|
|
483
|
+
| -------
|
|
484
|
+
|
|
|
485
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
486
|
+
|
|
487
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
488
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:142:16
|
|
489
|
+
|
|
|
490
|
+
142 | ParaID paraID,
|
|
491
|
+
| ------
|
|
492
|
+
|
|
|
493
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
494
|
+
|
|
495
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
496
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Token.sol:81:14
|
|
497
|
+
|
|
|
498
|
+
81 | function DOMAIN_SEPARATOR() external view returns (bytes32) {
|
|
499
|
+
| ----------------
|
|
500
|
+
|
|
|
501
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
502
|
+
|
|
503
|
+
note[unused-import]: unused imports should be removed
|
|
504
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:13:5
|
|
505
|
+
|
|
|
506
|
+
13 | MultiAddress
|
|
507
|
+
| ------------
|
|
508
|
+
|
|
|
509
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
510
|
+
|
|
511
|
+
note[unused-import]: unused imports should be removed
|
|
512
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:15:9
|
|
513
|
+
|
|
|
514
|
+
15 | import {CallsV1} from "./v1/Calls.sol";
|
|
515
|
+
| -------
|
|
516
|
+
|
|
|
517
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
518
|
+
|
|
519
|
+
note[unused-import]: unused imports should be removed
|
|
520
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:16:9
|
|
521
|
+
|
|
|
522
|
+
16 | import {HandlersV1} from "./v1/Handlers.sol";
|
|
523
|
+
| ----------
|
|
524
|
+
|
|
|
525
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
526
|
+
|
|
527
|
+
note[unused-import]: unused imports should be removed
|
|
528
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:17:9
|
|
529
|
+
|
|
|
530
|
+
17 | import {IGatewayV1} from "./v1/IGateway.sol";
|
|
531
|
+
| ----------
|
|
532
|
+
|
|
|
533
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
534
|
+
|
|
535
|
+
note[unused-import]: unused imports should be removed
|
|
536
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:20:5
|
|
537
|
+
|
|
|
538
|
+
20 | InboundMessage as InboundMessageV2, Command as CommandV2, CommandKind
|
|
539
|
+
| ----------------------------------
|
|
540
|
+
|
|
|
541
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
542
|
+
|
|
543
|
+
note[unused-import]: unused imports should be removed
|
|
544
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:20:41
|
|
545
|
+
|
|
|
546
|
+
20 | InboundMessage as InboundMessageV2, Command as CommandV2, CommandKind
|
|
547
|
+
| --------------------
|
|
548
|
+
|
|
|
549
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
550
|
+
|
|
551
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
552
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:464:14
|
|
553
|
+
|
|
|
554
|
+
464 | function v2_registerToken(
|
|
555
|
+
| ----------------
|
|
556
|
+
|
|
|
557
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
558
|
+
|
|
559
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
560
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:163:14
|
|
561
|
+
|
|
|
562
|
+
163 | function SendForeignTokenToAddress20(
|
|
563
|
+
| ---------------------------
|
|
564
|
+
|
|
|
565
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
566
|
+
|
|
567
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
568
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:164:17
|
|
569
|
+
|
|
|
570
|
+
164 | bytes32 tokenID,
|
|
571
|
+
| -------
|
|
572
|
+
|
|
|
573
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
574
|
+
|
|
575
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
576
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/SubstrateTypes.sol:165:16
|
|
577
|
+
|
|
|
578
|
+
165 | ParaID paraID,
|
|
579
|
+
| ------
|
|
580
|
+
|
|
|
581
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
582
|
+
|
|
583
|
+
note[unused-import]: unused imports should be removed
|
|
584
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:20:63
|
|
585
|
+
|
|
|
586
|
+
20 | InboundMessage as InboundMessageV2, Command as CommandV2, CommandKind
|
|
587
|
+
| -----------
|
|
588
|
+
|
|
|
589
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
590
|
+
|
|
591
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
592
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/interfaces/IGatewayBase.sol:34:50
|
|
593
|
+
|
|
|
594
|
+
34 | event ForeignTokenRegistered(bytes32 indexed tokenID, address token);
|
|
595
|
+
| -------
|
|
596
|
+
|
|
|
597
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
598
|
+
|
|
599
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
600
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/storage/AssetsStorage.sol:13:16
|
|
601
|
+
|
|
|
602
|
+
13 | ParaID assetHubParaID;
|
|
603
|
+
| --------------
|
|
604
|
+
|
|
|
605
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
606
|
+
|
|
607
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
608
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Functions.sol:39:38
|
|
609
|
+
|
|
|
610
|
+
39 | function ensureChannel(ChannelID channelID) internal view returns (Channel storage ch) {
|
|
611
|
+
| ---------
|
|
612
|
+
|
|
|
613
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
614
|
+
|
|
615
|
+
note[unused-import]: unused imports should be removed
|
|
616
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:22:9
|
|
617
|
+
|
|
|
618
|
+
22 | import {CallsV2} from "./v2/Calls.sol";
|
|
619
|
+
| -------
|
|
620
|
+
|
|
|
621
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
622
|
+
|
|
623
|
+
note[unused-import]: unused imports should be removed
|
|
624
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:23:9
|
|
625
|
+
|
|
|
626
|
+
23 | import {HandlersV2} from "./v2/Handlers.sol";
|
|
627
|
+
| ----------
|
|
628
|
+
|
|
|
629
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
630
|
+
|
|
631
|
+
note[unused-import]: unused imports should be removed
|
|
632
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Types.sol:24:9
|
|
633
|
+
|
|
|
634
|
+
24 | import {IGatewayV2} from "./v2/IGateway.sol";
|
|
635
|
+
| ----------
|
|
636
|
+
|
|
|
637
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
638
|
+
|
|
639
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
640
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Functions.sol:116:17
|
|
641
|
+
|
|
|
642
|
+
116 | bytes32 foreignTokenID,
|
|
643
|
+
| --------------
|
|
644
|
+
|
|
|
645
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
646
|
+
|
|
647
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
648
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Functions.sol:136:39
|
|
649
|
+
|
|
|
650
|
+
136 | function mintForeignToken(bytes32 foreignTokenID, address recipient, uint128 amount)
|
|
651
|
+
| --------------
|
|
652
|
+
|
|
|
653
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
654
|
+
|
|
655
|
+
warning[incorrect-shift]: the order of args in a shift operation is incorrect
|
|
656
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/utils/Math.sol:82:60
|
|
657
|
+
|
|
|
658
|
+
82 | return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
|
|
659
|
+
| -----------
|
|
660
|
+
|
|
|
661
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#incorrect-shift
|
|
662
|
+
|
|
663
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
664
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/upgrade/Gateway202509.sol:5:8
|
|
665
|
+
|
|
|
666
|
+
5 | import "../Gateway.sol";
|
|
667
|
+
| ----------------
|
|
668
|
+
|
|
|
669
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
670
|
+
|
|
671
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
672
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:475:14
|
|
673
|
+
|
|
|
674
|
+
475 | function v2_createAgent(bytes32 id) external {
|
|
675
|
+
| --------------
|
|
676
|
+
|
|
|
677
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
678
|
+
|
|
679
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
680
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:484:14
|
|
681
|
+
|
|
|
682
|
+
484 | function v2_handleUpgrade(bytes calldata data) external onlySelf {
|
|
683
|
+
| ----------------
|
|
684
|
+
|
|
|
685
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
686
|
+
|
|
687
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
688
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:489:14
|
|
689
|
+
|
|
|
690
|
+
489 | function v2_handleSetOperatingMode(bytes calldata data) external onlySelf {
|
|
691
|
+
| -------------------------
|
|
692
|
+
|
|
|
693
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
694
|
+
|
|
695
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
696
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:494:14
|
|
697
|
+
|
|
|
698
|
+
494 | function v2_handleUnlockNativeToken(bytes calldata data) external onlySelf {
|
|
699
|
+
| --------------------------
|
|
700
|
+
|
|
|
701
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
702
|
+
|
|
703
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
704
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:499:14
|
|
705
|
+
|
|
|
706
|
+
499 | function v2_handleRegisterForeignToken(bytes calldata data) external onlySelf {
|
|
707
|
+
| -----------------------------
|
|
708
|
+
|
|
|
709
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
710
|
+
|
|
711
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
712
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:504:14
|
|
713
|
+
|
|
|
714
|
+
504 | function v2_handleMintForeignToken(bytes calldata data) external onlySelf {
|
|
715
|
+
| -------------------------
|
|
716
|
+
|
|
|
717
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
718
|
+
|
|
719
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
720
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:509:14
|
|
721
|
+
|
|
|
722
|
+
509 | function v2_handleCallContract(bytes32 origin, bytes calldata data) external onlySelf {
|
|
723
|
+
| ---------------------
|
|
724
|
+
|
|
|
725
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
726
|
+
|
|
727
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
728
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:566:14
|
|
729
|
+
|
|
|
730
|
+
566 | function v2_dispatch(InboundMessageV2 calldata message) internal returns (bool) {
|
|
731
|
+
| -----------
|
|
732
|
+
|
|
|
733
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
734
|
+
|
|
735
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
736
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:117:16
|
|
737
|
+
|
|
|
738
|
+
117 | uint64 nextAuthoritySetID;
|
|
739
|
+
| ------------------
|
|
740
|
+
|
|
|
741
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
742
|
+
|
|
743
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
744
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Handlers.sol:120:41
|
|
745
|
+
|
|
|
746
|
+
120 | function mintForeignToken(ChannelID channelID, bytes calldata data) external {
|
|
747
|
+
| ---------
|
|
748
|
+
|
|
|
749
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
750
|
+
|
|
751
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
752
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Calls.sol:159:40
|
|
753
|
+
|
|
|
754
|
+
159 | function channelNoncesOf(ChannelID channelID) external view returns (uint64, uint64) {
|
|
755
|
+
| ---------
|
|
756
|
+
|
|
|
757
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
758
|
+
|
|
759
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
760
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Calls.sol:164:47
|
|
761
|
+
|
|
|
762
|
+
164 | function channelOperatingModeOf(ChannelID channelID) external view returns (OperatingMode) {
|
|
763
|
+
| ---------
|
|
764
|
+
|
|
|
765
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
766
|
+
|
|
767
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
768
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Calls.sol:170:37
|
|
769
|
+
|
|
|
770
|
+
170 | function tokenAddressOf(bytes32 tokenID) external view returns (address) {
|
|
771
|
+
| -------
|
|
772
|
+
|
|
|
773
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
774
|
+
|
|
775
|
+
warning[incorrect-shift]: the order of args in a shift operation is incorrect
|
|
776
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/utils/SparseBitmap.sol:12:20
|
|
777
|
+
|
|
|
778
|
+
12 | uint256 mask = 1 << (index & 0xff);
|
|
779
|
+
| -------------------
|
|
780
|
+
|
|
|
781
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#incorrect-shift
|
|
782
|
+
|
|
783
|
+
warning[incorrect-shift]: the order of args in a shift operation is incorrect
|
|
784
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/utils/SparseBitmap.sol:18:20
|
|
785
|
+
|
|
|
786
|
+
18 | uint256 mask = 1 << (index & 0xff);
|
|
787
|
+
| -------------------
|
|
788
|
+
|
|
|
789
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#incorrect-shift
|
|
790
|
+
|
|
791
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
792
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/types/Common.sol:14:13
|
|
793
|
+
|
|
|
794
|
+
14 | bytes32 foreignID;
|
|
795
|
+
| ---------
|
|
796
|
+
|
|
|
797
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
798
|
+
|
|
799
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
800
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:155:20
|
|
801
|
+
|
|
|
802
|
+
155 | bytes32 public latestMMRRoot;
|
|
803
|
+
| -------------
|
|
804
|
+
|
|
|
805
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
806
|
+
|
|
807
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
808
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Functions.sol:148:44
|
|
809
|
+
|
|
|
810
|
+
148 | function _ensureTokenAddressOf(bytes32 tokenID) internal view returns (address) {
|
|
811
|
+
| -------
|
|
812
|
+
|
|
|
813
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
814
|
+
|
|
815
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
816
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Verification.sol:108:16
|
|
817
|
+
|
|
|
818
|
+
108 | bytes4 encodedParaID,
|
|
819
|
+
| -------------
|
|
820
|
+
|
|
|
821
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
822
|
+
|
|
823
|
+
note[unused-import]: unused imports should be removed
|
|
824
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:8:9
|
|
825
|
+
|
|
|
826
|
+
8 | import {AgentExecutor} from "./AgentExecutor.sol";
|
|
827
|
+
| -------------
|
|
828
|
+
|
|
|
829
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
830
|
+
|
|
831
|
+
note[unused-import]: unused imports should be removed
|
|
832
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:29:9
|
|
833
|
+
|
|
|
834
|
+
29 | import {Upgrade} from "./Upgrade.sol";
|
|
835
|
+
| -------
|
|
836
|
+
|
|
|
837
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
838
|
+
|
|
839
|
+
note[unused-import]: unused imports should be removed
|
|
840
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:41:9
|
|
841
|
+
|
|
|
842
|
+
41 | import {PricingStorage} from "./storage/PricingStorage.sol";
|
|
843
|
+
| --------------
|
|
844
|
+
|
|
|
845
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
846
|
+
|
|
847
|
+
note[unused-import]: unused imports should be removed
|
|
848
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:44:18
|
|
849
|
+
|
|
|
850
|
+
44 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
|
|
851
|
+
| -------
|
|
852
|
+
|
|
|
853
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
854
|
+
|
|
855
|
+
note[unused-import]: unused imports should be removed
|
|
856
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:44:27
|
|
857
|
+
|
|
|
858
|
+
44 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
|
|
859
|
+
| -------
|
|
860
|
+
|
|
|
861
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
862
|
+
|
|
863
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
864
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Calls.sol:211:19
|
|
865
|
+
|
|
|
866
|
+
211 | ChannelID channelID = ticket.dest.into();
|
|
867
|
+
| ---------
|
|
868
|
+
|
|
|
869
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
870
|
+
|
|
871
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
872
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Calls.sol:242:17
|
|
873
|
+
|
|
|
874
|
+
242 | bytes32 messageID = keccak256(abi.encodePacked(channelID, channel.outboundNonce));
|
|
875
|
+
| ---------
|
|
876
|
+
|
|
|
877
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
878
|
+
|
|
879
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
880
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Calls.sol:139:14
|
|
881
|
+
|
|
|
882
|
+
139 | function _handleAssetERC20(address token, uint128 amount) internal returns (Asset memory) {
|
|
883
|
+
| -----------------
|
|
884
|
+
|
|
|
885
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
886
|
+
|
|
887
|
+
note[unused-import]: unused imports should be removed
|
|
888
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Handlers.sol:13:9
|
|
889
|
+
|
|
|
890
|
+
13 | import {AgentExecutor} from "../AgentExecutor.sol";
|
|
891
|
+
| -------------
|
|
892
|
+
|
|
|
893
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
894
|
+
|
|
895
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
896
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Verification.sol:205:53
|
|
897
|
+
|
|
|
898
|
+
205 | function createParachainHeaderMerkleLeaf(bytes4 encodedParaID, ParachainHeader calldata header)
|
|
899
|
+
| -------------
|
|
900
|
+
|
|
|
901
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
902
|
+
|
|
903
|
+
note[unused-import]: unused imports should be removed
|
|
904
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Handlers.sol:13:9
|
|
905
|
+
|
|
|
906
|
+
13 | import {IGatewayV2} from "./IGateway.sol";
|
|
907
|
+
| ----------
|
|
908
|
+
|
|
|
909
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
910
|
+
|
|
911
|
+
note[screaming-snake-case-immutable]: immutables should use SCREAMING_SNAKE_CASE
|
|
912
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:182:30
|
|
913
|
+
|
|
|
914
|
+
182 | uint256 public immutable randaoCommitDelay;
|
|
915
|
+
| -----------------
|
|
916
|
+
|
|
|
917
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-immutable
|
|
918
|
+
|
|
919
|
+
note[screaming-snake-case-immutable]: immutables should use SCREAMING_SNAKE_CASE
|
|
920
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:190:30
|
|
921
|
+
|
|
|
922
|
+
190 | uint256 public immutable randaoCommitExpiration;
|
|
923
|
+
| ----------------------
|
|
924
|
+
|
|
|
925
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-immutable
|
|
926
|
+
|
|
927
|
+
note[screaming-snake-case-immutable]: immutables should use SCREAMING_SNAKE_CASE
|
|
928
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:196:30
|
|
929
|
+
|
|
|
930
|
+
196 | uint256 public immutable minNumRequiredSignatures;
|
|
931
|
+
| ------------------------
|
|
932
|
+
|
|
|
933
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-immutable
|
|
934
|
+
|
|
935
|
+
note[unused-import]: unused imports should be removed
|
|
936
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/types/Common.sol:5:9
|
|
937
|
+
|
|
|
938
|
+
5 | import {UD60x18} from "prb/math/src/UD60x18.sol";
|
|
939
|
+
| -------
|
|
940
|
+
|
|
|
941
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
942
|
+
|
|
943
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
944
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:315:17
|
|
945
|
+
|
|
|
946
|
+
315 | bytes32 ticketID = createTicketID(msg.sender, commitmentHash);
|
|
947
|
+
| --------
|
|
948
|
+
|
|
|
949
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
950
|
+
|
|
951
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
952
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/IGateway.sol:20:27
|
|
953
|
+
|
|
|
954
|
+
20 | ChannelID indexed channelID, uint64 nonce, bytes32 indexed messageID, bool success
|
|
955
|
+
| ---------
|
|
956
|
+
|
|
|
957
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
958
|
+
|
|
959
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
960
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/IGateway.sol:20:68
|
|
961
|
+
|
|
|
962
|
+
20 | ChannelID indexed channelID, uint64 nonce, bytes32 indexed messageID, bool success
|
|
963
|
+
| ---------
|
|
964
|
+
|
|
|
965
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
966
|
+
|
|
967
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
968
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/IGateway.sol:25:27
|
|
969
|
+
|
|
|
970
|
+
25 | ChannelID indexed channelID, uint64 nonce, bytes32 indexed messageID, bytes payload
|
|
971
|
+
| ---------
|
|
972
|
+
|
|
|
973
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
974
|
+
|
|
975
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
976
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/IGateway.sol:25:68
|
|
977
|
+
|
|
|
978
|
+
25 | ChannelID indexed channelID, uint64 nonce, bytes32 indexed messageID, bytes payload
|
|
979
|
+
| ---------
|
|
980
|
+
|
|
|
981
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
982
|
+
|
|
983
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
984
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/IGateway.sol:32:47
|
|
985
|
+
|
|
|
986
|
+
32 | event AgentFundsWithdrawn(bytes32 indexed agentID, address indexed recipient, uint256 amount);
|
|
987
|
+
| -------
|
|
988
|
+
|
|
|
989
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
990
|
+
|
|
991
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
992
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/IGateway.sol:42:30
|
|
993
|
+
|
|
|
994
|
+
42 | function agentOf(bytes32 agentID) external view returns (address);
|
|
995
|
+
| -------
|
|
996
|
+
|
|
|
997
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
998
|
+
|
|
999
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1000
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/IGateway.sol:44:47
|
|
1001
|
+
|
|
|
1002
|
+
44 | function channelOperatingModeOf(ChannelID channelID) external view returns (OperatingMode);
|
|
1003
|
+
| ---------
|
|
1004
|
+
|
|
|
1005
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1006
|
+
|
|
1007
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1008
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/IGateway.sol:46:40
|
|
1009
|
+
|
|
|
1010
|
+
46 | function channelNoncesOf(ChannelID channelID) external view returns (uint64, uint64);
|
|
1011
|
+
| ---------
|
|
1012
|
+
|
|
|
1013
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1014
|
+
|
|
1015
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1016
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Types.sol:13:10
|
|
1017
|
+
|
|
|
1018
|
+
13 | function ParaIDEq(ParaID a, ParaID b) pure returns (bool) {
|
|
1019
|
+
| --------
|
|
1020
|
+
|
|
|
1021
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1022
|
+
|
|
1023
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1024
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Types.sol:17:10
|
|
1025
|
+
|
|
|
1026
|
+
17 | function ParaIDNe(ParaID a, ParaID b) pure returns (bool) {
|
|
1027
|
+
| --------
|
|
1028
|
+
|
|
|
1029
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1030
|
+
|
|
1031
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1032
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Types.sol:21:22
|
|
1033
|
+
|
|
|
1034
|
+
21 | function into(ParaID paraID) pure returns (ChannelID) {
|
|
1035
|
+
| ------
|
|
1036
|
+
|
|
|
1037
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1038
|
+
|
|
1039
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1040
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Types.sol:29:10
|
|
1041
|
+
|
|
|
1042
|
+
29 | function ChannelIDEq(ChannelID a, ChannelID b) pure returns (bool) {
|
|
1043
|
+
| -----------
|
|
1044
|
+
|
|
|
1045
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1046
|
+
|
|
1047
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1048
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Types.sol:33:10
|
|
1049
|
+
|
|
|
1050
|
+
33 | function ChannelIDNe(ChannelID a, ChannelID b) pure returns (bool) {
|
|
1051
|
+
| -----------
|
|
1052
|
+
|
|
|
1053
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1054
|
+
|
|
1055
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1056
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Types.sol:53:15
|
|
1057
|
+
|
|
|
1058
|
+
53 | ChannelID channelID;
|
|
1059
|
+
| ---------
|
|
1060
|
+
|
|
|
1061
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1062
|
+
|
|
1063
|
+
note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
|
|
1064
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:28:20
|
|
1065
|
+
|
|
|
1066
|
+
28 | uint8 constant Upgrade = 0;
|
|
1067
|
+
| -------
|
|
1068
|
+
|
|
|
1069
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
|
|
1070
|
+
|
|
1071
|
+
note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
|
|
1072
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:30:20
|
|
1073
|
+
|
|
|
1074
|
+
30 | uint8 constant SetOperatingMode = 1;
|
|
1075
|
+
| ----------------
|
|
1076
|
+
|
|
|
1077
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
|
|
1078
|
+
|
|
1079
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1080
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/IGateway.sol:22:30
|
|
1081
|
+
|
|
|
1082
|
+
22 | function agentOf(bytes32 agentID) external view returns (address);
|
|
1083
|
+
| -------
|
|
1084
|
+
|
|
|
1085
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1086
|
+
|
|
1087
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1088
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/IGateway.sol:29:32
|
|
1089
|
+
|
|
|
1090
|
+
29 | event AgentCreated(bytes32 agentID, address agent);
|
|
1091
|
+
| -------
|
|
1092
|
+
|
|
|
1093
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1094
|
+
|
|
1095
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1096
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Verification.sol:214:43
|
|
1097
|
+
|
|
|
1098
|
+
214 | function createParachainHeader(bytes4 encodedParaID, ParachainHeader calldata header)
|
|
1099
|
+
| -------------
|
|
1100
|
+
|
|
|
1101
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1102
|
+
|
|
1103
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1104
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Verification.sol:243:14
|
|
1105
|
+
|
|
|
1106
|
+
243 | function createMMRLeaf(MMRLeafPartial memory leaf, bytes32 parachainHeadsRoot)
|
|
1107
|
+
| -------------
|
|
1108
|
+
|
|
|
1109
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1110
|
+
|
|
1111
|
+
note[unused-import]: unused imports should be removed
|
|
1112
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Calls.sol:29:9
|
|
1113
|
+
|
|
|
1114
|
+
29 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
|
|
1115
|
+
| -------
|
|
1116
|
+
|
|
|
1117
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1118
|
+
|
|
1119
|
+
note[unused-import]: unused imports should be removed
|
|
1120
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Calls.sol:29:18
|
|
1121
|
+
|
|
|
1122
|
+
29 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
|
|
1123
|
+
| -------
|
|
1124
|
+
|
|
|
1125
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1126
|
+
|
|
1127
|
+
note[unused-import]: unused imports should be removed
|
|
1128
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Calls.sol:29:27
|
|
1129
|
+
|
|
|
1130
|
+
29 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
|
|
1131
|
+
| -------
|
|
1132
|
+
|
|
|
1133
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1134
|
+
|
|
1135
|
+
note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
|
|
1136
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:32:20
|
|
1137
|
+
|
|
|
1138
|
+
32 | uint8 constant UnlockNativeToken = 2;
|
|
1139
|
+
| -----------------
|
|
1140
|
+
|
|
|
1141
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
|
|
1142
|
+
|
|
1143
|
+
note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
|
|
1144
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:34:20
|
|
1145
|
+
|
|
|
1146
|
+
34 | uint8 constant RegisterForeignToken = 3;
|
|
1147
|
+
| --------------------
|
|
1148
|
+
|
|
|
1149
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
|
|
1150
|
+
|
|
1151
|
+
note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
|
|
1152
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:36:20
|
|
1153
|
+
|
|
|
1154
|
+
36 | uint8 constant MintForeignToken = 4;
|
|
1155
|
+
| ----------------
|
|
1156
|
+
|
|
|
1157
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
|
|
1158
|
+
|
|
1159
|
+
note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
|
|
1160
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:38:20
|
|
1161
|
+
|
|
|
1162
|
+
38 | uint8 constant CallContract = 5;
|
|
1163
|
+
| ------------
|
|
1164
|
+
|
|
|
1165
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
|
|
1166
|
+
|
|
1167
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1168
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:359:17
|
|
1169
|
+
|
|
|
1170
|
+
359 | bytes32 ticketID = createTicketID(msg.sender, commitmentHash);
|
|
1171
|
+
| --------
|
|
1172
|
+
|
|
|
1173
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1174
|
+
|
|
1175
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1176
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:362:14
|
|
1177
|
+
|
|
|
1178
|
+
362 | bool is_next_session = false;
|
|
1179
|
+
| ---------------
|
|
1180
|
+
|
|
|
1181
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1182
|
+
|
|
1183
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1184
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:373:17
|
|
1185
|
+
|
|
|
1186
|
+
373 | bytes32 newMMRRoot = ensureProvidesMMRRoot(commitment);
|
|
1187
|
+
| ----------
|
|
1188
|
+
|
|
|
1189
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1190
|
+
|
|
1191
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1192
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:405:14
|
|
1193
|
+
|
|
|
1194
|
+
405 | function verifyMMRLeafProof(bytes32 leafHash, bytes32[] calldata proof, uint256 proofOrder)
|
|
1195
|
+
| ------------------
|
|
1196
|
+
|
|
|
1197
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1198
|
+
|
|
1199
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1200
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Types.sol:108:13
|
|
1201
|
+
|
|
|
1202
|
+
108 | bytes32 agentID;
|
|
1203
|
+
| -------
|
|
1204
|
+
|
|
|
1205
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1206
|
+
|
|
1207
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1208
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/IGateway.sol:51:14
|
|
1209
|
+
|
|
|
1210
|
+
51 | function v2_submit(
|
|
1211
|
+
| ---------
|
|
1212
|
+
|
|
|
1213
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1214
|
+
|
|
1215
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1216
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/IGateway.sol:81:14
|
|
1217
|
+
|
|
|
1218
|
+
81 | function v2_sendMessage(
|
|
1219
|
+
| --------------
|
|
1220
|
+
|
|
|
1221
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1222
|
+
|
|
1223
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1224
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/IGateway.sol:96:14
|
|
1225
|
+
|
|
|
1226
|
+
96 | function v2_registerToken(
|
|
1227
|
+
| ----------------
|
|
1228
|
+
|
|
|
1229
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1230
|
+
|
|
1231
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1232
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/IGateway.sol:105:14
|
|
1233
|
+
|
|
|
1234
|
+
105 | function v2_createAgent(bytes32 id) external;
|
|
1235
|
+
| --------------
|
|
1236
|
+
|
|
|
1237
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1238
|
+
|
|
1239
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1240
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Types.sol:153:13
|
|
1241
|
+
|
|
|
1242
|
+
153 | bytes32 agentID;
|
|
1243
|
+
| -------
|
|
1244
|
+
|
|
|
1245
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1246
|
+
|
|
1247
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1248
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Types.sol:165:13
|
|
1249
|
+
|
|
|
1250
|
+
165 | bytes32 foreignTokenID;
|
|
1251
|
+
| --------------
|
|
1252
|
+
|
|
|
1253
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1254
|
+
|
|
1255
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1256
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Types.sol:177:13
|
|
1257
|
+
|
|
|
1258
|
+
177 | bytes32 foreignTokenID;
|
|
1259
|
+
| --------------
|
|
1260
|
+
|
|
|
1261
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1262
|
+
|
|
1263
|
+
note[unused-import]: unused imports should be removed
|
|
1264
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Types.sol:5:9
|
|
1265
|
+
|
|
|
1266
|
+
5 | import {TokenInfo, OperatingMode} from "../types/Common.sol";
|
|
1267
|
+
| ---------
|
|
1268
|
+
|
|
|
1269
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1270
|
+
|
|
1271
|
+
note[unused-import]: unused imports should be removed
|
|
1272
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Types.sol:6:9
|
|
1273
|
+
|
|
|
1274
|
+
6 | import {MultiAddress} from "./MultiAddress.sol";
|
|
1275
|
+
| ------------
|
|
1276
|
+
|
|
|
1277
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1278
|
+
|
|
1279
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1280
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Agent.t.sol:4:8
|
|
1281
|
+
|
|
|
1282
|
+
4 | import "forge-std/Test.sol";
|
|
1283
|
+
| --------------------
|
|
1284
|
+
|
|
|
1285
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1286
|
+
|
|
1287
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1288
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Agent.t.sol:5:8
|
|
1289
|
+
|
|
|
1290
|
+
5 | import "forge-std/console.sol";
|
|
1291
|
+
| -----------------------
|
|
1292
|
+
|
|
|
1293
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1294
|
+
|
|
1295
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1296
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/IGateway.sol:86:14
|
|
1297
|
+
|
|
|
1298
|
+
86 | function queryForeignTokenID(address token) external view returns (bytes32);
|
|
1299
|
+
| -------------------
|
|
1300
|
+
|
|
|
1301
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1302
|
+
|
|
1303
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1304
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/IGateway.sol:117:37
|
|
1305
|
+
|
|
|
1306
|
+
117 | function tokenAddressOf(bytes32 tokenID) external view returns (address);
|
|
1307
|
+
| -------
|
|
1308
|
+
|
|
|
1309
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1310
|
+
|
|
1311
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1312
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:451:14
|
|
1313
|
+
|
|
|
1314
|
+
451 | function createTicketID(address account, bytes32 commitmentHash)
|
|
1315
|
+
| --------------
|
|
1316
|
+
|
|
|
1317
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1318
|
+
|
|
1319
|
+
note[unused-import]: unused imports should be removed
|
|
1320
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Bitfield.t.sol:5:9
|
|
1321
|
+
|
|
|
1322
|
+
5 | import {console} from "forge-std/console.sol";
|
|
1323
|
+
| -------
|
|
1324
|
+
|
|
|
1325
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1326
|
+
|
|
1327
|
+
note[unused-import]: unused imports should be removed
|
|
1328
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Verification.sol:8:9
|
|
1329
|
+
|
|
|
1330
|
+
8 | import {SubstrateTypes} from "./SubstrateTypes.sol";
|
|
1331
|
+
| --------------
|
|
1332
|
+
|
|
|
1333
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1334
|
+
|
|
1335
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1336
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/BeefyClient.t.sol:43:12
|
|
1337
|
+
|
|
|
1338
|
+
43 | bytes2 mmrRootID = bytes2("mh");
|
|
1339
|
+
| ---------
|
|
1340
|
+
|
|
|
1341
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1342
|
+
|
|
1343
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1344
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Calls.sol:355:17
|
|
1345
|
+
|
|
|
1346
|
+
355 | bytes32 foreignID,
|
|
1347
|
+
| ---------
|
|
1348
|
+
|
|
|
1349
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1350
|
+
|
|
1351
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1352
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:503:17
|
|
1353
|
+
|
|
|
1354
|
+
503 | bytes32 ticketID,
|
|
1355
|
+
| --------
|
|
1356
|
+
|
|
|
1357
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1358
|
+
|
|
1359
|
+
note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
|
|
1360
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:68:20
|
|
1361
|
+
|
|
|
1362
|
+
68 | uint8 constant Raw = 0;
|
|
1363
|
+
| ---
|
|
1364
|
+
|
|
|
1365
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
|
|
1366
|
+
|
|
1367
|
+
note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
|
|
1368
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:70:20
|
|
1369
|
+
|
|
|
1370
|
+
70 | uint8 constant CreateAsset = 1;
|
|
1371
|
+
| -----------
|
|
1372
|
+
|
|
|
1373
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
|
|
1374
|
+
|
|
1375
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1376
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:81:10
|
|
1377
|
+
|
|
|
1378
|
+
81 | function makeRawXCM(bytes memory xcm) pure returns (Xcm memory) {
|
|
1379
|
+
| ----------
|
|
1380
|
+
|
|
|
1381
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1382
|
+
|
|
1383
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1384
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:85:20
|
|
1385
|
+
|
|
|
1386
|
+
85 | bytes32 public dotTokenID;
|
|
1387
|
+
| ----------
|
|
1388
|
+
|
|
|
1389
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1390
|
+
|
|
1391
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1392
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/IGateway.sol:108:14
|
|
1393
|
+
|
|
|
1394
|
+
108 | function v2_outboundNonce() external view returns (uint64);
|
|
1395
|
+
| ----------------
|
|
1396
|
+
|
|
|
1397
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1398
|
+
|
|
1399
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1400
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/IGateway.sol:111:14
|
|
1401
|
+
|
|
|
1402
|
+
111 | function v2_isDispatched(uint64 nonce) external view returns (bool);
|
|
1403
|
+
| ---------------
|
|
1404
|
+
|
|
|
1405
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1406
|
+
|
|
1407
|
+
note[unused-import]: unused imports should be removed
|
|
1408
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Calls.sol:14:9
|
|
1409
|
+
|
|
|
1410
|
+
14 | import {AgentExecutor} from "../AgentExecutor.sol";
|
|
1411
|
+
| -------------
|
|
1412
|
+
|
|
|
1413
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1414
|
+
|
|
1415
|
+
note[unused-import]: unused imports should be removed
|
|
1416
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Calls.sol:15:9
|
|
1417
|
+
|
|
|
1418
|
+
15 | import {Agent} from "../Agent.sol";
|
|
1419
|
+
| -----
|
|
1420
|
+
|
|
|
1421
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1422
|
+
|
|
1423
|
+
note[unused-import]: unused imports should be removed
|
|
1424
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Calls.sol:16:9
|
|
1425
|
+
|
|
|
1426
|
+
16 | import {Call} from "../utils/Call.sol";
|
|
1427
|
+
| ----
|
|
1428
|
+
|
|
|
1429
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1430
|
+
|
|
1431
|
+
note[unused-import]: unused imports should be removed
|
|
1432
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Calls.sol:25:5
|
|
1433
|
+
|
|
|
1434
|
+
25 | AgentExecuteCommand,
|
|
1435
|
+
| -------------------
|
|
1436
|
+
|
|
|
1437
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1438
|
+
|
|
1439
|
+
note[unused-import]: unused imports should be removed
|
|
1440
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Calls.sol:31:18
|
|
1441
|
+
|
|
|
1442
|
+
31 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
|
|
1443
|
+
| -------
|
|
1444
|
+
|
|
|
1445
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1446
|
+
|
|
1447
|
+
note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
|
|
1448
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/ForkUpgrade202509.t.sol:33:31
|
|
1449
|
+
|
|
|
1450
|
+
33 | address constant internal assetHubAgent = 0xd803472c47a87D7B63E888DE53f03B4191B846a8;
|
|
1451
|
+
| -------------
|
|
1452
|
+
|
|
|
1453
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
|
|
1454
|
+
|
|
1455
|
+
note[unused-import]: unused imports should be removed
|
|
1456
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/MMRProof.t.sol:5:9
|
|
1457
|
+
|
|
|
1458
|
+
5 | import {console} from "forge-std/console.sol";
|
|
1459
|
+
| -------
|
|
1460
|
+
|
|
|
1461
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1462
|
+
|
|
1463
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1464
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:85:10
|
|
1465
|
+
|
|
|
1466
|
+
85 | function makeCreateAssetXCM(address token, Network network) pure returns (Xcm memory) {
|
|
1467
|
+
| ------------------
|
|
1468
|
+
|
|
|
1469
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1470
|
+
|
|
1471
|
+
note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
|
|
1472
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:98:20
|
|
1473
|
+
|
|
|
1474
|
+
98 | uint8 constant NativeTokenERC20 = 0;
|
|
1475
|
+
| ----------------
|
|
1476
|
+
|
|
|
1477
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
|
|
1478
|
+
|
|
1479
|
+
note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
|
|
1480
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:99:20
|
|
1481
|
+
|
|
|
1482
|
+
99 | uint8 constant ForeignTokenERC20 = 1;
|
|
1483
|
+
| -----------------
|
|
1484
|
+
|
|
|
1485
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
|
|
1486
|
+
|
|
1487
|
+
note[pascal-case-struct]: structs should use PascalCase
|
|
1488
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:103:8
|
|
1489
|
+
|
|
|
1490
|
+
103 | struct AsNativeTokenERC20 {
|
|
1491
|
+
| ------------------
|
|
1492
|
+
|
|
|
1493
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#pascal-case-struct
|
|
1494
|
+
|
|
1495
|
+
note[pascal-case-struct]: structs should use PascalCase
|
|
1496
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:109:8
|
|
1497
|
+
|
|
|
1498
|
+
109 | struct AsForeignTokenERC20 {
|
|
1499
|
+
| -------------------
|
|
1500
|
+
|
|
|
1501
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#pascal-case-struct
|
|
1502
|
+
|
|
1503
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1504
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:110:13
|
|
1505
|
+
|
|
|
1506
|
+
110 | bytes32 foreignID;
|
|
1507
|
+
| ---------
|
|
1508
|
+
|
|
|
1509
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1510
|
+
|
|
1511
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1512
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:121:35
|
|
1513
|
+
|
|
|
1514
|
+
121 | function makeForeignAsset(bytes32 foreignID, uint128 amount) pure returns (Asset memory) {
|
|
1515
|
+
| ---------
|
|
1516
|
+
|
|
|
1517
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1518
|
+
|
|
1519
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1520
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:159:13
|
|
1521
|
+
|
|
|
1522
|
+
159 | bytes32 foreignTokenID;
|
|
1523
|
+
| --------------
|
|
1524
|
+
|
|
|
1525
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1526
|
+
|
|
1527
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1528
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v2/Types.sol:171:13
|
|
1529
|
+
|
|
|
1530
|
+
171 | bytes32 foreignTokenID;
|
|
1531
|
+
| --------------
|
|
1532
|
+
|
|
|
1533
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1534
|
+
|
|
1535
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1536
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Math.t.sol:4:8
|
|
1537
|
+
|
|
|
1538
|
+
4 | import "forge-std/Test.sol";
|
|
1539
|
+
| --------------------
|
|
1540
|
+
|
|
|
1541
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1542
|
+
|
|
1543
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1544
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Math.t.sol:5:8
|
|
1545
|
+
|
|
|
1546
|
+
5 | import "forge-std/console.sol";
|
|
1547
|
+
| -----------------------
|
|
1548
|
+
|
|
|
1549
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1550
|
+
|
|
1551
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1552
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/BeefyClient.t.sol:167:14
|
|
1553
|
+
|
|
|
1554
|
+
167 | function decodeMMRLeaf(string memory beefyCommitmentRaw) internal {
|
|
1555
|
+
| -------------
|
|
1556
|
+
|
|
|
1557
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1558
|
+
|
|
1559
|
+
note[unused-import]: unused imports should be removed
|
|
1560
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:5:9
|
|
1561
|
+
|
|
|
1562
|
+
5 | import {Strings} from "openzeppelin/utils/Strings.sol";
|
|
1563
|
+
| -------
|
|
1564
|
+
|
|
|
1565
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1566
|
+
|
|
1567
|
+
note[unused-import]: unused imports should be removed
|
|
1568
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:6:9
|
|
1569
|
+
|
|
|
1570
|
+
6 | import {console} from "forge-std/console.sol";
|
|
1571
|
+
| -------
|
|
1572
|
+
|
|
|
1573
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1574
|
+
|
|
1575
|
+
note[unused-import]: unused imports should be removed
|
|
1576
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:8:9
|
|
1577
|
+
|
|
|
1578
|
+
8 | import {BeefyClient} from "../src/BeefyClient.sol";
|
|
1579
|
+
| -----------
|
|
1580
|
+
|
|
|
1581
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1582
|
+
|
|
1583
|
+
note[unused-import]: unused imports should be removed
|
|
1584
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:12:9
|
|
1585
|
+
|
|
|
1586
|
+
12 | import {IInitializable} from "../src/interfaces/IInitializable.sol";
|
|
1587
|
+
| --------------
|
|
1588
|
+
|
|
|
1589
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1590
|
+
|
|
1591
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1592
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/ForkUpgrade202509.t.sol:139:16
|
|
1593
|
+
|
|
|
1594
|
+
139 | ParaID paraID = ParaID.wrap(1000);
|
|
1595
|
+
| ------
|
|
1596
|
+
|
|
|
1597
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1598
|
+
|
|
1599
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1600
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:543:14
|
|
1601
|
+
|
|
|
1602
|
+
543 | function ensureProvidesMMRRoot(Commitment calldata commitment)
|
|
1603
|
+
| ---------------------
|
|
1604
|
+
|
|
|
1605
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1606
|
+
|
|
1607
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1608
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:590:14
|
|
1609
|
+
|
|
|
1610
|
+
590 | function encodeMMRLeaf(MMRLeaf calldata leaf) internal pure returns (bytes memory) {
|
|
1611
|
+
| -------------
|
|
1612
|
+
|
|
|
1613
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1614
|
+
|
|
1615
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1616
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:624:17
|
|
1617
|
+
|
|
|
1618
|
+
624 | bytes32 ticketID,
|
|
1619
|
+
| --------
|
|
1620
|
+
|
|
|
1621
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1622
|
+
|
|
1623
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1624
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:68:8
|
|
1625
|
+
|
|
|
1626
|
+
68 | import "./mocks/HighGasToken.sol";
|
|
1627
|
+
| --------------------------
|
|
1628
|
+
|
|
|
1629
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1630
|
+
|
|
1631
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1632
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:74:19
|
|
1633
|
+
|
|
|
1634
|
+
74 | ParaID public bridgeHubParaID = ParaID.wrap(1013);
|
|
1635
|
+
| ---------------
|
|
1636
|
+
|
|
|
1637
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1638
|
+
|
|
1639
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1640
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:76:20
|
|
1641
|
+
|
|
|
1642
|
+
76 | bytes32 public bridgeHubAgentID =
|
|
1643
|
+
| ----------------
|
|
1644
|
+
|
|
|
1645
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1646
|
+
|
|
1647
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1648
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:80:19
|
|
1649
|
+
|
|
|
1650
|
+
80 | ParaID public assetHubParaID = ParaID.wrap(1000);
|
|
1651
|
+
| --------------
|
|
1652
|
+
|
|
|
1653
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1654
|
+
|
|
1655
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1656
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:81:20
|
|
1657
|
+
|
|
|
1658
|
+
81 | bytes32 public assetHubAgentID =
|
|
1659
|
+
| ---------------
|
|
1660
|
+
|
|
|
1661
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1662
|
+
|
|
1663
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1664
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:103:20
|
|
1665
|
+
|
|
|
1666
|
+
103 | bytes32 public messageID = keccak256("cabbage");
|
|
1667
|
+
| ---------
|
|
1668
|
+
|
|
|
1669
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1670
|
+
|
|
1671
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1672
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/ScaleCodec.t.sol:4:8
|
|
1673
|
+
|
|
|
1674
|
+
4 | import "forge-std/Test.sol";
|
|
1675
|
+
| --------------------
|
|
1676
|
+
|
|
|
1677
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1678
|
+
|
|
1679
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1680
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/ScaleCodec.t.sol:5:8
|
|
1681
|
+
|
|
|
1682
|
+
5 | import "forge-std/console.sol";
|
|
1683
|
+
| -----------------------
|
|
1684
|
+
|
|
|
1685
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1686
|
+
|
|
1687
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1688
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Uint16Array.t.sol:4:8
|
|
1689
|
+
|
|
|
1690
|
+
4 | import "forge-std/Test.sol";
|
|
1691
|
+
| --------------------
|
|
1692
|
+
|
|
|
1693
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1694
|
+
|
|
1695
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1696
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Uint16Array.t.sol:5:8
|
|
1697
|
+
|
|
|
1698
|
+
5 | import "forge-std/console.sol";
|
|
1699
|
+
| -----------------------
|
|
1700
|
+
|
|
|
1701
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1702
|
+
|
|
1703
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1704
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:120:20
|
|
1705
|
+
|
|
|
1706
|
+
120 | bytes32 public dotTokenID;
|
|
1707
|
+
| ----------
|
|
1708
|
+
|
|
|
1709
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1710
|
+
|
|
1711
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1712
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:4:8
|
|
1713
|
+
|
|
|
1714
|
+
4 | import "forge-std/Test.sol";
|
|
1715
|
+
| --------------------
|
|
1716
|
+
|
|
|
1717
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1718
|
+
|
|
1719
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1720
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:5:8
|
|
1721
|
+
|
|
|
1722
|
+
5 | import "forge-std/console.sol";
|
|
1723
|
+
| -----------------------
|
|
1724
|
+
|
|
|
1725
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1726
|
+
|
|
1727
|
+
note[unused-import]: unused imports should be removed
|
|
1728
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:13:9
|
|
1729
|
+
|
|
|
1730
|
+
13 | import {IUpgradable} from "../src/interfaces/IUpgradable.sol";
|
|
1731
|
+
| -----------
|
|
1732
|
+
|
|
|
1733
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1734
|
+
|
|
1735
|
+
note[unused-import]: unused imports should be removed
|
|
1736
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:14:9
|
|
1737
|
+
|
|
|
1738
|
+
14 | import {Gateway} from "../src/Gateway.sol";
|
|
1739
|
+
| -------
|
|
1740
|
+
|
|
|
1741
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1742
|
+
|
|
1743
|
+
note[unused-import]: unused imports should be removed
|
|
1744
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:16:9
|
|
1745
|
+
|
|
|
1746
|
+
16 | import {MockGatewayV2} from "./mocks/MockGatewayV2.sol";
|
|
1747
|
+
| -------------
|
|
1748
|
+
|
|
|
1749
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1750
|
+
|
|
1751
|
+
note[unused-import]: unused imports should be removed
|
|
1752
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:21:9
|
|
1753
|
+
|
|
|
1754
|
+
21 | import {Agent} from "../src/Agent.sol";
|
|
1755
|
+
| -----
|
|
1756
|
+
|
|
|
1757
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1758
|
+
|
|
1759
|
+
note[unused-import]: unused imports should be removed
|
|
1760
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:23:9
|
|
1761
|
+
|
|
|
1762
|
+
23 | import {SubstrateTypes} from "./../src/SubstrateTypes.sol";
|
|
1763
|
+
| --------------
|
|
1764
|
+
|
|
|
1765
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1766
|
+
|
|
1767
|
+
note[unused-import]: unused imports should be removed
|
|
1768
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:24:24
|
|
1769
|
+
|
|
|
1770
|
+
24 | import {OperatingMode, ParaID, CommandV2, CommandKind, InboundMessageV2} from "../src/Types.sol";
|
|
1771
|
+
| ------
|
|
1772
|
+
|
|
|
1773
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1774
|
+
|
|
1775
|
+
note[unused-import]: unused imports should be removed
|
|
1776
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:26:9
|
|
1777
|
+
|
|
|
1778
|
+
26 | import {NativeTransferFailed} from "../src/utils/SafeTransfer.sol";
|
|
1779
|
+
| --------------------
|
|
1780
|
+
|
|
|
1781
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1782
|
+
|
|
1783
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1784
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/SparseBitmap.t.sol:4:8
|
|
1785
|
+
|
|
|
1786
|
+
4 | import "forge-std/Test.sol";
|
|
1787
|
+
| --------------------
|
|
1788
|
+
|
|
|
1789
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1790
|
+
|
|
1791
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1792
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/SparseBitmap.t.sol:5:8
|
|
1793
|
+
|
|
|
1794
|
+
5 | import "forge-std/console.sol";
|
|
1795
|
+
| -----------------------
|
|
1796
|
+
|
|
|
1797
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1798
|
+
|
|
1799
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1800
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Verification.t.sol:4:8
|
|
1801
|
+
|
|
|
1802
|
+
4 | import "openzeppelin/utils/Strings.sol";
|
|
1803
|
+
| --------------------------------
|
|
1804
|
+
|
|
|
1805
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1806
|
+
|
|
1807
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1808
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Verification.t.sol:5:8
|
|
1809
|
+
|
|
|
1810
|
+
5 | import "forge-std/Test.sol";
|
|
1811
|
+
| --------------------
|
|
1812
|
+
|
|
|
1813
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1814
|
+
|
|
1815
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1816
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Verification.t.sol:6:8
|
|
1817
|
+
|
|
|
1818
|
+
6 | import "forge-std/console.sol";
|
|
1819
|
+
| -----------------------
|
|
1820
|
+
|
|
|
1821
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1822
|
+
|
|
1823
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1824
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Verification.t.sol:17:19
|
|
1825
|
+
|
|
|
1826
|
+
17 | bytes4 public encodedParachainID;
|
|
1827
|
+
| ------------------
|
|
1828
|
+
|
|
|
1829
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1830
|
+
|
|
1831
|
+
note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
|
|
1832
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/BeefyClientMock.sol:6:8
|
|
1833
|
+
|
|
|
1834
|
+
6 | import "forge-std/console.sol";
|
|
1835
|
+
| -----------------------
|
|
1836
|
+
|
|
|
1837
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
|
|
1838
|
+
|
|
1839
|
+
note[unused-import]: unused imports should be removed
|
|
1840
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:27:9
|
|
1841
|
+
|
|
|
1842
|
+
27 | import {PricingStorage} from "../src/storage/PricingStorage.sol";
|
|
1843
|
+
| --------------
|
|
1844
|
+
|
|
|
1845
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1846
|
+
|
|
1847
|
+
note[unused-import]: unused imports should be removed
|
|
1848
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:29:9
|
|
1849
|
+
|
|
|
1850
|
+
29 | import {TokenLib} from "../src/TokenLib.sol";
|
|
1851
|
+
| --------
|
|
1852
|
+
|
|
|
1853
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1854
|
+
|
|
1855
|
+
note[unused-import]: unused imports should be removed
|
|
1856
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:36:5
|
|
1857
|
+
|
|
|
1858
|
+
36 | UpgradeParams,
|
|
1859
|
+
| -------------
|
|
1860
|
+
|
|
|
1861
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1862
|
+
|
|
1863
|
+
note[unused-import]: unused imports should be removed
|
|
1864
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:46:5
|
|
1865
|
+
|
|
|
1866
|
+
46 | Xcm,
|
|
1867
|
+
| ---
|
|
1868
|
+
|
|
|
1869
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1870
|
+
|
|
1871
|
+
note[unused-import]: unused imports should be removed
|
|
1872
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:51:5
|
|
1873
|
+
|
|
|
1874
|
+
51 | AgentExecuteCommand,
|
|
1875
|
+
| -------------------
|
|
1876
|
+
|
|
|
1877
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1878
|
+
|
|
1879
|
+
note[unused-import]: unused imports should be removed
|
|
1880
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:52:5
|
|
1881
|
+
|
|
|
1882
|
+
52 | InboundMessage,
|
|
1883
|
+
| --------------
|
|
1884
|
+
|
|
|
1885
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1886
|
+
|
|
1887
|
+
note[unused-import]: unused imports should be removed
|
|
1888
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:54:5
|
|
1889
|
+
|
|
|
1890
|
+
54 | ParaID,
|
|
1891
|
+
| ------
|
|
1892
|
+
|
|
|
1893
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1894
|
+
|
|
1895
|
+
note[unused-import]: unused imports should be removed
|
|
1896
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:55:5
|
|
1897
|
+
|
|
|
1898
|
+
55 | Command
|
|
1899
|
+
| -------
|
|
1900
|
+
|
|
|
1901
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1902
|
+
|
|
1903
|
+
note[unused-import]: unused imports should be removed
|
|
1904
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:59:9
|
|
1905
|
+
|
|
|
1906
|
+
59 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
|
|
1907
|
+
| -------
|
|
1908
|
+
|
|
|
1909
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1910
|
+
|
|
1911
|
+
note[unused-import]: unused imports should be removed
|
|
1912
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV2.t.sol:59:27
|
|
1913
|
+
|
|
|
1914
|
+
59 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
|
|
1915
|
+
| -------
|
|
1916
|
+
|
|
|
1917
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1918
|
+
|
|
1919
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
1920
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:63:9
|
|
1921
|
+
|
|
|
1922
|
+
63 | token.transfer(receiver, transferAmount);
|
|
1923
|
+
| ----------------------------------------
|
|
1924
|
+
|
|
|
1925
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
1926
|
+
|
|
1927
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1928
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Uint16Array.t.sol:98:16
|
|
1929
|
+
|
|
|
1930
|
+
98 | uint16 new_value = counters.get(index);
|
|
1931
|
+
| ---------
|
|
1932
|
+
|
|
|
1933
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1934
|
+
|
|
1935
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
1936
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/BeefyClient.t.sol:171:16
|
|
1937
|
+
|
|
|
1938
|
+
171 | uint64 nextAuthoritySetID =
|
|
1939
|
+
| ------------------
|
|
1940
|
+
|
|
|
1941
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
1942
|
+
|
|
1943
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1944
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/BeefyClientMock.sol:24:14
|
|
1945
|
+
|
|
|
1946
|
+
24 | function encodeCommitment_public(Commitment calldata commitment)
|
|
1947
|
+
| -----------------------
|
|
1948
|
+
|
|
|
1949
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1950
|
+
|
|
1951
|
+
note[unused-import]: unused imports should be removed
|
|
1952
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/ReantrantAttacker.sol:7:9
|
|
1953
|
+
|
|
|
1954
|
+
7 | import {console} from "forge-std/console.sol";
|
|
1955
|
+
| -------
|
|
1956
|
+
|
|
|
1957
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1958
|
+
|
|
1959
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1960
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:20:14
|
|
1961
|
+
|
|
|
1962
|
+
20 | function v1_handleAgentExecute_public(bytes calldata params) external {
|
|
1963
|
+
| ----------------------------
|
|
1964
|
+
|
|
|
1965
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1966
|
+
|
|
1967
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1968
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:24:14
|
|
1969
|
+
|
|
|
1970
|
+
24 | function v1_handleUpgrade_public(bytes calldata params) external {
|
|
1971
|
+
| -----------------------
|
|
1972
|
+
|
|
|
1973
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1974
|
+
|
|
1975
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
1976
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:28:14
|
|
1977
|
+
|
|
|
1978
|
+
28 | function v1_handleSetOperatingMode_public(bytes calldata params) external {
|
|
1979
|
+
| --------------------------------
|
|
1980
|
+
|
|
|
1981
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
1982
|
+
|
|
1983
|
+
note[unused-import]: unused imports should be removed
|
|
1984
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/BeefyClient.t.sol:11:9
|
|
1985
|
+
|
|
|
1986
|
+
11 | import {ScaleCodec} from "../src/utils/ScaleCodec.sol";
|
|
1987
|
+
| ----------
|
|
1988
|
+
|
|
|
1989
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1990
|
+
|
|
1991
|
+
note[unused-import]: unused imports should be removed
|
|
1992
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/ForkUpgrade202509.t.sol:4:9
|
|
1993
|
+
|
|
|
1994
|
+
4 | import {Vm} from "forge-std/Vm.sol";
|
|
1995
|
+
| --
|
|
1996
|
+
|
|
|
1997
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
1998
|
+
|
|
1999
|
+
note[unused-import]: unused imports should be removed
|
|
2000
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/ForkUpgrade202509.t.sol:6:9
|
|
2001
|
+
|
|
|
2002
|
+
6 | import {stdJson} from "forge-std/StdJson.sol";
|
|
2003
|
+
| -------
|
|
2004
|
+
|
|
|
2005
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2006
|
+
|
|
2007
|
+
note[unused-import]: unused imports should be removed
|
|
2008
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/ForkUpgrade202509.t.sol:7:9
|
|
2009
|
+
|
|
|
2010
|
+
7 | import {console} from "forge-std/console.sol";
|
|
2011
|
+
| -------
|
|
2012
|
+
|
|
|
2013
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2014
|
+
|
|
2015
|
+
note[unused-import]: unused imports should be removed
|
|
2016
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/ForkUpgrade202509.t.sol:8:18
|
|
2017
|
+
|
|
|
2018
|
+
8 | import {UD60x18, ud60x18, unwrap} from "prb/math/src/UD60x18.sol";
|
|
2019
|
+
| -------
|
|
2020
|
+
|
|
|
2021
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2022
|
+
|
|
2023
|
+
note[unused-import]: unused imports should be removed
|
|
2024
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/ForkUpgrade202509.t.sol:13:9
|
|
2025
|
+
|
|
|
2026
|
+
13 | import {Gateway} from "../src/Gateway.sol";
|
|
2027
|
+
| -------
|
|
2028
|
+
|
|
|
2029
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2030
|
+
|
|
2031
|
+
note[unused-import]: unused imports should be removed
|
|
2032
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/ForkUpgrade202509.t.sol:16:24
|
|
2033
|
+
|
|
|
2034
|
+
16 | import {UpgradeParams, SetOperatingModeParams, OperatingMode, RegisterForeignTokenParams} from "../src/v1/Types.sol";
|
|
2035
|
+
| ----------------------
|
|
2036
|
+
|
|
|
2037
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2038
|
+
|
|
2039
|
+
note[unused-import]: unused imports should be removed
|
|
2040
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/ForkUpgrade202509.t.sol:16:48
|
|
2041
|
+
|
|
|
2042
|
+
16 | import {UpgradeParams, SetOperatingModeParams, OperatingMode, RegisterForeignTokenParams} from "../src/v1/Types.sol";
|
|
2043
|
+
| -------------
|
|
2044
|
+
|
|
|
2045
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2046
|
+
|
|
2047
|
+
note[unused-import]: unused imports should be removed
|
|
2048
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/ForkUpgrade202509.t.sol:16:63
|
|
2049
|
+
|
|
|
2050
|
+
16 | import {UpgradeParams, SetOperatingModeParams, OperatingMode, RegisterForeignTokenParams} from "../src/v1/Types.sol";
|
|
2051
|
+
| --------------------------
|
|
2052
|
+
|
|
|
2053
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2054
|
+
|
|
2055
|
+
note[unused-import]: unused imports should be removed
|
|
2056
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/ForkUpgrade202509.t.sol:17:28
|
|
2057
|
+
|
|
|
2058
|
+
17 | import {ChannelID, ParaID, OperatingMode, InboundMessage, Command, TokenInfo} from "../src/v1/Types.sol";
|
|
2059
|
+
| -------------
|
|
2060
|
+
|
|
|
2061
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2062
|
+
|
|
2063
|
+
note[unused-import]: unused imports should be removed
|
|
2064
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/ForkUpgrade202509.t.sol:17:68
|
|
2065
|
+
|
|
|
2066
|
+
17 | import {ChannelID, ParaID, OperatingMode, InboundMessage, Command, TokenInfo} from "../src/v1/Types.sol";
|
|
2067
|
+
| ---------
|
|
2068
|
+
|
|
|
2069
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2070
|
+
|
|
2071
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
2072
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/BeefyClientMock.sol:40:14
|
|
2073
|
+
|
|
|
2074
|
+
40 | function initialize_public(
|
|
2075
|
+
| -----------------
|
|
2076
|
+
|
|
|
2077
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
2078
|
+
|
|
2079
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
2080
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:32:14
|
|
2081
|
+
|
|
|
2082
|
+
32 | function v1_handleSetTokenTransferFees_public(bytes calldata params) external {
|
|
2083
|
+
| ------------------------------------
|
|
2084
|
+
|
|
|
2085
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
2086
|
+
|
|
2087
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
2088
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:36:14
|
|
2089
|
+
|
|
|
2090
|
+
36 | function v1_handleSetPricingParameters_public(bytes calldata params) external {
|
|
2091
|
+
| ------------------------------------
|
|
2092
|
+
|
|
|
2093
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
2094
|
+
|
|
2095
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
2096
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:40:14
|
|
2097
|
+
|
|
|
2098
|
+
40 | function v1_handleUnlockNativeToken_public(bytes calldata params) external {
|
|
2099
|
+
| ---------------------------------
|
|
2100
|
+
|
|
|
2101
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
2102
|
+
|
|
2103
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
2104
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:44:14
|
|
2105
|
+
|
|
|
2106
|
+
44 | function v1_handleRegisterForeignToken_public(bytes calldata params) external {
|
|
2107
|
+
| ------------------------------------
|
|
2108
|
+
|
|
|
2109
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
2110
|
+
|
|
2111
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
2112
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:48:14
|
|
2113
|
+
|
|
|
2114
|
+
48 | function v1_handleMintForeignToken_public(ChannelID channelID, bytes calldata params)
|
|
2115
|
+
| --------------------------------
|
|
2116
|
+
|
|
|
2117
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
2118
|
+
|
|
2119
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2120
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:48:57
|
|
2121
|
+
|
|
|
2122
|
+
48 | function v1_handleMintForeignToken_public(ChannelID channelID, bytes calldata params)
|
|
2123
|
+
| ---------
|
|
2124
|
+
|
|
|
2125
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2126
|
+
|
|
2127
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
2128
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:58:14
|
|
2129
|
+
|
|
|
2130
|
+
58 | function prank_registerNativeToken(address token) external {
|
|
2131
|
+
| -------------------------
|
|
2132
|
+
|
|
|
2133
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
2134
|
+
|
|
2135
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
2136
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:62:14
|
|
2137
|
+
|
|
|
2138
|
+
62 | function prank_registerForeignToken(
|
|
2139
|
+
| --------------------------
|
|
2140
|
+
|
|
|
2141
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
2142
|
+
|
|
2143
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2144
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:63:17
|
|
2145
|
+
|
|
|
2146
|
+
63 | bytes32 foreignTokenID,
|
|
2147
|
+
| --------------
|
|
2148
|
+
|
|
|
2149
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2150
|
+
|
|
2151
|
+
note[unused-import]: unused imports should be removed
|
|
2152
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:7:20
|
|
2153
|
+
|
|
|
2154
|
+
7 | import {ChannelID, ParaID, OperatingMode} from "../../src/Types.sol";
|
|
2155
|
+
| ------
|
|
2156
|
+
|
|
|
2157
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2158
|
+
|
|
2159
|
+
note[unused-import]: unused imports should be removed
|
|
2160
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:7:28
|
|
2161
|
+
|
|
|
2162
|
+
7 | import {ChannelID, ParaID, OperatingMode} from "../../src/Types.sol";
|
|
2163
|
+
| -------------
|
|
2164
|
+
|
|
|
2165
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2166
|
+
|
|
2167
|
+
note[unused-import]: unused imports should be removed
|
|
2168
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:9:9
|
|
2169
|
+
|
|
|
2170
|
+
9 | import {CoreStorage} from "../../src/storage/CoreStorage.sol";
|
|
2171
|
+
| -----------
|
|
2172
|
+
|
|
|
2173
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2174
|
+
|
|
2175
|
+
note[unused-import]: unused imports should be removed
|
|
2176
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:11:9
|
|
2177
|
+
|
|
|
2178
|
+
11 | import {IInitializable} from "../../src/interfaces/IInitializable.sol";
|
|
2179
|
+
| --------------
|
|
2180
|
+
|
|
|
2181
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2182
|
+
|
|
2183
|
+
note[unused-import]: unused imports should be removed
|
|
2184
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/MockGateway.sol:13:9
|
|
2185
|
+
|
|
|
2186
|
+
13 | import {UD60x18} from "prb/math/src/UD60x18.sol";
|
|
2187
|
+
| -------
|
|
2188
|
+
|
|
|
2189
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2190
|
+
|
|
2191
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2192
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:102:9
|
|
2193
|
+
|
|
|
2194
|
+
102 | token.transferFrom(owner, receiver, transferAmount);
|
|
2195
|
+
| ---------------------------------------------------
|
|
2196
|
+
|
|
|
2197
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2198
|
+
|
|
2199
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
2200
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/BeefyClientMock.sol:85:14
|
|
2201
|
+
|
|
|
2202
|
+
85 | function computeNumRequiredSignatures_public(
|
|
2203
|
+
| -----------------------------------
|
|
2204
|
+
|
|
|
2205
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
2206
|
+
|
|
2207
|
+
note[mixed-case-function]: function names should use mixedCase
|
|
2208
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/BeefyClientMock.sol:93:14
|
|
2209
|
+
|
|
|
2210
|
+
93 | function computeQuorum_public(uint256 numValidators) public pure returns (uint256) {
|
|
2211
|
+
| --------------------
|
|
2212
|
+
|
|
|
2213
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
|
|
2214
|
+
|
|
2215
|
+
note[unused-import]: unused imports should be removed
|
|
2216
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/BeefyClientMock.sol:5:9
|
|
2217
|
+
|
|
|
2218
|
+
5 | import {Uint16Array, createUint16Array} from "../../src/utils/Uint16Array.sol";
|
|
2219
|
+
| -----------
|
|
2220
|
+
|
|
|
2221
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2222
|
+
|
|
2223
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2224
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:173:17
|
|
2225
|
+
|
|
|
2226
|
+
173 | bytes32 agentID,
|
|
2227
|
+
| -------
|
|
2228
|
+
|
|
|
2229
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2230
|
+
|
|
2231
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2232
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:187:17
|
|
2233
|
+
|
|
|
2234
|
+
187 | bytes32 agentID,
|
|
2235
|
+
| -------
|
|
2236
|
+
|
|
|
2237
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2238
|
+
|
|
2239
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2240
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/mocks/VerificationWrapper.sol:8:16
|
|
2241
|
+
|
|
|
2242
|
+
8 | bytes4 encodedParachainID,
|
|
2243
|
+
| ------------------
|
|
2244
|
+
|
|
|
2245
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2246
|
+
|
|
2247
|
+
note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
|
|
2248
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/utils/ForkTestFixtures.sol:33:24
|
|
2249
|
+
|
|
|
2250
|
+
33 | Vm public constant vm = Vm(0x7109709ECfa91a80626fF3989D68f67F5b1DD12D);
|
|
2251
|
+
| --
|
|
2252
|
+
|
|
|
2253
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
|
|
2254
|
+
|
|
2255
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2256
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:140:9
|
|
2257
|
+
|
|
|
2258
|
+
140 | token.transferFrom(owner, receiver, transferAmount);
|
|
2259
|
+
| ---------------------------------------------------
|
|
2260
|
+
|
|
|
2261
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2262
|
+
|
|
2263
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2264
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:165:9
|
|
2265
|
+
|
|
|
2266
|
+
165 | token.transferFrom(owner, address(0), amount);
|
|
2267
|
+
| ---------------------------------------------
|
|
2268
|
+
|
|
|
2269
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2270
|
+
|
|
2271
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2272
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:605:16
|
|
2273
|
+
|
|
|
2274
|
+
605 | ParaID paraID = ParaID.wrap(1000);
|
|
2275
|
+
| ------
|
|
2276
|
+
|
|
|
2277
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2278
|
+
|
|
2279
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2280
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:196:9
|
|
2281
|
+
|
|
|
2282
|
+
196 | token.transferFrom(owner, receiver, transferAmount);
|
|
2283
|
+
| ---------------------------------------------------
|
|
2284
|
+
|
|
|
2285
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2286
|
+
|
|
2287
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2288
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:205:9
|
|
2289
|
+
|
|
|
2290
|
+
205 | token.transferFrom(owner, receiver, allowanceAmount);
|
|
2291
|
+
| ----------------------------------------------------
|
|
2292
|
+
|
|
|
2293
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2294
|
+
|
|
2295
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2296
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:230:9
|
|
2297
|
+
|
|
|
2298
|
+
230 | token.transferFrom(owner, receiver, allowanceAmount);
|
|
2299
|
+
| ----------------------------------------------------
|
|
2300
|
+
|
|
|
2301
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2302
|
+
|
|
2303
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2304
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/utils/ForkTestFixtures.sol:132:15
|
|
2305
|
+
|
|
|
2306
|
+
132 | bytes consensusEngineID;
|
|
2307
|
+
| -----------------
|
|
2308
|
+
|
|
|
2309
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2310
|
+
|
|
2311
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2312
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:631:16
|
|
2313
|
+
|
|
|
2314
|
+
631 | ParaID paraID = ParaID.wrap(1000);
|
|
2315
|
+
| ------
|
|
2316
|
+
|
|
|
2317
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2318
|
+
|
|
2319
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2320
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:656:16
|
|
2321
|
+
|
|
|
2322
|
+
656 | ParaID paraID = ParaID.wrap(1000);
|
|
2323
|
+
| ------
|
|
2324
|
+
|
|
|
2325
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2326
|
+
|
|
2327
|
+
note[unused-import]: unused imports should be removed
|
|
2328
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/utils/ForkTestFixtures.sol:5:9
|
|
2329
|
+
|
|
|
2330
|
+
5 | import {Test} from "forge-std/Test.sol";
|
|
2331
|
+
| ----
|
|
2332
|
+
|
|
|
2333
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2334
|
+
|
|
2335
|
+
note[unused-import]: unused imports should be removed
|
|
2336
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/utils/ForkTestFixtures.sol:7:9
|
|
2337
|
+
|
|
|
2338
|
+
7 | import {console} from "forge-std/console.sol";
|
|
2339
|
+
| -------
|
|
2340
|
+
|
|
|
2341
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2342
|
+
|
|
2343
|
+
note[unused-import]: unused imports should be removed
|
|
2344
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/utils/ForkTestFixtures.sol:9:9
|
|
2345
|
+
|
|
|
2346
|
+
9 | import {IUpgradable} from "../../src/interfaces/IUpgradable.sol";
|
|
2347
|
+
| -----------
|
|
2348
|
+
|
|
|
2349
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2350
|
+
|
|
2351
|
+
note[unused-import]: unused imports should be removed
|
|
2352
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/utils/ForkTestFixtures.sol:12:5
|
|
2353
|
+
|
|
|
2354
|
+
12 | UpgradeParams,
|
|
2355
|
+
| -------------
|
|
2356
|
+
|
|
|
2357
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2358
|
+
|
|
2359
|
+
note[unused-import]: unused imports should be removed
|
|
2360
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/utils/ForkTestFixtures.sol:13:5
|
|
2361
|
+
|
|
|
2362
|
+
13 | SetOperatingModeParams,
|
|
2363
|
+
| ----------------------
|
|
2364
|
+
|
|
|
2365
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2366
|
+
|
|
2367
|
+
note[unused-import]: unused imports should be removed
|
|
2368
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/utils/ForkTestFixtures.sol:14:5
|
|
2369
|
+
|
|
|
2370
|
+
14 | OperatingMode,
|
|
2371
|
+
| -------------
|
|
2372
|
+
|
|
|
2373
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2374
|
+
|
|
2375
|
+
note[unused-import]: unused imports should be removed
|
|
2376
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/utils/ForkTestFixtures.sol:15:5
|
|
2377
|
+
|
|
|
2378
|
+
15 | RegisterForeignTokenParams,
|
|
2379
|
+
| --------------------------
|
|
2380
|
+
|
|
|
2381
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2382
|
+
|
|
2383
|
+
note[unused-import]: unused imports should be removed
|
|
2384
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/utils/ForkTestFixtures.sol:17:5
|
|
2385
|
+
|
|
|
2386
|
+
17 | ParaID,
|
|
2387
|
+
| ------
|
|
2388
|
+
|
|
|
2389
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2390
|
+
|
|
2391
|
+
note[unused-import]: unused imports should be removed
|
|
2392
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/utils/ForkTestFixtures.sol:18:5
|
|
2393
|
+
|
|
|
2394
|
+
18 | OperatingMode,
|
|
2395
|
+
| -------------
|
|
2396
|
+
|
|
|
2397
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2398
|
+
|
|
2399
|
+
note[unused-import]: unused imports should be removed
|
|
2400
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/utils/ForkTestFixtures.sol:21:5
|
|
2401
|
+
|
|
|
2402
|
+
21 | TokenInfo
|
|
2403
|
+
| ---------
|
|
2404
|
+
|
|
|
2405
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2406
|
+
|
|
2407
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2408
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:249:17
|
|
2409
|
+
|
|
|
2410
|
+
249 | bytes32 PERMIT_TYPEHASH = keccak256(
|
|
2411
|
+
| ---------------
|
|
2412
|
+
|
|
|
2413
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2414
|
+
|
|
2415
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2416
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:674:16
|
|
2417
|
+
|
|
|
2418
|
+
674 | ParaID paraID = ParaID.wrap(1000);
|
|
2419
|
+
| ------
|
|
2420
|
+
|
|
|
2421
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2422
|
+
|
|
2423
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2424
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:286:17
|
|
2425
|
+
|
|
|
2426
|
+
286 | bytes32 PERMIT_TYPEHASH = keccak256(
|
|
2427
|
+
| ---------------
|
|
2428
|
+
|
|
|
2429
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2430
|
+
|
|
2431
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2432
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:317:17
|
|
2433
|
+
|
|
|
2434
|
+
317 | bytes32 PERMIT_TYPEHASH = keccak256(
|
|
2435
|
+
| ---------------
|
|
2436
|
+
|
|
|
2437
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2438
|
+
|
|
2439
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2440
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:990:20
|
|
2441
|
+
|
|
|
2442
|
+
990 | bytes32 public expectChannelIDBytes =
|
|
2443
|
+
| --------------------
|
|
2444
|
+
|
|
|
2445
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2446
|
+
|
|
2447
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2448
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:994:16
|
|
2449
|
+
|
|
|
2450
|
+
994 | ParaID para_id = ParaID.wrap(1000);
|
|
2451
|
+
| -------
|
|
2452
|
+
|
|
|
2453
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2454
|
+
|
|
2455
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2456
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:503:9
|
|
2457
|
+
|
|
|
2458
|
+
503 | token.transferFrom(owner, pool, swapAmount);
|
|
2459
|
+
| -------------------------------------------
|
|
2460
|
+
|
|
|
2461
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2462
|
+
|
|
2463
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2464
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:528:9
|
|
2465
|
+
|
|
|
2466
|
+
528 | token.transferFrom(owner, pool, firstSwapAmount);
|
|
2467
|
+
| ------------------------------------------------
|
|
2468
|
+
|
|
|
2469
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2470
|
+
|
|
2471
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2472
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:533:9
|
|
2473
|
+
|
|
|
2474
|
+
533 | token.transferFrom(owner, pool, secondSwapAmount);
|
|
2475
|
+
| -------------------------------------------------
|
|
2476
|
+
|
|
|
2477
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2478
|
+
|
|
2479
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2480
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:995:19
|
|
2481
|
+
|
|
|
2482
|
+
995 | ChannelID channel_id = para_id.into();
|
|
2483
|
+
| ----------
|
|
2484
|
+
|
|
|
2485
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2486
|
+
|
|
2487
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2488
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:588:9
|
|
2489
|
+
|
|
|
2490
|
+
588 | token.transferFrom(userAddress, pool, permitAmount);
|
|
2491
|
+
| ---------------------------------------------------
|
|
2492
|
+
|
|
|
2493
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2494
|
+
|
|
2495
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2496
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:558:17
|
|
2497
|
+
|
|
|
2498
|
+
558 | bytes32 PERMIT_TYPEHASH = keccak256(
|
|
2499
|
+
| ---------------
|
|
2500
|
+
|
|
|
2501
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2502
|
+
|
|
2503
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2504
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:573:17
|
|
2505
|
+
|
|
|
2506
|
+
573 | bytes32 DOMAIN_SEPARATOR = token.DOMAIN_SEPARATOR();
|
|
2507
|
+
| ----------------
|
|
2508
|
+
|
|
|
2509
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2510
|
+
|
|
2511
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2512
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:619:13
|
|
2513
|
+
|
|
|
2514
|
+
619 | token.transferFrom(owner, recipients[i], transferAmount);
|
|
2515
|
+
| --------------------------------------------------------
|
|
2516
|
+
|
|
|
2517
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2518
|
+
|
|
2519
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2520
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:1058:9
|
|
2521
|
+
|
|
|
2522
|
+
1058 | token.transfer(address(assetHubAgent), 200);
|
|
2523
|
+
| -------------------------------------------
|
|
2524
|
+
|
|
|
2525
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2526
|
+
|
|
2527
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2528
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:649:9
|
|
2529
|
+
|
|
|
2530
|
+
649 | token.transferFrom(owner, pool, firstAmount);
|
|
2531
|
+
| --------------------------------------------
|
|
2532
|
+
|
|
|
2533
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2534
|
+
|
|
2535
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2536
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:658:9
|
|
2537
|
+
|
|
|
2538
|
+
658 | token.transferFrom(owner, pool, secondAmount);
|
|
2539
|
+
| ---------------------------------------------
|
|
2540
|
+
|
|
|
2541
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2542
|
+
|
|
2543
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2544
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:1251:9
|
|
2545
|
+
|
|
|
2546
|
+
1251 | token.transfer(address(assetHubAgent), 200);
|
|
2547
|
+
| -------------------------------------------
|
|
2548
|
+
|
|
|
2549
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2550
|
+
|
|
2551
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2552
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:705:9
|
|
2553
|
+
|
|
|
2554
|
+
705 | token.transferFrom(user, pool, amount1);
|
|
2555
|
+
| ---------------------------------------
|
|
2556
|
+
|
|
|
2557
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2558
|
+
|
|
2559
|
+
warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
|
|
2560
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:706:9
|
|
2561
|
+
|
|
|
2562
|
+
706 | token.transferFrom(user, pool2, amount2);
|
|
2563
|
+
| ----------------------------------------
|
|
2564
|
+
|
|
|
2565
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
|
|
2566
|
+
|
|
2567
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2568
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:684:17
|
|
2569
|
+
|
|
|
2570
|
+
684 | bytes32 PERMIT_TYPEHASH = keccak256(
|
|
2571
|
+
| ---------------
|
|
2572
|
+
|
|
|
2573
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2574
|
+
|
|
2575
|
+
note[mixed-case-variable]: mutable variables should use mixedCase
|
|
2576
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:1283:16
|
|
2577
|
+
|
|
|
2578
|
+
1283 | ParaID paraID = ParaID.wrap(1000);
|
|
2579
|
+
| ------
|
|
2580
|
+
|
|
|
2581
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
|
|
2582
|
+
|
|
2583
|
+
note[unused-import]: unused imports should be removed
|
|
2584
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/Token.t.sol:10:9
|
|
2585
|
+
|
|
|
2586
|
+
10 | import {TokenLib} from "../src/TokenLib.sol";
|
|
2587
|
+
| --------
|
|
2588
|
+
|
|
|
2589
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2590
|
+
|
|
2591
|
+
note[unused-import]: unused imports should be removed
|
|
2592
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:5:9
|
|
2593
|
+
|
|
|
2594
|
+
5 | import {Strings} from "openzeppelin/utils/Strings.sol";
|
|
2595
|
+
| -------
|
|
2596
|
+
|
|
|
2597
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2598
|
+
|
|
2599
|
+
note[unused-import]: unused imports should be removed
|
|
2600
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:6:9
|
|
2601
|
+
|
|
|
2602
|
+
6 | import {console} from "forge-std/console.sol";
|
|
2603
|
+
| -------
|
|
2604
|
+
|
|
|
2605
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2606
|
+
|
|
2607
|
+
note[unused-import]: unused imports should be removed
|
|
2608
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:8:9
|
|
2609
|
+
|
|
|
2610
|
+
8 | import {BeefyClient} from "../src/BeefyClient.sol";
|
|
2611
|
+
| -----------
|
|
2612
|
+
|
|
|
2613
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2614
|
+
|
|
2615
|
+
note[unused-import]: unused imports should be removed
|
|
2616
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:11:9
|
|
2617
|
+
|
|
|
2618
|
+
11 | import {IInitializable} from "../src/interfaces/IInitializable.sol";
|
|
2619
|
+
| --------------
|
|
2620
|
+
|
|
|
2621
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2622
|
+
|
|
2623
|
+
note[unused-import]: unused imports should be removed
|
|
2624
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:20:9
|
|
2625
|
+
|
|
|
2626
|
+
20 | import {Agent} from "../src/Agent.sol";
|
|
2627
|
+
| -----
|
|
2628
|
+
|
|
|
2629
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2630
|
+
|
|
2631
|
+
note[unused-import]: unused imports should be removed
|
|
2632
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:22:9
|
|
2633
|
+
|
|
|
2634
|
+
22 | import {SubstrateTypes} from "./../src/SubstrateTypes.sol";
|
|
2635
|
+
| --------------
|
|
2636
|
+
|
|
|
2637
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2638
|
+
|
|
2639
|
+
note[unused-import]: unused imports should be removed
|
|
2640
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:24:5
|
|
2641
|
+
|
|
|
2642
|
+
24 | Channel,
|
|
2643
|
+
| -------
|
|
2644
|
+
|
|
|
2645
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2646
|
+
|
|
2647
|
+
note[unused-import]: unused imports should be removed
|
|
2648
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:25:5
|
|
2649
|
+
|
|
|
2650
|
+
25 | InboundMessageV1,
|
|
2651
|
+
| ----------------
|
|
2652
|
+
|
|
|
2653
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2654
|
+
|
|
2655
|
+
note[unused-import]: unused imports should be removed
|
|
2656
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:33:9
|
|
2657
|
+
|
|
|
2658
|
+
33 | import {PricingStorage} from "../src/storage/PricingStorage.sol";
|
|
2659
|
+
| --------------
|
|
2660
|
+
|
|
|
2661
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2662
|
+
|
|
2663
|
+
note[unused-import]: unused imports should be removed
|
|
2664
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/test/GatewayV1.t.sol:35:9
|
|
2665
|
+
|
|
|
2666
|
+
35 | import {TokenLib} from "../src/TokenLib.sol";
|
|
2667
|
+
| --------
|
|
2668
|
+
|
|
|
2669
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
|
|
2670
|
+
|
|
2671
|
+
note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
|
|
2672
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Verification.sol:211:16
|
|
2673
|
+
|
|
|
2674
|
+
211 | return keccak256(createParachainHeader(encodedParaID, header));
|
|
2675
|
+
| -------------------------------------------------------
|
|
2676
|
+
|
|
|
2677
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
|
|
2678
|
+
|
|
2679
|
+
note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
|
|
2680
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:283:34
|
|
2681
|
+
|
|
|
2682
|
+
283 | bytes32 commitmentHash = keccak256(encodeCommitment(commitment));
|
|
2683
|
+
| ---------------------------------------
|
|
2684
|
+
|
|
|
2685
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
|
|
2686
|
+
|
|
2687
|
+
note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
|
|
2688
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:358:34
|
|
2689
|
+
|
|
|
2690
|
+
358 | bytes32 commitmentHash = keccak256(encodeCommitment(commitment));
|
|
2691
|
+
| ---------------------------------------
|
|
2692
|
+
|
|
|
2693
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
|
|
2694
|
+
|
|
2695
|
+
note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
|
|
2696
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/v1/Calls.sol:242:29
|
|
2697
|
+
|
|
|
2698
|
+
242 | bytes32 messageID = keccak256(abi.encodePacked(channelID, channel.outboundNonce));
|
|
2699
|
+
| -------------------------------------------------------------
|
|
2700
|
+
|
|
|
2701
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
|
|
2702
|
+
|
|
2703
|
+
note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
|
|
2704
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/TokenLib.sol:76:26
|
|
2705
|
+
|
|
|
2706
|
+
76 | bytes32 digest = keccak256(
|
|
2707
|
+
| __________________________-
|
|
2708
|
+
77 | | abi.encodePacked(
|
|
2709
|
+
... |
|
|
2710
|
+
85 | | )
|
|
2711
|
+
86 | | );
|
|
2712
|
+
| |_________-
|
|
2713
|
+
|
|
|
2714
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
|
|
2715
|
+
|
|
2716
|
+
note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
|
|
2717
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:158:28
|
|
2718
|
+
|
|
|
2719
|
+
158 | bytes32 leafHash = keccak256(abi.encode(message));
|
|
2720
|
+
| ------------------------------
|
|
2721
|
+
|
|
|
2722
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
|
|
2723
|
+
|
|
2724
|
+
note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
|
|
2725
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/BeefyClient.sol:616:30
|
|
2726
|
+
|
|
|
2727
|
+
616 | bytes32 hashedLeaf = keccak256(abi.encodePacked(account));
|
|
2728
|
+
| ------------------------------------
|
|
2729
|
+
|
|
|
2730
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
|
|
2731
|
+
|
|
2732
|
+
note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
|
|
2733
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Gateway.sol:422:28
|
|
2734
|
+
|
|
|
2735
|
+
422 | bytes32 leafHash = keccak256(abi.encode(message));
|
|
2736
|
+
| ------------------------------
|
|
2737
|
+
|
|
|
2738
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
|
|
2739
|
+
|
|
2740
|
+
note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
|
|
2741
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/Verification.sol:257:16
|
|
2742
|
+
|
|
|
2743
|
+
257 | return keccak256(encodedLeaf);
|
|
2744
|
+
| ----------------------
|
|
2745
|
+
|
|
|
2746
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
|
|
2747
|
+
|
|
2748
|
+
note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
|
|
2749
|
+
--> /home/runner/work/snowbridge/snowbridge/contracts/src/TokenLib.sol:99:16
|
|
2750
|
+
|
|
|
2751
|
+
99 | return keccak256(
|
|
2752
|
+
| ________________-
|
|
2753
|
+
100 | | abi.encode(
|
|
2754
|
+
... |
|
|
2755
|
+
106 | | )
|
|
2756
|
+
107 | | );
|
|
2757
|
+
| |_________-
|
|
2758
|
+
|
|
|
2759
|
+
= help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
|
|
2760
|
+
|
|
2761
|
+
WARN Issue while reading "/home/runner/work/snowbridge/snowbridge/web/.npmrc". Failed to replace env in config: ${NPM_AUTH_TOKEN}
|
|
2762
|
+
|
|
2763
|
+
> @snowbridge/contract-types@0.2.0 typechain /home/runner/work/snowbridge/snowbridge/web/packages/contract-types
|
|
2764
|
+
> typechain --target ethers-v6 '../../../contracts/out/?(IERC20.sol|IERC20Metadata.sol|IGateway.sol|BeefyClient.sol|WETH9.sol)/!(*.abi).json' --out-dir src
|
|
2765
|
+
|
|
2766
|
+
Successfully generated 17 typings!
|