@gitmyabi/gnosissafe 1.0.13 → 1.0.15

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.
@@ -10,7 +10,6 @@ const viem_1 = require("viem");
10
10
  exports.GnosisSafe_jsonAbi = [
11
11
  {
12
12
  "inputs": [],
13
- "payable": false,
14
13
  "stateMutability": "nonpayable",
15
14
  "type": "constructor"
16
15
  },
@@ -52,11 +51,24 @@ exports.GnosisSafe_jsonAbi = [
52
51
  {
53
52
  "indexed": false,
54
53
  "internalType": "address",
55
- "name": "masterCopy",
54
+ "name": "handler",
55
+ "type": "address"
56
+ }
57
+ ],
58
+ "name": "ChangedFallbackHandler",
59
+ "type": "event"
60
+ },
61
+ {
62
+ "anonymous": false,
63
+ "inputs": [
64
+ {
65
+ "indexed": false,
66
+ "internalType": "address",
67
+ "name": "guard",
56
68
  "type": "address"
57
69
  }
58
70
  ],
59
- "name": "ChangedMasterCopy",
71
+ "name": "ChangedGuard",
60
72
  "type": "event"
61
73
  },
62
74
  {
@@ -77,7 +89,7 @@ exports.GnosisSafe_jsonAbi = [
77
89
  "inputs": [
78
90
  {
79
91
  "indexed": false,
80
- "internalType": "contract Module",
92
+ "internalType": "address",
81
93
  "name": "module",
82
94
  "type": "address"
83
95
  }
@@ -90,7 +102,7 @@ exports.GnosisSafe_jsonAbi = [
90
102
  "inputs": [
91
103
  {
92
104
  "indexed": false,
93
- "internalType": "contract Module",
105
+ "internalType": "address",
94
106
  "name": "module",
95
107
  "type": "address"
96
108
  }
@@ -180,36 +192,75 @@ exports.GnosisSafe_jsonAbi = [
180
192
  "inputs": [
181
193
  {
182
194
  "indexed": true,
183
- "internalType": "bytes32",
184
- "name": "msgHash",
185
- "type": "bytes32"
195
+ "internalType": "address",
196
+ "name": "sender",
197
+ "type": "address"
198
+ },
199
+ {
200
+ "indexed": false,
201
+ "internalType": "uint256",
202
+ "name": "value",
203
+ "type": "uint256"
186
204
  }
187
205
  ],
188
- "name": "SignMsg",
206
+ "name": "SafeReceived",
189
207
  "type": "event"
190
208
  },
191
209
  {
192
- "payable": true,
193
- "stateMutability": "payable",
194
- "type": "fallback"
210
+ "anonymous": false,
211
+ "inputs": [
212
+ {
213
+ "indexed": true,
214
+ "internalType": "address",
215
+ "name": "initiator",
216
+ "type": "address"
217
+ },
218
+ {
219
+ "indexed": false,
220
+ "internalType": "address[]",
221
+ "name": "owners",
222
+ "type": "address[]"
223
+ },
224
+ {
225
+ "indexed": false,
226
+ "internalType": "uint256",
227
+ "name": "threshold",
228
+ "type": "uint256"
229
+ },
230
+ {
231
+ "indexed": false,
232
+ "internalType": "address",
233
+ "name": "initializer",
234
+ "type": "address"
235
+ },
236
+ {
237
+ "indexed": false,
238
+ "internalType": "address",
239
+ "name": "fallbackHandler",
240
+ "type": "address"
241
+ }
242
+ ],
243
+ "name": "SafeSetup",
244
+ "type": "event"
195
245
  },
196
246
  {
197
- "constant": true,
198
- "inputs": [],
199
- "name": "NAME",
200
- "outputs": [
247
+ "anonymous": false,
248
+ "inputs": [
201
249
  {
202
- "internalType": "string",
203
- "name": "",
204
- "type": "string"
250
+ "indexed": true,
251
+ "internalType": "bytes32",
252
+ "name": "msgHash",
253
+ "type": "bytes32"
205
254
  }
206
255
  ],
207
- "payable": false,
208
- "stateMutability": "view",
209
- "type": "function"
256
+ "name": "SignMsg",
257
+ "type": "event"
258
+ },
259
+ {
260
+ "stateMutability": "nonpayable",
261
+ "type": "fallback"
210
262
  },
211
263
  {
212
- "constant": true,
213
264
  "inputs": [],
214
265
  "name": "VERSION",
215
266
  "outputs": [
@@ -219,12 +270,10 @@ exports.GnosisSafe_jsonAbi = [
219
270
  "type": "string"
220
271
  }
221
272
  ],
222
- "payable": false,
223
273
  "stateMutability": "view",
224
274
  "type": "function"
225
275
  },
226
276
  {
227
- "constant": false,
228
277
  "inputs": [
229
278
  {
230
279
  "internalType": "address",
@@ -239,12 +288,10 @@ exports.GnosisSafe_jsonAbi = [
239
288
  ],
240
289
  "name": "addOwnerWithThreshold",
241
290
  "outputs": [],
242
- "payable": false,
243
291
  "stateMutability": "nonpayable",
244
292
  "type": "function"
245
293
  },
246
294
  {
247
- "constant": false,
248
295
  "inputs": [
249
296
  {
250
297
  "internalType": "bytes32",
@@ -254,12 +301,10 @@ exports.GnosisSafe_jsonAbi = [
254
301
  ],
255
302
  "name": "approveHash",
256
303
  "outputs": [],
257
- "payable": false,
258
304
  "stateMutability": "nonpayable",
259
305
  "type": "function"
260
306
  },
261
307
  {
262
- "constant": true,
263
308
  "inputs": [
264
309
  {
265
310
  "internalType": "address",
@@ -280,62 +325,92 @@ exports.GnosisSafe_jsonAbi = [
280
325
  "type": "uint256"
281
326
  }
282
327
  ],
283
- "payable": false,
284
328
  "stateMutability": "view",
285
329
  "type": "function"
286
330
  },
287
331
  {
288
- "constant": false,
289
332
  "inputs": [
290
333
  {
291
- "internalType": "address",
292
- "name": "_masterCopy",
293
- "type": "address"
334
+ "internalType": "uint256",
335
+ "name": "_threshold",
336
+ "type": "uint256"
294
337
  }
295
338
  ],
296
- "name": "changeMasterCopy",
339
+ "name": "changeThreshold",
297
340
  "outputs": [],
298
- "payable": false,
299
341
  "stateMutability": "nonpayable",
300
342
  "type": "function"
301
343
  },
302
344
  {
303
- "constant": false,
304
345
  "inputs": [
346
+ {
347
+ "internalType": "bytes32",
348
+ "name": "dataHash",
349
+ "type": "bytes32"
350
+ },
351
+ {
352
+ "internalType": "bytes",
353
+ "name": "data",
354
+ "type": "bytes"
355
+ },
356
+ {
357
+ "internalType": "bytes",
358
+ "name": "signatures",
359
+ "type": "bytes"
360
+ },
305
361
  {
306
362
  "internalType": "uint256",
307
- "name": "_threshold",
363
+ "name": "requiredSignatures",
308
364
  "type": "uint256"
309
365
  }
310
366
  ],
311
- "name": "changeThreshold",
367
+ "name": "checkNSignatures",
312
368
  "outputs": [],
313
- "payable": false,
314
- "stateMutability": "nonpayable",
369
+ "stateMutability": "view",
370
+ "type": "function"
371
+ },
372
+ {
373
+ "inputs": [
374
+ {
375
+ "internalType": "bytes32",
376
+ "name": "dataHash",
377
+ "type": "bytes32"
378
+ },
379
+ {
380
+ "internalType": "bytes",
381
+ "name": "data",
382
+ "type": "bytes"
383
+ },
384
+ {
385
+ "internalType": "bytes",
386
+ "name": "signatures",
387
+ "type": "bytes"
388
+ }
389
+ ],
390
+ "name": "checkSignatures",
391
+ "outputs": [],
392
+ "stateMutability": "view",
315
393
  "type": "function"
316
394
  },
317
395
  {
318
- "constant": false,
319
396
  "inputs": [
320
397
  {
321
- "internalType": "contract Module",
398
+ "internalType": "address",
322
399
  "name": "prevModule",
323
400
  "type": "address"
324
401
  },
325
402
  {
326
- "internalType": "contract Module",
403
+ "internalType": "address",
327
404
  "name": "module",
328
405
  "type": "address"
329
406
  }
330
407
  ],
331
408
  "name": "disableModule",
332
409
  "outputs": [],
333
- "payable": false,
334
410
  "stateMutability": "nonpayable",
335
411
  "type": "function"
336
412
  },
337
413
  {
338
- "constant": true,
339
414
  "inputs": [],
340
415
  "name": "domainSeparator",
341
416
  "outputs": [
@@ -345,27 +420,23 @@ exports.GnosisSafe_jsonAbi = [
345
420
  "type": "bytes32"
346
421
  }
347
422
  ],
348
- "payable": false,
349
423
  "stateMutability": "view",
350
424
  "type": "function"
351
425
  },
352
426
  {
353
- "constant": false,
354
427
  "inputs": [
355
428
  {
356
- "internalType": "contract Module",
429
+ "internalType": "address",
357
430
  "name": "module",
358
431
  "type": "address"
359
432
  }
360
433
  ],
361
434
  "name": "enableModule",
362
435
  "outputs": [],
363
- "payable": false,
364
436
  "stateMutability": "nonpayable",
365
437
  "type": "function"
366
438
  },
367
439
  {
368
- "constant": true,
369
440
  "inputs": [
370
441
  {
371
442
  "internalType": "address",
@@ -426,12 +497,10 @@ exports.GnosisSafe_jsonAbi = [
426
497
  "type": "bytes"
427
498
  }
428
499
  ],
429
- "payable": false,
430
500
  "stateMutability": "view",
431
501
  "type": "function"
432
502
  },
433
503
  {
434
- "constant": false,
435
504
  "inputs": [
436
505
  {
437
506
  "internalType": "address",
@@ -492,12 +561,10 @@ exports.GnosisSafe_jsonAbi = [
492
561
  "type": "bool"
493
562
  }
494
563
  ],
495
- "payable": false,
496
- "stateMutability": "nonpayable",
564
+ "stateMutability": "payable",
497
565
  "type": "function"
498
566
  },
499
567
  {
500
- "constant": false,
501
568
  "inputs": [
502
569
  {
503
570
  "internalType": "address",
@@ -528,12 +595,10 @@ exports.GnosisSafe_jsonAbi = [
528
595
  "type": "bool"
529
596
  }
530
597
  ],
531
- "payable": false,
532
598
  "stateMutability": "nonpayable",
533
599
  "type": "function"
534
600
  },
535
601
  {
536
- "constant": false,
537
602
  "inputs": [
538
603
  {
539
604
  "internalType": "address",
@@ -569,48 +634,23 @@ exports.GnosisSafe_jsonAbi = [
569
634
  "type": "bytes"
570
635
  }
571
636
  ],
572
- "payable": false,
573
637
  "stateMutability": "nonpayable",
574
638
  "type": "function"
575
639
  },
576
640
  {
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
641
  "inputs": [],
600
- "name": "getModules",
642
+ "name": "getChainId",
601
643
  "outputs": [
602
644
  {
603
- "internalType": "address[]",
645
+ "internalType": "uint256",
604
646
  "name": "",
605
- "type": "address[]"
647
+ "type": "uint256"
606
648
  }
607
649
  ],
608
- "payable": false,
609
650
  "stateMutability": "view",
610
651
  "type": "function"
611
652
  },
612
653
  {
613
- "constant": true,
614
654
  "inputs": [
615
655
  {
616
656
  "internalType": "address",
@@ -636,12 +676,10 @@ exports.GnosisSafe_jsonAbi = [
636
676
  "type": "address"
637
677
  }
638
678
  ],
639
- "payable": false,
640
679
  "stateMutability": "view",
641
680
  "type": "function"
642
681
  },
643
682
  {
644
- "constant": true,
645
683
  "inputs": [],
646
684
  "name": "getOwners",
647
685
  "outputs": [
@@ -651,12 +689,34 @@ exports.GnosisSafe_jsonAbi = [
651
689
  "type": "address[]"
652
690
  }
653
691
  ],
654
- "payable": false,
655
692
  "stateMutability": "view",
656
693
  "type": "function"
657
694
  },
658
695
  {
659
- "constant": true,
696
+ "inputs": [
697
+ {
698
+ "internalType": "uint256",
699
+ "name": "offset",
700
+ "type": "uint256"
701
+ },
702
+ {
703
+ "internalType": "uint256",
704
+ "name": "length",
705
+ "type": "uint256"
706
+ }
707
+ ],
708
+ "name": "getStorageAt",
709
+ "outputs": [
710
+ {
711
+ "internalType": "bytes",
712
+ "name": "",
713
+ "type": "bytes"
714
+ }
715
+ ],
716
+ "stateMutability": "view",
717
+ "type": "function"
718
+ },
719
+ {
660
720
  "inputs": [],
661
721
  "name": "getThreshold",
662
722
  "outputs": [
@@ -666,12 +726,10 @@ exports.GnosisSafe_jsonAbi = [
666
726
  "type": "uint256"
667
727
  }
668
728
  ],
669
- "payable": false,
670
729
  "stateMutability": "view",
671
730
  "type": "function"
672
731
  },
673
732
  {
674
- "constant": true,
675
733
  "inputs": [
676
734
  {
677
735
  "internalType": "address",
@@ -732,20 +790,18 @@ exports.GnosisSafe_jsonAbi = [
732
790
  "type": "bytes32"
733
791
  }
734
792
  ],
735
- "payable": false,
736
793
  "stateMutability": "view",
737
794
  "type": "function"
738
795
  },
739
796
  {
740
- "constant": true,
741
797
  "inputs": [
742
798
  {
743
799
  "internalType": "address",
744
- "name": "owner",
800
+ "name": "module",
745
801
  "type": "address"
746
802
  }
747
803
  ],
748
- "name": "isOwner",
804
+ "name": "isModuleEnabled",
749
805
  "outputs": [
750
806
  {
751
807
  "internalType": "bool",
@@ -753,38 +809,29 @@ exports.GnosisSafe_jsonAbi = [
753
809
  "type": "bool"
754
810
  }
755
811
  ],
756
- "payable": false,
757
812
  "stateMutability": "view",
758
813
  "type": "function"
759
814
  },
760
815
  {
761
- "constant": false,
762
816
  "inputs": [
763
817
  {
764
- "internalType": "bytes",
765
- "name": "_data",
766
- "type": "bytes"
767
- },
768
- {
769
- "internalType": "bytes",
770
- "name": "_signature",
771
- "type": "bytes"
818
+ "internalType": "address",
819
+ "name": "owner",
820
+ "type": "address"
772
821
  }
773
822
  ],
774
- "name": "isValidSignature",
823
+ "name": "isOwner",
775
824
  "outputs": [
776
825
  {
777
- "internalType": "bytes4",
826
+ "internalType": "bool",
778
827
  "name": "",
779
- "type": "bytes4"
828
+ "type": "bool"
780
829
  }
781
830
  ],
782
- "payable": false,
783
- "stateMutability": "nonpayable",
831
+ "stateMutability": "view",
784
832
  "type": "function"
785
833
  },
786
834
  {
787
- "constant": true,
788
835
  "inputs": [],
789
836
  "name": "nonce",
790
837
  "outputs": [
@@ -794,12 +841,10 @@ exports.GnosisSafe_jsonAbi = [
794
841
  "type": "uint256"
795
842
  }
796
843
  ],
797
- "payable": false,
798
844
  "stateMutability": "view",
799
845
  "type": "function"
800
846
  },
801
847
  {
802
- "constant": false,
803
848
  "inputs": [
804
849
  {
805
850
  "internalType": "address",
@@ -819,12 +864,10 @@ exports.GnosisSafe_jsonAbi = [
819
864
  ],
820
865
  "name": "removeOwner",
821
866
  "outputs": [],
822
- "payable": false,
823
867
  "stateMutability": "nonpayable",
824
868
  "type": "function"
825
869
  },
826
870
  {
827
- "constant": false,
828
871
  "inputs": [
829
872
  {
830
873
  "internalType": "address",
@@ -855,12 +898,10 @@ exports.GnosisSafe_jsonAbi = [
855
898
  "type": "uint256"
856
899
  }
857
900
  ],
858
- "payable": false,
859
901
  "stateMutability": "nonpayable",
860
902
  "type": "function"
861
903
  },
862
904
  {
863
- "constant": false,
864
905
  "inputs": [
865
906
  {
866
907
  "internalType": "address",
@@ -870,12 +911,23 @@ exports.GnosisSafe_jsonAbi = [
870
911
  ],
871
912
  "name": "setFallbackHandler",
872
913
  "outputs": [],
873
- "payable": false,
874
914
  "stateMutability": "nonpayable",
875
915
  "type": "function"
876
916
  },
877
917
  {
878
- "constant": false,
918
+ "inputs": [
919
+ {
920
+ "internalType": "address",
921
+ "name": "guard",
922
+ "type": "address"
923
+ }
924
+ ],
925
+ "name": "setGuard",
926
+ "outputs": [],
927
+ "stateMutability": "nonpayable",
928
+ "type": "function"
929
+ },
930
+ {
879
931
  "inputs": [
880
932
  {
881
933
  "internalType": "address[]",
@@ -920,27 +972,10 @@ exports.GnosisSafe_jsonAbi = [
920
972
  ],
921
973
  "name": "setup",
922
974
  "outputs": [],
923
- "payable": false,
924
975
  "stateMutability": "nonpayable",
925
976
  "type": "function"
926
977
  },
927
978
  {
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
979
  "inputs": [
945
980
  {
946
981
  "internalType": "bytes32",
@@ -956,12 +991,28 @@ exports.GnosisSafe_jsonAbi = [
956
991
  "type": "uint256"
957
992
  }
958
993
  ],
959
- "payable": false,
960
994
  "stateMutability": "view",
961
995
  "type": "function"
962
996
  },
963
997
  {
964
- "constant": false,
998
+ "inputs": [
999
+ {
1000
+ "internalType": "address",
1001
+ "name": "targetContract",
1002
+ "type": "address"
1003
+ },
1004
+ {
1005
+ "internalType": "bytes",
1006
+ "name": "calldataPayload",
1007
+ "type": "bytes"
1008
+ }
1009
+ ],
1010
+ "name": "simulateAndRevert",
1011
+ "outputs": [],
1012
+ "stateMutability": "nonpayable",
1013
+ "type": "function"
1014
+ },
1015
+ {
965
1016
  "inputs": [
966
1017
  {
967
1018
  "internalType": "address",
@@ -981,9 +1032,12 @@ exports.GnosisSafe_jsonAbi = [
981
1032
  ],
982
1033
  "name": "swapOwner",
983
1034
  "outputs": [],
984
- "payable": false,
985
1035
  "stateMutability": "nonpayable",
986
1036
  "type": "function"
1037
+ },
1038
+ {
1039
+ "stateMutability": "payable",
1040
+ "type": "receive"
987
1041
  }
988
1042
  ];
989
1043
  /**
@@ -1043,13 +1097,6 @@ class GnosisSafe_json {
1043
1097
  getContract() {
1044
1098
  return this.contract;
1045
1099
  }
1046
- /**
1047
- * NAME
1048
- * view
1049
- */
1050
- async NAME() {
1051
- return this.contract.read.NAME();
1052
- }
1053
1100
  /**
1054
1101
  * VERSION
1055
1102
  * view
@@ -1064,6 +1111,20 @@ class GnosisSafe_json {
1064
1111
  async approvedHashes(arg0, arg1) {
1065
1112
  return this.contract.read.approvedHashes([arg0, arg1]);
1066
1113
  }
1114
+ /**
1115
+ * checkNSignatures
1116
+ * view
1117
+ */
1118
+ async checkNSignatures(dataHash, data, signatures, requiredSignatures) {
1119
+ return this.contract.read.checkNSignatures([dataHash, data, signatures, requiredSignatures]);
1120
+ }
1121
+ /**
1122
+ * checkSignatures
1123
+ * view
1124
+ */
1125
+ async checkSignatures(dataHash, data, signatures) {
1126
+ return this.contract.read.checkSignatures([dataHash, data, signatures]);
1127
+ }
1067
1128
  /**
1068
1129
  * domainSeparator
1069
1130
  * view
@@ -1079,18 +1140,11 @@ class GnosisSafe_json {
1079
1140
  return this.contract.read.encodeTransactionData([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce]);
1080
1141
  }
1081
1142
  /**
1082
- * getMessageHash
1143
+ * getChainId
1083
1144
  * view
1084
1145
  */
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();
1146
+ async getChainId() {
1147
+ return this.contract.read.getChainId();
1094
1148
  }
1095
1149
  /**
1096
1150
  * getModulesPaginated
@@ -1106,6 +1160,13 @@ class GnosisSafe_json {
1106
1160
  async getOwners() {
1107
1161
  return this.contract.read.getOwners();
1108
1162
  }
1163
+ /**
1164
+ * getStorageAt
1165
+ * view
1166
+ */
1167
+ async getStorageAt(offset, length) {
1168
+ return this.contract.read.getStorageAt([offset, length]);
1169
+ }
1109
1170
  /**
1110
1171
  * getThreshold
1111
1172
  * view
@@ -1120,6 +1181,13 @@ class GnosisSafe_json {
1120
1181
  async getTransactionHash(to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce) {
1121
1182
  return this.contract.read.getTransactionHash([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce]);
1122
1183
  }
1184
+ /**
1185
+ * isModuleEnabled
1186
+ * view
1187
+ */
1188
+ async isModuleEnabled(module) {
1189
+ return this.contract.read.isModuleEnabled([module]);
1190
+ }
1123
1191
  /**
1124
1192
  * isOwner
1125
1193
  * view
@@ -1163,17 +1231,6 @@ class GnosisSafe_json {
1163
1231
  }
1164
1232
  return this.contract.write.approveHash([hashToApprove], options);
1165
1233
  }
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
1234
  /**
1178
1235
  * changeThreshold
1179
1236
  * nonpayable
@@ -1209,7 +1266,7 @@ class GnosisSafe_json {
1209
1266
  }
1210
1267
  /**
1211
1268
  * execTransaction
1212
- * nonpayable
1269
+ * payable
1213
1270
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1214
1271
  */
1215
1272
  async execTransaction(to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, signatures, options) {
@@ -1240,17 +1297,6 @@ class GnosisSafe_json {
1240
1297
  }
1241
1298
  return this.contract.write.execTransactionFromModuleReturnData([to, value, data, operation], options);
1242
1299
  }
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
1300
  /**
1255
1301
  * removeOwner
1256
1302
  * nonpayable
@@ -1284,6 +1330,17 @@ class GnosisSafe_json {
1284
1330
  }
1285
1331
  return this.contract.write.setFallbackHandler([handler], options);
1286
1332
  }
1333
+ /**
1334
+ * setGuard
1335
+ * nonpayable
1336
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1337
+ */
1338
+ async setGuard(guard, options) {
1339
+ if (!this.contract.write) {
1340
+ throw new Error('Wallet client is required for write operations');
1341
+ }
1342
+ return this.contract.write.setGuard([guard], options);
1343
+ }
1287
1344
  /**
1288
1345
  * setup
1289
1346
  * nonpayable
@@ -1296,15 +1353,15 @@ class GnosisSafe_json {
1296
1353
  return this.contract.write.setup([_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver], options);
1297
1354
  }
1298
1355
  /**
1299
- * signMessage
1356
+ * simulateAndRevert
1300
1357
  * nonpayable
1301
1358
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1302
1359
  */
1303
- async signMessage(_data, options) {
1360
+ async simulateAndRevert(targetContract, calldataPayload, options) {
1304
1361
  if (!this.contract.write) {
1305
1362
  throw new Error('Wallet client is required for write operations');
1306
1363
  }
1307
- return this.contract.write.signMessage([_data], options);
1364
+ return this.contract.write.simulateAndRevert([targetContract, calldataPayload], options);
1308
1365
  }
1309
1366
  /**
1310
1367
  * swapOwner
@@ -1347,14 +1404,6 @@ class GnosisSafe_json {
1347
1404
  async approveHash(hashToApprove, options) {
1348
1405
  return contract.simulate.approveHash([hashToApprove], options);
1349
1406
  },
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
1407
  /**
1359
1408
  * Simulate changeThreshold
1360
1409
  * Returns gas estimate and result without sending transaction
@@ -1403,14 +1452,6 @@ class GnosisSafe_json {
1403
1452
  async execTransactionFromModuleReturnData(to, value, data, operation, options) {
1404
1453
  return contract.simulate.execTransactionFromModuleReturnData([to, value, data, operation], options);
1405
1454
  },
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
1455
  /**
1415
1456
  * Simulate removeOwner
1416
1457
  * Returns gas estimate and result without sending transaction
@@ -1435,6 +1476,14 @@ class GnosisSafe_json {
1435
1476
  async setFallbackHandler(handler, options) {
1436
1477
  return contract.simulate.setFallbackHandler([handler], options);
1437
1478
  },
1479
+ /**
1480
+ * Simulate setGuard
1481
+ * Returns gas estimate and result without sending transaction
1482
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1483
+ */
1484
+ async setGuard(guard, options) {
1485
+ return contract.simulate.setGuard([guard], options);
1486
+ },
1438
1487
  /**
1439
1488
  * Simulate setup
1440
1489
  * Returns gas estimate and result without sending transaction
@@ -1444,12 +1493,12 @@ class GnosisSafe_json {
1444
1493
  return contract.simulate.setup([_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver], options);
1445
1494
  },
1446
1495
  /**
1447
- * Simulate signMessage
1496
+ * Simulate simulateAndRevert
1448
1497
  * Returns gas estimate and result without sending transaction
1449
1498
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1450
1499
  */
1451
- async signMessage(_data, options) {
1452
- return contract.simulate.signMessage([_data], options);
1500
+ async simulateAndRevert(targetContract, calldataPayload, options) {
1501
+ return contract.simulate.simulateAndRevert([targetContract, calldataPayload], options);
1453
1502
  },
1454
1503
  /**
1455
1504
  * Simulate swapOwner
@@ -1513,16 +1562,34 @@ class GnosisSafe_json {
1513
1562
  });
1514
1563
  },
1515
1564
  /**
1516
- * Watch ChangedMasterCopy events
1565
+ * Watch ChangedFallbackHandler events
1566
+ * @param callback Function to call when event is emitted
1567
+ * @param filter Optional filter for indexed parameters
1568
+ * @returns Unwatch function to stop listening
1569
+ */
1570
+ ChangedFallbackHandler: (callback) => {
1571
+ return this.publicClient.watchContractEvent({
1572
+ address: this.contractAddress,
1573
+ abi: exports.GnosisSafe_jsonAbi,
1574
+ eventName: 'ChangedFallbackHandler',
1575
+ onLogs: (logs) => {
1576
+ logs.forEach((log) => {
1577
+ callback(log.args);
1578
+ });
1579
+ },
1580
+ });
1581
+ },
1582
+ /**
1583
+ * Watch ChangedGuard events
1517
1584
  * @param callback Function to call when event is emitted
1518
1585
  * @param filter Optional filter for indexed parameters
1519
1586
  * @returns Unwatch function to stop listening
1520
1587
  */
1521
- ChangedMasterCopy: (callback) => {
1588
+ ChangedGuard: (callback) => {
1522
1589
  return this.publicClient.watchContractEvent({
1523
1590
  address: this.contractAddress,
1524
1591
  abi: exports.GnosisSafe_jsonAbi,
1525
- eventName: 'ChangedMasterCopy',
1592
+ eventName: 'ChangedGuard',
1526
1593
  onLogs: (logs) => {
1527
1594
  logs.forEach((log) => {
1528
1595
  callback(log.args);
@@ -1676,6 +1743,44 @@ class GnosisSafe_json {
1676
1743
  },
1677
1744
  });
1678
1745
  },
1746
+ /**
1747
+ * Watch SafeReceived events
1748
+ * @param callback Function to call when event is emitted
1749
+ * @param filter Optional filter for indexed parameters
1750
+ * @returns Unwatch function to stop listening
1751
+ */
1752
+ SafeReceived: (callback, filter) => {
1753
+ return this.publicClient.watchContractEvent({
1754
+ address: this.contractAddress,
1755
+ abi: exports.GnosisSafe_jsonAbi,
1756
+ eventName: 'SafeReceived',
1757
+ args: filter,
1758
+ onLogs: (logs) => {
1759
+ logs.forEach((log) => {
1760
+ callback(log.args);
1761
+ });
1762
+ },
1763
+ });
1764
+ },
1765
+ /**
1766
+ * Watch SafeSetup events
1767
+ * @param callback Function to call when event is emitted
1768
+ * @param filter Optional filter for indexed parameters
1769
+ * @returns Unwatch function to stop listening
1770
+ */
1771
+ SafeSetup: (callback, filter) => {
1772
+ return this.publicClient.watchContractEvent({
1773
+ address: this.contractAddress,
1774
+ abi: exports.GnosisSafe_jsonAbi,
1775
+ eventName: 'SafeSetup',
1776
+ args: filter,
1777
+ onLogs: (logs) => {
1778
+ logs.forEach((log) => {
1779
+ callback(log.args);
1780
+ });
1781
+ },
1782
+ });
1783
+ },
1679
1784
  /**
1680
1785
  * Watch SignMsg events
1681
1786
  * @param callback Function to call when event is emitted