@snowbridge/contract-types 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,507 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { IGateway, IGatewayInterface } from "../IGateway";
3
+ export declare class IGateway__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: "channelNoncesOf";
21
+ readonly inputs: readonly [{
22
+ readonly name: "channelID";
23
+ readonly type: "bytes32";
24
+ readonly internalType: "ChannelID";
25
+ }];
26
+ readonly outputs: readonly [{
27
+ readonly name: "";
28
+ readonly type: "uint64";
29
+ readonly internalType: "uint64";
30
+ }, {
31
+ readonly name: "";
32
+ readonly type: "uint64";
33
+ readonly internalType: "uint64";
34
+ }];
35
+ readonly stateMutability: "view";
36
+ }, {
37
+ readonly type: "function";
38
+ readonly name: "channelOperatingModeOf";
39
+ readonly inputs: readonly [{
40
+ readonly name: "channelID";
41
+ readonly type: "bytes32";
42
+ readonly internalType: "ChannelID";
43
+ }];
44
+ readonly outputs: readonly [{
45
+ readonly name: "";
46
+ readonly type: "uint8";
47
+ readonly internalType: "enum OperatingMode";
48
+ }];
49
+ readonly stateMutability: "view";
50
+ }, {
51
+ readonly type: "function";
52
+ readonly name: "implementation";
53
+ readonly inputs: readonly [];
54
+ readonly outputs: readonly [{
55
+ readonly name: "";
56
+ readonly type: "address";
57
+ readonly internalType: "address";
58
+ }];
59
+ readonly stateMutability: "view";
60
+ }, {
61
+ readonly type: "function";
62
+ readonly name: "isTokenRegistered";
63
+ readonly inputs: readonly [{
64
+ readonly name: "token";
65
+ readonly type: "address";
66
+ readonly internalType: "address";
67
+ }];
68
+ readonly outputs: readonly [{
69
+ readonly name: "";
70
+ readonly type: "bool";
71
+ readonly internalType: "bool";
72
+ }];
73
+ readonly stateMutability: "view";
74
+ }, {
75
+ readonly type: "function";
76
+ readonly name: "operatingMode";
77
+ readonly inputs: readonly [];
78
+ readonly outputs: readonly [{
79
+ readonly name: "";
80
+ readonly type: "uint8";
81
+ readonly internalType: "enum OperatingMode";
82
+ }];
83
+ readonly stateMutability: "view";
84
+ }, {
85
+ readonly type: "function";
86
+ readonly name: "pricingParameters";
87
+ readonly inputs: readonly [];
88
+ readonly outputs: readonly [{
89
+ readonly name: "";
90
+ readonly type: "uint256";
91
+ readonly internalType: "UD60x18";
92
+ }, {
93
+ readonly name: "";
94
+ readonly type: "uint128";
95
+ readonly internalType: "uint128";
96
+ }];
97
+ readonly stateMutability: "view";
98
+ }, {
99
+ readonly type: "function";
100
+ readonly name: "quoteRegisterTokenFee";
101
+ readonly inputs: readonly [];
102
+ readonly outputs: readonly [{
103
+ readonly name: "";
104
+ readonly type: "uint256";
105
+ readonly internalType: "uint256";
106
+ }];
107
+ readonly stateMutability: "view";
108
+ }, {
109
+ readonly type: "function";
110
+ readonly name: "quoteSendTokenFee";
111
+ readonly inputs: readonly [{
112
+ readonly name: "token";
113
+ readonly type: "address";
114
+ readonly internalType: "address";
115
+ }, {
116
+ readonly name: "destinationChain";
117
+ readonly type: "uint32";
118
+ readonly internalType: "ParaID";
119
+ }, {
120
+ readonly name: "destinationFee";
121
+ readonly type: "uint128";
122
+ readonly internalType: "uint128";
123
+ }];
124
+ readonly outputs: readonly [{
125
+ readonly name: "";
126
+ readonly type: "uint256";
127
+ readonly internalType: "uint256";
128
+ }];
129
+ readonly stateMutability: "view";
130
+ }, {
131
+ readonly type: "function";
132
+ readonly name: "registerToken";
133
+ readonly inputs: readonly [{
134
+ readonly name: "token";
135
+ readonly type: "address";
136
+ readonly internalType: "address";
137
+ }];
138
+ readonly outputs: readonly [];
139
+ readonly stateMutability: "payable";
140
+ }, {
141
+ readonly type: "function";
142
+ readonly name: "sendToken";
143
+ readonly inputs: readonly [{
144
+ readonly name: "token";
145
+ readonly type: "address";
146
+ readonly internalType: "address";
147
+ }, {
148
+ readonly name: "destinationChain";
149
+ readonly type: "uint32";
150
+ readonly internalType: "ParaID";
151
+ }, {
152
+ readonly name: "destinationAddress";
153
+ readonly type: "tuple";
154
+ readonly internalType: "struct MultiAddress";
155
+ readonly components: readonly [{
156
+ readonly name: "kind";
157
+ readonly type: "uint8";
158
+ readonly internalType: "enum Kind";
159
+ }, {
160
+ readonly name: "data";
161
+ readonly type: "bytes";
162
+ readonly internalType: "bytes";
163
+ }];
164
+ }, {
165
+ readonly name: "destinationFee";
166
+ readonly type: "uint128";
167
+ readonly internalType: "uint128";
168
+ }, {
169
+ readonly name: "amount";
170
+ readonly type: "uint128";
171
+ readonly internalType: "uint128";
172
+ }];
173
+ readonly outputs: readonly [];
174
+ readonly stateMutability: "payable";
175
+ }, {
176
+ readonly type: "function";
177
+ readonly name: "submitV1";
178
+ readonly inputs: readonly [{
179
+ readonly name: "message";
180
+ readonly type: "tuple";
181
+ readonly internalType: "struct InboundMessage";
182
+ readonly components: readonly [{
183
+ readonly name: "channelID";
184
+ readonly type: "bytes32";
185
+ readonly internalType: "ChannelID";
186
+ }, {
187
+ readonly name: "nonce";
188
+ readonly type: "uint64";
189
+ readonly internalType: "uint64";
190
+ }, {
191
+ readonly name: "command";
192
+ readonly type: "uint8";
193
+ readonly internalType: "enum Command";
194
+ }, {
195
+ readonly name: "params";
196
+ readonly type: "bytes";
197
+ readonly internalType: "bytes";
198
+ }, {
199
+ readonly name: "maxDispatchGas";
200
+ readonly type: "uint64";
201
+ readonly internalType: "uint64";
202
+ }, {
203
+ readonly name: "maxFeePerGas";
204
+ readonly type: "uint256";
205
+ readonly internalType: "uint256";
206
+ }, {
207
+ readonly name: "reward";
208
+ readonly type: "uint256";
209
+ readonly internalType: "uint256";
210
+ }, {
211
+ readonly name: "id";
212
+ readonly type: "bytes32";
213
+ readonly internalType: "bytes32";
214
+ }];
215
+ }, {
216
+ readonly name: "leafProof";
217
+ readonly type: "bytes32[]";
218
+ readonly internalType: "bytes32[]";
219
+ }, {
220
+ readonly name: "headerProof";
221
+ readonly type: "tuple";
222
+ readonly internalType: "struct Verification.Proof";
223
+ readonly components: readonly [{
224
+ readonly name: "header";
225
+ readonly type: "tuple";
226
+ readonly internalType: "struct Verification.ParachainHeader";
227
+ readonly components: readonly [{
228
+ readonly name: "parentHash";
229
+ readonly type: "bytes32";
230
+ readonly internalType: "bytes32";
231
+ }, {
232
+ readonly name: "number";
233
+ readonly type: "uint256";
234
+ readonly internalType: "uint256";
235
+ }, {
236
+ readonly name: "stateRoot";
237
+ readonly type: "bytes32";
238
+ readonly internalType: "bytes32";
239
+ }, {
240
+ readonly name: "extrinsicsRoot";
241
+ readonly type: "bytes32";
242
+ readonly internalType: "bytes32";
243
+ }, {
244
+ readonly name: "digestItems";
245
+ readonly type: "tuple[]";
246
+ readonly internalType: "struct Verification.DigestItem[]";
247
+ readonly components: readonly [{
248
+ readonly name: "kind";
249
+ readonly type: "uint256";
250
+ readonly internalType: "uint256";
251
+ }, {
252
+ readonly name: "consensusEngineID";
253
+ readonly type: "bytes4";
254
+ readonly internalType: "bytes4";
255
+ }, {
256
+ readonly name: "data";
257
+ readonly type: "bytes";
258
+ readonly internalType: "bytes";
259
+ }];
260
+ }];
261
+ }, {
262
+ readonly name: "headProof";
263
+ readonly type: "tuple";
264
+ readonly internalType: "struct Verification.HeadProof";
265
+ readonly components: readonly [{
266
+ readonly name: "pos";
267
+ readonly type: "uint256";
268
+ readonly internalType: "uint256";
269
+ }, {
270
+ readonly name: "width";
271
+ readonly type: "uint256";
272
+ readonly internalType: "uint256";
273
+ }, {
274
+ readonly name: "proof";
275
+ readonly type: "bytes32[]";
276
+ readonly internalType: "bytes32[]";
277
+ }];
278
+ }, {
279
+ readonly name: "leafPartial";
280
+ readonly type: "tuple";
281
+ readonly internalType: "struct Verification.MMRLeafPartial";
282
+ readonly components: readonly [{
283
+ readonly name: "version";
284
+ readonly type: "uint8";
285
+ readonly internalType: "uint8";
286
+ }, {
287
+ readonly name: "parentNumber";
288
+ readonly type: "uint32";
289
+ readonly internalType: "uint32";
290
+ }, {
291
+ readonly name: "parentHash";
292
+ readonly type: "bytes32";
293
+ readonly internalType: "bytes32";
294
+ }, {
295
+ readonly name: "nextAuthoritySetID";
296
+ readonly type: "uint64";
297
+ readonly internalType: "uint64";
298
+ }, {
299
+ readonly name: "nextAuthoritySetLen";
300
+ readonly type: "uint32";
301
+ readonly internalType: "uint32";
302
+ }, {
303
+ readonly name: "nextAuthoritySetRoot";
304
+ readonly type: "bytes32";
305
+ readonly internalType: "bytes32";
306
+ }];
307
+ }, {
308
+ readonly name: "leafProof";
309
+ readonly type: "bytes32[]";
310
+ readonly internalType: "bytes32[]";
311
+ }, {
312
+ readonly name: "leafProofOrder";
313
+ readonly type: "uint256";
314
+ readonly internalType: "uint256";
315
+ }];
316
+ }];
317
+ readonly outputs: readonly [];
318
+ readonly stateMutability: "nonpayable";
319
+ }, {
320
+ readonly type: "event";
321
+ readonly name: "AgentCreated";
322
+ readonly inputs: readonly [{
323
+ readonly name: "agentID";
324
+ readonly type: "bytes32";
325
+ readonly indexed: false;
326
+ readonly internalType: "bytes32";
327
+ }, {
328
+ readonly name: "agent";
329
+ readonly type: "address";
330
+ readonly indexed: false;
331
+ readonly internalType: "address";
332
+ }];
333
+ readonly anonymous: false;
334
+ }, {
335
+ readonly type: "event";
336
+ readonly name: "AgentFundsWithdrawn";
337
+ readonly inputs: readonly [{
338
+ readonly name: "agentID";
339
+ readonly type: "bytes32";
340
+ readonly indexed: true;
341
+ readonly internalType: "bytes32";
342
+ }, {
343
+ readonly name: "recipient";
344
+ readonly type: "address";
345
+ readonly indexed: true;
346
+ readonly internalType: "address";
347
+ }, {
348
+ readonly name: "amount";
349
+ readonly type: "uint256";
350
+ readonly indexed: false;
351
+ readonly internalType: "uint256";
352
+ }];
353
+ readonly anonymous: false;
354
+ }, {
355
+ readonly type: "event";
356
+ readonly name: "ChannelCreated";
357
+ readonly inputs: readonly [{
358
+ readonly name: "channelID";
359
+ readonly type: "bytes32";
360
+ readonly indexed: true;
361
+ readonly internalType: "ChannelID";
362
+ }];
363
+ readonly anonymous: false;
364
+ }, {
365
+ readonly type: "event";
366
+ readonly name: "ChannelUpdated";
367
+ readonly inputs: readonly [{
368
+ readonly name: "channelID";
369
+ readonly type: "bytes32";
370
+ readonly indexed: true;
371
+ readonly internalType: "ChannelID";
372
+ }];
373
+ readonly anonymous: false;
374
+ }, {
375
+ readonly type: "event";
376
+ readonly name: "InboundMessageDispatched";
377
+ readonly inputs: readonly [{
378
+ readonly name: "channelID";
379
+ readonly type: "bytes32";
380
+ readonly indexed: true;
381
+ readonly internalType: "ChannelID";
382
+ }, {
383
+ readonly name: "nonce";
384
+ readonly type: "uint64";
385
+ readonly indexed: false;
386
+ readonly internalType: "uint64";
387
+ }, {
388
+ readonly name: "messageID";
389
+ readonly type: "bytes32";
390
+ readonly indexed: true;
391
+ readonly internalType: "bytes32";
392
+ }, {
393
+ readonly name: "success";
394
+ readonly type: "bool";
395
+ readonly indexed: false;
396
+ readonly internalType: "bool";
397
+ }];
398
+ readonly anonymous: false;
399
+ }, {
400
+ readonly type: "event";
401
+ readonly name: "OperatingModeChanged";
402
+ readonly inputs: readonly [{
403
+ readonly name: "mode";
404
+ readonly type: "uint8";
405
+ readonly indexed: false;
406
+ readonly internalType: "enum OperatingMode";
407
+ }];
408
+ readonly anonymous: false;
409
+ }, {
410
+ readonly type: "event";
411
+ readonly name: "OutboundMessageAccepted";
412
+ readonly inputs: readonly [{
413
+ readonly name: "channelID";
414
+ readonly type: "bytes32";
415
+ readonly indexed: true;
416
+ readonly internalType: "ChannelID";
417
+ }, {
418
+ readonly name: "nonce";
419
+ readonly type: "uint64";
420
+ readonly indexed: false;
421
+ readonly internalType: "uint64";
422
+ }, {
423
+ readonly name: "messageID";
424
+ readonly type: "bytes32";
425
+ readonly indexed: true;
426
+ readonly internalType: "bytes32";
427
+ }, {
428
+ readonly name: "payload";
429
+ readonly type: "bytes";
430
+ readonly indexed: false;
431
+ readonly internalType: "bytes";
432
+ }];
433
+ readonly anonymous: false;
434
+ }, {
435
+ readonly type: "event";
436
+ readonly name: "PricingParametersChanged";
437
+ readonly inputs: readonly [];
438
+ readonly anonymous: false;
439
+ }, {
440
+ readonly type: "event";
441
+ readonly name: "TokenRegistrationSent";
442
+ readonly inputs: readonly [{
443
+ readonly name: "token";
444
+ readonly type: "address";
445
+ readonly indexed: false;
446
+ readonly internalType: "address";
447
+ }];
448
+ readonly anonymous: false;
449
+ }, {
450
+ readonly type: "event";
451
+ readonly name: "TokenSent";
452
+ readonly inputs: readonly [{
453
+ readonly name: "token";
454
+ readonly type: "address";
455
+ readonly indexed: true;
456
+ readonly internalType: "address";
457
+ }, {
458
+ readonly name: "sender";
459
+ readonly type: "address";
460
+ readonly indexed: true;
461
+ readonly internalType: "address";
462
+ }, {
463
+ readonly name: "destinationChain";
464
+ readonly type: "uint32";
465
+ readonly indexed: true;
466
+ readonly internalType: "ParaID";
467
+ }, {
468
+ readonly name: "destinationAddress";
469
+ readonly type: "tuple";
470
+ readonly indexed: false;
471
+ readonly internalType: "struct MultiAddress";
472
+ readonly components: readonly [{
473
+ readonly name: "kind";
474
+ readonly type: "uint8";
475
+ readonly internalType: "enum Kind";
476
+ }, {
477
+ readonly name: "data";
478
+ readonly type: "bytes";
479
+ readonly internalType: "bytes";
480
+ }];
481
+ }, {
482
+ readonly name: "amount";
483
+ readonly type: "uint128";
484
+ readonly indexed: false;
485
+ readonly internalType: "uint128";
486
+ }];
487
+ readonly anonymous: false;
488
+ }, {
489
+ readonly type: "event";
490
+ readonly name: "TokenTransferFeesChanged";
491
+ readonly inputs: readonly [];
492
+ readonly anonymous: false;
493
+ }, {
494
+ readonly type: "event";
495
+ readonly name: "Upgraded";
496
+ readonly inputs: readonly [{
497
+ readonly name: "implementation";
498
+ readonly type: "address";
499
+ readonly indexed: true;
500
+ readonly internalType: "address";
501
+ }];
502
+ readonly anonymous: false;
503
+ }];
504
+ static createInterface(): IGatewayInterface;
505
+ static connect(address: string, runner?: ContractRunner | null): IGateway;
506
+ }
507
+ //# sourceMappingURL=IGateway__factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IGateway__factory.d.ts","sourceRoot":"","sources":["../../src/factories/IGateway__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAuoB/D,qBAAa,iBAAiB;IAC5B,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,iBAAiB;IAG3C,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,QAAQ;CAG1E"}