near-safe 0.3.2 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1889 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SAFE_DEPLOYMENTS = void 0;
4
+ exports.SAFE_DEPLOYMENTS = {
5
+ singleton: {
6
+ address: "0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",
7
+ abi: [
8
+ {
9
+ anonymous: false,
10
+ inputs: [
11
+ {
12
+ indexed: true,
13
+ internalType: "address",
14
+ name: "owner",
15
+ type: "address",
16
+ },
17
+ ],
18
+ name: "AddedOwner",
19
+ type: "event",
20
+ },
21
+ {
22
+ anonymous: false,
23
+ inputs: [
24
+ {
25
+ indexed: true,
26
+ internalType: "bytes32",
27
+ name: "approvedHash",
28
+ type: "bytes32",
29
+ },
30
+ {
31
+ indexed: true,
32
+ internalType: "address",
33
+ name: "owner",
34
+ type: "address",
35
+ },
36
+ ],
37
+ name: "ApproveHash",
38
+ type: "event",
39
+ },
40
+ {
41
+ anonymous: false,
42
+ inputs: [
43
+ {
44
+ indexed: true,
45
+ internalType: "address",
46
+ name: "handler",
47
+ type: "address",
48
+ },
49
+ ],
50
+ name: "ChangedFallbackHandler",
51
+ type: "event",
52
+ },
53
+ {
54
+ anonymous: false,
55
+ inputs: [
56
+ {
57
+ indexed: true,
58
+ internalType: "address",
59
+ name: "guard",
60
+ type: "address",
61
+ },
62
+ ],
63
+ name: "ChangedGuard",
64
+ type: "event",
65
+ },
66
+ {
67
+ anonymous: false,
68
+ inputs: [
69
+ {
70
+ indexed: false,
71
+ internalType: "uint256",
72
+ name: "threshold",
73
+ type: "uint256",
74
+ },
75
+ ],
76
+ name: "ChangedThreshold",
77
+ type: "event",
78
+ },
79
+ {
80
+ anonymous: false,
81
+ inputs: [
82
+ {
83
+ indexed: true,
84
+ internalType: "address",
85
+ name: "module",
86
+ type: "address",
87
+ },
88
+ ],
89
+ name: "DisabledModule",
90
+ type: "event",
91
+ },
92
+ {
93
+ anonymous: false,
94
+ inputs: [
95
+ {
96
+ indexed: true,
97
+ internalType: "address",
98
+ name: "module",
99
+ type: "address",
100
+ },
101
+ ],
102
+ name: "EnabledModule",
103
+ type: "event",
104
+ },
105
+ {
106
+ anonymous: false,
107
+ inputs: [
108
+ {
109
+ indexed: true,
110
+ internalType: "bytes32",
111
+ name: "txHash",
112
+ type: "bytes32",
113
+ },
114
+ {
115
+ indexed: false,
116
+ internalType: "uint256",
117
+ name: "payment",
118
+ type: "uint256",
119
+ },
120
+ ],
121
+ name: "ExecutionFailure",
122
+ type: "event",
123
+ },
124
+ {
125
+ anonymous: false,
126
+ inputs: [
127
+ {
128
+ indexed: true,
129
+ internalType: "address",
130
+ name: "module",
131
+ type: "address",
132
+ },
133
+ ],
134
+ name: "ExecutionFromModuleFailure",
135
+ type: "event",
136
+ },
137
+ {
138
+ anonymous: false,
139
+ inputs: [
140
+ {
141
+ indexed: true,
142
+ internalType: "address",
143
+ name: "module",
144
+ type: "address",
145
+ },
146
+ ],
147
+ name: "ExecutionFromModuleSuccess",
148
+ type: "event",
149
+ },
150
+ {
151
+ anonymous: false,
152
+ inputs: [
153
+ {
154
+ indexed: true,
155
+ internalType: "bytes32",
156
+ name: "txHash",
157
+ type: "bytes32",
158
+ },
159
+ {
160
+ indexed: false,
161
+ internalType: "uint256",
162
+ name: "payment",
163
+ type: "uint256",
164
+ },
165
+ ],
166
+ name: "ExecutionSuccess",
167
+ type: "event",
168
+ },
169
+ {
170
+ anonymous: false,
171
+ inputs: [
172
+ {
173
+ indexed: true,
174
+ internalType: "address",
175
+ name: "owner",
176
+ type: "address",
177
+ },
178
+ ],
179
+ name: "RemovedOwner",
180
+ type: "event",
181
+ },
182
+ {
183
+ anonymous: false,
184
+ inputs: [
185
+ {
186
+ indexed: false,
187
+ internalType: "address",
188
+ name: "module",
189
+ type: "address",
190
+ },
191
+ {
192
+ indexed: false,
193
+ internalType: "address",
194
+ name: "to",
195
+ type: "address",
196
+ },
197
+ {
198
+ indexed: false,
199
+ internalType: "uint256",
200
+ name: "value",
201
+ type: "uint256",
202
+ },
203
+ {
204
+ indexed: false,
205
+ internalType: "bytes",
206
+ name: "data",
207
+ type: "bytes",
208
+ },
209
+ {
210
+ indexed: false,
211
+ internalType: "enum Enum.Operation",
212
+ name: "operation",
213
+ type: "uint8",
214
+ },
215
+ ],
216
+ name: "SafeModuleTransaction",
217
+ type: "event",
218
+ },
219
+ {
220
+ anonymous: false,
221
+ inputs: [
222
+ {
223
+ indexed: false,
224
+ internalType: "address",
225
+ name: "to",
226
+ type: "address",
227
+ },
228
+ {
229
+ indexed: false,
230
+ internalType: "uint256",
231
+ name: "value",
232
+ type: "uint256",
233
+ },
234
+ {
235
+ indexed: false,
236
+ internalType: "bytes",
237
+ name: "data",
238
+ type: "bytes",
239
+ },
240
+ {
241
+ indexed: false,
242
+ internalType: "enum Enum.Operation",
243
+ name: "operation",
244
+ type: "uint8",
245
+ },
246
+ {
247
+ indexed: false,
248
+ internalType: "uint256",
249
+ name: "safeTxGas",
250
+ type: "uint256",
251
+ },
252
+ {
253
+ indexed: false,
254
+ internalType: "uint256",
255
+ name: "baseGas",
256
+ type: "uint256",
257
+ },
258
+ {
259
+ indexed: false,
260
+ internalType: "uint256",
261
+ name: "gasPrice",
262
+ type: "uint256",
263
+ },
264
+ {
265
+ indexed: false,
266
+ internalType: "address",
267
+ name: "gasToken",
268
+ type: "address",
269
+ },
270
+ {
271
+ indexed: false,
272
+ internalType: "address payable",
273
+ name: "refundReceiver",
274
+ type: "address",
275
+ },
276
+ {
277
+ indexed: false,
278
+ internalType: "bytes",
279
+ name: "signatures",
280
+ type: "bytes",
281
+ },
282
+ {
283
+ indexed: false,
284
+ internalType: "bytes",
285
+ name: "additionalInfo",
286
+ type: "bytes",
287
+ },
288
+ ],
289
+ name: "SafeMultiSigTransaction",
290
+ type: "event",
291
+ },
292
+ {
293
+ anonymous: false,
294
+ inputs: [
295
+ {
296
+ indexed: true,
297
+ internalType: "address",
298
+ name: "sender",
299
+ type: "address",
300
+ },
301
+ {
302
+ indexed: false,
303
+ internalType: "uint256",
304
+ name: "value",
305
+ type: "uint256",
306
+ },
307
+ ],
308
+ name: "SafeReceived",
309
+ type: "event",
310
+ },
311
+ {
312
+ anonymous: false,
313
+ inputs: [
314
+ {
315
+ indexed: true,
316
+ internalType: "address",
317
+ name: "initiator",
318
+ type: "address",
319
+ },
320
+ {
321
+ indexed: false,
322
+ internalType: "address[]",
323
+ name: "owners",
324
+ type: "address[]",
325
+ },
326
+ {
327
+ indexed: false,
328
+ internalType: "uint256",
329
+ name: "threshold",
330
+ type: "uint256",
331
+ },
332
+ {
333
+ indexed: false,
334
+ internalType: "address",
335
+ name: "initializer",
336
+ type: "address",
337
+ },
338
+ {
339
+ indexed: false,
340
+ internalType: "address",
341
+ name: "fallbackHandler",
342
+ type: "address",
343
+ },
344
+ ],
345
+ name: "SafeSetup",
346
+ type: "event",
347
+ },
348
+ {
349
+ anonymous: false,
350
+ inputs: [
351
+ {
352
+ indexed: true,
353
+ internalType: "bytes32",
354
+ name: "msgHash",
355
+ type: "bytes32",
356
+ },
357
+ ],
358
+ name: "SignMsg",
359
+ type: "event",
360
+ },
361
+ {
362
+ stateMutability: "nonpayable",
363
+ type: "fallback",
364
+ },
365
+ {
366
+ inputs: [],
367
+ name: "VERSION",
368
+ outputs: [
369
+ {
370
+ internalType: "string",
371
+ name: "",
372
+ type: "string",
373
+ },
374
+ ],
375
+ stateMutability: "view",
376
+ type: "function",
377
+ },
378
+ {
379
+ inputs: [
380
+ {
381
+ internalType: "address",
382
+ name: "owner",
383
+ type: "address",
384
+ },
385
+ {
386
+ internalType: "uint256",
387
+ name: "_threshold",
388
+ type: "uint256",
389
+ },
390
+ ],
391
+ name: "addOwnerWithThreshold",
392
+ outputs: [],
393
+ stateMutability: "nonpayable",
394
+ type: "function",
395
+ },
396
+ {
397
+ inputs: [
398
+ {
399
+ internalType: "bytes32",
400
+ name: "hashToApprove",
401
+ type: "bytes32",
402
+ },
403
+ ],
404
+ name: "approveHash",
405
+ outputs: [],
406
+ stateMutability: "nonpayable",
407
+ type: "function",
408
+ },
409
+ {
410
+ inputs: [
411
+ {
412
+ internalType: "address",
413
+ name: "",
414
+ type: "address",
415
+ },
416
+ {
417
+ internalType: "bytes32",
418
+ name: "",
419
+ type: "bytes32",
420
+ },
421
+ ],
422
+ name: "approvedHashes",
423
+ outputs: [
424
+ {
425
+ internalType: "uint256",
426
+ name: "",
427
+ type: "uint256",
428
+ },
429
+ ],
430
+ stateMutability: "view",
431
+ type: "function",
432
+ },
433
+ {
434
+ inputs: [
435
+ {
436
+ internalType: "uint256",
437
+ name: "_threshold",
438
+ type: "uint256",
439
+ },
440
+ ],
441
+ name: "changeThreshold",
442
+ outputs: [],
443
+ stateMutability: "nonpayable",
444
+ type: "function",
445
+ },
446
+ {
447
+ inputs: [
448
+ {
449
+ internalType: "bytes32",
450
+ name: "dataHash",
451
+ type: "bytes32",
452
+ },
453
+ {
454
+ internalType: "bytes",
455
+ name: "data",
456
+ type: "bytes",
457
+ },
458
+ {
459
+ internalType: "bytes",
460
+ name: "signatures",
461
+ type: "bytes",
462
+ },
463
+ {
464
+ internalType: "uint256",
465
+ name: "requiredSignatures",
466
+ type: "uint256",
467
+ },
468
+ ],
469
+ name: "checkNSignatures",
470
+ outputs: [],
471
+ stateMutability: "view",
472
+ type: "function",
473
+ },
474
+ {
475
+ inputs: [
476
+ {
477
+ internalType: "bytes32",
478
+ name: "dataHash",
479
+ type: "bytes32",
480
+ },
481
+ {
482
+ internalType: "bytes",
483
+ name: "data",
484
+ type: "bytes",
485
+ },
486
+ {
487
+ internalType: "bytes",
488
+ name: "signatures",
489
+ type: "bytes",
490
+ },
491
+ ],
492
+ name: "checkSignatures",
493
+ outputs: [],
494
+ stateMutability: "view",
495
+ type: "function",
496
+ },
497
+ {
498
+ inputs: [
499
+ {
500
+ internalType: "address",
501
+ name: "prevModule",
502
+ type: "address",
503
+ },
504
+ {
505
+ internalType: "address",
506
+ name: "module",
507
+ type: "address",
508
+ },
509
+ ],
510
+ name: "disableModule",
511
+ outputs: [],
512
+ stateMutability: "nonpayable",
513
+ type: "function",
514
+ },
515
+ {
516
+ inputs: [],
517
+ name: "domainSeparator",
518
+ outputs: [
519
+ {
520
+ internalType: "bytes32",
521
+ name: "",
522
+ type: "bytes32",
523
+ },
524
+ ],
525
+ stateMutability: "view",
526
+ type: "function",
527
+ },
528
+ {
529
+ inputs: [
530
+ {
531
+ internalType: "address",
532
+ name: "module",
533
+ type: "address",
534
+ },
535
+ ],
536
+ name: "enableModule",
537
+ outputs: [],
538
+ stateMutability: "nonpayable",
539
+ type: "function",
540
+ },
541
+ {
542
+ inputs: [
543
+ {
544
+ internalType: "address",
545
+ name: "to",
546
+ type: "address",
547
+ },
548
+ {
549
+ internalType: "uint256",
550
+ name: "value",
551
+ type: "uint256",
552
+ },
553
+ {
554
+ internalType: "bytes",
555
+ name: "data",
556
+ type: "bytes",
557
+ },
558
+ {
559
+ internalType: "enum Enum.Operation",
560
+ name: "operation",
561
+ type: "uint8",
562
+ },
563
+ {
564
+ internalType: "uint256",
565
+ name: "safeTxGas",
566
+ type: "uint256",
567
+ },
568
+ {
569
+ internalType: "uint256",
570
+ name: "baseGas",
571
+ type: "uint256",
572
+ },
573
+ {
574
+ internalType: "uint256",
575
+ name: "gasPrice",
576
+ type: "uint256",
577
+ },
578
+ {
579
+ internalType: "address",
580
+ name: "gasToken",
581
+ type: "address",
582
+ },
583
+ {
584
+ internalType: "address",
585
+ name: "refundReceiver",
586
+ type: "address",
587
+ },
588
+ {
589
+ internalType: "uint256",
590
+ name: "_nonce",
591
+ type: "uint256",
592
+ },
593
+ ],
594
+ name: "encodeTransactionData",
595
+ outputs: [
596
+ {
597
+ internalType: "bytes",
598
+ name: "",
599
+ type: "bytes",
600
+ },
601
+ ],
602
+ stateMutability: "view",
603
+ type: "function",
604
+ },
605
+ {
606
+ inputs: [
607
+ {
608
+ internalType: "address",
609
+ name: "to",
610
+ type: "address",
611
+ },
612
+ {
613
+ internalType: "uint256",
614
+ name: "value",
615
+ type: "uint256",
616
+ },
617
+ {
618
+ internalType: "bytes",
619
+ name: "data",
620
+ type: "bytes",
621
+ },
622
+ {
623
+ internalType: "enum Enum.Operation",
624
+ name: "operation",
625
+ type: "uint8",
626
+ },
627
+ {
628
+ internalType: "uint256",
629
+ name: "safeTxGas",
630
+ type: "uint256",
631
+ },
632
+ {
633
+ internalType: "uint256",
634
+ name: "baseGas",
635
+ type: "uint256",
636
+ },
637
+ {
638
+ internalType: "uint256",
639
+ name: "gasPrice",
640
+ type: "uint256",
641
+ },
642
+ {
643
+ internalType: "address",
644
+ name: "gasToken",
645
+ type: "address",
646
+ },
647
+ {
648
+ internalType: "address payable",
649
+ name: "refundReceiver",
650
+ type: "address",
651
+ },
652
+ {
653
+ internalType: "bytes",
654
+ name: "signatures",
655
+ type: "bytes",
656
+ },
657
+ ],
658
+ name: "execTransaction",
659
+ outputs: [
660
+ {
661
+ internalType: "bool",
662
+ name: "",
663
+ type: "bool",
664
+ },
665
+ ],
666
+ stateMutability: "payable",
667
+ type: "function",
668
+ },
669
+ {
670
+ inputs: [
671
+ {
672
+ internalType: "address",
673
+ name: "to",
674
+ type: "address",
675
+ },
676
+ {
677
+ internalType: "uint256",
678
+ name: "value",
679
+ type: "uint256",
680
+ },
681
+ {
682
+ internalType: "bytes",
683
+ name: "data",
684
+ type: "bytes",
685
+ },
686
+ {
687
+ internalType: "enum Enum.Operation",
688
+ name: "operation",
689
+ type: "uint8",
690
+ },
691
+ ],
692
+ name: "execTransactionFromModule",
693
+ outputs: [
694
+ {
695
+ internalType: "bool",
696
+ name: "success",
697
+ type: "bool",
698
+ },
699
+ ],
700
+ stateMutability: "nonpayable",
701
+ type: "function",
702
+ },
703
+ {
704
+ inputs: [
705
+ {
706
+ internalType: "address",
707
+ name: "to",
708
+ type: "address",
709
+ },
710
+ {
711
+ internalType: "uint256",
712
+ name: "value",
713
+ type: "uint256",
714
+ },
715
+ {
716
+ internalType: "bytes",
717
+ name: "data",
718
+ type: "bytes",
719
+ },
720
+ {
721
+ internalType: "enum Enum.Operation",
722
+ name: "operation",
723
+ type: "uint8",
724
+ },
725
+ ],
726
+ name: "execTransactionFromModuleReturnData",
727
+ outputs: [
728
+ {
729
+ internalType: "bool",
730
+ name: "success",
731
+ type: "bool",
732
+ },
733
+ {
734
+ internalType: "bytes",
735
+ name: "returnData",
736
+ type: "bytes",
737
+ },
738
+ ],
739
+ stateMutability: "nonpayable",
740
+ type: "function",
741
+ },
742
+ {
743
+ inputs: [],
744
+ name: "getChainId",
745
+ outputs: [
746
+ {
747
+ internalType: "uint256",
748
+ name: "",
749
+ type: "uint256",
750
+ },
751
+ ],
752
+ stateMutability: "view",
753
+ type: "function",
754
+ },
755
+ {
756
+ inputs: [
757
+ {
758
+ internalType: "address",
759
+ name: "start",
760
+ type: "address",
761
+ },
762
+ {
763
+ internalType: "uint256",
764
+ name: "pageSize",
765
+ type: "uint256",
766
+ },
767
+ ],
768
+ name: "getModulesPaginated",
769
+ outputs: [
770
+ {
771
+ internalType: "address[]",
772
+ name: "array",
773
+ type: "address[]",
774
+ },
775
+ {
776
+ internalType: "address",
777
+ name: "next",
778
+ type: "address",
779
+ },
780
+ ],
781
+ stateMutability: "view",
782
+ type: "function",
783
+ },
784
+ {
785
+ inputs: [],
786
+ name: "getOwners",
787
+ outputs: [
788
+ {
789
+ internalType: "address[]",
790
+ name: "",
791
+ type: "address[]",
792
+ },
793
+ ],
794
+ stateMutability: "view",
795
+ type: "function",
796
+ },
797
+ {
798
+ inputs: [
799
+ {
800
+ internalType: "uint256",
801
+ name: "offset",
802
+ type: "uint256",
803
+ },
804
+ {
805
+ internalType: "uint256",
806
+ name: "length",
807
+ type: "uint256",
808
+ },
809
+ ],
810
+ name: "getStorageAt",
811
+ outputs: [
812
+ {
813
+ internalType: "bytes",
814
+ name: "",
815
+ type: "bytes",
816
+ },
817
+ ],
818
+ stateMutability: "view",
819
+ type: "function",
820
+ },
821
+ {
822
+ inputs: [],
823
+ name: "getThreshold",
824
+ outputs: [
825
+ {
826
+ internalType: "uint256",
827
+ name: "",
828
+ type: "uint256",
829
+ },
830
+ ],
831
+ stateMutability: "view",
832
+ type: "function",
833
+ },
834
+ {
835
+ inputs: [
836
+ {
837
+ internalType: "address",
838
+ name: "to",
839
+ type: "address",
840
+ },
841
+ {
842
+ internalType: "uint256",
843
+ name: "value",
844
+ type: "uint256",
845
+ },
846
+ {
847
+ internalType: "bytes",
848
+ name: "data",
849
+ type: "bytes",
850
+ },
851
+ {
852
+ internalType: "enum Enum.Operation",
853
+ name: "operation",
854
+ type: "uint8",
855
+ },
856
+ {
857
+ internalType: "uint256",
858
+ name: "safeTxGas",
859
+ type: "uint256",
860
+ },
861
+ {
862
+ internalType: "uint256",
863
+ name: "baseGas",
864
+ type: "uint256",
865
+ },
866
+ {
867
+ internalType: "uint256",
868
+ name: "gasPrice",
869
+ type: "uint256",
870
+ },
871
+ {
872
+ internalType: "address",
873
+ name: "gasToken",
874
+ type: "address",
875
+ },
876
+ {
877
+ internalType: "address",
878
+ name: "refundReceiver",
879
+ type: "address",
880
+ },
881
+ {
882
+ internalType: "uint256",
883
+ name: "_nonce",
884
+ type: "uint256",
885
+ },
886
+ ],
887
+ name: "getTransactionHash",
888
+ outputs: [
889
+ {
890
+ internalType: "bytes32",
891
+ name: "",
892
+ type: "bytes32",
893
+ },
894
+ ],
895
+ stateMutability: "view",
896
+ type: "function",
897
+ },
898
+ {
899
+ inputs: [
900
+ {
901
+ internalType: "address",
902
+ name: "module",
903
+ type: "address",
904
+ },
905
+ ],
906
+ name: "isModuleEnabled",
907
+ outputs: [
908
+ {
909
+ internalType: "bool",
910
+ name: "",
911
+ type: "bool",
912
+ },
913
+ ],
914
+ stateMutability: "view",
915
+ type: "function",
916
+ },
917
+ {
918
+ inputs: [
919
+ {
920
+ internalType: "address",
921
+ name: "owner",
922
+ type: "address",
923
+ },
924
+ ],
925
+ name: "isOwner",
926
+ outputs: [
927
+ {
928
+ internalType: "bool",
929
+ name: "",
930
+ type: "bool",
931
+ },
932
+ ],
933
+ stateMutability: "view",
934
+ type: "function",
935
+ },
936
+ {
937
+ inputs: [],
938
+ name: "nonce",
939
+ outputs: [
940
+ {
941
+ internalType: "uint256",
942
+ name: "",
943
+ type: "uint256",
944
+ },
945
+ ],
946
+ stateMutability: "view",
947
+ type: "function",
948
+ },
949
+ {
950
+ inputs: [
951
+ {
952
+ internalType: "address",
953
+ name: "prevOwner",
954
+ type: "address",
955
+ },
956
+ {
957
+ internalType: "address",
958
+ name: "owner",
959
+ type: "address",
960
+ },
961
+ {
962
+ internalType: "uint256",
963
+ name: "_threshold",
964
+ type: "uint256",
965
+ },
966
+ ],
967
+ name: "removeOwner",
968
+ outputs: [],
969
+ stateMutability: "nonpayable",
970
+ type: "function",
971
+ },
972
+ {
973
+ inputs: [
974
+ {
975
+ internalType: "address",
976
+ name: "handler",
977
+ type: "address",
978
+ },
979
+ ],
980
+ name: "setFallbackHandler",
981
+ outputs: [],
982
+ stateMutability: "nonpayable",
983
+ type: "function",
984
+ },
985
+ {
986
+ inputs: [
987
+ {
988
+ internalType: "address",
989
+ name: "guard",
990
+ type: "address",
991
+ },
992
+ ],
993
+ name: "setGuard",
994
+ outputs: [],
995
+ stateMutability: "nonpayable",
996
+ type: "function",
997
+ },
998
+ {
999
+ inputs: [
1000
+ {
1001
+ internalType: "address[]",
1002
+ name: "_owners",
1003
+ type: "address[]",
1004
+ },
1005
+ {
1006
+ internalType: "uint256",
1007
+ name: "_threshold",
1008
+ type: "uint256",
1009
+ },
1010
+ {
1011
+ internalType: "address",
1012
+ name: "to",
1013
+ type: "address",
1014
+ },
1015
+ {
1016
+ internalType: "bytes",
1017
+ name: "data",
1018
+ type: "bytes",
1019
+ },
1020
+ {
1021
+ internalType: "address",
1022
+ name: "fallbackHandler",
1023
+ type: "address",
1024
+ },
1025
+ {
1026
+ internalType: "address",
1027
+ name: "paymentToken",
1028
+ type: "address",
1029
+ },
1030
+ {
1031
+ internalType: "uint256",
1032
+ name: "payment",
1033
+ type: "uint256",
1034
+ },
1035
+ {
1036
+ internalType: "address payable",
1037
+ name: "paymentReceiver",
1038
+ type: "address",
1039
+ },
1040
+ ],
1041
+ name: "setup",
1042
+ outputs: [],
1043
+ stateMutability: "nonpayable",
1044
+ type: "function",
1045
+ },
1046
+ {
1047
+ inputs: [
1048
+ {
1049
+ internalType: "bytes32",
1050
+ name: "",
1051
+ type: "bytes32",
1052
+ },
1053
+ ],
1054
+ name: "signedMessages",
1055
+ outputs: [
1056
+ {
1057
+ internalType: "uint256",
1058
+ name: "",
1059
+ type: "uint256",
1060
+ },
1061
+ ],
1062
+ stateMutability: "view",
1063
+ type: "function",
1064
+ },
1065
+ {
1066
+ inputs: [
1067
+ {
1068
+ internalType: "address",
1069
+ name: "targetContract",
1070
+ type: "address",
1071
+ },
1072
+ {
1073
+ internalType: "bytes",
1074
+ name: "calldataPayload",
1075
+ type: "bytes",
1076
+ },
1077
+ ],
1078
+ name: "simulateAndRevert",
1079
+ outputs: [],
1080
+ stateMutability: "nonpayable",
1081
+ type: "function",
1082
+ },
1083
+ {
1084
+ inputs: [
1085
+ {
1086
+ internalType: "address",
1087
+ name: "prevOwner",
1088
+ type: "address",
1089
+ },
1090
+ {
1091
+ internalType: "address",
1092
+ name: "oldOwner",
1093
+ type: "address",
1094
+ },
1095
+ {
1096
+ internalType: "address",
1097
+ name: "newOwner",
1098
+ type: "address",
1099
+ },
1100
+ ],
1101
+ name: "swapOwner",
1102
+ outputs: [],
1103
+ stateMutability: "nonpayable",
1104
+ type: "function",
1105
+ },
1106
+ {
1107
+ stateMutability: "payable",
1108
+ type: "receive",
1109
+ },
1110
+ ],
1111
+ },
1112
+ proxyFactory: {
1113
+ address: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",
1114
+ abi: [
1115
+ {
1116
+ anonymous: false,
1117
+ inputs: [
1118
+ {
1119
+ indexed: true,
1120
+ internalType: "contract SafeProxy",
1121
+ name: "proxy",
1122
+ type: "address",
1123
+ },
1124
+ {
1125
+ indexed: false,
1126
+ internalType: "address",
1127
+ name: "singleton",
1128
+ type: "address",
1129
+ },
1130
+ ],
1131
+ name: "ProxyCreation",
1132
+ type: "event",
1133
+ },
1134
+ {
1135
+ inputs: [
1136
+ {
1137
+ internalType: "address",
1138
+ name: "_singleton",
1139
+ type: "address",
1140
+ },
1141
+ {
1142
+ internalType: "bytes",
1143
+ name: "initializer",
1144
+ type: "bytes",
1145
+ },
1146
+ {
1147
+ internalType: "uint256",
1148
+ name: "saltNonce",
1149
+ type: "uint256",
1150
+ },
1151
+ ],
1152
+ name: "createChainSpecificProxyWithNonce",
1153
+ outputs: [
1154
+ {
1155
+ internalType: "contract SafeProxy",
1156
+ name: "proxy",
1157
+ type: "address",
1158
+ },
1159
+ ],
1160
+ stateMutability: "nonpayable",
1161
+ type: "function",
1162
+ },
1163
+ {
1164
+ inputs: [
1165
+ {
1166
+ internalType: "address",
1167
+ name: "_singleton",
1168
+ type: "address",
1169
+ },
1170
+ {
1171
+ internalType: "bytes",
1172
+ name: "initializer",
1173
+ type: "bytes",
1174
+ },
1175
+ {
1176
+ internalType: "uint256",
1177
+ name: "saltNonce",
1178
+ type: "uint256",
1179
+ },
1180
+ {
1181
+ internalType: "contract IProxyCreationCallback",
1182
+ name: "callback",
1183
+ type: "address",
1184
+ },
1185
+ ],
1186
+ name: "createProxyWithCallback",
1187
+ outputs: [
1188
+ {
1189
+ internalType: "contract SafeProxy",
1190
+ name: "proxy",
1191
+ type: "address",
1192
+ },
1193
+ ],
1194
+ stateMutability: "nonpayable",
1195
+ type: "function",
1196
+ },
1197
+ {
1198
+ inputs: [
1199
+ {
1200
+ internalType: "address",
1201
+ name: "_singleton",
1202
+ type: "address",
1203
+ },
1204
+ {
1205
+ internalType: "bytes",
1206
+ name: "initializer",
1207
+ type: "bytes",
1208
+ },
1209
+ {
1210
+ internalType: "uint256",
1211
+ name: "saltNonce",
1212
+ type: "uint256",
1213
+ },
1214
+ ],
1215
+ name: "createProxyWithNonce",
1216
+ outputs: [
1217
+ {
1218
+ internalType: "contract SafeProxy",
1219
+ name: "proxy",
1220
+ type: "address",
1221
+ },
1222
+ ],
1223
+ stateMutability: "nonpayable",
1224
+ type: "function",
1225
+ },
1226
+ {
1227
+ inputs: [],
1228
+ name: "getChainId",
1229
+ outputs: [
1230
+ {
1231
+ internalType: "uint256",
1232
+ name: "",
1233
+ type: "uint256",
1234
+ },
1235
+ ],
1236
+ stateMutability: "view",
1237
+ type: "function",
1238
+ },
1239
+ {
1240
+ inputs: [],
1241
+ name: "proxyCreationCode",
1242
+ outputs: [
1243
+ {
1244
+ internalType: "bytes",
1245
+ name: "",
1246
+ type: "bytes",
1247
+ },
1248
+ ],
1249
+ stateMutability: "pure",
1250
+ type: "function",
1251
+ },
1252
+ ],
1253
+ },
1254
+ moduleSetup: {
1255
+ address: "0x2dd68b007B46fBe91B9A7c3EDa5A7a1063cB5b47",
1256
+ abi: [
1257
+ {
1258
+ inputs: [
1259
+ {
1260
+ internalType: "address[]",
1261
+ name: "modules",
1262
+ type: "address[]",
1263
+ },
1264
+ ],
1265
+ name: "enableModules",
1266
+ outputs: [],
1267
+ stateMutability: "nonpayable",
1268
+ type: "function",
1269
+ },
1270
+ ],
1271
+ },
1272
+ m4337: {
1273
+ address: "0x75cf11467937ce3F2f357CE24ffc3DBF8fD5c226",
1274
+ abi: [
1275
+ {
1276
+ inputs: [
1277
+ {
1278
+ internalType: "address",
1279
+ name: "entryPoint",
1280
+ type: "address",
1281
+ },
1282
+ ],
1283
+ stateMutability: "nonpayable",
1284
+ type: "constructor",
1285
+ },
1286
+ {
1287
+ inputs: [],
1288
+ name: "ExecutionFailed",
1289
+ type: "error",
1290
+ },
1291
+ {
1292
+ inputs: [],
1293
+ name: "InvalidCaller",
1294
+ type: "error",
1295
+ },
1296
+ {
1297
+ inputs: [],
1298
+ name: "InvalidEntryPoint",
1299
+ type: "error",
1300
+ },
1301
+ {
1302
+ inputs: [],
1303
+ name: "UnsupportedEntryPoint",
1304
+ type: "error",
1305
+ },
1306
+ {
1307
+ inputs: [
1308
+ {
1309
+ internalType: "bytes4",
1310
+ name: "selector",
1311
+ type: "bytes4",
1312
+ },
1313
+ ],
1314
+ name: "UnsupportedExecutionFunction",
1315
+ type: "error",
1316
+ },
1317
+ {
1318
+ inputs: [],
1319
+ name: "SUPPORTED_ENTRYPOINT",
1320
+ outputs: [
1321
+ {
1322
+ internalType: "address",
1323
+ name: "",
1324
+ type: "address",
1325
+ },
1326
+ ],
1327
+ stateMutability: "view",
1328
+ type: "function",
1329
+ },
1330
+ {
1331
+ inputs: [],
1332
+ name: "domainSeparator",
1333
+ outputs: [
1334
+ {
1335
+ internalType: "bytes32",
1336
+ name: "domainSeparatorHash",
1337
+ type: "bytes32",
1338
+ },
1339
+ ],
1340
+ stateMutability: "view",
1341
+ type: "function",
1342
+ },
1343
+ {
1344
+ inputs: [
1345
+ {
1346
+ internalType: "contract Safe",
1347
+ name: "safe",
1348
+ type: "address",
1349
+ },
1350
+ {
1351
+ internalType: "bytes",
1352
+ name: "message",
1353
+ type: "bytes",
1354
+ },
1355
+ ],
1356
+ name: "encodeMessageDataForSafe",
1357
+ outputs: [
1358
+ {
1359
+ internalType: "bytes",
1360
+ name: "",
1361
+ type: "bytes",
1362
+ },
1363
+ ],
1364
+ stateMutability: "view",
1365
+ type: "function",
1366
+ },
1367
+ {
1368
+ inputs: [
1369
+ {
1370
+ internalType: "address",
1371
+ name: "to",
1372
+ type: "address",
1373
+ },
1374
+ {
1375
+ internalType: "uint256",
1376
+ name: "value",
1377
+ type: "uint256",
1378
+ },
1379
+ {
1380
+ internalType: "bytes",
1381
+ name: "data",
1382
+ type: "bytes",
1383
+ },
1384
+ {
1385
+ internalType: "uint8",
1386
+ name: "operation",
1387
+ type: "uint8",
1388
+ },
1389
+ ],
1390
+ name: "executeUserOp",
1391
+ outputs: [],
1392
+ stateMutability: "nonpayable",
1393
+ type: "function",
1394
+ },
1395
+ {
1396
+ inputs: [
1397
+ {
1398
+ internalType: "address",
1399
+ name: "to",
1400
+ type: "address",
1401
+ },
1402
+ {
1403
+ internalType: "uint256",
1404
+ name: "value",
1405
+ type: "uint256",
1406
+ },
1407
+ {
1408
+ internalType: "bytes",
1409
+ name: "data",
1410
+ type: "bytes",
1411
+ },
1412
+ {
1413
+ internalType: "uint8",
1414
+ name: "operation",
1415
+ type: "uint8",
1416
+ },
1417
+ ],
1418
+ name: "executeUserOpWithErrorString",
1419
+ outputs: [],
1420
+ stateMutability: "nonpayable",
1421
+ type: "function",
1422
+ },
1423
+ {
1424
+ inputs: [
1425
+ {
1426
+ internalType: "bytes",
1427
+ name: "message",
1428
+ type: "bytes",
1429
+ },
1430
+ ],
1431
+ name: "getMessageHash",
1432
+ outputs: [
1433
+ {
1434
+ internalType: "bytes32",
1435
+ name: "",
1436
+ type: "bytes32",
1437
+ },
1438
+ ],
1439
+ stateMutability: "view",
1440
+ type: "function",
1441
+ },
1442
+ {
1443
+ inputs: [
1444
+ {
1445
+ internalType: "contract Safe",
1446
+ name: "safe",
1447
+ type: "address",
1448
+ },
1449
+ {
1450
+ internalType: "bytes",
1451
+ name: "message",
1452
+ type: "bytes",
1453
+ },
1454
+ ],
1455
+ name: "getMessageHashForSafe",
1456
+ outputs: [
1457
+ {
1458
+ internalType: "bytes32",
1459
+ name: "",
1460
+ type: "bytes32",
1461
+ },
1462
+ ],
1463
+ stateMutability: "view",
1464
+ type: "function",
1465
+ },
1466
+ {
1467
+ inputs: [],
1468
+ name: "getModules",
1469
+ outputs: [
1470
+ {
1471
+ internalType: "address[]",
1472
+ name: "",
1473
+ type: "address[]",
1474
+ },
1475
+ ],
1476
+ stateMutability: "view",
1477
+ type: "function",
1478
+ },
1479
+ {
1480
+ inputs: [
1481
+ {
1482
+ components: [
1483
+ {
1484
+ internalType: "address",
1485
+ name: "sender",
1486
+ type: "address",
1487
+ },
1488
+ {
1489
+ internalType: "uint256",
1490
+ name: "nonce",
1491
+ type: "uint256",
1492
+ },
1493
+ {
1494
+ internalType: "bytes",
1495
+ name: "initCode",
1496
+ type: "bytes",
1497
+ },
1498
+ {
1499
+ internalType: "bytes",
1500
+ name: "callData",
1501
+ type: "bytes",
1502
+ },
1503
+ {
1504
+ internalType: "bytes32",
1505
+ name: "accountGasLimits",
1506
+ type: "bytes32",
1507
+ },
1508
+ {
1509
+ internalType: "uint256",
1510
+ name: "preVerificationGas",
1511
+ type: "uint256",
1512
+ },
1513
+ {
1514
+ internalType: "bytes32",
1515
+ name: "gasFees",
1516
+ type: "bytes32",
1517
+ },
1518
+ {
1519
+ internalType: "bytes",
1520
+ name: "paymasterAndData",
1521
+ type: "bytes",
1522
+ },
1523
+ {
1524
+ internalType: "bytes",
1525
+ name: "signature",
1526
+ type: "bytes",
1527
+ },
1528
+ ],
1529
+ internalType: "struct PackedUserOperation",
1530
+ name: "userOp",
1531
+ type: "tuple",
1532
+ },
1533
+ ],
1534
+ name: "getOperationHash",
1535
+ outputs: [
1536
+ {
1537
+ internalType: "bytes32",
1538
+ name: "operationHash",
1539
+ type: "bytes32",
1540
+ },
1541
+ ],
1542
+ stateMutability: "view",
1543
+ type: "function",
1544
+ },
1545
+ {
1546
+ inputs: [
1547
+ {
1548
+ internalType: "bytes32",
1549
+ name: "_dataHash",
1550
+ type: "bytes32",
1551
+ },
1552
+ {
1553
+ internalType: "bytes",
1554
+ name: "_signature",
1555
+ type: "bytes",
1556
+ },
1557
+ ],
1558
+ name: "isValidSignature",
1559
+ outputs: [
1560
+ {
1561
+ internalType: "bytes4",
1562
+ name: "",
1563
+ type: "bytes4",
1564
+ },
1565
+ ],
1566
+ stateMutability: "view",
1567
+ type: "function",
1568
+ },
1569
+ {
1570
+ inputs: [
1571
+ {
1572
+ internalType: "bytes",
1573
+ name: "_data",
1574
+ type: "bytes",
1575
+ },
1576
+ {
1577
+ internalType: "bytes",
1578
+ name: "_signature",
1579
+ type: "bytes",
1580
+ },
1581
+ ],
1582
+ name: "isValidSignature",
1583
+ outputs: [
1584
+ {
1585
+ internalType: "bytes4",
1586
+ name: "",
1587
+ type: "bytes4",
1588
+ },
1589
+ ],
1590
+ stateMutability: "view",
1591
+ type: "function",
1592
+ },
1593
+ {
1594
+ inputs: [
1595
+ {
1596
+ internalType: "address",
1597
+ name: "",
1598
+ type: "address",
1599
+ },
1600
+ {
1601
+ internalType: "address",
1602
+ name: "",
1603
+ type: "address",
1604
+ },
1605
+ {
1606
+ internalType: "uint256[]",
1607
+ name: "",
1608
+ type: "uint256[]",
1609
+ },
1610
+ {
1611
+ internalType: "uint256[]",
1612
+ name: "",
1613
+ type: "uint256[]",
1614
+ },
1615
+ {
1616
+ internalType: "bytes",
1617
+ name: "",
1618
+ type: "bytes",
1619
+ },
1620
+ ],
1621
+ name: "onERC1155BatchReceived",
1622
+ outputs: [
1623
+ {
1624
+ internalType: "bytes4",
1625
+ name: "",
1626
+ type: "bytes4",
1627
+ },
1628
+ ],
1629
+ stateMutability: "pure",
1630
+ type: "function",
1631
+ },
1632
+ {
1633
+ inputs: [
1634
+ {
1635
+ internalType: "address",
1636
+ name: "",
1637
+ type: "address",
1638
+ },
1639
+ {
1640
+ internalType: "address",
1641
+ name: "",
1642
+ type: "address",
1643
+ },
1644
+ {
1645
+ internalType: "uint256",
1646
+ name: "",
1647
+ type: "uint256",
1648
+ },
1649
+ {
1650
+ internalType: "uint256",
1651
+ name: "",
1652
+ type: "uint256",
1653
+ },
1654
+ {
1655
+ internalType: "bytes",
1656
+ name: "",
1657
+ type: "bytes",
1658
+ },
1659
+ ],
1660
+ name: "onERC1155Received",
1661
+ outputs: [
1662
+ {
1663
+ internalType: "bytes4",
1664
+ name: "",
1665
+ type: "bytes4",
1666
+ },
1667
+ ],
1668
+ stateMutability: "pure",
1669
+ type: "function",
1670
+ },
1671
+ {
1672
+ inputs: [
1673
+ {
1674
+ internalType: "address",
1675
+ name: "",
1676
+ type: "address",
1677
+ },
1678
+ {
1679
+ internalType: "address",
1680
+ name: "",
1681
+ type: "address",
1682
+ },
1683
+ {
1684
+ internalType: "uint256",
1685
+ name: "",
1686
+ type: "uint256",
1687
+ },
1688
+ {
1689
+ internalType: "bytes",
1690
+ name: "",
1691
+ type: "bytes",
1692
+ },
1693
+ ],
1694
+ name: "onERC721Received",
1695
+ outputs: [
1696
+ {
1697
+ internalType: "bytes4",
1698
+ name: "",
1699
+ type: "bytes4",
1700
+ },
1701
+ ],
1702
+ stateMutability: "pure",
1703
+ type: "function",
1704
+ },
1705
+ {
1706
+ inputs: [
1707
+ {
1708
+ internalType: "address",
1709
+ name: "targetContract",
1710
+ type: "address",
1711
+ },
1712
+ {
1713
+ internalType: "bytes",
1714
+ name: "calldataPayload",
1715
+ type: "bytes",
1716
+ },
1717
+ ],
1718
+ name: "simulate",
1719
+ outputs: [
1720
+ {
1721
+ internalType: "bytes",
1722
+ name: "response",
1723
+ type: "bytes",
1724
+ },
1725
+ ],
1726
+ stateMutability: "nonpayable",
1727
+ type: "function",
1728
+ },
1729
+ {
1730
+ inputs: [
1731
+ {
1732
+ internalType: "bytes4",
1733
+ name: "interfaceId",
1734
+ type: "bytes4",
1735
+ },
1736
+ ],
1737
+ name: "supportsInterface",
1738
+ outputs: [
1739
+ {
1740
+ internalType: "bool",
1741
+ name: "",
1742
+ type: "bool",
1743
+ },
1744
+ ],
1745
+ stateMutability: "view",
1746
+ type: "function",
1747
+ },
1748
+ {
1749
+ inputs: [
1750
+ {
1751
+ internalType: "address",
1752
+ name: "",
1753
+ type: "address",
1754
+ },
1755
+ {
1756
+ internalType: "address",
1757
+ name: "",
1758
+ type: "address",
1759
+ },
1760
+ {
1761
+ internalType: "address",
1762
+ name: "",
1763
+ type: "address",
1764
+ },
1765
+ {
1766
+ internalType: "uint256",
1767
+ name: "",
1768
+ type: "uint256",
1769
+ },
1770
+ {
1771
+ internalType: "bytes",
1772
+ name: "",
1773
+ type: "bytes",
1774
+ },
1775
+ {
1776
+ internalType: "bytes",
1777
+ name: "",
1778
+ type: "bytes",
1779
+ },
1780
+ ],
1781
+ name: "tokensReceived",
1782
+ outputs: [],
1783
+ stateMutability: "pure",
1784
+ type: "function",
1785
+ },
1786
+ {
1787
+ inputs: [
1788
+ {
1789
+ components: [
1790
+ {
1791
+ internalType: "address",
1792
+ name: "sender",
1793
+ type: "address",
1794
+ },
1795
+ {
1796
+ internalType: "uint256",
1797
+ name: "nonce",
1798
+ type: "uint256",
1799
+ },
1800
+ {
1801
+ internalType: "bytes",
1802
+ name: "initCode",
1803
+ type: "bytes",
1804
+ },
1805
+ {
1806
+ internalType: "bytes",
1807
+ name: "callData",
1808
+ type: "bytes",
1809
+ },
1810
+ {
1811
+ internalType: "bytes32",
1812
+ name: "accountGasLimits",
1813
+ type: "bytes32",
1814
+ },
1815
+ {
1816
+ internalType: "uint256",
1817
+ name: "preVerificationGas",
1818
+ type: "uint256",
1819
+ },
1820
+ {
1821
+ internalType: "bytes32",
1822
+ name: "gasFees",
1823
+ type: "bytes32",
1824
+ },
1825
+ {
1826
+ internalType: "bytes",
1827
+ name: "paymasterAndData",
1828
+ type: "bytes",
1829
+ },
1830
+ {
1831
+ internalType: "bytes",
1832
+ name: "signature",
1833
+ type: "bytes",
1834
+ },
1835
+ ],
1836
+ internalType: "struct PackedUserOperation",
1837
+ name: "userOp",
1838
+ type: "tuple",
1839
+ },
1840
+ {
1841
+ internalType: "bytes32",
1842
+ name: "",
1843
+ type: "bytes32",
1844
+ },
1845
+ {
1846
+ internalType: "uint256",
1847
+ name: "missingAccountFunds",
1848
+ type: "uint256",
1849
+ },
1850
+ ],
1851
+ name: "validateUserOp",
1852
+ outputs: [
1853
+ {
1854
+ internalType: "uint256",
1855
+ name: "validationData",
1856
+ type: "uint256",
1857
+ },
1858
+ ],
1859
+ stateMutability: "nonpayable",
1860
+ type: "function",
1861
+ },
1862
+ ],
1863
+ },
1864
+ entryPoint: {
1865
+ address: "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
1866
+ abi: [
1867
+ {
1868
+ name: "getNonce",
1869
+ type: "function",
1870
+ stateMutability: "view",
1871
+ inputs: [
1872
+ {
1873
+ type: "address",
1874
+ },
1875
+ {
1876
+ type: "uint192",
1877
+ name: "key",
1878
+ },
1879
+ ],
1880
+ outputs: [
1881
+ {
1882
+ type: "uint256",
1883
+ name: "nonce",
1884
+ },
1885
+ ],
1886
+ },
1887
+ ],
1888
+ },
1889
+ };