@gitmyabi/gnosissafe 1.0.12 → 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.
@@ -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
  ],
563
- "stateMutability": "payable",
494
+ "payable": false,
495
+ "stateMutability": "nonpayable",
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,18 +731,20 @@ 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
742
  "internalType": "address",
799
- "name": "module",
743
+ "name": "owner",
800
744
  "type": "address"
801
745
  }
802
746
  ],
803
- "name": "isModuleEnabled",
747
+ "name": "isOwner",
804
748
  "outputs": [
805
749
  {
806
750
  "internalType": "bool",
@@ -808,29 +752,38 @@ 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": false,
815
761
  "inputs": [
816
762
  {
817
- "internalType": "address",
818
- "name": "owner",
819
- "type": "address"
763
+ "internalType": "bytes",
764
+ "name": "_data",
765
+ "type": "bytes"
766
+ },
767
+ {
768
+ "internalType": "bytes",
769
+ "name": "_signature",
770
+ "type": "bytes"
820
771
  }
821
772
  ],
822
- "name": "isOwner",
773
+ "name": "isValidSignature",
823
774
  "outputs": [
824
775
  {
825
- "internalType": "bool",
776
+ "internalType": "bytes4",
826
777
  "name": "",
827
- "type": "bool"
778
+ "type": "bytes4"
828
779
  }
829
780
  ],
830
- "stateMutability": "view",
781
+ "payable": false,
782
+ "stateMutability": "nonpayable",
831
783
  "type": "function"
832
784
  },
833
785
  {
786
+ "constant": true,
834
787
  "inputs": [],
835
788
  "name": "nonce",
836
789
  "outputs": [
@@ -840,10 +793,12 @@ export const GnosisSafe_jsonAbi = [
840
793
  "type": "uint256"
841
794
  }
842
795
  ],
796
+ "payable": false,
843
797
  "stateMutability": "view",
844
798
  "type": "function"
845
799
  },
846
800
  {
801
+ "constant": false,
847
802
  "inputs": [
848
803
  {
849
804
  "internalType": "address",
@@ -863,10 +818,12 @@ export const GnosisSafe_jsonAbi = [
863
818
  ],
864
819
  "name": "removeOwner",
865
820
  "outputs": [],
821
+ "payable": false,
866
822
  "stateMutability": "nonpayable",
867
823
  "type": "function"
868
824
  },
869
825
  {
826
+ "constant": false,
870
827
  "inputs": [
871
828
  {
872
829
  "internalType": "address",
@@ -897,10 +854,12 @@ export const GnosisSafe_jsonAbi = [
897
854
  "type": "uint256"
898
855
  }
899
856
  ],
857
+ "payable": false,
900
858
  "stateMutability": "nonpayable",
901
859
  "type": "function"
902
860
  },
903
861
  {
862
+ "constant": false,
904
863
  "inputs": [
905
864
  {
906
865
  "internalType": "address",
@@ -910,23 +869,12 @@ export const GnosisSafe_jsonAbi = [
910
869
  ],
911
870
  "name": "setFallbackHandler",
912
871
  "outputs": [],
872
+ "payable": false,
913
873
  "stateMutability": "nonpayable",
914
874
  "type": "function"
915
875
  },
916
876
  {
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
- {
877
+ "constant": false,
930
878
  "inputs": [
931
879
  {
932
880
  "internalType": "address[]",
@@ -971,10 +919,27 @@ export const GnosisSafe_jsonAbi = [
971
919
  ],
972
920
  "name": "setup",
973
921
  "outputs": [],
922
+ "payable": false,
923
+ "stateMutability": "nonpayable",
924
+ "type": "function"
925
+ },
926
+ {
927
+ "constant": false,
928
+ "inputs": [
929
+ {
930
+ "internalType": "bytes",
931
+ "name": "_data",
932
+ "type": "bytes"
933
+ }
934
+ ],
935
+ "name": "signMessage",
936
+ "outputs": [],
937
+ "payable": false,
974
938
  "stateMutability": "nonpayable",
975
939
  "type": "function"
976
940
  },
977
941
  {
942
+ "constant": true,
978
943
  "inputs": [
979
944
  {
980
945
  "internalType": "bytes32",
@@ -990,28 +955,12 @@ export const GnosisSafe_jsonAbi = [
990
955
  "type": "uint256"
991
956
  }
992
957
  ],
958
+ "payable": false,
993
959
  "stateMutability": "view",
994
960
  "type": "function"
995
961
  },
996
962
  {
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
- {
963
+ "constant": false,
1015
964
  "inputs": [
1016
965
  {
1017
966
  "internalType": "address",
@@ -1031,12 +980,9 @@ export const GnosisSafe_jsonAbi = [
1031
980
  ],
1032
981
  "name": "swapOwner",
1033
982
  "outputs": [],
983
+ "payable": false,
1034
984
  "stateMutability": "nonpayable",
1035
985
  "type": "function"
1036
- },
1037
- {
1038
- "stateMutability": "payable",
1039
- "type": "receive"
1040
986
  }
1041
987
  ] as const satisfies Abi;
1042
988
 
@@ -1122,6 +1068,14 @@ export class GnosisSafe_json {
1122
1068
  return this.contract;
1123
1069
  }
1124
1070
 
1071
+ /**
1072
+ * NAME
1073
+ * view
1074
+ */
1075
+ async NAME(): Promise<string> {
1076
+ return this.contract.read.NAME() as Promise<string>;
1077
+ }
1078
+
1125
1079
  /**
1126
1080
  * VERSION
1127
1081
  * view
@@ -1138,22 +1092,6 @@ export class GnosisSafe_json {
1138
1092
  return this.contract.read.approvedHashes([arg0, arg1] as const) as Promise<bigint>;
1139
1093
  }
1140
1094
 
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
1095
  /**
1158
1096
  * domainSeparator
1159
1097
  * view
@@ -1171,11 +1109,19 @@ export class GnosisSafe_json {
1171
1109
  }
1172
1110
 
1173
1111
  /**
1174
- * getChainId
1112
+ * getMessageHash
1113
+ * view
1114
+ */
1115
+ async getMessageHash(message: `0x${string}`): Promise<`0x${string}`> {
1116
+ return this.contract.read.getMessageHash([message] as const) as Promise<`0x${string}`>;
1117
+ }
1118
+
1119
+ /**
1120
+ * getModules
1175
1121
  * view
1176
1122
  */
1177
- async getChainId(): Promise<bigint> {
1178
- return this.contract.read.getChainId() as Promise<bigint>;
1123
+ async getModules(): Promise<`0x${string}`[]> {
1124
+ return this.contract.read.getModules() as Promise<`0x${string}`[]>;
1179
1125
  }
1180
1126
 
1181
1127
  /**
@@ -1194,14 +1140,6 @@ export class GnosisSafe_json {
1194
1140
  return this.contract.read.getOwners() as Promise<`0x${string}`[]>;
1195
1141
  }
1196
1142
 
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
1143
  /**
1206
1144
  * getThreshold
1207
1145
  * view
@@ -1218,14 +1156,6 @@ export class GnosisSafe_json {
1218
1156
  return this.contract.read.getTransactionHash([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce] as const) as Promise<`0x${string}`>;
1219
1157
  }
1220
1158
 
1221
- /**
1222
- * isModuleEnabled
1223
- * view
1224
- */
1225
- async isModuleEnabled(module: `0x${string}`): Promise<boolean> {
1226
- return this.contract.read.isModuleEnabled([module] as const) as Promise<boolean>;
1227
- }
1228
-
1229
1159
  /**
1230
1160
  * isOwner
1231
1161
  * view
@@ -1296,6 +1226,29 @@ export class GnosisSafe_json {
1296
1226
  return this.contract.write.approveHash([hashToApprove] as const, options) as Promise<`0x${string}`>;
1297
1227
  }
1298
1228
 
1229
+ /**
1230
+ * changeMasterCopy
1231
+ * nonpayable
1232
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1233
+ */
1234
+ async changeMasterCopy(_masterCopy: `0x${string}`, options?: {
1235
+ accessList?: import('viem').AccessList;
1236
+ authorizationList?: import('viem').AuthorizationList;
1237
+ chain?: import('viem').Chain | null;
1238
+ dataSuffix?: `0x${string}`;
1239
+ gas?: bigint;
1240
+ gasPrice?: bigint;
1241
+ maxFeePerGas?: bigint;
1242
+ maxPriorityFeePerGas?: bigint;
1243
+ nonce?: number;
1244
+ value?: bigint;
1245
+ }): Promise<`0x${string}`> {
1246
+ if (!this.contract.write) {
1247
+ throw new Error('Wallet client is required for write operations');
1248
+ }
1249
+ return this.contract.write.changeMasterCopy([_masterCopy] as const, options) as Promise<`0x${string}`>;
1250
+ }
1251
+
1299
1252
  /**
1300
1253
  * changeThreshold
1301
1254
  * nonpayable
@@ -1367,7 +1320,7 @@ export class GnosisSafe_json {
1367
1320
 
1368
1321
  /**
1369
1322
  * execTransaction
1370
- * payable
1323
+ * nonpayable
1371
1324
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1372
1325
  */
1373
1326
  async execTransaction(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, safeTxGas: bigint, baseGas: bigint, gasPrice: bigint, gasToken: `0x${string}`, refundReceiver: `0x${string}`, signatures: `0x${string}`, options?: {
@@ -1435,11 +1388,11 @@ export class GnosisSafe_json {
1435
1388
  }
1436
1389
 
1437
1390
  /**
1438
- * removeOwner
1391
+ * isValidSignature
1439
1392
  * nonpayable
1440
1393
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1441
1394
  */
1442
- async removeOwner(prevOwner: `0x${string}`, owner: `0x${string}`, _threshold: bigint, options?: {
1395
+ async isValidSignature(_data: `0x${string}`, _signature: `0x${string}`, options?: {
1443
1396
  accessList?: import('viem').AccessList;
1444
1397
  authorizationList?: import('viem').AuthorizationList;
1445
1398
  chain?: import('viem').Chain | null;
@@ -1454,15 +1407,15 @@ export class GnosisSafe_json {
1454
1407
  if (!this.contract.write) {
1455
1408
  throw new Error('Wallet client is required for write operations');
1456
1409
  }
1457
- return this.contract.write.removeOwner([prevOwner, owner, _threshold] as const, options) as Promise<`0x${string}`>;
1410
+ return this.contract.write.isValidSignature([_data, _signature] as const, options) as Promise<`0x${string}`>;
1458
1411
  }
1459
1412
 
1460
1413
  /**
1461
- * requiredTxGas
1414
+ * removeOwner
1462
1415
  * nonpayable
1463
1416
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1464
1417
  */
1465
- async requiredTxGas(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1418
+ async removeOwner(prevOwner: `0x${string}`, owner: `0x${string}`, _threshold: bigint, options?: {
1466
1419
  accessList?: import('viem').AccessList;
1467
1420
  authorizationList?: import('viem').AuthorizationList;
1468
1421
  chain?: import('viem').Chain | null;
@@ -1477,15 +1430,15 @@ export class GnosisSafe_json {
1477
1430
  if (!this.contract.write) {
1478
1431
  throw new Error('Wallet client is required for write operations');
1479
1432
  }
1480
- return this.contract.write.requiredTxGas([to, value, data, operation] as const, options) as Promise<`0x${string}`>;
1433
+ return this.contract.write.removeOwner([prevOwner, owner, _threshold] as const, options) as Promise<`0x${string}`>;
1481
1434
  }
1482
1435
 
1483
1436
  /**
1484
- * setFallbackHandler
1437
+ * requiredTxGas
1485
1438
  * nonpayable
1486
1439
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1487
1440
  */
1488
- async setFallbackHandler(handler: `0x${string}`, options?: {
1441
+ async requiredTxGas(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1489
1442
  accessList?: import('viem').AccessList;
1490
1443
  authorizationList?: import('viem').AuthorizationList;
1491
1444
  chain?: import('viem').Chain | null;
@@ -1500,15 +1453,15 @@ export class GnosisSafe_json {
1500
1453
  if (!this.contract.write) {
1501
1454
  throw new Error('Wallet client is required for write operations');
1502
1455
  }
1503
- return this.contract.write.setFallbackHandler([handler] as const, options) as Promise<`0x${string}`>;
1456
+ return this.contract.write.requiredTxGas([to, value, data, operation] as const, options) as Promise<`0x${string}`>;
1504
1457
  }
1505
1458
 
1506
1459
  /**
1507
- * setGuard
1460
+ * setFallbackHandler
1508
1461
  * nonpayable
1509
1462
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1510
1463
  */
1511
- async setGuard(guard: `0x${string}`, options?: {
1464
+ async setFallbackHandler(handler: `0x${string}`, options?: {
1512
1465
  accessList?: import('viem').AccessList;
1513
1466
  authorizationList?: import('viem').AuthorizationList;
1514
1467
  chain?: import('viem').Chain | null;
@@ -1523,7 +1476,7 @@ export class GnosisSafe_json {
1523
1476
  if (!this.contract.write) {
1524
1477
  throw new Error('Wallet client is required for write operations');
1525
1478
  }
1526
- return this.contract.write.setGuard([guard] as const, options) as Promise<`0x${string}`>;
1479
+ return this.contract.write.setFallbackHandler([handler] as const, options) as Promise<`0x${string}`>;
1527
1480
  }
1528
1481
 
1529
1482
  /**
@@ -1550,11 +1503,11 @@ export class GnosisSafe_json {
1550
1503
  }
1551
1504
 
1552
1505
  /**
1553
- * simulateAndRevert
1506
+ * signMessage
1554
1507
  * nonpayable
1555
1508
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1556
1509
  */
1557
- async simulateAndRevert(targetContract: `0x${string}`, calldataPayload: `0x${string}`, options?: {
1510
+ async signMessage(_data: `0x${string}`, options?: {
1558
1511
  accessList?: import('viem').AccessList;
1559
1512
  authorizationList?: import('viem').AuthorizationList;
1560
1513
  chain?: import('viem').Chain | null;
@@ -1569,7 +1522,7 @@ export class GnosisSafe_json {
1569
1522
  if (!this.contract.write) {
1570
1523
  throw new Error('Wallet client is required for write operations');
1571
1524
  }
1572
- return this.contract.write.simulateAndRevert([targetContract, calldataPayload] as const, options) as Promise<`0x${string}`>;
1525
+ return this.contract.write.signMessage([_data] as const, options) as Promise<`0x${string}`>;
1573
1526
  }
1574
1527
 
1575
1528
  /**
@@ -1649,6 +1602,25 @@ export class GnosisSafe_json {
1649
1602
  }): Promise<void> {
1650
1603
  return contract.simulate.approveHash([hashToApprove] as const, options) as Promise<void>;
1651
1604
  },
1605
+ /**
1606
+ * Simulate changeMasterCopy
1607
+ * Returns gas estimate and result without sending transaction
1608
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1609
+ */
1610
+ async changeMasterCopy(_masterCopy: `0x${string}`, options?: {
1611
+ accessList?: import('viem').AccessList;
1612
+ authorizationList?: import('viem').AuthorizationList;
1613
+ chain?: import('viem').Chain | null;
1614
+ dataSuffix?: `0x${string}`;
1615
+ gas?: bigint;
1616
+ gasPrice?: bigint;
1617
+ maxFeePerGas?: bigint;
1618
+ maxPriorityFeePerGas?: bigint;
1619
+ nonce?: number;
1620
+ value?: bigint;
1621
+ }): Promise<void> {
1622
+ return contract.simulate.changeMasterCopy([_masterCopy] as const, options) as Promise<void>;
1623
+ },
1652
1624
  /**
1653
1625
  * Simulate changeThreshold
1654
1626
  * Returns gas estimate and result without sending transaction
@@ -1764,11 +1736,11 @@ export class GnosisSafe_json {
1764
1736
  return contract.simulate.execTransactionFromModuleReturnData([to, value, data, operation] as const, options) as Promise<[boolean, `0x${string}`]>;
1765
1737
  },
1766
1738
  /**
1767
- * Simulate removeOwner
1739
+ * Simulate isValidSignature
1768
1740
  * Returns gas estimate and result without sending transaction
1769
1741
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1770
1742
  */
1771
- async removeOwner(prevOwner: `0x${string}`, owner: `0x${string}`, _threshold: bigint, options?: {
1743
+ async isValidSignature(_data: `0x${string}`, _signature: `0x${string}`, options?: {
1772
1744
  accessList?: import('viem').AccessList;
1773
1745
  authorizationList?: import('viem').AuthorizationList;
1774
1746
  chain?: import('viem').Chain | null;
@@ -1779,15 +1751,15 @@ export class GnosisSafe_json {
1779
1751
  maxPriorityFeePerGas?: bigint;
1780
1752
  nonce?: number;
1781
1753
  value?: bigint;
1782
- }): Promise<void> {
1783
- return contract.simulate.removeOwner([prevOwner, owner, _threshold] as const, options) as Promise<void>;
1754
+ }): Promise<`0x${string}`> {
1755
+ return contract.simulate.isValidSignature([_data, _signature] as const, options) as Promise<`0x${string}`>;
1784
1756
  },
1785
1757
  /**
1786
- * Simulate requiredTxGas
1758
+ * Simulate removeOwner
1787
1759
  * Returns gas estimate and result without sending transaction
1788
1760
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1789
1761
  */
1790
- async requiredTxGas(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1762
+ async removeOwner(prevOwner: `0x${string}`, owner: `0x${string}`, _threshold: bigint, options?: {
1791
1763
  accessList?: import('viem').AccessList;
1792
1764
  authorizationList?: import('viem').AuthorizationList;
1793
1765
  chain?: import('viem').Chain | null;
@@ -1798,15 +1770,15 @@ export class GnosisSafe_json {
1798
1770
  maxPriorityFeePerGas?: bigint;
1799
1771
  nonce?: number;
1800
1772
  value?: bigint;
1801
- }): Promise<bigint> {
1802
- return contract.simulate.requiredTxGas([to, value, data, operation] as const, options) as Promise<bigint>;
1773
+ }): Promise<void> {
1774
+ return contract.simulate.removeOwner([prevOwner, owner, _threshold] as const, options) as Promise<void>;
1803
1775
  },
1804
1776
  /**
1805
- * Simulate setFallbackHandler
1777
+ * Simulate requiredTxGas
1806
1778
  * Returns gas estimate and result without sending transaction
1807
1779
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1808
1780
  */
1809
- async setFallbackHandler(handler: `0x${string}`, options?: {
1781
+ async requiredTxGas(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1810
1782
  accessList?: import('viem').AccessList;
1811
1783
  authorizationList?: import('viem').AuthorizationList;
1812
1784
  chain?: import('viem').Chain | null;
@@ -1817,15 +1789,15 @@ export class GnosisSafe_json {
1817
1789
  maxPriorityFeePerGas?: bigint;
1818
1790
  nonce?: number;
1819
1791
  value?: bigint;
1820
- }): Promise<void> {
1821
- return contract.simulate.setFallbackHandler([handler] as const, options) as Promise<void>;
1792
+ }): Promise<bigint> {
1793
+ return contract.simulate.requiredTxGas([to, value, data, operation] as const, options) as Promise<bigint>;
1822
1794
  },
1823
1795
  /**
1824
- * Simulate setGuard
1796
+ * Simulate setFallbackHandler
1825
1797
  * Returns gas estimate and result without sending transaction
1826
1798
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1827
1799
  */
1828
- async setGuard(guard: `0x${string}`, options?: {
1800
+ async setFallbackHandler(handler: `0x${string}`, options?: {
1829
1801
  accessList?: import('viem').AccessList;
1830
1802
  authorizationList?: import('viem').AuthorizationList;
1831
1803
  chain?: import('viem').Chain | null;
@@ -1837,7 +1809,7 @@ export class GnosisSafe_json {
1837
1809
  nonce?: number;
1838
1810
  value?: bigint;
1839
1811
  }): Promise<void> {
1840
- return contract.simulate.setGuard([guard] as const, options) as Promise<void>;
1812
+ return contract.simulate.setFallbackHandler([handler] as const, options) as Promise<void>;
1841
1813
  },
1842
1814
  /**
1843
1815
  * Simulate setup
@@ -1859,11 +1831,11 @@ export class GnosisSafe_json {
1859
1831
  return contract.simulate.setup([_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver] as const, options) as Promise<void>;
1860
1832
  },
1861
1833
  /**
1862
- * Simulate simulateAndRevert
1834
+ * Simulate signMessage
1863
1835
  * Returns gas estimate and result without sending transaction
1864
1836
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1865
1837
  */
1866
- async simulateAndRevert(targetContract: `0x${string}`, calldataPayload: `0x${string}`, options?: {
1838
+ async signMessage(_data: `0x${string}`, options?: {
1867
1839
  accessList?: import('viem').AccessList;
1868
1840
  authorizationList?: import('viem').AuthorizationList;
1869
1841
  chain?: import('viem').Chain | null;
@@ -1875,7 +1847,7 @@ export class GnosisSafe_json {
1875
1847
  nonce?: number;
1876
1848
  value?: bigint;
1877
1849
  }): Promise<void> {
1878
- return contract.simulate.simulateAndRevert([targetContract, calldataPayload] as const, options) as Promise<void>;
1850
+ return contract.simulate.signMessage([_data] as const, options) as Promise<void>;
1879
1851
  },
1880
1852
  /**
1881
1853
  * Simulate swapOwner
@@ -1952,35 +1924,16 @@ export class GnosisSafe_json {
1952
1924
  }) as () => void;
1953
1925
  },
1954
1926
  /**
1955
- * Watch ChangedFallbackHandler events
1927
+ * Watch ChangedMasterCopy events
1956
1928
  * @param callback Function to call when event is emitted
1957
1929
  * @param filter Optional filter for indexed parameters
1958
1930
  * @returns Unwatch function to stop listening
1959
1931
  */
1960
- ChangedFallbackHandler: (callback: (event: { handler: `0x${string}` }) => void) => {
1932
+ ChangedMasterCopy: (callback: (event: { masterCopy: `0x${string}` }) => void) => {
1961
1933
  return this.publicClient.watchContractEvent({
1962
1934
  address: this.contractAddress,
1963
1935
  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
1975
- * @param callback Function to call when event is emitted
1976
- * @param filter Optional filter for indexed parameters
1977
- * @returns Unwatch function to stop listening
1978
- */
1979
- ChangedGuard: (callback: (event: { guard: `0x${string}` }) => void) => {
1980
- return this.publicClient.watchContractEvent({
1981
- address: this.contractAddress,
1982
- abi: GnosisSafe_jsonAbi,
1983
- eventName: 'ChangedGuard',
1936
+ eventName: 'ChangedMasterCopy',
1984
1937
 
1985
1938
  onLogs: (logs: any[]) => {
1986
1939
  logs.forEach((log: any) => {
@@ -2141,44 +2094,6 @@ export class GnosisSafe_json {
2141
2094
  },
2142
2095
  }) as () => void;
2143
2096
  },
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
2097
  /**
2183
2098
  * Watch SignMsg events
2184
2099
  * @param callback Function to call when event is emitted