@snowbridge/contract-types 0.2.9 → 0.2.10

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