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