@snowbridge/contract-types 0.1.47-alpha.8 → 0.1.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/.turbo/turbo-build.log +4 -37
  2. package/dist/{IGateway.d.ts → IGateway.sol/IGatewayV1.d.ts} +28 -90
  3. package/dist/IGateway.sol/IGatewayV1.d.ts.map +1 -0
  4. package/dist/IGateway.sol/IGatewayV2.d.ts +340 -0
  5. package/dist/IGateway.sol/IGatewayV2.d.ts.map +1 -0
  6. package/dist/IGateway.sol/IGatewayV2.js +2 -0
  7. package/dist/IGateway.sol/index.d.ts +3 -0
  8. package/dist/IGateway.sol/index.d.ts.map +1 -0
  9. package/dist/IGateway.sol/index.js +2 -0
  10. package/dist/factories/BeefyClient__factory.d.ts +1 -1
  11. package/dist/factories/BeefyClient__factory.js +1 -1
  12. package/dist/factories/{IGateway__factory.d.ts → IGateway.sol/IGatewayV1__factory.d.ts} +32 -70
  13. package/dist/factories/IGateway.sol/IGatewayV1__factory.d.ts.map +1 -0
  14. package/dist/factories/{IGateway__factory.js → IGateway.sol/IGatewayV1__factory.js} +33 -82
  15. package/dist/factories/IGateway.sol/IGatewayV2__factory.d.ts +411 -0
  16. package/dist/factories/IGateway.sol/IGatewayV2__factory.d.ts.map +1 -0
  17. package/dist/factories/IGateway.sol/IGatewayV2__factory.js +538 -0
  18. package/dist/factories/IGateway.sol/index.d.ts +3 -0
  19. package/dist/factories/IGateway.sol/index.d.ts.map +1 -0
  20. package/dist/factories/IGateway.sol/index.js +10 -0
  21. package/dist/factories/index.d.ts +1 -1
  22. package/dist/factories/index.d.ts.map +1 -1
  23. package/dist/factories/index.js +35 -3
  24. package/dist/index.d.ts +6 -2
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +5 -3
  27. package/package.json +2 -2
  28. package/dist/IGateway.d.ts.map +0 -1
  29. package/dist/factories/IGateway__factory.d.ts.map +0 -1
  30. /package/dist/{IGateway.js → IGateway.sol/IGatewayV1.js} +0 -0
@@ -3,7 +3,7 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.IGateway__factory = void 0;
6
+ exports.IGatewayV1__factory = void 0;
7
7
  const ethers_1 = require("ethers");
8
8
  const _abi = [
9
9
  {
@@ -75,19 +75,6 @@ const _abi = [
75
75
  outputs: [],
76
76
  stateMutability: "payable",
77
77
  },
78
- {
79
- type: "function",
80
- name: "implementation",
81
- inputs: [],
82
- outputs: [
83
- {
84
- name: "",
85
- type: "address",
86
- internalType: "address",
87
- },
88
- ],
89
- stateMutability: "view",
90
- },
91
78
  {
92
79
  type: "function",
93
80
  name: "isTokenRegistered",
@@ -443,46 +430,45 @@ const _abi = [
443
430
  stateMutability: "nonpayable",
444
431
  },
445
432
  {
446
- type: "event",
447
- name: "AgentCreated",
433
+ type: "function",
434
+ name: "tokenAddressOf",
448
435
  inputs: [
449
436
  {
450
- name: "agentID",
437
+ name: "tokenID",
451
438
  type: "bytes32",
452
- indexed: false,
453
439
  internalType: "bytes32",
454
440
  },
441
+ ],
442
+ outputs: [
455
443
  {
456
- name: "agent",
444
+ name: "",
457
445
  type: "address",
458
- indexed: false,
459
446
  internalType: "address",
460
447
  },
461
448
  ],
462
- anonymous: false,
449
+ stateMutability: "view",
463
450
  },
464
451
  {
465
452
  type: "event",
466
- name: "ChannelCreated",
453
+ name: "AgentFundsWithdrawn",
467
454
  inputs: [
468
455
  {
469
- name: "channelID",
456
+ name: "agentID",
470
457
  type: "bytes32",
471
458
  indexed: true,
472
- internalType: "ChannelID",
459
+ internalType: "bytes32",
473
460
  },
474
- ],
475
- anonymous: false,
476
- },
477
- {
478
- type: "event",
479
- name: "ChannelUpdated",
480
- inputs: [
481
461
  {
482
- name: "channelID",
483
- type: "bytes32",
462
+ name: "recipient",
463
+ type: "address",
484
464
  indexed: true,
485
- internalType: "ChannelID",
465
+ internalType: "address",
466
+ },
467
+ {
468
+ name: "amount",
469
+ type: "uint256",
470
+ indexed: false,
471
+ internalType: "uint256",
486
472
  },
487
473
  ],
488
474
  anonymous: false,
@@ -506,25 +492,6 @@ const _abi = [
506
492
  ],
507
493
  anonymous: false,
508
494
  },
509
- {
510
- type: "event",
511
- name: "ForeignTokenRegistered",
512
- inputs: [
513
- {
514
- name: "tokenID",
515
- type: "bytes32",
516
- indexed: true,
517
- internalType: "bytes32",
518
- },
519
- {
520
- name: "token",
521
- type: "address",
522
- indexed: false,
523
- internalType: "address",
524
- },
525
- ],
526
- anonymous: false,
527
- },
528
495
  {
529
496
  type: "event",
530
497
  name: "InboundMessageDispatched",
@@ -556,19 +523,6 @@ const _abi = [
556
523
  ],
557
524
  anonymous: false,
558
525
  },
559
- {
560
- type: "event",
561
- name: "OperatingModeChanged",
562
- inputs: [
563
- {
564
- name: "mode",
565
- type: "uint8",
566
- indexed: false,
567
- internalType: "enum OperatingMode",
568
- },
569
- ],
570
- anonymous: false,
571
- },
572
526
  {
573
527
  type: "event",
574
528
  name: "OutboundMessageAccepted",
@@ -606,19 +560,6 @@ const _abi = [
606
560
  inputs: [],
607
561
  anonymous: false,
608
562
  },
609
- {
610
- type: "event",
611
- name: "TokenRegistrationSent",
612
- inputs: [
613
- {
614
- name: "token",
615
- type: "address",
616
- indexed: false,
617
- internalType: "address",
618
- },
619
- ],
620
- anonymous: false,
621
- },
622
563
  {
623
564
  type: "event",
624
565
  name: "TokenSent",
@@ -674,8 +615,18 @@ const _abi = [
674
615
  inputs: [],
675
616
  anonymous: false,
676
617
  },
618
+ {
619
+ type: "error",
620
+ name: "ChannelDoesNotExist",
621
+ inputs: [],
622
+ },
623
+ {
624
+ type: "error",
625
+ name: "InvalidChannelUpdate",
626
+ inputs: [],
627
+ },
677
628
  ];
678
- class IGateway__factory {
629
+ class IGatewayV1__factory {
679
630
  static createInterface() {
680
631
  return new ethers_1.Interface(_abi);
681
632
  }
@@ -683,5 +634,5 @@ class IGateway__factory {
683
634
  return new ethers_1.Contract(address, _abi, runner);
684
635
  }
685
636
  }
686
- exports.IGateway__factory = IGateway__factory;
687
- IGateway__factory.abi = _abi;
637
+ exports.IGatewayV1__factory = IGatewayV1__factory;
638
+ IGatewayV1__factory.abi = _abi;
@@ -0,0 +1,411 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { IGatewayV2, IGatewayV2Interface } from "../../IGateway.sol/IGatewayV2";
3
+ export declare class IGatewayV2__factory {
4
+ static readonly abi: readonly [{
5
+ readonly type: "function";
6
+ readonly name: "agentOf";
7
+ readonly inputs: readonly [{
8
+ readonly name: "agentID";
9
+ readonly type: "bytes32";
10
+ readonly internalType: "bytes32";
11
+ }];
12
+ readonly outputs: readonly [{
13
+ readonly name: "";
14
+ readonly type: "address";
15
+ readonly internalType: "address";
16
+ }];
17
+ readonly stateMutability: "view";
18
+ }, {
19
+ readonly type: "function";
20
+ readonly name: "isTokenRegistered";
21
+ readonly inputs: readonly [{
22
+ readonly name: "token";
23
+ readonly type: "address";
24
+ readonly internalType: "address";
25
+ }];
26
+ readonly outputs: readonly [{
27
+ readonly name: "";
28
+ readonly type: "bool";
29
+ readonly internalType: "bool";
30
+ }];
31
+ readonly stateMutability: "view";
32
+ }, {
33
+ readonly type: "function";
34
+ readonly name: "operatingMode";
35
+ readonly inputs: readonly [];
36
+ readonly outputs: readonly [{
37
+ readonly name: "";
38
+ readonly type: "uint8";
39
+ readonly internalType: "enum OperatingMode";
40
+ }];
41
+ readonly stateMutability: "view";
42
+ }, {
43
+ readonly type: "function";
44
+ readonly name: "v2_createAgent";
45
+ readonly inputs: readonly [{
46
+ readonly name: "id";
47
+ readonly type: "bytes32";
48
+ readonly internalType: "bytes32";
49
+ }];
50
+ readonly outputs: readonly [];
51
+ readonly stateMutability: "nonpayable";
52
+ }, {
53
+ readonly type: "function";
54
+ readonly name: "v2_isDispatched";
55
+ readonly inputs: readonly [{
56
+ readonly name: "nonce";
57
+ readonly type: "uint64";
58
+ readonly internalType: "uint64";
59
+ }];
60
+ readonly outputs: readonly [{
61
+ readonly name: "";
62
+ readonly type: "bool";
63
+ readonly internalType: "bool";
64
+ }];
65
+ readonly stateMutability: "view";
66
+ }, {
67
+ readonly type: "function";
68
+ readonly name: "v2_outboundNonce";
69
+ readonly inputs: readonly [];
70
+ readonly outputs: readonly [{
71
+ readonly name: "";
72
+ readonly type: "uint64";
73
+ readonly internalType: "uint64";
74
+ }];
75
+ readonly stateMutability: "view";
76
+ }, {
77
+ readonly type: "function";
78
+ readonly name: "v2_registerToken";
79
+ readonly inputs: readonly [{
80
+ readonly name: "token";
81
+ readonly type: "address";
82
+ readonly internalType: "address";
83
+ }, {
84
+ readonly name: "network";
85
+ readonly type: "uint8";
86
+ readonly internalType: "uint8";
87
+ }, {
88
+ readonly name: "executionFee";
89
+ readonly type: "uint128";
90
+ readonly internalType: "uint128";
91
+ }, {
92
+ readonly name: "relayerFee";
93
+ readonly type: "uint128";
94
+ readonly internalType: "uint128";
95
+ }];
96
+ readonly outputs: readonly [];
97
+ readonly stateMutability: "payable";
98
+ }, {
99
+ readonly type: "function";
100
+ readonly name: "v2_sendMessage";
101
+ readonly inputs: readonly [{
102
+ readonly name: "xcm";
103
+ readonly type: "bytes";
104
+ readonly internalType: "bytes";
105
+ }, {
106
+ readonly name: "assets";
107
+ readonly type: "bytes[]";
108
+ readonly internalType: "bytes[]";
109
+ }, {
110
+ readonly name: "claimer";
111
+ readonly type: "bytes";
112
+ readonly internalType: "bytes";
113
+ }, {
114
+ readonly name: "executionFee";
115
+ readonly type: "uint128";
116
+ readonly internalType: "uint128";
117
+ }, {
118
+ readonly name: "relayerFee";
119
+ readonly type: "uint128";
120
+ readonly internalType: "uint128";
121
+ }];
122
+ readonly outputs: readonly [];
123
+ readonly stateMutability: "payable";
124
+ }, {
125
+ readonly type: "function";
126
+ readonly name: "v2_submit";
127
+ readonly inputs: readonly [{
128
+ readonly name: "message";
129
+ readonly type: "tuple";
130
+ readonly internalType: "struct InboundMessage";
131
+ readonly components: readonly [{
132
+ readonly name: "origin";
133
+ readonly type: "bytes32";
134
+ readonly internalType: "bytes32";
135
+ }, {
136
+ readonly name: "nonce";
137
+ readonly type: "uint64";
138
+ readonly internalType: "uint64";
139
+ }, {
140
+ readonly name: "topic";
141
+ readonly type: "bytes32";
142
+ readonly internalType: "bytes32";
143
+ }, {
144
+ readonly name: "commands";
145
+ readonly type: "tuple[]";
146
+ readonly internalType: "struct Command[]";
147
+ readonly components: readonly [{
148
+ readonly name: "kind";
149
+ readonly type: "uint8";
150
+ readonly internalType: "uint8";
151
+ }, {
152
+ readonly name: "gas";
153
+ readonly type: "uint64";
154
+ readonly internalType: "uint64";
155
+ }, {
156
+ readonly name: "payload";
157
+ readonly type: "bytes";
158
+ readonly internalType: "bytes";
159
+ }];
160
+ }];
161
+ }, {
162
+ readonly name: "leafProof";
163
+ readonly type: "bytes32[]";
164
+ readonly internalType: "bytes32[]";
165
+ }, {
166
+ readonly name: "headerProof";
167
+ readonly type: "tuple";
168
+ readonly internalType: "struct Verification.Proof";
169
+ readonly components: readonly [{
170
+ readonly name: "header";
171
+ readonly type: "tuple";
172
+ readonly internalType: "struct Verification.ParachainHeader";
173
+ readonly components: readonly [{
174
+ readonly name: "parentHash";
175
+ readonly type: "bytes32";
176
+ readonly internalType: "bytes32";
177
+ }, {
178
+ readonly name: "number";
179
+ readonly type: "uint256";
180
+ readonly internalType: "uint256";
181
+ }, {
182
+ readonly name: "stateRoot";
183
+ readonly type: "bytes32";
184
+ readonly internalType: "bytes32";
185
+ }, {
186
+ readonly name: "extrinsicsRoot";
187
+ readonly type: "bytes32";
188
+ readonly internalType: "bytes32";
189
+ }, {
190
+ readonly name: "digestItems";
191
+ readonly type: "tuple[]";
192
+ readonly internalType: "struct Verification.DigestItem[]";
193
+ readonly components: readonly [{
194
+ readonly name: "kind";
195
+ readonly type: "uint256";
196
+ readonly internalType: "uint256";
197
+ }, {
198
+ readonly name: "consensusEngineID";
199
+ readonly type: "bytes4";
200
+ readonly internalType: "bytes4";
201
+ }, {
202
+ readonly name: "data";
203
+ readonly type: "bytes";
204
+ readonly internalType: "bytes";
205
+ }];
206
+ }];
207
+ }, {
208
+ readonly name: "headProof";
209
+ readonly type: "tuple";
210
+ readonly internalType: "struct Verification.HeadProof";
211
+ readonly components: readonly [{
212
+ readonly name: "pos";
213
+ readonly type: "uint256";
214
+ readonly internalType: "uint256";
215
+ }, {
216
+ readonly name: "width";
217
+ readonly type: "uint256";
218
+ readonly internalType: "uint256";
219
+ }, {
220
+ readonly name: "proof";
221
+ readonly type: "bytes32[]";
222
+ readonly internalType: "bytes32[]";
223
+ }];
224
+ }, {
225
+ readonly name: "leafPartial";
226
+ readonly type: "tuple";
227
+ readonly internalType: "struct Verification.MMRLeafPartial";
228
+ readonly components: readonly [{
229
+ readonly name: "version";
230
+ readonly type: "uint8";
231
+ readonly internalType: "uint8";
232
+ }, {
233
+ readonly name: "parentNumber";
234
+ readonly type: "uint32";
235
+ readonly internalType: "uint32";
236
+ }, {
237
+ readonly name: "parentHash";
238
+ readonly type: "bytes32";
239
+ readonly internalType: "bytes32";
240
+ }, {
241
+ readonly name: "nextAuthoritySetID";
242
+ readonly type: "uint64";
243
+ readonly internalType: "uint64";
244
+ }, {
245
+ readonly name: "nextAuthoritySetLen";
246
+ readonly type: "uint32";
247
+ readonly internalType: "uint32";
248
+ }, {
249
+ readonly name: "nextAuthoritySetRoot";
250
+ readonly type: "bytes32";
251
+ readonly internalType: "bytes32";
252
+ }];
253
+ }, {
254
+ readonly name: "leafProof";
255
+ readonly type: "bytes32[]";
256
+ readonly internalType: "bytes32[]";
257
+ }, {
258
+ readonly name: "leafProofOrder";
259
+ readonly type: "uint256";
260
+ readonly internalType: "uint256";
261
+ }];
262
+ }, {
263
+ readonly name: "rewardAddress";
264
+ readonly type: "bytes32";
265
+ readonly internalType: "bytes32";
266
+ }];
267
+ readonly outputs: readonly [];
268
+ readonly stateMutability: "nonpayable";
269
+ }, {
270
+ readonly type: "event";
271
+ readonly name: "AgentCreated";
272
+ readonly inputs: readonly [{
273
+ readonly name: "agentID";
274
+ readonly type: "bytes32";
275
+ readonly indexed: false;
276
+ readonly internalType: "bytes32";
277
+ }, {
278
+ readonly name: "agent";
279
+ readonly type: "address";
280
+ readonly indexed: false;
281
+ readonly internalType: "address";
282
+ }];
283
+ readonly anonymous: false;
284
+ }, {
285
+ readonly type: "event";
286
+ readonly name: "InboundMessageDispatched";
287
+ readonly inputs: readonly [{
288
+ readonly name: "nonce";
289
+ readonly type: "uint64";
290
+ readonly indexed: true;
291
+ readonly internalType: "uint64";
292
+ }, {
293
+ readonly name: "topic";
294
+ readonly type: "bytes32";
295
+ readonly indexed: false;
296
+ readonly internalType: "bytes32";
297
+ }, {
298
+ readonly name: "success";
299
+ readonly type: "bool";
300
+ readonly indexed: false;
301
+ readonly internalType: "bool";
302
+ }, {
303
+ readonly name: "rewardAddress";
304
+ readonly type: "bytes32";
305
+ readonly indexed: false;
306
+ readonly internalType: "bytes32";
307
+ }];
308
+ readonly anonymous: false;
309
+ }, {
310
+ readonly type: "event";
311
+ readonly name: "OutboundMessageAccepted";
312
+ readonly inputs: readonly [{
313
+ readonly name: "nonce";
314
+ readonly type: "uint64";
315
+ readonly indexed: false;
316
+ readonly internalType: "uint64";
317
+ }, {
318
+ readonly name: "payload";
319
+ readonly type: "tuple";
320
+ readonly indexed: false;
321
+ readonly internalType: "struct Payload";
322
+ readonly components: readonly [{
323
+ readonly name: "origin";
324
+ readonly type: "address";
325
+ readonly internalType: "address";
326
+ }, {
327
+ readonly name: "assets";
328
+ readonly type: "tuple[]";
329
+ readonly internalType: "struct Asset[]";
330
+ readonly components: readonly [{
331
+ readonly name: "kind";
332
+ readonly type: "uint8";
333
+ readonly internalType: "uint8";
334
+ }, {
335
+ readonly name: "data";
336
+ readonly type: "bytes";
337
+ readonly internalType: "bytes";
338
+ }];
339
+ }, {
340
+ readonly name: "xcm";
341
+ readonly type: "tuple";
342
+ readonly internalType: "struct Xcm";
343
+ readonly components: readonly [{
344
+ readonly name: "kind";
345
+ readonly type: "uint8";
346
+ readonly internalType: "uint8";
347
+ }, {
348
+ readonly name: "data";
349
+ readonly type: "bytes";
350
+ readonly internalType: "bytes";
351
+ }];
352
+ }, {
353
+ readonly name: "claimer";
354
+ readonly type: "bytes";
355
+ readonly internalType: "bytes";
356
+ }, {
357
+ readonly name: "value";
358
+ readonly type: "uint128";
359
+ readonly internalType: "uint128";
360
+ }, {
361
+ readonly name: "executionFee";
362
+ readonly type: "uint128";
363
+ readonly internalType: "uint128";
364
+ }, {
365
+ readonly name: "relayerFee";
366
+ readonly type: "uint128";
367
+ readonly internalType: "uint128";
368
+ }];
369
+ }];
370
+ readonly anonymous: false;
371
+ }, {
372
+ readonly type: "error";
373
+ readonly name: "AgentAlreadyExists";
374
+ readonly inputs: readonly [];
375
+ }, {
376
+ readonly type: "error";
377
+ readonly name: "ExceededMaximumValue";
378
+ readonly inputs: readonly [];
379
+ }, {
380
+ readonly type: "error";
381
+ readonly name: "InsufficientGasLimit";
382
+ readonly inputs: readonly [];
383
+ }, {
384
+ readonly type: "error";
385
+ readonly name: "InsufficientValue";
386
+ readonly inputs: readonly [];
387
+ }, {
388
+ readonly type: "error";
389
+ readonly name: "InvalidAsset";
390
+ readonly inputs: readonly [];
391
+ }, {
392
+ readonly type: "error";
393
+ readonly name: "InvalidFee";
394
+ readonly inputs: readonly [];
395
+ }, {
396
+ readonly type: "error";
397
+ readonly name: "InvalidNetwork";
398
+ readonly inputs: readonly [];
399
+ }, {
400
+ readonly type: "error";
401
+ readonly name: "ShouldNotReachHere";
402
+ readonly inputs: readonly [];
403
+ }, {
404
+ readonly type: "error";
405
+ readonly name: "TooManyAssets";
406
+ readonly inputs: readonly [];
407
+ }];
408
+ static createInterface(): IGatewayV2Interface;
409
+ static connect(address: string, runner?: ContractRunner | null): IGatewayV2;
410
+ }
411
+ //# sourceMappingURL=IGatewayV2__factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IGatewayV2__factory.d.ts","sourceRoot":"","sources":["../../../src/factories/IGateway.sol/IGatewayV2__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EACpB,MAAM,+BAA+B,CAAC;AA4gBvC,qBAAa,mBAAmB;IAC9B,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,mBAAmB;IAG7C,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,UAAU;CAG5E"}