@instadapp/interop-x 0.0.0-dev.14afa72 → 0.0.0-dev.1f933be

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 (74) hide show
  1. package/dist/package.json +2 -2
  2. package/dist/src/abi/index.js +2 -4
  3. package/dist/src/abi/interopXContract.json +391 -0
  4. package/dist/src/alias.js +10 -0
  5. package/dist/src/constants/addresses.js +3 -3
  6. package/dist/src/constants/index.js +0 -1
  7. package/dist/src/db/models/transaction.js +19 -9
  8. package/dist/src/gnosis/actions/index.js +0 -2
  9. package/dist/src/gnosis/actions/withdraw/index.js +41 -0
  10. package/dist/src/gnosis/index.js +1 -1
  11. package/dist/src/index.js +7 -19
  12. package/dist/src/net/protocol/dial/SignatureDialProtocol.js +4 -0
  13. package/dist/src/net/protocol/dial/TransactionStatusDialProtocol.js +2 -0
  14. package/dist/src/net/protocol/index.js +11 -1
  15. package/dist/src/tasks/{InteropBridge/ProcessWithdrawEvents.js → InteropXContract/ProcessBridgeRequestEvents.js} +32 -47
  16. package/dist/src/tasks/InteropXContract/SyncBridgeRequestEvents.js +78 -0
  17. package/dist/src/tasks/Transactions/SyncTransactionStatusTask.js +2 -0
  18. package/dist/src/tasks/index.js +10 -30
  19. package/dist/src/typechain/{InteropBridgeToken.js → InteropXContract.js} +0 -0
  20. package/dist/src/typechain/factories/InteropXContract__factory.js +526 -0
  21. package/dist/src/typechain/factories/index.js +3 -5
  22. package/dist/src/typechain/index.js +3 -5
  23. package/dist/src/utils/index.js +14 -3
  24. package/package.json +2 -2
  25. package/src/abi/index.ts +2 -4
  26. package/src/abi/interopXContract.json +391 -0
  27. package/src/alias.ts +6 -0
  28. package/src/constants/addresses.ts +3 -3
  29. package/src/constants/index.ts +0 -1
  30. package/src/db/models/transaction.ts +49 -21
  31. package/src/gnosis/actions/index.ts +0 -2
  32. package/src/gnosis/actions/withdraw/index.ts +56 -0
  33. package/src/gnosis/index.ts +2 -2
  34. package/src/index.ts +6 -18
  35. package/src/net/protocol/dial/SignatureDialProtocol.ts +4 -0
  36. package/src/net/protocol/dial/TransactionStatusDialProtocol.ts +3 -1
  37. package/src/net/protocol/index.ts +13 -3
  38. package/src/tasks/{InteropBridge/ProcessWithdrawEvents.ts → InteropXContract/ProcessBridgeRequestEvents.ts} +58 -96
  39. package/src/tasks/InteropXContract/SyncBridgeRequestEvents.ts +116 -0
  40. package/src/tasks/Transactions/SyncTransactionStatusTask.ts +2 -0
  41. package/src/tasks/index.ts +12 -39
  42. package/src/typechain/InteropXContract.ts +524 -0
  43. package/src/typechain/factories/InteropXContract__factory.ts +533 -0
  44. package/src/typechain/factories/index.ts +1 -2
  45. package/src/typechain/index.ts +2 -4
  46. package/src/utils/index.ts +45 -3
  47. package/tsconfig.json +7 -2
  48. package/dist/src/abi/interopBridgeToken.json +0 -298
  49. package/dist/src/abi/interopXGateway.json +0 -184
  50. package/dist/src/constants/itokens.js +0 -13
  51. package/dist/src/gnosis/actions/deposit.js +0 -48
  52. package/dist/src/gnosis/actions/withdraw.js +0 -50
  53. package/dist/src/tasks/InteropBridge/SyncBurnEvents.js +0 -71
  54. package/dist/src/tasks/InteropBridge/SyncMintEvents.js +0 -67
  55. package/dist/src/tasks/InteropXGateway/ProcessDepositEvents.js +0 -164
  56. package/dist/src/tasks/InteropXGateway/SyncDepositEvents.js +0 -74
  57. package/dist/src/tasks/InteropXGateway/SyncWithdrawtEvents.js +0 -72
  58. package/dist/src/typechain/InteropXGateway.js +0 -2
  59. package/dist/src/typechain/factories/InteropBridgeToken__factory.js +0 -471
  60. package/dist/src/typechain/factories/InteropXGateway__factory.js +0 -265
  61. package/src/abi/interopBridgeToken.json +0 -298
  62. package/src/abi/interopXGateway.json +0 -184
  63. package/src/constants/itokens.ts +0 -10
  64. package/src/gnosis/actions/deposit.ts +0 -63
  65. package/src/gnosis/actions/withdraw.ts +0 -67
  66. package/src/tasks/InteropBridge/SyncBurnEvents.ts +0 -119
  67. package/src/tasks/InteropBridge/SyncMintEvents.ts +0 -99
  68. package/src/tasks/InteropXGateway/ProcessDepositEvents.ts +0 -260
  69. package/src/tasks/InteropXGateway/SyncDepositEvents.ts +0 -124
  70. package/src/tasks/InteropXGateway/SyncWithdrawtEvents.ts +0 -105
  71. package/src/typechain/InteropBridgeToken.ts +0 -692
  72. package/src/typechain/InteropXGateway.ts +0 -407
  73. package/src/typechain/factories/InteropBridgeToken__factory.ts +0 -478
  74. package/src/typechain/factories/InteropXGateway__factory.ts +0 -272
@@ -0,0 +1,526 @@
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;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InteropXGateway__factory = exports.InteropBridgeToken__factory = exports.GnosisSafe__factory = exports.Erc20__factory = void 0;
3
+ exports.InteropXContract__factory = exports.GnosisSafe__factory = exports.Erc20__factory = void 0;
4
4
  /* Autogenerated file. Do not edit manually. */
5
5
  /* tslint:disable */
6
6
  /* eslint-disable */
@@ -8,7 +8,5 @@ var Erc20__factory_1 = require("./Erc20__factory");
8
8
  Object.defineProperty(exports, "Erc20__factory", { enumerable: true, get: function () { return Erc20__factory_1.Erc20__factory; } });
9
9
  var GnosisSafe__factory_1 = require("./GnosisSafe__factory");
10
10
  Object.defineProperty(exports, "GnosisSafe__factory", { enumerable: true, get: function () { return GnosisSafe__factory_1.GnosisSafe__factory; } });
11
- var InteropBridgeToken__factory_1 = require("./InteropBridgeToken__factory");
12
- Object.defineProperty(exports, "InteropBridgeToken__factory", { enumerable: true, get: function () { return InteropBridgeToken__factory_1.InteropBridgeToken__factory; } });
13
- var InteropXGateway__factory_1 = require("./InteropXGateway__factory");
14
- Object.defineProperty(exports, "InteropXGateway__factory", { enumerable: true, get: function () { return InteropXGateway__factory_1.InteropXGateway__factory; } });
11
+ var InteropXContract__factory_1 = require("./InteropXContract__factory");
12
+ Object.defineProperty(exports, "InteropXContract__factory", { enumerable: true, get: function () { return InteropXContract__factory_1.InteropXContract__factory; } });
@@ -23,13 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.InteropXGateway__factory = exports.InteropBridgeToken__factory = exports.GnosisSafe__factory = exports.Erc20__factory = exports.factories = void 0;
26
+ exports.InteropXContract__factory = exports.GnosisSafe__factory = exports.Erc20__factory = exports.factories = void 0;
27
27
  exports.factories = __importStar(require("./factories"));
28
28
  var Erc20__factory_1 = require("./factories/Erc20__factory");
29
29
  Object.defineProperty(exports, "Erc20__factory", { enumerable: true, get: function () { return Erc20__factory_1.Erc20__factory; } });
30
30
  var GnosisSafe__factory_1 = require("./factories/GnosisSafe__factory");
31
31
  Object.defineProperty(exports, "GnosisSafe__factory", { enumerable: true, get: function () { return GnosisSafe__factory_1.GnosisSafe__factory; } });
32
- var InteropBridgeToken__factory_1 = require("./factories/InteropBridgeToken__factory");
33
- Object.defineProperty(exports, "InteropBridgeToken__factory", { enumerable: true, get: function () { return InteropBridgeToken__factory_1.InteropBridgeToken__factory; } });
34
- var InteropXGateway__factory_1 = require("./factories/InteropXGateway__factory");
35
- Object.defineProperty(exports, "InteropXGateway__factory", { enumerable: true, get: function () { return InteropXGateway__factory_1.InteropXGateway__factory; } });
32
+ var InteropXContract__factory_1 = require("./factories/InteropXContract__factory");
33
+ Object.defineProperty(exports, "InteropXContract__factory", { enumerable: true, get: function () { return InteropXContract__factory_1.InteropXContract__factory; } });
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getContract = exports.generateInteropTransactionHash = exports.asyncCallWithTimeout = exports.buildSignatureBytes = exports.getRpcProviderUrl = exports.signGnosisSafeTx = exports.short = exports.shortenHash = exports.http = void 0;
6
+ exports.generateGnosisTransaction = exports.getContract = exports.generateInteropTransactionHash = exports.asyncCallWithTimeout = exports.buildSignatureBytes = exports.getRpcProviderUrl = exports.signGnosisSafeTx = exports.short = exports.shortenHash = exports.http = void 0;
7
7
  /**
8
8
  * @module util
9
9
  */
@@ -101,9 +101,10 @@ const asyncCallWithTimeout = async (asyncPromise, timeout) => {
101
101
  };
102
102
  exports.asyncCallWithTimeout = asyncCallWithTimeout;
103
103
  const generateInteropTransactionHash = (data) => {
104
- return ethers_1.ethers.utils.solidityKeccak256(['string', 'string', 'string', 'string'], [
104
+ return ethers_1.ethers.utils.solidityKeccak256(['string', 'string', 'string', 'string', 'string'], [
105
105
  String(data.action),
106
- String(data.submitTransactionHash),
106
+ String(data.bridger),
107
+ String(data.requestTransactionHash),
107
108
  String(data.sourceChainId),
108
109
  String(data.targetChainId),
109
110
  ]);
@@ -155,3 +156,13 @@ function getContract(address, contractInterface, signerOrProvider) {
155
156
  });
156
157
  }
157
158
  exports.getContract = getContract;
159
+ const generateGnosisTransaction = async (transactionData, safeContract) => {
160
+ console.log(transactionData);
161
+ let isExecuted = await safeContract.dataHashes(await safeContract.getTransactionHash(transactionData.to, transactionData.value, transactionData.data, transactionData.operation, transactionData.safeTxGas, transactionData.baseGas, transactionData.gasPrice, transactionData.gasToken, transactionData.refundReceiver, transactionData.nonce));
162
+ while (isExecuted == 1) {
163
+ transactionData.safeTxGas = ethers_1.ethers.BigNumber.from(String(transactionData.safeTxGas)).add(1).toString();
164
+ isExecuted = await safeContract.dataHashes(await safeContract.getTransactionHash(transactionData.to, transactionData.value, transactionData.data, transactionData.operation, transactionData.safeTxGas, transactionData.baseGas, transactionData.gasPrice, transactionData.gasToken, transactionData.refundReceiver, transactionData.nonce));
165
+ }
166
+ return transactionData;
167
+ };
168
+ exports.generateGnosisTransaction = generateGnosisTransaction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instadapp/interop-x",
3
- "version": "0.0.0-dev.14afa72",
3
+ "version": "0.0.0-dev.1f933be",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -11,7 +11,7 @@
11
11
  "start": "yarn build && node bin/interop-x",
12
12
  "build": "yarn generate-abi-types && export GIT_REF=$(git rev-parse --short HEAD) && rimraf ./dist && tsc -p tsconfig.json && replace-in-file '@GIT_SHORT_HASH@' $GIT_REF ./dist/**/*.js",
13
13
  "dev": "yarn generate-abi-types && NODE_ENV=development nodemon",
14
- "generate-abi-types": "typechain --target=ethers-v5 'src/abi/*.json' --out-dir 'src/typechain'",
14
+ "generate-abi-types": "rimraf src/typechain && typechain --target=ethers-v5 'src/abi/*.json' --out-dir 'src/typechain'",
15
15
  "prepublishOnly": "yarn build",
16
16
  "postinstall": "patch-package"
17
17
  },
package/src/abi/index.ts CHANGED
@@ -1,11 +1,9 @@
1
1
  import gnosisSafe from "./gnosisSafe.json";
2
2
  import erc20 from "./erc20.json";
3
- import interopXGateway from "./interopXGateway.json";
4
- import interopBridgeToken from "./interopBridgeToken.json";
3
+ import interopXContract from "./interopXContract.json";
5
4
 
6
5
  export default {
7
6
  gnosisSafe,
8
7
  erc20,
9
- interopXGateway,
10
- interopBridgeToken,
8
+ interopXContract,
11
9
  }