@snowbridge/contract-types 0.1.47-alpha.9 → 0.1.48-alpha.2

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/dist/{IGateway.d.ts → IGateway.sol/IGatewayV1.d.ts} +28 -90
  2. package/dist/IGateway.sol/IGatewayV1.d.ts.map +1 -0
  3. package/dist/IGateway.sol/IGatewayV2.d.ts +340 -0
  4. package/dist/IGateway.sol/IGatewayV2.d.ts.map +1 -0
  5. package/dist/IGateway.sol/IGatewayV2.js +2 -0
  6. package/dist/IGateway.sol/index.d.ts +3 -0
  7. package/dist/IGateway.sol/index.d.ts.map +1 -0
  8. package/dist/IGateway.sol/index.js +2 -0
  9. package/dist/factories/BeefyClient__factory.d.ts +1 -1
  10. package/dist/factories/BeefyClient__factory.js +1 -1
  11. package/dist/factories/{IGateway__factory.d.ts → IGateway.sol/IGatewayV1__factory.d.ts} +32 -70
  12. package/dist/factories/IGateway.sol/IGatewayV1__factory.d.ts.map +1 -0
  13. package/dist/factories/{IGateway__factory.js → IGateway.sol/IGatewayV1__factory.js} +33 -82
  14. package/dist/factories/IGateway.sol/IGatewayV2__factory.d.ts +407 -0
  15. package/dist/factories/IGateway.sol/IGatewayV2__factory.d.ts.map +1 -0
  16. package/dist/factories/IGateway.sol/IGatewayV2__factory.js +533 -0
  17. package/dist/factories/IGateway.sol/index.d.ts +3 -0
  18. package/dist/factories/IGateway.sol/index.d.ts.map +1 -0
  19. package/dist/factories/IGateway.sol/index.js +10 -0
  20. package/dist/factories/index.d.ts +1 -1
  21. package/dist/factories/index.d.ts.map +1 -1
  22. package/dist/factories/index.js +35 -3
  23. package/dist/index.d.ts +6 -2
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +5 -3
  26. package/package.json +1 -1
  27. package/.turbo/turbo-build.log +0 -42
  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
@@ -0,0 +1,407 @@
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: "InsufficientValue";
382
+ readonly inputs: readonly [];
383
+ }, {
384
+ readonly type: "error";
385
+ readonly name: "InvalidAsset";
386
+ readonly inputs: readonly [];
387
+ }, {
388
+ readonly type: "error";
389
+ readonly name: "InvalidFee";
390
+ readonly inputs: readonly [];
391
+ }, {
392
+ readonly type: "error";
393
+ readonly name: "InvalidNetwork";
394
+ readonly inputs: readonly [];
395
+ }, {
396
+ readonly type: "error";
397
+ readonly name: "ShouldNotReachHere";
398
+ readonly inputs: readonly [];
399
+ }, {
400
+ readonly type: "error";
401
+ readonly name: "TooManyAssets";
402
+ readonly inputs: readonly [];
403
+ }];
404
+ static createInterface(): IGatewayV2Interface;
405
+ static connect(address: string, runner?: ContractRunner | null): IGatewayV2;
406
+ }
407
+ //# 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;AAugBvC,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"}