@gitmyabi/gnosissafe 1.0.0

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.
@@ -0,0 +1,1632 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * GnosisSafe_json ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const GnosisSafe_jsonAbi: readonly [{
8
+ readonly inputs: readonly [];
9
+ readonly stateMutability: "nonpayable";
10
+ readonly type: "constructor";
11
+ }, {
12
+ readonly anonymous: false;
13
+ readonly inputs: readonly [{
14
+ readonly indexed: false;
15
+ readonly internalType: "address";
16
+ readonly name: "owner";
17
+ readonly type: "address";
18
+ }];
19
+ readonly name: "AddedOwner";
20
+ readonly type: "event";
21
+ }, {
22
+ readonly anonymous: false;
23
+ readonly inputs: readonly [{
24
+ readonly indexed: true;
25
+ readonly internalType: "bytes32";
26
+ readonly name: "approvedHash";
27
+ readonly type: "bytes32";
28
+ }, {
29
+ readonly indexed: true;
30
+ readonly internalType: "address";
31
+ readonly name: "owner";
32
+ readonly type: "address";
33
+ }];
34
+ readonly name: "ApproveHash";
35
+ readonly type: "event";
36
+ }, {
37
+ readonly anonymous: false;
38
+ readonly inputs: readonly [{
39
+ readonly indexed: false;
40
+ readonly internalType: "address";
41
+ readonly name: "handler";
42
+ readonly type: "address";
43
+ }];
44
+ readonly name: "ChangedFallbackHandler";
45
+ readonly type: "event";
46
+ }, {
47
+ readonly anonymous: false;
48
+ readonly inputs: readonly [{
49
+ readonly indexed: false;
50
+ readonly internalType: "address";
51
+ readonly name: "guard";
52
+ readonly type: "address";
53
+ }];
54
+ readonly name: "ChangedGuard";
55
+ readonly type: "event";
56
+ }, {
57
+ readonly anonymous: false;
58
+ readonly inputs: readonly [{
59
+ readonly indexed: false;
60
+ readonly internalType: "uint256";
61
+ readonly name: "threshold";
62
+ readonly type: "uint256";
63
+ }];
64
+ readonly name: "ChangedThreshold";
65
+ readonly type: "event";
66
+ }, {
67
+ readonly anonymous: false;
68
+ readonly inputs: readonly [{
69
+ readonly indexed: false;
70
+ readonly internalType: "address";
71
+ readonly name: "module";
72
+ readonly type: "address";
73
+ }];
74
+ readonly name: "DisabledModule";
75
+ readonly type: "event";
76
+ }, {
77
+ readonly anonymous: false;
78
+ readonly inputs: readonly [{
79
+ readonly indexed: false;
80
+ readonly internalType: "address";
81
+ readonly name: "module";
82
+ readonly type: "address";
83
+ }];
84
+ readonly name: "EnabledModule";
85
+ readonly type: "event";
86
+ }, {
87
+ readonly anonymous: false;
88
+ readonly inputs: readonly [{
89
+ readonly indexed: false;
90
+ readonly internalType: "bytes32";
91
+ readonly name: "txHash";
92
+ readonly type: "bytes32";
93
+ }, {
94
+ readonly indexed: false;
95
+ readonly internalType: "uint256";
96
+ readonly name: "payment";
97
+ readonly type: "uint256";
98
+ }];
99
+ readonly name: "ExecutionFailure";
100
+ readonly type: "event";
101
+ }, {
102
+ readonly anonymous: false;
103
+ readonly inputs: readonly [{
104
+ readonly indexed: true;
105
+ readonly internalType: "address";
106
+ readonly name: "module";
107
+ readonly type: "address";
108
+ }];
109
+ readonly name: "ExecutionFromModuleFailure";
110
+ readonly type: "event";
111
+ }, {
112
+ readonly anonymous: false;
113
+ readonly inputs: readonly [{
114
+ readonly indexed: true;
115
+ readonly internalType: "address";
116
+ readonly name: "module";
117
+ readonly type: "address";
118
+ }];
119
+ readonly name: "ExecutionFromModuleSuccess";
120
+ readonly type: "event";
121
+ }, {
122
+ readonly anonymous: false;
123
+ readonly inputs: readonly [{
124
+ readonly indexed: false;
125
+ readonly internalType: "bytes32";
126
+ readonly name: "txHash";
127
+ readonly type: "bytes32";
128
+ }, {
129
+ readonly indexed: false;
130
+ readonly internalType: "uint256";
131
+ readonly name: "payment";
132
+ readonly type: "uint256";
133
+ }];
134
+ readonly name: "ExecutionSuccess";
135
+ readonly type: "event";
136
+ }, {
137
+ readonly anonymous: false;
138
+ readonly inputs: readonly [{
139
+ readonly indexed: false;
140
+ readonly internalType: "address";
141
+ readonly name: "owner";
142
+ readonly type: "address";
143
+ }];
144
+ readonly name: "RemovedOwner";
145
+ readonly type: "event";
146
+ }, {
147
+ readonly anonymous: false;
148
+ readonly inputs: readonly [{
149
+ readonly indexed: true;
150
+ readonly internalType: "address";
151
+ readonly name: "sender";
152
+ readonly type: "address";
153
+ }, {
154
+ readonly indexed: false;
155
+ readonly internalType: "uint256";
156
+ readonly name: "value";
157
+ readonly type: "uint256";
158
+ }];
159
+ readonly name: "SafeReceived";
160
+ readonly type: "event";
161
+ }, {
162
+ readonly anonymous: false;
163
+ readonly inputs: readonly [{
164
+ readonly indexed: true;
165
+ readonly internalType: "address";
166
+ readonly name: "initiator";
167
+ readonly type: "address";
168
+ }, {
169
+ readonly indexed: false;
170
+ readonly internalType: "address[]";
171
+ readonly name: "owners";
172
+ readonly type: "address[]";
173
+ }, {
174
+ readonly indexed: false;
175
+ readonly internalType: "uint256";
176
+ readonly name: "threshold";
177
+ readonly type: "uint256";
178
+ }, {
179
+ readonly indexed: false;
180
+ readonly internalType: "address";
181
+ readonly name: "initializer";
182
+ readonly type: "address";
183
+ }, {
184
+ readonly indexed: false;
185
+ readonly internalType: "address";
186
+ readonly name: "fallbackHandler";
187
+ readonly type: "address";
188
+ }];
189
+ readonly name: "SafeSetup";
190
+ readonly type: "event";
191
+ }, {
192
+ readonly anonymous: false;
193
+ readonly inputs: readonly [{
194
+ readonly indexed: true;
195
+ readonly internalType: "bytes32";
196
+ readonly name: "msgHash";
197
+ readonly type: "bytes32";
198
+ }];
199
+ readonly name: "SignMsg";
200
+ readonly type: "event";
201
+ }, {
202
+ readonly stateMutability: "nonpayable";
203
+ readonly type: "fallback";
204
+ }, {
205
+ readonly inputs: readonly [];
206
+ readonly name: "VERSION";
207
+ readonly outputs: readonly [{
208
+ readonly internalType: "string";
209
+ readonly name: "";
210
+ readonly type: "string";
211
+ }];
212
+ readonly stateMutability: "view";
213
+ readonly type: "function";
214
+ }, {
215
+ readonly inputs: readonly [{
216
+ readonly internalType: "address";
217
+ readonly name: "owner";
218
+ readonly type: "address";
219
+ }, {
220
+ readonly internalType: "uint256";
221
+ readonly name: "_threshold";
222
+ readonly type: "uint256";
223
+ }];
224
+ readonly name: "addOwnerWithThreshold";
225
+ readonly outputs: readonly [];
226
+ readonly stateMutability: "nonpayable";
227
+ readonly type: "function";
228
+ }, {
229
+ readonly inputs: readonly [{
230
+ readonly internalType: "bytes32";
231
+ readonly name: "hashToApprove";
232
+ readonly type: "bytes32";
233
+ }];
234
+ readonly name: "approveHash";
235
+ readonly outputs: readonly [];
236
+ readonly stateMutability: "nonpayable";
237
+ readonly type: "function";
238
+ }, {
239
+ readonly inputs: readonly [{
240
+ readonly internalType: "address";
241
+ readonly name: "";
242
+ readonly type: "address";
243
+ }, {
244
+ readonly internalType: "bytes32";
245
+ readonly name: "";
246
+ readonly type: "bytes32";
247
+ }];
248
+ readonly name: "approvedHashes";
249
+ readonly outputs: readonly [{
250
+ readonly internalType: "uint256";
251
+ readonly name: "";
252
+ readonly type: "uint256";
253
+ }];
254
+ readonly stateMutability: "view";
255
+ readonly type: "function";
256
+ }, {
257
+ readonly inputs: readonly [{
258
+ readonly internalType: "uint256";
259
+ readonly name: "_threshold";
260
+ readonly type: "uint256";
261
+ }];
262
+ readonly name: "changeThreshold";
263
+ readonly outputs: readonly [];
264
+ readonly stateMutability: "nonpayable";
265
+ readonly type: "function";
266
+ }, {
267
+ readonly inputs: readonly [{
268
+ readonly internalType: "bytes32";
269
+ readonly name: "dataHash";
270
+ readonly type: "bytes32";
271
+ }, {
272
+ readonly internalType: "bytes";
273
+ readonly name: "data";
274
+ readonly type: "bytes";
275
+ }, {
276
+ readonly internalType: "bytes";
277
+ readonly name: "signatures";
278
+ readonly type: "bytes";
279
+ }, {
280
+ readonly internalType: "uint256";
281
+ readonly name: "requiredSignatures";
282
+ readonly type: "uint256";
283
+ }];
284
+ readonly name: "checkNSignatures";
285
+ readonly outputs: readonly [];
286
+ readonly stateMutability: "view";
287
+ readonly type: "function";
288
+ }, {
289
+ readonly inputs: readonly [{
290
+ readonly internalType: "bytes32";
291
+ readonly name: "dataHash";
292
+ readonly type: "bytes32";
293
+ }, {
294
+ readonly internalType: "bytes";
295
+ readonly name: "data";
296
+ readonly type: "bytes";
297
+ }, {
298
+ readonly internalType: "bytes";
299
+ readonly name: "signatures";
300
+ readonly type: "bytes";
301
+ }];
302
+ readonly name: "checkSignatures";
303
+ readonly outputs: readonly [];
304
+ readonly stateMutability: "view";
305
+ readonly type: "function";
306
+ }, {
307
+ readonly inputs: readonly [{
308
+ readonly internalType: "address";
309
+ readonly name: "prevModule";
310
+ readonly type: "address";
311
+ }, {
312
+ readonly internalType: "address";
313
+ readonly name: "module";
314
+ readonly type: "address";
315
+ }];
316
+ readonly name: "disableModule";
317
+ readonly outputs: readonly [];
318
+ readonly stateMutability: "nonpayable";
319
+ readonly type: "function";
320
+ }, {
321
+ readonly inputs: readonly [];
322
+ readonly name: "domainSeparator";
323
+ readonly outputs: readonly [{
324
+ readonly internalType: "bytes32";
325
+ readonly name: "";
326
+ readonly type: "bytes32";
327
+ }];
328
+ readonly stateMutability: "view";
329
+ readonly type: "function";
330
+ }, {
331
+ readonly inputs: readonly [{
332
+ readonly internalType: "address";
333
+ readonly name: "module";
334
+ readonly type: "address";
335
+ }];
336
+ readonly name: "enableModule";
337
+ readonly outputs: readonly [];
338
+ readonly stateMutability: "nonpayable";
339
+ readonly type: "function";
340
+ }, {
341
+ readonly inputs: readonly [{
342
+ readonly internalType: "address";
343
+ readonly name: "to";
344
+ readonly type: "address";
345
+ }, {
346
+ readonly internalType: "uint256";
347
+ readonly name: "value";
348
+ readonly type: "uint256";
349
+ }, {
350
+ readonly internalType: "bytes";
351
+ readonly name: "data";
352
+ readonly type: "bytes";
353
+ }, {
354
+ readonly internalType: "enum Enum.Operation";
355
+ readonly name: "operation";
356
+ readonly type: "uint8";
357
+ }, {
358
+ readonly internalType: "uint256";
359
+ readonly name: "safeTxGas";
360
+ readonly type: "uint256";
361
+ }, {
362
+ readonly internalType: "uint256";
363
+ readonly name: "baseGas";
364
+ readonly type: "uint256";
365
+ }, {
366
+ readonly internalType: "uint256";
367
+ readonly name: "gasPrice";
368
+ readonly type: "uint256";
369
+ }, {
370
+ readonly internalType: "address";
371
+ readonly name: "gasToken";
372
+ readonly type: "address";
373
+ }, {
374
+ readonly internalType: "address";
375
+ readonly name: "refundReceiver";
376
+ readonly type: "address";
377
+ }, {
378
+ readonly internalType: "uint256";
379
+ readonly name: "_nonce";
380
+ readonly type: "uint256";
381
+ }];
382
+ readonly name: "encodeTransactionData";
383
+ readonly outputs: readonly [{
384
+ readonly internalType: "bytes";
385
+ readonly name: "";
386
+ readonly type: "bytes";
387
+ }];
388
+ readonly stateMutability: "view";
389
+ readonly type: "function";
390
+ }, {
391
+ readonly inputs: readonly [{
392
+ readonly internalType: "address";
393
+ readonly name: "to";
394
+ readonly type: "address";
395
+ }, {
396
+ readonly internalType: "uint256";
397
+ readonly name: "value";
398
+ readonly type: "uint256";
399
+ }, {
400
+ readonly internalType: "bytes";
401
+ readonly name: "data";
402
+ readonly type: "bytes";
403
+ }, {
404
+ readonly internalType: "enum Enum.Operation";
405
+ readonly name: "operation";
406
+ readonly type: "uint8";
407
+ }, {
408
+ readonly internalType: "uint256";
409
+ readonly name: "safeTxGas";
410
+ readonly type: "uint256";
411
+ }, {
412
+ readonly internalType: "uint256";
413
+ readonly name: "baseGas";
414
+ readonly type: "uint256";
415
+ }, {
416
+ readonly internalType: "uint256";
417
+ readonly name: "gasPrice";
418
+ readonly type: "uint256";
419
+ }, {
420
+ readonly internalType: "address";
421
+ readonly name: "gasToken";
422
+ readonly type: "address";
423
+ }, {
424
+ readonly internalType: "address payable";
425
+ readonly name: "refundReceiver";
426
+ readonly type: "address";
427
+ }, {
428
+ readonly internalType: "bytes";
429
+ readonly name: "signatures";
430
+ readonly type: "bytes";
431
+ }];
432
+ readonly name: "execTransaction";
433
+ readonly outputs: readonly [{
434
+ readonly internalType: "bool";
435
+ readonly name: "success";
436
+ readonly type: "bool";
437
+ }];
438
+ readonly stateMutability: "payable";
439
+ readonly type: "function";
440
+ }, {
441
+ readonly inputs: readonly [{
442
+ readonly internalType: "address";
443
+ readonly name: "to";
444
+ readonly type: "address";
445
+ }, {
446
+ readonly internalType: "uint256";
447
+ readonly name: "value";
448
+ readonly type: "uint256";
449
+ }, {
450
+ readonly internalType: "bytes";
451
+ readonly name: "data";
452
+ readonly type: "bytes";
453
+ }, {
454
+ readonly internalType: "enum Enum.Operation";
455
+ readonly name: "operation";
456
+ readonly type: "uint8";
457
+ }];
458
+ readonly name: "execTransactionFromModule";
459
+ readonly outputs: readonly [{
460
+ readonly internalType: "bool";
461
+ readonly name: "success";
462
+ readonly type: "bool";
463
+ }];
464
+ readonly stateMutability: "nonpayable";
465
+ readonly type: "function";
466
+ }, {
467
+ readonly inputs: readonly [{
468
+ readonly internalType: "address";
469
+ readonly name: "to";
470
+ readonly type: "address";
471
+ }, {
472
+ readonly internalType: "uint256";
473
+ readonly name: "value";
474
+ readonly type: "uint256";
475
+ }, {
476
+ readonly internalType: "bytes";
477
+ readonly name: "data";
478
+ readonly type: "bytes";
479
+ }, {
480
+ readonly internalType: "enum Enum.Operation";
481
+ readonly name: "operation";
482
+ readonly type: "uint8";
483
+ }];
484
+ readonly name: "execTransactionFromModuleReturnData";
485
+ readonly outputs: readonly [{
486
+ readonly internalType: "bool";
487
+ readonly name: "success";
488
+ readonly type: "bool";
489
+ }, {
490
+ readonly internalType: "bytes";
491
+ readonly name: "returnData";
492
+ readonly type: "bytes";
493
+ }];
494
+ readonly stateMutability: "nonpayable";
495
+ readonly type: "function";
496
+ }, {
497
+ readonly inputs: readonly [];
498
+ readonly name: "getChainId";
499
+ readonly outputs: readonly [{
500
+ readonly internalType: "uint256";
501
+ readonly name: "";
502
+ readonly type: "uint256";
503
+ }];
504
+ readonly stateMutability: "view";
505
+ readonly type: "function";
506
+ }, {
507
+ readonly inputs: readonly [{
508
+ readonly internalType: "address";
509
+ readonly name: "start";
510
+ readonly type: "address";
511
+ }, {
512
+ readonly internalType: "uint256";
513
+ readonly name: "pageSize";
514
+ readonly type: "uint256";
515
+ }];
516
+ readonly name: "getModulesPaginated";
517
+ readonly outputs: readonly [{
518
+ readonly internalType: "address[]";
519
+ readonly name: "array";
520
+ readonly type: "address[]";
521
+ }, {
522
+ readonly internalType: "address";
523
+ readonly name: "next";
524
+ readonly type: "address";
525
+ }];
526
+ readonly stateMutability: "view";
527
+ readonly type: "function";
528
+ }, {
529
+ readonly inputs: readonly [];
530
+ readonly name: "getOwners";
531
+ readonly outputs: readonly [{
532
+ readonly internalType: "address[]";
533
+ readonly name: "";
534
+ readonly type: "address[]";
535
+ }];
536
+ readonly stateMutability: "view";
537
+ readonly type: "function";
538
+ }, {
539
+ readonly inputs: readonly [{
540
+ readonly internalType: "uint256";
541
+ readonly name: "offset";
542
+ readonly type: "uint256";
543
+ }, {
544
+ readonly internalType: "uint256";
545
+ readonly name: "length";
546
+ readonly type: "uint256";
547
+ }];
548
+ readonly name: "getStorageAt";
549
+ readonly outputs: readonly [{
550
+ readonly internalType: "bytes";
551
+ readonly name: "";
552
+ readonly type: "bytes";
553
+ }];
554
+ readonly stateMutability: "view";
555
+ readonly type: "function";
556
+ }, {
557
+ readonly inputs: readonly [];
558
+ readonly name: "getThreshold";
559
+ readonly outputs: readonly [{
560
+ readonly internalType: "uint256";
561
+ readonly name: "";
562
+ readonly type: "uint256";
563
+ }];
564
+ readonly stateMutability: "view";
565
+ readonly type: "function";
566
+ }, {
567
+ readonly inputs: readonly [{
568
+ readonly internalType: "address";
569
+ readonly name: "to";
570
+ readonly type: "address";
571
+ }, {
572
+ readonly internalType: "uint256";
573
+ readonly name: "value";
574
+ readonly type: "uint256";
575
+ }, {
576
+ readonly internalType: "bytes";
577
+ readonly name: "data";
578
+ readonly type: "bytes";
579
+ }, {
580
+ readonly internalType: "enum Enum.Operation";
581
+ readonly name: "operation";
582
+ readonly type: "uint8";
583
+ }, {
584
+ readonly internalType: "uint256";
585
+ readonly name: "safeTxGas";
586
+ readonly type: "uint256";
587
+ }, {
588
+ readonly internalType: "uint256";
589
+ readonly name: "baseGas";
590
+ readonly type: "uint256";
591
+ }, {
592
+ readonly internalType: "uint256";
593
+ readonly name: "gasPrice";
594
+ readonly type: "uint256";
595
+ }, {
596
+ readonly internalType: "address";
597
+ readonly name: "gasToken";
598
+ readonly type: "address";
599
+ }, {
600
+ readonly internalType: "address";
601
+ readonly name: "refundReceiver";
602
+ readonly type: "address";
603
+ }, {
604
+ readonly internalType: "uint256";
605
+ readonly name: "_nonce";
606
+ readonly type: "uint256";
607
+ }];
608
+ readonly name: "getTransactionHash";
609
+ readonly outputs: readonly [{
610
+ readonly internalType: "bytes32";
611
+ readonly name: "";
612
+ readonly type: "bytes32";
613
+ }];
614
+ readonly stateMutability: "view";
615
+ readonly type: "function";
616
+ }, {
617
+ readonly inputs: readonly [{
618
+ readonly internalType: "address";
619
+ readonly name: "module";
620
+ readonly type: "address";
621
+ }];
622
+ readonly name: "isModuleEnabled";
623
+ readonly outputs: readonly [{
624
+ readonly internalType: "bool";
625
+ readonly name: "";
626
+ readonly type: "bool";
627
+ }];
628
+ readonly stateMutability: "view";
629
+ readonly type: "function";
630
+ }, {
631
+ readonly inputs: readonly [{
632
+ readonly internalType: "address";
633
+ readonly name: "owner";
634
+ readonly type: "address";
635
+ }];
636
+ readonly name: "isOwner";
637
+ readonly outputs: readonly [{
638
+ readonly internalType: "bool";
639
+ readonly name: "";
640
+ readonly type: "bool";
641
+ }];
642
+ readonly stateMutability: "view";
643
+ readonly type: "function";
644
+ }, {
645
+ readonly inputs: readonly [];
646
+ readonly name: "nonce";
647
+ readonly outputs: readonly [{
648
+ readonly internalType: "uint256";
649
+ readonly name: "";
650
+ readonly type: "uint256";
651
+ }];
652
+ readonly stateMutability: "view";
653
+ readonly type: "function";
654
+ }, {
655
+ readonly inputs: readonly [{
656
+ readonly internalType: "address";
657
+ readonly name: "prevOwner";
658
+ readonly type: "address";
659
+ }, {
660
+ readonly internalType: "address";
661
+ readonly name: "owner";
662
+ readonly type: "address";
663
+ }, {
664
+ readonly internalType: "uint256";
665
+ readonly name: "_threshold";
666
+ readonly type: "uint256";
667
+ }];
668
+ readonly name: "removeOwner";
669
+ readonly outputs: readonly [];
670
+ readonly stateMutability: "nonpayable";
671
+ readonly type: "function";
672
+ }, {
673
+ readonly inputs: readonly [{
674
+ readonly internalType: "address";
675
+ readonly name: "to";
676
+ readonly type: "address";
677
+ }, {
678
+ readonly internalType: "uint256";
679
+ readonly name: "value";
680
+ readonly type: "uint256";
681
+ }, {
682
+ readonly internalType: "bytes";
683
+ readonly name: "data";
684
+ readonly type: "bytes";
685
+ }, {
686
+ readonly internalType: "enum Enum.Operation";
687
+ readonly name: "operation";
688
+ readonly type: "uint8";
689
+ }];
690
+ readonly name: "requiredTxGas";
691
+ readonly outputs: readonly [{
692
+ readonly internalType: "uint256";
693
+ readonly name: "";
694
+ readonly type: "uint256";
695
+ }];
696
+ readonly stateMutability: "nonpayable";
697
+ readonly type: "function";
698
+ }, {
699
+ readonly inputs: readonly [{
700
+ readonly internalType: "address";
701
+ readonly name: "handler";
702
+ readonly type: "address";
703
+ }];
704
+ readonly name: "setFallbackHandler";
705
+ readonly outputs: readonly [];
706
+ readonly stateMutability: "nonpayable";
707
+ readonly type: "function";
708
+ }, {
709
+ readonly inputs: readonly [{
710
+ readonly internalType: "address";
711
+ readonly name: "guard";
712
+ readonly type: "address";
713
+ }];
714
+ readonly name: "setGuard";
715
+ readonly outputs: readonly [];
716
+ readonly stateMutability: "nonpayable";
717
+ readonly type: "function";
718
+ }, {
719
+ readonly inputs: readonly [{
720
+ readonly internalType: "address[]";
721
+ readonly name: "_owners";
722
+ readonly type: "address[]";
723
+ }, {
724
+ readonly internalType: "uint256";
725
+ readonly name: "_threshold";
726
+ readonly type: "uint256";
727
+ }, {
728
+ readonly internalType: "address";
729
+ readonly name: "to";
730
+ readonly type: "address";
731
+ }, {
732
+ readonly internalType: "bytes";
733
+ readonly name: "data";
734
+ readonly type: "bytes";
735
+ }, {
736
+ readonly internalType: "address";
737
+ readonly name: "fallbackHandler";
738
+ readonly type: "address";
739
+ }, {
740
+ readonly internalType: "address";
741
+ readonly name: "paymentToken";
742
+ readonly type: "address";
743
+ }, {
744
+ readonly internalType: "uint256";
745
+ readonly name: "payment";
746
+ readonly type: "uint256";
747
+ }, {
748
+ readonly internalType: "address payable";
749
+ readonly name: "paymentReceiver";
750
+ readonly type: "address";
751
+ }];
752
+ readonly name: "setup";
753
+ readonly outputs: readonly [];
754
+ readonly stateMutability: "nonpayable";
755
+ readonly type: "function";
756
+ }, {
757
+ readonly inputs: readonly [{
758
+ readonly internalType: "bytes32";
759
+ readonly name: "";
760
+ readonly type: "bytes32";
761
+ }];
762
+ readonly name: "signedMessages";
763
+ readonly outputs: readonly [{
764
+ readonly internalType: "uint256";
765
+ readonly name: "";
766
+ readonly type: "uint256";
767
+ }];
768
+ readonly stateMutability: "view";
769
+ readonly type: "function";
770
+ }, {
771
+ readonly inputs: readonly [{
772
+ readonly internalType: "address";
773
+ readonly name: "targetContract";
774
+ readonly type: "address";
775
+ }, {
776
+ readonly internalType: "bytes";
777
+ readonly name: "calldataPayload";
778
+ readonly type: "bytes";
779
+ }];
780
+ readonly name: "simulateAndRevert";
781
+ readonly outputs: readonly [];
782
+ readonly stateMutability: "nonpayable";
783
+ readonly type: "function";
784
+ }, {
785
+ readonly inputs: readonly [{
786
+ readonly internalType: "address";
787
+ readonly name: "prevOwner";
788
+ readonly type: "address";
789
+ }, {
790
+ readonly internalType: "address";
791
+ readonly name: "oldOwner";
792
+ readonly type: "address";
793
+ }, {
794
+ readonly internalType: "address";
795
+ readonly name: "newOwner";
796
+ readonly type: "address";
797
+ }];
798
+ readonly name: "swapOwner";
799
+ readonly outputs: readonly [];
800
+ readonly stateMutability: "nonpayable";
801
+ readonly type: "function";
802
+ }, {
803
+ readonly stateMutability: "payable";
804
+ readonly type: "receive";
805
+ }];
806
+ /**
807
+ * Type-safe ABI for GnosisSafe_json
808
+ */
809
+ export type GnosisSafe_jsonAbi = typeof GnosisSafe_jsonAbi;
810
+ /**
811
+ * Contract instance type for GnosisSafe_json
812
+ */
813
+ export type GnosisSafe_jsonContract = any;
814
+ /**
815
+ * GnosisSafe_json Contract Class
816
+ *
817
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
818
+ *
819
+ * @example
820
+ * ```typescript
821
+ * import { createPublicClient, createWalletClient, http } from 'viem';
822
+ * import { mainnet } from 'viem/chains';
823
+ * import { GnosisSafe_json } from 'GnosisSafe_json';
824
+ *
825
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
826
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
827
+ *
828
+ * const contract = new GnosisSafe_json('0x...', { publicClient, walletClient });
829
+ *
830
+ * // Read functions
831
+ * const result = await contract.balanceOf('0x...');
832
+ *
833
+ * // Write functions
834
+ * const hash = await contract.transfer('0x...', 1000n);
835
+ *
836
+ * // Simulate transactions (dry-run)
837
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
838
+ * console.log('Gas estimate:', simulation.request.gas);
839
+ *
840
+ * // Watch events
841
+ * const unwatch = contract.watch.Transfer((event) => {
842
+ * console.log('Transfer event:', event);
843
+ * });
844
+ * ```
845
+ */
846
+ export declare class GnosisSafe_json {
847
+ private contract;
848
+ private contractAddress;
849
+ private publicClient;
850
+ constructor(address: Address, clients: {
851
+ publicClient: PublicClient;
852
+ walletClient?: WalletClient;
853
+ });
854
+ /**
855
+ * Get the contract address
856
+ */
857
+ get address(): Address;
858
+ /**
859
+ * Get the underlying viem contract instance
860
+ */
861
+ getContract(): GnosisSafe_jsonContract;
862
+ /**
863
+ * VERSION
864
+ * view
865
+ */
866
+ VERSION(): Promise<string>;
867
+ /**
868
+ * approvedHashes
869
+ * view
870
+ */
871
+ approvedHashes(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
872
+ /**
873
+ * checkNSignatures
874
+ * view
875
+ */
876
+ checkNSignatures(dataHash: `0x${string}`, data: `0x${string}`, signatures: `0x${string}`, requiredSignatures: bigint): Promise<void>;
877
+ /**
878
+ * checkSignatures
879
+ * view
880
+ */
881
+ checkSignatures(dataHash: `0x${string}`, data: `0x${string}`, signatures: `0x${string}`): Promise<void>;
882
+ /**
883
+ * domainSeparator
884
+ * view
885
+ */
886
+ domainSeparator(): Promise<`0x${string}`>;
887
+ /**
888
+ * encodeTransactionData
889
+ * view
890
+ */
891
+ encodeTransactionData(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, safeTxGas: bigint, baseGas: bigint, gasPrice: bigint, gasToken: `0x${string}`, refundReceiver: `0x${string}`, _nonce: bigint): Promise<`0x${string}`>;
892
+ /**
893
+ * getChainId
894
+ * view
895
+ */
896
+ getChainId(): Promise<bigint>;
897
+ /**
898
+ * getModulesPaginated
899
+ * view
900
+ */
901
+ getModulesPaginated(start: `0x${string}`, pageSize: bigint): Promise<[`0x${string}`[], `0x${string}`]>;
902
+ /**
903
+ * getOwners
904
+ * view
905
+ */
906
+ getOwners(): Promise<`0x${string}`[]>;
907
+ /**
908
+ * getStorageAt
909
+ * view
910
+ */
911
+ getStorageAt(offset: bigint, length: bigint): Promise<`0x${string}`>;
912
+ /**
913
+ * getThreshold
914
+ * view
915
+ */
916
+ getThreshold(): Promise<bigint>;
917
+ /**
918
+ * getTransactionHash
919
+ * view
920
+ */
921
+ getTransactionHash(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, safeTxGas: bigint, baseGas: bigint, gasPrice: bigint, gasToken: `0x${string}`, refundReceiver: `0x${string}`, _nonce: bigint): Promise<`0x${string}`>;
922
+ /**
923
+ * isModuleEnabled
924
+ * view
925
+ */
926
+ isModuleEnabled(module: `0x${string}`): Promise<boolean>;
927
+ /**
928
+ * isOwner
929
+ * view
930
+ */
931
+ isOwner(owner: `0x${string}`): Promise<boolean>;
932
+ /**
933
+ * nonce
934
+ * view
935
+ */
936
+ nonce(): Promise<bigint>;
937
+ /**
938
+ * signedMessages
939
+ * view
940
+ */
941
+ signedMessages(arg0: `0x${string}`): Promise<bigint>;
942
+ /**
943
+ * addOwnerWithThreshold
944
+ * nonpayable
945
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
946
+ */
947
+ addOwnerWithThreshold(owner: `0x${string}`, _threshold: bigint, options?: {
948
+ accessList?: import('viem').AccessList;
949
+ authorizationList?: import('viem').AuthorizationList;
950
+ chain?: import('viem').Chain | null;
951
+ dataSuffix?: `0x${string}`;
952
+ gas?: bigint;
953
+ gasPrice?: bigint;
954
+ maxFeePerGas?: bigint;
955
+ maxPriorityFeePerGas?: bigint;
956
+ nonce?: number;
957
+ value?: bigint;
958
+ }): Promise<`0x${string}`>;
959
+ /**
960
+ * approveHash
961
+ * nonpayable
962
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
963
+ */
964
+ approveHash(hashToApprove: `0x${string}`, options?: {
965
+ accessList?: import('viem').AccessList;
966
+ authorizationList?: import('viem').AuthorizationList;
967
+ chain?: import('viem').Chain | null;
968
+ dataSuffix?: `0x${string}`;
969
+ gas?: bigint;
970
+ gasPrice?: bigint;
971
+ maxFeePerGas?: bigint;
972
+ maxPriorityFeePerGas?: bigint;
973
+ nonce?: number;
974
+ value?: bigint;
975
+ }): Promise<`0x${string}`>;
976
+ /**
977
+ * changeThreshold
978
+ * nonpayable
979
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
980
+ */
981
+ changeThreshold(_threshold: bigint, options?: {
982
+ accessList?: import('viem').AccessList;
983
+ authorizationList?: import('viem').AuthorizationList;
984
+ chain?: import('viem').Chain | null;
985
+ dataSuffix?: `0x${string}`;
986
+ gas?: bigint;
987
+ gasPrice?: bigint;
988
+ maxFeePerGas?: bigint;
989
+ maxPriorityFeePerGas?: bigint;
990
+ nonce?: number;
991
+ value?: bigint;
992
+ }): Promise<`0x${string}`>;
993
+ /**
994
+ * disableModule
995
+ * nonpayable
996
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
997
+ */
998
+ disableModule(prevModule: `0x${string}`, module: `0x${string}`, options?: {
999
+ accessList?: import('viem').AccessList;
1000
+ authorizationList?: import('viem').AuthorizationList;
1001
+ chain?: import('viem').Chain | null;
1002
+ dataSuffix?: `0x${string}`;
1003
+ gas?: bigint;
1004
+ gasPrice?: bigint;
1005
+ maxFeePerGas?: bigint;
1006
+ maxPriorityFeePerGas?: bigint;
1007
+ nonce?: number;
1008
+ value?: bigint;
1009
+ }): Promise<`0x${string}`>;
1010
+ /**
1011
+ * enableModule
1012
+ * nonpayable
1013
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1014
+ */
1015
+ enableModule(module: `0x${string}`, options?: {
1016
+ accessList?: import('viem').AccessList;
1017
+ authorizationList?: import('viem').AuthorizationList;
1018
+ chain?: import('viem').Chain | null;
1019
+ dataSuffix?: `0x${string}`;
1020
+ gas?: bigint;
1021
+ gasPrice?: bigint;
1022
+ maxFeePerGas?: bigint;
1023
+ maxPriorityFeePerGas?: bigint;
1024
+ nonce?: number;
1025
+ value?: bigint;
1026
+ }): Promise<`0x${string}`>;
1027
+ /**
1028
+ * execTransaction
1029
+ * payable
1030
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1031
+ */
1032
+ 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?: {
1033
+ accessList?: import('viem').AccessList;
1034
+ authorizationList?: import('viem').AuthorizationList;
1035
+ chain?: import('viem').Chain | null;
1036
+ dataSuffix?: `0x${string}`;
1037
+ gas?: bigint;
1038
+ gasPrice?: bigint;
1039
+ maxFeePerGas?: bigint;
1040
+ maxPriorityFeePerGas?: bigint;
1041
+ nonce?: number;
1042
+ value?: bigint;
1043
+ }): Promise<`0x${string}`>;
1044
+ /**
1045
+ * execTransactionFromModule
1046
+ * nonpayable
1047
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1048
+ */
1049
+ execTransactionFromModule(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1050
+ accessList?: import('viem').AccessList;
1051
+ authorizationList?: import('viem').AuthorizationList;
1052
+ chain?: import('viem').Chain | null;
1053
+ dataSuffix?: `0x${string}`;
1054
+ gas?: bigint;
1055
+ gasPrice?: bigint;
1056
+ maxFeePerGas?: bigint;
1057
+ maxPriorityFeePerGas?: bigint;
1058
+ nonce?: number;
1059
+ value?: bigint;
1060
+ }): Promise<`0x${string}`>;
1061
+ /**
1062
+ * execTransactionFromModuleReturnData
1063
+ * nonpayable
1064
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1065
+ */
1066
+ execTransactionFromModuleReturnData(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1067
+ accessList?: import('viem').AccessList;
1068
+ authorizationList?: import('viem').AuthorizationList;
1069
+ chain?: import('viem').Chain | null;
1070
+ dataSuffix?: `0x${string}`;
1071
+ gas?: bigint;
1072
+ gasPrice?: bigint;
1073
+ maxFeePerGas?: bigint;
1074
+ maxPriorityFeePerGas?: bigint;
1075
+ nonce?: number;
1076
+ value?: bigint;
1077
+ }): Promise<`0x${string}`>;
1078
+ /**
1079
+ * removeOwner
1080
+ * nonpayable
1081
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1082
+ */
1083
+ removeOwner(prevOwner: `0x${string}`, owner: `0x${string}`, _threshold: bigint, options?: {
1084
+ accessList?: import('viem').AccessList;
1085
+ authorizationList?: import('viem').AuthorizationList;
1086
+ chain?: import('viem').Chain | null;
1087
+ dataSuffix?: `0x${string}`;
1088
+ gas?: bigint;
1089
+ gasPrice?: bigint;
1090
+ maxFeePerGas?: bigint;
1091
+ maxPriorityFeePerGas?: bigint;
1092
+ nonce?: number;
1093
+ value?: bigint;
1094
+ }): Promise<`0x${string}`>;
1095
+ /**
1096
+ * requiredTxGas
1097
+ * nonpayable
1098
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1099
+ */
1100
+ requiredTxGas(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1101
+ accessList?: import('viem').AccessList;
1102
+ authorizationList?: import('viem').AuthorizationList;
1103
+ chain?: import('viem').Chain | null;
1104
+ dataSuffix?: `0x${string}`;
1105
+ gas?: bigint;
1106
+ gasPrice?: bigint;
1107
+ maxFeePerGas?: bigint;
1108
+ maxPriorityFeePerGas?: bigint;
1109
+ nonce?: number;
1110
+ value?: bigint;
1111
+ }): Promise<`0x${string}`>;
1112
+ /**
1113
+ * setFallbackHandler
1114
+ * nonpayable
1115
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1116
+ */
1117
+ setFallbackHandler(handler: `0x${string}`, options?: {
1118
+ accessList?: import('viem').AccessList;
1119
+ authorizationList?: import('viem').AuthorizationList;
1120
+ chain?: import('viem').Chain | null;
1121
+ dataSuffix?: `0x${string}`;
1122
+ gas?: bigint;
1123
+ gasPrice?: bigint;
1124
+ maxFeePerGas?: bigint;
1125
+ maxPriorityFeePerGas?: bigint;
1126
+ nonce?: number;
1127
+ value?: bigint;
1128
+ }): Promise<`0x${string}`>;
1129
+ /**
1130
+ * setGuard
1131
+ * nonpayable
1132
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1133
+ */
1134
+ setGuard(guard: `0x${string}`, options?: {
1135
+ accessList?: import('viem').AccessList;
1136
+ authorizationList?: import('viem').AuthorizationList;
1137
+ chain?: import('viem').Chain | null;
1138
+ dataSuffix?: `0x${string}`;
1139
+ gas?: bigint;
1140
+ gasPrice?: bigint;
1141
+ maxFeePerGas?: bigint;
1142
+ maxPriorityFeePerGas?: bigint;
1143
+ nonce?: number;
1144
+ value?: bigint;
1145
+ }): Promise<`0x${string}`>;
1146
+ /**
1147
+ * setup
1148
+ * nonpayable
1149
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1150
+ */
1151
+ setup(_owners: `0x${string}`[], _threshold: bigint, to: `0x${string}`, data: `0x${string}`, fallbackHandler: `0x${string}`, paymentToken: `0x${string}`, payment: bigint, paymentReceiver: `0x${string}`, options?: {
1152
+ accessList?: import('viem').AccessList;
1153
+ authorizationList?: import('viem').AuthorizationList;
1154
+ chain?: import('viem').Chain | null;
1155
+ dataSuffix?: `0x${string}`;
1156
+ gas?: bigint;
1157
+ gasPrice?: bigint;
1158
+ maxFeePerGas?: bigint;
1159
+ maxPriorityFeePerGas?: bigint;
1160
+ nonce?: number;
1161
+ value?: bigint;
1162
+ }): Promise<`0x${string}`>;
1163
+ /**
1164
+ * simulateAndRevert
1165
+ * nonpayable
1166
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1167
+ */
1168
+ simulateAndRevert(targetContract: `0x${string}`, calldataPayload: `0x${string}`, options?: {
1169
+ accessList?: import('viem').AccessList;
1170
+ authorizationList?: import('viem').AuthorizationList;
1171
+ chain?: import('viem').Chain | null;
1172
+ dataSuffix?: `0x${string}`;
1173
+ gas?: bigint;
1174
+ gasPrice?: bigint;
1175
+ maxFeePerGas?: bigint;
1176
+ maxPriorityFeePerGas?: bigint;
1177
+ nonce?: number;
1178
+ value?: bigint;
1179
+ }): Promise<`0x${string}`>;
1180
+ /**
1181
+ * swapOwner
1182
+ * nonpayable
1183
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1184
+ */
1185
+ swapOwner(prevOwner: `0x${string}`, oldOwner: `0x${string}`, newOwner: `0x${string}`, options?: {
1186
+ accessList?: import('viem').AccessList;
1187
+ authorizationList?: import('viem').AuthorizationList;
1188
+ chain?: import('viem').Chain | null;
1189
+ dataSuffix?: `0x${string}`;
1190
+ gas?: bigint;
1191
+ gasPrice?: bigint;
1192
+ maxFeePerGas?: bigint;
1193
+ maxPriorityFeePerGas?: bigint;
1194
+ nonce?: number;
1195
+ value?: bigint;
1196
+ }): Promise<`0x${string}`>;
1197
+ /**
1198
+ * Simulate contract write operations (dry-run without sending transaction)
1199
+ *
1200
+ * @example
1201
+ * const result = await contract.simulate.transfer('0x...', 1000n);
1202
+ * console.log('Gas estimate:', result.request.gas);
1203
+ * console.log('Would succeed:', result.result);
1204
+ */
1205
+ get simulate(): {
1206
+ /**
1207
+ * Simulate addOwnerWithThreshold
1208
+ * Returns gas estimate and result without sending transaction
1209
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1210
+ */
1211
+ addOwnerWithThreshold(owner: `0x${string}`, _threshold: bigint, options?: {
1212
+ accessList?: import("viem").AccessList;
1213
+ authorizationList?: import("viem").AuthorizationList;
1214
+ chain?: import("viem").Chain | null;
1215
+ dataSuffix?: `0x${string}`;
1216
+ gas?: bigint;
1217
+ gasPrice?: bigint;
1218
+ maxFeePerGas?: bigint;
1219
+ maxPriorityFeePerGas?: bigint;
1220
+ nonce?: number;
1221
+ value?: bigint;
1222
+ }): Promise<void>;
1223
+ /**
1224
+ * Simulate approveHash
1225
+ * Returns gas estimate and result without sending transaction
1226
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1227
+ */
1228
+ approveHash(hashToApprove: `0x${string}`, options?: {
1229
+ accessList?: import("viem").AccessList;
1230
+ authorizationList?: import("viem").AuthorizationList;
1231
+ chain?: import("viem").Chain | null;
1232
+ dataSuffix?: `0x${string}`;
1233
+ gas?: bigint;
1234
+ gasPrice?: bigint;
1235
+ maxFeePerGas?: bigint;
1236
+ maxPriorityFeePerGas?: bigint;
1237
+ nonce?: number;
1238
+ value?: bigint;
1239
+ }): Promise<void>;
1240
+ /**
1241
+ * Simulate changeThreshold
1242
+ * Returns gas estimate and result without sending transaction
1243
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1244
+ */
1245
+ changeThreshold(_threshold: bigint, options?: {
1246
+ accessList?: import("viem").AccessList;
1247
+ authorizationList?: import("viem").AuthorizationList;
1248
+ chain?: import("viem").Chain | null;
1249
+ dataSuffix?: `0x${string}`;
1250
+ gas?: bigint;
1251
+ gasPrice?: bigint;
1252
+ maxFeePerGas?: bigint;
1253
+ maxPriorityFeePerGas?: bigint;
1254
+ nonce?: number;
1255
+ value?: bigint;
1256
+ }): Promise<void>;
1257
+ /**
1258
+ * Simulate disableModule
1259
+ * Returns gas estimate and result without sending transaction
1260
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1261
+ */
1262
+ disableModule(prevModule: `0x${string}`, module: `0x${string}`, options?: {
1263
+ accessList?: import("viem").AccessList;
1264
+ authorizationList?: import("viem").AuthorizationList;
1265
+ chain?: import("viem").Chain | null;
1266
+ dataSuffix?: `0x${string}`;
1267
+ gas?: bigint;
1268
+ gasPrice?: bigint;
1269
+ maxFeePerGas?: bigint;
1270
+ maxPriorityFeePerGas?: bigint;
1271
+ nonce?: number;
1272
+ value?: bigint;
1273
+ }): Promise<void>;
1274
+ /**
1275
+ * Simulate enableModule
1276
+ * Returns gas estimate and result without sending transaction
1277
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1278
+ */
1279
+ enableModule(module: `0x${string}`, options?: {
1280
+ accessList?: import("viem").AccessList;
1281
+ authorizationList?: import("viem").AuthorizationList;
1282
+ chain?: import("viem").Chain | null;
1283
+ dataSuffix?: `0x${string}`;
1284
+ gas?: bigint;
1285
+ gasPrice?: bigint;
1286
+ maxFeePerGas?: bigint;
1287
+ maxPriorityFeePerGas?: bigint;
1288
+ nonce?: number;
1289
+ value?: bigint;
1290
+ }): Promise<void>;
1291
+ /**
1292
+ * Simulate execTransaction
1293
+ * Returns gas estimate and result without sending transaction
1294
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1295
+ */
1296
+ 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?: {
1297
+ accessList?: import("viem").AccessList;
1298
+ authorizationList?: import("viem").AuthorizationList;
1299
+ chain?: import("viem").Chain | null;
1300
+ dataSuffix?: `0x${string}`;
1301
+ gas?: bigint;
1302
+ gasPrice?: bigint;
1303
+ maxFeePerGas?: bigint;
1304
+ maxPriorityFeePerGas?: bigint;
1305
+ nonce?: number;
1306
+ value?: bigint;
1307
+ }): Promise<boolean>;
1308
+ /**
1309
+ * Simulate execTransactionFromModule
1310
+ * Returns gas estimate and result without sending transaction
1311
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1312
+ */
1313
+ execTransactionFromModule(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1314
+ accessList?: import("viem").AccessList;
1315
+ authorizationList?: import("viem").AuthorizationList;
1316
+ chain?: import("viem").Chain | null;
1317
+ dataSuffix?: `0x${string}`;
1318
+ gas?: bigint;
1319
+ gasPrice?: bigint;
1320
+ maxFeePerGas?: bigint;
1321
+ maxPriorityFeePerGas?: bigint;
1322
+ nonce?: number;
1323
+ value?: bigint;
1324
+ }): Promise<boolean>;
1325
+ /**
1326
+ * Simulate execTransactionFromModuleReturnData
1327
+ * Returns gas estimate and result without sending transaction
1328
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1329
+ */
1330
+ execTransactionFromModuleReturnData(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1331
+ accessList?: import("viem").AccessList;
1332
+ authorizationList?: import("viem").AuthorizationList;
1333
+ chain?: import("viem").Chain | null;
1334
+ dataSuffix?: `0x${string}`;
1335
+ gas?: bigint;
1336
+ gasPrice?: bigint;
1337
+ maxFeePerGas?: bigint;
1338
+ maxPriorityFeePerGas?: bigint;
1339
+ nonce?: number;
1340
+ value?: bigint;
1341
+ }): Promise<[boolean, `0x${string}`]>;
1342
+ /**
1343
+ * Simulate removeOwner
1344
+ * Returns gas estimate and result without sending transaction
1345
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1346
+ */
1347
+ removeOwner(prevOwner: `0x${string}`, owner: `0x${string}`, _threshold: bigint, options?: {
1348
+ accessList?: import("viem").AccessList;
1349
+ authorizationList?: import("viem").AuthorizationList;
1350
+ chain?: import("viem").Chain | null;
1351
+ dataSuffix?: `0x${string}`;
1352
+ gas?: bigint;
1353
+ gasPrice?: bigint;
1354
+ maxFeePerGas?: bigint;
1355
+ maxPriorityFeePerGas?: bigint;
1356
+ nonce?: number;
1357
+ value?: bigint;
1358
+ }): Promise<void>;
1359
+ /**
1360
+ * Simulate requiredTxGas
1361
+ * Returns gas estimate and result without sending transaction
1362
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1363
+ */
1364
+ requiredTxGas(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1365
+ accessList?: import("viem").AccessList;
1366
+ authorizationList?: import("viem").AuthorizationList;
1367
+ chain?: import("viem").Chain | null;
1368
+ dataSuffix?: `0x${string}`;
1369
+ gas?: bigint;
1370
+ gasPrice?: bigint;
1371
+ maxFeePerGas?: bigint;
1372
+ maxPriorityFeePerGas?: bigint;
1373
+ nonce?: number;
1374
+ value?: bigint;
1375
+ }): Promise<bigint>;
1376
+ /**
1377
+ * Simulate setFallbackHandler
1378
+ * Returns gas estimate and result without sending transaction
1379
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1380
+ */
1381
+ setFallbackHandler(handler: `0x${string}`, options?: {
1382
+ accessList?: import("viem").AccessList;
1383
+ authorizationList?: import("viem").AuthorizationList;
1384
+ chain?: import("viem").Chain | null;
1385
+ dataSuffix?: `0x${string}`;
1386
+ gas?: bigint;
1387
+ gasPrice?: bigint;
1388
+ maxFeePerGas?: bigint;
1389
+ maxPriorityFeePerGas?: bigint;
1390
+ nonce?: number;
1391
+ value?: bigint;
1392
+ }): Promise<void>;
1393
+ /**
1394
+ * Simulate setGuard
1395
+ * Returns gas estimate and result without sending transaction
1396
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1397
+ */
1398
+ setGuard(guard: `0x${string}`, options?: {
1399
+ accessList?: import("viem").AccessList;
1400
+ authorizationList?: import("viem").AuthorizationList;
1401
+ chain?: import("viem").Chain | null;
1402
+ dataSuffix?: `0x${string}`;
1403
+ gas?: bigint;
1404
+ gasPrice?: bigint;
1405
+ maxFeePerGas?: bigint;
1406
+ maxPriorityFeePerGas?: bigint;
1407
+ nonce?: number;
1408
+ value?: bigint;
1409
+ }): Promise<void>;
1410
+ /**
1411
+ * Simulate setup
1412
+ * Returns gas estimate and result without sending transaction
1413
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1414
+ */
1415
+ setup(_owners: `0x${string}`[], _threshold: bigint, to: `0x${string}`, data: `0x${string}`, fallbackHandler: `0x${string}`, paymentToken: `0x${string}`, payment: bigint, paymentReceiver: `0x${string}`, options?: {
1416
+ accessList?: import("viem").AccessList;
1417
+ authorizationList?: import("viem").AuthorizationList;
1418
+ chain?: import("viem").Chain | null;
1419
+ dataSuffix?: `0x${string}`;
1420
+ gas?: bigint;
1421
+ gasPrice?: bigint;
1422
+ maxFeePerGas?: bigint;
1423
+ maxPriorityFeePerGas?: bigint;
1424
+ nonce?: number;
1425
+ value?: bigint;
1426
+ }): Promise<void>;
1427
+ /**
1428
+ * Simulate simulateAndRevert
1429
+ * Returns gas estimate and result without sending transaction
1430
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1431
+ */
1432
+ simulateAndRevert(targetContract: `0x${string}`, calldataPayload: `0x${string}`, options?: {
1433
+ accessList?: import("viem").AccessList;
1434
+ authorizationList?: import("viem").AuthorizationList;
1435
+ chain?: import("viem").Chain | null;
1436
+ dataSuffix?: `0x${string}`;
1437
+ gas?: bigint;
1438
+ gasPrice?: bigint;
1439
+ maxFeePerGas?: bigint;
1440
+ maxPriorityFeePerGas?: bigint;
1441
+ nonce?: number;
1442
+ value?: bigint;
1443
+ }): Promise<void>;
1444
+ /**
1445
+ * Simulate swapOwner
1446
+ * Returns gas estimate and result without sending transaction
1447
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1448
+ */
1449
+ swapOwner(prevOwner: `0x${string}`, oldOwner: `0x${string}`, newOwner: `0x${string}`, options?: {
1450
+ accessList?: import("viem").AccessList;
1451
+ authorizationList?: import("viem").AuthorizationList;
1452
+ chain?: import("viem").Chain | null;
1453
+ dataSuffix?: `0x${string}`;
1454
+ gas?: bigint;
1455
+ gasPrice?: bigint;
1456
+ maxFeePerGas?: bigint;
1457
+ maxPriorityFeePerGas?: bigint;
1458
+ nonce?: number;
1459
+ value?: bigint;
1460
+ }): Promise<void>;
1461
+ };
1462
+ /**
1463
+ * Watch contract events
1464
+ *
1465
+ * @example
1466
+ * // Watch all Transfer events
1467
+ * const unwatch = contract.watch.Transfer((event) => {
1468
+ * console.log('Transfer:', event);
1469
+ * });
1470
+ *
1471
+ * // Stop watching
1472
+ * unwatch();
1473
+ */
1474
+ get watch(): {
1475
+ /**
1476
+ * Watch AddedOwner events
1477
+ * @param callback Function to call when event is emitted
1478
+ * @param filter Optional filter for indexed parameters
1479
+ * @returns Unwatch function to stop listening
1480
+ */
1481
+ AddedOwner: (callback: (event: {
1482
+ owner: `0x${string}`;
1483
+ }) => void) => () => void;
1484
+ /**
1485
+ * Watch ApproveHash events
1486
+ * @param callback Function to call when event is emitted
1487
+ * @param filter Optional filter for indexed parameters
1488
+ * @returns Unwatch function to stop listening
1489
+ */
1490
+ ApproveHash: (callback: (event: {
1491
+ approvedHash: `0x${string}`;
1492
+ owner: `0x${string}`;
1493
+ }) => void, filter?: {
1494
+ approvedHash: `0x${string}`;
1495
+ owner: `0x${string}`;
1496
+ }) => () => void;
1497
+ /**
1498
+ * Watch ChangedFallbackHandler events
1499
+ * @param callback Function to call when event is emitted
1500
+ * @param filter Optional filter for indexed parameters
1501
+ * @returns Unwatch function to stop listening
1502
+ */
1503
+ ChangedFallbackHandler: (callback: (event: {
1504
+ handler: `0x${string}`;
1505
+ }) => void) => () => void;
1506
+ /**
1507
+ * Watch ChangedGuard events
1508
+ * @param callback Function to call when event is emitted
1509
+ * @param filter Optional filter for indexed parameters
1510
+ * @returns Unwatch function to stop listening
1511
+ */
1512
+ ChangedGuard: (callback: (event: {
1513
+ guard: `0x${string}`;
1514
+ }) => void) => () => void;
1515
+ /**
1516
+ * Watch ChangedThreshold events
1517
+ * @param callback Function to call when event is emitted
1518
+ * @param filter Optional filter for indexed parameters
1519
+ * @returns Unwatch function to stop listening
1520
+ */
1521
+ ChangedThreshold: (callback: (event: {
1522
+ threshold: bigint;
1523
+ }) => void) => () => void;
1524
+ /**
1525
+ * Watch DisabledModule events
1526
+ * @param callback Function to call when event is emitted
1527
+ * @param filter Optional filter for indexed parameters
1528
+ * @returns Unwatch function to stop listening
1529
+ */
1530
+ DisabledModule: (callback: (event: {
1531
+ module: `0x${string}`;
1532
+ }) => void) => () => void;
1533
+ /**
1534
+ * Watch EnabledModule events
1535
+ * @param callback Function to call when event is emitted
1536
+ * @param filter Optional filter for indexed parameters
1537
+ * @returns Unwatch function to stop listening
1538
+ */
1539
+ EnabledModule: (callback: (event: {
1540
+ module: `0x${string}`;
1541
+ }) => void) => () => void;
1542
+ /**
1543
+ * Watch ExecutionFailure events
1544
+ * @param callback Function to call when event is emitted
1545
+ * @param filter Optional filter for indexed parameters
1546
+ * @returns Unwatch function to stop listening
1547
+ */
1548
+ ExecutionFailure: (callback: (event: {
1549
+ txHash: `0x${string}`;
1550
+ payment: bigint;
1551
+ }) => void) => () => void;
1552
+ /**
1553
+ * Watch ExecutionFromModuleFailure events
1554
+ * @param callback Function to call when event is emitted
1555
+ * @param filter Optional filter for indexed parameters
1556
+ * @returns Unwatch function to stop listening
1557
+ */
1558
+ ExecutionFromModuleFailure: (callback: (event: {
1559
+ module: `0x${string}`;
1560
+ }) => void, filter?: {
1561
+ module: `0x${string}`;
1562
+ }) => () => void;
1563
+ /**
1564
+ * Watch ExecutionFromModuleSuccess events
1565
+ * @param callback Function to call when event is emitted
1566
+ * @param filter Optional filter for indexed parameters
1567
+ * @returns Unwatch function to stop listening
1568
+ */
1569
+ ExecutionFromModuleSuccess: (callback: (event: {
1570
+ module: `0x${string}`;
1571
+ }) => void, filter?: {
1572
+ module: `0x${string}`;
1573
+ }) => () => void;
1574
+ /**
1575
+ * Watch ExecutionSuccess events
1576
+ * @param callback Function to call when event is emitted
1577
+ * @param filter Optional filter for indexed parameters
1578
+ * @returns Unwatch function to stop listening
1579
+ */
1580
+ ExecutionSuccess: (callback: (event: {
1581
+ txHash: `0x${string}`;
1582
+ payment: bigint;
1583
+ }) => void) => () => void;
1584
+ /**
1585
+ * Watch RemovedOwner events
1586
+ * @param callback Function to call when event is emitted
1587
+ * @param filter Optional filter for indexed parameters
1588
+ * @returns Unwatch function to stop listening
1589
+ */
1590
+ RemovedOwner: (callback: (event: {
1591
+ owner: `0x${string}`;
1592
+ }) => void) => () => void;
1593
+ /**
1594
+ * Watch SafeReceived events
1595
+ * @param callback Function to call when event is emitted
1596
+ * @param filter Optional filter for indexed parameters
1597
+ * @returns Unwatch function to stop listening
1598
+ */
1599
+ SafeReceived: (callback: (event: {
1600
+ sender: `0x${string}`;
1601
+ value: bigint;
1602
+ }) => void, filter?: {
1603
+ sender: `0x${string}`;
1604
+ }) => () => void;
1605
+ /**
1606
+ * Watch SafeSetup events
1607
+ * @param callback Function to call when event is emitted
1608
+ * @param filter Optional filter for indexed parameters
1609
+ * @returns Unwatch function to stop listening
1610
+ */
1611
+ SafeSetup: (callback: (event: {
1612
+ initiator: `0x${string}`;
1613
+ owners: `0x${string}`[];
1614
+ threshold: bigint;
1615
+ initializer: `0x${string}`;
1616
+ fallbackHandler: `0x${string}`;
1617
+ }) => void, filter?: {
1618
+ initiator: `0x${string}`;
1619
+ }) => () => void;
1620
+ /**
1621
+ * Watch SignMsg events
1622
+ * @param callback Function to call when event is emitted
1623
+ * @param filter Optional filter for indexed parameters
1624
+ * @returns Unwatch function to stop listening
1625
+ */
1626
+ SignMsg: (callback: (event: {
1627
+ msgHash: `0x${string}`;
1628
+ }) => void, filter?: {
1629
+ msgHash: `0x${string}`;
1630
+ }) => () => void;
1631
+ };
1632
+ }