@instadapp/interop-x 0.0.0-dev.99c56eb → 0.0.0-dev.99c6cb0

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.
@@ -13,6 +13,12 @@ const _abi = [
13
13
  {
14
14
  anonymous: false,
15
15
  inputs: [
16
+ {
17
+ indexed: false,
18
+ internalType: "string",
19
+ name: "actionId",
20
+ type: "string",
21
+ },
16
22
  {
17
23
  indexed: true,
18
24
  internalType: "address",
@@ -102,6 +108,12 @@ const _abi = [
102
108
  {
103
109
  anonymous: false,
104
110
  inputs: [
111
+ {
112
+ indexed: false,
113
+ internalType: "string",
114
+ name: "actionId",
115
+ type: "string",
116
+ },
105
117
  {
106
118
  indexed: true,
107
119
  internalType: "address",
@@ -197,6 +209,12 @@ const _abi = [
197
209
  {
198
210
  anonymous: false,
199
211
  inputs: [
212
+ {
213
+ indexed: false,
214
+ internalType: "string",
215
+ name: "actionId",
216
+ type: "string",
217
+ },
200
218
  {
201
219
  indexed: true,
202
220
  internalType: "address",
@@ -280,6 +298,12 @@ const _abi = [
280
298
  {
281
299
  anonymous: false,
282
300
  inputs: [
301
+ {
302
+ indexed: false,
303
+ internalType: "string",
304
+ name: "actionId",
305
+ type: "string",
306
+ },
283
307
  {
284
308
  indexed: true,
285
309
  internalType: "address",
@@ -367,20 +391,12 @@ const _abi = [
367
391
  type: "event",
368
392
  },
369
393
  {
370
- inputs: [],
371
- name: "_vnonce",
372
- outputs: [
394
+ inputs: [
373
395
  {
374
- internalType: "uint256",
375
- name: "",
376
- type: "uint256",
396
+ internalType: "string",
397
+ name: "actionId",
398
+ type: "string",
377
399
  },
378
- ],
379
- stateMutability: "view",
380
- type: "function",
381
- },
382
- {
383
- inputs: [
384
400
  {
385
401
  internalType: "address",
386
402
  name: "to_",
@@ -403,7 +419,7 @@ const _abi = [
403
419
  },
404
420
  {
405
421
  internalType: "uint32",
406
- name: "targetChainId_",
422
+ name: "sourceChainId_",
407
423
  type: "uint32",
408
424
  },
409
425
  {
@@ -424,6 +440,47 @@ const _abi = [
424
440
  },
425
441
  {
426
442
  inputs: [
443
+ {
444
+ internalType: "address",
445
+ name: "user",
446
+ type: "address",
447
+ },
448
+ {
449
+ internalType: "address[]",
450
+ name: "tokens",
451
+ type: "address[]",
452
+ },
453
+ ],
454
+ name: "getBridgeAmounts",
455
+ outputs: [
456
+ {
457
+ components: [
458
+ {
459
+ internalType: "uint256",
460
+ name: "deposit",
461
+ type: "uint256",
462
+ },
463
+ {
464
+ internalType: "uint256",
465
+ name: "withdraw",
466
+ type: "uint256",
467
+ },
468
+ ],
469
+ internalType: "struct InteropXContractBeta.UserData[]",
470
+ name: "userData",
471
+ type: "tuple[]",
472
+ },
473
+ ],
474
+ stateMutability: "view",
475
+ type: "function",
476
+ },
477
+ {
478
+ inputs: [
479
+ {
480
+ internalType: "string",
481
+ name: "actionId",
482
+ type: "string",
483
+ },
427
484
  {
428
485
  internalType: "address",
429
486
  name: "sourceToken_",
@@ -455,6 +512,24 @@ const _abi = [
455
512
  stateMutability: "nonpayable",
456
513
  type: "function",
457
514
  },
515
+ {
516
+ inputs: [
517
+ {
518
+ internalType: "address",
519
+ name: "token",
520
+ type: "address",
521
+ },
522
+ {
523
+ internalType: "bool",
524
+ name: "toggle",
525
+ type: "bool",
526
+ },
527
+ ],
528
+ name: "toggleWhitelist",
529
+ outputs: [],
530
+ stateMutability: "nonpayable",
531
+ type: "function",
532
+ },
458
533
  {
459
534
  inputs: [
460
535
  {
@@ -462,20 +537,54 @@ const _abi = [
462
537
  name: "",
463
538
  type: "address",
464
539
  },
540
+ {
541
+ internalType: "address",
542
+ name: "",
543
+ type: "address",
544
+ },
465
545
  ],
466
- name: "whitelistedMapping",
546
+ name: "userMapping",
467
547
  outputs: [
468
548
  {
469
549
  internalType: "uint256",
470
- name: "",
550
+ name: "deposit",
471
551
  type: "uint256",
472
552
  },
553
+ {
554
+ internalType: "uint256",
555
+ name: "withdraw",
556
+ type: "uint256",
557
+ },
558
+ ],
559
+ stateMutability: "view",
560
+ type: "function",
561
+ },
562
+ {
563
+ inputs: [
564
+ {
565
+ internalType: "address",
566
+ name: "",
567
+ type: "address",
568
+ },
569
+ ],
570
+ name: "whitelistedTokens",
571
+ outputs: [
572
+ {
573
+ internalType: "bool",
574
+ name: "",
575
+ type: "bool",
576
+ },
473
577
  ],
474
578
  stateMutability: "view",
475
579
  type: "function",
476
580
  },
477
581
  {
478
582
  inputs: [
583
+ {
584
+ internalType: "string",
585
+ name: "actionId",
586
+ type: "string",
587
+ },
479
588
  {
480
589
  internalType: "address",
481
590
  name: "user_",
@@ -133,9 +133,9 @@ export const asyncCallWithTimeout = async <T>(asyncPromise: Promise<T>, timeout:
133
133
  }
134
134
 
135
135
 
136
- export const generateInteropTransactionHash = (data: { action: string, bridger: string, requestTransactionHash: string, sourceChainId: string | number, targetChainId: string | number }) => {
136
+ export const generateInteropTransactionHash = (data: { actionId: string, bridger: string, requestTransactionHash: string, sourceChainId: string | number, targetChainId: string | number }) => {
137
137
  return ethers.utils.solidityKeccak256(['string', 'string', 'string', 'string', 'string'], [
138
- String(data.action),
138
+ String(data.actionId),
139
139
  String(data.bridger),
140
140
  String(data.requestTransactionHash),
141
141
  String(data.sourceChainId),