@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.
@@ -9,6 +9,7 @@ import { getContract } from 'viem';
9
9
  export const GnosisSafe_jsonAbi = [
10
10
  {
11
11
  "inputs": [],
12
+ "payable": false,
12
13
  "stateMutability": "nonpayable",
13
14
  "type": "constructor"
14
15
  },
@@ -50,24 +51,11 @@ export const GnosisSafe_jsonAbi = [
50
51
  {
51
52
  "indexed": false,
52
53
  "internalType": "address",
53
- "name": "handler",
54
- "type": "address"
55
- }
56
- ],
57
- "name": "ChangedFallbackHandler",
58
- "type": "event"
59
- },
60
- {
61
- "anonymous": false,
62
- "inputs": [
63
- {
64
- "indexed": false,
65
- "internalType": "address",
66
- "name": "guard",
54
+ "name": "masterCopy",
67
55
  "type": "address"
68
56
  }
69
57
  ],
70
- "name": "ChangedGuard",
58
+ "name": "ChangedMasterCopy",
71
59
  "type": "event"
72
60
  },
73
61
  {
@@ -88,7 +76,7 @@ export const GnosisSafe_jsonAbi = [
88
76
  "inputs": [
89
77
  {
90
78
  "indexed": false,
91
- "internalType": "address",
79
+ "internalType": "contract Module",
92
80
  "name": "module",
93
81
  "type": "address"
94
82
  }
@@ -101,7 +89,7 @@ export const GnosisSafe_jsonAbi = [
101
89
  "inputs": [
102
90
  {
103
91
  "indexed": false,
104
- "internalType": "address",
92
+ "internalType": "contract Module",
105
93
  "name": "module",
106
94
  "type": "address"
107
95
  }
@@ -186,62 +174,6 @@ export const GnosisSafe_jsonAbi = [
186
174
  "name": "RemovedOwner",
187
175
  "type": "event"
188
176
  },
189
- {
190
- "anonymous": false,
191
- "inputs": [
192
- {
193
- "indexed": true,
194
- "internalType": "address",
195
- "name": "sender",
196
- "type": "address"
197
- },
198
- {
199
- "indexed": false,
200
- "internalType": "uint256",
201
- "name": "value",
202
- "type": "uint256"
203
- }
204
- ],
205
- "name": "SafeReceived",
206
- "type": "event"
207
- },
208
- {
209
- "anonymous": false,
210
- "inputs": [
211
- {
212
- "indexed": true,
213
- "internalType": "address",
214
- "name": "initiator",
215
- "type": "address"
216
- },
217
- {
218
- "indexed": false,
219
- "internalType": "address[]",
220
- "name": "owners",
221
- "type": "address[]"
222
- },
223
- {
224
- "indexed": false,
225
- "internalType": "uint256",
226
- "name": "threshold",
227
- "type": "uint256"
228
- },
229
- {
230
- "indexed": false,
231
- "internalType": "address",
232
- "name": "initializer",
233
- "type": "address"
234
- },
235
- {
236
- "indexed": false,
237
- "internalType": "address",
238
- "name": "fallbackHandler",
239
- "type": "address"
240
- }
241
- ],
242
- "name": "SafeSetup",
243
- "type": "event"
244
- },
245
177
  {
246
178
  "anonymous": false,
247
179
  "inputs": [
@@ -256,10 +188,27 @@ export const GnosisSafe_jsonAbi = [
256
188
  "type": "event"
257
189
  },
258
190
  {
259
- "stateMutability": "nonpayable",
191
+ "payable": true,
192
+ "stateMutability": "payable",
260
193
  "type": "fallback"
261
194
  },
262
195
  {
196
+ "constant": true,
197
+ "inputs": [],
198
+ "name": "NAME",
199
+ "outputs": [
200
+ {
201
+ "internalType": "string",
202
+ "name": "",
203
+ "type": "string"
204
+ }
205
+ ],
206
+ "payable": false,
207
+ "stateMutability": "view",
208
+ "type": "function"
209
+ },
210
+ {
211
+ "constant": true,
263
212
  "inputs": [],
264
213
  "name": "VERSION",
265
214
  "outputs": [
@@ -269,10 +218,12 @@ export const GnosisSafe_jsonAbi = [
269
218
  "type": "string"
270
219
  }
271
220
  ],
221
+ "payable": false,
272
222
  "stateMutability": "view",
273
223
  "type": "function"
274
224
  },
275
225
  {
226
+ "constant": false,
276
227
  "inputs": [
277
228
  {
278
229
  "internalType": "address",
@@ -287,10 +238,12 @@ export const GnosisSafe_jsonAbi = [
287
238
  ],
288
239
  "name": "addOwnerWithThreshold",
289
240
  "outputs": [],
241
+ "payable": false,
290
242
  "stateMutability": "nonpayable",
291
243
  "type": "function"
292
244
  },
293
245
  {
246
+ "constant": false,
294
247
  "inputs": [
295
248
  {
296
249
  "internalType": "bytes32",
@@ -300,10 +253,12 @@ export const GnosisSafe_jsonAbi = [
300
253
  ],
301
254
  "name": "approveHash",
302
255
  "outputs": [],
256
+ "payable": false,
303
257
  "stateMutability": "nonpayable",
304
258
  "type": "function"
305
259
  },
306
260
  {
261
+ "constant": true,
307
262
  "inputs": [
308
263
  {
309
264
  "internalType": "address",
@@ -324,92 +279,62 @@ export const GnosisSafe_jsonAbi = [
324
279
  "type": "uint256"
325
280
  }
326
281
  ],
282
+ "payable": false,
327
283
  "stateMutability": "view",
328
284
  "type": "function"
329
285
  },
330
286
  {
287
+ "constant": false,
331
288
  "inputs": [
332
289
  {
333
- "internalType": "uint256",
334
- "name": "_threshold",
335
- "type": "uint256"
290
+ "internalType": "address",
291
+ "name": "_masterCopy",
292
+ "type": "address"
336
293
  }
337
294
  ],
338
- "name": "changeThreshold",
295
+ "name": "changeMasterCopy",
339
296
  "outputs": [],
297
+ "payable": false,
340
298
  "stateMutability": "nonpayable",
341
299
  "type": "function"
342
300
  },
343
301
  {
302
+ "constant": false,
344
303
  "inputs": [
345
- {
346
- "internalType": "bytes32",
347
- "name": "dataHash",
348
- "type": "bytes32"
349
- },
350
- {
351
- "internalType": "bytes",
352
- "name": "data",
353
- "type": "bytes"
354
- },
355
- {
356
- "internalType": "bytes",
357
- "name": "signatures",
358
- "type": "bytes"
359
- },
360
304
  {
361
305
  "internalType": "uint256",
362
- "name": "requiredSignatures",
306
+ "name": "_threshold",
363
307
  "type": "uint256"
364
308
  }
365
309
  ],
366
- "name": "checkNSignatures",
367
- "outputs": [],
368
- "stateMutability": "view",
369
- "type": "function"
370
- },
371
- {
372
- "inputs": [
373
- {
374
- "internalType": "bytes32",
375
- "name": "dataHash",
376
- "type": "bytes32"
377
- },
378
- {
379
- "internalType": "bytes",
380
- "name": "data",
381
- "type": "bytes"
382
- },
383
- {
384
- "internalType": "bytes",
385
- "name": "signatures",
386
- "type": "bytes"
387
- }
388
- ],
389
- "name": "checkSignatures",
310
+ "name": "changeThreshold",
390
311
  "outputs": [],
391
- "stateMutability": "view",
312
+ "payable": false,
313
+ "stateMutability": "nonpayable",
392
314
  "type": "function"
393
315
  },
394
316
  {
317
+ "constant": false,
395
318
  "inputs": [
396
319
  {
397
- "internalType": "address",
320
+ "internalType": "contract Module",
398
321
  "name": "prevModule",
399
322
  "type": "address"
400
323
  },
401
324
  {
402
- "internalType": "address",
325
+ "internalType": "contract Module",
403
326
  "name": "module",
404
327
  "type": "address"
405
328
  }
406
329
  ],
407
330
  "name": "disableModule",
408
331
  "outputs": [],
332
+ "payable": false,
409
333
  "stateMutability": "nonpayable",
410
334
  "type": "function"
411
335
  },
412
336
  {
337
+ "constant": true,
413
338
  "inputs": [],
414
339
  "name": "domainSeparator",
415
340
  "outputs": [
@@ -419,23 +344,27 @@ export const GnosisSafe_jsonAbi = [
419
344
  "type": "bytes32"
420
345
  }
421
346
  ],
347
+ "payable": false,
422
348
  "stateMutability": "view",
423
349
  "type": "function"
424
350
  },
425
351
  {
352
+ "constant": false,
426
353
  "inputs": [
427
354
  {
428
- "internalType": "address",
355
+ "internalType": "contract Module",
429
356
  "name": "module",
430
357
  "type": "address"
431
358
  }
432
359
  ],
433
360
  "name": "enableModule",
434
361
  "outputs": [],
362
+ "payable": false,
435
363
  "stateMutability": "nonpayable",
436
364
  "type": "function"
437
365
  },
438
366
  {
367
+ "constant": true,
439
368
  "inputs": [
440
369
  {
441
370
  "internalType": "address",
@@ -496,10 +425,12 @@ export const GnosisSafe_jsonAbi = [
496
425
  "type": "bytes"
497
426
  }
498
427
  ],
428
+ "payable": false,
499
429
  "stateMutability": "view",
500
430
  "type": "function"
501
431
  },
502
432
  {
433
+ "constant": false,
503
434
  "inputs": [
504
435
  {
505
436
  "internalType": "address",
@@ -560,10 +491,12 @@ export const GnosisSafe_jsonAbi = [
560
491
  "type": "bool"
561
492
  }
562
493
  ],
494
+ "payable": true,
563
495
  "stateMutability": "payable",
564
496
  "type": "function"
565
497
  },
566
498
  {
499
+ "constant": false,
567
500
  "inputs": [
568
501
  {
569
502
  "internalType": "address",
@@ -594,10 +527,12 @@ export const GnosisSafe_jsonAbi = [
594
527
  "type": "bool"
595
528
  }
596
529
  ],
530
+ "payable": false,
597
531
  "stateMutability": "nonpayable",
598
532
  "type": "function"
599
533
  },
600
534
  {
535
+ "constant": false,
601
536
  "inputs": [
602
537
  {
603
538
  "internalType": "address",
@@ -633,23 +568,48 @@ export const GnosisSafe_jsonAbi = [
633
568
  "type": "bytes"
634
569
  }
635
570
  ],
571
+ "payable": false,
636
572
  "stateMutability": "nonpayable",
637
573
  "type": "function"
638
574
  },
639
575
  {
576
+ "constant": true,
577
+ "inputs": [
578
+ {
579
+ "internalType": "bytes",
580
+ "name": "message",
581
+ "type": "bytes"
582
+ }
583
+ ],
584
+ "name": "getMessageHash",
585
+ "outputs": [
586
+ {
587
+ "internalType": "bytes32",
588
+ "name": "",
589
+ "type": "bytes32"
590
+ }
591
+ ],
592
+ "payable": false,
593
+ "stateMutability": "view",
594
+ "type": "function"
595
+ },
596
+ {
597
+ "constant": true,
640
598
  "inputs": [],
641
- "name": "getChainId",
599
+ "name": "getModules",
642
600
  "outputs": [
643
601
  {
644
- "internalType": "uint256",
602
+ "internalType": "address[]",
645
603
  "name": "",
646
- "type": "uint256"
604
+ "type": "address[]"
647
605
  }
648
606
  ],
607
+ "payable": false,
649
608
  "stateMutability": "view",
650
609
  "type": "function"
651
610
  },
652
611
  {
612
+ "constant": true,
653
613
  "inputs": [
654
614
  {
655
615
  "internalType": "address",
@@ -675,10 +635,12 @@ export const GnosisSafe_jsonAbi = [
675
635
  "type": "address"
676
636
  }
677
637
  ],
638
+ "payable": false,
678
639
  "stateMutability": "view",
679
640
  "type": "function"
680
641
  },
681
642
  {
643
+ "constant": true,
682
644
  "inputs": [],
683
645
  "name": "getOwners",
684
646
  "outputs": [
@@ -688,34 +650,12 @@ export const GnosisSafe_jsonAbi = [
688
650
  "type": "address[]"
689
651
  }
690
652
  ],
653
+ "payable": false,
691
654
  "stateMutability": "view",
692
655
  "type": "function"
693
656
  },
694
657
  {
695
- "inputs": [
696
- {
697
- "internalType": "uint256",
698
- "name": "offset",
699
- "type": "uint256"
700
- },
701
- {
702
- "internalType": "uint256",
703
- "name": "length",
704
- "type": "uint256"
705
- }
706
- ],
707
- "name": "getStorageAt",
708
- "outputs": [
709
- {
710
- "internalType": "bytes",
711
- "name": "",
712
- "type": "bytes"
713
- }
714
- ],
715
- "stateMutability": "view",
716
- "type": "function"
717
- },
718
- {
658
+ "constant": true,
719
659
  "inputs": [],
720
660
  "name": "getThreshold",
721
661
  "outputs": [
@@ -725,10 +665,12 @@ export const GnosisSafe_jsonAbi = [
725
665
  "type": "uint256"
726
666
  }
727
667
  ],
668
+ "payable": false,
728
669
  "stateMutability": "view",
729
670
  "type": "function"
730
671
  },
731
672
  {
673
+ "constant": true,
732
674
  "inputs": [
733
675
  {
734
676
  "internalType": "address",
@@ -789,13 +731,15 @@ export const GnosisSafe_jsonAbi = [
789
731
  "type": "bytes32"
790
732
  }
791
733
  ],
734
+ "payable": false,
792
735
  "stateMutability": "view",
793
736
  "type": "function"
794
737
  },
795
738
  {
739
+ "constant": true,
796
740
  "inputs": [
797
741
  {
798
- "internalType": "address",
742
+ "internalType": "contract Module",
799
743
  "name": "module",
800
744
  "type": "address"
801
745
  }
@@ -808,10 +752,12 @@ export const GnosisSafe_jsonAbi = [
808
752
  "type": "bool"
809
753
  }
810
754
  ],
755
+ "payable": false,
811
756
  "stateMutability": "view",
812
757
  "type": "function"
813
758
  },
814
759
  {
760
+ "constant": true,
815
761
  "inputs": [
816
762
  {
817
763
  "internalType": "address",
@@ -827,10 +773,38 @@ export const GnosisSafe_jsonAbi = [
827
773
  "type": "bool"
828
774
  }
829
775
  ],
776
+ "payable": false,
830
777
  "stateMutability": "view",
831
778
  "type": "function"
832
779
  },
833
780
  {
781
+ "constant": false,
782
+ "inputs": [
783
+ {
784
+ "internalType": "bytes",
785
+ "name": "_data",
786
+ "type": "bytes"
787
+ },
788
+ {
789
+ "internalType": "bytes",
790
+ "name": "_signature",
791
+ "type": "bytes"
792
+ }
793
+ ],
794
+ "name": "isValidSignature",
795
+ "outputs": [
796
+ {
797
+ "internalType": "bytes4",
798
+ "name": "",
799
+ "type": "bytes4"
800
+ }
801
+ ],
802
+ "payable": false,
803
+ "stateMutability": "nonpayable",
804
+ "type": "function"
805
+ },
806
+ {
807
+ "constant": true,
834
808
  "inputs": [],
835
809
  "name": "nonce",
836
810
  "outputs": [
@@ -840,10 +814,12 @@ export const GnosisSafe_jsonAbi = [
840
814
  "type": "uint256"
841
815
  }
842
816
  ],
817
+ "payable": false,
843
818
  "stateMutability": "view",
844
819
  "type": "function"
845
820
  },
846
821
  {
822
+ "constant": false,
847
823
  "inputs": [
848
824
  {
849
825
  "internalType": "address",
@@ -863,10 +839,12 @@ export const GnosisSafe_jsonAbi = [
863
839
  ],
864
840
  "name": "removeOwner",
865
841
  "outputs": [],
842
+ "payable": false,
866
843
  "stateMutability": "nonpayable",
867
844
  "type": "function"
868
845
  },
869
846
  {
847
+ "constant": false,
870
848
  "inputs": [
871
849
  {
872
850
  "internalType": "address",
@@ -897,10 +875,12 @@ export const GnosisSafe_jsonAbi = [
897
875
  "type": "uint256"
898
876
  }
899
877
  ],
878
+ "payable": false,
900
879
  "stateMutability": "nonpayable",
901
880
  "type": "function"
902
881
  },
903
882
  {
883
+ "constant": false,
904
884
  "inputs": [
905
885
  {
906
886
  "internalType": "address",
@@ -910,23 +890,12 @@ export const GnosisSafe_jsonAbi = [
910
890
  ],
911
891
  "name": "setFallbackHandler",
912
892
  "outputs": [],
893
+ "payable": false,
913
894
  "stateMutability": "nonpayable",
914
895
  "type": "function"
915
896
  },
916
897
  {
917
- "inputs": [
918
- {
919
- "internalType": "address",
920
- "name": "guard",
921
- "type": "address"
922
- }
923
- ],
924
- "name": "setGuard",
925
- "outputs": [],
926
- "stateMutability": "nonpayable",
927
- "type": "function"
928
- },
929
- {
898
+ "constant": false,
930
899
  "inputs": [
931
900
  {
932
901
  "internalType": "address[]",
@@ -971,10 +940,27 @@ export const GnosisSafe_jsonAbi = [
971
940
  ],
972
941
  "name": "setup",
973
942
  "outputs": [],
943
+ "payable": false,
944
+ "stateMutability": "nonpayable",
945
+ "type": "function"
946
+ },
947
+ {
948
+ "constant": false,
949
+ "inputs": [
950
+ {
951
+ "internalType": "bytes",
952
+ "name": "_data",
953
+ "type": "bytes"
954
+ }
955
+ ],
956
+ "name": "signMessage",
957
+ "outputs": [],
958
+ "payable": false,
974
959
  "stateMutability": "nonpayable",
975
960
  "type": "function"
976
961
  },
977
962
  {
963
+ "constant": true,
978
964
  "inputs": [
979
965
  {
980
966
  "internalType": "bytes32",
@@ -990,28 +976,12 @@ export const GnosisSafe_jsonAbi = [
990
976
  "type": "uint256"
991
977
  }
992
978
  ],
979
+ "payable": false,
993
980
  "stateMutability": "view",
994
981
  "type": "function"
995
982
  },
996
983
  {
997
- "inputs": [
998
- {
999
- "internalType": "address",
1000
- "name": "targetContract",
1001
- "type": "address"
1002
- },
1003
- {
1004
- "internalType": "bytes",
1005
- "name": "calldataPayload",
1006
- "type": "bytes"
1007
- }
1008
- ],
1009
- "name": "simulateAndRevert",
1010
- "outputs": [],
1011
- "stateMutability": "nonpayable",
1012
- "type": "function"
1013
- },
1014
- {
984
+ "constant": false,
1015
985
  "inputs": [
1016
986
  {
1017
987
  "internalType": "address",
@@ -1031,12 +1001,9 @@ export const GnosisSafe_jsonAbi = [
1031
1001
  ],
1032
1002
  "name": "swapOwner",
1033
1003
  "outputs": [],
1004
+ "payable": false,
1034
1005
  "stateMutability": "nonpayable",
1035
1006
  "type": "function"
1036
- },
1037
- {
1038
- "stateMutability": "payable",
1039
- "type": "receive"
1040
1007
  }
1041
1008
  ] as const satisfies Abi;
1042
1009
 
@@ -1122,6 +1089,14 @@ export class GnosisSafe_json {
1122
1089
  return this.contract;
1123
1090
  }
1124
1091
 
1092
+ /**
1093
+ * NAME
1094
+ * view
1095
+ */
1096
+ async NAME(): Promise<string> {
1097
+ return this.contract.read.NAME() as Promise<string>;
1098
+ }
1099
+
1125
1100
  /**
1126
1101
  * VERSION
1127
1102
  * view
@@ -1138,22 +1113,6 @@ export class GnosisSafe_json {
1138
1113
  return this.contract.read.approvedHashes([arg0, arg1] as const) as Promise<bigint>;
1139
1114
  }
1140
1115
 
1141
- /**
1142
- * checkNSignatures
1143
- * view
1144
- */
1145
- async checkNSignatures(dataHash: `0x${string}`, data: `0x${string}`, signatures: `0x${string}`, requiredSignatures: bigint): Promise<void> {
1146
- return this.contract.read.checkNSignatures([dataHash, data, signatures, requiredSignatures] as const) as Promise<void>;
1147
- }
1148
-
1149
- /**
1150
- * checkSignatures
1151
- * view
1152
- */
1153
- async checkSignatures(dataHash: `0x${string}`, data: `0x${string}`, signatures: `0x${string}`): Promise<void> {
1154
- return this.contract.read.checkSignatures([dataHash, data, signatures] as const) as Promise<void>;
1155
- }
1156
-
1157
1116
  /**
1158
1117
  * domainSeparator
1159
1118
  * view
@@ -1171,11 +1130,19 @@ export class GnosisSafe_json {
1171
1130
  }
1172
1131
 
1173
1132
  /**
1174
- * getChainId
1133
+ * getMessageHash
1175
1134
  * view
1176
1135
  */
1177
- async getChainId(): Promise<bigint> {
1178
- return this.contract.read.getChainId() as Promise<bigint>;
1136
+ async getMessageHash(message: `0x${string}`): Promise<`0x${string}`> {
1137
+ return this.contract.read.getMessageHash([message] as const) as Promise<`0x${string}`>;
1138
+ }
1139
+
1140
+ /**
1141
+ * getModules
1142
+ * view
1143
+ */
1144
+ async getModules(): Promise<`0x${string}`[]> {
1145
+ return this.contract.read.getModules() as Promise<`0x${string}`[]>;
1179
1146
  }
1180
1147
 
1181
1148
  /**
@@ -1194,14 +1161,6 @@ export class GnosisSafe_json {
1194
1161
  return this.contract.read.getOwners() as Promise<`0x${string}`[]>;
1195
1162
  }
1196
1163
 
1197
- /**
1198
- * getStorageAt
1199
- * view
1200
- */
1201
- async getStorageAt(offset: bigint, length: bigint): Promise<`0x${string}`> {
1202
- return this.contract.read.getStorageAt([offset, length] as const) as Promise<`0x${string}`>;
1203
- }
1204
-
1205
1164
  /**
1206
1165
  * getThreshold
1207
1166
  * view
@@ -1296,6 +1255,29 @@ export class GnosisSafe_json {
1296
1255
  return this.contract.write.approveHash([hashToApprove] as const, options) as Promise<`0x${string}`>;
1297
1256
  }
1298
1257
 
1258
+ /**
1259
+ * changeMasterCopy
1260
+ * nonpayable
1261
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1262
+ */
1263
+ async changeMasterCopy(_masterCopy: `0x${string}`, options?: {
1264
+ accessList?: import('viem').AccessList;
1265
+ authorizationList?: import('viem').AuthorizationList;
1266
+ chain?: import('viem').Chain | null;
1267
+ dataSuffix?: `0x${string}`;
1268
+ gas?: bigint;
1269
+ gasPrice?: bigint;
1270
+ maxFeePerGas?: bigint;
1271
+ maxPriorityFeePerGas?: bigint;
1272
+ nonce?: number;
1273
+ value?: bigint;
1274
+ }): Promise<`0x${string}`> {
1275
+ if (!this.contract.write) {
1276
+ throw new Error('Wallet client is required for write operations');
1277
+ }
1278
+ return this.contract.write.changeMasterCopy([_masterCopy] as const, options) as Promise<`0x${string}`>;
1279
+ }
1280
+
1299
1281
  /**
1300
1282
  * changeThreshold
1301
1283
  * nonpayable
@@ -1435,11 +1417,11 @@ export class GnosisSafe_json {
1435
1417
  }
1436
1418
 
1437
1419
  /**
1438
- * removeOwner
1420
+ * isValidSignature
1439
1421
  * nonpayable
1440
1422
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1441
1423
  */
1442
- async removeOwner(prevOwner: `0x${string}`, owner: `0x${string}`, _threshold: bigint, options?: {
1424
+ async isValidSignature(_data: `0x${string}`, _signature: `0x${string}`, options?: {
1443
1425
  accessList?: import('viem').AccessList;
1444
1426
  authorizationList?: import('viem').AuthorizationList;
1445
1427
  chain?: import('viem').Chain | null;
@@ -1454,15 +1436,15 @@ export class GnosisSafe_json {
1454
1436
  if (!this.contract.write) {
1455
1437
  throw new Error('Wallet client is required for write operations');
1456
1438
  }
1457
- return this.contract.write.removeOwner([prevOwner, owner, _threshold] as const, options) as Promise<`0x${string}`>;
1439
+ return this.contract.write.isValidSignature([_data, _signature] as const, options) as Promise<`0x${string}`>;
1458
1440
  }
1459
1441
 
1460
1442
  /**
1461
- * requiredTxGas
1443
+ * removeOwner
1462
1444
  * nonpayable
1463
1445
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1464
1446
  */
1465
- async requiredTxGas(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1447
+ async removeOwner(prevOwner: `0x${string}`, owner: `0x${string}`, _threshold: bigint, options?: {
1466
1448
  accessList?: import('viem').AccessList;
1467
1449
  authorizationList?: import('viem').AuthorizationList;
1468
1450
  chain?: import('viem').Chain | null;
@@ -1477,15 +1459,15 @@ export class GnosisSafe_json {
1477
1459
  if (!this.contract.write) {
1478
1460
  throw new Error('Wallet client is required for write operations');
1479
1461
  }
1480
- return this.contract.write.requiredTxGas([to, value, data, operation] as const, options) as Promise<`0x${string}`>;
1462
+ return this.contract.write.removeOwner([prevOwner, owner, _threshold] as const, options) as Promise<`0x${string}`>;
1481
1463
  }
1482
1464
 
1483
1465
  /**
1484
- * setFallbackHandler
1466
+ * requiredTxGas
1485
1467
  * nonpayable
1486
1468
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1487
1469
  */
1488
- async setFallbackHandler(handler: `0x${string}`, options?: {
1470
+ async requiredTxGas(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1489
1471
  accessList?: import('viem').AccessList;
1490
1472
  authorizationList?: import('viem').AuthorizationList;
1491
1473
  chain?: import('viem').Chain | null;
@@ -1500,15 +1482,15 @@ export class GnosisSafe_json {
1500
1482
  if (!this.contract.write) {
1501
1483
  throw new Error('Wallet client is required for write operations');
1502
1484
  }
1503
- return this.contract.write.setFallbackHandler([handler] as const, options) as Promise<`0x${string}`>;
1485
+ return this.contract.write.requiredTxGas([to, value, data, operation] as const, options) as Promise<`0x${string}`>;
1504
1486
  }
1505
1487
 
1506
1488
  /**
1507
- * setGuard
1489
+ * setFallbackHandler
1508
1490
  * nonpayable
1509
1491
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1510
1492
  */
1511
- async setGuard(guard: `0x${string}`, options?: {
1493
+ async setFallbackHandler(handler: `0x${string}`, options?: {
1512
1494
  accessList?: import('viem').AccessList;
1513
1495
  authorizationList?: import('viem').AuthorizationList;
1514
1496
  chain?: import('viem').Chain | null;
@@ -1523,7 +1505,7 @@ export class GnosisSafe_json {
1523
1505
  if (!this.contract.write) {
1524
1506
  throw new Error('Wallet client is required for write operations');
1525
1507
  }
1526
- return this.contract.write.setGuard([guard] as const, options) as Promise<`0x${string}`>;
1508
+ return this.contract.write.setFallbackHandler([handler] as const, options) as Promise<`0x${string}`>;
1527
1509
  }
1528
1510
 
1529
1511
  /**
@@ -1550,11 +1532,11 @@ export class GnosisSafe_json {
1550
1532
  }
1551
1533
 
1552
1534
  /**
1553
- * simulateAndRevert
1535
+ * signMessage
1554
1536
  * nonpayable
1555
1537
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1556
1538
  */
1557
- async simulateAndRevert(targetContract: `0x${string}`, calldataPayload: `0x${string}`, options?: {
1539
+ async signMessage(_data: `0x${string}`, options?: {
1558
1540
  accessList?: import('viem').AccessList;
1559
1541
  authorizationList?: import('viem').AuthorizationList;
1560
1542
  chain?: import('viem').Chain | null;
@@ -1569,7 +1551,7 @@ export class GnosisSafe_json {
1569
1551
  if (!this.contract.write) {
1570
1552
  throw new Error('Wallet client is required for write operations');
1571
1553
  }
1572
- return this.contract.write.simulateAndRevert([targetContract, calldataPayload] as const, options) as Promise<`0x${string}`>;
1554
+ return this.contract.write.signMessage([_data] as const, options) as Promise<`0x${string}`>;
1573
1555
  }
1574
1556
 
1575
1557
  /**
@@ -1649,6 +1631,25 @@ export class GnosisSafe_json {
1649
1631
  }): Promise<void> {
1650
1632
  return contract.simulate.approveHash([hashToApprove] as const, options) as Promise<void>;
1651
1633
  },
1634
+ /**
1635
+ * Simulate changeMasterCopy
1636
+ * Returns gas estimate and result without sending transaction
1637
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1638
+ */
1639
+ async changeMasterCopy(_masterCopy: `0x${string}`, options?: {
1640
+ accessList?: import('viem').AccessList;
1641
+ authorizationList?: import('viem').AuthorizationList;
1642
+ chain?: import('viem').Chain | null;
1643
+ dataSuffix?: `0x${string}`;
1644
+ gas?: bigint;
1645
+ gasPrice?: bigint;
1646
+ maxFeePerGas?: bigint;
1647
+ maxPriorityFeePerGas?: bigint;
1648
+ nonce?: number;
1649
+ value?: bigint;
1650
+ }): Promise<void> {
1651
+ return contract.simulate.changeMasterCopy([_masterCopy] as const, options) as Promise<void>;
1652
+ },
1652
1653
  /**
1653
1654
  * Simulate changeThreshold
1654
1655
  * Returns gas estimate and result without sending transaction
@@ -1764,11 +1765,11 @@ export class GnosisSafe_json {
1764
1765
  return contract.simulate.execTransactionFromModuleReturnData([to, value, data, operation] as const, options) as Promise<[boolean, `0x${string}`]>;
1765
1766
  },
1766
1767
  /**
1767
- * Simulate removeOwner
1768
+ * Simulate isValidSignature
1768
1769
  * Returns gas estimate and result without sending transaction
1769
1770
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1770
1771
  */
1771
- async removeOwner(prevOwner: `0x${string}`, owner: `0x${string}`, _threshold: bigint, options?: {
1772
+ async isValidSignature(_data: `0x${string}`, _signature: `0x${string}`, options?: {
1772
1773
  accessList?: import('viem').AccessList;
1773
1774
  authorizationList?: import('viem').AuthorizationList;
1774
1775
  chain?: import('viem').Chain | null;
@@ -1779,15 +1780,15 @@ export class GnosisSafe_json {
1779
1780
  maxPriorityFeePerGas?: bigint;
1780
1781
  nonce?: number;
1781
1782
  value?: bigint;
1782
- }): Promise<void> {
1783
- return contract.simulate.removeOwner([prevOwner, owner, _threshold] as const, options) as Promise<void>;
1783
+ }): Promise<`0x${string}`> {
1784
+ return contract.simulate.isValidSignature([_data, _signature] as const, options) as Promise<`0x${string}`>;
1784
1785
  },
1785
1786
  /**
1786
- * Simulate requiredTxGas
1787
+ * Simulate removeOwner
1787
1788
  * Returns gas estimate and result without sending transaction
1788
1789
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1789
1790
  */
1790
- async requiredTxGas(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1791
+ async removeOwner(prevOwner: `0x${string}`, owner: `0x${string}`, _threshold: bigint, options?: {
1791
1792
  accessList?: import('viem').AccessList;
1792
1793
  authorizationList?: import('viem').AuthorizationList;
1793
1794
  chain?: import('viem').Chain | null;
@@ -1798,15 +1799,15 @@ export class GnosisSafe_json {
1798
1799
  maxPriorityFeePerGas?: bigint;
1799
1800
  nonce?: number;
1800
1801
  value?: bigint;
1801
- }): Promise<bigint> {
1802
- return contract.simulate.requiredTxGas([to, value, data, operation] as const, options) as Promise<bigint>;
1802
+ }): Promise<void> {
1803
+ return contract.simulate.removeOwner([prevOwner, owner, _threshold] as const, options) as Promise<void>;
1803
1804
  },
1804
1805
  /**
1805
- * Simulate setFallbackHandler
1806
+ * Simulate requiredTxGas
1806
1807
  * Returns gas estimate and result without sending transaction
1807
1808
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1808
1809
  */
1809
- async setFallbackHandler(handler: `0x${string}`, options?: {
1810
+ async requiredTxGas(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1810
1811
  accessList?: import('viem').AccessList;
1811
1812
  authorizationList?: import('viem').AuthorizationList;
1812
1813
  chain?: import('viem').Chain | null;
@@ -1817,15 +1818,15 @@ export class GnosisSafe_json {
1817
1818
  maxPriorityFeePerGas?: bigint;
1818
1819
  nonce?: number;
1819
1820
  value?: bigint;
1820
- }): Promise<void> {
1821
- return contract.simulate.setFallbackHandler([handler] as const, options) as Promise<void>;
1821
+ }): Promise<bigint> {
1822
+ return contract.simulate.requiredTxGas([to, value, data, operation] as const, options) as Promise<bigint>;
1822
1823
  },
1823
1824
  /**
1824
- * Simulate setGuard
1825
+ * Simulate setFallbackHandler
1825
1826
  * Returns gas estimate and result without sending transaction
1826
1827
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1827
1828
  */
1828
- async setGuard(guard: `0x${string}`, options?: {
1829
+ async setFallbackHandler(handler: `0x${string}`, options?: {
1829
1830
  accessList?: import('viem').AccessList;
1830
1831
  authorizationList?: import('viem').AuthorizationList;
1831
1832
  chain?: import('viem').Chain | null;
@@ -1837,7 +1838,7 @@ export class GnosisSafe_json {
1837
1838
  nonce?: number;
1838
1839
  value?: bigint;
1839
1840
  }): Promise<void> {
1840
- return contract.simulate.setGuard([guard] as const, options) as Promise<void>;
1841
+ return contract.simulate.setFallbackHandler([handler] as const, options) as Promise<void>;
1841
1842
  },
1842
1843
  /**
1843
1844
  * Simulate setup
@@ -1859,11 +1860,11 @@ export class GnosisSafe_json {
1859
1860
  return contract.simulate.setup([_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver] as const, options) as Promise<void>;
1860
1861
  },
1861
1862
  /**
1862
- * Simulate simulateAndRevert
1863
+ * Simulate signMessage
1863
1864
  * Returns gas estimate and result without sending transaction
1864
1865
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1865
1866
  */
1866
- async simulateAndRevert(targetContract: `0x${string}`, calldataPayload: `0x${string}`, options?: {
1867
+ async signMessage(_data: `0x${string}`, options?: {
1867
1868
  accessList?: import('viem').AccessList;
1868
1869
  authorizationList?: import('viem').AuthorizationList;
1869
1870
  chain?: import('viem').Chain | null;
@@ -1875,7 +1876,7 @@ export class GnosisSafe_json {
1875
1876
  nonce?: number;
1876
1877
  value?: bigint;
1877
1878
  }): Promise<void> {
1878
- return contract.simulate.simulateAndRevert([targetContract, calldataPayload] as const, options) as Promise<void>;
1879
+ return contract.simulate.signMessage([_data] as const, options) as Promise<void>;
1879
1880
  },
1880
1881
  /**
1881
1882
  * Simulate swapOwner
@@ -1952,35 +1953,16 @@ export class GnosisSafe_json {
1952
1953
  }) as () => void;
1953
1954
  },
1954
1955
  /**
1955
- * Watch ChangedFallbackHandler events
1956
- * @param callback Function to call when event is emitted
1957
- * @param filter Optional filter for indexed parameters
1958
- * @returns Unwatch function to stop listening
1959
- */
1960
- ChangedFallbackHandler: (callback: (event: { handler: `0x${string}` }) => void) => {
1961
- return this.publicClient.watchContractEvent({
1962
- address: this.contractAddress,
1963
- abi: GnosisSafe_jsonAbi,
1964
- eventName: 'ChangedFallbackHandler',
1965
-
1966
- onLogs: (logs: any[]) => {
1967
- logs.forEach((log: any) => {
1968
- callback(log.args as any);
1969
- });
1970
- },
1971
- }) as () => void;
1972
- },
1973
- /**
1974
- * Watch ChangedGuard events
1956
+ * Watch ChangedMasterCopy events
1975
1957
  * @param callback Function to call when event is emitted
1976
1958
  * @param filter Optional filter for indexed parameters
1977
1959
  * @returns Unwatch function to stop listening
1978
1960
  */
1979
- ChangedGuard: (callback: (event: { guard: `0x${string}` }) => void) => {
1961
+ ChangedMasterCopy: (callback: (event: { masterCopy: `0x${string}` }) => void) => {
1980
1962
  return this.publicClient.watchContractEvent({
1981
1963
  address: this.contractAddress,
1982
1964
  abi: GnosisSafe_jsonAbi,
1983
- eventName: 'ChangedGuard',
1965
+ eventName: 'ChangedMasterCopy',
1984
1966
 
1985
1967
  onLogs: (logs: any[]) => {
1986
1968
  logs.forEach((log: any) => {
@@ -2141,44 +2123,6 @@ export class GnosisSafe_json {
2141
2123
  },
2142
2124
  }) as () => void;
2143
2125
  },
2144
- /**
2145
- * Watch SafeReceived events
2146
- * @param callback Function to call when event is emitted
2147
- * @param filter Optional filter for indexed parameters
2148
- * @returns Unwatch function to stop listening
2149
- */
2150
- SafeReceived: (callback: (event: { sender: `0x${string}`; value: bigint }) => void, filter?: { sender: `0x${string}` }) => {
2151
- return this.publicClient.watchContractEvent({
2152
- address: this.contractAddress,
2153
- abi: GnosisSafe_jsonAbi,
2154
- eventName: 'SafeReceived',
2155
- args: filter,
2156
- onLogs: (logs: any[]) => {
2157
- logs.forEach((log: any) => {
2158
- callback(log.args as any);
2159
- });
2160
- },
2161
- }) as () => void;
2162
- },
2163
- /**
2164
- * Watch SafeSetup events
2165
- * @param callback Function to call when event is emitted
2166
- * @param filter Optional filter for indexed parameters
2167
- * @returns Unwatch function to stop listening
2168
- */
2169
- SafeSetup: (callback: (event: { initiator: `0x${string}`; owners: `0x${string}`[]; threshold: bigint; initializer: `0x${string}`; fallbackHandler: `0x${string}` }) => void, filter?: { initiator: `0x${string}` }) => {
2170
- return this.publicClient.watchContractEvent({
2171
- address: this.contractAddress,
2172
- abi: GnosisSafe_jsonAbi,
2173
- eventName: 'SafeSetup',
2174
- args: filter,
2175
- onLogs: (logs: any[]) => {
2176
- logs.forEach((log: any) => {
2177
- callback(log.args as any);
2178
- });
2179
- },
2180
- }) as () => void;
2181
- },
2182
2126
  /**
2183
2127
  * Watch SignMsg events
2184
2128
  * @param callback Function to call when event is emitted