@gitmyabi/gnosissafe 1.0.11 → 1.0.13

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
- "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",
55
+ "name": "masterCopy",
68
56
  "type": "address"
69
57
  }
70
58
  ],
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
  ],
564
- "stateMutability": "payable",
495
+ "payable": false,
496
+ "stateMutability": "nonpayable",
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,18 +732,20 @@ 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
743
  "internalType": "address",
800
- "name": "module",
744
+ "name": "owner",
801
745
  "type": "address"
802
746
  }
803
747
  ],
804
- "name": "isModuleEnabled",
748
+ "name": "isOwner",
805
749
  "outputs": [
806
750
  {
807
751
  "internalType": "bool",
@@ -809,29 +753,38 @@ 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": false,
816
762
  "inputs": [
817
763
  {
818
- "internalType": "address",
819
- "name": "owner",
820
- "type": "address"
764
+ "internalType": "bytes",
765
+ "name": "_data",
766
+ "type": "bytes"
767
+ },
768
+ {
769
+ "internalType": "bytes",
770
+ "name": "_signature",
771
+ "type": "bytes"
821
772
  }
822
773
  ],
823
- "name": "isOwner",
774
+ "name": "isValidSignature",
824
775
  "outputs": [
825
776
  {
826
- "internalType": "bool",
777
+ "internalType": "bytes4",
827
778
  "name": "",
828
- "type": "bool"
779
+ "type": "bytes4"
829
780
  }
830
781
  ],
831
- "stateMutability": "view",
782
+ "payable": false,
783
+ "stateMutability": "nonpayable",
832
784
  "type": "function"
833
785
  },
834
786
  {
787
+ "constant": true,
835
788
  "inputs": [],
836
789
  "name": "nonce",
837
790
  "outputs": [
@@ -841,10 +794,12 @@ exports.GnosisSafe_jsonAbi = [
841
794
  "type": "uint256"
842
795
  }
843
796
  ],
797
+ "payable": false,
844
798
  "stateMutability": "view",
845
799
  "type": "function"
846
800
  },
847
801
  {
802
+ "constant": false,
848
803
  "inputs": [
849
804
  {
850
805
  "internalType": "address",
@@ -864,10 +819,12 @@ exports.GnosisSafe_jsonAbi = [
864
819
  ],
865
820
  "name": "removeOwner",
866
821
  "outputs": [],
822
+ "payable": false,
867
823
  "stateMutability": "nonpayable",
868
824
  "type": "function"
869
825
  },
870
826
  {
827
+ "constant": false,
871
828
  "inputs": [
872
829
  {
873
830
  "internalType": "address",
@@ -898,10 +855,12 @@ exports.GnosisSafe_jsonAbi = [
898
855
  "type": "uint256"
899
856
  }
900
857
  ],
858
+ "payable": false,
901
859
  "stateMutability": "nonpayable",
902
860
  "type": "function"
903
861
  },
904
862
  {
863
+ "constant": false,
905
864
  "inputs": [
906
865
  {
907
866
  "internalType": "address",
@@ -911,23 +870,12 @@ exports.GnosisSafe_jsonAbi = [
911
870
  ],
912
871
  "name": "setFallbackHandler",
913
872
  "outputs": [],
873
+ "payable": false,
914
874
  "stateMutability": "nonpayable",
915
875
  "type": "function"
916
876
  },
917
877
  {
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
- {
878
+ "constant": false,
931
879
  "inputs": [
932
880
  {
933
881
  "internalType": "address[]",
@@ -972,10 +920,27 @@ exports.GnosisSafe_jsonAbi = [
972
920
  ],
973
921
  "name": "setup",
974
922
  "outputs": [],
923
+ "payable": false,
975
924
  "stateMutability": "nonpayable",
976
925
  "type": "function"
977
926
  },
978
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,
979
944
  "inputs": [
980
945
  {
981
946
  "internalType": "bytes32",
@@ -991,28 +956,12 @@ exports.GnosisSafe_jsonAbi = [
991
956
  "type": "uint256"
992
957
  }
993
958
  ],
959
+ "payable": false,
994
960
  "stateMutability": "view",
995
961
  "type": "function"
996
962
  },
997
963
  {
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
- {
964
+ "constant": false,
1016
965
  "inputs": [
1017
966
  {
1018
967
  "internalType": "address",
@@ -1032,12 +981,9 @@ exports.GnosisSafe_jsonAbi = [
1032
981
  ],
1033
982
  "name": "swapOwner",
1034
983
  "outputs": [],
984
+ "payable": false,
1035
985
  "stateMutability": "nonpayable",
1036
986
  "type": "function"
1037
- },
1038
- {
1039
- "stateMutability": "payable",
1040
- "type": "receive"
1041
987
  }
1042
988
  ];
1043
989
  /**
@@ -1097,6 +1043,13 @@ class GnosisSafe_json {
1097
1043
  getContract() {
1098
1044
  return this.contract;
1099
1045
  }
1046
+ /**
1047
+ * NAME
1048
+ * view
1049
+ */
1050
+ async NAME() {
1051
+ return this.contract.read.NAME();
1052
+ }
1100
1053
  /**
1101
1054
  * VERSION
1102
1055
  * view
@@ -1111,20 +1064,6 @@ class GnosisSafe_json {
1111
1064
  async approvedHashes(arg0, arg1) {
1112
1065
  return this.contract.read.approvedHashes([arg0, arg1]);
1113
1066
  }
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
1067
  /**
1129
1068
  * domainSeparator
1130
1069
  * view
@@ -1140,11 +1079,18 @@ class GnosisSafe_json {
1140
1079
  return this.contract.read.encodeTransactionData([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce]);
1141
1080
  }
1142
1081
  /**
1143
- * getChainId
1082
+ * getMessageHash
1144
1083
  * view
1145
1084
  */
1146
- async getChainId() {
1147
- return this.contract.read.getChainId();
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();
1148
1094
  }
1149
1095
  /**
1150
1096
  * getModulesPaginated
@@ -1160,13 +1106,6 @@ class GnosisSafe_json {
1160
1106
  async getOwners() {
1161
1107
  return this.contract.read.getOwners();
1162
1108
  }
1163
- /**
1164
- * getStorageAt
1165
- * view
1166
- */
1167
- async getStorageAt(offset, length) {
1168
- return this.contract.read.getStorageAt([offset, length]);
1169
- }
1170
1109
  /**
1171
1110
  * getThreshold
1172
1111
  * view
@@ -1181,13 +1120,6 @@ class GnosisSafe_json {
1181
1120
  async getTransactionHash(to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce) {
1182
1121
  return this.contract.read.getTransactionHash([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce]);
1183
1122
  }
1184
- /**
1185
- * isModuleEnabled
1186
- * view
1187
- */
1188
- async isModuleEnabled(module) {
1189
- return this.contract.read.isModuleEnabled([module]);
1190
- }
1191
1123
  /**
1192
1124
  * isOwner
1193
1125
  * view
@@ -1231,6 +1163,17 @@ class GnosisSafe_json {
1231
1163
  }
1232
1164
  return this.contract.write.approveHash([hashToApprove], options);
1233
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
+ }
1234
1177
  /**
1235
1178
  * changeThreshold
1236
1179
  * nonpayable
@@ -1266,7 +1209,7 @@ class GnosisSafe_json {
1266
1209
  }
1267
1210
  /**
1268
1211
  * execTransaction
1269
- * payable
1212
+ * nonpayable
1270
1213
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1271
1214
  */
1272
1215
  async execTransaction(to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, signatures, options) {
@@ -1297,6 +1240,17 @@ class GnosisSafe_json {
1297
1240
  }
1298
1241
  return this.contract.write.execTransactionFromModuleReturnData([to, value, data, operation], options);
1299
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
+ }
1300
1254
  /**
1301
1255
  * removeOwner
1302
1256
  * nonpayable
@@ -1330,17 +1284,6 @@ class GnosisSafe_json {
1330
1284
  }
1331
1285
  return this.contract.write.setFallbackHandler([handler], options);
1332
1286
  }
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
1287
  /**
1345
1288
  * setup
1346
1289
  * nonpayable
@@ -1353,15 +1296,15 @@ class GnosisSafe_json {
1353
1296
  return this.contract.write.setup([_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver], options);
1354
1297
  }
1355
1298
  /**
1356
- * simulateAndRevert
1299
+ * signMessage
1357
1300
  * nonpayable
1358
1301
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1359
1302
  */
1360
- async simulateAndRevert(targetContract, calldataPayload, options) {
1303
+ async signMessage(_data, options) {
1361
1304
  if (!this.contract.write) {
1362
1305
  throw new Error('Wallet client is required for write operations');
1363
1306
  }
1364
- return this.contract.write.simulateAndRevert([targetContract, calldataPayload], options);
1307
+ return this.contract.write.signMessage([_data], options);
1365
1308
  }
1366
1309
  /**
1367
1310
  * swapOwner
@@ -1404,6 +1347,14 @@ class GnosisSafe_json {
1404
1347
  async approveHash(hashToApprove, options) {
1405
1348
  return contract.simulate.approveHash([hashToApprove], options);
1406
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
+ },
1407
1358
  /**
1408
1359
  * Simulate changeThreshold
1409
1360
  * Returns gas estimate and result without sending transaction
@@ -1452,6 +1403,14 @@ class GnosisSafe_json {
1452
1403
  async execTransactionFromModuleReturnData(to, value, data, operation, options) {
1453
1404
  return contract.simulate.execTransactionFromModuleReturnData([to, value, data, operation], options);
1454
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
+ },
1455
1414
  /**
1456
1415
  * Simulate removeOwner
1457
1416
  * Returns gas estimate and result without sending transaction
@@ -1476,14 +1435,6 @@ class GnosisSafe_json {
1476
1435
  async setFallbackHandler(handler, options) {
1477
1436
  return contract.simulate.setFallbackHandler([handler], options);
1478
1437
  },
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
1438
  /**
1488
1439
  * Simulate setup
1489
1440
  * Returns gas estimate and result without sending transaction
@@ -1493,12 +1444,12 @@ class GnosisSafe_json {
1493
1444
  return contract.simulate.setup([_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver], options);
1494
1445
  },
1495
1446
  /**
1496
- * Simulate simulateAndRevert
1447
+ * Simulate signMessage
1497
1448
  * Returns gas estimate and result without sending transaction
1498
1449
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1499
1450
  */
1500
- async simulateAndRevert(targetContract, calldataPayload, options) {
1501
- return contract.simulate.simulateAndRevert([targetContract, calldataPayload], options);
1451
+ async signMessage(_data, options) {
1452
+ return contract.simulate.signMessage([_data], options);
1502
1453
  },
1503
1454
  /**
1504
1455
  * Simulate swapOwner
@@ -1562,34 +1513,16 @@ class GnosisSafe_json {
1562
1513
  });
1563
1514
  },
1564
1515
  /**
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
1516
+ * Watch ChangedMasterCopy events
1584
1517
  * @param callback Function to call when event is emitted
1585
1518
  * @param filter Optional filter for indexed parameters
1586
1519
  * @returns Unwatch function to stop listening
1587
1520
  */
1588
- ChangedGuard: (callback) => {
1521
+ ChangedMasterCopy: (callback) => {
1589
1522
  return this.publicClient.watchContractEvent({
1590
1523
  address: this.contractAddress,
1591
1524
  abi: exports.GnosisSafe_jsonAbi,
1592
- eventName: 'ChangedGuard',
1525
+ eventName: 'ChangedMasterCopy',
1593
1526
  onLogs: (logs) => {
1594
1527
  logs.forEach((log) => {
1595
1528
  callback(log.args);
@@ -1743,44 +1676,6 @@ class GnosisSafe_json {
1743
1676
  },
1744
1677
  });
1745
1678
  },
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
1679
  /**
1785
1680
  * Watch SignMsg events
1786
1681
  * @param callback Function to call when event is emitted