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