@instadapp/interop-x 0.0.0-dev.b8c571d → 0.0.0-dev.bfeca30
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/package.json +18 -16
- package/dist/src/abi/index.js +2 -4
- package/dist/src/abi/interopXContract.json +454 -0
- package/dist/src/alias.js +10 -0
- package/dist/src/api/index.js +6 -3
- package/dist/src/config/index.js +11 -1
- package/dist/src/constants/addresses.js +3 -3
- package/dist/src/constants/index.js +0 -1
- package/dist/src/constants/tokens.js +31 -1
- package/dist/src/db/models/transaction.js +27 -11
- package/dist/src/gnosis/actions/index.js +9 -0
- package/dist/src/gnosis/actions/withdraw/index.js +55 -0
- package/dist/src/gnosis/index.js +20 -0
- package/dist/src/index.js +75 -24
- package/dist/src/net/peer/index.js +2 -1
- package/dist/src/net/pool/index.js +18 -2
- package/dist/src/net/protocol/dial/SignatureDialProtocol.js +9 -10
- package/dist/src/net/protocol/dial/TransactionStatusDialProtocol.js +30 -0
- package/dist/src/net/protocol/index.js +51 -1
- package/dist/src/tasks/AutoUpdateTask.js +70 -0
- package/dist/src/tasks/BaseTask.js +11 -3
- package/dist/src/tasks/{InteropBridge/ProcessWithdrawEvents.js → InteropXContract/ProcessBridgeRequestEvents.js} +55 -48
- package/dist/src/tasks/InteropXContract/SyncBridgeCommittedEvents.js +92 -0
- package/dist/src/tasks/InteropXContract/SyncBridgeRequestEvents.js +78 -0
- package/dist/src/tasks/InteropXContract/SyncBridgeRequestSentEvents.js +90 -0
- package/dist/src/tasks/Transactions/SyncTransactionStatusTask.js +55 -0
- package/dist/src/tasks/index.js +18 -17
- package/dist/src/typechain/{InteropBridgeToken.js → InteropXContract.js} +0 -0
- package/dist/src/typechain/factories/InteropXContract__factory.js +635 -0
- package/dist/src/typechain/factories/index.js +3 -5
- package/dist/src/typechain/index.js +3 -5
- package/dist/src/utils/index.js +55 -92
- package/package.json +18 -16
- package/src/abi/index.ts +2 -4
- package/src/abi/interopXContract.json +454 -0
- package/src/alias.ts +6 -0
- package/src/api/index.ts +5 -2
- package/src/config/index.ts +11 -1
- package/src/constants/addresses.ts +3 -3
- package/src/constants/index.ts +0 -1
- package/src/constants/tokens.ts +32 -2
- package/src/db/models/transaction.ts +76 -27
- package/src/gnosis/actions/index.ts +5 -0
- package/src/gnosis/actions/withdraw/index.ts +77 -0
- package/src/gnosis/index.ts +19 -0
- package/src/index.ts +96 -26
- package/src/net/peer/index.ts +2 -1
- package/src/net/pool/index.ts +25 -5
- package/src/net/protocol/dial/SignatureDialProtocol.ts +11 -13
- package/src/net/protocol/dial/TransactionStatusDialProtocol.ts +33 -0
- package/src/net/protocol/index.ts +67 -1
- package/src/tasks/AutoUpdateTask.ts +82 -0
- package/src/tasks/BaseTask.ts +13 -3
- package/src/tasks/{InteropBridge/ProcessWithdrawEvents.ts → InteropXContract/ProcessBridgeRequestEvents.ts} +78 -93
- package/src/tasks/InteropXContract/SyncBridgeCommittedEvents.ts +124 -0
- package/src/tasks/InteropXContract/SyncBridgeRequestEvents.ts +115 -0
- package/src/tasks/InteropXContract/SyncBridgeRequestSentEvents.ts +121 -0
- package/src/tasks/Transactions/SyncTransactionStatusTask.ts +67 -0
- package/src/tasks/index.ts +27 -21
- package/src/typechain/InteropXContract.ts +680 -0
- package/src/typechain/factories/InteropXContract__factory.ts +642 -0
- package/src/typechain/factories/index.ts +1 -2
- package/src/typechain/index.ts +2 -4
- package/src/utils/index.ts +96 -129
- package/tsconfig.json +7 -2
- package/dist/src/abi/interopBridgeToken.json +0 -286
- package/dist/src/abi/interopXGateway.json +0 -184
- package/dist/src/constants/itokens.js +0 -13
- package/dist/src/tasks/InteropBridge/SyncWithdrawEvents.js +0 -70
- package/dist/src/tasks/InteropXGateway/ProcessDepositEvents.js +0 -147
- package/dist/src/tasks/InteropXGateway/SyncDepositEvents.js +0 -75
- package/dist/src/typechain/InteropXGateway.js +0 -2
- package/dist/src/typechain/factories/InteropBridgeToken__factory.js +0 -459
- package/dist/src/typechain/factories/InteropXGateway__factory.js +0 -265
- package/src/abi/interopBridgeToken.json +0 -286
- package/src/abi/interopXGateway.json +0 -184
- package/src/constants/itokens.ts +0 -10
- package/src/tasks/InteropBridge/SyncWithdrawEvents.ts +0 -121
- package/src/tasks/InteropXGateway/ProcessDepositEvents.ts +0 -241
- package/src/tasks/InteropXGateway/SyncDepositEvents.ts +0 -126
- package/src/typechain/InteropBridgeToken.ts +0 -686
- package/src/typechain/InteropXGateway.ts +0 -407
- package/src/typechain/factories/InteropBridgeToken__factory.ts +0 -466
- package/src/typechain/factories/InteropXGateway__factory.ts +0 -272
@@ -0,0 +1,635 @@
|
|
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: false,
|
14
|
+
internalType: "string",
|
15
|
+
name: "actionId",
|
16
|
+
type: "string",
|
17
|
+
},
|
18
|
+
{
|
19
|
+
indexed: true,
|
20
|
+
internalType: "address",
|
21
|
+
name: "bridger",
|
22
|
+
type: "address",
|
23
|
+
},
|
24
|
+
{
|
25
|
+
components: [
|
26
|
+
{
|
27
|
+
components: [
|
28
|
+
{
|
29
|
+
internalType: "address",
|
30
|
+
name: "sourceToken",
|
31
|
+
type: "address",
|
32
|
+
},
|
33
|
+
{
|
34
|
+
internalType: "address",
|
35
|
+
name: "targetToken",
|
36
|
+
type: "address",
|
37
|
+
},
|
38
|
+
{
|
39
|
+
internalType: "uint256",
|
40
|
+
name: "amount",
|
41
|
+
type: "uint256",
|
42
|
+
},
|
43
|
+
],
|
44
|
+
internalType: "struct InteropXContractBeta.TokenInfo[]",
|
45
|
+
name: "supply",
|
46
|
+
type: "tuple[]",
|
47
|
+
},
|
48
|
+
{
|
49
|
+
components: [
|
50
|
+
{
|
51
|
+
internalType: "address",
|
52
|
+
name: "sourceToken",
|
53
|
+
type: "address",
|
54
|
+
},
|
55
|
+
{
|
56
|
+
internalType: "address",
|
57
|
+
name: "targetToken",
|
58
|
+
type: "address",
|
59
|
+
},
|
60
|
+
{
|
61
|
+
internalType: "uint256",
|
62
|
+
name: "amount",
|
63
|
+
type: "uint256",
|
64
|
+
},
|
65
|
+
],
|
66
|
+
internalType: "struct InteropXContractBeta.TokenInfo[]",
|
67
|
+
name: "withdraw",
|
68
|
+
type: "tuple[]",
|
69
|
+
},
|
70
|
+
],
|
71
|
+
indexed: false,
|
72
|
+
internalType: "struct InteropXContractBeta.Position",
|
73
|
+
name: "position",
|
74
|
+
type: "tuple",
|
75
|
+
},
|
76
|
+
{
|
77
|
+
indexed: true,
|
78
|
+
internalType: "uint32",
|
79
|
+
name: "sourceChainId",
|
80
|
+
type: "uint32",
|
81
|
+
},
|
82
|
+
{
|
83
|
+
indexed: false,
|
84
|
+
internalType: "uint32",
|
85
|
+
name: "targetChainId",
|
86
|
+
type: "uint32",
|
87
|
+
},
|
88
|
+
{
|
89
|
+
indexed: true,
|
90
|
+
internalType: "bytes32",
|
91
|
+
name: "requestTransactionHash",
|
92
|
+
type: "bytes32",
|
93
|
+
},
|
94
|
+
{
|
95
|
+
indexed: false,
|
96
|
+
internalType: "bytes",
|
97
|
+
name: "metadata",
|
98
|
+
type: "bytes",
|
99
|
+
},
|
100
|
+
],
|
101
|
+
name: "LogBridgeCommitted",
|
102
|
+
type: "event",
|
103
|
+
},
|
104
|
+
{
|
105
|
+
anonymous: false,
|
106
|
+
inputs: [
|
107
|
+
{
|
108
|
+
indexed: false,
|
109
|
+
internalType: "string",
|
110
|
+
name: "actionId",
|
111
|
+
type: "string",
|
112
|
+
},
|
113
|
+
{
|
114
|
+
indexed: true,
|
115
|
+
internalType: "address",
|
116
|
+
name: "bridger",
|
117
|
+
type: "address",
|
118
|
+
},
|
119
|
+
{
|
120
|
+
components: [
|
121
|
+
{
|
122
|
+
components: [
|
123
|
+
{
|
124
|
+
internalType: "address",
|
125
|
+
name: "sourceToken",
|
126
|
+
type: "address",
|
127
|
+
},
|
128
|
+
{
|
129
|
+
internalType: "address",
|
130
|
+
name: "targetToken",
|
131
|
+
type: "address",
|
132
|
+
},
|
133
|
+
{
|
134
|
+
internalType: "uint256",
|
135
|
+
name: "amount",
|
136
|
+
type: "uint256",
|
137
|
+
},
|
138
|
+
],
|
139
|
+
internalType: "struct InteropXContractBeta.TokenInfo[]",
|
140
|
+
name: "supply",
|
141
|
+
type: "tuple[]",
|
142
|
+
},
|
143
|
+
{
|
144
|
+
components: [
|
145
|
+
{
|
146
|
+
internalType: "address",
|
147
|
+
name: "sourceToken",
|
148
|
+
type: "address",
|
149
|
+
},
|
150
|
+
{
|
151
|
+
internalType: "address",
|
152
|
+
name: "targetToken",
|
153
|
+
type: "address",
|
154
|
+
},
|
155
|
+
{
|
156
|
+
internalType: "uint256",
|
157
|
+
name: "amount",
|
158
|
+
type: "uint256",
|
159
|
+
},
|
160
|
+
],
|
161
|
+
internalType: "struct InteropXContractBeta.TokenInfo[]",
|
162
|
+
name: "withdraw",
|
163
|
+
type: "tuple[]",
|
164
|
+
},
|
165
|
+
],
|
166
|
+
indexed: false,
|
167
|
+
internalType: "struct InteropXContractBeta.Position",
|
168
|
+
name: "position",
|
169
|
+
type: "tuple",
|
170
|
+
},
|
171
|
+
{
|
172
|
+
indexed: false,
|
173
|
+
internalType: "uint256",
|
174
|
+
name: "sourceChainId",
|
175
|
+
type: "uint256",
|
176
|
+
},
|
177
|
+
{
|
178
|
+
indexed: true,
|
179
|
+
internalType: "uint256",
|
180
|
+
name: "targetChainId",
|
181
|
+
type: "uint256",
|
182
|
+
},
|
183
|
+
{
|
184
|
+
indexed: true,
|
185
|
+
internalType: "bytes32",
|
186
|
+
name: "requestTransactionHash",
|
187
|
+
type: "bytes32",
|
188
|
+
},
|
189
|
+
{
|
190
|
+
indexed: false,
|
191
|
+
internalType: "bytes32",
|
192
|
+
name: "targetCommittedTransactionHash",
|
193
|
+
type: "bytes32",
|
194
|
+
},
|
195
|
+
{
|
196
|
+
indexed: false,
|
197
|
+
internalType: "bytes",
|
198
|
+
name: "metadata",
|
199
|
+
type: "bytes",
|
200
|
+
},
|
201
|
+
],
|
202
|
+
name: "LogBridgeCompleted",
|
203
|
+
type: "event",
|
204
|
+
},
|
205
|
+
{
|
206
|
+
anonymous: false,
|
207
|
+
inputs: [
|
208
|
+
{
|
209
|
+
indexed: false,
|
210
|
+
internalType: "string",
|
211
|
+
name: "actionId",
|
212
|
+
type: "string",
|
213
|
+
},
|
214
|
+
{
|
215
|
+
indexed: true,
|
216
|
+
internalType: "address",
|
217
|
+
name: "bridger",
|
218
|
+
type: "address",
|
219
|
+
},
|
220
|
+
{
|
221
|
+
components: [
|
222
|
+
{
|
223
|
+
components: [
|
224
|
+
{
|
225
|
+
internalType: "address",
|
226
|
+
name: "sourceToken",
|
227
|
+
type: "address",
|
228
|
+
},
|
229
|
+
{
|
230
|
+
internalType: "address",
|
231
|
+
name: "targetToken",
|
232
|
+
type: "address",
|
233
|
+
},
|
234
|
+
{
|
235
|
+
internalType: "uint256",
|
236
|
+
name: "amount",
|
237
|
+
type: "uint256",
|
238
|
+
},
|
239
|
+
],
|
240
|
+
internalType: "struct InteropXContractBeta.TokenInfo[]",
|
241
|
+
name: "supply",
|
242
|
+
type: "tuple[]",
|
243
|
+
},
|
244
|
+
{
|
245
|
+
components: [
|
246
|
+
{
|
247
|
+
internalType: "address",
|
248
|
+
name: "sourceToken",
|
249
|
+
type: "address",
|
250
|
+
},
|
251
|
+
{
|
252
|
+
internalType: "address",
|
253
|
+
name: "targetToken",
|
254
|
+
type: "address",
|
255
|
+
},
|
256
|
+
{
|
257
|
+
internalType: "uint256",
|
258
|
+
name: "amount",
|
259
|
+
type: "uint256",
|
260
|
+
},
|
261
|
+
],
|
262
|
+
internalType: "struct InteropXContractBeta.TokenInfo[]",
|
263
|
+
name: "withdraw",
|
264
|
+
type: "tuple[]",
|
265
|
+
},
|
266
|
+
],
|
267
|
+
indexed: false,
|
268
|
+
internalType: "struct InteropXContractBeta.Position",
|
269
|
+
name: "position",
|
270
|
+
type: "tuple",
|
271
|
+
},
|
272
|
+
{
|
273
|
+
indexed: false,
|
274
|
+
internalType: "uint256",
|
275
|
+
name: "sourceChainId",
|
276
|
+
type: "uint256",
|
277
|
+
},
|
278
|
+
{
|
279
|
+
indexed: true,
|
280
|
+
internalType: "uint256",
|
281
|
+
name: "targetChainId",
|
282
|
+
type: "uint256",
|
283
|
+
},
|
284
|
+
{
|
285
|
+
indexed: false,
|
286
|
+
internalType: "bytes",
|
287
|
+
name: "metadata",
|
288
|
+
type: "bytes",
|
289
|
+
},
|
290
|
+
],
|
291
|
+
name: "LogBridgeRequest",
|
292
|
+
type: "event",
|
293
|
+
},
|
294
|
+
{
|
295
|
+
anonymous: false,
|
296
|
+
inputs: [
|
297
|
+
{
|
298
|
+
indexed: false,
|
299
|
+
internalType: "string",
|
300
|
+
name: "actionId",
|
301
|
+
type: "string",
|
302
|
+
},
|
303
|
+
{
|
304
|
+
indexed: true,
|
305
|
+
internalType: "address",
|
306
|
+
name: "bridger",
|
307
|
+
type: "address",
|
308
|
+
},
|
309
|
+
{
|
310
|
+
components: [
|
311
|
+
{
|
312
|
+
components: [
|
313
|
+
{
|
314
|
+
internalType: "address",
|
315
|
+
name: "sourceToken",
|
316
|
+
type: "address",
|
317
|
+
},
|
318
|
+
{
|
319
|
+
internalType: "address",
|
320
|
+
name: "targetToken",
|
321
|
+
type: "address",
|
322
|
+
},
|
323
|
+
{
|
324
|
+
internalType: "uint256",
|
325
|
+
name: "amount",
|
326
|
+
type: "uint256",
|
327
|
+
},
|
328
|
+
],
|
329
|
+
internalType: "struct InteropXContractBeta.TokenInfo[]",
|
330
|
+
name: "supply",
|
331
|
+
type: "tuple[]",
|
332
|
+
},
|
333
|
+
{
|
334
|
+
components: [
|
335
|
+
{
|
336
|
+
internalType: "address",
|
337
|
+
name: "sourceToken",
|
338
|
+
type: "address",
|
339
|
+
},
|
340
|
+
{
|
341
|
+
internalType: "address",
|
342
|
+
name: "targetToken",
|
343
|
+
type: "address",
|
344
|
+
},
|
345
|
+
{
|
346
|
+
internalType: "uint256",
|
347
|
+
name: "amount",
|
348
|
+
type: "uint256",
|
349
|
+
},
|
350
|
+
],
|
351
|
+
internalType: "struct InteropXContractBeta.TokenInfo[]",
|
352
|
+
name: "withdraw",
|
353
|
+
type: "tuple[]",
|
354
|
+
},
|
355
|
+
],
|
356
|
+
indexed: false,
|
357
|
+
internalType: "struct InteropXContractBeta.Position",
|
358
|
+
name: "position",
|
359
|
+
type: "tuple",
|
360
|
+
},
|
361
|
+
{
|
362
|
+
indexed: false,
|
363
|
+
internalType: "uint32",
|
364
|
+
name: "sourceChainId",
|
365
|
+
type: "uint32",
|
366
|
+
},
|
367
|
+
{
|
368
|
+
indexed: true,
|
369
|
+
internalType: "uint32",
|
370
|
+
name: "targetChainId",
|
371
|
+
type: "uint32",
|
372
|
+
},
|
373
|
+
{
|
374
|
+
indexed: true,
|
375
|
+
internalType: "bytes32",
|
376
|
+
name: "requestTransactionHash",
|
377
|
+
type: "bytes32",
|
378
|
+
},
|
379
|
+
{
|
380
|
+
indexed: false,
|
381
|
+
internalType: "bytes",
|
382
|
+
name: "metadata",
|
383
|
+
type: "bytes",
|
384
|
+
},
|
385
|
+
],
|
386
|
+
name: "LogBridgeRequestSent",
|
387
|
+
type: "event",
|
388
|
+
},
|
389
|
+
{
|
390
|
+
inputs: [
|
391
|
+
{
|
392
|
+
internalType: "string",
|
393
|
+
name: "actionId",
|
394
|
+
type: "string",
|
395
|
+
},
|
396
|
+
{
|
397
|
+
internalType: "address",
|
398
|
+
name: "to_",
|
399
|
+
type: "address",
|
400
|
+
},
|
401
|
+
{
|
402
|
+
internalType: "address",
|
403
|
+
name: "sourceToken_",
|
404
|
+
type: "address",
|
405
|
+
},
|
406
|
+
{
|
407
|
+
internalType: "address",
|
408
|
+
name: "targetToken_",
|
409
|
+
type: "address",
|
410
|
+
},
|
411
|
+
{
|
412
|
+
internalType: "uint256",
|
413
|
+
name: "amount_",
|
414
|
+
type: "uint256",
|
415
|
+
},
|
416
|
+
{
|
417
|
+
internalType: "uint32",
|
418
|
+
name: "sourceChainId_",
|
419
|
+
type: "uint32",
|
420
|
+
},
|
421
|
+
{
|
422
|
+
internalType: "bytes32",
|
423
|
+
name: "transactionHash_",
|
424
|
+
type: "bytes32",
|
425
|
+
},
|
426
|
+
{
|
427
|
+
internalType: "bytes",
|
428
|
+
name: "metadata_",
|
429
|
+
type: "bytes",
|
430
|
+
},
|
431
|
+
],
|
432
|
+
name: "completeBridge",
|
433
|
+
outputs: [],
|
434
|
+
stateMutability: "nonpayable",
|
435
|
+
type: "function",
|
436
|
+
},
|
437
|
+
{
|
438
|
+
inputs: [
|
439
|
+
{
|
440
|
+
internalType: "address",
|
441
|
+
name: "user",
|
442
|
+
type: "address",
|
443
|
+
},
|
444
|
+
{
|
445
|
+
internalType: "address[]",
|
446
|
+
name: "tokens",
|
447
|
+
type: "address[]",
|
448
|
+
},
|
449
|
+
],
|
450
|
+
name: "getBridgeAmounts",
|
451
|
+
outputs: [
|
452
|
+
{
|
453
|
+
components: [
|
454
|
+
{
|
455
|
+
internalType: "uint256",
|
456
|
+
name: "deposit",
|
457
|
+
type: "uint256",
|
458
|
+
},
|
459
|
+
{
|
460
|
+
internalType: "uint256",
|
461
|
+
name: "withdraw",
|
462
|
+
type: "uint256",
|
463
|
+
},
|
464
|
+
],
|
465
|
+
internalType: "struct InteropXContractBeta.UserData[]",
|
466
|
+
name: "userData",
|
467
|
+
type: "tuple[]",
|
468
|
+
},
|
469
|
+
],
|
470
|
+
stateMutability: "view",
|
471
|
+
type: "function",
|
472
|
+
},
|
473
|
+
{
|
474
|
+
inputs: [
|
475
|
+
{
|
476
|
+
internalType: "string",
|
477
|
+
name: "actionId",
|
478
|
+
type: "string",
|
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: "targetChainId_",
|
498
|
+
type: "uint32",
|
499
|
+
},
|
500
|
+
{
|
501
|
+
internalType: "bytes",
|
502
|
+
name: "metadata_",
|
503
|
+
type: "bytes",
|
504
|
+
},
|
505
|
+
],
|
506
|
+
name: "requestWithdraw",
|
507
|
+
outputs: [],
|
508
|
+
stateMutability: "nonpayable",
|
509
|
+
type: "function",
|
510
|
+
},
|
511
|
+
{
|
512
|
+
inputs: [
|
513
|
+
{
|
514
|
+
internalType: "address",
|
515
|
+
name: "token",
|
516
|
+
type: "address",
|
517
|
+
},
|
518
|
+
{
|
519
|
+
internalType: "bool",
|
520
|
+
name: "toggle",
|
521
|
+
type: "bool",
|
522
|
+
},
|
523
|
+
],
|
524
|
+
name: "toggleWhitelist",
|
525
|
+
outputs: [],
|
526
|
+
stateMutability: "nonpayable",
|
527
|
+
type: "function",
|
528
|
+
},
|
529
|
+
{
|
530
|
+
inputs: [
|
531
|
+
{
|
532
|
+
internalType: "address",
|
533
|
+
name: "",
|
534
|
+
type: "address",
|
535
|
+
},
|
536
|
+
{
|
537
|
+
internalType: "address",
|
538
|
+
name: "",
|
539
|
+
type: "address",
|
540
|
+
},
|
541
|
+
],
|
542
|
+
name: "userMapping",
|
543
|
+
outputs: [
|
544
|
+
{
|
545
|
+
internalType: "uint256",
|
546
|
+
name: "deposit",
|
547
|
+
type: "uint256",
|
548
|
+
},
|
549
|
+
{
|
550
|
+
internalType: "uint256",
|
551
|
+
name: "withdraw",
|
552
|
+
type: "uint256",
|
553
|
+
},
|
554
|
+
],
|
555
|
+
stateMutability: "view",
|
556
|
+
type: "function",
|
557
|
+
},
|
558
|
+
{
|
559
|
+
inputs: [
|
560
|
+
{
|
561
|
+
internalType: "address",
|
562
|
+
name: "",
|
563
|
+
type: "address",
|
564
|
+
},
|
565
|
+
],
|
566
|
+
name: "whitelistedTokens",
|
567
|
+
outputs: [
|
568
|
+
{
|
569
|
+
internalType: "bool",
|
570
|
+
name: "",
|
571
|
+
type: "bool",
|
572
|
+
},
|
573
|
+
],
|
574
|
+
stateMutability: "view",
|
575
|
+
type: "function",
|
576
|
+
},
|
577
|
+
{
|
578
|
+
inputs: [
|
579
|
+
{
|
580
|
+
internalType: "string",
|
581
|
+
name: "actionId",
|
582
|
+
type: "string",
|
583
|
+
},
|
584
|
+
{
|
585
|
+
internalType: "address",
|
586
|
+
name: "user_",
|
587
|
+
type: "address",
|
588
|
+
},
|
589
|
+
{
|
590
|
+
internalType: "address",
|
591
|
+
name: "sourceToken_",
|
592
|
+
type: "address",
|
593
|
+
},
|
594
|
+
{
|
595
|
+
internalType: "address",
|
596
|
+
name: "targetToken_",
|
597
|
+
type: "address",
|
598
|
+
},
|
599
|
+
{
|
600
|
+
internalType: "uint256",
|
601
|
+
name: "amount_",
|
602
|
+
type: "uint256",
|
603
|
+
},
|
604
|
+
{
|
605
|
+
internalType: "uint32",
|
606
|
+
name: "chainId_",
|
607
|
+
type: "uint32",
|
608
|
+
},
|
609
|
+
{
|
610
|
+
internalType: "bytes32",
|
611
|
+
name: "transactionHash_",
|
612
|
+
type: "bytes32",
|
613
|
+
},
|
614
|
+
{
|
615
|
+
internalType: "bytes",
|
616
|
+
name: "metadata_",
|
617
|
+
type: "bytes",
|
618
|
+
},
|
619
|
+
],
|
620
|
+
name: "withdrawRequested",
|
621
|
+
outputs: [],
|
622
|
+
stateMutability: "nonpayable",
|
623
|
+
type: "function",
|
624
|
+
},
|
625
|
+
];
|
626
|
+
class InteropXContract__factory {
|
627
|
+
static createInterface() {
|
628
|
+
return new ethers_1.utils.Interface(_abi);
|
629
|
+
}
|
630
|
+
static connect(address, signerOrProvider) {
|
631
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
632
|
+
}
|
633
|
+
}
|
634
|
+
exports.InteropXContract__factory = InteropXContract__factory;
|
635
|
+
InteropXContract__factory.abi = _abi;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
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
|
12
|
-
Object.defineProperty(exports, "
|
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.
|
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
|
33
|
-
Object.defineProperty(exports, "
|
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; } });
|