@gitmyabi/gnosissafe 1.0.163 → 1.0.165

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