@snowbridge/base-types 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../src/contracts.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kCAAkC,GAAG;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,UAAU,CAAC;IAChB,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,OAAO,EAAE,UAAU,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,iBAAiB,CACf,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,MAAM,EACxB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,MAAM,CAAC,CAAC;IACnB,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACjC,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAA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ABI = exports.SNOWBRIDGE_L1_ADAPTOR_ABI = exports.SWAP_LEGACY_ROUTER_ABI = exports.SWAP_ROUTER_ABI = exports.SWAP_QUOTER_ABI = exports.BEEFY_CLIENT_ABI = exports.IERC20_ABI = exports.IGATEWAY_V2_ABI = exports.IGATEWAY_V1_ABI = void 0;
4
+ exports.IGATEWAY_V1_ABI = [
5
+ {
6
+ type: "function",
7
+ name: "agentOf",
8
+ inputs: [{ name: "agentID", type: "bytes32", internalType: "bytes32" }],
9
+ outputs: [{ name: "", type: "address", internalType: "address" }],
10
+ stateMutability: "view",
11
+ },
12
+ {
13
+ type: "function",
14
+ name: "channelNoncesOf",
15
+ inputs: [{ name: "channelID", type: "bytes32", internalType: "ChannelID" }],
16
+ outputs: [
17
+ { name: "", type: "uint64", internalType: "uint64" },
18
+ { name: "", type: "uint64", internalType: "uint64" },
19
+ ],
20
+ stateMutability: "view",
21
+ },
22
+ {
23
+ type: "function",
24
+ name: "channelOperatingModeOf",
25
+ inputs: [{ name: "channelID", type: "bytes32", internalType: "ChannelID" }],
26
+ outputs: [{ name: "", type: "uint8", internalType: "enum OperatingMode" }],
27
+ stateMutability: "view",
28
+ },
29
+ {
30
+ type: "function",
31
+ name: "operatingMode",
32
+ inputs: [],
33
+ outputs: [{ name: "", type: "uint8", internalType: "enum OperatingMode" }],
34
+ stateMutability: "view",
35
+ },
36
+ {
37
+ type: "function",
38
+ name: "quoteSendTokenFee",
39
+ inputs: [
40
+ { name: "token", type: "address", internalType: "address" },
41
+ {
42
+ name: "destinationChain",
43
+ type: "uint32",
44
+ internalType: "ParaID",
45
+ },
46
+ { name: "destinationFee", type: "uint128", internalType: "uint128" },
47
+ ],
48
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
49
+ stateMutability: "view",
50
+ },
51
+ {
52
+ type: "function",
53
+ name: "sendToken",
54
+ inputs: [
55
+ { name: "token", type: "address", internalType: "address" },
56
+ {
57
+ name: "destinationChain",
58
+ type: "uint32",
59
+ internalType: "ParaID",
60
+ },
61
+ {
62
+ name: "destinationAddress",
63
+ type: "tuple",
64
+ internalType: "struct MultiAddress",
65
+ components: [
66
+ { name: "kind", type: "uint8", internalType: "enum Kind" },
67
+ { name: "data", type: "bytes", internalType: "bytes" },
68
+ ],
69
+ },
70
+ { name: "destinationFee", type: "uint128", internalType: "uint128" },
71
+ { name: "amount", type: "uint128", internalType: "uint128" },
72
+ ],
73
+ outputs: [],
74
+ stateMutability: "payable",
75
+ },
76
+ {
77
+ type: "event",
78
+ name: "OutboundMessageAccepted",
79
+ inputs: [
80
+ {
81
+ name: "channelID",
82
+ type: "bytes32",
83
+ indexed: true,
84
+ internalType: "ChannelID",
85
+ },
86
+ {
87
+ name: "nonce",
88
+ type: "uint64",
89
+ indexed: false,
90
+ internalType: "uint64",
91
+ },
92
+ {
93
+ name: "messageID",
94
+ type: "bytes32",
95
+ indexed: true,
96
+ internalType: "bytes32",
97
+ },
98
+ {
99
+ name: "payload",
100
+ type: "bytes",
101
+ indexed: false,
102
+ internalType: "bytes",
103
+ },
104
+ ],
105
+ anonymous: false,
106
+ },
107
+ ];
108
+ exports.IGATEWAY_V2_ABI = [
109
+ {
110
+ type: "function",
111
+ name: "agentOf",
112
+ inputs: [{ name: "agentID", type: "bytes32", internalType: "bytes32" }],
113
+ outputs: [{ name: "", type: "address", internalType: "address" }],
114
+ stateMutability: "view",
115
+ },
116
+ {
117
+ type: "function",
118
+ name: "isTokenRegistered",
119
+ inputs: [{ name: "token", type: "address", internalType: "address" }],
120
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
121
+ stateMutability: "view",
122
+ },
123
+ {
124
+ type: "function",
125
+ name: "operatingMode",
126
+ inputs: [],
127
+ outputs: [{ name: "", type: "uint8", internalType: "enum OperatingMode" }],
128
+ stateMutability: "view",
129
+ },
130
+ {
131
+ type: "function",
132
+ name: "v2_createAgent",
133
+ inputs: [{ name: "id", type: "bytes32", internalType: "bytes32" }],
134
+ outputs: [],
135
+ stateMutability: "nonpayable",
136
+ },
137
+ {
138
+ type: "function",
139
+ name: "v2_outboundNonce",
140
+ inputs: [],
141
+ outputs: [{ name: "", type: "uint64", internalType: "uint64" }],
142
+ stateMutability: "view",
143
+ },
144
+ {
145
+ type: "function",
146
+ name: "v2_registerToken",
147
+ inputs: [
148
+ { name: "token", type: "address", internalType: "address" },
149
+ { name: "network", type: "uint8", internalType: "uint8" },
150
+ { name: "executionFee", type: "uint128", internalType: "uint128" },
151
+ { name: "relayerFee", type: "uint128", internalType: "uint128" },
152
+ ],
153
+ outputs: [],
154
+ stateMutability: "payable",
155
+ },
156
+ {
157
+ type: "function",
158
+ name: "v2_sendMessage",
159
+ inputs: [
160
+ { name: "xcm", type: "bytes", internalType: "bytes" },
161
+ { name: "assets", type: "bytes[]", internalType: "bytes[]" },
162
+ { name: "claimer", type: "bytes", internalType: "bytes" },
163
+ { name: "executionFee", type: "uint128", internalType: "uint128" },
164
+ { name: "relayerFee", type: "uint128", internalType: "uint128" },
165
+ ],
166
+ outputs: [],
167
+ stateMutability: "payable",
168
+ },
169
+ {
170
+ type: "event",
171
+ name: "OutboundMessageAccepted",
172
+ inputs: [
173
+ {
174
+ name: "nonce",
175
+ type: "uint64",
176
+ indexed: false,
177
+ internalType: "uint64",
178
+ },
179
+ {
180
+ name: "payload",
181
+ type: "tuple",
182
+ indexed: false,
183
+ internalType: "struct Payload",
184
+ components: [
185
+ { name: "origin", type: "address", internalType: "address" },
186
+ {
187
+ name: "assets",
188
+ type: "tuple[]",
189
+ internalType: "struct Asset[]",
190
+ components: [
191
+ { name: "kind", type: "uint8", internalType: "uint8" },
192
+ { name: "data", type: "bytes", internalType: "bytes" },
193
+ ],
194
+ },
195
+ {
196
+ name: "xcm",
197
+ type: "tuple",
198
+ internalType: "struct Xcm",
199
+ components: [
200
+ { name: "kind", type: "uint8", internalType: "uint8" },
201
+ { name: "data", type: "bytes", internalType: "bytes" },
202
+ ],
203
+ },
204
+ { name: "claimer", type: "bytes", internalType: "bytes" },
205
+ { name: "value", type: "uint128", internalType: "uint128" },
206
+ {
207
+ name: "executionFee",
208
+ type: "uint128",
209
+ internalType: "uint128",
210
+ },
211
+ { name: "relayerFee", type: "uint128", internalType: "uint128" },
212
+ ],
213
+ },
214
+ ],
215
+ anonymous: false,
216
+ },
217
+ ];
218
+ exports.IERC20_ABI = [
219
+ {
220
+ type: "function",
221
+ name: "allowance",
222
+ inputs: [
223
+ { name: "owner", type: "address", internalType: "address" },
224
+ { name: "spender", type: "address", internalType: "address" },
225
+ ],
226
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
227
+ stateMutability: "view",
228
+ },
229
+ {
230
+ type: "function",
231
+ name: "approve",
232
+ inputs: [
233
+ { name: "spender", type: "address", internalType: "address" },
234
+ { name: "amount", type: "uint256", internalType: "uint256" },
235
+ ],
236
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
237
+ stateMutability: "nonpayable",
238
+ },
239
+ {
240
+ type: "function",
241
+ name: "balanceOf",
242
+ inputs: [{ name: "account", type: "address", internalType: "address" }],
243
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
244
+ stateMutability: "view",
245
+ },
246
+ ];
247
+ exports.BEEFY_CLIENT_ABI = [
248
+ {
249
+ type: "function",
250
+ name: "latestBeefyBlock",
251
+ inputs: [],
252
+ outputs: [{ name: "", type: "uint64", internalType: "uint64" }],
253
+ stateMutability: "view",
254
+ },
255
+ ];
256
+ exports.SWAP_QUOTER_ABI = [
257
+ {
258
+ type: "function",
259
+ name: "quoteExactOutputSingle",
260
+ inputs: [
261
+ {
262
+ name: "params",
263
+ type: "tuple",
264
+ internalType: "struct ISwapQuoter.QuoteExactOutputSingleParams",
265
+ components: [
266
+ { name: "tokenIn", type: "address", internalType: "address" },
267
+ { name: "tokenOut", type: "address", internalType: "address" },
268
+ { name: "amount", type: "uint256", internalType: "uint256" },
269
+ { name: "fee", type: "uint24", internalType: "uint24" },
270
+ {
271
+ name: "sqrtPriceLimitX96",
272
+ type: "uint160",
273
+ internalType: "uint160",
274
+ },
275
+ ],
276
+ },
277
+ ],
278
+ outputs: [
279
+ { name: "amountIn", type: "uint256", internalType: "uint256" },
280
+ {
281
+ name: "sqrtPriceX96After",
282
+ type: "uint160",
283
+ internalType: "uint160",
284
+ },
285
+ {
286
+ name: "initializedTicksCrossed",
287
+ type: "uint32",
288
+ internalType: "uint32",
289
+ },
290
+ { name: "gasEstimate", type: "uint256", internalType: "uint256" },
291
+ ],
292
+ stateMutability: "nonpayable",
293
+ },
294
+ ];
295
+ exports.SWAP_ROUTER_ABI = [
296
+ {
297
+ type: "function",
298
+ name: "exactOutputSingle",
299
+ inputs: [
300
+ {
301
+ name: "params",
302
+ type: "tuple",
303
+ internalType: "struct ISwapRouter.ExactOutputSingleParams",
304
+ components: [
305
+ { name: "tokenIn", type: "address", internalType: "address" },
306
+ { name: "tokenOut", type: "address", internalType: "address" },
307
+ { name: "fee", type: "uint24", internalType: "uint24" },
308
+ { name: "recipient", type: "address", internalType: "address" },
309
+ { name: "deadline", type: "uint256", internalType: "uint256" },
310
+ { name: "amountOut", type: "uint256", internalType: "uint256" },
311
+ {
312
+ name: "amountInMaximum",
313
+ type: "uint256",
314
+ internalType: "uint256",
315
+ },
316
+ {
317
+ name: "sqrtPriceLimitX96",
318
+ type: "uint160",
319
+ internalType: "uint160",
320
+ },
321
+ ],
322
+ },
323
+ ],
324
+ outputs: [{ name: "amountIn", type: "uint256", internalType: "uint256" }],
325
+ stateMutability: "nonpayable",
326
+ },
327
+ ];
328
+ exports.SWAP_LEGACY_ROUTER_ABI = [
329
+ {
330
+ type: "function",
331
+ name: "exactOutputSingle",
332
+ inputs: [
333
+ {
334
+ name: "params",
335
+ type: "tuple",
336
+ internalType: "struct ISwapLegacyRouter.ExactOutputSingleParams",
337
+ components: [
338
+ { name: "tokenIn", type: "address", internalType: "address" },
339
+ { name: "tokenOut", type: "address", internalType: "address" },
340
+ { name: "fee", type: "uint24", internalType: "uint24" },
341
+ { name: "recipient", type: "address", internalType: "address" },
342
+ { name: "amountOut", type: "uint256", internalType: "uint256" },
343
+ {
344
+ name: "amountInMaximum",
345
+ type: "uint256",
346
+ internalType: "uint256",
347
+ },
348
+ {
349
+ name: "sqrtPriceLimitX96",
350
+ type: "uint160",
351
+ internalType: "uint160",
352
+ },
353
+ ],
354
+ },
355
+ ],
356
+ outputs: [{ name: "amountIn", type: "uint256", internalType: "uint256" }],
357
+ stateMutability: "nonpayable",
358
+ },
359
+ ];
360
+ exports.SNOWBRIDGE_L1_ADAPTOR_ABI = [
361
+ {
362
+ type: "function",
363
+ name: "depositNativeEther",
364
+ inputs: [
365
+ {
366
+ name: "params",
367
+ type: "tuple",
368
+ internalType: "struct DepositParams",
369
+ components: [
370
+ { name: "inputToken", type: "address", internalType: "address" },
371
+ { name: "outputToken", type: "address", internalType: "address" },
372
+ { name: "inputAmount", type: "uint256", internalType: "uint256" },
373
+ { name: "outputAmount", type: "uint256", internalType: "uint256" },
374
+ {
375
+ name: "destinationChainId",
376
+ type: "uint256",
377
+ internalType: "uint256",
378
+ },
379
+ {
380
+ name: "fillDeadlineBuffer",
381
+ type: "uint32",
382
+ internalType: "uint32",
383
+ },
384
+ ],
385
+ },
386
+ { name: "recipient", type: "address", internalType: "address" },
387
+ { name: "topic", type: "bytes32", internalType: "bytes32" },
388
+ ],
389
+ outputs: [],
390
+ stateMutability: "nonpayable",
391
+ },
392
+ {
393
+ type: "function",
394
+ name: "depositToken",
395
+ inputs: [
396
+ {
397
+ name: "params",
398
+ type: "tuple",
399
+ internalType: "struct DepositParams",
400
+ components: [
401
+ { name: "inputToken", type: "address", internalType: "address" },
402
+ { name: "outputToken", type: "address", internalType: "address" },
403
+ { name: "inputAmount", type: "uint256", internalType: "uint256" },
404
+ { name: "outputAmount", type: "uint256", internalType: "uint256" },
405
+ {
406
+ name: "destinationChainId",
407
+ type: "uint256",
408
+ internalType: "uint256",
409
+ },
410
+ {
411
+ name: "fillDeadlineBuffer",
412
+ type: "uint32",
413
+ internalType: "uint32",
414
+ },
415
+ ],
416
+ },
417
+ { name: "recipient", type: "address", internalType: "address" },
418
+ { name: "topic", type: "bytes32", internalType: "bytes32" },
419
+ ],
420
+ outputs: [],
421
+ stateMutability: "nonpayable",
422
+ },
423
+ ];
424
+ exports.SNOWBRIDGE_L2_ADAPTOR_ABI = [
425
+ {
426
+ type: "function",
427
+ name: "sendEtherAndCall",
428
+ inputs: [
429
+ {
430
+ name: "params",
431
+ type: "tuple",
432
+ internalType: "struct DepositParams",
433
+ components: [
434
+ { name: "inputToken", type: "address", internalType: "address" },
435
+ { name: "outputToken", type: "address", internalType: "address" },
436
+ { name: "inputAmount", type: "uint256", internalType: "uint256" },
437
+ { name: "outputAmount", type: "uint256", internalType: "uint256" },
438
+ {
439
+ name: "destinationChainId",
440
+ type: "uint256",
441
+ internalType: "uint256",
442
+ },
443
+ {
444
+ name: "fillDeadlineBuffer",
445
+ type: "uint32",
446
+ internalType: "uint32",
447
+ },
448
+ ],
449
+ },
450
+ {
451
+ name: "sendParams",
452
+ type: "tuple",
453
+ internalType: "struct SendParams",
454
+ components: [
455
+ { name: "xcm", type: "bytes", internalType: "bytes" },
456
+ { name: "assets", type: "bytes[]", internalType: "bytes[]" },
457
+ { name: "claimer", type: "bytes", internalType: "bytes" },
458
+ { name: "executionFee", type: "uint128", internalType: "uint128" },
459
+ { name: "relayerFee", type: "uint128", internalType: "uint128" },
460
+ ],
461
+ },
462
+ { name: "recipient", type: "address", internalType: "address" },
463
+ { name: "topic", type: "bytes32", internalType: "bytes32" },
464
+ ],
465
+ outputs: [],
466
+ stateMutability: "payable",
467
+ },
468
+ {
469
+ type: "function",
470
+ name: "sendTokenAndCall",
471
+ inputs: [
472
+ {
473
+ name: "params",
474
+ type: "tuple",
475
+ internalType: "struct DepositParams",
476
+ components: [
477
+ { name: "inputToken", type: "address", internalType: "address" },
478
+ { name: "outputToken", type: "address", internalType: "address" },
479
+ { name: "inputAmount", type: "uint256", internalType: "uint256" },
480
+ { name: "outputAmount", type: "uint256", internalType: "uint256" },
481
+ {
482
+ name: "destinationChainId",
483
+ type: "uint256",
484
+ internalType: "uint256",
485
+ },
486
+ {
487
+ name: "fillDeadlineBuffer",
488
+ type: "uint32",
489
+ internalType: "uint32",
490
+ },
491
+ ],
492
+ },
493
+ {
494
+ name: "swapParams",
495
+ type: "tuple",
496
+ internalType: "struct SwapParams",
497
+ components: [
498
+ { name: "inputAmount", type: "uint256", internalType: "uint256" },
499
+ { name: "router", type: "address", internalType: "address" },
500
+ { name: "callData", type: "bytes", internalType: "bytes" },
501
+ ],
502
+ },
503
+ {
504
+ name: "sendParams",
505
+ type: "tuple",
506
+ internalType: "struct SendParams",
507
+ components: [
508
+ { name: "xcm", type: "bytes", internalType: "bytes" },
509
+ { name: "assets", type: "bytes[]", internalType: "bytes[]" },
510
+ { name: "claimer", type: "bytes", internalType: "bytes" },
511
+ { name: "executionFee", type: "uint128", internalType: "uint128" },
512
+ { name: "relayerFee", type: "uint128", internalType: "uint128" },
513
+ ],
514
+ },
515
+ { name: "recipient", type: "address", internalType: "address" },
516
+ { name: "topic", type: "bytes32", internalType: "bytes32" },
517
+ ],
518
+ outputs: [],
519
+ stateMutability: "nonpayable",
520
+ },
521
+ ];
522
+ exports.MOONBEAM_PALLET_XCM_PRECOMPILE_ABI = [
523
+ {
524
+ inputs: [
525
+ {
526
+ components: [
527
+ { internalType: "uint8", name: "parents", type: "uint8" },
528
+ { internalType: "bytes[]", name: "interior", type: "bytes[]" },
529
+ ],
530
+ internalType: "struct XCM.Location",
531
+ name: "dest",
532
+ type: "tuple",
533
+ },
534
+ {
535
+ components: [
536
+ { internalType: "address", name: "asset", type: "address" },
537
+ { internalType: "uint256", name: "amount", type: "uint256" },
538
+ ],
539
+ internalType: "struct XCM.AssetAddressInfo[]",
540
+ name: "assets",
541
+ type: "tuple[]",
542
+ },
543
+ {
544
+ internalType: "enum XCM.TransferType",
545
+ name: "assetsTransferType",
546
+ type: "uint8",
547
+ },
548
+ { internalType: "uint8", name: "remoteFeesIdIndex", type: "uint8" },
549
+ {
550
+ internalType: "enum XCM.TransferType",
551
+ name: "feesTransferType",
552
+ type: "uint8",
553
+ },
554
+ { internalType: "bytes", name: "customXcmOnDest", type: "bytes" },
555
+ ],
556
+ name: "transferAssetsUsingTypeAndThenAddress",
557
+ outputs: [],
558
+ stateMutability: "nonpayable",
559
+ type: "function",
560
+ },
561
+ ];