@gitmyabi/safe 1.0.65 → 1.0.66

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