@gitmyabi/codexproxyadmin 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,1909 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * CodeXProxyAdmin_json ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const CodeXProxyAdmin_jsonAbi: readonly [{
8
+ readonly inputs: readonly [];
9
+ readonly stateMutability: "nonpayable";
10
+ readonly type: "constructor";
11
+ }, {
12
+ readonly inputs: readonly [];
13
+ readonly name: "AccessControlBadConfirmation";
14
+ readonly type: "error";
15
+ }, {
16
+ readonly inputs: readonly [{
17
+ readonly internalType: "address";
18
+ readonly name: "account";
19
+ readonly type: "address";
20
+ }, {
21
+ readonly internalType: "bytes32";
22
+ readonly name: "neededRole";
23
+ readonly type: "bytes32";
24
+ }];
25
+ readonly name: "AccessControlUnauthorizedAccount";
26
+ readonly type: "error";
27
+ }, {
28
+ readonly inputs: readonly [{
29
+ readonly internalType: "address";
30
+ readonly name: "target";
31
+ readonly type: "address";
32
+ }];
33
+ readonly name: "AddressEmptyCode";
34
+ readonly type: "error";
35
+ }, {
36
+ readonly inputs: readonly [];
37
+ readonly name: "AuditApprovalMissing";
38
+ readonly type: "error";
39
+ }, {
40
+ readonly inputs: readonly [{
41
+ readonly internalType: "address";
42
+ readonly name: "implementation";
43
+ readonly type: "address";
44
+ }];
45
+ readonly name: "ERC1967InvalidImplementation";
46
+ readonly type: "error";
47
+ }, {
48
+ readonly inputs: readonly [];
49
+ readonly name: "ERC1967NonPayable";
50
+ readonly type: "error";
51
+ }, {
52
+ readonly inputs: readonly [];
53
+ readonly name: "EnforcedPause";
54
+ readonly type: "error";
55
+ }, {
56
+ readonly inputs: readonly [];
57
+ readonly name: "ExpectedPause";
58
+ readonly type: "error";
59
+ }, {
60
+ readonly inputs: readonly [];
61
+ readonly name: "FailedCall";
62
+ readonly type: "error";
63
+ }, {
64
+ readonly inputs: readonly [];
65
+ readonly name: "InsufficientApprovals";
66
+ readonly type: "error";
67
+ }, {
68
+ readonly inputs: readonly [];
69
+ readonly name: "InvalidAddress";
70
+ readonly type: "error";
71
+ }, {
72
+ readonly inputs: readonly [];
73
+ readonly name: "InvalidInitialization";
74
+ readonly type: "error";
75
+ }, {
76
+ readonly inputs: readonly [];
77
+ readonly name: "NoPendingUpgrade";
78
+ readonly type: "error";
79
+ }, {
80
+ readonly inputs: readonly [];
81
+ readonly name: "NotInitializing";
82
+ readonly type: "error";
83
+ }, {
84
+ readonly inputs: readonly [];
85
+ readonly name: "ProxyAlreadyRegistered";
86
+ readonly type: "error";
87
+ }, {
88
+ readonly inputs: readonly [];
89
+ readonly name: "ProxyNotRegistered";
90
+ readonly type: "error";
91
+ }, {
92
+ readonly inputs: readonly [];
93
+ readonly name: "ReentrancyDetected";
94
+ readonly type: "error";
95
+ }, {
96
+ readonly inputs: readonly [];
97
+ readonly name: "TimelockPending";
98
+ readonly type: "error";
99
+ }, {
100
+ readonly inputs: readonly [];
101
+ readonly name: "UUPSUnauthorizedCallContext";
102
+ readonly type: "error";
103
+ }, {
104
+ readonly inputs: readonly [{
105
+ readonly internalType: "bytes32";
106
+ readonly name: "slot";
107
+ readonly type: "bytes32";
108
+ }];
109
+ readonly name: "UUPSUnsupportedProxiableUUID";
110
+ readonly type: "error";
111
+ }, {
112
+ readonly inputs: readonly [{
113
+ readonly internalType: "bytes";
114
+ readonly name: "reason";
115
+ readonly type: "bytes";
116
+ }];
117
+ readonly name: "UpgradeCallFailed";
118
+ readonly type: "error";
119
+ }, {
120
+ readonly inputs: readonly [];
121
+ readonly name: "UpgradeFrozen";
122
+ readonly type: "error";
123
+ }, {
124
+ readonly anonymous: false;
125
+ readonly inputs: readonly [{
126
+ readonly indexed: false;
127
+ readonly internalType: "uint64";
128
+ readonly name: "version";
129
+ readonly type: "uint64";
130
+ }];
131
+ readonly name: "Initialized";
132
+ readonly type: "event";
133
+ }, {
134
+ readonly anonymous: false;
135
+ readonly inputs: readonly [{
136
+ readonly indexed: false;
137
+ readonly internalType: "address";
138
+ readonly name: "account";
139
+ readonly type: "address";
140
+ }];
141
+ readonly name: "Paused";
142
+ readonly type: "event";
143
+ }, {
144
+ readonly anonymous: false;
145
+ readonly inputs: readonly [{
146
+ readonly indexed: true;
147
+ readonly internalType: "address";
148
+ readonly name: "proxy";
149
+ readonly type: "address";
150
+ }, {
151
+ readonly indexed: true;
152
+ readonly internalType: "address";
153
+ readonly name: "implementation";
154
+ readonly type: "address";
155
+ }];
156
+ readonly name: "ProxyRegistered";
157
+ readonly type: "event";
158
+ }, {
159
+ readonly anonymous: false;
160
+ readonly inputs: readonly [{
161
+ readonly indexed: true;
162
+ readonly internalType: "bytes32";
163
+ readonly name: "role";
164
+ readonly type: "bytes32";
165
+ }, {
166
+ readonly indexed: true;
167
+ readonly internalType: "bytes32";
168
+ readonly name: "previousAdminRole";
169
+ readonly type: "bytes32";
170
+ }, {
171
+ readonly indexed: true;
172
+ readonly internalType: "bytes32";
173
+ readonly name: "newAdminRole";
174
+ readonly type: "bytes32";
175
+ }];
176
+ readonly name: "RoleAdminChanged";
177
+ readonly type: "event";
178
+ }, {
179
+ readonly anonymous: false;
180
+ readonly inputs: readonly [{
181
+ readonly indexed: true;
182
+ readonly internalType: "bytes32";
183
+ readonly name: "role";
184
+ readonly type: "bytes32";
185
+ }, {
186
+ readonly indexed: true;
187
+ readonly internalType: "address";
188
+ readonly name: "account";
189
+ readonly type: "address";
190
+ }, {
191
+ readonly indexed: true;
192
+ readonly internalType: "address";
193
+ readonly name: "sender";
194
+ readonly type: "address";
195
+ }];
196
+ readonly name: "RoleGranted";
197
+ readonly type: "event";
198
+ }, {
199
+ readonly anonymous: false;
200
+ readonly inputs: readonly [{
201
+ readonly indexed: true;
202
+ readonly internalType: "bytes32";
203
+ readonly name: "role";
204
+ readonly type: "bytes32";
205
+ }, {
206
+ readonly indexed: true;
207
+ readonly internalType: "address";
208
+ readonly name: "account";
209
+ readonly type: "address";
210
+ }, {
211
+ readonly indexed: true;
212
+ readonly internalType: "address";
213
+ readonly name: "sender";
214
+ readonly type: "address";
215
+ }];
216
+ readonly name: "RoleRevoked";
217
+ readonly type: "event";
218
+ }, {
219
+ readonly anonymous: false;
220
+ readonly inputs: readonly [{
221
+ readonly indexed: false;
222
+ readonly internalType: "address";
223
+ readonly name: "account";
224
+ readonly type: "address";
225
+ }];
226
+ readonly name: "Unpaused";
227
+ readonly type: "event";
228
+ }, {
229
+ readonly anonymous: false;
230
+ readonly inputs: readonly [{
231
+ readonly indexed: true;
232
+ readonly internalType: "address";
233
+ readonly name: "approver";
234
+ readonly type: "address";
235
+ }, {
236
+ readonly indexed: true;
237
+ readonly internalType: "address";
238
+ readonly name: "implementation";
239
+ readonly type: "address";
240
+ }, {
241
+ readonly indexed: false;
242
+ readonly internalType: "uint256";
243
+ readonly name: "approvalCount";
244
+ readonly type: "uint256";
245
+ }];
246
+ readonly name: "UpgradeApproved";
247
+ readonly type: "event";
248
+ }, {
249
+ readonly anonymous: false;
250
+ readonly inputs: readonly [{
251
+ readonly indexed: true;
252
+ readonly internalType: "address";
253
+ readonly name: "auditor";
254
+ readonly type: "address";
255
+ }, {
256
+ readonly indexed: true;
257
+ readonly internalType: "address";
258
+ readonly name: "implementation";
259
+ readonly type: "address";
260
+ }];
261
+ readonly name: "UpgradeAuditApproved";
262
+ readonly type: "event";
263
+ }, {
264
+ readonly anonymous: false;
265
+ readonly inputs: readonly [{
266
+ readonly indexed: true;
267
+ readonly internalType: "address";
268
+ readonly name: "implementation";
269
+ readonly type: "address";
270
+ }];
271
+ readonly name: "UpgradeCancelled";
272
+ readonly type: "event";
273
+ }, {
274
+ readonly anonymous: false;
275
+ readonly inputs: readonly [{
276
+ readonly indexed: true;
277
+ readonly internalType: "address";
278
+ readonly name: "oldImplementation";
279
+ readonly type: "address";
280
+ }, {
281
+ readonly indexed: true;
282
+ readonly internalType: "address";
283
+ readonly name: "newImplementation";
284
+ readonly type: "address";
285
+ }, {
286
+ readonly indexed: true;
287
+ readonly internalType: "uint256";
288
+ readonly name: "version";
289
+ readonly type: "uint256";
290
+ }];
291
+ readonly name: "UpgradeExecuted";
292
+ readonly type: "event";
293
+ }, {
294
+ readonly anonymous: false;
295
+ readonly inputs: readonly [{
296
+ readonly indexed: false;
297
+ readonly internalType: "bool";
298
+ readonly name: "status";
299
+ readonly type: "bool";
300
+ }];
301
+ readonly name: "UpgradeFreezeChanged";
302
+ readonly type: "event";
303
+ }, {
304
+ readonly anonymous: false;
305
+ readonly inputs: readonly [{
306
+ readonly indexed: true;
307
+ readonly internalType: "address";
308
+ readonly name: "oldImplementation";
309
+ readonly type: "address";
310
+ }, {
311
+ readonly indexed: true;
312
+ readonly internalType: "address";
313
+ readonly name: "newImplementation";
314
+ readonly type: "address";
315
+ }];
316
+ readonly name: "UpgradeProposed";
317
+ readonly type: "event";
318
+ }, {
319
+ readonly anonymous: false;
320
+ readonly inputs: readonly [{
321
+ readonly indexed: true;
322
+ readonly internalType: "address";
323
+ readonly name: "oldImplementation";
324
+ readonly type: "address";
325
+ }, {
326
+ readonly indexed: true;
327
+ readonly internalType: "address";
328
+ readonly name: "rollbackImplementation";
329
+ readonly type: "address";
330
+ }, {
331
+ readonly indexed: true;
332
+ readonly internalType: "uint256";
333
+ readonly name: "version";
334
+ readonly type: "uint256";
335
+ }];
336
+ readonly name: "UpgradeRollback";
337
+ readonly type: "event";
338
+ }, {
339
+ readonly anonymous: false;
340
+ readonly inputs: readonly [{
341
+ readonly indexed: true;
342
+ readonly internalType: "address";
343
+ readonly name: "implementation";
344
+ readonly type: "address";
345
+ }];
346
+ readonly name: "Upgraded";
347
+ readonly type: "event";
348
+ }, {
349
+ readonly inputs: readonly [];
350
+ readonly name: "APPROVER_ROLE";
351
+ readonly outputs: readonly [{
352
+ readonly internalType: "bytes32";
353
+ readonly name: "";
354
+ readonly type: "bytes32";
355
+ }];
356
+ readonly stateMutability: "view";
357
+ readonly type: "function";
358
+ }, {
359
+ readonly inputs: readonly [];
360
+ readonly name: "AUDITOR_ROLE";
361
+ readonly outputs: readonly [{
362
+ readonly internalType: "bytes32";
363
+ readonly name: "";
364
+ readonly type: "bytes32";
365
+ }];
366
+ readonly stateMutability: "view";
367
+ readonly type: "function";
368
+ }, {
369
+ readonly inputs: readonly [];
370
+ readonly name: "DEFAULT_ADMIN_ROLE";
371
+ readonly outputs: readonly [{
372
+ readonly internalType: "bytes32";
373
+ readonly name: "";
374
+ readonly type: "bytes32";
375
+ }];
376
+ readonly stateMutability: "view";
377
+ readonly type: "function";
378
+ }, {
379
+ readonly inputs: readonly [];
380
+ readonly name: "EMERGENCY_ROLE";
381
+ readonly outputs: readonly [{
382
+ readonly internalType: "bytes32";
383
+ readonly name: "";
384
+ readonly type: "bytes32";
385
+ }];
386
+ readonly stateMutability: "view";
387
+ readonly type: "function";
388
+ }, {
389
+ readonly inputs: readonly [];
390
+ readonly name: "GOVERNANCE_ROLE";
391
+ readonly outputs: readonly [{
392
+ readonly internalType: "bytes32";
393
+ readonly name: "";
394
+ readonly type: "bytes32";
395
+ }];
396
+ readonly stateMutability: "view";
397
+ readonly type: "function";
398
+ }, {
399
+ readonly inputs: readonly [];
400
+ readonly name: "UPGRADE_INTERFACE_VERSION";
401
+ readonly outputs: readonly [{
402
+ readonly internalType: "string";
403
+ readonly name: "";
404
+ readonly type: "string";
405
+ }];
406
+ readonly stateMutability: "view";
407
+ readonly type: "function";
408
+ }, {
409
+ readonly inputs: readonly [];
410
+ readonly name: "UPGRADE_ROLE";
411
+ readonly outputs: readonly [{
412
+ readonly internalType: "bytes32";
413
+ readonly name: "";
414
+ readonly type: "bytes32";
415
+ }];
416
+ readonly stateMutability: "view";
417
+ readonly type: "function";
418
+ }, {
419
+ readonly inputs: readonly [];
420
+ readonly name: "approvalCount";
421
+ readonly outputs: readonly [{
422
+ readonly internalType: "uint256";
423
+ readonly name: "";
424
+ readonly type: "uint256";
425
+ }];
426
+ readonly stateMutability: "view";
427
+ readonly type: "function";
428
+ }, {
429
+ readonly inputs: readonly [];
430
+ readonly name: "approveUpgrade";
431
+ readonly outputs: readonly [];
432
+ readonly stateMutability: "nonpayable";
433
+ readonly type: "function";
434
+ }, {
435
+ readonly inputs: readonly [];
436
+ readonly name: "approveUpgradeAudit";
437
+ readonly outputs: readonly [];
438
+ readonly stateMutability: "nonpayable";
439
+ readonly type: "function";
440
+ }, {
441
+ readonly inputs: readonly [{
442
+ readonly internalType: "address";
443
+ readonly name: "";
444
+ readonly type: "address";
445
+ }];
446
+ readonly name: "approvedPendingUpgrade";
447
+ readonly outputs: readonly [{
448
+ readonly internalType: "bool";
449
+ readonly name: "";
450
+ readonly type: "bool";
451
+ }];
452
+ readonly stateMutability: "view";
453
+ readonly type: "function";
454
+ }, {
455
+ readonly inputs: readonly [{
456
+ readonly internalType: "address";
457
+ readonly name: "";
458
+ readonly type: "address";
459
+ }, {
460
+ readonly internalType: "address";
461
+ readonly name: "";
462
+ readonly type: "address";
463
+ }];
464
+ readonly name: "approvedUpgradeByImplementation";
465
+ readonly outputs: readonly [{
466
+ readonly internalType: "bool";
467
+ readonly name: "";
468
+ readonly type: "bool";
469
+ }];
470
+ readonly stateMutability: "view";
471
+ readonly type: "function";
472
+ }, {
473
+ readonly inputs: readonly [];
474
+ readonly name: "auditApprovalRequired";
475
+ readonly outputs: readonly [{
476
+ readonly internalType: "bool";
477
+ readonly name: "";
478
+ readonly type: "bool";
479
+ }];
480
+ readonly stateMutability: "view";
481
+ readonly type: "function";
482
+ }, {
483
+ readonly inputs: readonly [];
484
+ readonly name: "cancelUpgrade";
485
+ readonly outputs: readonly [];
486
+ readonly stateMutability: "nonpayable";
487
+ readonly type: "function";
488
+ }, {
489
+ readonly inputs: readonly [{
490
+ readonly internalType: "uint256";
491
+ readonly name: "delay";
492
+ readonly type: "uint256";
493
+ }, {
494
+ readonly internalType: "uint256";
495
+ readonly name: "approvals";
496
+ readonly type: "uint256";
497
+ }, {
498
+ readonly internalType: "bool";
499
+ readonly name: "requireAuditApproval";
500
+ readonly type: "bool";
501
+ }];
502
+ readonly name: "configureUpgradePolicy";
503
+ readonly outputs: readonly [];
504
+ readonly stateMutability: "nonpayable";
505
+ readonly type: "function";
506
+ }, {
507
+ readonly inputs: readonly [];
508
+ readonly name: "currentImplementation";
509
+ readonly outputs: readonly [{
510
+ readonly internalType: "address";
511
+ readonly name: "";
512
+ readonly type: "address";
513
+ }];
514
+ readonly stateMutability: "view";
515
+ readonly type: "function";
516
+ }, {
517
+ readonly inputs: readonly [];
518
+ readonly name: "executeUpgrade";
519
+ readonly outputs: readonly [];
520
+ readonly stateMutability: "nonpayable";
521
+ readonly type: "function";
522
+ }, {
523
+ readonly inputs: readonly [{
524
+ readonly internalType: "bytes";
525
+ readonly name: "data";
526
+ readonly type: "bytes";
527
+ }];
528
+ readonly name: "executeUpgradeAndCall";
529
+ readonly outputs: readonly [];
530
+ readonly stateMutability: "payable";
531
+ readonly type: "function";
532
+ }, {
533
+ readonly inputs: readonly [{
534
+ readonly internalType: "bytes32";
535
+ readonly name: "role";
536
+ readonly type: "bytes32";
537
+ }];
538
+ readonly name: "getRoleAdmin";
539
+ readonly outputs: readonly [{
540
+ readonly internalType: "bytes32";
541
+ readonly name: "";
542
+ readonly type: "bytes32";
543
+ }];
544
+ readonly stateMutability: "view";
545
+ readonly type: "function";
546
+ }, {
547
+ readonly inputs: readonly [];
548
+ readonly name: "getUpgradeState";
549
+ readonly outputs: readonly [{
550
+ readonly internalType: "address";
551
+ readonly name: "proxyAddress";
552
+ readonly type: "address";
553
+ }, {
554
+ readonly internalType: "address";
555
+ readonly name: "activeImplementation";
556
+ readonly type: "address";
557
+ }, {
558
+ readonly internalType: "address";
559
+ readonly name: "queuedImplementation";
560
+ readonly type: "address";
561
+ }, {
562
+ readonly internalType: "bool";
563
+ readonly name: "frozen";
564
+ readonly type: "bool";
565
+ }, {
566
+ readonly internalType: "uint256";
567
+ readonly name: "version";
568
+ readonly type: "uint256";
569
+ }, {
570
+ readonly internalType: "uint256";
571
+ readonly name: "upgradedAt";
572
+ readonly type: "uint256";
573
+ }];
574
+ readonly stateMutability: "view";
575
+ readonly type: "function";
576
+ }, {
577
+ readonly inputs: readonly [{
578
+ readonly internalType: "bytes32";
579
+ readonly name: "role";
580
+ readonly type: "bytes32";
581
+ }, {
582
+ readonly internalType: "address";
583
+ readonly name: "account";
584
+ readonly type: "address";
585
+ }];
586
+ readonly name: "grantRole";
587
+ readonly outputs: readonly [];
588
+ readonly stateMutability: "nonpayable";
589
+ readonly type: "function";
590
+ }, {
591
+ readonly inputs: readonly [{
592
+ readonly internalType: "bytes32";
593
+ readonly name: "role";
594
+ readonly type: "bytes32";
595
+ }, {
596
+ readonly internalType: "address";
597
+ readonly name: "account";
598
+ readonly type: "address";
599
+ }];
600
+ readonly name: "hasRole";
601
+ readonly outputs: readonly [{
602
+ readonly internalType: "bool";
603
+ readonly name: "";
604
+ readonly type: "bool";
605
+ }];
606
+ readonly stateMutability: "view";
607
+ readonly type: "function";
608
+ }, {
609
+ readonly inputs: readonly [{
610
+ readonly internalType: "address";
611
+ readonly name: "admin";
612
+ readonly type: "address";
613
+ }];
614
+ readonly name: "initialize";
615
+ readonly outputs: readonly [];
616
+ readonly stateMutability: "nonpayable";
617
+ readonly type: "function";
618
+ }, {
619
+ readonly inputs: readonly [];
620
+ readonly name: "lastUpgradeTime";
621
+ readonly outputs: readonly [{
622
+ readonly internalType: "uint256";
623
+ readonly name: "";
624
+ readonly type: "uint256";
625
+ }];
626
+ readonly stateMutability: "view";
627
+ readonly type: "function";
628
+ }, {
629
+ readonly inputs: readonly [];
630
+ readonly name: "minApprovals";
631
+ readonly outputs: readonly [{
632
+ readonly internalType: "uint256";
633
+ readonly name: "";
634
+ readonly type: "uint256";
635
+ }];
636
+ readonly stateMutability: "view";
637
+ readonly type: "function";
638
+ }, {
639
+ readonly inputs: readonly [];
640
+ readonly name: "pause";
641
+ readonly outputs: readonly [];
642
+ readonly stateMutability: "nonpayable";
643
+ readonly type: "function";
644
+ }, {
645
+ readonly inputs: readonly [];
646
+ readonly name: "paused";
647
+ readonly outputs: readonly [{
648
+ readonly internalType: "bool";
649
+ readonly name: "";
650
+ readonly type: "bool";
651
+ }];
652
+ readonly stateMutability: "view";
653
+ readonly type: "function";
654
+ }, {
655
+ readonly inputs: readonly [];
656
+ readonly name: "pendingAuditApproved";
657
+ readonly outputs: readonly [{
658
+ readonly internalType: "bool";
659
+ readonly name: "";
660
+ readonly type: "bool";
661
+ }];
662
+ readonly stateMutability: "view";
663
+ readonly type: "function";
664
+ }, {
665
+ readonly inputs: readonly [];
666
+ readonly name: "pendingImplementation";
667
+ readonly outputs: readonly [{
668
+ readonly internalType: "address";
669
+ readonly name: "";
670
+ readonly type: "address";
671
+ }];
672
+ readonly stateMutability: "view";
673
+ readonly type: "function";
674
+ }, {
675
+ readonly inputs: readonly [{
676
+ readonly internalType: "address";
677
+ readonly name: "implementation";
678
+ readonly type: "address";
679
+ }];
680
+ readonly name: "proposeUpgrade";
681
+ readonly outputs: readonly [];
682
+ readonly stateMutability: "nonpayable";
683
+ readonly type: "function";
684
+ }, {
685
+ readonly inputs: readonly [];
686
+ readonly name: "proposedAt";
687
+ readonly outputs: readonly [{
688
+ readonly internalType: "uint256";
689
+ readonly name: "";
690
+ readonly type: "uint256";
691
+ }];
692
+ readonly stateMutability: "view";
693
+ readonly type: "function";
694
+ }, {
695
+ readonly inputs: readonly [];
696
+ readonly name: "proxiableUUID";
697
+ readonly outputs: readonly [{
698
+ readonly internalType: "bytes32";
699
+ readonly name: "";
700
+ readonly type: "bytes32";
701
+ }];
702
+ readonly stateMutability: "view";
703
+ readonly type: "function";
704
+ }, {
705
+ readonly inputs: readonly [];
706
+ readonly name: "proxy";
707
+ readonly outputs: readonly [{
708
+ readonly internalType: "address";
709
+ readonly name: "";
710
+ readonly type: "address";
711
+ }];
712
+ readonly stateMutability: "view";
713
+ readonly type: "function";
714
+ }, {
715
+ readonly inputs: readonly [{
716
+ readonly internalType: "address";
717
+ readonly name: "proxyAddress";
718
+ readonly type: "address";
719
+ }, {
720
+ readonly internalType: "address";
721
+ readonly name: "implementation";
722
+ readonly type: "address";
723
+ }];
724
+ readonly name: "registerProxy";
725
+ readonly outputs: readonly [];
726
+ readonly stateMutability: "nonpayable";
727
+ readonly type: "function";
728
+ }, {
729
+ readonly inputs: readonly [{
730
+ readonly internalType: "bytes32";
731
+ readonly name: "role";
732
+ readonly type: "bytes32";
733
+ }, {
734
+ readonly internalType: "address";
735
+ readonly name: "callerConfirmation";
736
+ readonly type: "address";
737
+ }];
738
+ readonly name: "renounceRole";
739
+ readonly outputs: readonly [];
740
+ readonly stateMutability: "nonpayable";
741
+ readonly type: "function";
742
+ }, {
743
+ readonly inputs: readonly [{
744
+ readonly internalType: "bytes32";
745
+ readonly name: "role";
746
+ readonly type: "bytes32";
747
+ }, {
748
+ readonly internalType: "address";
749
+ readonly name: "account";
750
+ readonly type: "address";
751
+ }];
752
+ readonly name: "revokeRole";
753
+ readonly outputs: readonly [];
754
+ readonly stateMutability: "nonpayable";
755
+ readonly type: "function";
756
+ }, {
757
+ readonly inputs: readonly [];
758
+ readonly name: "rollbackCounter";
759
+ readonly outputs: readonly [{
760
+ readonly internalType: "uint256";
761
+ readonly name: "";
762
+ readonly type: "uint256";
763
+ }];
764
+ readonly stateMutability: "view";
765
+ readonly type: "function";
766
+ }, {
767
+ readonly inputs: readonly [{
768
+ readonly internalType: "uint256";
769
+ readonly name: "";
770
+ readonly type: "uint256";
771
+ }];
772
+ readonly name: "rollbackHistory";
773
+ readonly outputs: readonly [{
774
+ readonly internalType: "address";
775
+ readonly name: "oldImplementation";
776
+ readonly type: "address";
777
+ }, {
778
+ readonly internalType: "address";
779
+ readonly name: "newImplementation";
780
+ readonly type: "address";
781
+ }, {
782
+ readonly internalType: "address";
783
+ readonly name: "executor";
784
+ readonly type: "address";
785
+ }, {
786
+ readonly internalType: "uint256";
787
+ readonly name: "timestamp";
788
+ readonly type: "uint256";
789
+ }, {
790
+ readonly internalType: "bytes";
791
+ readonly name: "data";
792
+ readonly type: "bytes";
793
+ }];
794
+ readonly stateMutability: "view";
795
+ readonly type: "function";
796
+ }, {
797
+ readonly inputs: readonly [{
798
+ readonly internalType: "address";
799
+ readonly name: "rollbackImplementation";
800
+ readonly type: "address";
801
+ }, {
802
+ readonly internalType: "bytes";
803
+ readonly name: "data";
804
+ readonly type: "bytes";
805
+ }];
806
+ readonly name: "rollbackUpgrade";
807
+ readonly outputs: readonly [];
808
+ readonly stateMutability: "payable";
809
+ readonly type: "function";
810
+ }, {
811
+ readonly inputs: readonly [{
812
+ readonly internalType: "bool";
813
+ readonly name: "status";
814
+ readonly type: "bool";
815
+ }];
816
+ readonly name: "setUpgradeFreeze";
817
+ readonly outputs: readonly [];
818
+ readonly stateMutability: "nonpayable";
819
+ readonly type: "function";
820
+ }, {
821
+ readonly inputs: readonly [{
822
+ readonly internalType: "bytes4";
823
+ readonly name: "interfaceId";
824
+ readonly type: "bytes4";
825
+ }];
826
+ readonly name: "supportsInterface";
827
+ readonly outputs: readonly [{
828
+ readonly internalType: "bool";
829
+ readonly name: "";
830
+ readonly type: "bool";
831
+ }];
832
+ readonly stateMutability: "view";
833
+ readonly type: "function";
834
+ }, {
835
+ readonly inputs: readonly [];
836
+ readonly name: "timelockDelay";
837
+ readonly outputs: readonly [{
838
+ readonly internalType: "uint256";
839
+ readonly name: "";
840
+ readonly type: "uint256";
841
+ }];
842
+ readonly stateMutability: "view";
843
+ readonly type: "function";
844
+ }, {
845
+ readonly inputs: readonly [];
846
+ readonly name: "unpause";
847
+ readonly outputs: readonly [];
848
+ readonly stateMutability: "nonpayable";
849
+ readonly type: "function";
850
+ }, {
851
+ readonly inputs: readonly [];
852
+ readonly name: "upgradeCounter";
853
+ readonly outputs: readonly [{
854
+ readonly internalType: "uint256";
855
+ readonly name: "";
856
+ readonly type: "uint256";
857
+ }];
858
+ readonly stateMutability: "view";
859
+ readonly type: "function";
860
+ }, {
861
+ readonly inputs: readonly [{
862
+ readonly internalType: "uint256";
863
+ readonly name: "";
864
+ readonly type: "uint256";
865
+ }];
866
+ readonly name: "upgradeHistory";
867
+ readonly outputs: readonly [{
868
+ readonly internalType: "address";
869
+ readonly name: "oldImplementation";
870
+ readonly type: "address";
871
+ }, {
872
+ readonly internalType: "address";
873
+ readonly name: "newImplementation";
874
+ readonly type: "address";
875
+ }, {
876
+ readonly internalType: "address";
877
+ readonly name: "executor";
878
+ readonly type: "address";
879
+ }, {
880
+ readonly internalType: "uint256";
881
+ readonly name: "timestamp";
882
+ readonly type: "uint256";
883
+ }, {
884
+ readonly internalType: "bytes";
885
+ readonly name: "data";
886
+ readonly type: "bytes";
887
+ }];
888
+ readonly stateMutability: "view";
889
+ readonly type: "function";
890
+ }, {
891
+ readonly inputs: readonly [{
892
+ readonly internalType: "address";
893
+ readonly name: "newImplementation";
894
+ readonly type: "address";
895
+ }, {
896
+ readonly internalType: "bytes";
897
+ readonly name: "data";
898
+ readonly type: "bytes";
899
+ }];
900
+ readonly name: "upgradeToAndCall";
901
+ readonly outputs: readonly [];
902
+ readonly stateMutability: "payable";
903
+ readonly type: "function";
904
+ }, {
905
+ readonly inputs: readonly [];
906
+ readonly name: "upgradesFrozen";
907
+ readonly outputs: readonly [{
908
+ readonly internalType: "bool";
909
+ readonly name: "";
910
+ readonly type: "bool";
911
+ }];
912
+ readonly stateMutability: "view";
913
+ readonly type: "function";
914
+ }];
915
+ /**
916
+ * Type-safe ABI for CodeXProxyAdmin_json
917
+ */
918
+ export type CodeXProxyAdmin_jsonAbi = typeof CodeXProxyAdmin_jsonAbi;
919
+ /**
920
+ * Contract instance type for CodeXProxyAdmin_json
921
+ */
922
+ export type CodeXProxyAdmin_jsonContract = any;
923
+ /**
924
+ * CodeXProxyAdmin_json Contract Class
925
+ *
926
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
927
+ *
928
+ * @example
929
+ * ```typescript
930
+ * import { createPublicClient, createWalletClient, http } from 'viem';
931
+ * import { mainnet } from 'viem/chains';
932
+ * import { CodeXProxyAdmin_json } from 'CodeXProxyAdmin_json';
933
+ *
934
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
935
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
936
+ *
937
+ * const contract = new CodeXProxyAdmin_json('0x...', { publicClient, walletClient });
938
+ *
939
+ * // Read functions
940
+ * const result = await contract.balanceOf('0x...');
941
+ *
942
+ * // Write functions
943
+ * const hash = await contract.transfer('0x...', 1000n);
944
+ *
945
+ * // Simulate transactions (dry-run)
946
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
947
+ * console.log('Gas estimate:', simulation.request.gas);
948
+ *
949
+ * // Watch events
950
+ * const unwatch = contract.watch.Transfer((event) => {
951
+ * console.log('Transfer event:', event);
952
+ * });
953
+ * ```
954
+ */
955
+ export declare class CodeXProxyAdmin_json {
956
+ private contract;
957
+ private contractAddress;
958
+ private publicClient;
959
+ constructor(address: Address, clients: {
960
+ publicClient: PublicClient;
961
+ walletClient?: WalletClient;
962
+ });
963
+ /**
964
+ * Get the contract address
965
+ */
966
+ get address(): Address;
967
+ /**
968
+ * Get the underlying viem contract instance
969
+ */
970
+ getContract(): CodeXProxyAdmin_jsonContract;
971
+ /**
972
+ * APPROVER_ROLE
973
+ * view
974
+ */
975
+ APPROVER_ROLE(): Promise<`0x${string}`>;
976
+ /**
977
+ * AUDITOR_ROLE
978
+ * view
979
+ */
980
+ AUDITOR_ROLE(): Promise<`0x${string}`>;
981
+ /**
982
+ * DEFAULT_ADMIN_ROLE
983
+ * view
984
+ */
985
+ DEFAULT_ADMIN_ROLE(): Promise<`0x${string}`>;
986
+ /**
987
+ * EMERGENCY_ROLE
988
+ * view
989
+ */
990
+ EMERGENCY_ROLE(): Promise<`0x${string}`>;
991
+ /**
992
+ * GOVERNANCE_ROLE
993
+ * view
994
+ */
995
+ GOVERNANCE_ROLE(): Promise<`0x${string}`>;
996
+ /**
997
+ * UPGRADE_INTERFACE_VERSION
998
+ * view
999
+ */
1000
+ UPGRADE_INTERFACE_VERSION(): Promise<string>;
1001
+ /**
1002
+ * UPGRADE_ROLE
1003
+ * view
1004
+ */
1005
+ UPGRADE_ROLE(): Promise<`0x${string}`>;
1006
+ /**
1007
+ * approvalCount
1008
+ * view
1009
+ */
1010
+ approvalCount(): Promise<bigint>;
1011
+ /**
1012
+ * approvedPendingUpgrade
1013
+ * view
1014
+ */
1015
+ approvedPendingUpgrade(arg0: `0x${string}`): Promise<boolean>;
1016
+ /**
1017
+ * approvedUpgradeByImplementation
1018
+ * view
1019
+ */
1020
+ approvedUpgradeByImplementation(arg0: `0x${string}`, arg1: `0x${string}`): Promise<boolean>;
1021
+ /**
1022
+ * auditApprovalRequired
1023
+ * view
1024
+ */
1025
+ auditApprovalRequired(): Promise<boolean>;
1026
+ /**
1027
+ * currentImplementation
1028
+ * view
1029
+ */
1030
+ currentImplementation(): Promise<`0x${string}`>;
1031
+ /**
1032
+ * getRoleAdmin
1033
+ * view
1034
+ */
1035
+ getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`>;
1036
+ /**
1037
+ * getUpgradeState
1038
+ * view
1039
+ */
1040
+ getUpgradeState(): Promise<[`0x${string}`, `0x${string}`, `0x${string}`, boolean, bigint, bigint]>;
1041
+ /**
1042
+ * hasRole
1043
+ * view
1044
+ */
1045
+ hasRole(role: `0x${string}`, account: `0x${string}`): Promise<boolean>;
1046
+ /**
1047
+ * lastUpgradeTime
1048
+ * view
1049
+ */
1050
+ lastUpgradeTime(): Promise<bigint>;
1051
+ /**
1052
+ * minApprovals
1053
+ * view
1054
+ */
1055
+ minApprovals(): Promise<bigint>;
1056
+ /**
1057
+ * paused
1058
+ * view
1059
+ */
1060
+ paused(): Promise<boolean>;
1061
+ /**
1062
+ * pendingAuditApproved
1063
+ * view
1064
+ */
1065
+ pendingAuditApproved(): Promise<boolean>;
1066
+ /**
1067
+ * pendingImplementation
1068
+ * view
1069
+ */
1070
+ pendingImplementation(): Promise<`0x${string}`>;
1071
+ /**
1072
+ * proposedAt
1073
+ * view
1074
+ */
1075
+ proposedAt(): Promise<bigint>;
1076
+ /**
1077
+ * proxiableUUID
1078
+ * view
1079
+ */
1080
+ proxiableUUID(): Promise<`0x${string}`>;
1081
+ /**
1082
+ * proxy
1083
+ * view
1084
+ */
1085
+ proxy(): Promise<`0x${string}`>;
1086
+ /**
1087
+ * rollbackCounter
1088
+ * view
1089
+ */
1090
+ rollbackCounter(): Promise<bigint>;
1091
+ /**
1092
+ * rollbackHistory
1093
+ * view
1094
+ */
1095
+ rollbackHistory(arg0: bigint): Promise<[`0x${string}`, `0x${string}`, `0x${string}`, bigint, `0x${string}`]>;
1096
+ /**
1097
+ * supportsInterface
1098
+ * view
1099
+ */
1100
+ supportsInterface(interfaceId: `0x${string}`): Promise<boolean>;
1101
+ /**
1102
+ * timelockDelay
1103
+ * view
1104
+ */
1105
+ timelockDelay(): Promise<bigint>;
1106
+ /**
1107
+ * upgradeCounter
1108
+ * view
1109
+ */
1110
+ upgradeCounter(): Promise<bigint>;
1111
+ /**
1112
+ * upgradeHistory
1113
+ * view
1114
+ */
1115
+ upgradeHistory(arg0: bigint): Promise<[`0x${string}`, `0x${string}`, `0x${string}`, bigint, `0x${string}`]>;
1116
+ /**
1117
+ * upgradesFrozen
1118
+ * view
1119
+ */
1120
+ upgradesFrozen(): Promise<boolean>;
1121
+ /**
1122
+ * approveUpgrade
1123
+ * nonpayable
1124
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1125
+ */
1126
+ approveUpgrade(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
+ * approveUpgradeAudit
1140
+ * nonpayable
1141
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1142
+ */
1143
+ approveUpgradeAudit(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
+ * cancelUpgrade
1157
+ * nonpayable
1158
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1159
+ */
1160
+ cancelUpgrade(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
+ * configureUpgradePolicy
1174
+ * nonpayable
1175
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1176
+ */
1177
+ configureUpgradePolicy(delay: bigint, approvals: bigint, requireAuditApproval: boolean, 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
+ * executeUpgrade
1191
+ * nonpayable
1192
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1193
+ */
1194
+ executeUpgrade(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
+ * executeUpgradeAndCall
1208
+ * payable
1209
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1210
+ */
1211
+ executeUpgradeAndCall(data: `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
+ * grantRole
1225
+ * nonpayable
1226
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1227
+ */
1228
+ grantRole(role: `0x${string}`, account: `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
+ * initialize
1242
+ * nonpayable
1243
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1244
+ */
1245
+ initialize(admin: `0x${string}`, options?: {
1246
+ accessList?: import('viem').AccessList;
1247
+ authorizationList?: import('viem').AuthorizationList;
1248
+ chain?: import('viem').Chain | null;
1249
+ dataSuffix?: `0x${string}`;
1250
+ gas?: bigint;
1251
+ gasPrice?: bigint;
1252
+ maxFeePerGas?: bigint;
1253
+ maxPriorityFeePerGas?: bigint;
1254
+ nonce?: number;
1255
+ value?: bigint;
1256
+ }): Promise<`0x${string}`>;
1257
+ /**
1258
+ * pause
1259
+ * nonpayable
1260
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1261
+ */
1262
+ pause(options?: {
1263
+ accessList?: import('viem').AccessList;
1264
+ authorizationList?: import('viem').AuthorizationList;
1265
+ chain?: import('viem').Chain | null;
1266
+ dataSuffix?: `0x${string}`;
1267
+ gas?: bigint;
1268
+ gasPrice?: bigint;
1269
+ maxFeePerGas?: bigint;
1270
+ maxPriorityFeePerGas?: bigint;
1271
+ nonce?: number;
1272
+ value?: bigint;
1273
+ }): Promise<`0x${string}`>;
1274
+ /**
1275
+ * proposeUpgrade
1276
+ * nonpayable
1277
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1278
+ */
1279
+ proposeUpgrade(implementation: `0x${string}`, options?: {
1280
+ accessList?: import('viem').AccessList;
1281
+ authorizationList?: import('viem').AuthorizationList;
1282
+ chain?: import('viem').Chain | null;
1283
+ dataSuffix?: `0x${string}`;
1284
+ gas?: bigint;
1285
+ gasPrice?: bigint;
1286
+ maxFeePerGas?: bigint;
1287
+ maxPriorityFeePerGas?: bigint;
1288
+ nonce?: number;
1289
+ value?: bigint;
1290
+ }): Promise<`0x${string}`>;
1291
+ /**
1292
+ * registerProxy
1293
+ * nonpayable
1294
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1295
+ */
1296
+ registerProxy(proxyAddress: `0x${string}`, implementation: `0x${string}`, options?: {
1297
+ accessList?: import('viem').AccessList;
1298
+ authorizationList?: import('viem').AuthorizationList;
1299
+ chain?: import('viem').Chain | null;
1300
+ dataSuffix?: `0x${string}`;
1301
+ gas?: bigint;
1302
+ gasPrice?: bigint;
1303
+ maxFeePerGas?: bigint;
1304
+ maxPriorityFeePerGas?: bigint;
1305
+ nonce?: number;
1306
+ value?: bigint;
1307
+ }): Promise<`0x${string}`>;
1308
+ /**
1309
+ * renounceRole
1310
+ * nonpayable
1311
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1312
+ */
1313
+ renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
1314
+ accessList?: import('viem').AccessList;
1315
+ authorizationList?: import('viem').AuthorizationList;
1316
+ chain?: import('viem').Chain | null;
1317
+ dataSuffix?: `0x${string}`;
1318
+ gas?: bigint;
1319
+ gasPrice?: bigint;
1320
+ maxFeePerGas?: bigint;
1321
+ maxPriorityFeePerGas?: bigint;
1322
+ nonce?: number;
1323
+ value?: bigint;
1324
+ }): Promise<`0x${string}`>;
1325
+ /**
1326
+ * revokeRole
1327
+ * nonpayable
1328
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1329
+ */
1330
+ revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
1331
+ accessList?: import('viem').AccessList;
1332
+ authorizationList?: import('viem').AuthorizationList;
1333
+ chain?: import('viem').Chain | null;
1334
+ dataSuffix?: `0x${string}`;
1335
+ gas?: bigint;
1336
+ gasPrice?: bigint;
1337
+ maxFeePerGas?: bigint;
1338
+ maxPriorityFeePerGas?: bigint;
1339
+ nonce?: number;
1340
+ value?: bigint;
1341
+ }): Promise<`0x${string}`>;
1342
+ /**
1343
+ * rollbackUpgrade
1344
+ * payable
1345
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1346
+ */
1347
+ rollbackUpgrade(rollbackImplementation: `0x${string}`, data: `0x${string}`, options?: {
1348
+ accessList?: import('viem').AccessList;
1349
+ authorizationList?: import('viem').AuthorizationList;
1350
+ chain?: import('viem').Chain | null;
1351
+ dataSuffix?: `0x${string}`;
1352
+ gas?: bigint;
1353
+ gasPrice?: bigint;
1354
+ maxFeePerGas?: bigint;
1355
+ maxPriorityFeePerGas?: bigint;
1356
+ nonce?: number;
1357
+ value?: bigint;
1358
+ }): Promise<`0x${string}`>;
1359
+ /**
1360
+ * setUpgradeFreeze
1361
+ * nonpayable
1362
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1363
+ */
1364
+ setUpgradeFreeze(status: boolean, options?: {
1365
+ accessList?: import('viem').AccessList;
1366
+ authorizationList?: import('viem').AuthorizationList;
1367
+ chain?: import('viem').Chain | null;
1368
+ dataSuffix?: `0x${string}`;
1369
+ gas?: bigint;
1370
+ gasPrice?: bigint;
1371
+ maxFeePerGas?: bigint;
1372
+ maxPriorityFeePerGas?: bigint;
1373
+ nonce?: number;
1374
+ value?: bigint;
1375
+ }): Promise<`0x${string}`>;
1376
+ /**
1377
+ * unpause
1378
+ * nonpayable
1379
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1380
+ */
1381
+ unpause(options?: {
1382
+ accessList?: import('viem').AccessList;
1383
+ authorizationList?: import('viem').AuthorizationList;
1384
+ chain?: import('viem').Chain | null;
1385
+ dataSuffix?: `0x${string}`;
1386
+ gas?: bigint;
1387
+ gasPrice?: bigint;
1388
+ maxFeePerGas?: bigint;
1389
+ maxPriorityFeePerGas?: bigint;
1390
+ nonce?: number;
1391
+ value?: bigint;
1392
+ }): Promise<`0x${string}`>;
1393
+ /**
1394
+ * upgradeToAndCall
1395
+ * payable
1396
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1397
+ */
1398
+ upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
1399
+ accessList?: import('viem').AccessList;
1400
+ authorizationList?: import('viem').AuthorizationList;
1401
+ chain?: import('viem').Chain | null;
1402
+ dataSuffix?: `0x${string}`;
1403
+ gas?: bigint;
1404
+ gasPrice?: bigint;
1405
+ maxFeePerGas?: bigint;
1406
+ maxPriorityFeePerGas?: bigint;
1407
+ nonce?: number;
1408
+ value?: bigint;
1409
+ }): Promise<`0x${string}`>;
1410
+ /**
1411
+ * Simulate contract write operations (dry-run without sending transaction)
1412
+ *
1413
+ * @example
1414
+ * const result = await contract.simulate.transfer('0x...', 1000n);
1415
+ * console.log('Gas estimate:', result.request.gas);
1416
+ * console.log('Would succeed:', result.result);
1417
+ */
1418
+ get simulate(): {
1419
+ /**
1420
+ * Simulate approveUpgrade
1421
+ * Returns gas estimate and result without sending transaction
1422
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1423
+ */
1424
+ approveUpgrade(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 approveUpgradeAudit
1438
+ * Returns gas estimate and result without sending transaction
1439
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1440
+ */
1441
+ approveUpgradeAudit(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 cancelUpgrade
1455
+ * Returns gas estimate and result without sending transaction
1456
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1457
+ */
1458
+ cancelUpgrade(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 configureUpgradePolicy
1472
+ * Returns gas estimate and result without sending transaction
1473
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1474
+ */
1475
+ configureUpgradePolicy(delay: bigint, approvals: bigint, requireAuditApproval: boolean, 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
+ * Simulate executeUpgrade
1489
+ * Returns gas estimate and result without sending transaction
1490
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1491
+ */
1492
+ executeUpgrade(options?: {
1493
+ accessList?: import("viem").AccessList;
1494
+ authorizationList?: import("viem").AuthorizationList;
1495
+ chain?: import("viem").Chain | null;
1496
+ dataSuffix?: `0x${string}`;
1497
+ gas?: bigint;
1498
+ gasPrice?: bigint;
1499
+ maxFeePerGas?: bigint;
1500
+ maxPriorityFeePerGas?: bigint;
1501
+ nonce?: number;
1502
+ value?: bigint;
1503
+ }): Promise<void>;
1504
+ /**
1505
+ * Simulate executeUpgradeAndCall
1506
+ * Returns gas estimate and result without sending transaction
1507
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1508
+ */
1509
+ executeUpgradeAndCall(data: `0x${string}`, options?: {
1510
+ accessList?: import("viem").AccessList;
1511
+ authorizationList?: import("viem").AuthorizationList;
1512
+ chain?: import("viem").Chain | null;
1513
+ dataSuffix?: `0x${string}`;
1514
+ gas?: bigint;
1515
+ gasPrice?: bigint;
1516
+ maxFeePerGas?: bigint;
1517
+ maxPriorityFeePerGas?: bigint;
1518
+ nonce?: number;
1519
+ value?: bigint;
1520
+ }): Promise<void>;
1521
+ /**
1522
+ * Simulate grantRole
1523
+ * Returns gas estimate and result without sending transaction
1524
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1525
+ */
1526
+ grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
1527
+ accessList?: import("viem").AccessList;
1528
+ authorizationList?: import("viem").AuthorizationList;
1529
+ chain?: import("viem").Chain | null;
1530
+ dataSuffix?: `0x${string}`;
1531
+ gas?: bigint;
1532
+ gasPrice?: bigint;
1533
+ maxFeePerGas?: bigint;
1534
+ maxPriorityFeePerGas?: bigint;
1535
+ nonce?: number;
1536
+ value?: bigint;
1537
+ }): Promise<void>;
1538
+ /**
1539
+ * Simulate initialize
1540
+ * Returns gas estimate and result without sending transaction
1541
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1542
+ */
1543
+ initialize(admin: `0x${string}`, options?: {
1544
+ accessList?: import("viem").AccessList;
1545
+ authorizationList?: import("viem").AuthorizationList;
1546
+ chain?: import("viem").Chain | null;
1547
+ dataSuffix?: `0x${string}`;
1548
+ gas?: bigint;
1549
+ gasPrice?: bigint;
1550
+ maxFeePerGas?: bigint;
1551
+ maxPriorityFeePerGas?: bigint;
1552
+ nonce?: number;
1553
+ value?: bigint;
1554
+ }): Promise<void>;
1555
+ /**
1556
+ * Simulate pause
1557
+ * Returns gas estimate and result without sending transaction
1558
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1559
+ */
1560
+ pause(options?: {
1561
+ accessList?: import("viem").AccessList;
1562
+ authorizationList?: import("viem").AuthorizationList;
1563
+ chain?: import("viem").Chain | null;
1564
+ dataSuffix?: `0x${string}`;
1565
+ gas?: bigint;
1566
+ gasPrice?: bigint;
1567
+ maxFeePerGas?: bigint;
1568
+ maxPriorityFeePerGas?: bigint;
1569
+ nonce?: number;
1570
+ value?: bigint;
1571
+ }): Promise<void>;
1572
+ /**
1573
+ * Simulate proposeUpgrade
1574
+ * Returns gas estimate and result without sending transaction
1575
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1576
+ */
1577
+ proposeUpgrade(implementation: `0x${string}`, options?: {
1578
+ accessList?: import("viem").AccessList;
1579
+ authorizationList?: import("viem").AuthorizationList;
1580
+ chain?: import("viem").Chain | null;
1581
+ dataSuffix?: `0x${string}`;
1582
+ gas?: bigint;
1583
+ gasPrice?: bigint;
1584
+ maxFeePerGas?: bigint;
1585
+ maxPriorityFeePerGas?: bigint;
1586
+ nonce?: number;
1587
+ value?: bigint;
1588
+ }): Promise<void>;
1589
+ /**
1590
+ * Simulate registerProxy
1591
+ * Returns gas estimate and result without sending transaction
1592
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1593
+ */
1594
+ registerProxy(proxyAddress: `0x${string}`, implementation: `0x${string}`, options?: {
1595
+ accessList?: import("viem").AccessList;
1596
+ authorizationList?: import("viem").AuthorizationList;
1597
+ chain?: import("viem").Chain | null;
1598
+ dataSuffix?: `0x${string}`;
1599
+ gas?: bigint;
1600
+ gasPrice?: bigint;
1601
+ maxFeePerGas?: bigint;
1602
+ maxPriorityFeePerGas?: bigint;
1603
+ nonce?: number;
1604
+ value?: bigint;
1605
+ }): Promise<void>;
1606
+ /**
1607
+ * Simulate renounceRole
1608
+ * Returns gas estimate and result without sending transaction
1609
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1610
+ */
1611
+ renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
1612
+ accessList?: import("viem").AccessList;
1613
+ authorizationList?: import("viem").AuthorizationList;
1614
+ chain?: import("viem").Chain | null;
1615
+ dataSuffix?: `0x${string}`;
1616
+ gas?: bigint;
1617
+ gasPrice?: bigint;
1618
+ maxFeePerGas?: bigint;
1619
+ maxPriorityFeePerGas?: bigint;
1620
+ nonce?: number;
1621
+ value?: bigint;
1622
+ }): Promise<void>;
1623
+ /**
1624
+ * Simulate revokeRole
1625
+ * Returns gas estimate and result without sending transaction
1626
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1627
+ */
1628
+ revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
1629
+ accessList?: import("viem").AccessList;
1630
+ authorizationList?: import("viem").AuthorizationList;
1631
+ chain?: import("viem").Chain | null;
1632
+ dataSuffix?: `0x${string}`;
1633
+ gas?: bigint;
1634
+ gasPrice?: bigint;
1635
+ maxFeePerGas?: bigint;
1636
+ maxPriorityFeePerGas?: bigint;
1637
+ nonce?: number;
1638
+ value?: bigint;
1639
+ }): Promise<void>;
1640
+ /**
1641
+ * Simulate rollbackUpgrade
1642
+ * Returns gas estimate and result without sending transaction
1643
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1644
+ */
1645
+ rollbackUpgrade(rollbackImplementation: `0x${string}`, data: `0x${string}`, options?: {
1646
+ accessList?: import("viem").AccessList;
1647
+ authorizationList?: import("viem").AuthorizationList;
1648
+ chain?: import("viem").Chain | null;
1649
+ dataSuffix?: `0x${string}`;
1650
+ gas?: bigint;
1651
+ gasPrice?: bigint;
1652
+ maxFeePerGas?: bigint;
1653
+ maxPriorityFeePerGas?: bigint;
1654
+ nonce?: number;
1655
+ value?: bigint;
1656
+ }): Promise<void>;
1657
+ /**
1658
+ * Simulate setUpgradeFreeze
1659
+ * Returns gas estimate and result without sending transaction
1660
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1661
+ */
1662
+ setUpgradeFreeze(status: boolean, options?: {
1663
+ accessList?: import("viem").AccessList;
1664
+ authorizationList?: import("viem").AuthorizationList;
1665
+ chain?: import("viem").Chain | null;
1666
+ dataSuffix?: `0x${string}`;
1667
+ gas?: bigint;
1668
+ gasPrice?: bigint;
1669
+ maxFeePerGas?: bigint;
1670
+ maxPriorityFeePerGas?: bigint;
1671
+ nonce?: number;
1672
+ value?: bigint;
1673
+ }): Promise<void>;
1674
+ /**
1675
+ * Simulate unpause
1676
+ * Returns gas estimate and result without sending transaction
1677
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1678
+ */
1679
+ unpause(options?: {
1680
+ accessList?: import("viem").AccessList;
1681
+ authorizationList?: import("viem").AuthorizationList;
1682
+ chain?: import("viem").Chain | null;
1683
+ dataSuffix?: `0x${string}`;
1684
+ gas?: bigint;
1685
+ gasPrice?: bigint;
1686
+ maxFeePerGas?: bigint;
1687
+ maxPriorityFeePerGas?: bigint;
1688
+ nonce?: number;
1689
+ value?: bigint;
1690
+ }): Promise<void>;
1691
+ /**
1692
+ * Simulate upgradeToAndCall
1693
+ * Returns gas estimate and result without sending transaction
1694
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1695
+ */
1696
+ upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
1697
+ accessList?: import("viem").AccessList;
1698
+ authorizationList?: import("viem").AuthorizationList;
1699
+ chain?: import("viem").Chain | null;
1700
+ dataSuffix?: `0x${string}`;
1701
+ gas?: bigint;
1702
+ gasPrice?: bigint;
1703
+ maxFeePerGas?: bigint;
1704
+ maxPriorityFeePerGas?: bigint;
1705
+ nonce?: number;
1706
+ value?: bigint;
1707
+ }): Promise<void>;
1708
+ };
1709
+ /**
1710
+ * Watch contract events
1711
+ *
1712
+ * @example
1713
+ * // Watch all Transfer events
1714
+ * const unwatch = contract.watch.Transfer((event) => {
1715
+ * console.log('Transfer:', event);
1716
+ * });
1717
+ *
1718
+ * // Stop watching
1719
+ * unwatch();
1720
+ */
1721
+ get watch(): {
1722
+ /**
1723
+ * Watch Initialized events
1724
+ * @param callback Function to call when event is emitted
1725
+ * @param filter Optional filter for indexed parameters
1726
+ * @returns Unwatch function to stop listening
1727
+ */
1728
+ Initialized: (callback: (event: {
1729
+ version: bigint;
1730
+ }) => void) => () => void;
1731
+ /**
1732
+ * Watch Paused events
1733
+ * @param callback Function to call when event is emitted
1734
+ * @param filter Optional filter for indexed parameters
1735
+ * @returns Unwatch function to stop listening
1736
+ */
1737
+ Paused: (callback: (event: {
1738
+ account: `0x${string}`;
1739
+ }) => void) => () => void;
1740
+ /**
1741
+ * Watch ProxyRegistered events
1742
+ * @param callback Function to call when event is emitted
1743
+ * @param filter Optional filter for indexed parameters
1744
+ * @returns Unwatch function to stop listening
1745
+ */
1746
+ ProxyRegistered: (callback: (event: {
1747
+ proxy: `0x${string}`;
1748
+ implementation: `0x${string}`;
1749
+ }) => void, filter?: {
1750
+ proxy: `0x${string}`;
1751
+ implementation: `0x${string}`;
1752
+ }) => () => void;
1753
+ /**
1754
+ * Watch RoleAdminChanged events
1755
+ * @param callback Function to call when event is emitted
1756
+ * @param filter Optional filter for indexed parameters
1757
+ * @returns Unwatch function to stop listening
1758
+ */
1759
+ RoleAdminChanged: (callback: (event: {
1760
+ role: `0x${string}`;
1761
+ previousAdminRole: `0x${string}`;
1762
+ newAdminRole: `0x${string}`;
1763
+ }) => void, filter?: {
1764
+ role: `0x${string}`;
1765
+ previousAdminRole: `0x${string}`;
1766
+ newAdminRole: `0x${string}`;
1767
+ }) => () => void;
1768
+ /**
1769
+ * Watch RoleGranted events
1770
+ * @param callback Function to call when event is emitted
1771
+ * @param filter Optional filter for indexed parameters
1772
+ * @returns Unwatch function to stop listening
1773
+ */
1774
+ RoleGranted: (callback: (event: {
1775
+ role: `0x${string}`;
1776
+ account: `0x${string}`;
1777
+ sender: `0x${string}`;
1778
+ }) => void, filter?: {
1779
+ role: `0x${string}`;
1780
+ account: `0x${string}`;
1781
+ sender: `0x${string}`;
1782
+ }) => () => void;
1783
+ /**
1784
+ * Watch RoleRevoked events
1785
+ * @param callback Function to call when event is emitted
1786
+ * @param filter Optional filter for indexed parameters
1787
+ * @returns Unwatch function to stop listening
1788
+ */
1789
+ RoleRevoked: (callback: (event: {
1790
+ role: `0x${string}`;
1791
+ account: `0x${string}`;
1792
+ sender: `0x${string}`;
1793
+ }) => void, filter?: {
1794
+ role: `0x${string}`;
1795
+ account: `0x${string}`;
1796
+ sender: `0x${string}`;
1797
+ }) => () => void;
1798
+ /**
1799
+ * Watch Unpaused events
1800
+ * @param callback Function to call when event is emitted
1801
+ * @param filter Optional filter for indexed parameters
1802
+ * @returns Unwatch function to stop listening
1803
+ */
1804
+ Unpaused: (callback: (event: {
1805
+ account: `0x${string}`;
1806
+ }) => void) => () => void;
1807
+ /**
1808
+ * Watch UpgradeApproved events
1809
+ * @param callback Function to call when event is emitted
1810
+ * @param filter Optional filter for indexed parameters
1811
+ * @returns Unwatch function to stop listening
1812
+ */
1813
+ UpgradeApproved: (callback: (event: {
1814
+ approver: `0x${string}`;
1815
+ implementation: `0x${string}`;
1816
+ approvalCount: bigint;
1817
+ }) => void, filter?: {
1818
+ approver: `0x${string}`;
1819
+ implementation: `0x${string}`;
1820
+ }) => () => void;
1821
+ /**
1822
+ * Watch UpgradeAuditApproved events
1823
+ * @param callback Function to call when event is emitted
1824
+ * @param filter Optional filter for indexed parameters
1825
+ * @returns Unwatch function to stop listening
1826
+ */
1827
+ UpgradeAuditApproved: (callback: (event: {
1828
+ auditor: `0x${string}`;
1829
+ implementation: `0x${string}`;
1830
+ }) => void, filter?: {
1831
+ auditor: `0x${string}`;
1832
+ implementation: `0x${string}`;
1833
+ }) => () => void;
1834
+ /**
1835
+ * Watch UpgradeCancelled events
1836
+ * @param callback Function to call when event is emitted
1837
+ * @param filter Optional filter for indexed parameters
1838
+ * @returns Unwatch function to stop listening
1839
+ */
1840
+ UpgradeCancelled: (callback: (event: {
1841
+ implementation: `0x${string}`;
1842
+ }) => void, filter?: {
1843
+ implementation: `0x${string}`;
1844
+ }) => () => void;
1845
+ /**
1846
+ * Watch UpgradeExecuted events
1847
+ * @param callback Function to call when event is emitted
1848
+ * @param filter Optional filter for indexed parameters
1849
+ * @returns Unwatch function to stop listening
1850
+ */
1851
+ UpgradeExecuted: (callback: (event: {
1852
+ oldImplementation: `0x${string}`;
1853
+ newImplementation: `0x${string}`;
1854
+ version: bigint;
1855
+ }) => void, filter?: {
1856
+ oldImplementation: `0x${string}`;
1857
+ newImplementation: `0x${string}`;
1858
+ version: bigint;
1859
+ }) => () => void;
1860
+ /**
1861
+ * Watch UpgradeFreezeChanged events
1862
+ * @param callback Function to call when event is emitted
1863
+ * @param filter Optional filter for indexed parameters
1864
+ * @returns Unwatch function to stop listening
1865
+ */
1866
+ UpgradeFreezeChanged: (callback: (event: {
1867
+ status: boolean;
1868
+ }) => void) => () => void;
1869
+ /**
1870
+ * Watch UpgradeProposed events
1871
+ * @param callback Function to call when event is emitted
1872
+ * @param filter Optional filter for indexed parameters
1873
+ * @returns Unwatch function to stop listening
1874
+ */
1875
+ UpgradeProposed: (callback: (event: {
1876
+ oldImplementation: `0x${string}`;
1877
+ newImplementation: `0x${string}`;
1878
+ }) => void, filter?: {
1879
+ oldImplementation: `0x${string}`;
1880
+ newImplementation: `0x${string}`;
1881
+ }) => () => void;
1882
+ /**
1883
+ * Watch UpgradeRollback events
1884
+ * @param callback Function to call when event is emitted
1885
+ * @param filter Optional filter for indexed parameters
1886
+ * @returns Unwatch function to stop listening
1887
+ */
1888
+ UpgradeRollback: (callback: (event: {
1889
+ oldImplementation: `0x${string}`;
1890
+ rollbackImplementation: `0x${string}`;
1891
+ version: bigint;
1892
+ }) => void, filter?: {
1893
+ oldImplementation: `0x${string}`;
1894
+ rollbackImplementation: `0x${string}`;
1895
+ version: bigint;
1896
+ }) => () => void;
1897
+ /**
1898
+ * Watch Upgraded events
1899
+ * @param callback Function to call when event is emitted
1900
+ * @param filter Optional filter for indexed parameters
1901
+ * @returns Unwatch function to stop listening
1902
+ */
1903
+ Upgraded: (callback: (event: {
1904
+ implementation: `0x${string}`;
1905
+ }) => void, filter?: {
1906
+ implementation: `0x${string}`;
1907
+ }) => () => void;
1908
+ };
1909
+ }