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