@gitmyabi/safe 1.0.146 → 1.0.147

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