@instadapp/interop-x 0.0.0-dev.92afe89 → 0.0.0-dev.f78418c

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. package/bin/interop-x +1 -1
  2. package/dist/abi/erc20.json +350 -0
  3. package/dist/abi/gnosisSafe.json +747 -0
  4. package/dist/abi/index.js +15 -0
  5. package/dist/abi/interopBridgeToken.json +286 -0
  6. package/dist/abi/interopXGateway.json +184 -0
  7. package/dist/config/index.js +1 -1
  8. package/dist/constants/addresses.js +18 -3
  9. package/dist/constants/index.js +1 -0
  10. package/dist/constants/tokens.js +107 -0
  11. package/dist/db/models/index.js +1 -1
  12. package/dist/db/models/transaction.js +52 -0
  13. package/dist/index.js +14 -5
  14. package/dist/net/peer/index.js +5 -5
  15. package/dist/net/pool/index.js +2 -2
  16. package/dist/net/protocol/dial/BaseDialProtocol.js +1 -1
  17. package/dist/net/protocol/dial/SignatureDialProtocol.js +11 -13
  18. package/dist/net/protocol/index.js +3 -3
  19. package/dist/tasks/BaseTask.js +2 -2
  20. package/dist/tasks/InteropXGateway/SyncDepositEvents.js +79 -0
  21. package/dist/tasks/index.js +9 -1
  22. package/dist/typechain/Erc20.js +2 -0
  23. package/dist/typechain/GnosisSafe.js +2 -0
  24. package/dist/typechain/InteropBridgeToken.js +2 -0
  25. package/dist/typechain/InteropXGateway.js +2 -0
  26. package/dist/typechain/common.js +2 -0
  27. package/dist/typechain/factories/Erc20__factory.js +367 -0
  28. package/dist/typechain/factories/GnosisSafe__factory.js +1174 -0
  29. package/dist/typechain/factories/InteropBridgeToken__factory.js +459 -0
  30. package/dist/typechain/factories/InteropXGateway__factory.js +265 -0
  31. package/dist/typechain/factories/index.js +14 -0
  32. package/dist/typechain/index.js +35 -0
  33. package/dist/utils/index.js +14 -2
  34. package/package.json +23 -3
  35. package/src/abi/erc20.json +350 -0
  36. package/src/abi/gnosisSafe.json +747 -0
  37. package/src/abi/index.ts +11 -0
  38. package/src/abi/interopBridgeToken.json +286 -0
  39. package/src/abi/interopXGateway.json +184 -0
  40. package/src/config/index.ts +1 -1
  41. package/src/constants/addresses.ts +18 -3
  42. package/src/constants/index.ts +1 -0
  43. package/src/constants/tokens.ts +104 -0
  44. package/src/db/index.ts +1 -1
  45. package/src/db/models/index.ts +1 -1
  46. package/src/db/models/transaction.ts +92 -0
  47. package/src/index.ts +16 -5
  48. package/src/net/peer/index.ts +3 -3
  49. package/src/net/pool/index.ts +2 -2
  50. package/src/net/protocol/dial/BaseDialProtocol.ts +1 -1
  51. package/src/net/protocol/dial/SignatureDialProtocol.ts +13 -16
  52. package/src/net/protocol/index.ts +3 -3
  53. package/src/tasks/BaseTask.ts +2 -3
  54. package/src/tasks/InteropXGateway/SyncDepositEvents.ts +114 -0
  55. package/src/tasks/index.ts +4 -1
  56. package/src/typechain/Erc20.ts +491 -0
  57. package/src/typechain/GnosisSafe.ts +1728 -0
  58. package/src/typechain/InteropBridgeToken.ts +686 -0
  59. package/src/typechain/InteropXGateway.ts +407 -0
  60. package/src/typechain/common.ts +44 -0
  61. package/src/typechain/factories/Erc20__factory.ts +368 -0
  62. package/src/typechain/factories/GnosisSafe__factory.ts +1178 -0
  63. package/src/typechain/factories/InteropBridgeToken__factory.ts +466 -0
  64. package/src/typechain/factories/InteropXGateway__factory.ts +272 -0
  65. package/src/typechain/factories/index.ts +7 -0
  66. package/src/typechain/index.ts +12 -0
  67. package/src/types.ts +2 -2
  68. package/src/utils/index.ts +15 -2
  69. package/tsconfig.json +3 -0
  70. package/dist/db/models/execution.js +0 -38
  71. package/src/db/models/execution.ts +0 -57
@@ -0,0 +1,1174 @@
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.GnosisSafe__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ anonymous: false,
11
+ inputs: [
12
+ {
13
+ indexed: false,
14
+ internalType: "address",
15
+ name: "owner",
16
+ type: "address",
17
+ },
18
+ ],
19
+ name: "AddedOwner",
20
+ type: "event",
21
+ },
22
+ {
23
+ anonymous: false,
24
+ inputs: [
25
+ {
26
+ indexed: true,
27
+ internalType: "bytes32",
28
+ name: "approvedHash",
29
+ type: "bytes32",
30
+ },
31
+ {
32
+ indexed: true,
33
+ internalType: "address",
34
+ name: "owner",
35
+ type: "address",
36
+ },
37
+ ],
38
+ name: "ApproveHash",
39
+ type: "event",
40
+ },
41
+ {
42
+ anonymous: false,
43
+ inputs: [
44
+ {
45
+ indexed: false,
46
+ internalType: "address",
47
+ name: "handler",
48
+ type: "address",
49
+ },
50
+ ],
51
+ name: "ChangedFallbackHandler",
52
+ type: "event",
53
+ },
54
+ {
55
+ anonymous: false,
56
+ inputs: [
57
+ {
58
+ indexed: false,
59
+ internalType: "address",
60
+ name: "guard",
61
+ type: "address",
62
+ },
63
+ ],
64
+ name: "ChangedGuard",
65
+ type: "event",
66
+ },
67
+ {
68
+ anonymous: false,
69
+ inputs: [
70
+ {
71
+ indexed: false,
72
+ internalType: "uint256",
73
+ name: "threshold",
74
+ type: "uint256",
75
+ },
76
+ ],
77
+ name: "ChangedThreshold",
78
+ type: "event",
79
+ },
80
+ {
81
+ anonymous: false,
82
+ inputs: [
83
+ {
84
+ indexed: false,
85
+ internalType: "address",
86
+ name: "module",
87
+ type: "address",
88
+ },
89
+ ],
90
+ name: "DisabledModule",
91
+ type: "event",
92
+ },
93
+ {
94
+ anonymous: false,
95
+ inputs: [
96
+ {
97
+ indexed: false,
98
+ internalType: "address",
99
+ name: "module",
100
+ type: "address",
101
+ },
102
+ ],
103
+ name: "EnabledModule",
104
+ type: "event",
105
+ },
106
+ {
107
+ anonymous: false,
108
+ inputs: [
109
+ {
110
+ indexed: false,
111
+ internalType: "bytes32",
112
+ name: "txHash",
113
+ type: "bytes32",
114
+ },
115
+ {
116
+ indexed: false,
117
+ internalType: "uint256",
118
+ name: "payment",
119
+ type: "uint256",
120
+ },
121
+ ],
122
+ name: "ExecutionFailure",
123
+ type: "event",
124
+ },
125
+ {
126
+ anonymous: false,
127
+ inputs: [
128
+ {
129
+ indexed: true,
130
+ internalType: "address",
131
+ name: "module",
132
+ type: "address",
133
+ },
134
+ ],
135
+ name: "ExecutionFromModuleFailure",
136
+ type: "event",
137
+ },
138
+ {
139
+ anonymous: false,
140
+ inputs: [
141
+ {
142
+ indexed: true,
143
+ internalType: "address",
144
+ name: "module",
145
+ type: "address",
146
+ },
147
+ ],
148
+ name: "ExecutionFromModuleSuccess",
149
+ type: "event",
150
+ },
151
+ {
152
+ anonymous: false,
153
+ inputs: [
154
+ {
155
+ indexed: false,
156
+ internalType: "bytes32",
157
+ name: "txHash",
158
+ type: "bytes32",
159
+ },
160
+ {
161
+ indexed: false,
162
+ internalType: "uint256",
163
+ name: "payment",
164
+ type: "uint256",
165
+ },
166
+ ],
167
+ name: "ExecutionSuccess",
168
+ type: "event",
169
+ },
170
+ {
171
+ anonymous: false,
172
+ inputs: [
173
+ {
174
+ indexed: false,
175
+ internalType: "address",
176
+ name: "owner",
177
+ type: "address",
178
+ },
179
+ ],
180
+ name: "RemovedOwner",
181
+ type: "event",
182
+ },
183
+ {
184
+ anonymous: false,
185
+ inputs: [
186
+ {
187
+ indexed: false,
188
+ internalType: "address",
189
+ name: "module",
190
+ type: "address",
191
+ },
192
+ {
193
+ indexed: false,
194
+ internalType: "address",
195
+ name: "to",
196
+ type: "address",
197
+ },
198
+ {
199
+ indexed: false,
200
+ internalType: "uint256",
201
+ name: "value",
202
+ type: "uint256",
203
+ },
204
+ {
205
+ indexed: false,
206
+ internalType: "bytes",
207
+ name: "data",
208
+ type: "bytes",
209
+ },
210
+ {
211
+ indexed: false,
212
+ internalType: "enum Enum.Operation",
213
+ name: "operation",
214
+ type: "uint8",
215
+ },
216
+ ],
217
+ name: "SafeModuleTransaction",
218
+ type: "event",
219
+ },
220
+ {
221
+ anonymous: false,
222
+ inputs: [
223
+ {
224
+ indexed: false,
225
+ internalType: "address",
226
+ name: "to",
227
+ type: "address",
228
+ },
229
+ {
230
+ indexed: false,
231
+ internalType: "uint256",
232
+ name: "value",
233
+ type: "uint256",
234
+ },
235
+ {
236
+ indexed: false,
237
+ internalType: "bytes",
238
+ name: "data",
239
+ type: "bytes",
240
+ },
241
+ {
242
+ indexed: false,
243
+ internalType: "enum Enum.Operation",
244
+ name: "operation",
245
+ type: "uint8",
246
+ },
247
+ {
248
+ indexed: false,
249
+ internalType: "uint256",
250
+ name: "safeTxGas",
251
+ type: "uint256",
252
+ },
253
+ {
254
+ indexed: false,
255
+ internalType: "uint256",
256
+ name: "baseGas",
257
+ type: "uint256",
258
+ },
259
+ {
260
+ indexed: false,
261
+ internalType: "uint256",
262
+ name: "gasPrice",
263
+ type: "uint256",
264
+ },
265
+ {
266
+ indexed: false,
267
+ internalType: "address",
268
+ name: "gasToken",
269
+ type: "address",
270
+ },
271
+ {
272
+ indexed: false,
273
+ internalType: "address payable",
274
+ name: "refundReceiver",
275
+ type: "address",
276
+ },
277
+ {
278
+ indexed: false,
279
+ internalType: "bytes",
280
+ name: "signatures",
281
+ type: "bytes",
282
+ },
283
+ {
284
+ indexed: false,
285
+ internalType: "bytes",
286
+ name: "additionalInfo",
287
+ type: "bytes",
288
+ },
289
+ ],
290
+ name: "SafeMultiSigTransaction",
291
+ type: "event",
292
+ },
293
+ {
294
+ anonymous: false,
295
+ inputs: [
296
+ {
297
+ indexed: true,
298
+ internalType: "address",
299
+ name: "sender",
300
+ type: "address",
301
+ },
302
+ {
303
+ indexed: false,
304
+ internalType: "uint256",
305
+ name: "value",
306
+ type: "uint256",
307
+ },
308
+ ],
309
+ name: "SafeReceived",
310
+ type: "event",
311
+ },
312
+ {
313
+ anonymous: false,
314
+ inputs: [
315
+ {
316
+ indexed: true,
317
+ internalType: "address",
318
+ name: "initiator",
319
+ type: "address",
320
+ },
321
+ {
322
+ indexed: false,
323
+ internalType: "address[]",
324
+ name: "owners",
325
+ type: "address[]",
326
+ },
327
+ {
328
+ indexed: false,
329
+ internalType: "uint256",
330
+ name: "threshold",
331
+ type: "uint256",
332
+ },
333
+ {
334
+ indexed: false,
335
+ internalType: "address",
336
+ name: "initializer",
337
+ type: "address",
338
+ },
339
+ {
340
+ indexed: false,
341
+ internalType: "address",
342
+ name: "fallbackHandler",
343
+ type: "address",
344
+ },
345
+ ],
346
+ name: "SafeSetup",
347
+ type: "event",
348
+ },
349
+ {
350
+ anonymous: false,
351
+ inputs: [
352
+ {
353
+ indexed: true,
354
+ internalType: "bytes32",
355
+ name: "msgHash",
356
+ type: "bytes32",
357
+ },
358
+ ],
359
+ name: "SignMsg",
360
+ type: "event",
361
+ },
362
+ {
363
+ stateMutability: "nonpayable",
364
+ type: "fallback",
365
+ },
366
+ {
367
+ inputs: [],
368
+ name: "VERSION",
369
+ outputs: [
370
+ {
371
+ internalType: "string",
372
+ name: "",
373
+ type: "string",
374
+ },
375
+ ],
376
+ stateMutability: "view",
377
+ type: "function",
378
+ },
379
+ {
380
+ inputs: [
381
+ {
382
+ internalType: "address",
383
+ name: "owner",
384
+ type: "address",
385
+ },
386
+ {
387
+ internalType: "uint256",
388
+ name: "_threshold",
389
+ type: "uint256",
390
+ },
391
+ ],
392
+ name: "addOwnerWithThreshold",
393
+ outputs: [],
394
+ stateMutability: "nonpayable",
395
+ type: "function",
396
+ },
397
+ {
398
+ inputs: [
399
+ {
400
+ internalType: "bytes32",
401
+ name: "hashToApprove",
402
+ type: "bytes32",
403
+ },
404
+ ],
405
+ name: "approveHash",
406
+ outputs: [],
407
+ stateMutability: "nonpayable",
408
+ type: "function",
409
+ },
410
+ {
411
+ inputs: [
412
+ {
413
+ internalType: "address",
414
+ name: "",
415
+ type: "address",
416
+ },
417
+ {
418
+ internalType: "bytes32",
419
+ name: "",
420
+ type: "bytes32",
421
+ },
422
+ ],
423
+ name: "approvedHashes",
424
+ outputs: [
425
+ {
426
+ internalType: "uint256",
427
+ name: "",
428
+ type: "uint256",
429
+ },
430
+ ],
431
+ stateMutability: "view",
432
+ type: "function",
433
+ },
434
+ {
435
+ inputs: [
436
+ {
437
+ internalType: "uint256",
438
+ name: "_threshold",
439
+ type: "uint256",
440
+ },
441
+ ],
442
+ name: "changeThreshold",
443
+ outputs: [],
444
+ stateMutability: "nonpayable",
445
+ type: "function",
446
+ },
447
+ {
448
+ inputs: [
449
+ {
450
+ internalType: "bytes32",
451
+ name: "dataHash",
452
+ type: "bytes32",
453
+ },
454
+ {
455
+ internalType: "bytes",
456
+ name: "data",
457
+ type: "bytes",
458
+ },
459
+ {
460
+ internalType: "bytes",
461
+ name: "signatures",
462
+ type: "bytes",
463
+ },
464
+ {
465
+ internalType: "uint256",
466
+ name: "requiredSignatures",
467
+ type: "uint256",
468
+ },
469
+ ],
470
+ name: "checkNSignatures",
471
+ outputs: [],
472
+ stateMutability: "view",
473
+ type: "function",
474
+ },
475
+ {
476
+ inputs: [
477
+ {
478
+ internalType: "bytes32",
479
+ name: "dataHash",
480
+ type: "bytes32",
481
+ },
482
+ {
483
+ internalType: "bytes",
484
+ name: "data",
485
+ type: "bytes",
486
+ },
487
+ {
488
+ internalType: "bytes",
489
+ name: "signatures",
490
+ type: "bytes",
491
+ },
492
+ ],
493
+ name: "checkSignatures",
494
+ outputs: [],
495
+ stateMutability: "view",
496
+ type: "function",
497
+ },
498
+ {
499
+ inputs: [
500
+ {
501
+ internalType: "bytes32",
502
+ name: "",
503
+ type: "bytes32",
504
+ },
505
+ ],
506
+ name: "dataHashes",
507
+ outputs: [
508
+ {
509
+ internalType: "uint8",
510
+ name: "",
511
+ type: "uint8",
512
+ },
513
+ ],
514
+ stateMutability: "view",
515
+ type: "function",
516
+ },
517
+ {
518
+ inputs: [
519
+ {
520
+ internalType: "address",
521
+ name: "prevModule",
522
+ type: "address",
523
+ },
524
+ {
525
+ internalType: "address",
526
+ name: "module",
527
+ type: "address",
528
+ },
529
+ ],
530
+ name: "disableModule",
531
+ outputs: [],
532
+ stateMutability: "nonpayable",
533
+ type: "function",
534
+ },
535
+ {
536
+ inputs: [],
537
+ name: "domainSeparator",
538
+ outputs: [
539
+ {
540
+ internalType: "bytes32",
541
+ name: "",
542
+ type: "bytes32",
543
+ },
544
+ ],
545
+ stateMutability: "view",
546
+ type: "function",
547
+ },
548
+ {
549
+ inputs: [
550
+ {
551
+ internalType: "address",
552
+ name: "module",
553
+ type: "address",
554
+ },
555
+ ],
556
+ name: "enableModule",
557
+ outputs: [],
558
+ stateMutability: "nonpayable",
559
+ type: "function",
560
+ },
561
+ {
562
+ inputs: [
563
+ {
564
+ internalType: "address",
565
+ name: "to",
566
+ type: "address",
567
+ },
568
+ {
569
+ internalType: "uint256",
570
+ name: "value",
571
+ type: "uint256",
572
+ },
573
+ {
574
+ internalType: "bytes",
575
+ name: "data",
576
+ type: "bytes",
577
+ },
578
+ {
579
+ internalType: "enum Enum.Operation",
580
+ name: "operation",
581
+ type: "uint8",
582
+ },
583
+ {
584
+ internalType: "uint256",
585
+ name: "safeTxGas",
586
+ type: "uint256",
587
+ },
588
+ {
589
+ internalType: "uint256",
590
+ name: "baseGas",
591
+ type: "uint256",
592
+ },
593
+ {
594
+ internalType: "uint256",
595
+ name: "gasPrice",
596
+ type: "uint256",
597
+ },
598
+ {
599
+ internalType: "address",
600
+ name: "gasToken",
601
+ type: "address",
602
+ },
603
+ {
604
+ internalType: "address",
605
+ name: "refundReceiver",
606
+ type: "address",
607
+ },
608
+ {
609
+ internalType: "uint256",
610
+ name: "_nonce",
611
+ type: "uint256",
612
+ },
613
+ ],
614
+ name: "encodeTransactionData",
615
+ outputs: [
616
+ {
617
+ internalType: "bytes",
618
+ name: "",
619
+ type: "bytes",
620
+ },
621
+ ],
622
+ stateMutability: "view",
623
+ type: "function",
624
+ },
625
+ {
626
+ inputs: [
627
+ {
628
+ internalType: "address",
629
+ name: "to",
630
+ type: "address",
631
+ },
632
+ {
633
+ internalType: "uint256",
634
+ name: "value",
635
+ type: "uint256",
636
+ },
637
+ {
638
+ internalType: "bytes",
639
+ name: "data",
640
+ type: "bytes",
641
+ },
642
+ {
643
+ internalType: "enum Enum.Operation",
644
+ name: "operation",
645
+ type: "uint8",
646
+ },
647
+ {
648
+ internalType: "uint256",
649
+ name: "safeTxGas",
650
+ type: "uint256",
651
+ },
652
+ {
653
+ internalType: "uint256",
654
+ name: "baseGas",
655
+ type: "uint256",
656
+ },
657
+ {
658
+ internalType: "uint256",
659
+ name: "gasPrice",
660
+ type: "uint256",
661
+ },
662
+ {
663
+ internalType: "address",
664
+ name: "gasToken",
665
+ type: "address",
666
+ },
667
+ {
668
+ internalType: "address payable",
669
+ name: "refundReceiver",
670
+ type: "address",
671
+ },
672
+ {
673
+ internalType: "bytes",
674
+ name: "signatures",
675
+ type: "bytes",
676
+ },
677
+ ],
678
+ name: "execTransaction",
679
+ outputs: [
680
+ {
681
+ internalType: "bool",
682
+ name: "",
683
+ type: "bool",
684
+ },
685
+ ],
686
+ stateMutability: "payable",
687
+ type: "function",
688
+ },
689
+ {
690
+ inputs: [
691
+ {
692
+ internalType: "address",
693
+ name: "to",
694
+ type: "address",
695
+ },
696
+ {
697
+ internalType: "uint256",
698
+ name: "value",
699
+ type: "uint256",
700
+ },
701
+ {
702
+ internalType: "bytes",
703
+ name: "data",
704
+ type: "bytes",
705
+ },
706
+ {
707
+ internalType: "enum Enum.Operation",
708
+ name: "operation",
709
+ type: "uint8",
710
+ },
711
+ ],
712
+ name: "execTransactionFromModule",
713
+ outputs: [
714
+ {
715
+ internalType: "bool",
716
+ name: "success",
717
+ type: "bool",
718
+ },
719
+ ],
720
+ stateMutability: "nonpayable",
721
+ type: "function",
722
+ },
723
+ {
724
+ inputs: [
725
+ {
726
+ internalType: "address",
727
+ name: "to",
728
+ type: "address",
729
+ },
730
+ {
731
+ internalType: "uint256",
732
+ name: "value",
733
+ type: "uint256",
734
+ },
735
+ {
736
+ internalType: "bytes",
737
+ name: "data",
738
+ type: "bytes",
739
+ },
740
+ {
741
+ internalType: "enum Enum.Operation",
742
+ name: "operation",
743
+ type: "uint8",
744
+ },
745
+ ],
746
+ name: "execTransactionFromModuleReturnData",
747
+ outputs: [
748
+ {
749
+ internalType: "bool",
750
+ name: "success",
751
+ type: "bool",
752
+ },
753
+ {
754
+ internalType: "bytes",
755
+ name: "returnData",
756
+ type: "bytes",
757
+ },
758
+ ],
759
+ stateMutability: "nonpayable",
760
+ type: "function",
761
+ },
762
+ {
763
+ inputs: [],
764
+ name: "getChainId",
765
+ outputs: [
766
+ {
767
+ internalType: "uint256",
768
+ name: "",
769
+ type: "uint256",
770
+ },
771
+ ],
772
+ stateMutability: "view",
773
+ type: "function",
774
+ },
775
+ {
776
+ inputs: [
777
+ {
778
+ internalType: "address",
779
+ name: "start",
780
+ type: "address",
781
+ },
782
+ {
783
+ internalType: "uint256",
784
+ name: "pageSize",
785
+ type: "uint256",
786
+ },
787
+ ],
788
+ name: "getModulesPaginated",
789
+ outputs: [
790
+ {
791
+ internalType: "address[]",
792
+ name: "array",
793
+ type: "address[]",
794
+ },
795
+ {
796
+ internalType: "address",
797
+ name: "next",
798
+ type: "address",
799
+ },
800
+ ],
801
+ stateMutability: "view",
802
+ type: "function",
803
+ },
804
+ {
805
+ inputs: [],
806
+ name: "getOwners",
807
+ outputs: [
808
+ {
809
+ internalType: "address[]",
810
+ name: "",
811
+ type: "address[]",
812
+ },
813
+ ],
814
+ stateMutability: "view",
815
+ type: "function",
816
+ },
817
+ {
818
+ inputs: [
819
+ {
820
+ internalType: "uint256",
821
+ name: "offset",
822
+ type: "uint256",
823
+ },
824
+ {
825
+ internalType: "uint256",
826
+ name: "length",
827
+ type: "uint256",
828
+ },
829
+ ],
830
+ name: "getStorageAt",
831
+ outputs: [
832
+ {
833
+ internalType: "bytes",
834
+ name: "",
835
+ type: "bytes",
836
+ },
837
+ ],
838
+ stateMutability: "view",
839
+ type: "function",
840
+ },
841
+ {
842
+ inputs: [],
843
+ name: "getThreshold",
844
+ outputs: [
845
+ {
846
+ internalType: "uint256",
847
+ name: "",
848
+ type: "uint256",
849
+ },
850
+ ],
851
+ stateMutability: "view",
852
+ type: "function",
853
+ },
854
+ {
855
+ inputs: [
856
+ {
857
+ internalType: "address",
858
+ name: "to",
859
+ type: "address",
860
+ },
861
+ {
862
+ internalType: "uint256",
863
+ name: "value",
864
+ type: "uint256",
865
+ },
866
+ {
867
+ internalType: "bytes",
868
+ name: "data",
869
+ type: "bytes",
870
+ },
871
+ {
872
+ internalType: "enum Enum.Operation",
873
+ name: "operation",
874
+ type: "uint8",
875
+ },
876
+ {
877
+ internalType: "uint256",
878
+ name: "safeTxGas",
879
+ type: "uint256",
880
+ },
881
+ {
882
+ internalType: "uint256",
883
+ name: "baseGas",
884
+ type: "uint256",
885
+ },
886
+ {
887
+ internalType: "uint256",
888
+ name: "gasPrice",
889
+ type: "uint256",
890
+ },
891
+ {
892
+ internalType: "address",
893
+ name: "gasToken",
894
+ type: "address",
895
+ },
896
+ {
897
+ internalType: "address",
898
+ name: "refundReceiver",
899
+ type: "address",
900
+ },
901
+ {
902
+ internalType: "uint256",
903
+ name: "_nonce",
904
+ type: "uint256",
905
+ },
906
+ ],
907
+ name: "getTransactionHash",
908
+ outputs: [
909
+ {
910
+ internalType: "bytes32",
911
+ name: "",
912
+ type: "bytes32",
913
+ },
914
+ ],
915
+ stateMutability: "view",
916
+ type: "function",
917
+ },
918
+ {
919
+ inputs: [
920
+ {
921
+ internalType: "address",
922
+ name: "module",
923
+ type: "address",
924
+ },
925
+ ],
926
+ name: "isModuleEnabled",
927
+ outputs: [
928
+ {
929
+ internalType: "bool",
930
+ name: "",
931
+ type: "bool",
932
+ },
933
+ ],
934
+ stateMutability: "view",
935
+ type: "function",
936
+ },
937
+ {
938
+ inputs: [
939
+ {
940
+ internalType: "address",
941
+ name: "owner",
942
+ type: "address",
943
+ },
944
+ ],
945
+ name: "isOwner",
946
+ outputs: [
947
+ {
948
+ internalType: "bool",
949
+ name: "",
950
+ type: "bool",
951
+ },
952
+ ],
953
+ stateMutability: "view",
954
+ type: "function",
955
+ },
956
+ {
957
+ inputs: [],
958
+ name: "nonce",
959
+ outputs: [
960
+ {
961
+ internalType: "uint256",
962
+ name: "",
963
+ type: "uint256",
964
+ },
965
+ ],
966
+ stateMutability: "view",
967
+ type: "function",
968
+ },
969
+ {
970
+ inputs: [
971
+ {
972
+ internalType: "address",
973
+ name: "prevOwner",
974
+ type: "address",
975
+ },
976
+ {
977
+ internalType: "address",
978
+ name: "owner",
979
+ type: "address",
980
+ },
981
+ {
982
+ internalType: "uint256",
983
+ name: "_threshold",
984
+ type: "uint256",
985
+ },
986
+ ],
987
+ name: "removeOwner",
988
+ outputs: [],
989
+ stateMutability: "nonpayable",
990
+ type: "function",
991
+ },
992
+ {
993
+ inputs: [
994
+ {
995
+ internalType: "address",
996
+ name: "to",
997
+ type: "address",
998
+ },
999
+ {
1000
+ internalType: "uint256",
1001
+ name: "value",
1002
+ type: "uint256",
1003
+ },
1004
+ {
1005
+ internalType: "bytes",
1006
+ name: "data",
1007
+ type: "bytes",
1008
+ },
1009
+ {
1010
+ internalType: "enum Enum.Operation",
1011
+ name: "operation",
1012
+ type: "uint8",
1013
+ },
1014
+ ],
1015
+ name: "requiredTxGas",
1016
+ outputs: [
1017
+ {
1018
+ internalType: "uint256",
1019
+ name: "",
1020
+ type: "uint256",
1021
+ },
1022
+ ],
1023
+ stateMutability: "nonpayable",
1024
+ type: "function",
1025
+ },
1026
+ {
1027
+ inputs: [
1028
+ {
1029
+ internalType: "address",
1030
+ name: "handler",
1031
+ type: "address",
1032
+ },
1033
+ ],
1034
+ name: "setFallbackHandler",
1035
+ outputs: [],
1036
+ stateMutability: "nonpayable",
1037
+ type: "function",
1038
+ },
1039
+ {
1040
+ inputs: [
1041
+ {
1042
+ internalType: "address",
1043
+ name: "guard",
1044
+ type: "address",
1045
+ },
1046
+ ],
1047
+ name: "setGuard",
1048
+ outputs: [],
1049
+ stateMutability: "nonpayable",
1050
+ type: "function",
1051
+ },
1052
+ {
1053
+ inputs: [
1054
+ {
1055
+ internalType: "address[]",
1056
+ name: "_owners",
1057
+ type: "address[]",
1058
+ },
1059
+ {
1060
+ internalType: "uint256",
1061
+ name: "_threshold",
1062
+ type: "uint256",
1063
+ },
1064
+ {
1065
+ internalType: "address",
1066
+ name: "to",
1067
+ type: "address",
1068
+ },
1069
+ {
1070
+ internalType: "bytes",
1071
+ name: "data",
1072
+ type: "bytes",
1073
+ },
1074
+ {
1075
+ internalType: "address",
1076
+ name: "fallbackHandler",
1077
+ type: "address",
1078
+ },
1079
+ {
1080
+ internalType: "address",
1081
+ name: "paymentToken",
1082
+ type: "address",
1083
+ },
1084
+ {
1085
+ internalType: "uint256",
1086
+ name: "payment",
1087
+ type: "uint256",
1088
+ },
1089
+ {
1090
+ internalType: "address payable",
1091
+ name: "paymentReceiver",
1092
+ type: "address",
1093
+ },
1094
+ ],
1095
+ name: "setup",
1096
+ outputs: [],
1097
+ stateMutability: "nonpayable",
1098
+ type: "function",
1099
+ },
1100
+ {
1101
+ inputs: [
1102
+ {
1103
+ internalType: "bytes32",
1104
+ name: "",
1105
+ type: "bytes32",
1106
+ },
1107
+ ],
1108
+ name: "signedMessages",
1109
+ outputs: [
1110
+ {
1111
+ internalType: "uint256",
1112
+ name: "",
1113
+ type: "uint256",
1114
+ },
1115
+ ],
1116
+ stateMutability: "view",
1117
+ type: "function",
1118
+ },
1119
+ {
1120
+ inputs: [
1121
+ {
1122
+ internalType: "address",
1123
+ name: "targetContract",
1124
+ type: "address",
1125
+ },
1126
+ {
1127
+ internalType: "bytes",
1128
+ name: "calldataPayload",
1129
+ type: "bytes",
1130
+ },
1131
+ ],
1132
+ name: "simulateAndRevert",
1133
+ outputs: [],
1134
+ stateMutability: "nonpayable",
1135
+ type: "function",
1136
+ },
1137
+ {
1138
+ inputs: [
1139
+ {
1140
+ internalType: "address",
1141
+ name: "prevOwner",
1142
+ type: "address",
1143
+ },
1144
+ {
1145
+ internalType: "address",
1146
+ name: "oldOwner",
1147
+ type: "address",
1148
+ },
1149
+ {
1150
+ internalType: "address",
1151
+ name: "newOwner",
1152
+ type: "address",
1153
+ },
1154
+ ],
1155
+ name: "swapOwner",
1156
+ outputs: [],
1157
+ stateMutability: "nonpayable",
1158
+ type: "function",
1159
+ },
1160
+ {
1161
+ stateMutability: "payable",
1162
+ type: "receive",
1163
+ },
1164
+ ];
1165
+ class GnosisSafe__factory {
1166
+ static createInterface() {
1167
+ return new ethers_1.utils.Interface(_abi);
1168
+ }
1169
+ static connect(address, signerOrProvider) {
1170
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
1171
+ }
1172
+ }
1173
+ exports.GnosisSafe__factory = GnosisSafe__factory;
1174
+ GnosisSafe__factory.abi = _abi;