@instadapp/interop-x 0.0.0-dev.a861339 → 0.0.0-dev.a9cd1d2

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 (44) hide show
  1. package/dist/package.json +12 -11
  2. package/dist/src/abi/index.js +2 -2
  3. package/dist/src/abi/interopX.json +1436 -0
  4. package/dist/src/api/index.js +1 -1
  5. package/dist/src/constants/addresses.js +2 -7
  6. package/dist/src/constants/tokens.js +62 -39
  7. package/dist/src/db/models/transaction.js +10 -10
  8. package/dist/src/gnosis/actions/withdraw/index.js +106 -33
  9. package/dist/src/gnosis/index.js +3 -3
  10. package/dist/src/index.js +1 -1
  11. package/dist/src/tasks/{InteropXContract/SyncBridgeRequestEvents.js → InteropX/SyncLogSubmitEvents.js} +20 -14
  12. package/dist/src/tasks/Transactions/SyncTransactionStatusTask.js +4 -2
  13. package/dist/src/tasks/index.js +4 -10
  14. package/dist/src/typechain/{InteropXContract.js → InteropX.js} +0 -0
  15. package/dist/src/typechain/factories/InteropX__factory.js +1928 -0
  16. package/dist/src/typechain/factories/index.js +3 -3
  17. package/dist/src/typechain/index.js +3 -3
  18. package/dist/src/utils/index.js +36 -9
  19. package/package.json +12 -11
  20. package/src/abi/index.ts +2 -2
  21. package/src/abi/interopX.json +1436 -0
  22. package/src/api/index.ts +1 -1
  23. package/src/constants/addresses.ts +3 -8
  24. package/src/constants/tokens.ts +63 -40
  25. package/src/db/models/transaction.ts +29 -34
  26. package/src/gnosis/actions/withdraw/index.ts +141 -42
  27. package/src/gnosis/index.ts +3 -3
  28. package/src/tasks/{InteropXContract/SyncBridgeRequestEvents.ts → InteropX/SyncLogSubmitEvents.ts} +39 -19
  29. package/src/tasks/Transactions/SyncTransactionStatusTask.ts +4 -2
  30. package/src/tasks/index.ts +5 -13
  31. package/src/typechain/InteropX.ts +1216 -0
  32. package/src/typechain/factories/InteropX__factory.ts +1932 -0
  33. package/src/typechain/factories/index.ts +1 -1
  34. package/src/typechain/index.ts +2 -2
  35. package/src/utils/index.ts +88 -39
  36. package/dist/src/abi/interopXContract.json +0 -391
  37. package/dist/src/tasks/InteropXContract/ProcessBridgeRequestEvents.js +0 -147
  38. package/dist/src/tasks/InteropXContract/SyncBridgeRequestSentEvents.js +0 -80
  39. package/dist/src/typechain/factories/InteropXContract__factory.js +0 -526
  40. package/src/abi/interopXContract.json +0 -391
  41. package/src/tasks/InteropXContract/ProcessBridgeRequestEvents.ts +0 -211
  42. package/src/tasks/InteropXContract/SyncBridgeRequestSentEvents.ts +0 -112
  43. package/src/typechain/InteropXContract.ts +0 -524
  44. package/src/typechain/factories/InteropXContract__factory.ts +0 -533
@@ -1,526 +0,0 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.InteropXContract__factory = void 0;
7
- const ethers_1 = require("ethers");
8
- const _abi = [
9
- {
10
- anonymous: false,
11
- inputs: [
12
- {
13
- indexed: true,
14
- internalType: "address",
15
- name: "bridger",
16
- type: "address",
17
- },
18
- {
19
- components: [
20
- {
21
- components: [
22
- {
23
- internalType: "address",
24
- name: "sourceToken",
25
- type: "address",
26
- },
27
- {
28
- internalType: "address",
29
- name: "targetToken",
30
- type: "address",
31
- },
32
- {
33
- internalType: "uint256",
34
- name: "amount",
35
- type: "uint256",
36
- },
37
- ],
38
- internalType: "struct InteropXContractBeta.TokenInfo[]",
39
- name: "supply",
40
- type: "tuple[]",
41
- },
42
- {
43
- components: [
44
- {
45
- internalType: "address",
46
- name: "sourceToken",
47
- type: "address",
48
- },
49
- {
50
- internalType: "address",
51
- name: "targetToken",
52
- type: "address",
53
- },
54
- {
55
- internalType: "uint256",
56
- name: "amount",
57
- type: "uint256",
58
- },
59
- ],
60
- internalType: "struct InteropXContractBeta.TokenInfo[]",
61
- name: "withdraw",
62
- type: "tuple[]",
63
- },
64
- ],
65
- indexed: false,
66
- internalType: "struct InteropXContractBeta.Position",
67
- name: "position",
68
- type: "tuple",
69
- },
70
- {
71
- indexed: true,
72
- internalType: "uint32",
73
- name: "sourceChainId",
74
- type: "uint32",
75
- },
76
- {
77
- indexed: false,
78
- internalType: "uint32",
79
- name: "targetChainId",
80
- type: "uint32",
81
- },
82
- {
83
- indexed: true,
84
- internalType: "bytes32",
85
- name: "requestTransactionHash",
86
- type: "bytes32",
87
- },
88
- {
89
- indexed: false,
90
- internalType: "bytes",
91
- name: "metadata",
92
- type: "bytes",
93
- },
94
- ],
95
- name: "LogBridgeCommitted",
96
- type: "event",
97
- },
98
- {
99
- anonymous: false,
100
- inputs: [
101
- {
102
- indexed: true,
103
- internalType: "address",
104
- name: "bridger",
105
- type: "address",
106
- },
107
- {
108
- components: [
109
- {
110
- components: [
111
- {
112
- internalType: "address",
113
- name: "sourceToken",
114
- type: "address",
115
- },
116
- {
117
- internalType: "address",
118
- name: "targetToken",
119
- type: "address",
120
- },
121
- {
122
- internalType: "uint256",
123
- name: "amount",
124
- type: "uint256",
125
- },
126
- ],
127
- internalType: "struct InteropXContractBeta.TokenInfo[]",
128
- name: "supply",
129
- type: "tuple[]",
130
- },
131
- {
132
- components: [
133
- {
134
- internalType: "address",
135
- name: "sourceToken",
136
- type: "address",
137
- },
138
- {
139
- internalType: "address",
140
- name: "targetToken",
141
- type: "address",
142
- },
143
- {
144
- internalType: "uint256",
145
- name: "amount",
146
- type: "uint256",
147
- },
148
- ],
149
- internalType: "struct InteropXContractBeta.TokenInfo[]",
150
- name: "withdraw",
151
- type: "tuple[]",
152
- },
153
- ],
154
- indexed: false,
155
- internalType: "struct InteropXContractBeta.Position",
156
- name: "position",
157
- type: "tuple",
158
- },
159
- {
160
- indexed: false,
161
- internalType: "uint256",
162
- name: "sourceChainId",
163
- type: "uint256",
164
- },
165
- {
166
- indexed: true,
167
- internalType: "uint256",
168
- name: "targetChainId",
169
- type: "uint256",
170
- },
171
- {
172
- indexed: true,
173
- internalType: "bytes32",
174
- name: "requestTransactionHash",
175
- type: "bytes32",
176
- },
177
- {
178
- indexed: false,
179
- internalType: "bytes32",
180
- name: "targetCommittedTransactionHash",
181
- type: "bytes32",
182
- },
183
- {
184
- indexed: false,
185
- internalType: "bytes",
186
- name: "metadata",
187
- type: "bytes",
188
- },
189
- ],
190
- name: "LogBridgeCompleted",
191
- type: "event",
192
- },
193
- {
194
- anonymous: false,
195
- inputs: [
196
- {
197
- indexed: true,
198
- internalType: "address",
199
- name: "bridger",
200
- type: "address",
201
- },
202
- {
203
- components: [
204
- {
205
- components: [
206
- {
207
- internalType: "address",
208
- name: "sourceToken",
209
- type: "address",
210
- },
211
- {
212
- internalType: "address",
213
- name: "targetToken",
214
- type: "address",
215
- },
216
- {
217
- internalType: "uint256",
218
- name: "amount",
219
- type: "uint256",
220
- },
221
- ],
222
- internalType: "struct InteropXContractBeta.TokenInfo[]",
223
- name: "supply",
224
- type: "tuple[]",
225
- },
226
- {
227
- components: [
228
- {
229
- internalType: "address",
230
- name: "sourceToken",
231
- type: "address",
232
- },
233
- {
234
- internalType: "address",
235
- name: "targetToken",
236
- type: "address",
237
- },
238
- {
239
- internalType: "uint256",
240
- name: "amount",
241
- type: "uint256",
242
- },
243
- ],
244
- internalType: "struct InteropXContractBeta.TokenInfo[]",
245
- name: "withdraw",
246
- type: "tuple[]",
247
- },
248
- ],
249
- indexed: false,
250
- internalType: "struct InteropXContractBeta.Position",
251
- name: "position",
252
- type: "tuple",
253
- },
254
- {
255
- indexed: false,
256
- internalType: "uint256",
257
- name: "sourceChainId",
258
- type: "uint256",
259
- },
260
- {
261
- indexed: true,
262
- internalType: "uint256",
263
- name: "targetChainId",
264
- type: "uint256",
265
- },
266
- {
267
- indexed: false,
268
- internalType: "bytes",
269
- name: "metadata",
270
- type: "bytes",
271
- },
272
- ],
273
- name: "LogBridgeRequest",
274
- type: "event",
275
- },
276
- {
277
- anonymous: false,
278
- inputs: [
279
- {
280
- indexed: true,
281
- internalType: "address",
282
- name: "bridger",
283
- type: "address",
284
- },
285
- {
286
- components: [
287
- {
288
- components: [
289
- {
290
- internalType: "address",
291
- name: "sourceToken",
292
- type: "address",
293
- },
294
- {
295
- internalType: "address",
296
- name: "targetToken",
297
- type: "address",
298
- },
299
- {
300
- internalType: "uint256",
301
- name: "amount",
302
- type: "uint256",
303
- },
304
- ],
305
- internalType: "struct InteropXContractBeta.TokenInfo[]",
306
- name: "supply",
307
- type: "tuple[]",
308
- },
309
- {
310
- components: [
311
- {
312
- internalType: "address",
313
- name: "sourceToken",
314
- type: "address",
315
- },
316
- {
317
- internalType: "address",
318
- name: "targetToken",
319
- type: "address",
320
- },
321
- {
322
- internalType: "uint256",
323
- name: "amount",
324
- type: "uint256",
325
- },
326
- ],
327
- internalType: "struct InteropXContractBeta.TokenInfo[]",
328
- name: "withdraw",
329
- type: "tuple[]",
330
- },
331
- ],
332
- indexed: false,
333
- internalType: "struct InteropXContractBeta.Position",
334
- name: "position",
335
- type: "tuple",
336
- },
337
- {
338
- indexed: false,
339
- internalType: "uint32",
340
- name: "sourceChainId",
341
- type: "uint32",
342
- },
343
- {
344
- indexed: true,
345
- internalType: "uint32",
346
- name: "targetChainId",
347
- type: "uint32",
348
- },
349
- {
350
- indexed: true,
351
- internalType: "bytes32",
352
- name: "requestTransactionHash",
353
- type: "bytes32",
354
- },
355
- {
356
- indexed: false,
357
- internalType: "bytes",
358
- name: "metadata",
359
- type: "bytes",
360
- },
361
- ],
362
- name: "LogBridgeRequestSent",
363
- type: "event",
364
- },
365
- {
366
- inputs: [],
367
- name: "_vnonce",
368
- outputs: [
369
- {
370
- internalType: "uint256",
371
- name: "",
372
- type: "uint256",
373
- },
374
- ],
375
- stateMutability: "view",
376
- type: "function",
377
- },
378
- {
379
- inputs: [
380
- {
381
- internalType: "address",
382
- name: "to_",
383
- type: "address",
384
- },
385
- {
386
- internalType: "address",
387
- name: "sourceToken_",
388
- type: "address",
389
- },
390
- {
391
- internalType: "address",
392
- name: "targetToken_",
393
- type: "address",
394
- },
395
- {
396
- internalType: "uint256",
397
- name: "amount_",
398
- type: "uint256",
399
- },
400
- {
401
- internalType: "uint32",
402
- name: "targetChainId_",
403
- type: "uint32",
404
- },
405
- {
406
- internalType: "bytes32",
407
- name: "transactionHash_",
408
- type: "bytes32",
409
- },
410
- {
411
- internalType: "bytes",
412
- name: "metadata_",
413
- type: "bytes",
414
- },
415
- ],
416
- name: "completeBridge",
417
- outputs: [],
418
- stateMutability: "nonpayable",
419
- type: "function",
420
- },
421
- {
422
- inputs: [
423
- {
424
- internalType: "address",
425
- name: "sourceToken_",
426
- type: "address",
427
- },
428
- {
429
- internalType: "address",
430
- name: "targetToken_",
431
- type: "address",
432
- },
433
- {
434
- internalType: "uint256",
435
- name: "amount_",
436
- type: "uint256",
437
- },
438
- {
439
- internalType: "uint32",
440
- name: "targetChainId_",
441
- type: "uint32",
442
- },
443
- {
444
- internalType: "bytes",
445
- name: "metadata_",
446
- type: "bytes",
447
- },
448
- ],
449
- name: "requestWithdraw",
450
- outputs: [],
451
- stateMutability: "nonpayable",
452
- type: "function",
453
- },
454
- {
455
- inputs: [
456
- {
457
- internalType: "address",
458
- name: "",
459
- type: "address",
460
- },
461
- ],
462
- name: "whitelistedMapping",
463
- outputs: [
464
- {
465
- internalType: "uint256",
466
- name: "",
467
- type: "uint256",
468
- },
469
- ],
470
- stateMutability: "view",
471
- type: "function",
472
- },
473
- {
474
- inputs: [
475
- {
476
- internalType: "address",
477
- name: "user_",
478
- type: "address",
479
- },
480
- {
481
- internalType: "address",
482
- name: "sourceToken_",
483
- type: "address",
484
- },
485
- {
486
- internalType: "address",
487
- name: "targetToken_",
488
- type: "address",
489
- },
490
- {
491
- internalType: "uint256",
492
- name: "amount_",
493
- type: "uint256",
494
- },
495
- {
496
- internalType: "uint32",
497
- name: "chainId_",
498
- type: "uint32",
499
- },
500
- {
501
- internalType: "bytes32",
502
- name: "transactionHash_",
503
- type: "bytes32",
504
- },
505
- {
506
- internalType: "bytes",
507
- name: "metadata_",
508
- type: "bytes",
509
- },
510
- ],
511
- name: "withdrawRequested",
512
- outputs: [],
513
- stateMutability: "nonpayable",
514
- type: "function",
515
- },
516
- ];
517
- class InteropXContract__factory {
518
- static createInterface() {
519
- return new ethers_1.utils.Interface(_abi);
520
- }
521
- static connect(address, signerOrProvider) {
522
- return new ethers_1.Contract(address, _abi, signerOrProvider);
523
- }
524
- }
525
- exports.InteropXContract__factory = InteropXContract__factory;
526
- InteropXContract__factory.abi = _abi;