@gitmyabi/gnosissafe 1.0.80 → 1.0.82

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,6 +10,7 @@ const viem_1 = require("viem");
10
10
  exports.GnosisSafe_jsonAbi = [
11
11
  {
12
12
  "inputs": [],
13
+ "payable": false,
13
14
  "stateMutability": "nonpayable",
14
15
  "type": "constructor"
15
16
  },
@@ -51,24 +52,11 @@ exports.GnosisSafe_jsonAbi = [
51
52
  {
52
53
  "indexed": false,
53
54
  "internalType": "address",
54
- "name": "handler",
55
+ "name": "masterCopy",
55
56
  "type": "address"
56
57
  }
57
58
  ],
58
- "name": "ChangedFallbackHandler",
59
- "type": "event"
60
- },
61
- {
62
- "anonymous": false,
63
- "inputs": [
64
- {
65
- "indexed": false,
66
- "internalType": "address",
67
- "name": "guard",
68
- "type": "address"
69
- }
70
- ],
71
- "name": "ChangedGuard",
59
+ "name": "ChangedMasterCopy",
72
60
  "type": "event"
73
61
  },
74
62
  {
@@ -89,7 +77,7 @@ exports.GnosisSafe_jsonAbi = [
89
77
  "inputs": [
90
78
  {
91
79
  "indexed": false,
92
- "internalType": "address",
80
+ "internalType": "contract Module",
93
81
  "name": "module",
94
82
  "type": "address"
95
83
  }
@@ -102,7 +90,7 @@ exports.GnosisSafe_jsonAbi = [
102
90
  "inputs": [
103
91
  {
104
92
  "indexed": false,
105
- "internalType": "address",
93
+ "internalType": "contract Module",
106
94
  "name": "module",
107
95
  "type": "address"
108
96
  }
@@ -187,62 +175,6 @@ exports.GnosisSafe_jsonAbi = [
187
175
  "name": "RemovedOwner",
188
176
  "type": "event"
189
177
  },
190
- {
191
- "anonymous": false,
192
- "inputs": [
193
- {
194
- "indexed": true,
195
- "internalType": "address",
196
- "name": "sender",
197
- "type": "address"
198
- },
199
- {
200
- "indexed": false,
201
- "internalType": "uint256",
202
- "name": "value",
203
- "type": "uint256"
204
- }
205
- ],
206
- "name": "SafeReceived",
207
- "type": "event"
208
- },
209
- {
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"
245
- },
246
178
  {
247
179
  "anonymous": false,
248
180
  "inputs": [
@@ -257,10 +189,27 @@ exports.GnosisSafe_jsonAbi = [
257
189
  "type": "event"
258
190
  },
259
191
  {
260
- "stateMutability": "nonpayable",
192
+ "payable": true,
193
+ "stateMutability": "payable",
261
194
  "type": "fallback"
262
195
  },
263
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,
264
213
  "inputs": [],
265
214
  "name": "VERSION",
266
215
  "outputs": [
@@ -270,10 +219,12 @@ exports.GnosisSafe_jsonAbi = [
270
219
  "type": "string"
271
220
  }
272
221
  ],
222
+ "payable": false,
273
223
  "stateMutability": "view",
274
224
  "type": "function"
275
225
  },
276
226
  {
227
+ "constant": false,
277
228
  "inputs": [
278
229
  {
279
230
  "internalType": "address",
@@ -288,10 +239,12 @@ exports.GnosisSafe_jsonAbi = [
288
239
  ],
289
240
  "name": "addOwnerWithThreshold",
290
241
  "outputs": [],
242
+ "payable": false,
291
243
  "stateMutability": "nonpayable",
292
244
  "type": "function"
293
245
  },
294
246
  {
247
+ "constant": false,
295
248
  "inputs": [
296
249
  {
297
250
  "internalType": "bytes32",
@@ -301,10 +254,12 @@ exports.GnosisSafe_jsonAbi = [
301
254
  ],
302
255
  "name": "approveHash",
303
256
  "outputs": [],
257
+ "payable": false,
304
258
  "stateMutability": "nonpayable",
305
259
  "type": "function"
306
260
  },
307
261
  {
262
+ "constant": true,
308
263
  "inputs": [
309
264
  {
310
265
  "internalType": "address",
@@ -325,92 +280,62 @@ exports.GnosisSafe_jsonAbi = [
325
280
  "type": "uint256"
326
281
  }
327
282
  ],
283
+ "payable": false,
328
284
  "stateMutability": "view",
329
285
  "type": "function"
330
286
  },
331
287
  {
288
+ "constant": false,
332
289
  "inputs": [
333
290
  {
334
- "internalType": "uint256",
335
- "name": "_threshold",
336
- "type": "uint256"
291
+ "internalType": "address",
292
+ "name": "_masterCopy",
293
+ "type": "address"
337
294
  }
338
295
  ],
339
- "name": "changeThreshold",
296
+ "name": "changeMasterCopy",
340
297
  "outputs": [],
298
+ "payable": false,
341
299
  "stateMutability": "nonpayable",
342
300
  "type": "function"
343
301
  },
344
302
  {
303
+ "constant": false,
345
304
  "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
- },
361
305
  {
362
306
  "internalType": "uint256",
363
- "name": "requiredSignatures",
307
+ "name": "_threshold",
364
308
  "type": "uint256"
365
309
  }
366
310
  ],
367
- "name": "checkNSignatures",
368
- "outputs": [],
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",
311
+ "name": "changeThreshold",
391
312
  "outputs": [],
392
- "stateMutability": "view",
313
+ "payable": false,
314
+ "stateMutability": "nonpayable",
393
315
  "type": "function"
394
316
  },
395
317
  {
318
+ "constant": false,
396
319
  "inputs": [
397
320
  {
398
- "internalType": "address",
321
+ "internalType": "contract Module",
399
322
  "name": "prevModule",
400
323
  "type": "address"
401
324
  },
402
325
  {
403
- "internalType": "address",
326
+ "internalType": "contract Module",
404
327
  "name": "module",
405
328
  "type": "address"
406
329
  }
407
330
  ],
408
331
  "name": "disableModule",
409
332
  "outputs": [],
333
+ "payable": false,
410
334
  "stateMutability": "nonpayable",
411
335
  "type": "function"
412
336
  },
413
337
  {
338
+ "constant": true,
414
339
  "inputs": [],
415
340
  "name": "domainSeparator",
416
341
  "outputs": [
@@ -420,23 +345,27 @@ exports.GnosisSafe_jsonAbi = [
420
345
  "type": "bytes32"
421
346
  }
422
347
  ],
348
+ "payable": false,
423
349
  "stateMutability": "view",
424
350
  "type": "function"
425
351
  },
426
352
  {
353
+ "constant": false,
427
354
  "inputs": [
428
355
  {
429
- "internalType": "address",
356
+ "internalType": "contract Module",
430
357
  "name": "module",
431
358
  "type": "address"
432
359
  }
433
360
  ],
434
361
  "name": "enableModule",
435
362
  "outputs": [],
363
+ "payable": false,
436
364
  "stateMutability": "nonpayable",
437
365
  "type": "function"
438
366
  },
439
367
  {
368
+ "constant": true,
440
369
  "inputs": [
441
370
  {
442
371
  "internalType": "address",
@@ -497,10 +426,12 @@ exports.GnosisSafe_jsonAbi = [
497
426
  "type": "bytes"
498
427
  }
499
428
  ],
429
+ "payable": false,
500
430
  "stateMutability": "view",
501
431
  "type": "function"
502
432
  },
503
433
  {
434
+ "constant": false,
504
435
  "inputs": [
505
436
  {
506
437
  "internalType": "address",
@@ -561,10 +492,12 @@ exports.GnosisSafe_jsonAbi = [
561
492
  "type": "bool"
562
493
  }
563
494
  ],
495
+ "payable": true,
564
496
  "stateMutability": "payable",
565
497
  "type": "function"
566
498
  },
567
499
  {
500
+ "constant": false,
568
501
  "inputs": [
569
502
  {
570
503
  "internalType": "address",
@@ -595,10 +528,12 @@ exports.GnosisSafe_jsonAbi = [
595
528
  "type": "bool"
596
529
  }
597
530
  ],
531
+ "payable": false,
598
532
  "stateMutability": "nonpayable",
599
533
  "type": "function"
600
534
  },
601
535
  {
536
+ "constant": false,
602
537
  "inputs": [
603
538
  {
604
539
  "internalType": "address",
@@ -634,23 +569,48 @@ exports.GnosisSafe_jsonAbi = [
634
569
  "type": "bytes"
635
570
  }
636
571
  ],
572
+ "payable": false,
637
573
  "stateMutability": "nonpayable",
638
574
  "type": "function"
639
575
  },
640
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,
641
599
  "inputs": [],
642
- "name": "getChainId",
600
+ "name": "getModules",
643
601
  "outputs": [
644
602
  {
645
- "internalType": "uint256",
603
+ "internalType": "address[]",
646
604
  "name": "",
647
- "type": "uint256"
605
+ "type": "address[]"
648
606
  }
649
607
  ],
608
+ "payable": false,
650
609
  "stateMutability": "view",
651
610
  "type": "function"
652
611
  },
653
612
  {
613
+ "constant": true,
654
614
  "inputs": [
655
615
  {
656
616
  "internalType": "address",
@@ -676,10 +636,12 @@ exports.GnosisSafe_jsonAbi = [
676
636
  "type": "address"
677
637
  }
678
638
  ],
639
+ "payable": false,
679
640
  "stateMutability": "view",
680
641
  "type": "function"
681
642
  },
682
643
  {
644
+ "constant": true,
683
645
  "inputs": [],
684
646
  "name": "getOwners",
685
647
  "outputs": [
@@ -689,34 +651,12 @@ exports.GnosisSafe_jsonAbi = [
689
651
  "type": "address[]"
690
652
  }
691
653
  ],
654
+ "payable": false,
692
655
  "stateMutability": "view",
693
656
  "type": "function"
694
657
  },
695
658
  {
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
- {
659
+ "constant": true,
720
660
  "inputs": [],
721
661
  "name": "getThreshold",
722
662
  "outputs": [
@@ -726,10 +666,12 @@ exports.GnosisSafe_jsonAbi = [
726
666
  "type": "uint256"
727
667
  }
728
668
  ],
669
+ "payable": false,
729
670
  "stateMutability": "view",
730
671
  "type": "function"
731
672
  },
732
673
  {
674
+ "constant": true,
733
675
  "inputs": [
734
676
  {
735
677
  "internalType": "address",
@@ -790,13 +732,15 @@ exports.GnosisSafe_jsonAbi = [
790
732
  "type": "bytes32"
791
733
  }
792
734
  ],
735
+ "payable": false,
793
736
  "stateMutability": "view",
794
737
  "type": "function"
795
738
  },
796
739
  {
740
+ "constant": true,
797
741
  "inputs": [
798
742
  {
799
- "internalType": "address",
743
+ "internalType": "contract Module",
800
744
  "name": "module",
801
745
  "type": "address"
802
746
  }
@@ -809,10 +753,12 @@ exports.GnosisSafe_jsonAbi = [
809
753
  "type": "bool"
810
754
  }
811
755
  ],
756
+ "payable": false,
812
757
  "stateMutability": "view",
813
758
  "type": "function"
814
759
  },
815
760
  {
761
+ "constant": true,
816
762
  "inputs": [
817
763
  {
818
764
  "internalType": "address",
@@ -828,10 +774,38 @@ exports.GnosisSafe_jsonAbi = [
828
774
  "type": "bool"
829
775
  }
830
776
  ],
777
+ "payable": false,
831
778
  "stateMutability": "view",
832
779
  "type": "function"
833
780
  },
834
781
  {
782
+ "constant": false,
783
+ "inputs": [
784
+ {
785
+ "internalType": "bytes",
786
+ "name": "_data",
787
+ "type": "bytes"
788
+ },
789
+ {
790
+ "internalType": "bytes",
791
+ "name": "_signature",
792
+ "type": "bytes"
793
+ }
794
+ ],
795
+ "name": "isValidSignature",
796
+ "outputs": [
797
+ {
798
+ "internalType": "bytes4",
799
+ "name": "",
800
+ "type": "bytes4"
801
+ }
802
+ ],
803
+ "payable": false,
804
+ "stateMutability": "nonpayable",
805
+ "type": "function"
806
+ },
807
+ {
808
+ "constant": true,
835
809
  "inputs": [],
836
810
  "name": "nonce",
837
811
  "outputs": [
@@ -841,10 +815,12 @@ exports.GnosisSafe_jsonAbi = [
841
815
  "type": "uint256"
842
816
  }
843
817
  ],
818
+ "payable": false,
844
819
  "stateMutability": "view",
845
820
  "type": "function"
846
821
  },
847
822
  {
823
+ "constant": false,
848
824
  "inputs": [
849
825
  {
850
826
  "internalType": "address",
@@ -864,10 +840,12 @@ exports.GnosisSafe_jsonAbi = [
864
840
  ],
865
841
  "name": "removeOwner",
866
842
  "outputs": [],
843
+ "payable": false,
867
844
  "stateMutability": "nonpayable",
868
845
  "type": "function"
869
846
  },
870
847
  {
848
+ "constant": false,
871
849
  "inputs": [
872
850
  {
873
851
  "internalType": "address",
@@ -898,10 +876,12 @@ exports.GnosisSafe_jsonAbi = [
898
876
  "type": "uint256"
899
877
  }
900
878
  ],
879
+ "payable": false,
901
880
  "stateMutability": "nonpayable",
902
881
  "type": "function"
903
882
  },
904
883
  {
884
+ "constant": false,
905
885
  "inputs": [
906
886
  {
907
887
  "internalType": "address",
@@ -911,23 +891,12 @@ exports.GnosisSafe_jsonAbi = [
911
891
  ],
912
892
  "name": "setFallbackHandler",
913
893
  "outputs": [],
894
+ "payable": false,
914
895
  "stateMutability": "nonpayable",
915
896
  "type": "function"
916
897
  },
917
898
  {
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
- {
899
+ "constant": false,
931
900
  "inputs": [
932
901
  {
933
902
  "internalType": "address[]",
@@ -972,10 +941,27 @@ exports.GnosisSafe_jsonAbi = [
972
941
  ],
973
942
  "name": "setup",
974
943
  "outputs": [],
944
+ "payable": false,
945
+ "stateMutability": "nonpayable",
946
+ "type": "function"
947
+ },
948
+ {
949
+ "constant": false,
950
+ "inputs": [
951
+ {
952
+ "internalType": "bytes",
953
+ "name": "_data",
954
+ "type": "bytes"
955
+ }
956
+ ],
957
+ "name": "signMessage",
958
+ "outputs": [],
959
+ "payable": false,
975
960
  "stateMutability": "nonpayable",
976
961
  "type": "function"
977
962
  },
978
963
  {
964
+ "constant": true,
979
965
  "inputs": [
980
966
  {
981
967
  "internalType": "bytes32",
@@ -991,28 +977,12 @@ exports.GnosisSafe_jsonAbi = [
991
977
  "type": "uint256"
992
978
  }
993
979
  ],
980
+ "payable": false,
994
981
  "stateMutability": "view",
995
982
  "type": "function"
996
983
  },
997
984
  {
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
- {
985
+ "constant": false,
1016
986
  "inputs": [
1017
987
  {
1018
988
  "internalType": "address",
@@ -1032,12 +1002,9 @@ exports.GnosisSafe_jsonAbi = [
1032
1002
  ],
1033
1003
  "name": "swapOwner",
1034
1004
  "outputs": [],
1005
+ "payable": false,
1035
1006
  "stateMutability": "nonpayable",
1036
1007
  "type": "function"
1037
- },
1038
- {
1039
- "stateMutability": "payable",
1040
- "type": "receive"
1041
1008
  }
1042
1009
  ];
1043
1010
  /**
@@ -1097,6 +1064,13 @@ class GnosisSafe_json {
1097
1064
  getContract() {
1098
1065
  return this.contract;
1099
1066
  }
1067
+ /**
1068
+ * NAME
1069
+ * view
1070
+ */
1071
+ async NAME() {
1072
+ return this.contract.read.NAME();
1073
+ }
1100
1074
  /**
1101
1075
  * VERSION
1102
1076
  * view
@@ -1111,20 +1085,6 @@ class GnosisSafe_json {
1111
1085
  async approvedHashes(arg0, arg1) {
1112
1086
  return this.contract.read.approvedHashes([arg0, arg1]);
1113
1087
  }
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
- }
1128
1088
  /**
1129
1089
  * domainSeparator
1130
1090
  * view
@@ -1140,11 +1100,18 @@ class GnosisSafe_json {
1140
1100
  return this.contract.read.encodeTransactionData([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce]);
1141
1101
  }
1142
1102
  /**
1143
- * getChainId
1103
+ * getMessageHash
1144
1104
  * view
1145
1105
  */
1146
- async getChainId() {
1147
- return this.contract.read.getChainId();
1106
+ async getMessageHash(message) {
1107
+ return this.contract.read.getMessageHash([message]);
1108
+ }
1109
+ /**
1110
+ * getModules
1111
+ * view
1112
+ */
1113
+ async getModules() {
1114
+ return this.contract.read.getModules();
1148
1115
  }
1149
1116
  /**
1150
1117
  * getModulesPaginated
@@ -1160,13 +1127,6 @@ class GnosisSafe_json {
1160
1127
  async getOwners() {
1161
1128
  return this.contract.read.getOwners();
1162
1129
  }
1163
- /**
1164
- * getStorageAt
1165
- * view
1166
- */
1167
- async getStorageAt(offset, length) {
1168
- return this.contract.read.getStorageAt([offset, length]);
1169
- }
1170
1130
  /**
1171
1131
  * getThreshold
1172
1132
  * view
@@ -1231,6 +1191,17 @@ class GnosisSafe_json {
1231
1191
  }
1232
1192
  return this.contract.write.approveHash([hashToApprove], options);
1233
1193
  }
1194
+ /**
1195
+ * changeMasterCopy
1196
+ * nonpayable
1197
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1198
+ */
1199
+ async changeMasterCopy(_masterCopy, options) {
1200
+ if (!this.contract.write) {
1201
+ throw new Error('Wallet client is required for write operations');
1202
+ }
1203
+ return this.contract.write.changeMasterCopy([_masterCopy], options);
1204
+ }
1234
1205
  /**
1235
1206
  * changeThreshold
1236
1207
  * nonpayable
@@ -1297,6 +1268,17 @@ class GnosisSafe_json {
1297
1268
  }
1298
1269
  return this.contract.write.execTransactionFromModuleReturnData([to, value, data, operation], options);
1299
1270
  }
1271
+ /**
1272
+ * isValidSignature
1273
+ * nonpayable
1274
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1275
+ */
1276
+ async isValidSignature(_data, _signature, options) {
1277
+ if (!this.contract.write) {
1278
+ throw new Error('Wallet client is required for write operations');
1279
+ }
1280
+ return this.contract.write.isValidSignature([_data, _signature], options);
1281
+ }
1300
1282
  /**
1301
1283
  * removeOwner
1302
1284
  * nonpayable
@@ -1330,17 +1312,6 @@ class GnosisSafe_json {
1330
1312
  }
1331
1313
  return this.contract.write.setFallbackHandler([handler], options);
1332
1314
  }
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
- }
1344
1315
  /**
1345
1316
  * setup
1346
1317
  * nonpayable
@@ -1353,15 +1324,15 @@ class GnosisSafe_json {
1353
1324
  return this.contract.write.setup([_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver], options);
1354
1325
  }
1355
1326
  /**
1356
- * simulateAndRevert
1327
+ * signMessage
1357
1328
  * nonpayable
1358
1329
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1359
1330
  */
1360
- async simulateAndRevert(targetContract, calldataPayload, options) {
1331
+ async signMessage(_data, options) {
1361
1332
  if (!this.contract.write) {
1362
1333
  throw new Error('Wallet client is required for write operations');
1363
1334
  }
1364
- return this.contract.write.simulateAndRevert([targetContract, calldataPayload], options);
1335
+ return this.contract.write.signMessage([_data], options);
1365
1336
  }
1366
1337
  /**
1367
1338
  * swapOwner
@@ -1404,6 +1375,14 @@ class GnosisSafe_json {
1404
1375
  async approveHash(hashToApprove, options) {
1405
1376
  return contract.simulate.approveHash([hashToApprove], options);
1406
1377
  },
1378
+ /**
1379
+ * Simulate changeMasterCopy
1380
+ * Returns gas estimate and result without sending transaction
1381
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1382
+ */
1383
+ async changeMasterCopy(_masterCopy, options) {
1384
+ return contract.simulate.changeMasterCopy([_masterCopy], options);
1385
+ },
1407
1386
  /**
1408
1387
  * Simulate changeThreshold
1409
1388
  * Returns gas estimate and result without sending transaction
@@ -1452,6 +1431,14 @@ class GnosisSafe_json {
1452
1431
  async execTransactionFromModuleReturnData(to, value, data, operation, options) {
1453
1432
  return contract.simulate.execTransactionFromModuleReturnData([to, value, data, operation], options);
1454
1433
  },
1434
+ /**
1435
+ * Simulate isValidSignature
1436
+ * Returns gas estimate and result without sending transaction
1437
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1438
+ */
1439
+ async isValidSignature(_data, _signature, options) {
1440
+ return contract.simulate.isValidSignature([_data, _signature], options);
1441
+ },
1455
1442
  /**
1456
1443
  * Simulate removeOwner
1457
1444
  * Returns gas estimate and result without sending transaction
@@ -1476,14 +1463,6 @@ class GnosisSafe_json {
1476
1463
  async setFallbackHandler(handler, options) {
1477
1464
  return contract.simulate.setFallbackHandler([handler], options);
1478
1465
  },
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
- },
1487
1466
  /**
1488
1467
  * Simulate setup
1489
1468
  * Returns gas estimate and result without sending transaction
@@ -1493,12 +1472,12 @@ class GnosisSafe_json {
1493
1472
  return contract.simulate.setup([_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver], options);
1494
1473
  },
1495
1474
  /**
1496
- * Simulate simulateAndRevert
1475
+ * Simulate signMessage
1497
1476
  * Returns gas estimate and result without sending transaction
1498
1477
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1499
1478
  */
1500
- async simulateAndRevert(targetContract, calldataPayload, options) {
1501
- return contract.simulate.simulateAndRevert([targetContract, calldataPayload], options);
1479
+ async signMessage(_data, options) {
1480
+ return contract.simulate.signMessage([_data], options);
1502
1481
  },
1503
1482
  /**
1504
1483
  * Simulate swapOwner
@@ -1562,34 +1541,16 @@ class GnosisSafe_json {
1562
1541
  });
1563
1542
  },
1564
1543
  /**
1565
- * Watch ChangedFallbackHandler events
1544
+ * Watch ChangedMasterCopy events
1566
1545
  * @param callback Function to call when event is emitted
1567
1546
  * @param filter Optional filter for indexed parameters
1568
1547
  * @returns Unwatch function to stop listening
1569
1548
  */
1570
- ChangedFallbackHandler: (callback) => {
1549
+ ChangedMasterCopy: (callback) => {
1571
1550
  return this.publicClient.watchContractEvent({
1572
1551
  address: this.contractAddress,
1573
1552
  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
1584
- * @param callback Function to call when event is emitted
1585
- * @param filter Optional filter for indexed parameters
1586
- * @returns Unwatch function to stop listening
1587
- */
1588
- ChangedGuard: (callback) => {
1589
- return this.publicClient.watchContractEvent({
1590
- address: this.contractAddress,
1591
- abi: exports.GnosisSafe_jsonAbi,
1592
- eventName: 'ChangedGuard',
1553
+ eventName: 'ChangedMasterCopy',
1593
1554
  onLogs: (logs) => {
1594
1555
  logs.forEach((log) => {
1595
1556
  callback(log.args);
@@ -1743,44 +1704,6 @@ class GnosisSafe_json {
1743
1704
  },
1744
1705
  });
1745
1706
  },
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
- },
1784
1707
  /**
1785
1708
  * Watch SignMsg events
1786
1709
  * @param callback Function to call when event is emitted