@snowbridge/contract-types 0.4.3 → 0.4.5-alpha.1

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.
@@ -3,4834 +3,6 @@
3
3
  > rm -rf src && rm -rf dist && cd ../../../contracts && forge build && cd ../web/packages/contract-types && pnpm typechain && tsc --build --force
4
4
 
5
5
  No files changed, compilation skipped
6
- warning[incorrect-shift]: the order of args in a shift operation is incorrect
7
- --> src/utils/SparseBitmap.sol:12:20
8
- |
9
- 12 | uint256 mask = 1 << (index & 0xff);
10
- | ^^^^^^^^^^^^^^^^^^^
11
- |
12
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#incorrect-shift
13
-
14
- note[mixed-case-variable]: mutable variables should use mixedCase
15
- --> scripts/l2-integration/across/test/TestSnowbridgeL1Adaptor.s.sol:40:17
16
- |
17
- 40 | address USDC_ADDRESS;
18
- | ^^^^^^^^^^^^ help: consider using: `usdcAddress`
19
- |
20
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
21
-
22
- note[mixed-case-variable]: mutable variables should use mixedCase
23
- --> scripts/l2-integration/across/test/TestSnowbridgeL1Adaptor.s.sol:41:17
24
- |
25
- 41 | address L2_USDC_ADDRESS;
26
- | ^^^^^^^^^^^^^^^ help: consider using: `l2UsdcAddress`
27
- |
28
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
29
-
30
- note[mixed-case-variable]: mutable variables should use mixedCase
31
- --> scripts/l2-integration/across/test/TestSnowbridgeL1Adaptor.s.sol:42:17
32
- |
33
- 42 | uint256 L2_CHAIN_ID;
34
- | ^^^^^^^^^^^ help: consider using: `l2ChainId`
35
- |
36
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
37
-
38
- note[mixed-case-variable]: mutable variables should use mixedCase
39
- --> scripts/l2-integration/across/test/TestSnowbridgeL1Adaptor.s.sol:43:16
40
- |
41
- 43 | uint32 TIME_BUFFER;
42
- | ^^^^^^^^^^^ help: consider using: `timeBuffer`
43
- |
44
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
45
-
46
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
47
- --> test/Token.t.sol:4:8
48
- |
49
- 4 | import "forge-std/Test.sol";
50
- | ^^^^^^^^^^^^^^^^^^^^
51
- |
52
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
53
-
54
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
55
- --> test/Token.t.sol:5:8
56
- |
57
- 5 | import "forge-std/console.sol";
58
- | ^^^^^^^^^^^^^^^^^^^^^^^
59
- |
60
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
61
-
62
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
63
- --> test/mocks/BeefyClientMock.sol:6:8
64
- |
65
- 6 | import "forge-std/console.sol";
66
- | ^^^^^^^^^^^^^^^^^^^^^^^
67
- |
68
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
69
-
70
- note[screaming-snake-case-immutable]: immutables should use SCREAMING_SNAKE_CASE
71
- --> src/Token.sol:17:30
72
- |
73
- 17 | address public immutable gateway;
74
- | ^^^^^^^ help: consider using: `GATEWAY`
75
- |
76
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-immutable
77
-
78
- note[screaming-snake-case-immutable]: immutables should use SCREAMING_SNAKE_CASE
79
- --> src/Token.sol:18:28
80
- |
81
- 18 | uint8 public immutable decimals;
82
- | ^^^^^^^^ help: consider using: `DECIMALS`
83
- |
84
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-immutable
85
-
86
- note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
87
- --> src/TokenLib.sol:76:26
88
- |
89
- 76 | bytes32 digest = keccak256(
90
- | __________________________^
91
- 77 | | abi.encodePacked(
92
- 78 | | hex"1901",
93
- 79 | | _domainSeparator(tokenName),
94
- ... |
95
- 86 | | );
96
- | |_________^
97
- |
98
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
99
-
100
- note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
101
- --> src/TokenLib.sol:99:16
102
- |
103
- 99 | return keccak256(
104
- | ________________^
105
- 100 | | abi.encode(
106
- 101 | | DOMAIN_TYPEHASH,
107
- 102 | | keccak256(bytes(name)),
108
- ... |
109
- 107 | | );
110
- | |_________^
111
- |
112
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
113
-
114
- warning[incorrect-shift]: the order of args in a shift operation is incorrect
115
- --> src/utils/SparseBitmap.sol:18:20
116
- |
117
- 18 | uint256 mask = 1 << (index & 0xff);
118
- | ^^^^^^^^^^^^^^^^^^^
119
- |
120
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#incorrect-shift
121
-
122
- note[mixed-case-variable]: mutable variables should use mixedCase
123
- --> src/types/Common.sol:14:13
124
- |
125
- 14 | bytes32 foreignID;
126
- | ^^^^^^^^^ help: consider using: `foreignId`
127
- |
128
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
129
-
130
- note[mixed-case-variable]: mutable variables should use mixedCase
131
- --> test/Token.t.sol:249:17
132
- |
133
- 249 | bytes32 PERMIT_TYPEHASH = keccak256(
134
- | ^^^^^^^^^^^^^^^ help: consider using: `permitTypehash`
135
- |
136
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
137
-
138
- note[mixed-case-variable]: mutable variables should use mixedCase
139
- --> test/Token.t.sol:286:17
140
- |
141
- 286 | bytes32 PERMIT_TYPEHASH = keccak256(
142
- | ^^^^^^^^^^^^^^^ help: consider using: `permitTypehash`
143
- |
144
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
145
-
146
- note[unused-import]: unused imports should be removed
147
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorWeth.s.sol:4:17
148
- |
149
- 4 | import {Script, console} from "forge-std/Script.sol";
150
- | ^^^^^^^
151
- |
152
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
153
-
154
- note[unused-import]: unused imports should be removed
155
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorWeth.s.sol:9:9
156
- |
157
- 9 | import {ISpokePool} from "../../../../src/l2-integration/interfaces/ISpokePool.sol";
158
- | ^^^^^^^^^^
159
- |
160
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
161
-
162
- note[mixed-case-variable]: mutable variables should use mixedCase
163
- --> test/Token.t.sol:317:17
164
- |
165
- 317 | bytes32 PERMIT_TYPEHASH = keccak256(
166
- | ^^^^^^^^^^^^^^^ help: consider using: `permitTypehash`
167
- |
168
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
169
-
170
- note[unused-import]: unused imports should be removed
171
- --> src/types/Common.sol:5:9
172
- |
173
- 5 | import {UD60x18} from "prb/math/src/UD60x18.sol";
174
- | ^^^^^^^
175
- |
176
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
177
-
178
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
179
- --> src/utils/Uint16Array.sol:67:20
180
- |
181
- 67 | uint8 inside = uint8(index) & 0x0F;
182
- | ^^^^^^^^^^^^
183
- |
184
- = note: consider disabling this lint if you're certain the cast is safe
185
-
186
- // casting to 'uint8' is safe because [explain why]
187
- // forge-lint: disable-next-line(unsafe-typecast)
188
-
189
-
190
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
191
-
192
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
193
- --> src/utils/Uint16Array.sol:86:20
194
- |
195
- 86 | uint8 inside = uint8(index) & 0x0F;
196
- | ^^^^^^^^^^^^
197
- |
198
- = note: consider disabling this lint if you're certain the cast is safe
199
-
200
- // casting to 'uint8' is safe because [explain why]
201
- // forge-lint: disable-next-line(unsafe-typecast)
202
-
203
-
204
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
205
-
206
- note[unused-import]: unused imports should be removed
207
- --> scripts/l2-integration/across/test/TestSnowbridgeL1Adaptor.s.sol:4:17
208
- |
209
- 4 | import {Script, console} from "forge-std/Script.sol";
210
- | ^^^^^^^
211
- |
212
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
213
-
214
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
215
- --> src/utils/ScaleCodec.sol:114:37
216
- |
217
- 114 | return abi.encodePacked(uint8(value << 2));
218
- | ^^^^^^^^^^^^^^^^^
219
- |
220
- = note: consider disabling this lint if you're certain the cast is safe
221
-
222
- // casting to 'uint8' is safe because [explain why]
223
- // forge-lint: disable-next-line(unsafe-typecast)
224
-
225
-
226
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
227
-
228
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
229
- --> src/utils/ScaleCodec.sol:131:37
230
- |
231
- 131 | return abi.encodePacked(uint8(value << 2));
232
- | ^^^^^^^^^^^^^^^^^
233
- |
234
- = note: consider disabling this lint if you're certain the cast is safe
235
-
236
- // casting to 'uint8' is safe because [explain why]
237
- // forge-lint: disable-next-line(unsafe-typecast)
238
-
239
-
240
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
241
-
242
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
243
- --> src/utils/ScaleCodec.sol:138:30
244
- |
245
- 138 | uint16 encoded = uint16(value << 2) | 0x01;
246
- | ^^^^^^^^^^^^^^^^^^
247
- |
248
- = note: consider disabling this lint if you're certain the cast is safe
249
-
250
- // casting to 'uint16' is safe because [explain why]
251
- // forge-lint: disable-next-line(unsafe-typecast)
252
-
253
-
254
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
255
-
256
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
257
- --> src/utils/ScaleCodec.sol:147:31
258
- |
259
- 147 | uint32 encoded = (uint32(value) << 2) | 0x02;
260
- | ^^^^^^^^^^^^^
261
- |
262
- = note: consider disabling this lint if you're certain the cast is safe
263
-
264
- // casting to 'uint32' is safe because [explain why]
265
- // forge-lint: disable-next-line(unsafe-typecast)
266
-
267
-
268
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
269
-
270
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
271
- --> src/utils/ScaleCodec.sol:180:29
272
- |
273
- 180 | buf[i] = bytes1(uint8(current & 0xFF));
274
- | ^^^^^^^^^^^^^^^^^^^^^
275
- |
276
- = note: consider disabling this lint if you're certain the cast is safe
277
-
278
- // casting to 'uint8' is safe because [explain why]
279
- // forge-lint: disable-next-line(unsafe-typecast)
280
-
281
-
282
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
283
-
284
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
285
- --> src/utils/ScaleCodec.sol:199:33
286
- |
287
- 199 | return encodeCompactU32(uint32(value));
288
- | ^^^^^^^^^^^^^
289
- |
290
- = note: consider disabling this lint if you're certain the cast is safe
291
-
292
- // casting to 'uint32' is safe because [explain why]
293
- // forge-lint: disable-next-line(unsafe-typecast)
294
-
295
-
296
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
297
-
298
- warning[incorrect-shift]: the order of args in a shift operation is incorrect
299
- --> src/utils/Math.sol:82:60
300
- |
301
- 82 | return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
302
- | ^^^^^^^^^^^
303
- |
304
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#incorrect-shift
305
-
306
- note[unused-import]: unused imports should be removed
307
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorWeth.s.sol:10:36
308
- |
309
- 10 | import {DepositParams, SendParams, SwapParams} from "../../../../src/l2-integration/Types.sol";
310
- | ^^^^^^^^^^
311
- |
312
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
313
-
314
- note[unused-import]: unused imports should be removed
315
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorWeth.s.sol:13:5
316
- |
317
- 13 | BASE_CHAIN_ID as SEPOLIA_BASE_CHAIN_ID,
318
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
319
- |
320
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
321
-
322
- note[unused-import]: unused imports should be removed
323
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorWeth.s.sol:21:5
324
- |
325
- 21 | BASE_CHAIN_ID as MAINNET_BASE_CHAIN_ID,
326
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
327
- |
328
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
329
-
330
- note[unused-import]: unused imports should be removed
331
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorWeth.s.sol:25:5
332
- |
333
- 25 | ARBITRUM_CHAIN_ID as MAINNET_ARBITRUM_CHAIN_ID,
334
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
335
- |
336
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
337
-
338
- note[unwrapped-modifier-logic]: wrap modifier logic to reduce code size
339
- --> src/Token.sol:37:5
340
- |
341
- 37 | / modifier onlyGateway() {
342
- 38 | | if (msg.sender != gateway) {
343
- 39 | | revert Unauthorized();
344
- ... |
345
- 42 | | }
346
- | |_____^
347
- |
348
- help: wrap modifier logic to reduce code size
349
- |
350
- 37 ~ modifier onlyGateway() {
351
- 38 + _onlyGateway();
352
- 39 + _;
353
- 40 + }
354
- 41 +
355
- 42 + function _onlyGateway() internal {
356
- 43 + if (msg.sender != gateway) {
357
- 44 + revert Unauthorized();
358
- 45 + }
359
- 46 + }
360
- |
361
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unwrapped-modifier-logic
362
-
363
- note[unused-import]: unused imports should be removed
364
- --> scripts/l2-integration/across/test/TestSnowbridgeL1Adaptor.s.sol:8:9
365
- |
366
- 8 | import {ISpokePool} from "../../../../src/l2-integration/interfaces/ISpokePool.sol";
367
- | ^^^^^^^^^^
368
- |
369
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
370
-
371
- note[unused-import]: unused imports should be removed
372
- --> scripts/l2-integration/across/test/TestSnowbridgeL1Adaptor.s.sol:9:24
373
- |
374
- 9 | import {DepositParams, SendParams} from "../../../../src/l2-integration/Types.sol";
375
- | ^^^^^^^^^^
376
- |
377
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
378
-
379
- note[unused-import]: unused imports should be removed
380
- --> scripts/l2-integration/across/test/TestSnowbridgeL1Adaptor.s.sol:14:5
381
- |
382
- 14 | CHAIN_ID as SEPOLIA_CHAIN_ID,
383
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
384
- |
385
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
386
-
387
- note[unused-import]: unused imports should be removed
388
- --> scripts/l2-integration/across/test/TestSnowbridgeL1Adaptor.s.sol:19:5
389
- |
390
- 19 | ARBITRUM_WETH9 as SEPOLIA_ARBITRUM_WETH9
391
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
392
- |
393
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
394
-
395
- note[unused-import]: unused imports should be removed
396
- --> scripts/l2-integration/across/test/TestSnowbridgeL1Adaptor.s.sol:24:5
397
- |
398
- 24 | CHAIN_ID as MAINNET_CHAIN_ID,
399
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
400
- |
401
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
402
-
403
- note[mixed-case-variable]: mutable variables should use mixedCase
404
- --> test/Token.t.sol:558:17
405
- |
406
- 558 | bytes32 PERMIT_TYPEHASH = keccak256(
407
- | ^^^^^^^^^^^^^^^ help: consider using: `permitTypehash`
408
- |
409
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
410
-
411
- note[mixed-case-variable]: mutable variables should use mixedCase
412
- --> test/Token.t.sol:573:17
413
- |
414
- 573 | bytes32 DOMAIN_SEPARATOR = token.DOMAIN_SEPARATOR();
415
- | ^^^^^^^^^^^^^^^^ help: consider using: `domainSeparator`
416
- |
417
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
418
-
419
- note[mixed-case-function]: function names should use mixedCase
420
- --> test/mocks/BeefyClientMock.sol:29:14
421
- |
422
- 29 | function encodeCommitment_public(Commitment calldata commitment)
423
- | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `encodeCommitmentPublic`
424
- |
425
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
426
-
427
- note[unsafe-cheatcode]: usage of unsafe cheatcodes that can perform dangerous operations
428
- --> test/MMRProof.t.sol:35:26
429
- |
430
- 35 | fixtureData = vm.readFile(path).parseRaw("");
431
- | ^^^^^^^^
432
- |
433
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-cheatcode
434
-
435
- note[mixed-case-variable]: mutable variables should use mixedCase
436
- --> src/storage/CoreStorage.sol:17:17
437
- |
438
- 17 | uint256 __gap;
439
- | ^^^^^ help: consider using: `_gap`
440
- |
441
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
442
-
443
- note[unused-import]: unused imports should be removed
444
- --> scripts/l2-integration/across/test/TestSnowbridgeL2Adaptor.s.sol:4:17
445
- |
446
- 4 | import {Script, console} from "forge-std/Script.sol";
447
- | ^^^^^^^
448
- |
449
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
450
-
451
- note[unused-import]: unused imports should be removed
452
- --> scripts/l2-integration/across/test/TestSnowbridgeL2Adaptor.s.sol:6:9
453
- |
454
- 6 | import {WETH9} from "canonical-weth/WETH9.sol";
455
- | ^^^^^
456
- |
457
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
458
-
459
- note[unused-import]: unused imports should be removed
460
- --> scripts/l2-integration/across/test/TestSnowbridgeL2Adaptor.s.sol:9:9
461
- |
462
- 9 | import {ISpokePool} from "../../../../src/l2-integration/interfaces/ISpokePool.sol";
463
- | ^^^^^^^^^^
464
- |
465
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
466
-
467
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
468
- --> src/utils/Bitfield.sol:181:34
469
- |
470
- 181 | return self[element].bit(uint8(index)) == 1;
471
- | ^^^^^^^^^^^^
472
- |
473
- = note: consider disabling this lint if you're certain the cast is safe
474
-
475
- // casting to 'uint8' is safe because [explain why]
476
- // forge-lint: disable-next-line(unsafe-typecast)
477
-
478
-
479
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
480
-
481
- note[mixed-case-variable]: mutable variables should use mixedCase
482
- --> test/Token.t.sol:684:17
483
- |
484
- 684 | bytes32 PERMIT_TYPEHASH = keccak256(
485
- | ^^^^^^^^^^^^^^^ help: consider using: `permitTypehash`
486
- |
487
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
488
-
489
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
490
- --> scripts/l2-integration/across/test/TestSnowbridgeL1Adaptor.s.sol:100:9
491
- |
492
- 100 | IERC20(params.inputToken).transfer(l1SnowbridgeAdaptor, params.inputAmount);
493
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
494
- |
495
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
496
-
497
- note[unused-import]: unused imports should be removed
498
- --> scripts/l2-integration/across/test/TestSnowbridgeL2Adaptor.s.sol:18:5
499
- |
500
- 18 | BASE_CHAIN_ID as SEPOLIA_BASE_CHAIN_ID,
501
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
502
- |
503
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
504
-
505
- note[unused-import]: unused imports should be removed
506
- --> scripts/l2-integration/across/test/TestSnowbridgeL2Adaptor.s.sol:20:5
507
- |
508
- 20 | BASE_WETH9 as SEPOLIA_BASE_WETH9,
509
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
510
- |
511
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
512
-
513
- note[unused-import]: unused imports should be removed
514
- --> scripts/l2-integration/across/test/TestSnowbridgeL2Adaptor.s.sol:25:5
515
- |
516
- 25 | ARBITRUM_CHAIN_ID as SEPOLIA_ARBITRUM_CHAIN_ID,
517
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
518
- |
519
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
520
-
521
- note[unused-import]: unused imports should be removed
522
- --> scripts/l2-integration/across/test/TestSnowbridgeL2Adaptor.s.sol:26:5
523
- |
524
- 26 | ARBITRUM_WETH9 as SEPOLIA_ARBITRUM_WETH9
525
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
526
- |
527
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
528
-
529
- note[unused-import]: unused imports should be removed
530
- --> scripts/l2-integration/across/test/TestSnowbridgeL2Adaptor.s.sol:33:5
531
- |
532
- 33 | BASE_CHAIN_ID as MAINNET_BASE_CHAIN_ID,
533
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
534
- |
535
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
536
-
537
- note[unused-import]: unused imports should be removed
538
- --> scripts/l2-integration/across/test/TestSnowbridgeL2Adaptor.s.sol:35:5
539
- |
540
- 35 | BASE_WETH9 as MAINNET_BASE_WETH9,
541
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
542
- |
543
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
544
-
545
- note[unused-import]: unused imports should be removed
546
- --> scripts/l2-integration/across/test/TestSnowbridgeL2Adaptor.s.sol:39:5
547
- |
548
- 39 | ARBITRUM_CHAIN_ID as MAINNET_ARBITRUM_CHAIN_ID,
549
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
550
- |
551
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
552
-
553
- note[unused-import]: unused imports should be removed
554
- --> scripts/l2-integration/across/test/TestSnowbridgeL2Adaptor.s.sol:40:5
555
- |
556
- 40 | ARBITRUM_WETH9 as MAINNET_ARBITRUM_WETH9,
557
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
558
- |
559
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
560
-
561
- note[unused-import]: unused imports should be removed
562
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorNativeEther.s.sol:4:17
563
- |
564
- 4 | import {Script, console} from "forge-std/Script.sol";
565
- | ^^^^^^^
566
- |
567
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
568
-
569
- note[unused-import]: unused imports should be removed
570
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorNativeEther.s.sol:5:9
571
- |
572
- 5 | import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol";
573
- | ^^^^^^
574
- |
575
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
576
-
577
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
578
- --> src/utils/Bitfield.sol:186:46
579
- |
580
- 186 | self[element] = self[element].setBit(uint8(index));
581
- | ^^^^^^^^^^^^
582
- |
583
- = note: consider disabling this lint if you're certain the cast is safe
584
-
585
- // casting to 'uint8' is safe because [explain why]
586
- // forge-lint: disable-next-line(unsafe-typecast)
587
-
588
-
589
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
590
-
591
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
592
- --> src/utils/Bitfield.sol:191:48
593
- |
594
- 191 | self[element] = self[element].clearBit(uint8(index));
595
- | ^^^^^^^^^^^^
596
- |
597
- = note: consider disabling this lint if you're certain the cast is safe
598
-
599
- // casting to 'uint8' is safe because [explain why]
600
- // forge-lint: disable-next-line(unsafe-typecast)
601
-
602
-
603
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
604
-
605
- note[unused-import]: unused imports should be removed
606
- --> src/l2-integration/SnowbridgeL1Adaptor.sol:7:21
607
- |
608
- 7 | import {ISpokePool, IMessageHandler} from "./interfaces/ISpokePool.sol";
609
- | ^^^^^^^^^^^^^^^
610
- |
611
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
612
-
613
- note[unused-import]: unused imports should be removed
614
- --> src/l2-integration/SnowbridgeL1Adaptor.sol:8:24
615
- |
616
- 8 | import {DepositParams, Instructions, Call} from "./Types.sol";
617
- | ^^^^^^^^^^^^
618
- |
619
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
620
-
621
- note[unused-import]: unused imports should be removed
622
- --> src/l2-integration/SnowbridgeL1Adaptor.sol:8:38
623
- |
624
- 8 | import {DepositParams, Instructions, Call} from "./Types.sol";
625
- | ^^^^
626
- |
627
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
628
-
629
- note[mixed-case-function]: function names should use mixedCase
630
- --> test/mocks/BeefyClientMock.sol:45:14
631
- |
632
- 45 | function initialize_public(
633
- | ^^^^^^^^^^^^^^^^^ help: consider using: `initializePublic`
634
- |
635
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
636
-
637
- note[unused-import]: unused imports should be removed
638
- --> scripts/upgrade/DeployGateway.sol:9:9
639
- |
640
- 9 | import {ParaID} from "../../src/Types.sol";
641
- | ^^^^^^
642
- |
643
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
644
-
645
- note[unused-import]: unused imports should be removed
646
- --> test/Token.t.sol:10:9
647
- |
648
- 10 | import {TokenLib} from "../src/TokenLib.sol";
649
- | ^^^^^^^^
650
- |
651
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
652
-
653
- note[mixed-case-variable]: mutable variables should use mixedCase
654
- --> src/storage/AssetsStorage.sol:13:16
655
- |
656
- 13 | ParaID assetHubParaID;
657
- | ^^^^^^^^^^^^^^ help: consider using: `assetHubParaId`
658
- |
659
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
660
-
661
- note[unused-import]: unused imports should be removed
662
- --> test/MMRProof.t.sol:5:9
663
- |
664
- 5 | import {console} from "forge-std/console.sol";
665
- | ^^^^^^^
666
- |
667
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
668
-
669
- note[mixed-case-variable]: mutable variables should use mixedCase
670
- --> src/interfaces/IGatewayBase.sol:34:50
671
- |
672
- 34 | event ForeignTokenRegistered(bytes32 indexed tokenID, address token);
673
- | ^^^^^^^ help: consider using: `tokenId`
674
- |
675
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
676
-
677
- note[mixed-case-function]: function names should use mixedCase
678
- --> test/mocks/MockGateway.sol:27:14
679
- |
680
- 27 | function v1_handleAgentExecute_public(bytes calldata params) external {
681
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `v1HandleAgentExecutePublic`
682
- |
683
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
684
-
685
- note[mixed-case-function]: function names should use mixedCase
686
- --> test/mocks/MockGateway.sol:31:14
687
- |
688
- 31 | function v1_handleUpgrade_public(bytes calldata params) external {
689
- | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `v1HandleUpgradePublic`
690
- |
691
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
692
-
693
- note[mixed-case-function]: function names should use mixedCase
694
- --> test/mocks/MockGateway.sol:35:14
695
- |
696
- 35 | function v1_handleSetOperatingMode_public(bytes calldata params) external {
697
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `v1HandleSetOperatingModePublic`
698
- |
699
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
700
-
701
- note[mixed-case-function]: function names should use mixedCase
702
- --> test/mocks/MockGateway.sol:39:14
703
- |
704
- 39 | function v1_handleSetTokenTransferFees_public(bytes calldata params) external {
705
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `v1HandleSetTokenTransferFeesPublic`
706
- |
707
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
708
-
709
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
710
- --> test/Token.t.sol:63:9
711
- |
712
- 63 | token.transfer(receiver, transferAmount);
713
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
714
- |
715
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
716
-
717
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
718
- --> test/Token.t.sol:102:9
719
- |
720
- 102 | token.transferFrom(owner, receiver, transferAmount);
721
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
722
- |
723
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
724
-
725
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
726
- --> test/Token.t.sol:140:9
727
- |
728
- 140 | token.transferFrom(owner, receiver, transferAmount);
729
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
730
- |
731
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
732
-
733
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
734
- --> test/Token.t.sol:165:9
735
- |
736
- 165 | token.transferFrom(owner, address(0), amount);
737
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
738
- |
739
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
740
-
741
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
742
- --> test/Token.t.sol:196:9
743
- |
744
- 196 | token.transferFrom(owner, receiver, transferAmount);
745
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
746
- |
747
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
748
-
749
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
750
- --> test/Token.t.sol:205:9
751
- |
752
- 205 | token.transferFrom(owner, receiver, allowanceAmount);
753
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
754
- |
755
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
756
-
757
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
758
- --> test/Token.t.sol:230:9
759
- |
760
- 230 | token.transferFrom(owner, receiver, allowanceAmount);
761
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
762
- |
763
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
764
-
765
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
766
- --> src/interfaces/IERC20Metadata.sol:7:8
767
- |
768
- 7 | import "./IERC20.sol";
769
- | ^^^^^^^^^^^^^^
770
- |
771
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
772
-
773
- note[mixed-case-function]: function names should use mixedCase
774
- --> test/mocks/MockGateway.sol:43:14
775
- |
776
- 43 | function v1_handleSetPricingParameters_public(bytes calldata params) external {
777
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `v1HandleSetPricingParametersPublic`
778
- |
779
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
780
-
781
- note[mixed-case-variable]: mutable variables should use mixedCase
782
- --> test/mocks/VerificationWrapper.sol:8:16
783
- |
784
- 8 | bytes4 encodedParachainID,
785
- | ^^^^^^^^^^^^^^^^^^ help: consider using: `encodedParachainId`
786
- |
787
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
788
-
789
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
790
- --> test/GatewayV2.t.sol:118:8
791
- |
792
- 118 | import "./mocks/FeeOnTransferToken.sol";
793
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
794
- |
795
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
796
-
797
- note[mixed-case-variable]: mutable variables should use mixedCase
798
- --> src/Functions.sol:31:34
799
- |
800
- 31 | function ensureAgent(bytes32 agentID) internal view returns (address agent) {
801
- | ^^^^^^^ help: consider using: `agentId`
802
- |
803
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
804
-
805
- note[mixed-case-function]: function names should use mixedCase
806
- --> test/mocks/MockGateway.sol:47:14
807
- |
808
- 47 | function v1_handleUnlockNativeToken_public(bytes calldata params) external {
809
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `v1HandleUnlockNativeTokenPublic`
810
- |
811
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
812
-
813
- note[mixed-case-function]: function names should use mixedCase
814
- --> test/mocks/MockGateway.sol:51:14
815
- |
816
- 51 | function v1_handleRegisterForeignToken_public(bytes calldata params) external {
817
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `v1HandleRegisterForeignTokenPublic`
818
- |
819
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
820
-
821
- note[mixed-case-function]: function names should use mixedCase
822
- --> test/mocks/MockGateway.sol:55:14
823
- |
824
- 55 | function v1_handleMintForeignToken_public(ChannelID channelID, bytes calldata params)
825
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `v1HandleMintForeignTokenPublic`
826
- |
827
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
828
-
829
- note[mixed-case-variable]: mutable variables should use mixedCase
830
- --> test/mocks/MockGateway.sol:55:57
831
- |
832
- 55 | function v1_handleMintForeignToken_public(ChannelID channelID, bytes calldata params)
833
- | ^^^^^^^^^ help: consider using: `channelId`
834
- |
835
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
836
-
837
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
838
- --> test/Token.t.sol:503:9
839
- |
840
- 503 | token.transferFrom(owner, pool, swapAmount);
841
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
842
- |
843
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
844
-
845
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
846
- --> test/Token.t.sol:528:9
847
- |
848
- 528 | token.transferFrom(owner, pool, firstSwapAmount);
849
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
850
- |
851
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
852
-
853
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
854
- --> test/Token.t.sol:533:9
855
- |
856
- 533 | token.transferFrom(owner, pool, secondSwapAmount);
857
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
858
- |
859
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
860
-
861
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
862
- --> test/Token.t.sol:588:9
863
- |
864
- 588 | token.transferFrom(userAddress, pool, permitAmount);
865
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
866
- |
867
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
868
-
869
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
870
- --> test/Token.t.sol:619:13
871
- |
872
- 619 | token.transferFrom(owner, recipients[i], transferAmount);
873
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
874
- |
875
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
876
-
877
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
878
- --> test/Token.t.sol:649:9
879
- |
880
- 649 | token.transferFrom(owner, pool, firstAmount);
881
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
882
- |
883
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
884
-
885
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
886
- --> test/Token.t.sol:658:9
887
- |
888
- 658 | token.transferFrom(owner, pool, secondAmount);
889
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
890
- |
891
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
892
-
893
- note[mixed-case-function]: function names should use mixedCase
894
- --> test/mocks/MockGateway.sol:65:14
895
- |
896
- 65 | function prank_registerNativeToken(address token) external {
897
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `prankRegisterNativeToken`
898
- |
899
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
900
-
901
- note[mixed-case-function]: function names should use mixedCase
902
- --> test/mocks/MockGateway.sol:69:14
903
- |
904
- 69 | function prank_registerForeignToken(
905
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `prankRegisterForeignToken`
906
- |
907
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
908
-
909
- note[mixed-case-variable]: mutable variables should use mixedCase
910
- --> src/v1/Handlers.sol:120:41
911
- |
912
- 120 | function mintForeignToken(ChannelID channelID, bytes calldata data) external {
913
- | ^^^^^^^^^ help: consider using: `channelId`
914
- |
915
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
916
-
917
- note[mixed-case-variable]: mutable variables should use mixedCase
918
- --> src/Functions.sol:39:38
919
- |
920
- 39 | function ensureChannel(ChannelID channelID) internal view returns (Channel storage ch) {
921
- | ^^^^^^^^^ help: consider using: `channelId`
922
- |
923
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
924
-
925
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
926
- --> test/Token.t.sol:705:9
927
- |
928
- 705 | token.transferFrom(user, pool, amount1);
929
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
930
- |
931
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
932
-
933
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
934
- --> test/Token.t.sol:706:9
935
- |
936
- 706 | token.transferFrom(user, pool2, amount2);
937
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
938
- |
939
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
940
-
941
- note[mixed-case-function]: function names should use mixedCase
942
- --> test/mocks/BeefyClientMock.sol:89:14
943
- |
944
- 89 | function computeNumRequiredSignatures_public(
945
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `computeNumRequiredSignaturesPublic`
946
- |
947
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
948
-
949
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
950
- --> test/Uint16Array.t.sol:4:8
951
- |
952
- 4 | import "forge-std/Test.sol";
953
- | ^^^^^^^^^^^^^^^^^^^^
954
- |
955
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
956
-
957
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
958
- --> test/Uint16Array.t.sol:5:8
959
- |
960
- 5 | import "forge-std/console.sol";
961
- | ^^^^^^^^^^^^^^^^^^^^^^^
962
- |
963
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
964
-
965
- note[unused-import]: unused imports should be removed
966
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorNativeEther.s.sol:6:9
967
- |
968
- 6 | import {WETH9} from "canonical-weth/WETH9.sol";
969
- | ^^^^^
970
- |
971
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
972
-
973
- note[unused-import]: unused imports should be removed
974
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorNativeEther.s.sol:9:9
975
- |
976
- 9 | import {ISpokePool} from "../../../../src/l2-integration/interfaces/ISpokePool.sol";
977
- | ^^^^^^^^^^
978
- |
979
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
980
-
981
- note[unused-import]: unused imports should be removed
982
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorNativeEther.s.sol:10:36
983
- |
984
- 10 | import {DepositParams, SendParams, SwapParams} from "../../../../src/l2-integration/Types.sol";
985
- | ^^^^^^^^^^
986
- |
987
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
988
-
989
- note[unused-import]: unused imports should be removed
990
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorNativeEther.s.sol:13:5
991
- |
992
- 13 | BASE_CHAIN_ID as SEPOLIA_BASE_CHAIN_ID,
993
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
994
- |
995
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
996
-
997
- note[unused-import]: unused imports should be removed
998
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorNativeEther.s.sol:14:5
999
- |
1000
- 14 | WETH9 as SEPOLIA_WETH9,
1001
- | ^^^^^^^^^^^^^^^^^^^^^^
1002
- |
1003
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1004
-
1005
- note[mixed-case-function]: function names should use mixedCase
1006
- --> test/mocks/BeefyClientMock.sol:97:14
1007
- |
1008
- 97 | function computeQuorum_public(uint256 numValidators) public pure returns (uint256) {
1009
- | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `computeQuorumPublic`
1010
- |
1011
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1012
-
1013
- note[mixed-case-function]: function names should use mixedCase
1014
- --> test/mocks/BeefyClientMock.sol:101:14
1015
- |
1016
- 101 | function computeMaxRequiredSignatures_public(uint256 numValidators)
1017
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `computeMaxRequiredSignaturesPublic`
1018
- |
1019
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1020
-
1021
- note[mixed-case-function]: function names should use mixedCase
1022
- --> test/mocks/BeefyClientMock.sol:113:14
1023
- |
1024
- 113 | function createTicketID_public(address relayer, bytes32 commitmentHash)
1025
- | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `createTicketIdPublic`
1026
- |
1027
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1028
-
1029
- note[unused-import]: unused imports should be removed
1030
- --> test/mocks/BeefyClientMock.sol:5:9
1031
- |
1032
- 5 | import {Uint16Array, createUint16Array} from "../../src/utils/Uint16Array.sol";
1033
- | ^^^^^^^^^^^
1034
- |
1035
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1036
-
1037
- note[unused-import]: unused imports should be removed
1038
- --> src/v1/Handlers.sol:13:9
1039
- |
1040
- 13 | import {AgentExecutor} from "../AgentExecutor.sol";
1041
- | ^^^^^^^^^^^^^
1042
- |
1043
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1044
-
1045
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1046
- --> test/ScaleCodec.t.sol:4:8
1047
- |
1048
- 4 | import "forge-std/Test.sol";
1049
- | ^^^^^^^^^^^^^^^^^^^^
1050
- |
1051
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1052
-
1053
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1054
- --> test/ScaleCodec.t.sol:5:8
1055
- |
1056
- 5 | import "forge-std/console.sol";
1057
- | ^^^^^^^^^^^^^^^^^^^^^^^
1058
- |
1059
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1060
-
1061
- note[mixed-case-variable]: mutable variables should use mixedCase
1062
- --> test/mocks/MockGateway.sol:70:17
1063
- |
1064
- 70 | bytes32 foreignTokenID,
1065
- | ^^^^^^^^^^^^^^ help: consider using: `foreignTokenId`
1066
- |
1067
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1068
-
1069
- note[mixed-case-variable]: mutable variables should use mixedCase
1070
- --> test/Uint16Array.t.sol:98:16
1071
- |
1072
- 98 | uint16 new_value = counters.get(index);
1073
- | ^^^^^^^^^ help: consider using: `newValue`
1074
- |
1075
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1076
-
1077
- note[unused-import]: unused imports should be removed
1078
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorNativeEther.s.sol:15:5
1079
- |
1080
- 15 | BASE_WETH9 as SEPOLIA_BASE_WETH9,
1081
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1082
- |
1083
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1084
-
1085
- note[unused-import]: unused imports should be removed
1086
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorNativeEther.s.sol:20:5
1087
- |
1088
- 20 | BASE_CHAIN_ID as MAINNET_BASE_CHAIN_ID,
1089
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1090
- |
1091
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1092
-
1093
- note[unused-import]: unused imports should be removed
1094
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorNativeEther.s.sol:21:5
1095
- |
1096
- 21 | WETH9 as MAINNET_WETH9,
1097
- | ^^^^^^^^^^^^^^^^^^^^^^
1098
- |
1099
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1100
-
1101
- note[unused-import]: unused imports should be removed
1102
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorNativeEther.s.sol:22:5
1103
- |
1104
- 22 | BASE_WETH9 as MAINNET_BASE_WETH9,
1105
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1106
- |
1107
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1108
-
1109
- note[unused-import]: unused imports should be removed
1110
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorNativeEther.s.sol:24:5
1111
- |
1112
- 24 | ARBITRUM_CHAIN_ID as MAINNET_ARBITRUM_CHAIN_ID,
1113
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1114
- |
1115
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1116
-
1117
- note[unused-import]: unused imports should be removed
1118
- --> scripts/l2-integration/across/test/TestSnowbridgeL2AdaptorNativeEther.s.sol:25:5
1119
- |
1120
- 25 | ARBITRUM_WETH9 as MAINNET_ARBITRUM_WETH9
1121
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1122
- |
1123
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1124
-
1125
- note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
1126
- --> test/utils/ForkTestFixtures.sol:33:24
1127
- |
1128
- 33 | Vm public constant vm = Vm(0x7109709ECfa91a80626fF3989D68f67F5b1DD12D);
1129
- | ^^ help: consider using: `VM`
1130
- |
1131
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
1132
-
1133
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1134
- --> scripts/l2-integration/across/test/TestUniswapQuoter.s.sol:4:8
1135
- |
1136
- 4 | import "forge-std/Script.sol";
1137
- | ^^^^^^^^^^^^^^^^^^^^^^
1138
- |
1139
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1140
-
1141
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1142
- --> scripts/l2-integration/across/test/TestUniswapQuoter.s.sol:5:8
1143
- |
1144
- 5 | import "forge-std/console.sol";
1145
- | ^^^^^^^^^^^^^^^^^^^^^^^
1146
- |
1147
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1148
-
1149
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1150
- --> scripts/l2-integration/across/test/TestUniswapQuoter.s.sol:6:8
1151
- |
1152
- 6 | import "openzeppelin/token/ERC20/IERC20.sol";
1153
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1154
- |
1155
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1156
-
1157
- note[mixed-case-variable]: mutable variables should use mixedCase
1158
- --> scripts/l2-integration/across/test/TestUniswapQuoter.s.sol:27:16
1159
- |
1160
- 27 | uint24 POOL_FEE = 500; // 0.05%
1161
- | ^^^^^^^^ help: consider using: `poolFee`
1162
- |
1163
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1164
-
1165
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1166
- --> test/FiatShamirPaddingBitsGrind.t.sol:2:8
1167
- |
1168
- 2 | import "forge-std/Test.sol";
1169
- | ^^^^^^^^^^^^^^^^^^^^
1170
- |
1171
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1172
-
1173
- note[mixed-case-variable]: mutable variables should use mixedCase
1174
- --> src/v1/IGateway.sol:20:27
1175
- |
1176
- 20 | ChannelID indexed channelID, uint64 nonce, bytes32 indexed messageID, bool success
1177
- | ^^^^^^^^^ help: consider using: `channelId`
1178
- |
1179
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1180
-
1181
- note[mixed-case-variable]: mutable variables should use mixedCase
1182
- --> src/v1/IGateway.sol:20:68
1183
- |
1184
- 20 | ChannelID indexed channelID, uint64 nonce, bytes32 indexed messageID, bool success
1185
- | ^^^^^^^^^ help: consider using: `messageId`
1186
- |
1187
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1188
-
1189
- note[mixed-case-variable]: mutable variables should use mixedCase
1190
- --> src/v1/IGateway.sol:25:27
1191
- |
1192
- 25 | ChannelID indexed channelID, uint64 nonce, bytes32 indexed messageID, bytes payload
1193
- | ^^^^^^^^^ help: consider using: `channelId`
1194
- |
1195
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1196
-
1197
- note[mixed-case-variable]: mutable variables should use mixedCase
1198
- --> src/v1/IGateway.sol:25:68
1199
- |
1200
- 25 | ChannelID indexed channelID, uint64 nonce, bytes32 indexed messageID, bytes payload
1201
- | ^^^^^^^^^ help: consider using: `messageId`
1202
- |
1203
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1204
-
1205
- note[mixed-case-variable]: mutable variables should use mixedCase
1206
- --> src/v1/IGateway.sol:32:47
1207
- |
1208
- 32 | event AgentFundsWithdrawn(bytes32 indexed agentID, address indexed recipient, uint256 amount);
1209
- | ^^^^^^^ help: consider using: `agentId`
1210
- |
1211
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1212
-
1213
- note[mixed-case-variable]: mutable variables should use mixedCase
1214
- --> src/v1/IGateway.sol:42:30
1215
- |
1216
- 42 | function agentOf(bytes32 agentID) external view returns (address);
1217
- | ^^^^^^^ help: consider using: `agentId`
1218
- |
1219
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1220
-
1221
- note[mixed-case-variable]: mutable variables should use mixedCase
1222
- --> src/v1/IGateway.sol:44:47
1223
- |
1224
- 44 | function channelOperatingModeOf(ChannelID channelID) external view returns (OperatingMode);
1225
- | ^^^^^^^^^ help: consider using: `channelId`
1226
- |
1227
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1228
-
1229
- note[mixed-case-variable]: mutable variables should use mixedCase
1230
- --> test/FiatShamirPaddingBitsGrind.t.sol:48:17
1231
- |
1232
- 48 | bytes32 maliciousMMRRoot = keccak256("attacker-chosen-mmr-root");
1233
- | ^^^^^^^^^^^^^^^^ help: consider using: `maliciousMmrRoot`
1234
- |
1235
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1236
-
1237
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1238
- --> test/GatewayV1.t.sol:68:8
1239
- |
1240
- 68 | import "./mocks/HighGasToken.sol";
1241
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
1242
- |
1243
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1244
-
1245
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1246
- --> test/GatewayV1.t.sol:69:8
1247
- |
1248
- 69 | import "./mocks/FeeOnTransferToken.sol";
1249
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1250
- |
1251
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1252
-
1253
- note[mixed-case-variable]: mutable variables should use mixedCase
1254
- --> test/GatewayV1.t.sol:75:27
1255
- |
1256
- 75 | ChannelID indexed channelID, uint64 nonce, bytes32 indexed messageID, bool success
1257
- | ^^^^^^^^^ help: consider using: `channelId`
1258
- |
1259
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1260
-
1261
- note[mixed-case-variable]: mutable variables should use mixedCase
1262
- --> test/GatewayV1.t.sol:75:68
1263
- |
1264
- 75 | ChannelID indexed channelID, uint64 nonce, bytes32 indexed messageID, bool success
1265
- | ^^^^^^^^^ help: consider using: `messageId`
1266
- |
1267
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1268
-
1269
- note[mixed-case-variable]: mutable variables should use mixedCase
1270
- --> test/GatewayV1.t.sol:78:19
1271
- |
1272
- 78 | ParaID public bridgeHubParaID = ParaID.wrap(1013);
1273
- | ^^^^^^^^^^^^^^^ help: consider using: `bridgeHubParaId`
1274
- |
1275
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1276
-
1277
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
1278
- --> test/FiatShamirPaddingBitsGrind.t.sol:30:54
1279
- |
1280
- 30 | BeefyClient.ValidatorSet({id: 1, length: uint128(N), root: vsetRoot});
1281
- | ^^^^^^^^^^
1282
- |
1283
- = note: consider disabling this lint if you're certain the cast is safe
1284
-
1285
- // casting to 'uint128' is safe because [explain why]
1286
- // forge-lint: disable-next-line(unsafe-typecast)
1287
-
1288
-
1289
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
1290
-
1291
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
1292
- --> test/FiatShamirPaddingBitsGrind.t.sol:32:54
1293
- |
1294
- 32 | BeefyClient.ValidatorSet({id: 2, length: uint128(N), root: vsetRoot});
1295
- | ^^^^^^^^^^
1296
- |
1297
- = note: consider disabling this lint if you're certain the cast is safe
1298
-
1299
- // casting to 'uint128' is safe because [explain why]
1300
- // forge-lint: disable-next-line(unsafe-typecast)
1301
-
1302
-
1303
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
1304
-
1305
- note[unsafe-cheatcode]: usage of unsafe cheatcodes that can perform dangerous operations
1306
- --> test/utils/ForkTestFixtures.sol:73:33
1307
- |
1308
- 73 | string memory data = vm.readFile(string.concat(vm.projectRoot(), fixturePath));
1309
- | ^^^^^^^^
1310
- |
1311
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-cheatcode
1312
-
1313
- note[mixed-case-variable]: mutable variables should use mixedCase
1314
- --> test/GatewayV1.t.sol:80:20
1315
- |
1316
- 80 | bytes32 public bridgeHubAgentID =
1317
- | ^^^^^^^^^^^^^^^^ help: consider using: `bridgeHubAgentId`
1318
- |
1319
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1320
-
1321
- note[mixed-case-variable]: mutable variables should use mixedCase
1322
- --> test/GatewayV1.t.sol:84:19
1323
- |
1324
- 84 | ParaID public assetHubParaID = ParaID.wrap(1000);
1325
- | ^^^^^^^^^^^^^^ help: consider using: `assetHubParaId`
1326
- |
1327
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1328
-
1329
- note[mixed-case-variable]: mutable variables should use mixedCase
1330
- --> test/GatewayV1.t.sol:85:20
1331
- |
1332
- 85 | bytes32 public assetHubAgentID =
1333
- | ^^^^^^^^^^^^^^^ help: consider using: `assetHubAgentId`
1334
- |
1335
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1336
-
1337
- note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
1338
- --> test/ForkUpgrade202509.t.sol:34:31
1339
- |
1340
- 34 | address constant internal assetHubAgent = 0xd803472c47a87D7B63E888DE53f03B4191B846a8;
1341
- | ^^^^^^^^^^^^^ help: consider using: `ASSET_HUB_AGENT`
1342
- |
1343
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
1344
-
1345
- note[mixed-case-function]: function names should use mixedCase
1346
- --> test/mocks/MockGateway.sol:124:14
1347
- |
1348
- 124 | function exposed_v1_transactionBaseGas() external pure returns (uint256) {
1349
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `exposedV1TransactionBaseGas`
1350
- |
1351
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1352
-
1353
- note[unused-import]: unused imports should be removed
1354
- --> scripts/l2-integration/across/test/TestUniswapQuoter.s.sol:7:9
1355
- |
1356
- 7 | import {WETH9} from "canonical-weth/WETH9.sol";
1357
- | ^^^^^
1358
- |
1359
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1360
-
1361
- note[unused-import]: unused imports should be removed
1362
- --> scripts/l2-integration/across/test/TestUniswapQuoter.s.sol:9:9
1363
- |
1364
- 9 | import {ISwapRouter} from "../interfaces/ISwapRouter.sol";
1365
- | ^^^^^^^^^^^
1366
- |
1367
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1368
-
1369
- note[mixed-case-variable]: mutable variables should use mixedCase
1370
- --> src/v1/IGateway.sol:46:40
1371
- |
1372
- 46 | function channelNoncesOf(ChannelID channelID) external view returns (uint64, uint64);
1373
- | ^^^^^^^^^ help: consider using: `channelId`
1374
- |
1375
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1376
-
1377
- note[mixed-case-variable]: mutable variables should use mixedCase
1378
- --> scripts/l2-integration/across/test/TestSnowbridgeL1AdaptorNativeEther.s.sol:34:17
1379
- |
1380
- 34 | uint256 L2_CHAIN_ID;
1381
- | ^^^^^^^^^^^ help: consider using: `l2ChainId`
1382
- |
1383
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1384
-
1385
- note[mixed-case-variable]: mutable variables should use mixedCase
1386
- --> scripts/l2-integration/across/test/TestSnowbridgeL1AdaptorNativeEther.s.sol:35:16
1387
- |
1388
- 35 | uint32 TIME_BUFFER;
1389
- | ^^^^^^^^^^^ help: consider using: `timeBuffer`
1390
- |
1391
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1392
-
1393
- note[mixed-case-variable]: mutable variables should use mixedCase
1394
- --> scripts/l2-integration/across/test/TestSnowbridgeL1AdaptorNativeEther.s.sol:36:17
1395
- |
1396
- 36 | address L2_WETH9;
1397
- | ^^^^^^^^ help: consider using: `l2Weth9`
1398
- |
1399
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1400
-
1401
- note[mixed-case-variable]: mutable variables should use mixedCase
1402
- --> test/ForkUpgrade202509.t.sol:152:16
1403
- |
1404
- 152 | ParaID paraID = ParaID.wrap(1000);
1405
- | ^^^^^^ help: consider using: `paraId`
1406
- |
1407
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1408
-
1409
- note[mixed-case-variable]: mutable variables should use mixedCase
1410
- --> src/Functions.sol:122:17
1411
- |
1412
- 122 | bytes32 foreignTokenID,
1413
- | ^^^^^^^^^^^^^^ help: consider using: `foreignTokenId`
1414
- |
1415
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1416
-
1417
- note[mixed-case-function]: function names should use mixedCase
1418
- --> src/v1/IGateway.sol:86:14
1419
- |
1420
- 86 | function queryForeignTokenID(address token) external view returns (bytes32);
1421
- | ^^^^^^^^^^^^^^^^^^^ help: consider using: `queryForeignTokenId`
1422
- |
1423
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1424
-
1425
- note[mixed-case-variable]: mutable variables should use mixedCase
1426
- --> test/utils/ForkTestFixtures.sol:132:15
1427
- |
1428
- 132 | bytes consensusEngineID;
1429
- | ^^^^^^^^^^^^^^^^^ help: consider using: `consensusEngineId`
1430
- |
1431
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1432
-
1433
- note[mixed-case-variable]: mutable variables should use mixedCase
1434
- --> test/GatewayV1.t.sol:107:20
1435
- |
1436
- 107 | bytes32 public messageID = keccak256("cabbage");
1437
- | ^^^^^^^^^ help: consider using: `messageId`
1438
- |
1439
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1440
-
1441
- note[unused-import]: unused imports should be removed
1442
- --> test/mocks/MockGateway.sol:7:20
1443
- |
1444
- 7 | import {ChannelID, ParaID, OperatingMode} from "../../src/Types.sol";
1445
- | ^^^^^^
1446
- |
1447
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1448
-
1449
- note[unused-import]: unused imports should be removed
1450
- --> test/mocks/MockGateway.sol:7:28
1451
- |
1452
- 7 | import {ChannelID, ParaID, OperatingMode} from "../../src/Types.sol";
1453
- | ^^^^^^^^^^^^^
1454
- |
1455
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1456
-
1457
- note[unused-import]: unused imports should be removed
1458
- --> test/mocks/MockGateway.sol:11:9
1459
- |
1460
- 11 | import {IInitializable} from "../../src/interfaces/IInitializable.sol";
1461
- | ^^^^^^^^^^^^^^
1462
- |
1463
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1464
-
1465
- note[unused-import]: unused imports should be removed
1466
- --> test/mocks/MockGateway.sol:13:9
1467
- |
1468
- 13 | import {UD60x18} from "prb/math/src/UD60x18.sol";
1469
- | ^^^^^^^
1470
- |
1471
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1472
-
1473
- note[unused-import]: unused imports should be removed
1474
- --> test/mocks/MockGateway.sol:18:9
1475
- |
1476
- 18 | import {AgentExecutor} from "../../src/AgentExecutor.sol";
1477
- | ^^^^^^^^^^^^^
1478
- |
1479
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1480
-
1481
- note[mixed-case-variable]: mutable variables should use mixedCase
1482
- --> src/v1/IGateway.sol:117:37
1483
- |
1484
- 117 | function tokenAddressOf(bytes32 tokenID) external view returns (address);
1485
- | ^^^^^^^ help: consider using: `tokenId`
1486
- |
1487
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1488
-
1489
- note[unused-import]: unused imports should be removed
1490
- --> scripts/l2-integration/across/test/TestSnowbridgeL1AdaptorNativeEther.s.sol:4:17
1491
- |
1492
- 4 | import {Script, console} from "forge-std/Script.sol";
1493
- | ^^^^^^^
1494
- |
1495
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1496
-
1497
- note[unused-import]: unused imports should be removed
1498
- --> scripts/l2-integration/across/test/TestSnowbridgeL1AdaptorNativeEther.s.sol:5:9
1499
- |
1500
- 5 | import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol";
1501
- | ^^^^^^
1502
- |
1503
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1504
-
1505
- note[unused-import]: unused imports should be removed
1506
- --> scripts/l2-integration/across/test/TestSnowbridgeL1AdaptorNativeEther.s.sol:8:9
1507
- |
1508
- 8 | import {ISpokePool} from "../../../../src/l2-integration/interfaces/ISpokePool.sol";
1509
- | ^^^^^^^^^^
1510
- |
1511
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1512
-
1513
- note[unused-import]: unused imports should be removed
1514
- --> scripts/l2-integration/across/test/TestSnowbridgeL1AdaptorNativeEther.s.sol:9:24
1515
- |
1516
- 9 | import {DepositParams, SendParams} from "../../../../src/l2-integration/Types.sol";
1517
- | ^^^^^^^^^^
1518
- |
1519
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1520
-
1521
- note[unused-import]: unused imports should be removed
1522
- --> test/utils/ForkTestFixtures.sol:5:9
1523
- |
1524
- 5 | import {Test} from "forge-std/Test.sol";
1525
- | ^^^^
1526
- |
1527
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1528
-
1529
- note[unused-import]: unused imports should be removed
1530
- --> test/utils/ForkTestFixtures.sol:7:9
1531
- |
1532
- 7 | import {console} from "forge-std/console.sol";
1533
- | ^^^^^^^
1534
- |
1535
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1536
-
1537
- note[unused-import]: unused imports should be removed
1538
- --> test/utils/ForkTestFixtures.sol:9:9
1539
- |
1540
- 9 | import {IUpgradable} from "../../src/interfaces/IUpgradable.sol";
1541
- | ^^^^^^^^^^^
1542
- |
1543
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1544
-
1545
- note[unused-import]: unused imports should be removed
1546
- --> test/utils/ForkTestFixtures.sol:12:5
1547
- |
1548
- 12 | UpgradeParams,
1549
- | ^^^^^^^^^^^^^
1550
- |
1551
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1552
-
1553
- note[unused-import]: unused imports should be removed
1554
- --> test/utils/ForkTestFixtures.sol:13:5
1555
- |
1556
- 13 | SetOperatingModeParams,
1557
- | ^^^^^^^^^^^^^^^^^^^^^^
1558
- |
1559
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1560
-
1561
- note[unused-import]: unused imports should be removed
1562
- --> test/utils/ForkTestFixtures.sol:14:5
1563
- |
1564
- 14 | OperatingMode,
1565
- | ^^^^^^^^^^^^^
1566
- |
1567
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1568
-
1569
- note[unused-import]: unused imports should be removed
1570
- --> test/utils/ForkTestFixtures.sol:15:5
1571
- |
1572
- 15 | RegisterForeignTokenParams,
1573
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
1574
- |
1575
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1576
-
1577
- note[unused-import]: unused imports should be removed
1578
- --> test/utils/ForkTestFixtures.sol:17:5
1579
- |
1580
- 17 | ParaID,
1581
- | ^^^^^^
1582
- |
1583
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1584
-
1585
- note[unused-import]: unused imports should be removed
1586
- --> test/utils/ForkTestFixtures.sol:18:5
1587
- |
1588
- 18 | OperatingMode,
1589
- | ^^^^^^^^^^^^^
1590
- |
1591
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1592
-
1593
- note[unused-import]: unused imports should be removed
1594
- --> test/utils/ForkTestFixtures.sol:21:5
1595
- |
1596
- 21 | TokenInfo
1597
- | ^^^^^^^^^
1598
- |
1599
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1600
-
1601
- note[mixed-case-variable]: mutable variables should use mixedCase
1602
- --> test/GatewayV1.t.sol:124:20
1603
- |
1604
- 124 | bytes32 public dotTokenID;
1605
- | ^^^^^^^^^^ help: consider using: `dotTokenId`
1606
- |
1607
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1608
-
1609
- note[mixed-case-variable]: mutable variables should use mixedCase
1610
- --> test/GatewayV2.t.sol:142:20
1611
- |
1612
- 142 | bytes32 public dotTokenID;
1613
- | ^^^^^^^^^^ help: consider using: `dotTokenId`
1614
- |
1615
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1616
-
1617
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1618
- --> scripts/l2-integration/across/test/TestUniswap.s.sol:4:8
1619
- |
1620
- 4 | import "forge-std/Script.sol";
1621
- | ^^^^^^^^^^^^^^^^^^^^^^
1622
- |
1623
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1624
-
1625
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1626
- --> scripts/l2-integration/across/test/TestUniswap.s.sol:5:8
1627
- |
1628
- 5 | import "forge-std/console.sol";
1629
- | ^^^^^^^^^^^^^^^^^^^^^^^
1630
- |
1631
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1632
-
1633
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1634
- --> scripts/l2-integration/across/test/TestUniswap.s.sol:6:8
1635
- |
1636
- 6 | import "openzeppelin/token/ERC20/IERC20.sol";
1637
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1638
- |
1639
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1640
-
1641
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1642
- --> test/Agent.t.sol:4:8
1643
- |
1644
- 4 | import "forge-std/Test.sol";
1645
- | ^^^^^^^^^^^^^^^^^^^^
1646
- |
1647
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1648
-
1649
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1650
- --> test/Agent.t.sol:5:8
1651
- |
1652
- 5 | import "forge-std/console.sol";
1653
- | ^^^^^^^^^^^^^^^^^^^^^^^
1654
- |
1655
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1656
-
1657
- note[mixed-case-variable]: mutable variables should use mixedCase
1658
- --> scripts/l2-integration/across/test/TestUniswap.s.sol:19:17
1659
- |
1660
- 19 | address USDC = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48;
1661
- | ^^^^ help: consider using: `usdc`
1662
- |
1663
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1664
-
1665
- note[mixed-case-variable]: mutable variables should use mixedCase
1666
- --> scripts/l2-integration/across/test/TestUniswap.s.sol:21:17
1667
- |
1668
- 21 | address WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
1669
- | ^^^^ help: consider using: `weth`
1670
- |
1671
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1672
-
1673
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1674
- --> test/Verification.t.sol:4:8
1675
- |
1676
- 4 | import "openzeppelin/utils/Strings.sol";
1677
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1678
- |
1679
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1680
-
1681
- note[mixed-case-function]: function names should use mixedCase
1682
- --> src/v1/Types.sol:13:10
1683
- |
1684
- 13 | function ParaIDEq(ParaID a, ParaID b) pure returns (bool) {
1685
- | ^^^^^^^^ help: consider using: `paraIdEq`
1686
- |
1687
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1688
-
1689
- note[mixed-case-function]: function names should use mixedCase
1690
- --> src/v1/Types.sol:17:10
1691
- |
1692
- 17 | function ParaIDNe(ParaID a, ParaID b) pure returns (bool) {
1693
- | ^^^^^^^^ help: consider using: `paraIdNe`
1694
- |
1695
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1696
-
1697
- note[mixed-case-variable]: mutable variables should use mixedCase
1698
- --> src/v1/Types.sol:21:22
1699
- |
1700
- 21 | function into(ParaID paraID) pure returns (ChannelID) {
1701
- | ^^^^^^ help: consider using: `paraId`
1702
- |
1703
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1704
-
1705
- note[mixed-case-function]: function names should use mixedCase
1706
- --> src/v1/Types.sol:29:10
1707
- |
1708
- 29 | function ChannelIDEq(ChannelID a, ChannelID b) pure returns (bool) {
1709
- | ^^^^^^^^^^^ help: consider using: `channelIdEq`
1710
- |
1711
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1712
-
1713
- note[mixed-case-function]: function names should use mixedCase
1714
- --> src/v1/Types.sol:33:10
1715
- |
1716
- 33 | function ChannelIDNe(ChannelID a, ChannelID b) pure returns (bool) {
1717
- | ^^^^^^^^^^^ help: consider using: `channelIdNe`
1718
- |
1719
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1720
-
1721
- note[mixed-case-variable]: mutable variables should use mixedCase
1722
- --> src/v1/Types.sol:53:15
1723
- |
1724
- 53 | ChannelID channelID;
1725
- | ^^^^^^^^^ help: consider using: `channelId`
1726
- |
1727
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1728
-
1729
- note[mixed-case-variable]: mutable variables should use mixedCase
1730
- --> test/GatewayV1.t.sol:177:17
1731
- |
1732
- 177 | bytes32 agentID,
1733
- | ^^^^^^^ help: consider using: `agentId`
1734
- |
1735
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1736
-
1737
- note[mixed-case-variable]: mutable variables should use mixedCase
1738
- --> scripts/l2-integration/across/test/TestUniswap.s.sol:23:16
1739
- |
1740
- 23 | uint24 POOL_FEE = 500; // 0.05%
1741
- | ^^^^^^^^ help: consider using: `poolFee`
1742
- |
1743
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1744
-
1745
- note[unused-import]: unused imports should be removed
1746
- --> test/GatewayV2.t.sol:5:9
1747
- |
1748
- 5 | import {Strings} from "openzeppelin/utils/Strings.sol";
1749
- | ^^^^^^^
1750
- |
1751
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1752
-
1753
- note[unused-import]: unused imports should be removed
1754
- --> test/GatewayV2.t.sol:6:9
1755
- |
1756
- 6 | import {console} from "forge-std/console.sol";
1757
- | ^^^^^^^
1758
- |
1759
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1760
-
1761
- note[unused-import]: unused imports should be removed
1762
- --> test/GatewayV2.t.sol:8:9
1763
- |
1764
- 8 | import {BeefyClient} from "../src/BeefyClient.sol";
1765
- | ^^^^^^^^^^^
1766
- |
1767
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1768
-
1769
- note[unused-import]: unused imports should be removed
1770
- --> test/GatewayV2.t.sol:12:9
1771
- |
1772
- 12 | import {IInitializable} from "../src/interfaces/IInitializable.sol";
1773
- | ^^^^^^^^^^^^^^
1774
- |
1775
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1776
-
1777
- note[unused-import]: unused imports should be removed
1778
- --> test/GatewayV2.t.sol:13:9
1779
- |
1780
- 13 | import {IUpgradable} from "../src/interfaces/IUpgradable.sol";
1781
- | ^^^^^^^^^^^
1782
- |
1783
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1784
-
1785
- note[unused-import]: unused imports should be removed
1786
- --> test/GatewayV2.t.sol:14:9
1787
- |
1788
- 14 | import {Gateway} from "../src/Gateway.sol";
1789
- | ^^^^^^^
1790
- |
1791
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1792
-
1793
- note[mixed-case-variable]: mutable variables should use mixedCase
1794
- --> test/GatewayV1.t.sol:190:17
1795
- |
1796
- 190 | bytes32 agentID,
1797
- | ^^^^^^^ help: consider using: `agentId`
1798
- |
1799
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1800
-
1801
- note[unused-import]: unused imports should be removed
1802
- --> test/mocks/ReantrantAttacker.sol:7:9
1803
- |
1804
- 7 | import {console} from "forge-std/console.sol";
1805
- | ^^^^^^^
1806
- |
1807
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
1808
-
1809
- note[mixed-case-variable]: mutable variables should use mixedCase
1810
- --> src/v1/Types.sol:108:13
1811
- |
1812
- 108 | bytes32 agentID;
1813
- | ^^^^^^^ help: consider using: `agentId`
1814
- |
1815
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1816
-
1817
- note[mixed-case-variable]: mutable variables should use mixedCase
1818
- --> src/Functions.sol:142:39
1819
- |
1820
- 142 | function mintForeignToken(bytes32 foreignTokenID, address recipient, uint128 amount)
1821
- | ^^^^^^^^^^^^^^ help: consider using: `foreignTokenId`
1822
- |
1823
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1824
-
1825
- note[mixed-case-variable]: mutable variables should use mixedCase
1826
- --> src/Functions.sol:154:44
1827
- |
1828
- 154 | function _ensureTokenAddressOf(bytes32 tokenID) internal view returns (address) {
1829
- | ^^^^^^^ help: consider using: `tokenId`
1830
- |
1831
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1832
-
1833
- note[screaming-snake-case-immutable]: immutables should use SCREAMING_SNAKE_CASE
1834
- --> test/mocks/FeeOnTransferToken.sol:8:30
1835
- |
1836
- 8 | uint256 public immutable feeBps;
1837
- | ^^^^^^ help: consider using: `FEE_BPS`
1838
- |
1839
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-immutable
1840
-
1841
- note[mixed-case-variable]: mutable variables should use mixedCase
1842
- --> src/v1/Types.sol:153:13
1843
- |
1844
- 153 | bytes32 agentID;
1845
- | ^^^^^^^ help: consider using: `agentId`
1846
- |
1847
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1848
-
1849
- note[mixed-case-function]: function names should use mixedCase
1850
- --> src/SubstrateTypes.sol:19:14
1851
- |
1852
- 19 | function H160(address account) internal pure returns (bytes memory) {
1853
- | ^^^^ help: consider using: `h160`
1854
- |
1855
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1856
-
1857
- note[mixed-case-function]: function names should use mixedCase
1858
- --> src/SubstrateTypes.sol:23:14
1859
- |
1860
- 23 | function VecU8(bytes memory input) internal pure returns (bytes memory) {
1861
- | ^^^^^ help: consider using: `vecU8`
1862
- |
1863
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1864
-
1865
- note[mixed-case-function]: function names should use mixedCase
1866
- --> src/SubstrateTypes.sol:33:14
1867
- |
1868
- 33 | function None() internal pure returns (bytes memory) {
1869
- | ^^^^ help: consider using: `none`
1870
- |
1871
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1872
-
1873
- note[mixed-case-function]: function names should use mixedCase
1874
- --> src/SubstrateTypes.sol:42:14
1875
- |
1876
- 42 | function RegisterToken(address token, uint128 fee) internal view returns (bytes memory) {
1877
- | ^^^^^^^^^^^^^ help: consider using: `registerToken`
1878
- |
1879
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1880
-
1881
- note[mixed-case-function]: function names should use mixedCase
1882
- --> src/SubstrateTypes.sol:57:14
1883
- |
1884
- 57 | function SendTokenToAssetHubAddress32(
1885
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `sendTokenToAssetHubAddress32`
1886
- |
1887
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1888
-
1889
- note[mixed-case-function]: function names should use mixedCase
1890
- --> src/SubstrateTypes.sol:76:14
1891
- |
1892
- 76 | function SendTokenToAddress32(
1893
- | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `sendTokenToAddress32`
1894
- |
1895
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1896
-
1897
- note[mixed-case-variable]: mutable variables should use mixedCase
1898
- --> src/SubstrateTypes.sol:78:16
1899
- |
1900
- 78 | ParaID paraID,
1901
- | ^^^^^^ help: consider using: `paraId`
1902
- |
1903
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1904
-
1905
- note[mixed-case-function]: function names should use mixedCase
1906
- --> src/SubstrateTypes.sol:99:14
1907
- |
1908
- 99 | function SendTokenToAddress20(
1909
- | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `sendTokenToAddress20`
1910
- |
1911
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1912
-
1913
- note[mixed-case-variable]: mutable variables should use mixedCase
1914
- --> src/SubstrateTypes.sol:101:16
1915
- |
1916
- 101 | ParaID paraID,
1917
- | ^^^^^^ help: consider using: `paraId`
1918
- |
1919
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1920
-
1921
- note[mixed-case-function]: function names should use mixedCase
1922
- --> src/SubstrateTypes.sol:121:14
1923
- |
1924
- 121 | function SendForeignTokenToAssetHubAddress32(
1925
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `sendForeignTokenToAssetHubAddress32`
1926
- |
1927
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1928
-
1929
- note[mixed-case-variable]: mutable variables should use mixedCase
1930
- --> src/SubstrateTypes.sol:122:17
1931
- |
1932
- 122 | bytes32 tokenID,
1933
- | ^^^^^^^ help: consider using: `tokenId`
1934
- |
1935
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1936
-
1937
- note[mixed-case-function]: function names should use mixedCase
1938
- --> src/SubstrateTypes.sol:140:14
1939
- |
1940
- 140 | function SendForeignTokenToAddress32(
1941
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `sendForeignTokenToAddress32`
1942
- |
1943
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
1944
-
1945
- note[mixed-case-variable]: mutable variables should use mixedCase
1946
- --> src/SubstrateTypes.sol:141:17
1947
- |
1948
- 141 | bytes32 tokenID,
1949
- | ^^^^^^^ help: consider using: `tokenId`
1950
- |
1951
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1952
-
1953
- note[mixed-case-variable]: mutable variables should use mixedCase
1954
- --> test/GatewayV1.t.sol:614:16
1955
- |
1956
- 614 | ParaID paraID = ParaID.wrap(1000);
1957
- | ^^^^^^ help: consider using: `paraId`
1958
- |
1959
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1960
-
1961
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1962
- --> src/upgrade/Gateway202601.sepolia.sol:5:8
1963
- |
1964
- 5 | import "../Gateway.sol";
1965
- | ^^^^^^^^^^^^^^^^
1966
- |
1967
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1968
-
1969
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1970
- --> test/Math.t.sol:4:8
1971
- |
1972
- 4 | import "forge-std/Test.sol";
1973
- | ^^^^^^^^^^^^^^^^^^^^
1974
- |
1975
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1976
-
1977
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
1978
- --> test/Math.t.sol:5:8
1979
- |
1980
- 5 | import "forge-std/console.sol";
1981
- | ^^^^^^^^^^^^^^^^^^^^^^^
1982
- |
1983
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
1984
-
1985
- note[mixed-case-variable]: mutable variables should use mixedCase
1986
- --> test/ForkUpgrade202509.t.sol:281:16
1987
- |
1988
- 281 | ParaID paraID = ParaID.wrap(1000);
1989
- | ^^^^^^ help: consider using: `paraId`
1990
- |
1991
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
1992
-
1993
- note[unused-import]: unused imports should be removed
1994
- --> test/GatewayV2.t.sol:16:9
1995
- |
1996
- 16 | import {MockGatewayV2} from "./mocks/MockGatewayV2.sol";
1997
- | ^^^^^^^^^^^^^
1998
- |
1999
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2000
-
2001
- note[unused-import]: unused imports should be removed
2002
- --> test/GatewayV2.t.sol:21:9
2003
- |
2004
- 21 | import {Agent} from "../src/Agent.sol";
2005
- | ^^^^^
2006
- |
2007
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2008
-
2009
- note[unused-import]: unused imports should be removed
2010
- --> test/GatewayV2.t.sol:23:9
2011
- |
2012
- 23 | import {SubstrateTypes} from "./../src/SubstrateTypes.sol";
2013
- | ^^^^^^^^^^^^^^
2014
- |
2015
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2016
-
2017
- note[unused-import]: unused imports should be removed
2018
- --> test/GatewayV2.t.sol:24:24
2019
- |
2020
- 24 | import {OperatingMode, ParaID, CommandV2, CommandKind, InboundMessageV2} from "../src/Types.sol";
2021
- | ^^^^^^
2022
- |
2023
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2024
-
2025
- note[unused-import]: unused imports should be removed
2026
- --> test/GatewayV2.t.sol:26:9
2027
- |
2028
- 26 | import {NativeTransferFailed} from "../src/utils/SafeTransfer.sol";
2029
- | ^^^^^^^^^^^^^^^^^^^^
2030
- |
2031
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2032
-
2033
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
2034
- --> src/upgrade/Gateway202509.sol:5:8
2035
- |
2036
- 5 | import "../Gateway.sol";
2037
- | ^^^^^^^^^^^^^^^^
2038
- |
2039
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
2040
-
2041
- note[mixed-case-variable]: mutable variables should use mixedCase
2042
- --> src/v1/Types.sol:165:13
2043
- |
2044
- 165 | bytes32 foreignTokenID;
2045
- | ^^^^^^^^^^^^^^ help: consider using: `foreignTokenId`
2046
- |
2047
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2048
-
2049
- note[mixed-case-variable]: mutable variables should use mixedCase
2050
- --> src/v1/Types.sol:177:13
2051
- |
2052
- 177 | bytes32 foreignTokenID;
2053
- | ^^^^^^^^^^^^^^ help: consider using: `foreignTokenId`
2054
- |
2055
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2056
-
2057
- note[unused-import]: unused imports should be removed
2058
- --> src/v1/Types.sol:5:9
2059
- |
2060
- 5 | import {TokenInfo, OperatingMode} from "../types/Common.sol";
2061
- | ^^^^^^^^^
2062
- |
2063
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2064
-
2065
- note[unused-import]: unused imports should be removed
2066
- --> src/v1/Types.sol:6:9
2067
- |
2068
- 6 | import {MultiAddress} from "./MultiAddress.sol";
2069
- | ^^^^^^^^^^^^
2070
- |
2071
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2072
-
2073
- note[mixed-case-variable]: mutable variables should use mixedCase
2074
- --> test/ForkUpgrade202509.t.sol:311:16
2075
- |
2076
- 311 | ParaID paraID = ParaID.wrap(1000);
2077
- | ^^^^^^ help: consider using: `paraId`
2078
- |
2079
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2080
-
2081
- note[mixed-case-variable]: mutable variables should use mixedCase
2082
- --> src/SubstrateTypes.sol:142:16
2083
- |
2084
- 142 | ParaID paraID,
2085
- | ^^^^^^ help: consider using: `paraId`
2086
- |
2087
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2088
-
2089
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
2090
- --> test/Verification.t.sol:5:8
2091
- |
2092
- 5 | import "forge-std/Test.sol";
2093
- | ^^^^^^^^^^^^^^^^^^^^
2094
- |
2095
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
2096
-
2097
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
2098
- --> test/Verification.t.sol:6:8
2099
- |
2100
- 6 | import "forge-std/console.sol";
2101
- | ^^^^^^^^^^^^^^^^^^^^^^^
2102
- |
2103
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
2104
-
2105
- note[mixed-case-variable]: mutable variables should use mixedCase
2106
- --> test/Verification.t.sol:18:19
2107
- |
2108
- 18 | bytes4 public encodedParachainID;
2109
- | ^^^^^^^^^^^^^^^^^^ help: consider using: `encodedParachainId`
2110
- |
2111
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2112
-
2113
- note[mixed-case-variable]: mutable variables should use mixedCase
2114
- --> test/GatewayV1.t.sol:639:16
2115
- |
2116
- 639 | ParaID paraID = ParaID.wrap(1000);
2117
- | ^^^^^^ help: consider using: `paraId`
2118
- |
2119
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2120
-
2121
- note[mixed-case-function]: function names should use mixedCase
2122
- --> src/SubstrateTypes.sol:163:14
2123
- |
2124
- 163 | function SendForeignTokenToAddress20(
2125
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `sendForeignTokenToAddress20`
2126
- |
2127
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
2128
-
2129
- note[mixed-case-variable]: mutable variables should use mixedCase
2130
- --> src/SubstrateTypes.sol:164:17
2131
- |
2132
- 164 | bytes32 tokenID,
2133
- | ^^^^^^^ help: consider using: `tokenId`
2134
- |
2135
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2136
-
2137
- note[mixed-case-variable]: mutable variables should use mixedCase
2138
- --> src/SubstrateTypes.sol:165:16
2139
- |
2140
- 165 | ParaID paraID,
2141
- | ^^^^^^ help: consider using: `paraId`
2142
- |
2143
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2144
-
2145
- note[mixed-case-variable]: mutable variables should use mixedCase
2146
- --> test/GatewayV1.t.sol:665:16
2147
- |
2148
- 665 | ParaID paraID = ParaID.wrap(1000);
2149
- | ^^^^^^ help: consider using: `paraId`
2150
- |
2151
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2152
-
2153
- note[mixed-case-variable]: mutable variables should use mixedCase
2154
- --> test/GatewayV1.t.sol:682:16
2155
- |
2156
- 682 | ParaID paraID = ParaID.wrap(1000);
2157
- | ^^^^^^ help: consider using: `paraId`
2158
- |
2159
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2160
-
2161
- note[unused-import]: unused imports should be removed
2162
- --> src/Types.sol:5:9
2163
- |
2164
- 5 | import {TokenInfo, OperatingMode} from "./types/Common.sol";
2165
- | ^^^^^^^^^
2166
- |
2167
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2168
-
2169
- note[unused-import]: unused imports should be removed
2170
- --> src/Types.sol:5:20
2171
- |
2172
- 5 | import {TokenInfo, OperatingMode} from "./types/Common.sol";
2173
- | ^^^^^^^^^^^^^
2174
- |
2175
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2176
-
2177
- note[unused-import]: unused imports should be removed
2178
- --> src/Types.sol:6:9
2179
- |
2180
- 6 | import {UD60x18} from "prb/math/src/UD60x18.sol";
2181
- | ^^^^^^^
2182
- |
2183
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2184
-
2185
- note[unused-import]: unused imports should be removed
2186
- --> src/Types.sol:8:5
2187
- |
2188
- 8 | ParaID,
2189
- | ^^^^^^
2190
- |
2191
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2192
-
2193
- note[unused-import]: unused imports should be removed
2194
- --> src/Types.sol:9:5
2195
- |
2196
- 9 | ChannelID,
2197
- | ^^^^^^^^^
2198
- |
2199
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2200
-
2201
- note[unused-import]: unused imports should be removed
2202
- --> src/Types.sol:10:5
2203
- |
2204
- 10 | Channel,
2205
- | ^^^^^^^
2206
- |
2207
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2208
-
2209
- note[unused-import]: unused imports should be removed
2210
- --> src/Types.sol:11:5
2211
- |
2212
- 11 | InboundMessage as InboundMessageV1,
2213
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2214
- |
2215
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2216
-
2217
- note[unused-import]: unused imports should be removed
2218
- --> src/Types.sol:12:5
2219
- |
2220
- 12 | Command as CommandV1,
2221
- | ^^^^^^^^^^^^^^^^^^^^
2222
- |
2223
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2224
-
2225
- note[unused-import]: unused imports should be removed
2226
- --> src/Types.sol:13:5
2227
- |
2228
- 13 | MultiAddress
2229
- | ^^^^^^^^^^^^
2230
- |
2231
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2232
-
2233
- note[unused-import]: unused imports should be removed
2234
- --> src/Types.sol:15:9
2235
- |
2236
- 15 | import {CallsV1} from "./v1/Calls.sol";
2237
- | ^^^^^^^
2238
- |
2239
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2240
-
2241
- note[unused-import]: unused imports should be removed
2242
- --> src/Types.sol:16:9
2243
- |
2244
- 16 | import {HandlersV1} from "./v1/Handlers.sol";
2245
- | ^^^^^^^^^^
2246
- |
2247
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2248
-
2249
- note[named-struct-fields]: prefer initializing structs with named fields
2250
- --> test/Math.t.sol:20:13
2251
- |
2252
- 20 | Log2Test(0, 0),
2253
- | ^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 0, input: 0 })`
2254
- |
2255
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2256
-
2257
- note[named-struct-fields]: prefer initializing structs with named fields
2258
- --> test/Math.t.sol:21:13
2259
- |
2260
- 21 | Log2Test(0, 1),
2261
- | ^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 0, input: 1 })`
2262
- |
2263
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2264
-
2265
- note[named-struct-fields]: prefer initializing structs with named fields
2266
- --> test/Math.t.sol:22:13
2267
- |
2268
- 22 | Log2Test(1, 2),
2269
- | ^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 1, input: 2 })`
2270
- |
2271
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2272
-
2273
- note[named-struct-fields]: prefer initializing structs with named fields
2274
- --> test/Math.t.sol:23:13
2275
- |
2276
- 23 | Log2Test(2, 3),
2277
- | ^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 2, input: 3 })`
2278
- |
2279
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2280
-
2281
- note[named-struct-fields]: prefer initializing structs with named fields
2282
- --> test/Math.t.sol:24:13
2283
- |
2284
- 24 | Log2Test(2, 4),
2285
- | ^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 2, input: 4 })`
2286
- |
2287
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2288
-
2289
- note[named-struct-fields]: prefer initializing structs with named fields
2290
- --> test/Math.t.sol:25:13
2291
- |
2292
- 25 | Log2Test(3, 5),
2293
- | ^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 3, input: 5 })`
2294
- |
2295
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2296
-
2297
- note[named-struct-fields]: prefer initializing structs with named fields
2298
- --> test/Math.t.sol:26:13
2299
- |
2300
- 26 | Log2Test(3, 6),
2301
- | ^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 3, input: 6 })`
2302
- |
2303
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2304
-
2305
- note[named-struct-fields]: prefer initializing structs with named fields
2306
- --> test/Math.t.sol:27:13
2307
- |
2308
- 27 | Log2Test(3, 8),
2309
- | ^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 3, input: 8 })`
2310
- |
2311
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2312
-
2313
- note[named-struct-fields]: prefer initializing structs with named fields
2314
- --> test/Math.t.sol:28:13
2315
- |
2316
- 28 | Log2Test(4, 9),
2317
- | ^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 4, input: 9 })`
2318
- |
2319
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2320
-
2321
- note[named-struct-fields]: prefer initializing structs with named fields
2322
- --> test/Math.t.sol:29:13
2323
- |
2324
- 29 | Log2Test(4, 12),
2325
- | ^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 4, input: 12 })`
2326
- |
2327
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2328
-
2329
- note[named-struct-fields]: prefer initializing structs with named fields
2330
- --> test/Math.t.sol:30:13
2331
- |
2332
- 30 | Log2Test(4, 16),
2333
- | ^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 4, input: 16 })`
2334
- |
2335
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2336
-
2337
- note[named-struct-fields]: prefer initializing structs with named fields
2338
- --> test/Math.t.sol:31:13
2339
- |
2340
- 31 | Log2Test(5, 17),
2341
- | ^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 5, input: 17 })`
2342
- |
2343
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2344
-
2345
- note[named-struct-fields]: prefer initializing structs with named fields
2346
- --> test/Math.t.sol:32:13
2347
- |
2348
- 32 | Log2Test(5, 24),
2349
- | ^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 5, input: 24 })`
2350
- |
2351
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2352
-
2353
- note[named-struct-fields]: prefer initializing structs with named fields
2354
- --> test/Math.t.sol:33:13
2355
- |
2356
- 33 | Log2Test(5, 32),
2357
- | ^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 5, input: 32 })`
2358
- |
2359
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2360
-
2361
- note[named-struct-fields]: prefer initializing structs with named fields
2362
- --> test/Math.t.sol:34:13
2363
- |
2364
- 34 | Log2Test(6, 33),
2365
- | ^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 6, input: 33 })`
2366
- |
2367
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2368
-
2369
- note[named-struct-fields]: prefer initializing structs with named fields
2370
- --> test/Math.t.sol:35:13
2371
- |
2372
- 35 | Log2Test(6, 48),
2373
- | ^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 6, input: 48 })`
2374
- |
2375
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2376
-
2377
- note[named-struct-fields]: prefer initializing structs with named fields
2378
- --> test/Math.t.sol:36:13
2379
- |
2380
- 36 | Log2Test(6, 64),
2381
- | ^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 6, input: 64 })`
2382
- |
2383
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2384
-
2385
- note[named-struct-fields]: prefer initializing structs with named fields
2386
- --> test/Math.t.sol:37:13
2387
- |
2388
- 37 | Log2Test(7, 65),
2389
- | ^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 7, input: 65 })`
2390
- |
2391
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2392
-
2393
- note[named-struct-fields]: prefer initializing structs with named fields
2394
- --> test/Math.t.sol:38:13
2395
- |
2396
- 38 | Log2Test(7, 96),
2397
- | ^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 7, input: 96 })`
2398
- |
2399
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2400
-
2401
- note[named-struct-fields]: prefer initializing structs with named fields
2402
- --> test/Math.t.sol:39:13
2403
- |
2404
- 39 | Log2Test(7, 128),
2405
- | ^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 7, input: 128 })`
2406
- |
2407
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2408
-
2409
- note[named-struct-fields]: prefer initializing structs with named fields
2410
- --> test/Math.t.sol:40:13
2411
- |
2412
- 40 | Log2Test(8, 129),
2413
- | ^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 8, input: 129 })`
2414
- |
2415
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2416
-
2417
- note[named-struct-fields]: prefer initializing structs with named fields
2418
- --> test/Math.t.sol:41:13
2419
- |
2420
- 41 | Log2Test(8, 192),
2421
- | ^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 8, input: 192 })`
2422
- |
2423
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2424
-
2425
- note[named-struct-fields]: prefer initializing structs with named fields
2426
- --> test/Math.t.sol:42:13
2427
- |
2428
- 42 | Log2Test(8, 256),
2429
- | ^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 8, input: 256 })`
2430
- |
2431
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2432
-
2433
- note[mixed-case-variable]: mutable variables should use mixedCase
2434
- --> test/GatewayV1.t.sol:1068:20
2435
- |
2436
- 1068 | bytes32 public expectChannelIDBytes =
2437
- | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `expectChannelIdBytes`
2438
- |
2439
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2440
-
2441
- note[mixed-case-variable]: mutable variables should use mixedCase
2442
- --> test/GatewayV1.t.sol:1072:16
2443
- |
2444
- 1072 | ParaID para_id = ParaID.wrap(1000);
2445
- | ^^^^^^^ help: consider using: `paraId`
2446
- |
2447
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2448
-
2449
- note[mixed-case-variable]: mutable variables should use mixedCase
2450
- --> test/GatewayV1.t.sol:1073:19
2451
- |
2452
- 1073 | ChannelID channel_id = para_id.into();
2453
- | ^^^^^^^^^^ help: consider using: `channelId`
2454
- |
2455
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2456
-
2457
- note[mixed-case-variable]: mutable variables should use mixedCase
2458
- --> src/BeefyClient.sol:73:16
2459
- |
2460
- 73 | uint64 validatorSetID;
2461
- | ^^^^^^^^^^^^^^ help: consider using: `validatorSetId`
2462
- |
2463
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2464
-
2465
- note[mixed-case-variable]: mutable variables should use mixedCase
2466
- --> src/BeefyClient.sol:85:16
2467
- |
2468
- 85 | bytes2 payloadID;
2469
- | ^^^^^^^^^ help: consider using: `payloadId`
2470
- |
2471
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2472
-
2473
- note[pascal-case-struct]: structs should use PascalCase
2474
- --> src/BeefyClient.sol:125:12
2475
- |
2476
- 125 | struct MMRLeaf {
2477
- | ^^^^^^^ help: consider using: `MmrLeaf`
2478
- |
2479
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#pascal-case-struct
2480
-
2481
- note[mixed-case-variable]: mutable variables should use mixedCase
2482
- --> src/BeefyClient.sol:133:16
2483
- |
2484
- 133 | uint64 nextAuthoritySetID;
2485
- | ^^^^^^^^^^^^^^^^^^ help: consider using: `nextAuthoritySetId`
2486
- |
2487
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2488
-
2489
- note[mixed-case-variable]: mutable variables should use mixedCase
2490
- --> src/BeefyClient.sol:171:20
2491
- |
2492
- 171 | bytes32 public latestMMRRoot;
2493
- | ^^^^^^^^^^^^^ help: consider using: `latestMmrRoot`
2494
- |
2495
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2496
-
2497
- note[mixed-case-variable]: mutable variables should use mixedCase
2498
- --> src/Agent.sol:19:25
2499
- |
2500
- 19 | constructor(bytes32 agentID) {
2501
- | ^^^^^^^ help: consider using: `agentId`
2502
- |
2503
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2504
-
2505
- note[unsafe-cheatcode]: usage of unsafe cheatcodes that can perform dangerous operations
2506
- --> test/Bitfield.t.sol:21:16
2507
- |
2508
- 21 | vm.readFile(string.concat(vm.projectRoot(), "/test/data/beefy-validator-set.json"));
2509
- | ^^^^^^^^
2510
- |
2511
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-cheatcode
2512
-
2513
- note[named-struct-fields]: prefer initializing structs with named fields
2514
- --> test/Math.t.sol:43:13
2515
- |
2516
- 43 | Log2Test(9, 257),
2517
- | ^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 9, input: 257 })`
2518
- |
2519
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2520
-
2521
- note[pascal-case-struct]: structs should use PascalCase
2522
- --> src/Verification.sol:24:12
2523
- |
2524
- 24 | struct MMRLeafPartial {
2525
- | ^^^^^^^^^^^^^^ help: consider using: `MmrLeafPartial`
2526
- |
2527
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#pascal-case-struct
2528
-
2529
- note[unused-import]: unused imports should be removed
2530
- --> test/ForkUpgrade202509.t.sol:4:9
2531
- |
2532
- 4 | import {Vm} from "forge-std/Vm.sol";
2533
- | ^^
2534
- |
2535
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2536
-
2537
- note[unused-import]: unused imports should be removed
2538
- --> test/ForkUpgrade202509.t.sol:6:9
2539
- |
2540
- 6 | import {stdJson} from "forge-std/StdJson.sol";
2541
- | ^^^^^^^
2542
- |
2543
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2544
-
2545
- note[unused-import]: unused imports should be removed
2546
- --> test/ForkUpgrade202509.t.sol:7:9
2547
- |
2548
- 7 | import {console} from "forge-std/console.sol";
2549
- | ^^^^^^^
2550
- |
2551
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2552
-
2553
- note[unused-import]: unused imports should be removed
2554
- --> test/ForkUpgrade202509.t.sol:8:18
2555
- |
2556
- 8 | import {UD60x18, ud60x18, unwrap} from "prb/math/src/UD60x18.sol";
2557
- | ^^^^^^^
2558
- |
2559
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2560
-
2561
- note[unused-import]: unused imports should be removed
2562
- --> test/ForkUpgrade202509.t.sol:16:24
2563
- |
2564
- 16 | import {UpgradeParams, SetOperatingModeParams, OperatingMode, RegisterForeignTokenParams} from "../src/v1/Types.sol";
2565
- | ^^^^^^^^^^^^^^^^^^^^^^
2566
- |
2567
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2568
-
2569
- note[named-struct-fields]: prefer initializing structs with named fields
2570
- --> test/Math.t.sol:44:13
2571
- |
2572
- 44 | Log2Test(9, 384),
2573
- | ^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 9, input: 384 })`
2574
- |
2575
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2576
-
2577
- note[named-struct-fields]: prefer initializing structs with named fields
2578
- --> test/Math.t.sol:45:13
2579
- |
2580
- 45 | Log2Test(9, 512),
2581
- | ^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 9, input: 512 })`
2582
- |
2583
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2584
-
2585
- note[named-struct-fields]: prefer initializing structs with named fields
2586
- --> test/Math.t.sol:46:13
2587
- |
2588
- 46 | Log2Test(10, 513),
2589
- | ^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 10, input: 513 })`
2590
- |
2591
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2592
-
2593
- note[named-struct-fields]: prefer initializing structs with named fields
2594
- --> test/Math.t.sol:47:13
2595
- |
2596
- 47 | Log2Test(10, 768),
2597
- | ^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 10, input: 768 })`
2598
- |
2599
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2600
-
2601
- note[named-struct-fields]: prefer initializing structs with named fields
2602
- --> test/Math.t.sol:48:13
2603
- |
2604
- 48 | Log2Test(10, 1024),
2605
- | ^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 10, input: 1024 })`
2606
- |
2607
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2608
-
2609
- note[named-struct-fields]: prefer initializing structs with named fields
2610
- --> test/Math.t.sol:49:13
2611
- |
2612
- 49 | Log2Test(11, 1025),
2613
- | ^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 11, input: 1025 })`
2614
- |
2615
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2616
-
2617
- note[named-struct-fields]: prefer initializing structs with named fields
2618
- --> test/Math.t.sol:50:13
2619
- |
2620
- 50 | Log2Test(11, 1536),
2621
- | ^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 11, input: 1536 })`
2622
- |
2623
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2624
-
2625
- note[named-struct-fields]: prefer initializing structs with named fields
2626
- --> test/Math.t.sol:51:13
2627
- |
2628
- 51 | Log2Test(11, 2048),
2629
- | ^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 11, input: 2048 })`
2630
- |
2631
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2632
-
2633
- note[named-struct-fields]: prefer initializing structs with named fields
2634
- --> test/Math.t.sol:52:13
2635
- |
2636
- 52 | Log2Test(12, 2049),
2637
- | ^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 12, input: 2049 })`
2638
- |
2639
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2640
-
2641
- note[screaming-snake-case-immutable]: immutables should use SCREAMING_SNAKE_CASE
2642
- --> src/BeefyClient.sol:203:30
2643
- |
2644
- 203 | uint256 public immutable randaoCommitDelay;
2645
- | ^^^^^^^^^^^^^^^^^ help: consider using: `RANDAO_COMMIT_DELAY`
2646
- |
2647
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-immutable
2648
-
2649
- note[screaming-snake-case-immutable]: immutables should use SCREAMING_SNAKE_CASE
2650
- --> src/BeefyClient.sol:211:30
2651
- |
2652
- 211 | uint256 public immutable randaoCommitExpiration;
2653
- | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `RANDAO_COMMIT_EXPIRATION`
2654
- |
2655
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-immutable
2656
-
2657
- note[screaming-snake-case-immutable]: immutables should use SCREAMING_SNAKE_CASE
2658
- --> src/BeefyClient.sol:217:30
2659
- |
2660
- 217 | uint256 public immutable minNumRequiredSignatures;
2661
- | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `MIN_NUM_REQUIRED_SIGNATURES`
2662
- |
2663
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-immutable
2664
-
2665
- note[screaming-snake-case-immutable]: immutables should use SCREAMING_SNAKE_CASE
2666
- --> src/BeefyClient.sol:224:30
2667
- |
2668
- 224 | uint256 public immutable fiatShamirRequiredSignatures;
2669
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `FIAT_SHAMIR_REQUIRED_SIGNATURES`
2670
- |
2671
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-immutable
2672
-
2673
- note[named-struct-fields]: prefer initializing structs with named fields
2674
- --> test/Math.t.sol:53:13
2675
- |
2676
- 53 | Log2Test(12, 3072),
2677
- | ^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 12, input: 3072 })`
2678
- |
2679
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2680
-
2681
- note[named-struct-fields]: prefer initializing structs with named fields
2682
- --> test/Math.t.sol:54:13
2683
- |
2684
- 54 | Log2Test(12, 4096),
2685
- | ^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 12, input: 4096 })`
2686
- |
2687
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2688
-
2689
- note[named-struct-fields]: prefer initializing structs with named fields
2690
- --> test/Math.t.sol:55:13
2691
- |
2692
- 55 | Log2Test(13, 4097),
2693
- | ^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 13, input: 4097 })`
2694
- |
2695
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2696
-
2697
- note[named-struct-fields]: prefer initializing structs with named fields
2698
- --> test/Math.t.sol:56:13
2699
- |
2700
- 56 | Log2Test(13, 6144),
2701
- | ^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 13, input: 6144 })`
2702
- |
2703
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2704
-
2705
- note[named-struct-fields]: prefer initializing structs with named fields
2706
- --> test/Math.t.sol:57:13
2707
- |
2708
- 57 | Log2Test(13, 8192),
2709
- | ^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 13, input: 8192 })`
2710
- |
2711
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2712
-
2713
- note[named-struct-fields]: prefer initializing structs with named fields
2714
- --> test/Math.t.sol:58:13
2715
- |
2716
- 58 | Log2Test(14, 8193),
2717
- | ^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 14, input: 8193 })`
2718
- |
2719
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2720
-
2721
- note[named-struct-fields]: prefer initializing structs with named fields
2722
- --> test/Math.t.sol:59:13
2723
- |
2724
- 59 | Log2Test(14, 12_288),
2725
- | ^^^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 14, input: 12_288 })`
2726
- |
2727
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2728
-
2729
- note[named-struct-fields]: prefer initializing structs with named fields
2730
- --> test/Math.t.sol:60:13
2731
- |
2732
- 60 | Log2Test(14, 16_384),
2733
- | ^^^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 14, input: 16_384 })`
2734
- |
2735
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2736
-
2737
- note[named-struct-fields]: prefer initializing structs with named fields
2738
- --> test/Math.t.sol:61:13
2739
- |
2740
- 61 | Log2Test(15, 16_385),
2741
- | ^^^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 15, input: 16_385 })`
2742
- |
2743
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2744
-
2745
- note[named-struct-fields]: prefer initializing structs with named fields
2746
- --> test/Math.t.sol:62:13
2747
- |
2748
- 62 | Log2Test(15, 24_576),
2749
- | ^^^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 15, input: 24_576 })`
2750
- |
2751
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2752
-
2753
- note[named-struct-fields]: prefer initializing structs with named fields
2754
- --> test/Math.t.sol:63:13
2755
- |
2756
- 63 | Log2Test(15, 32_768),
2757
- | ^^^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 15, input: 32_768 })`
2758
- |
2759
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2760
-
2761
- note[named-struct-fields]: prefer initializing structs with named fields
2762
- --> test/Math.t.sol:64:13
2763
- |
2764
- 64 | Log2Test(16, 32_769),
2765
- | ^^^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 16, input: 32_769 })`
2766
- |
2767
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2768
-
2769
- note[named-struct-fields]: prefer initializing structs with named fields
2770
- --> test/Math.t.sol:65:13
2771
- |
2772
- 65 | Log2Test(16, 49_152),
2773
- | ^^^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 16, input: 49_152 })`
2774
- |
2775
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2776
-
2777
- note[named-struct-fields]: prefer initializing structs with named fields
2778
- --> test/Math.t.sol:66:13
2779
- |
2780
- 66 | Log2Test(16, 65_535)
2781
- | ^^^^^^^^^^^^^^^^^^^^ help: consider using named fields: `Log2Test({ result: 16, input: 65_535 })`
2782
- |
2783
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2784
-
2785
- note[mixed-case-variable]: mutable variables should use mixedCase
2786
- --> src/BeefyClient.sol:349:17
2787
- |
2788
- 349 | bytes32 ticketID = createTicketID(msg.sender, commitmentHash);
2789
- | ^^^^^^^^ help: consider using: `ticketId`
2790
- |
2791
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2792
-
2793
- note[mixed-case-variable]: mutable variables should use mixedCase
2794
- --> test/GatewayV1.t.sol:1367:16
2795
- |
2796
- 1367 | ParaID paraID = ParaID.wrap(1000);
2797
- | ^^^^^^ help: consider using: `paraId`
2798
- |
2799
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2800
-
2801
- note[unused-import]: unused imports should be removed
2802
- --> src/Types.sol:17:9
2803
- |
2804
- 17 | import {IGatewayV1} from "./v1/IGateway.sol";
2805
- | ^^^^^^^^^^
2806
- |
2807
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2808
-
2809
- note[unused-import]: unused imports should be removed
2810
- --> test/GatewayV2.t.sol:27:9
2811
- |
2812
- 27 | import {PricingStorage} from "../src/storage/PricingStorage.sol";
2813
- | ^^^^^^^^^^^^^^
2814
- |
2815
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2816
-
2817
- note[unused-import]: unused imports should be removed
2818
- --> test/GatewayV2.t.sol:29:9
2819
- |
2820
- 29 | import {TokenLib} from "../src/TokenLib.sol";
2821
- | ^^^^^^^^
2822
- |
2823
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2824
-
2825
- note[unused-import]: unused imports should be removed
2826
- --> test/GatewayV2.t.sol:46:5
2827
- |
2828
- 46 | Xcm,
2829
- | ^^^
2830
- |
2831
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2832
-
2833
- note[unused-import]: unused imports should be removed
2834
- --> test/GatewayV2.t.sol:51:5
2835
- |
2836
- 51 | AgentExecuteCommand,
2837
- | ^^^^^^^^^^^^^^^^^^^
2838
- |
2839
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2840
-
2841
- note[unused-import]: unused imports should be removed
2842
- --> test/GatewayV2.t.sol:52:5
2843
- |
2844
- 52 | InboundMessage,
2845
- | ^^^^^^^^^^^^^^
2846
- |
2847
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2848
-
2849
- note[unused-import]: unused imports should be removed
2850
- --> test/GatewayV2.t.sol:54:5
2851
- |
2852
- 54 | ParaID,
2853
- | ^^^^^^
2854
- |
2855
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2856
-
2857
- note[unused-import]: unused imports should be removed
2858
- --> test/GatewayV2.t.sol:55:5
2859
- |
2860
- 55 | Command
2861
- | ^^^^^^^
2862
- |
2863
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2864
-
2865
- note[unused-import]: unused imports should be removed
2866
- --> test/GatewayV2.t.sol:59:9
2867
- |
2868
- 59 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
2869
- | ^^^^^^^
2870
- |
2871
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2872
-
2873
- note[unused-import]: unused imports should be removed
2874
- --> test/GatewayV2.t.sol:59:27
2875
- |
2876
- 59 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
2877
- | ^^^^^^^
2878
- |
2879
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2880
-
2881
- note[unused-import]: unused imports should be removed
2882
- --> test/ForkUpgrade202509.t.sol:16:48
2883
- |
2884
- 16 | import {UpgradeParams, SetOperatingModeParams, OperatingMode, RegisterForeignTokenParams} from "../src/v1/Types.sol";
2885
- | ^^^^^^^^^^^^^
2886
- |
2887
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2888
-
2889
- note[unused-import]: unused imports should be removed
2890
- --> test/ForkUpgrade202509.t.sol:16:63
2891
- |
2892
- 16 | import {UpgradeParams, SetOperatingModeParams, OperatingMode, RegisterForeignTokenParams} from "../src/v1/Types.sol";
2893
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
2894
- |
2895
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2896
-
2897
- note[mixed-case-variable]: mutable variables should use mixedCase
2898
- --> src/BeefyClient.sol:394:17
2899
- |
2900
- 394 | bytes32 ticketID = createTicketID(msg.sender, commitmentHash);
2901
- | ^^^^^^^^ help: consider using: `ticketId`
2902
- |
2903
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2904
-
2905
- note[mixed-case-variable]: mutable variables should use mixedCase
2906
- --> src/BeefyClient.sol:397:14
2907
- |
2908
- 397 | bool is_next_session = false;
2909
- | ^^^^^^^^^^^^^^^ help: consider using: `isNextSession`
2910
- |
2911
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2912
-
2913
- note[mixed-case-variable]: mutable variables should use mixedCase
2914
- --> src/BeefyClient.sol:412:17
2915
- |
2916
- 412 | bytes32 newMMRRoot = ensureProvidesMMRRoot(commitment);
2917
- | ^^^^^^^^^^ help: consider using: `newMmrRoot`
2918
- |
2919
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2920
-
2921
- note[unused-import]: unused imports should be removed
2922
- --> src/Types.sol:20:5
2923
- |
2924
- 20 | InboundMessage as InboundMessageV2, Command as CommandV2, CommandKind
2925
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2926
- |
2927
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2928
-
2929
- note[unused-import]: unused imports should be removed
2930
- --> src/Types.sol:20:41
2931
- |
2932
- 20 | InboundMessage as InboundMessageV2, Command as CommandV2, CommandKind
2933
- | ^^^^^^^^^^^^^^^^^^^^
2934
- |
2935
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2936
-
2937
- note[unused-import]: unused imports should be removed
2938
- --> src/Types.sol:20:63
2939
- |
2940
- 20 | InboundMessage as InboundMessageV2, Command as CommandV2, CommandKind
2941
- | ^^^^^^^^^^^
2942
- |
2943
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2944
-
2945
- note[unused-import]: unused imports should be removed
2946
- --> src/Types.sol:22:9
2947
- |
2948
- 22 | import {CallsV2} from "./v2/Calls.sol";
2949
- | ^^^^^^^
2950
- |
2951
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2952
-
2953
- note[unused-import]: unused imports should be removed
2954
- --> src/Types.sol:23:9
2955
- |
2956
- 23 | import {HandlersV2} from "./v2/Handlers.sol";
2957
- | ^^^^^^^^^^
2958
- |
2959
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2960
-
2961
- note[unused-import]: unused imports should be removed
2962
- --> src/Types.sol:24:9
2963
- |
2964
- 24 | import {IGatewayV2} from "./v2/IGateway.sol";
2965
- | ^^^^^^^^^^
2966
- |
2967
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2968
-
2969
- note[named-struct-fields]: prefer initializing structs with named fields
2970
- --> test/GatewayV2.t.sol:258:13
2971
- |
2972
- 258 | RegisterForeignTokenParams(id, name, symbol, decimals);
2973
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using named fields: `RegisterForeignTokenParams({ foreignTokenID: id, name: name, symbol: symbol, decimals: decimals })`
2974
- |
2975
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
2976
-
2977
- note[mixed-case-variable]: mutable variables should use mixedCase
2978
- --> src/Verification.sol:28:16
2979
- |
2980
- 28 | uint64 nextAuthoritySetID;
2981
- | ^^^^^^^^^^^^^^^^^^ help: consider using: `nextAuthoritySetId`
2982
- |
2983
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
2984
-
2985
- note[unused-import]: unused imports should be removed
2986
- --> test/ForkUpgrade202509.t.sol:17:28
2987
- |
2988
- 17 | import {ChannelID, ParaID, OperatingMode, InboundMessage, Command, TokenInfo, MintForeignTokenParams} from "../src/v1/Types.sol";
2989
- | ^^^^^^^^^^^^^
2990
- |
2991
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
2992
-
2993
- note[unused-import]: unused imports should be removed
2994
- --> test/ForkUpgrade202509.t.sol:17:68
2995
- |
2996
- 17 | import {ChannelID, ParaID, OperatingMode, InboundMessage, Command, TokenInfo, MintForeignTokenParams} from "../src/v1/Types.sol";
2997
- | ^^^^^^^^^
2998
- |
2999
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3000
-
3001
- note[unused-import]: unused imports should be removed
3002
- --> test/GatewayV1.t.sol:5:9
3003
- |
3004
- 5 | import {Strings} from "openzeppelin/utils/Strings.sol";
3005
- | ^^^^^^^
3006
- |
3007
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3008
-
3009
- note[unused-import]: unused imports should be removed
3010
- --> test/GatewayV1.t.sol:6:9
3011
- |
3012
- 6 | import {console} from "forge-std/console.sol";
3013
- | ^^^^^^^
3014
- |
3015
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3016
-
3017
- note[unused-import]: unused imports should be removed
3018
- --> test/GatewayV1.t.sol:8:9
3019
- |
3020
- 8 | import {BeefyClient} from "../src/BeefyClient.sol";
3021
- | ^^^^^^^^^^^
3022
- |
3023
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3024
-
3025
- note[unused-import]: unused imports should be removed
3026
- --> test/GatewayV1.t.sol:11:9
3027
- |
3028
- 11 | import {IInitializable} from "../src/interfaces/IInitializable.sol";
3029
- | ^^^^^^^^^^^^^^
3030
- |
3031
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3032
-
3033
- note[unused-import]: unused imports should be removed
3034
- --> test/GatewayV1.t.sol:20:9
3035
- |
3036
- 20 | import {Agent} from "../src/Agent.sol";
3037
- | ^^^^^
3038
- |
3039
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3040
-
3041
- note[unused-import]: unused imports should be removed
3042
- --> test/GatewayV1.t.sol:22:9
3043
- |
3044
- 22 | import {SubstrateTypes} from "./../src/SubstrateTypes.sol";
3045
- | ^^^^^^^^^^^^^^
3046
- |
3047
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3048
-
3049
- note[unused-import]: unused imports should be removed
3050
- --> test/GatewayV1.t.sol:24:5
3051
- |
3052
- 24 | Channel,
3053
- | ^^^^^^^
3054
- |
3055
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3056
-
3057
- note[unused-import]: unused imports should be removed
3058
- --> test/GatewayV1.t.sol:33:9
3059
- |
3060
- 33 | import {PricingStorage} from "../src/storage/PricingStorage.sol";
3061
- | ^^^^^^^^^^^^^^
3062
- |
3063
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3064
-
3065
- note[unused-import]: unused imports should be removed
3066
- --> test/GatewayV1.t.sol:35:9
3067
- |
3068
- 35 | import {TokenLib} from "../src/TokenLib.sol";
3069
- | ^^^^^^^^
3070
- |
3071
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3072
-
3073
- note[named-struct-fields]: prefer initializing structs with named fields
3074
- --> test/GatewayV2.t.sol:272:48
3075
- |
3076
- 272 | MintForeignTokenParams memory params = MintForeignTokenParams(id, recipient, amount);
3077
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using named fields: `MintForeignTokenParams({ foreignTokenID: id, recipient: recipient, amount: amount })`
3078
- |
3079
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
3080
-
3081
- note[named-struct-fields]: prefer initializing structs with named fields
3082
- --> test/ForkUpgrade202509.t.sol:83:13
3083
- |
3084
- 83 | / InboundMessage(
3085
- 84 | | GOVERNANCE_CHANNEL,
3086
- 85 | | nonce + 1,
3087
- 86 | | Command.Upgrade,
3088
- ... |
3089
- 91 | | keccak256("message-id")
3090
- 92 | | ),
3091
- | |_____________^ help: consider using named fields: `InboundMessage({ channelID: GOVERNANCE_CHANNEL, nonce: nonce + 1, command: Command.Upgrade, params: abi.encode(params), maxDispatchGas: 100_000, maxFeePerGas: block.basefee, reward: 0, id: keccak256("message-id") })`
3092
- |
3093
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
3094
-
3095
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
3096
- --> test/ForkUpgrade202509.t.sol:165:67
3097
- |
3098
- 165 | emit IGatewayV1.OutboundMessageAccepted(paraID.into(), 1, bytes32('0x'), hex"");
3099
- | ^^^^^^^^^^^^^
3100
- |
3101
- = note: consider disabling this lint if you're certain the cast is safe
3102
-
3103
- // casting to 'bytes32' is safe because [explain why]
3104
- // forge-lint: disable-next-line(unsafe-typecast)
3105
-
3106
-
3107
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
3108
-
3109
- note[named-struct-fields]: prefer initializing structs with named fields
3110
- --> test/ForkUpgrade202509.t.sol:202:13
3111
- |
3112
- 202 | / InboundMessage(
3113
- 203 | | GOVERNANCE_CHANNEL,
3114
- 204 | | nonce + 1,
3115
- 205 | | Command.Upgrade,
3116
- ... |
3117
- 210 | | keccak256("message-id")
3118
- 211 | | ),
3119
- | |_____________^ help: consider using named fields: `InboundMessage({ channelID: GOVERNANCE_CHANNEL, nonce: nonce + 1, command: Command.Upgrade, params: abi.encode(params), maxDispatchGas: 100_000, maxFeePerGas: block.basefee, reward: 0, id: keccak256("message-id") })`
3120
- |
3121
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
3122
-
3123
- note[unsafe-cheatcode]: usage of unsafe cheatcodes that can perform dangerous operations
3124
- --> test/Bitfield.t.sol:131:16
3125
- |
3126
- 131 | vm.readFile(string.concat(vm.projectRoot(), "/test/data/beefy-validator-set.json"));
3127
- | ^^^^^^^^
3128
- |
3129
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-cheatcode
3130
-
3131
- note[unsafe-cheatcode]: usage of unsafe cheatcodes that can perform dangerous operations
3132
- --> test/Bitfield.t.sol:150:16
3133
- |
3134
- 150 | vm.readFile(string.concat(vm.projectRoot(), "/test/data/beefy-validator-set.json"));
3135
- | ^^^^^^^^
3136
- |
3137
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-cheatcode
3138
-
3139
- note[mixed-case-variable]: mutable variables should use mixedCase
3140
- --> src/Verification.sol:51:16
3141
- |
3142
- 51 | bytes4 consensusEngineID;
3143
- | ^^^^^^^^^^^^^^^^^ help: consider using: `consensusEngineId`
3144
- |
3145
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3146
-
3147
- note[mixed-case-variable]: mutable variables should use mixedCase
3148
- --> src/v1/Calls.sol:159:40
3149
- |
3150
- 159 | function channelNoncesOf(ChannelID channelID) external view returns (uint64, uint64) {
3151
- | ^^^^^^^^^ help: consider using: `channelId`
3152
- |
3153
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3154
-
3155
- note[named-struct-fields]: prefer initializing structs with named fields
3156
- --> test/GatewayV1.t.sol:255:17
3157
- |
3158
- 255 | / InboundMessage(
3159
- 256 | | assetHubParaID.into(),
3160
- 257 | | 1,
3161
- 258 | | command,
3162
- ... |
3163
- 263 | | messageID
3164
- 264 | | ),
3165
- | |_________________^ help: consider using named fields: `InboundMessage({ channelID: assetHubParaID.into(), nonce: 1, command: command, params: params, maxDispatchGas: maxDispatchGas, maxFeePerGas: maxRefund, reward: reward, id: messageID })`
3166
- |
3167
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
3168
-
3169
- note[named-struct-fields]: prefer initializing structs with named fields
3170
- --> test/GatewayV1.t.sol:297:17
3171
- |
3172
- 297 | / InboundMessage(
3173
- 298 | | assetHubParaID.into(),
3174
- 299 | | 1,
3175
- 300 | | command,
3176
- ... |
3177
- 305 | | messageID
3178
- 306 | | ),
3179
- | |_________________^ help: consider using named fields: `InboundMessage({ channelID: assetHubParaID.into(), nonce: 1, command: command, params: params, maxDispatchGas: maxDispatchGas, maxFeePerGas: maxRefund, reward: reward, id: messageID })`
3180
- |
3181
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
3182
-
3183
- note[named-struct-fields]: prefer initializing structs with named fields
3184
- --> test/GatewayV1.t.sol:334:17
3185
- |
3186
- 334 | / InboundMessage(
3187
- 335 | | assetHubParaID.into(),
3188
- 336 | | 1,
3189
- 337 | | command,
3190
- ... |
3191
- 342 | | messageID
3192
- 343 | | ),
3193
- | |_________________^ help: consider using named fields: `InboundMessage({ channelID: assetHubParaID.into(), nonce: 1, command: command, params: params, maxDispatchGas: maxDispatchGas, maxFeePerGas: maxRefund, reward: reward, id: messageID })`
3194
- |
3195
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
3196
-
3197
- note[named-struct-fields]: prefer initializing structs with named fields
3198
- --> test/GatewayV1.t.sol:369:17
3199
- |
3200
- 369 | / InboundMessage(
3201
- 370 | | assetHubParaID.into(),
3202
- 371 | | 1,
3203
- 372 | | command,
3204
- ... |
3205
- 377 | | messageID
3206
- 378 | | ),
3207
- | |_________________^ help: consider using named fields: `InboundMessage({ channelID: assetHubParaID.into(), nonce: 1, command: command, params: params, maxDispatchGas: maxDispatchGas, maxFeePerGas: maxRefund, reward: reward, id: messageID })`
3208
- |
3209
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
3210
-
3211
- note[named-struct-fields]: prefer initializing structs with named fields
3212
- --> test/GatewayV1.t.sol:397:17
3213
- |
3214
- 397 | / InboundMessage(
3215
- 398 | | assetHubParaID.into(),
3216
- 399 | | 1,
3217
- 400 | | command,
3218
- ... |
3219
- 405 | | messageID
3220
- 406 | | ),
3221
- | |_________________^ help: consider using named fields: `InboundMessage({ channelID: assetHubParaID.into(), nonce: 1, command: command, params: params, maxDispatchGas: maxDispatchGas, maxFeePerGas: maxRefund, reward: reward, id: messageID })`
3222
- |
3223
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
3224
-
3225
- note[named-struct-fields]: prefer initializing structs with named fields
3226
- --> test/GatewayV1.t.sol:416:17
3227
- |
3228
- 416 | / InboundMessage(
3229
- 417 | | assetHubParaID.into(),
3230
- 418 | | 1,
3231
- 419 | | command,
3232
- ... |
3233
- 424 | | messageID
3234
- 425 | | ),
3235
- | |_________________^ help: consider using named fields: `InboundMessage({ channelID: assetHubParaID.into(), nonce: 1, command: command, params: params, maxDispatchGas: maxDispatchGas, maxFeePerGas: maxRefund, reward: reward, id: messageID })`
3236
- |
3237
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
3238
-
3239
- note[mixed-case-variable]: mutable variables should use mixedCase
3240
- --> src/v1/Calls.sol:164:47
3241
- |
3242
- 164 | function channelOperatingModeOf(ChannelID channelID) external view returns (OperatingMode) {
3243
- | ^^^^^^^^^ help: consider using: `channelId`
3244
- |
3245
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3246
-
3247
- note[mixed-case-variable]: mutable variables should use mixedCase
3248
- --> src/v1/Calls.sol:170:37
3249
- |
3250
- 170 | function tokenAddressOf(bytes32 tokenID) external view returns (address) {
3251
- | ^^^^^^^ help: consider using: `tokenId`
3252
- |
3253
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3254
-
3255
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
3256
- --> test/ForkUpgrade202509.t.sol:324:67
3257
- |
3258
- 324 | emit IGatewayV1.OutboundMessageAccepted(paraID.into(), 1, bytes32("0x"), hex"");
3259
- | ^^^^^^^^^^^^^
3260
- |
3261
- = note: consider disabling this lint if you're certain the cast is safe
3262
-
3263
- // casting to 'bytes32' is safe because [explain why]
3264
- // forge-lint: disable-next-line(unsafe-typecast)
3265
-
3266
-
3267
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
3268
-
3269
- note[named-struct-fields]: prefer initializing structs with named fields
3270
- --> test/GatewayV1.t.sol:442:17
3271
- |
3272
- 442 | / InboundMessage(
3273
- 443 | | ParaID.wrap(42).into(),
3274
- 444 | | 1,
3275
- 445 | | command,
3276
- ... |
3277
- 450 | | messageID
3278
- 451 | | ),
3279
- | |_________________^ help: consider using named fields: `InboundMessage({ channelID: ParaID.wrap(42).into(), nonce: 1, command: command, params: params, maxDispatchGas: maxDispatchGas, maxFeePerGas: maxRefund, reward: reward, id: messageID })`
3280
- |
3281
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
3282
-
3283
- note[named-struct-fields]: prefer initializing structs with named fields
3284
- --> test/GatewayV1.t.sol:470:17
3285
- |
3286
- 470 | / InboundMessage(
3287
- 471 | | assetHubParaID.into(),
3288
- 472 | | 1,
3289
- 473 | | command,
3290
- ... |
3291
- 478 | | messageID
3292
- 479 | | ),
3293
- | |_________________^ help: consider using named fields: `InboundMessage({ channelID: assetHubParaID.into(), nonce: 1, command: command, params: params, maxDispatchGas: maxDispatchGas, maxFeePerGas: maxRefund, reward: reward, id: messageID })`
3294
- |
3295
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
3296
-
3297
- note[unsafe-cheatcode]: usage of unsafe cheatcodes that can perform dangerous operations
3298
- --> scripts/DeployLocal.sol:36:47
3299
- |
3300
- 36 | string memory beefyCheckpointRaw = vm.readFile(beefyCheckpointFile);
3301
- | ^^^^^^^^
3302
- |
3303
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-cheatcode
3304
-
3305
- note[mixed-case-function]: function names should use mixedCase
3306
- --> src/BeefyClient.sol:444:14
3307
- |
3308
- 444 | function verifyMMRLeafProof(bytes32 leafHash, bytes32[] calldata proof, uint256 proofOrder)
3309
- | ^^^^^^^^^^^^^^^^^^ help: consider using: `verifyMmrLeafProof`
3310
- |
3311
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3312
-
3313
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
3314
- --> test/GatewayV2.t.sol:978:75
3315
- |
3316
- 978 | token: address(0), recipient: address(recipient), amount: uint128(amt)
3317
- | ^^^^^^^^^^^^
3318
- |
3319
- = note: consider disabling this lint if you're certain the cast is safe
3320
-
3321
- // casting to 'uint128' is safe because [explain why]
3322
- // forge-lint: disable-next-line(unsafe-typecast)
3323
-
3324
-
3325
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
3326
-
3327
- note[mixed-case-variable]: mutable variables should use mixedCase
3328
- --> src/Verification.sol:108:16
3329
- |
3330
- 108 | bytes4 encodedParaID,
3331
- | ^^^^^^^^^^^^^ help: consider using: `encodedParaId`
3332
- |
3333
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3334
-
3335
- note[unused-import]: unused imports should be removed
3336
- --> test/Bitfield.t.sol:5:9
3337
- |
3338
- 5 | import {console} from "forge-std/console.sol";
3339
- | ^^^^^^^
3340
- |
3341
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3342
-
3343
- note[unused-import]: unused imports should be removed
3344
- --> scripts/DeployLocal.sol:17:9
3345
- |
3346
- 17 | import {UD60x18, ud60x18} from "prb/math/src/UD60x18.sol";
3347
- | ^^^^^^^
3348
- |
3349
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3350
-
3351
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
3352
- --> test/GatewayV2.t.sol:1002:74
3353
- |
3354
- 1002 | token: address(token), recipient: address(this), amount: uint128(tAmt)
3355
- | ^^^^^^^^^^^^^
3356
- |
3357
- = note: consider disabling this lint if you're certain the cast is safe
3358
-
3359
- // casting to 'uint128' is safe because [explain why]
3360
- // forge-lint: disable-next-line(unsafe-typecast)
3361
-
3362
-
3363
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
3364
-
3365
- note[named-struct-fields]: prefer initializing structs with named fields
3366
- --> test/GatewayV1.t.sol:524:17
3367
- |
3368
- 524 | / InboundMessage(
3369
- 525 | | assetHubParaID.into(),
3370
- 526 | | 1,
3371
- 527 | | command,
3372
- ... |
3373
- 532 | | messageID
3374
- 533 | | ),
3375
- | |_________________^ help: consider using named fields: `InboundMessage({ channelID: assetHubParaID.into(), nonce: 1, command: command, params: params, maxDispatchGas: maxDispatchGas, maxFeePerGas: maxRefund, reward: reward, id: messageID })`
3376
- |
3377
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
3378
-
3379
- note[mixed-case-variable]: mutable variables should use mixedCase
3380
- --> src/v1/Calls.sol:211:19
3381
- |
3382
- 211 | ChannelID channelID = ticket.dest.into();
3383
- | ^^^^^^^^^ help: consider using: `channelId`
3384
- |
3385
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3386
-
3387
- note[mixed-case-variable]: mutable variables should use mixedCase
3388
- --> src/v1/Calls.sol:242:17
3389
- |
3390
- 242 | bytes32 messageID = keccak256(abi.encodePacked(channelID, channel.outboundNonce));
3391
- | ^^^^^^^^^ help: consider using: `messageId`
3392
- |
3393
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3394
-
3395
- note[mixed-case-variable]: mutable variables should use mixedCase
3396
- --> src/Verification.sol:205:53
3397
- |
3398
- 205 | function createParachainHeaderMerkleLeaf(bytes4 encodedParaID, ParachainHeader calldata header)
3399
- | ^^^^^^^^^^^^^ help: consider using: `encodedParaId`
3400
- |
3401
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3402
-
3403
- note[mixed-case-variable]: mutable variables should use mixedCase
3404
- --> src/Verification.sol:214:43
3405
- |
3406
- 214 | function createParachainHeader(bytes4 encodedParaID, ParachainHeader calldata header)
3407
- | ^^^^^^^^^^^^^ help: consider using: `encodedParaId`
3408
- |
3409
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3410
-
3411
- note[mixed-case-function]: function names should use mixedCase
3412
- --> src/Verification.sol:243:14
3413
- |
3414
- 243 | function createMMRLeaf(MMRLeafPartial memory leaf, bytes32 parachainHeadsRoot)
3415
- | ^^^^^^^^^^^^^ help: consider using: `createMmrLeaf`
3416
- |
3417
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3418
-
3419
- note[mixed-case-variable]: mutable variables should use mixedCase
3420
- --> src/v1/Calls.sol:355:17
3421
- |
3422
- 355 | bytes32 foreignID,
3423
- | ^^^^^^^^^ help: consider using: `foreignId`
3424
- |
3425
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3426
-
3427
- note[mixed-case-variable]: mutable variables should use mixedCase
3428
- --> src/BeefyClient.sol:544:14
3429
- |
3430
- 544 | bool is_next_session = false;
3431
- | ^^^^^^^^^^^^^^^ help: consider using: `isNextSession`
3432
- |
3433
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3434
-
3435
- note[mixed-case-variable]: mutable variables should use mixedCase
3436
- --> src/BeefyClient.sol:563:17
3437
- |
3438
- 563 | bytes32 newMMRRoot = ensureProvidesMMRRoot(commitment);
3439
- | ^^^^^^^^^^ help: consider using: `newMmrRoot`
3440
- |
3441
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3442
-
3443
- note[mixed-case-function]: function names should use mixedCase
3444
- --> src/BeefyClient.sol:594:14
3445
- |
3446
- 594 | function createTicketID(address account, bytes32 commitmentHash)
3447
- | ^^^^^^^^^^^^^^ help: consider using: `createTicketId`
3448
- |
3449
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3450
-
3451
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
3452
- --> scripts/DeployLocal.sol:92:9
3453
- |
3454
- 92 | weth.transfer(user, 10 ether);
3455
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3456
- |
3457
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
3458
-
3459
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
3460
- --> test/GatewayV2.t.sol:1066:20
3461
- |
3462
- 1066 | m.origin = bytes32("x");
3463
- | ^^^^^^^^^^^^
3464
- |
3465
- = note: consider disabling this lint if you're certain the cast is safe
3466
-
3467
- // casting to 'bytes32' is safe because [explain why]
3468
- // forge-lint: disable-next-line(unsafe-typecast)
3469
-
3470
-
3471
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
3472
-
3473
- note[unused-import]: unused imports should be removed
3474
- --> src/Verification.sol:8:9
3475
- |
3476
- 8 | import {SubstrateTypes} from "./SubstrateTypes.sol";
3477
- | ^^^^^^^^^^^^^^
3478
- |
3479
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3480
-
3481
- note[mixed-case-function]: function names should use mixedCase
3482
- --> src/v2/Calls.sol:139:14
3483
- |
3484
- 139 | function _handleAssetERC20(address token, uint128 amount) internal returns (Asset memory) {
3485
- | ^^^^^^^^^^^^^^^^^ help: consider using: `_handleAssetErc20`
3486
- |
3487
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3488
-
3489
- note[mixed-case-variable]: mutable variables should use mixedCase
3490
- --> src/BeefyClient.sol:651:17
3491
- |
3492
- 651 | bytes32 ticketID,
3493
- | ^^^^^^^^ help: consider using: `ticketId`
3494
- |
3495
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3496
-
3497
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
3498
- --> test/GatewayV2.t.sol:1147:23
3499
- |
3500
- 1147 | msgv.origin = bytes32("orig");
3501
- | ^^^^^^^^^^^^^^^
3502
- |
3503
- = note: consider disabling this lint if you're certain the cast is safe
3504
-
3505
- // casting to 'bytes32' is safe because [explain why]
3506
- // forge-lint: disable-next-line(unsafe-typecast)
3507
-
3508
-
3509
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
3510
-
3511
- note[unused-import]: unused imports should be removed
3512
- --> src/v1/Calls.sol:14:9
3513
- |
3514
- 14 | import {AgentExecutor} from "../AgentExecutor.sol";
3515
- | ^^^^^^^^^^^^^
3516
- |
3517
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3518
-
3519
- note[unused-import]: unused imports should be removed
3520
- --> src/v1/Calls.sol:15:9
3521
- |
3522
- 15 | import {Agent} from "../Agent.sol";
3523
- | ^^^^^
3524
- |
3525
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3526
-
3527
- note[unused-import]: unused imports should be removed
3528
- --> src/v1/Calls.sol:16:9
3529
- |
3530
- 16 | import {Call} from "../utils/Call.sol";
3531
- | ^^^^
3532
- |
3533
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3534
-
3535
- note[unused-import]: unused imports should be removed
3536
- --> src/v1/Calls.sol:25:5
3537
- |
3538
- 25 | AgentExecuteCommand,
3539
- | ^^^^^^^^^^^^^^^^^^^
3540
- |
3541
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3542
-
3543
- note[unused-import]: unused imports should be removed
3544
- --> src/v1/Calls.sol:31:18
3545
- |
3546
- 31 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
3547
- | ^^^^^^^
3548
- |
3549
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3550
-
3551
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
3552
- --> test/SparseBitmap.t.sol:4:8
3553
- |
3554
- 4 | import "forge-std/Test.sol";
3555
- | ^^^^^^^^^^^^^^^^^^^^
3556
- |
3557
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
3558
-
3559
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
3560
- --> test/SparseBitmap.t.sol:5:8
3561
- |
3562
- 5 | import "forge-std/console.sol";
3563
- | ^^^^^^^^^^^^^^^^^^^^^^^
3564
- |
3565
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
3566
-
3567
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
3568
- --> src/Verification.sol:193:24
3569
- |
3570
- 193 | bytes1(uint8(DIGEST_ITEM_OTHER)),
3571
- | ^^^^^^^^^^^^^^^^^^^^^^^^
3572
- |
3573
- = note: consider disabling this lint if you're certain the cast is safe
3574
-
3575
- // casting to 'uint8' is safe because [explain why]
3576
- // forge-lint: disable-next-line(unsafe-typecast)
3577
-
3578
-
3579
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
3580
-
3581
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
3582
- --> src/Verification.sol:198:40
3583
- |
3584
- 198 | return bytes.concat(bytes1(uint8(DIGEST_ITEM_RUNTIME_ENVIRONMENT_UPDATED)));
3585
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3586
- |
3587
- = note: consider disabling this lint if you're certain the cast is safe
3588
-
3589
- // casting to 'uint8' is safe because [explain why]
3590
- // forge-lint: disable-next-line(unsafe-typecast)
3591
-
3592
-
3593
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
3594
-
3595
- note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
3596
- --> src/Verification.sol:211:16
3597
- |
3598
- 211 | return keccak256(createParachainHeader(encodedParaID, header));
3599
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3600
- |
3601
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
3602
-
3603
- note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
3604
- --> src/Verification.sol:257:16
3605
- |
3606
- 257 | return keccak256(encodedLeaf);
3607
- | ^^^^^^^^^^^^^^^^^^^^^^
3608
- |
3609
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
3610
-
3611
- note[named-struct-fields]: prefer initializing structs with named fields
3612
- --> test/GatewayV1.t.sol:567:17
3613
- |
3614
- 567 | / InboundMessage(
3615
- 568 | | assetHubParaID.into(),
3616
- 569 | | 1,
3617
- 570 | | command,
3618
- ... |
3619
- 575 | | messageID
3620
- 576 | | ),
3621
- | |_________________^ help: consider using named fields: `InboundMessage({ channelID: assetHubParaID.into(), nonce: 1, command: command, params: params, maxDispatchGas: maxDispatchGas, maxFeePerGas: maxRefund, reward: reward, id: messageID })`
3622
- |
3623
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
3624
-
3625
- note[mixed-case-function]: function names should use mixedCase
3626
- --> test/SubstrateTypes.t.sol:10:14
3627
- |
3628
- 10 | function H160(address account) external pure returns (bytes memory) {
3629
- | ^^^^ help: consider using: `h160`
3630
- |
3631
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3632
-
3633
- note[mixed-case-function]: function names should use mixedCase
3634
- --> test/SubstrateTypes.t.sol:14:14
3635
- |
3636
- 14 | function VecU8(bytes calldata input) external pure returns (bytes memory) {
3637
- | ^^^^^ help: consider using: `vecU8`
3638
- |
3639
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3640
-
3641
- note[mixed-case-function]: function names should use mixedCase
3642
- --> test/SubstrateTypes.t.sol:18:14
3643
- |
3644
- 18 | function None() external pure returns (bytes memory) {
3645
- | ^^^^ help: consider using: `none`
3646
- |
3647
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3648
-
3649
- note[mixed-case-variable]: mutable variables should use mixedCase
3650
- --> test/BeefyClient.t.sol:42:12
3651
- |
3652
- 42 | bytes2 mmrRootID = bytes2("mh");
3653
- | ^^^^^^^^^ help: consider using: `mmrRootId`
3654
- |
3655
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3656
-
3657
- note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
3658
- --> src/v1/Calls.sol:242:29
3659
- |
3660
- 242 | bytes32 messageID = keccak256(abi.encodePacked(channelID, channel.outboundNonce));
3661
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3662
- |
3663
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
3664
-
3665
- note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
3666
- --> src/v2/Types.sol:28:20
3667
- |
3668
- 28 | uint8 constant Upgrade = 0;
3669
- | ^^^^^^^ help: consider using: `UPGRADE`
3670
- |
3671
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
3672
-
3673
- note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
3674
- --> src/v2/Types.sol:30:20
3675
- |
3676
- 30 | uint8 constant SetOperatingMode = 1;
3677
- | ^^^^^^^^^^^^^^^^ help: consider using: `SET_OPERATING_MODE`
3678
- |
3679
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
3680
-
3681
- note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
3682
- --> src/v2/Types.sol:32:20
3683
- |
3684
- 32 | uint8 constant UnlockNativeToken = 2;
3685
- | ^^^^^^^^^^^^^^^^^ help: consider using: `UNLOCK_NATIVE_TOKEN`
3686
- |
3687
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
3688
-
3689
- note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
3690
- --> src/v2/Types.sol:34:20
3691
- |
3692
- 34 | uint8 constant RegisterForeignToken = 3;
3693
- | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `REGISTER_FOREIGN_TOKEN`
3694
- |
3695
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
3696
-
3697
- note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
3698
- --> src/v2/Types.sol:36:20
3699
- |
3700
- 36 | uint8 constant MintForeignToken = 4;
3701
- | ^^^^^^^^^^^^^^^^ help: consider using: `MINT_FOREIGN_TOKEN`
3702
- |
3703
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
3704
-
3705
- note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
3706
- --> src/v2/Types.sol:38:20
3707
- |
3708
- 38 | uint8 constant CallContract = 5;
3709
- | ^^^^^^^^^^^^ help: consider using: `CALL_CONTRACT`
3710
- |
3711
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
3712
-
3713
- note[unsafe-cheatcode]: usage of unsafe cheatcodes that can perform dangerous operations
3714
- --> test/BeefyClient.t.sol:59:47
3715
- |
3716
- 59 | string memory beefyCommitmentRaw = vm.readFile(beefyCommitmentFile);
3717
- | ^^^^^^^^
3718
- |
3719
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-cheatcode
3720
-
3721
- note[unsafe-cheatcode]: usage of unsafe cheatcodes that can perform dangerous operations
3722
- --> test/BeefyClient.t.sol:75:49
3723
- |
3724
- 75 | string memory beefyValidatorSetRaw = vm.readFile(beefyValidatorSetFile);
3725
- | ^^^^^^^^
3726
- |
3727
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-cheatcode
3728
-
3729
- note[unsafe-cheatcode]: usage of unsafe cheatcodes that can perform dangerous operations
3730
- --> test/BeefyClient.t.sol:98:42
3731
- |
3732
- 98 | string memory finalProofRaw = vm.readFile(finalProofFile);
3733
- | ^^^^^^^^
3734
- |
3735
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-cheatcode
3736
-
3737
- note[unsafe-cheatcode]: usage of unsafe cheatcodes that can perform dangerous operations
3738
- --> test/BeefyClient.t.sol:103:47
3739
- |
3740
- 103 | string memory fiatShamirProofRaw = vm.readFile(fiatShamirProofFile);
3741
- | ^^^^^^^^
3742
- |
3743
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-cheatcode
3744
-
3745
- note[mixed-case-function]: function names should use mixedCase
3746
- --> test/SubstrateTypes.t.sol:22:14
3747
- |
3748
- 22 | function RegisterToken(address token, uint128 fee) external view returns (bytes memory) {
3749
- | ^^^^^^^^^^^^^ help: consider using: `registerToken`
3750
- |
3751
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3752
-
3753
- note[mixed-case-function]: function names should use mixedCase
3754
- --> src/BeefyClient.sol:772:14
3755
- |
3756
- 772 | function ensureProvidesMMRRoot(Commitment calldata commitment)
3757
- | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `ensureProvidesMmrRoot`
3758
- |
3759
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3760
-
3761
- note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
3762
- --> src/v2/Types.sol:68:20
3763
- |
3764
- 68 | uint8 constant Raw = 0;
3765
- | ^^^ help: consider using: `RAW`
3766
- |
3767
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
3768
-
3769
- note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
3770
- --> src/v2/Types.sol:70:20
3771
- |
3772
- 70 | uint8 constant CreateAsset = 1;
3773
- | ^^^^^^^^^^^ help: consider using: `CREATE_ASSET`
3774
- |
3775
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
3776
-
3777
- note[unused-import]: unused imports should be removed
3778
- --> src/v2/Handlers.sol:13:9
3779
- |
3780
- 13 | import {IGatewayV2} from "./IGateway.sol";
3781
- | ^^^^^^^^^^
3782
- |
3783
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3784
-
3785
- note[mixed-case-function]: function names should use mixedCase
3786
- --> src/BeefyClient.sol:815:14
3787
- |
3788
- 815 | function encodeMMRLeaf(MMRLeaf calldata leaf) internal pure returns (bytes memory) {
3789
- | ^^^^^^^^^^^^^ help: consider using: `encodeMmrLeaf`
3790
- |
3791
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3792
-
3793
- note[mixed-case-variable]: mutable variables should use mixedCase
3794
- --> src/v2/IGateway.sol:23:30
3795
- |
3796
- 23 | function agentOf(bytes32 agentID) external view returns (address);
3797
- | ^^^^^^^ help: consider using: `agentId`
3798
- |
3799
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3800
-
3801
- note[mixed-case-variable]: mutable variables should use mixedCase
3802
- --> src/v2/IGateway.sol:30:32
3803
- |
3804
- 30 | event AgentCreated(bytes32 agentID, address agent);
3805
- | ^^^^^^^ help: consider using: `agentId`
3806
- |
3807
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3808
-
3809
- note[mixed-case-function]: function names should use mixedCase
3810
- --> src/v2/IGateway.sol:52:14
3811
- |
3812
- 52 | function v2_submit(
3813
- | ^^^^^^^^^ help: consider using: `v2Submit`
3814
- |
3815
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3816
-
3817
- note[unused-import]: unused imports should be removed
3818
- --> src/v2/Calls.sol:29:9
3819
- |
3820
- 29 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
3821
- | ^^^^^^^
3822
- |
3823
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3824
-
3825
- note[unused-import]: unused imports should be removed
3826
- --> src/v2/Calls.sol:29:18
3827
- |
3828
- 29 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
3829
- | ^^^^^^^
3830
- |
3831
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3832
-
3833
- note[unused-import]: unused imports should be removed
3834
- --> src/v2/Calls.sol:29:27
3835
- |
3836
- 29 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
3837
- | ^^^^^^^
3838
- |
3839
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3840
-
3841
- note[mixed-case-function]: function names should use mixedCase
3842
- --> src/v2/IGateway.sol:82:14
3843
- |
3844
- 82 | function v2_sendMessage(
3845
- | ^^^^^^^^^^^^^^ help: consider using: `v2SendMessage`
3846
- |
3847
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3848
-
3849
- note[mixed-case-function]: function names should use mixedCase
3850
- --> src/v2/IGateway.sol:97:14
3851
- |
3852
- 97 | function v2_registerToken(
3853
- | ^^^^^^^^^^^^^^^^ help: consider using: `v2RegisterToken`
3854
- |
3855
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3856
-
3857
- note[mixed-case-function]: function names should use mixedCase
3858
- --> src/v2/IGateway.sol:106:14
3859
- |
3860
- 106 | function v2_createAgent(bytes32 id) external;
3861
- | ^^^^^^^^^^^^^^ help: consider using: `v2CreateAgent`
3862
- |
3863
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3864
-
3865
- note[mixed-case-function]: function names should use mixedCase
3866
- --> src/v2/IGateway.sol:109:14
3867
- |
3868
- 109 | function v2_outboundNonce() external view returns (uint64);
3869
- | ^^^^^^^^^^^^^^^^ help: consider using: `v2OutboundNonce`
3870
- |
3871
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3872
-
3873
- note[mixed-case-function]: function names should use mixedCase
3874
- --> src/v2/IGateway.sol:112:14
3875
- |
3876
- 112 | function v2_isDispatched(uint64 nonce) external view returns (bool);
3877
- | ^^^^^^^^^^^^^^^ help: consider using: `v2IsDispatched`
3878
- |
3879
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3880
-
3881
- note[mixed-case-function]: function names should use mixedCase
3882
- --> test/BeefyClient.t.sol:163:14
3883
- |
3884
- 163 | function decodeMMRLeaf(string memory beefyCommitmentRaw) internal {
3885
- | ^^^^^^^^^^^^^ help: consider using: `decodeMmrLeaf`
3886
- |
3887
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3888
-
3889
- note[mixed-case-variable]: mutable variables should use mixedCase
3890
- --> test/BeefyClient.t.sol:167:16
3891
- |
3892
- 167 | uint64 nextAuthoritySetID =
3893
- | ^^^^^^^^^^^^^^^^^^ help: consider using: `nextAuthoritySetId`
3894
- |
3895
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3896
-
3897
- note[mixed-case-variable]: mutable variables should use mixedCase
3898
- --> scripts/l2-integration/across/deploy/DeploySnowbridgeL1Adaptor.s.sol:16:17
3899
- |
3900
- 16 | address SPOKE_POOL_ADDRESS;
3901
- | ^^^^^^^^^^^^^^^^^^ help: consider using: `spokePoolAddress`
3902
- |
3903
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3904
-
3905
- note[mixed-case-variable]: mutable variables should use mixedCase
3906
- --> scripts/l2-integration/across/deploy/DeploySnowbridgeL1Adaptor.s.sol:17:17
3907
- |
3908
- 17 | address BASE_MULTI_CALL_HANDLER_ADDRESS;
3909
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `baseMultiCallHandlerAddress`
3910
- |
3911
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3912
-
3913
- note[mixed-case-variable]: mutable variables should use mixedCase
3914
- --> scripts/l2-integration/across/deploy/DeploySnowbridgeL1Adaptor.s.sol:18:17
3915
- |
3916
- 18 | address WETH9_ADDRESS;
3917
- | ^^^^^^^^^^^^^ help: consider using: `weth9Address`
3918
- |
3919
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3920
-
3921
- note[unused-import]: unused imports should be removed
3922
- --> test/BeefyClient.t.sol:11:9
3923
- |
3924
- 11 | import {ScaleCodec} from "../src/utils/ScaleCodec.sol";
3925
- | ^^^^^^^^^^
3926
- |
3927
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3928
-
3929
- note[named-struct-fields]: prefer initializing structs with named fields
3930
- --> test/GatewayV1.t.sol:742:17
3931
- |
3932
- 742 | / InboundMessage(
3933
- 743 | | assetHubParaID.into(),
3934
- 744 | | 1,
3935
- 745 | | CommandV1.Upgrade,
3936
- ... |
3937
- 750 | | messageID
3938
- 751 | | ),
3939
- | |_________________^ help: consider using named fields: `InboundMessage({ channelID: assetHubParaID.into(), nonce: 1, command: CommandV1.Upgrade, params: abi.encode(params), maxDispatchGas: maxDispatchGas, maxFeePerGas: maxRefund, reward: reward, id: messageID })`
3940
- |
3941
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
3942
-
3943
- note[named-struct-fields]: prefer initializing structs with named fields
3944
- --> test/GatewayV1.t.sol:805:17
3945
- |
3946
- 805 | / InboundMessage(
3947
- 806 | | assetHubParaID.into(),
3948
- 807 | | 1,
3949
- 808 | | CommandV1.SetOperatingMode,
3950
- ... |
3951
- 813 | | messageID
3952
- 814 | | ),
3953
- | |_________________^ help: consider using named fields: `InboundMessage({ channelID: assetHubParaID.into(), nonce: 1, command: CommandV1.SetOperatingMode, params: abi.encode(params), maxDispatchGas: maxDispatchGas, maxFeePerGas: maxRefund, reward: reward, id: messageID })`
3954
- |
3955
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
3956
-
3957
- note[mixed-case-variable]: mutable variables should use mixedCase
3958
- --> src/BeefyClient.sol:849:17
3959
- |
3960
- 849 | bytes32 ticketID,
3961
- | ^^^^^^^^ help: consider using: `ticketId`
3962
- |
3963
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
3964
-
3965
- note[mixed-case-function]: function names should use mixedCase
3966
- --> test/SubstrateTypes.t.sol:26:14
3967
- |
3968
- 26 | function SendTokenToAssetHubAddress32(
3969
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `sendTokenToAssetHubAddress32`
3970
- |
3971
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
3972
-
3973
- note[unused-import]: unused imports should be removed
3974
- --> src/Initializer.sol:5:9
3975
- |
3976
- 5 | import {AgentExecutor} from "./AgentExecutor.sol";
3977
- | ^^^^^^^^^^^^^
3978
- |
3979
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
3980
-
3981
- note[named-struct-fields]: prefer initializing structs with named fields
3982
- --> test/GatewayV1.t.sol:1044:17
3983
- |
3984
- 1044 | / InboundMessage(
3985
- 1045 | | assetHubParaID.into(),
3986
- 1046 | | 1,
3987
- 1047 | | CommandV1.SetTokenTransferFees,
3988
- ... |
3989
- 1058 | | messageID
3990
- 1059 | | ),
3991
- | |_________________^
3992
- |
3993
- help: consider using named fields
3994
- |
3995
- 1044 ~ InboundMessage({ channelID: assetHubParaID.into(), nonce: 1, command: CommandV1.SetTokenTransferFees, params: abi.encode(
3996
- 1045 + SetTokenTransferFeesParams({
3997
- 1046 + assetHubCreateAssetFee: createTokenFee * 2,
3998
- 1047 + registerTokenFee: registerTokenFee,
3999
- 1048 + assetHubReserveTransferFee: sendTokenFee * 3
4000
- 1049 + })
4001
- 1050 ~ ), maxDispatchGas: maxDispatchGas, maxFeePerGas: maxRefund, reward: reward, id: messageID }),
4002
- |
4003
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
4004
-
4005
- note[named-struct-fields]: prefer initializing structs with named fields
4006
- --> test/GatewayV1.t.sol:1083:17
4007
- |
4008
- 1083 | / InboundMessage(
4009
- 1084 | | assetHubParaID.into(),
4010
- 1085 | | 1,
4011
- 1086 | | CommandV1.SetPricingParameters,
4012
- ... |
4013
- 1097 | | messageID
4014
- 1098 | | ),
4015
- | |_________________^
4016
- |
4017
- help: consider using named fields
4018
- |
4019
- 1083 ~ InboundMessage({ channelID: assetHubParaID.into(), nonce: 1, command: CommandV1.SetPricingParameters, params: abi.encode(
4020
- 1084 + SetPricingParametersParams({
4021
- 1085 + exchangeRate: exchangeRate.mul(convert(2)),
4022
- 1086 + multiplier: multiplier.mul(convert(2)),
4023
- 1087 + deliveryCost: outboundFee
4024
- 1088 + })
4025
- 1089 ~ ), maxDispatchGas: maxDispatchGas, maxFeePerGas: maxRefund, reward: reward, id: messageID }),
4026
- |
4027
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
4028
-
4029
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
4030
- --> test/GatewayV1.t.sol:1147:9
4031
- |
4032
- 1147 | token.transfer(address(assetHubAgent), 200);
4033
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4034
- |
4035
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
4036
-
4037
- note[named-struct-fields]: prefer initializing structs with named fields
4038
- --> test/GatewayV1.t.sol:1167:17
4039
- |
4040
- 1167 | / InboundMessage(
4041
- 1168 | | assetHubParaID.into(),
4042
- 1169 | | 1,
4043
- 1170 | | CommandV1.RegisterForeignToken,
4044
- ... |
4045
- 1175 | | messageID
4046
- 1176 | | ),
4047
- | |_________________^ help: consider using named fields: `InboundMessage({ channelID: assetHubParaID.into(), nonce: 1, command: CommandV1.RegisterForeignToken, params: abi.encode(params), maxDispatchGas: maxDispatchGas, maxFeePerGas: maxRefund, reward: reward, id: messageID })`
4048
- |
4049
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
4050
-
4051
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
4052
- --> test/BeefyClient.t.sol:42:24
4053
- |
4054
- 42 | bytes2 mmrRootID = bytes2("mh");
4055
- | ^^^^^^^^^^^^
4056
- |
4057
- = note: consider disabling this lint if you're certain the cast is safe
4058
-
4059
- // casting to 'bytes2' is safe because [explain why]
4060
- // forge-lint: disable-next-line(unsafe-typecast)
4061
-
4062
-
4063
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
4064
-
4065
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
4066
- --> src/BeefyClient.sol:196:42
4067
- |
4068
- 196 | bytes2 public constant MMR_ROOT_ID = bytes2("mh");
4069
- | ^^^^^^^^^^^^
4070
- |
4071
- = note: consider disabling this lint if you're certain the cast is safe
4072
-
4073
- // casting to 'bytes2' is safe because [explain why]
4074
- // forge-lint: disable-next-line(unsafe-typecast)
4075
-
4076
-
4077
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
4078
-
4079
- note[mixed-case-function]: function names should use mixedCase
4080
- --> test/SubstrateTypes.t.sol:35:14
4081
- |
4082
- 35 | function SendTokenToAddress32(
4083
- | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `sendTokenToAddress32`
4084
- |
4085
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4086
-
4087
- note[mixed-case-variable]: mutable variables should use mixedCase
4088
- --> scripts/l2-integration/across/deploy/DeploySnowbridgeL2Adaptor.s.sol:38:17
4089
- |
4090
- 38 | address L2_SPOKE_POOL_ADDRESS;
4091
- | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `l2SpokePoolAddress`
4092
- |
4093
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4094
-
4095
- note[mixed-case-variable]: mutable variables should use mixedCase
4096
- --> scripts/l2-integration/across/deploy/DeploySnowbridgeL2Adaptor.s.sol:39:17
4097
- |
4098
- 39 | address MULTI_CALL_HANDLER_ADDRESS;
4099
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `multiCallHandlerAddress`
4100
- |
4101
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4102
-
4103
- note[mixed-case-variable]: mutable variables should use mixedCase
4104
- --> scripts/l2-integration/across/deploy/DeploySnowbridgeL2Adaptor.s.sol:40:17
4105
- |
4106
- 40 | address GATEWAY_V2_ADDRESS;
4107
- | ^^^^^^^^^^^^^^^^^^ help: consider using: `gatewayV2Address`
4108
- |
4109
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4110
-
4111
- note[mixed-case-variable]: mutable variables should use mixedCase
4112
- --> scripts/l2-integration/across/deploy/DeploySnowbridgeL2Adaptor.s.sol:41:17
4113
- |
4114
- 41 | address WETH9_ADDRESS;
4115
- | ^^^^^^^^^^^^^ help: consider using: `weth9Address`
4116
- |
4117
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4118
-
4119
- note[mixed-case-variable]: mutable variables should use mixedCase
4120
- --> scripts/l2-integration/across/deploy/DeploySnowbridgeL2Adaptor.s.sol:42:17
4121
- |
4122
- 42 | address L2_WETH9_ADDRESS;
4123
- | ^^^^^^^^^^^^^^^^ help: consider using: `l2Weth9Address`
4124
- |
4125
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4126
-
4127
- note[mixed-case-variable]: mutable variables should use mixedCase
4128
- --> scripts/l2-integration/across/deploy/DeploySnowbridgeL2Adaptor.s.sol:43:17
4129
- |
4130
- 43 | address UNISWAP_ROUTER_ADDRESS;
4131
- | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `uniswapRouterAddress`
4132
- |
4133
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4134
-
4135
- note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
4136
- --> src/BeefyClient.sol:311:34
4137
- |
4138
- 311 | bytes32 commitmentHash = keccak256(encodeCommitment(commitment));
4139
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4140
- |
4141
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
4142
-
4143
- note[unused-import]: unused imports should be removed
4144
- --> src/Initializer.sol:7:24
4145
- |
4146
- 7 | import {OperatingMode, ParaID, TokenInfo, Channel, ChannelID} from "./Types.sol";
4147
- | ^^^^^^
4148
- |
4149
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
4150
-
4151
- note[unused-import]: unused imports should be removed
4152
- --> src/Initializer.sol:7:52
4153
- |
4154
- 7 | import {OperatingMode, ParaID, TokenInfo, Channel, ChannelID} from "./Types.sol";
4155
- | ^^^^^^^^^
4156
- |
4157
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
4158
-
4159
- note[unused-import]: unused imports should be removed
4160
- --> src/Initializer.sol:16:18
4161
- |
4162
- 16 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
4163
- | ^^^^^^^
4164
- |
4165
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
4166
-
4167
- note[unused-import]: unused imports should be removed
4168
- --> src/Initializer.sol:16:27
4169
- |
4170
- 16 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
4171
- | ^^^^^^^
4172
- |
4173
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
4174
-
4175
- note[unused-import]: unused imports should be removed
4176
- --> scripts/l2-integration/across/deploy/DeploySnowbridgeL2Adaptor.s.sol:7:5
4177
- |
4178
- 7 | SPOKE_POOL as SEPOLIA_SPOKE_POOL,
4179
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4180
- |
4181
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
4182
-
4183
- note[unused-import]: unused imports should be removed
4184
- --> scripts/l2-integration/across/deploy/DeploySnowbridgeL2Adaptor.s.sol:17:5
4185
- |
4186
- 17 | SPOKE_POOL as MAINNET_SPOKE_POOL,
4187
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4188
- |
4189
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
4190
-
4191
- note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
4192
- --> src/BeefyClient.sol:393:34
4193
- |
4194
- 393 | bytes32 commitmentHash = keccak256(encodeCommitment(commitment));
4195
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4196
- |
4197
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
4198
-
4199
- note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
4200
- --> src/BeefyClient.sol:473:16
4201
- |
4202
- 473 | return keccak256(encodeCommitment(commitment));
4203
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4204
- |
4205
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
4206
-
4207
- note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
4208
- --> src/BeefyClient.sol:518:34
4209
- |
4210
- 518 | bytes32 commitmentHash = keccak256(encodeCommitment(commitment));
4211
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4212
- |
4213
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
4214
-
4215
- warning[erc20-unchecked-transfer]: ERC20 'transfer' and 'transferFrom' calls should check the return value
4216
- --> test/GatewayV1.t.sol:1334:9
4217
- |
4218
- 1334 | token.transfer(address(assetHubAgent), 200);
4219
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4220
- |
4221
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#erc20-unchecked-transfer
4222
-
4223
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
4224
- --> test/BeefyClient.t.sol:550:47
4225
- |
4226
- 550 | _payload[0] = BeefyClient.PayloadItem(bytes2("ab"), hex"000102");
4227
- | ^^^^^^^^^^^^
4228
- |
4229
- = note: consider disabling this lint if you're certain the cast is safe
4230
-
4231
- // casting to 'bytes2' is safe because [explain why]
4232
- // forge-lint: disable-next-line(unsafe-typecast)
4233
-
4234
-
4235
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
4236
-
4237
- note[unaliased-plain-import]: use named imports '{A, B}' or alias 'import ".." as X'
4238
- --> test/BeefyClientAdvanced.t.sol:3:8
4239
- |
4240
- 3 | import "forge-std/Test.sol";
4241
- | ^^^^^^^^^^^^^^^^^^^^
4242
- |
4243
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unaliased-plain-import
4244
-
4245
- note[mixed-case-variable]: mutable variables should use mixedCase
4246
- --> test/BeefyClientAdvanced.t.sol:30:13
4247
- |
4248
- 30 | uint256 validator0PK;
4249
- | ^^^^^^^^^^^^ help: consider using: `validator0Pk`
4250
- |
4251
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4252
-
4253
- note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
4254
- --> test/BeefyClientAdvanced.t.sol:34:22
4255
- |
4256
- 34 | bytes32 constant MMRRoot =
4257
- | ^^^^^^^ help: consider using: `MMR_ROOT`
4258
- |
4259
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
4260
-
4261
- note[mixed-case-function]: function names should use mixedCase
4262
- --> test/SubstrateTypes.t.sol:48:14
4263
- |
4264
- 48 | function SendTokenToAddress20(
4265
- | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `sendTokenToAddress20`
4266
- |
4267
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4268
-
4269
- note[mixed-case-variable]: mutable variables should use mixedCase
4270
- --> src/Gateway.sol:249:47
4271
- |
4272
- 249 | function channelOperatingModeOf(ChannelID channelID) external view returns (OperatingMode) {
4273
- | ^^^^^^^^^ help: consider using: `channelId`
4274
- |
4275
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4276
-
4277
- note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
4278
- --> src/BeefyClient.sol:565:34
4279
- |
4280
- 565 | bytes32 commitmentHash = keccak256(encodeCommitment(commitment));
4281
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4282
- |
4283
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
4284
-
4285
- note[mixed-case-function]: function names should use mixedCase
4286
- --> test/SubstrateTypes.t.sol:61:14
4287
- |
4288
- 61 | function SendForeignTokenToAssetHubAddress32(
4289
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `sendForeignTokenToAssetHubAddress32`
4290
- |
4291
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4292
-
4293
- note[named-struct-fields]: prefer initializing structs with named fields
4294
- --> test/GatewayV1.t.sol:1413:13
4295
- |
4296
- 1413 | / InboundMessage(
4297
- 1414 | | assetHubParaID.into(),
4298
- 1415 | | 1,
4299
- 1416 | | CommandV1.UnlockNativeToken,
4300
- ... |
4301
- 1421 | | messageID
4302
- 1422 | | ),
4303
- | |_____________^ help: consider using named fields: `InboundMessage({ channelID: assetHubParaID.into(), nonce: 1, command: CommandV1.UnlockNativeToken, params: abi.encode(params), maxDispatchGas: maxDispatchGas, maxFeePerGas: maxRefund, reward: reward, id: messageID })`
4304
- |
4305
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#named-struct-fields
4306
-
4307
- note[mixed-case-variable]: mutable variables should use mixedCase
4308
- --> src/Gateway.sol:253:40
4309
- |
4310
- 253 | function channelNoncesOf(ChannelID channelID) external view returns (uint64, uint64) {
4311
- | ^^^^^^^^^ help: consider using: `channelId`
4312
- |
4313
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4314
-
4315
- note[mixed-case-variable]: mutable variables should use mixedCase
4316
- --> src/Gateway.sol:257:30
4317
- |
4318
- 257 | function agentOf(bytes32 agentID)
4319
- | ^^^^^^^ help: consider using: `agentId`
4320
- |
4321
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4322
-
4323
- note[mixed-case-function]: function names should use mixedCase
4324
- --> src/Gateway.sol:287:14
4325
- |
4326
- 287 | function queryForeignTokenID(address token) external view returns (bytes32) {
4327
- | ^^^^^^^^^^^^^^^^^^^ help: consider using: `queryForeignTokenId`
4328
- |
4329
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4330
-
4331
- note[mixed-case-variable]: mutable variables should use mixedCase
4332
- --> test/BeefyClientAdvanced.t.sol:90:17
4333
- |
4334
- 90 | bytes32 ticketID1 = beefyClient.createTicketID_public(honestRelayer1, commitmentHash);
4335
- | ^^^^^^^^^ help: consider using: `ticketId1`
4336
- |
4337
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4338
-
4339
- note[mixed-case-function]: function names should use mixedCase
4340
- --> src/v2/Types.sol:81:10
4341
- |
4342
- 81 | function makeRawXCM(bytes memory xcm) pure returns (Xcm memory) {
4343
- | ^^^^^^^^^^ help: consider using: `makeRawXcm`
4344
- |
4345
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4346
-
4347
- note[mixed-case-function]: function names should use mixedCase
4348
- --> src/v2/Types.sol:85:10
4349
- |
4350
- 85 | function makeCreateAssetXCM(address token, Network network) pure returns (Xcm memory) {
4351
- | ^^^^^^^^^^^^^^^^^^ help: consider using: `makeCreateAssetXcm`
4352
- |
4353
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4354
-
4355
- note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
4356
- --> src/v2/Types.sol:98:20
4357
- |
4358
- 98 | uint8 constant NativeTokenERC20 = 0;
4359
- | ^^^^^^^^^^^^^^^^ help: consider using: `NATIVE_TOKEN_ERC20`
4360
- |
4361
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
4362
-
4363
- note[screaming-snake-case-const]: constants should use SCREAMING_SNAKE_CASE
4364
- --> src/v2/Types.sol:99:20
4365
- |
4366
- 99 | uint8 constant ForeignTokenERC20 = 1;
4367
- | ^^^^^^^^^^^^^^^^^ help: consider using: `FOREIGN_TOKEN_ERC20`
4368
- |
4369
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-const
4370
-
4371
- note[pascal-case-struct]: structs should use PascalCase
4372
- --> src/v2/Types.sol:103:8
4373
- |
4374
- 103 | struct AsNativeTokenERC20 {
4375
- | ^^^^^^^^^^^^^^^^^^ help: consider using: `AsNativeTokenErc20`
4376
- |
4377
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#pascal-case-struct
4378
-
4379
- note[pascal-case-struct]: structs should use PascalCase
4380
- --> src/v2/Types.sol:109:8
4381
- |
4382
- 109 | struct AsForeignTokenERC20 {
4383
- | ^^^^^^^^^^^^^^^^^^^ help: consider using: `AsForeignTokenErc20`
4384
- |
4385
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#pascal-case-struct
4386
-
4387
- note[mixed-case-variable]: mutable variables should use mixedCase
4388
- --> src/v2/Types.sol:110:13
4389
- |
4390
- 110 | bytes32 foreignID;
4391
- | ^^^^^^^^^ help: consider using: `foreignId`
4392
- |
4393
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4394
-
4395
- note[mixed-case-variable]: mutable variables should use mixedCase
4396
- --> src/Gateway.sol:324:37
4397
- |
4398
- 324 | function tokenAddressOf(bytes32 tokenID) external view returns (address) {
4399
- | ^^^^^^^ help: consider using: `tokenId`
4400
- |
4401
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4402
-
4403
- note[mixed-case-function]: function names should use mixedCase
4404
- --> src/Gateway.sol:333:14
4405
- |
4406
- 333 | function v1_handleAgentExecute(bytes calldata data) external onlySelf {
4407
- | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `v1HandleAgentExecute`
4408
- |
4409
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4410
-
4411
- note[mixed-case-function]: function names should use mixedCase
4412
- --> src/Gateway.sol:338:14
4413
- |
4414
- 338 | function v1_handleUpgrade(bytes calldata data) external onlySelf {
4415
- | ^^^^^^^^^^^^^^^^ help: consider using: `v1HandleUpgrade`
4416
- |
4417
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4418
-
4419
- note[mixed-case-function]: function names should use mixedCase
4420
- --> src/Gateway.sol:343:14
4421
- |
4422
- 343 | function v1_handleSetOperatingMode(bytes calldata data) external onlySelf {
4423
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `v1HandleSetOperatingMode`
4424
- |
4425
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4426
-
4427
- note[mixed-case-function]: function names should use mixedCase
4428
- --> src/Gateway.sol:348:14
4429
- |
4430
- 348 | function v1_handleSetTokenTransferFees(bytes calldata data) external onlySelf {
4431
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `v1HandleSetTokenTransferFees`
4432
- |
4433
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4434
-
4435
- note[mixed-case-function]: function names should use mixedCase
4436
- --> src/Gateway.sol:353:14
4437
- |
4438
- 353 | function v1_handleSetPricingParameters(bytes calldata data) external onlySelf {
4439
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `v1HandleSetPricingParameters`
4440
- |
4441
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4442
-
4443
- note[mixed-case-function]: function names should use mixedCase
4444
- --> src/Gateway.sol:358:14
4445
- |
4446
- 358 | function v1_handleUnlockNativeToken(bytes calldata data) external onlySelf {
4447
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `v1HandleUnlockNativeToken`
4448
- |
4449
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4450
-
4451
- note[mixed-case-function]: function names should use mixedCase
4452
- --> src/Gateway.sol:363:14
4453
- |
4454
- 363 | function v1_handleRegisterForeignToken(bytes calldata data) external onlySelf {
4455
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `v1HandleRegisterForeignToken`
4456
- |
4457
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4458
-
4459
- note[mixed-case-function]: function names should use mixedCase
4460
- --> src/Gateway.sol:368:14
4461
- |
4462
- 368 | function v1_handleMintForeignToken(ChannelID channelID, bytes calldata data)
4463
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `v1HandleMintForeignToken`
4464
- |
4465
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4466
-
4467
- note[mixed-case-variable]: mutable variables should use mixedCase
4468
- --> src/Gateway.sol:368:50
4469
- |
4470
- 368 | function v1_handleMintForeignToken(ChannelID channelID, bytes calldata data)
4471
- | ^^^^^^^^^ help: consider using: `channelId`
4472
- |
4473
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4474
-
4475
- note[mixed-case-function]: function names should use mixedCase
4476
- --> src/Gateway.sol:394:14
4477
- |
4478
- 394 | function v1_transactionBaseGas() internal pure returns (uint256) {
4479
- | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `v1TransactionBaseGas`
4480
- |
4481
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4482
-
4483
- note[mixed-case-function]: function names should use mixedCase
4484
- --> src/Gateway.sol:410:14
4485
- |
4486
- 410 | function v2_submit(
4487
- | ^^^^^^^^^ help: consider using: `v2Submit`
4488
- |
4489
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4490
-
4491
- note[mixed-case-variable]: mutable variables should use mixedCase
4492
- --> test/BeefyClientAdvanced.t.sol:108:17
4493
- |
4494
- 108 | bytes32 ticketID2 = beefyClient.createTicketID_public(honestRelayer2, commitmentHash);
4495
- | ^^^^^^^^^ help: consider using: `ticketId2`
4496
- |
4497
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4498
-
4499
- note[mixed-case-variable]: mutable variables should use mixedCase
4500
- --> test/SubstrateTypes.t.sol:62:17
4501
- |
4502
- 62 | bytes32 tokenID,
4503
- | ^^^^^^^ help: consider using: `tokenId`
4504
- |
4505
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4506
-
4507
- note[mixed-case-function]: function names should use mixedCase
4508
- --> src/Gateway.sol:447:14
4509
- |
4510
- 447 | function v2_outboundNonce() external view returns (uint64) {
4511
- | ^^^^^^^^^^^^^^^^ help: consider using: `v2OutboundNonce`
4512
- |
4513
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4514
-
4515
- note[mixed-case-function]: function names should use mixedCase
4516
- --> src/Gateway.sol:451:14
4517
- |
4518
- 451 | function v2_isDispatched(uint64 nonce) external view returns (bool) {
4519
- | ^^^^^^^^^^^^^^^ help: consider using: `v2IsDispatched`
4520
- |
4521
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4522
-
4523
- note[mixed-case-function]: function names should use mixedCase
4524
- --> src/Gateway.sol:456:14
4525
- |
4526
- 456 | function v2_sendMessage(
4527
- | ^^^^^^^^^^^^^^ help: consider using: `v2SendMessage`
4528
- |
4529
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4530
-
4531
- note[mixed-case-function]: function names should use mixedCase
4532
- --> src/Gateway.sol:467:14
4533
- |
4534
- 467 | function v2_registerToken(
4535
- | ^^^^^^^^^^^^^^^^ help: consider using: `v2RegisterToken`
4536
- |
4537
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4538
-
4539
- note[mixed-case-function]: function names should use mixedCase
4540
- --> src/Gateway.sol:478:14
4541
- |
4542
- 478 | function v2_createAgent(bytes32 id) external {
4543
- | ^^^^^^^^^^^^^^ help: consider using: `v2CreateAgent`
4544
- |
4545
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4546
-
4547
- note[mixed-case-function]: function names should use mixedCase
4548
- --> src/Gateway.sol:486:14
4549
- |
4550
- 486 | function v2_dispatch(CommandV2[] calldata commands, bytes32 origin, uint64 nonce)
4551
- | ^^^^^^^^^^^ help: consider using: `v2Dispatch`
4552
- |
4553
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4554
-
4555
- note[mixed-case-function]: function names should use mixedCase
4556
- --> test/SubstrateTypes.t.sol:72:14
4557
- |
4558
- 72 | function SendForeignTokenToAddress32(
4559
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `sendForeignTokenToAddress32`
4560
- |
4561
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4562
-
4563
- note[mixed-case-variable]: mutable variables should use mixedCase
4564
- --> test/SubstrateTypes.t.sol:73:17
4565
- |
4566
- 73 | bytes32 tokenID,
4567
- | ^^^^^^^ help: consider using: `tokenId`
4568
- |
4569
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4570
-
4571
- note[mixed-case-variable]: mutable variables should use mixedCase
4572
- --> src/v2/Types.sol:121:35
4573
- |
4574
- 121 | function makeForeignAsset(bytes32 foreignID, uint128 amount) pure returns (Asset memory) {
4575
- | ^^^^^^^^^ help: consider using: `foreignId`
4576
- |
4577
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4578
-
4579
- note[mixed-case-function]: function names should use mixedCase
4580
- --> src/Gateway.sol:509:14
4581
- |
4582
- 509 | function v2_dispatchCommand(CommandV2 calldata command, bytes32 origin)
4583
- | ^^^^^^^^^^^^^^^^^^ help: consider using: `v2DispatchCommand`
4584
- |
4585
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4586
-
4587
- note[mixed-case-variable]: mutable variables should use mixedCase
4588
- --> test/BeefyClientAdvanced.t.sol:147:17
4589
- |
4590
- 147 | bytes32 PREVRANDAO = bytes32(
4591
- | ^^^^^^^^^^ help: consider using: `prevrandao`
4592
- |
4593
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4594
-
4595
- note[mixed-case-variable]: mutable variables should use mixedCase
4596
- --> src/v2/Types.sol:159:13
4597
- |
4598
- 159 | bytes32 foreignTokenID;
4599
- | ^^^^^^^^^^^^^^ help: consider using: `foreignTokenId`
4600
- |
4601
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4602
-
4603
- note[mixed-case-variable]: mutable variables should use mixedCase
4604
- --> src/v2/Types.sol:171:13
4605
- |
4606
- 171 | bytes32 foreignTokenID;
4607
- | ^^^^^^^^^^^^^^ help: consider using: `foreignTokenId`
4608
- |
4609
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4610
-
4611
- note[unused-import]: unused imports should be removed
4612
- --> src/Gateway.sol:8:9
4613
- |
4614
- 8 | import {AgentExecutor} from "./AgentExecutor.sol";
4615
- | ^^^^^^^^^^^^^
4616
- |
4617
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
4618
-
4619
- note[unused-import]: unused imports should be removed
4620
- --> src/Gateway.sol:29:9
4621
- |
4622
- 29 | import {Upgrade} from "./Upgrade.sol";
4623
- | ^^^^^^^
4624
- |
4625
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
4626
-
4627
- note[unused-import]: unused imports should be removed
4628
- --> src/Gateway.sol:41:9
4629
- |
4630
- 41 | import {PricingStorage} from "./storage/PricingStorage.sol";
4631
- | ^^^^^^^^^^^^^^
4632
- |
4633
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
4634
-
4635
- note[unused-import]: unused imports should be removed
4636
- --> src/Gateway.sol:44:18
4637
- |
4638
- 44 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
4639
- | ^^^^^^^
4640
- |
4641
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
4642
-
4643
- note[unused-import]: unused imports should be removed
4644
- --> src/Gateway.sol:44:27
4645
- |
4646
- 44 | import {UD60x18, ud60x18, convert} from "prb/math/src/UD60x18.sol";
4647
- | ^^^^^^^
4648
- |
4649
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
4650
-
4651
- note[mixed-case-variable]: mutable variables should use mixedCase
4652
- --> test/BeefyClientAdvanced.t.sol:346:58
4653
- |
4654
- 346 | function _buildCommitment(uint32 blockNumber, uint64 validatorSetID, bytes32 mmrRoot)
4655
- | ^^^^^^^^^^^^^^ help: consider using: `validatorSetId`
4656
- |
4657
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4658
-
4659
- note[unwrapped-modifier-logic]: wrap modifier logic to reduce code size
4660
- --> src/Gateway.sol:57:5
4661
- |
4662
- 57 | / modifier onlySelf() {
4663
- 58 | | if (msg.sender != address(this)) {
4664
- 59 | | revert IGatewayBase.Unauthorized();
4665
- ... |
4666
- 62 | | }
4667
- | |_____^
4668
- |
4669
- help: wrap modifier logic to reduce code size
4670
- |
4671
- 57 ~ modifier onlySelf() {
4672
- 58 + _onlySelf();
4673
- 59 + _;
4674
- 60 + }
4675
- 61 +
4676
- 62 + function _onlySelf() internal {
4677
- 63 + if (msg.sender != address(this)) {
4678
- 64 + revert IGatewayBase.Unauthorized();
4679
- 65 + }
4680
- 66 + }
4681
- |
4682
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unwrapped-modifier-logic
4683
-
4684
- note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
4685
- --> src/BeefyClient.sol:763:32
4686
- |
4687
- 763 | bytes32 bitFieldHash = keccak256(abi.encodePacked(bitfield));
4688
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4689
- |
4690
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
4691
-
4692
- note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
4693
- --> src/BeefyClient.sol:841:30
4694
- |
4695
- 841 | bytes32 hashedLeaf = keccak256(abi.encodePacked(account));
4696
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4697
- |
4698
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
4699
-
4700
- note[unused-import]: unused imports should be removed
4701
- --> test/BeefyClientAdvanced.t.sol:9:9
4702
- |
4703
- 9 | import {SubstrateMerkleProof} from "../src/utils/SubstrateMerkleProof.sol";
4704
- | ^^^^^^^^^^^^^^^^^^^^
4705
- |
4706
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unused-import
4707
-
4708
- note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
4709
- --> src/Gateway.sol:158:28
4710
- |
4711
- 158 | bytes32 leafHash = keccak256(abi.encode(message));
4712
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4713
- |
4714
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
4715
-
4716
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
4717
- --> test/BeefyClientAdvanced.t.sol:33:35
4718
- |
4719
- 33 | bytes2 constant MMR_ROOT_ID = bytes2("mh");
4720
- | ^^^^^^^^^^^^
4721
- |
4722
- = note: consider disabling this lint if you're certain the cast is safe
4723
-
4724
- // casting to 'bytes2' is safe because [explain why]
4725
- // forge-lint: disable-next-line(unsafe-typecast)
4726
-
4727
-
4728
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
4729
-
4730
- note[mixed-case-function]: function names should use mixedCase
4731
- --> test/SubstrateTypes.t.sol:85:14
4732
- |
4733
- 85 | function SendForeignTokenToAddress20(
4734
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `sendForeignTokenToAddress20`
4735
- |
4736
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-function
4737
-
4738
- note[mixed-case-variable]: mutable variables should use mixedCase
4739
- --> test/SubstrateTypes.t.sol:86:17
4740
- |
4741
- 86 | bytes32 tokenID,
4742
- | ^^^^^^^ help: consider using: `tokenId`
4743
- |
4744
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4745
-
4746
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
4747
- --> test/BeefyClientAdvanced.t.sol:58:60
4748
- |
4749
- 58 | BeefyClient.ValidatorSet({id: VSET_ID, length: uint128(VSET_LEN), root: vsetRoot});
4750
- | ^^^^^^^^^^^^^^^^^
4751
- |
4752
- = note: consider disabling this lint if you're certain the cast is safe
4753
-
4754
- // casting to 'uint128' is safe because [explain why]
4755
- // forge-lint: disable-next-line(unsafe-typecast)
4756
-
4757
-
4758
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
4759
-
4760
- note[mixed-case-variable]: mutable variables should use mixedCase
4761
- --> test/SubstrateTypes.t.sol:223:17
4762
- |
4763
- 223 | bytes32 tokenID = keccak256("tokenid");
4764
- | ^^^^^^^ help: consider using: `tokenId`
4765
- |
4766
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4767
-
4768
- note[mixed-case-variable]: mutable variables should use mixedCase
4769
- --> test/SubstrateTypes.t.sol:246:17
4770
- |
4771
- 246 | bytes32 tokenID = keccak256("t2");
4772
- | ^^^^^^^ help: consider using: `tokenId`
4773
- |
4774
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4775
-
4776
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
4777
- --> test/BeefyClientAdvanced.t.sol:60:64
4778
- |
4779
- 60 | BeefyClient.ValidatorSet({id: VSET_ID + 1, length: uint128(VSET_LEN), root: vsetRoot});
4780
- | ^^^^^^^^^^^^^^^^^
4781
- |
4782
- = note: consider disabling this lint if you're certain the cast is safe
4783
-
4784
- // casting to 'uint128' is safe because [explain why]
4785
- // forge-lint: disable-next-line(unsafe-typecast)
4786
-
4787
-
4788
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
4789
-
4790
- note[asm-keccak256]: use of inefficient hashing mechanism; consider using inline assembly
4791
- --> src/Gateway.sol:422:28
4792
- |
4793
- 422 | bytes32 leafHash = keccak256(abi.encode(message));
4794
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4795
- |
4796
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#asm-keccak256
4797
-
4798
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
4799
- --> test/BeefyClientAdvanced.t.sol:114:34
4800
- |
4801
- 114 | assertLe(nRequiredAfter, uint32(quorum), "N must be capped at quorum");
4802
- | ^^^^^^^^^^^^^^
4803
- |
4804
- = note: consider disabling this lint if you're certain the cast is safe
4805
-
4806
- // casting to 'uint32' is safe because [explain why]
4807
- // forge-lint: disable-next-line(unsafe-typecast)
4808
-
4809
-
4810
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
4811
-
4812
- note[mixed-case-variable]: mutable variables should use mixedCase
4813
- --> test/SubstrateTypes.t.sol:273:17
4814
- |
4815
- 273 | bytes32 tokenID = keccak256("t3");
4816
- | ^^^^^^^ help: consider using: `tokenId`
4817
- |
4818
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#mixed-case-variable
4819
-
4820
- warning[unsafe-typecast]: typecasts that can truncate values should be checked
4821
- --> test/BeefyClientAdvanced.t.sol:300:36
4822
- |
4823
- 300 | leaf.nextAuthoritySetLen = uint32(VSET_LEN);
4824
- | ^^^^^^^^^^^^^^^^
4825
- |
4826
- = note: consider disabling this lint if you're certain the cast is safe
4827
-
4828
- // casting to 'uint32' is safe because [explain why]
4829
- // forge-lint: disable-next-line(unsafe-typecast)
4830
-
4831
-
4832
- = help: https://book.getfoundry.sh/reference/forge/forge-lint#unsafe-typecast
4833
-
4834
6
 
4835
7
  > @snowbridge/contract-types@0.4.0 typechain /home/runner/work/snowbridge/snowbridge/web/packages/contract-types
4836
8
  > typechain --target ethers-v6 '../../../contracts/out/?(IERC20.sol|IERC20Metadata.sol|IGateway.sol|BeefyClient.sol|WETH9.sol|SnowbridgeL1Adaptor.sol|SnowbridgeL2Adaptor.sol|ISwapQuoter.sol|ISwapRouter.sol|ISwapLegacyRouter.sol)/!(*.abi).json' --out-dir src