@gitmyabi/safe 1.0.146 → 1.0.147

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