@gitmyabi/elpeth 0.0.0-stage → 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,861 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * TUPProxy_json ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const TUPProxy_jsonAbi: readonly [{
8
+ readonly inputs: readonly [{
9
+ readonly internalType: "address";
10
+ readonly name: "_logic";
11
+ readonly type: "address";
12
+ }, {
13
+ readonly internalType: "address";
14
+ readonly name: "admin_";
15
+ readonly type: "address";
16
+ }, {
17
+ readonly internalType: "bytes";
18
+ readonly name: "_data";
19
+ readonly type: "bytes";
20
+ }];
21
+ readonly stateMutability: "payable";
22
+ readonly type: "constructor";
23
+ }, {
24
+ readonly inputs: readonly [];
25
+ readonly name: "CallWhenPaused";
26
+ readonly type: "error";
27
+ }, {
28
+ readonly inputs: readonly [{
29
+ readonly internalType: "uint256";
30
+ readonly name: "providedValue";
31
+ readonly type: "uint256";
32
+ }, {
33
+ readonly internalType: "uint256";
34
+ readonly name: "minimumValue";
35
+ readonly type: "uint256";
36
+ }];
37
+ readonly name: "FreezeTimeoutTooLow";
38
+ readonly type: "error";
39
+ }, {
40
+ readonly inputs: readonly [];
41
+ readonly name: "Frozen";
42
+ readonly type: "error";
43
+ }, {
44
+ readonly inputs: readonly [{
45
+ readonly internalType: "address";
46
+ readonly name: "account";
47
+ readonly type: "address";
48
+ }, {
49
+ readonly internalType: "address";
50
+ readonly name: "expected";
51
+ readonly type: "address";
52
+ }];
53
+ readonly name: "Unauthorized";
54
+ readonly type: "error";
55
+ }, {
56
+ readonly anonymous: false;
57
+ readonly inputs: readonly [{
58
+ readonly indexed: false;
59
+ readonly internalType: "address";
60
+ readonly name: "previousAdmin";
61
+ readonly type: "address";
62
+ }, {
63
+ readonly indexed: false;
64
+ readonly internalType: "address";
65
+ readonly name: "newAdmin";
66
+ readonly type: "address";
67
+ }];
68
+ readonly name: "AdminChanged";
69
+ readonly type: "event";
70
+ }, {
71
+ readonly anonymous: false;
72
+ readonly inputs: readonly [{
73
+ readonly indexed: true;
74
+ readonly internalType: "address";
75
+ readonly name: "beacon";
76
+ readonly type: "address";
77
+ }];
78
+ readonly name: "BeaconUpgraded";
79
+ readonly type: "event";
80
+ }, {
81
+ readonly anonymous: false;
82
+ readonly inputs: readonly [{
83
+ readonly indexed: false;
84
+ readonly internalType: "address";
85
+ readonly name: "previousPauser";
86
+ readonly type: "address";
87
+ }, {
88
+ readonly indexed: false;
89
+ readonly internalType: "address";
90
+ readonly name: "newPauser";
91
+ readonly type: "address";
92
+ }];
93
+ readonly name: "PauserChanged";
94
+ readonly type: "event";
95
+ }, {
96
+ readonly anonymous: false;
97
+ readonly inputs: readonly [{
98
+ readonly indexed: false;
99
+ readonly internalType: "uint256";
100
+ readonly name: "freezeTime";
101
+ readonly type: "uint256";
102
+ }];
103
+ readonly name: "SetFreezeTime";
104
+ readonly type: "event";
105
+ }, {
106
+ readonly anonymous: false;
107
+ readonly inputs: readonly [{
108
+ readonly indexed: true;
109
+ readonly internalType: "address";
110
+ readonly name: "implementation";
111
+ readonly type: "address";
112
+ }];
113
+ readonly name: "Upgraded";
114
+ readonly type: "event";
115
+ }, {
116
+ readonly stateMutability: "payable";
117
+ readonly type: "fallback";
118
+ }, {
119
+ readonly inputs: readonly [];
120
+ readonly name: "admin";
121
+ readonly outputs: readonly [{
122
+ readonly internalType: "address";
123
+ readonly name: "admin_";
124
+ readonly type: "address";
125
+ }];
126
+ readonly stateMutability: "nonpayable";
127
+ readonly type: "function";
128
+ }, {
129
+ readonly inputs: readonly [];
130
+ readonly name: "cancelFreeze";
131
+ readonly outputs: readonly [];
132
+ readonly stateMutability: "nonpayable";
133
+ readonly type: "function";
134
+ }, {
135
+ readonly inputs: readonly [{
136
+ readonly internalType: "address";
137
+ readonly name: "newAdmin";
138
+ readonly type: "address";
139
+ }];
140
+ readonly name: "changeAdmin";
141
+ readonly outputs: readonly [];
142
+ readonly stateMutability: "nonpayable";
143
+ readonly type: "function";
144
+ }, {
145
+ readonly inputs: readonly [{
146
+ readonly internalType: "address";
147
+ readonly name: "newPauser";
148
+ readonly type: "address";
149
+ }];
150
+ readonly name: "changePauser";
151
+ readonly outputs: readonly [];
152
+ readonly stateMutability: "nonpayable";
153
+ readonly type: "function";
154
+ }, {
155
+ readonly inputs: readonly [{
156
+ readonly internalType: "uint256";
157
+ readonly name: "freezeTimeout";
158
+ readonly type: "uint256";
159
+ }];
160
+ readonly name: "freeze";
161
+ readonly outputs: readonly [];
162
+ readonly stateMutability: "nonpayable";
163
+ readonly type: "function";
164
+ }, {
165
+ readonly inputs: readonly [];
166
+ readonly name: "freezeTime";
167
+ readonly outputs: readonly [{
168
+ readonly internalType: "uint256";
169
+ readonly name: "";
170
+ readonly type: "uint256";
171
+ }];
172
+ readonly stateMutability: "nonpayable";
173
+ readonly type: "function";
174
+ }, {
175
+ readonly inputs: readonly [];
176
+ readonly name: "frozen";
177
+ readonly outputs: readonly [{
178
+ readonly internalType: "bool";
179
+ readonly name: "";
180
+ readonly type: "bool";
181
+ }];
182
+ readonly stateMutability: "nonpayable";
183
+ readonly type: "function";
184
+ }, {
185
+ readonly inputs: readonly [];
186
+ readonly name: "implementation";
187
+ readonly outputs: readonly [{
188
+ readonly internalType: "address";
189
+ readonly name: "implementation_";
190
+ readonly type: "address";
191
+ }];
192
+ readonly stateMutability: "nonpayable";
193
+ readonly type: "function";
194
+ }, {
195
+ readonly inputs: readonly [];
196
+ readonly name: "pause";
197
+ readonly outputs: readonly [];
198
+ readonly stateMutability: "nonpayable";
199
+ readonly type: "function";
200
+ }, {
201
+ readonly inputs: readonly [];
202
+ readonly name: "paused";
203
+ readonly outputs: readonly [{
204
+ readonly internalType: "bool";
205
+ readonly name: "";
206
+ readonly type: "bool";
207
+ }];
208
+ readonly stateMutability: "nonpayable";
209
+ readonly type: "function";
210
+ }, {
211
+ readonly inputs: readonly [];
212
+ readonly name: "pauser";
213
+ readonly outputs: readonly [{
214
+ readonly internalType: "address";
215
+ readonly name: "";
216
+ readonly type: "address";
217
+ }];
218
+ readonly stateMutability: "nonpayable";
219
+ readonly type: "function";
220
+ }, {
221
+ readonly inputs: readonly [];
222
+ readonly name: "unpause";
223
+ readonly outputs: readonly [];
224
+ readonly stateMutability: "nonpayable";
225
+ readonly type: "function";
226
+ }, {
227
+ readonly inputs: readonly [{
228
+ readonly internalType: "address";
229
+ readonly name: "newImplementation";
230
+ readonly type: "address";
231
+ }];
232
+ readonly name: "upgradeTo";
233
+ readonly outputs: readonly [];
234
+ readonly stateMutability: "nonpayable";
235
+ readonly type: "function";
236
+ }, {
237
+ readonly inputs: readonly [{
238
+ readonly internalType: "address";
239
+ readonly name: "newImplementation";
240
+ readonly type: "address";
241
+ }, {
242
+ readonly internalType: "bytes";
243
+ readonly name: "data";
244
+ readonly type: "bytes";
245
+ }];
246
+ readonly name: "upgradeToAndCall";
247
+ readonly outputs: readonly [];
248
+ readonly stateMutability: "payable";
249
+ readonly type: "function";
250
+ }, {
251
+ readonly stateMutability: "payable";
252
+ readonly type: "receive";
253
+ }];
254
+ /**
255
+ * Type-safe ABI for TUPProxy_json
256
+ */
257
+ export type TUPProxy_jsonAbi = typeof TUPProxy_jsonAbi;
258
+ /**
259
+ * Contract instance type for TUPProxy_json
260
+ */
261
+ export type TUPProxy_jsonContract = any;
262
+ /**
263
+ * TUPProxy_json Contract Class
264
+ *
265
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
266
+ *
267
+ * @example
268
+ * ```typescript
269
+ * import { createPublicClient, createWalletClient, http } from 'viem';
270
+ * import { mainnet } from 'viem/chains';
271
+ * import { TUPProxy_json } from 'TUPProxy_json';
272
+ *
273
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
274
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
275
+ *
276
+ * const contract = new TUPProxy_json('0x...', { publicClient, walletClient });
277
+ *
278
+ * // Read functions
279
+ * const result = await contract.balanceOf('0x...');
280
+ *
281
+ * // Write functions
282
+ * const hash = await contract.transfer('0x...', 1000n);
283
+ *
284
+ * // Simulate transactions (dry-run)
285
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
286
+ * console.log('Gas estimate:', simulation.request.gas);
287
+ *
288
+ * // Watch events
289
+ * const unwatch = contract.watch.Transfer((event) => {
290
+ * console.log('Transfer event:', event);
291
+ * });
292
+ * ```
293
+ */
294
+ export declare class TUPProxy_json {
295
+ private contract;
296
+ private contractAddress;
297
+ private publicClient;
298
+ constructor(address: Address, clients: {
299
+ publicClient: PublicClient;
300
+ walletClient?: WalletClient;
301
+ });
302
+ /**
303
+ * Get the contract address
304
+ */
305
+ get address(): Address;
306
+ /**
307
+ * Get the underlying viem contract instance
308
+ */
309
+ getContract(): TUPProxy_jsonContract;
310
+ /**
311
+ * admin
312
+ * nonpayable
313
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
314
+ */
315
+ admin(options?: {
316
+ accessList?: import('viem').AccessList;
317
+ authorizationList?: import('viem').AuthorizationList;
318
+ chain?: import('viem').Chain | null;
319
+ dataSuffix?: `0x${string}`;
320
+ gas?: bigint;
321
+ gasPrice?: bigint;
322
+ maxFeePerGas?: bigint;
323
+ maxPriorityFeePerGas?: bigint;
324
+ nonce?: number;
325
+ value?: bigint;
326
+ }): Promise<`0x${string}`>;
327
+ /**
328
+ * cancelFreeze
329
+ * nonpayable
330
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
331
+ */
332
+ cancelFreeze(options?: {
333
+ accessList?: import('viem').AccessList;
334
+ authorizationList?: import('viem').AuthorizationList;
335
+ chain?: import('viem').Chain | null;
336
+ dataSuffix?: `0x${string}`;
337
+ gas?: bigint;
338
+ gasPrice?: bigint;
339
+ maxFeePerGas?: bigint;
340
+ maxPriorityFeePerGas?: bigint;
341
+ nonce?: number;
342
+ value?: bigint;
343
+ }): Promise<`0x${string}`>;
344
+ /**
345
+ * changeAdmin
346
+ * nonpayable
347
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
348
+ */
349
+ changeAdmin(newAdmin: `0x${string}`, options?: {
350
+ accessList?: import('viem').AccessList;
351
+ authorizationList?: import('viem').AuthorizationList;
352
+ chain?: import('viem').Chain | null;
353
+ dataSuffix?: `0x${string}`;
354
+ gas?: bigint;
355
+ gasPrice?: bigint;
356
+ maxFeePerGas?: bigint;
357
+ maxPriorityFeePerGas?: bigint;
358
+ nonce?: number;
359
+ value?: bigint;
360
+ }): Promise<`0x${string}`>;
361
+ /**
362
+ * changePauser
363
+ * nonpayable
364
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
365
+ */
366
+ changePauser(newPauser: `0x${string}`, options?: {
367
+ accessList?: import('viem').AccessList;
368
+ authorizationList?: import('viem').AuthorizationList;
369
+ chain?: import('viem').Chain | null;
370
+ dataSuffix?: `0x${string}`;
371
+ gas?: bigint;
372
+ gasPrice?: bigint;
373
+ maxFeePerGas?: bigint;
374
+ maxPriorityFeePerGas?: bigint;
375
+ nonce?: number;
376
+ value?: bigint;
377
+ }): Promise<`0x${string}`>;
378
+ /**
379
+ * freeze
380
+ * nonpayable
381
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
382
+ */
383
+ freeze(freezeTimeout: bigint, options?: {
384
+ accessList?: import('viem').AccessList;
385
+ authorizationList?: import('viem').AuthorizationList;
386
+ chain?: import('viem').Chain | null;
387
+ dataSuffix?: `0x${string}`;
388
+ gas?: bigint;
389
+ gasPrice?: bigint;
390
+ maxFeePerGas?: bigint;
391
+ maxPriorityFeePerGas?: bigint;
392
+ nonce?: number;
393
+ value?: bigint;
394
+ }): Promise<`0x${string}`>;
395
+ /**
396
+ * freezeTime
397
+ * nonpayable
398
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
399
+ */
400
+ freezeTime(options?: {
401
+ accessList?: import('viem').AccessList;
402
+ authorizationList?: import('viem').AuthorizationList;
403
+ chain?: import('viem').Chain | null;
404
+ dataSuffix?: `0x${string}`;
405
+ gas?: bigint;
406
+ gasPrice?: bigint;
407
+ maxFeePerGas?: bigint;
408
+ maxPriorityFeePerGas?: bigint;
409
+ nonce?: number;
410
+ value?: bigint;
411
+ }): Promise<`0x${string}`>;
412
+ /**
413
+ * frozen
414
+ * nonpayable
415
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
416
+ */
417
+ frozen(options?: {
418
+ accessList?: import('viem').AccessList;
419
+ authorizationList?: import('viem').AuthorizationList;
420
+ chain?: import('viem').Chain | null;
421
+ dataSuffix?: `0x${string}`;
422
+ gas?: bigint;
423
+ gasPrice?: bigint;
424
+ maxFeePerGas?: bigint;
425
+ maxPriorityFeePerGas?: bigint;
426
+ nonce?: number;
427
+ value?: bigint;
428
+ }): Promise<`0x${string}`>;
429
+ /**
430
+ * implementation
431
+ * nonpayable
432
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
433
+ */
434
+ implementation(options?: {
435
+ accessList?: import('viem').AccessList;
436
+ authorizationList?: import('viem').AuthorizationList;
437
+ chain?: import('viem').Chain | null;
438
+ dataSuffix?: `0x${string}`;
439
+ gas?: bigint;
440
+ gasPrice?: bigint;
441
+ maxFeePerGas?: bigint;
442
+ maxPriorityFeePerGas?: bigint;
443
+ nonce?: number;
444
+ value?: bigint;
445
+ }): Promise<`0x${string}`>;
446
+ /**
447
+ * pause
448
+ * nonpayable
449
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
450
+ */
451
+ pause(options?: {
452
+ accessList?: import('viem').AccessList;
453
+ authorizationList?: import('viem').AuthorizationList;
454
+ chain?: import('viem').Chain | null;
455
+ dataSuffix?: `0x${string}`;
456
+ gas?: bigint;
457
+ gasPrice?: bigint;
458
+ maxFeePerGas?: bigint;
459
+ maxPriorityFeePerGas?: bigint;
460
+ nonce?: number;
461
+ value?: bigint;
462
+ }): Promise<`0x${string}`>;
463
+ /**
464
+ * paused
465
+ * nonpayable
466
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
467
+ */
468
+ paused(options?: {
469
+ accessList?: import('viem').AccessList;
470
+ authorizationList?: import('viem').AuthorizationList;
471
+ chain?: import('viem').Chain | null;
472
+ dataSuffix?: `0x${string}`;
473
+ gas?: bigint;
474
+ gasPrice?: bigint;
475
+ maxFeePerGas?: bigint;
476
+ maxPriorityFeePerGas?: bigint;
477
+ nonce?: number;
478
+ value?: bigint;
479
+ }): Promise<`0x${string}`>;
480
+ /**
481
+ * pauser
482
+ * nonpayable
483
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
484
+ */
485
+ pauser(options?: {
486
+ accessList?: import('viem').AccessList;
487
+ authorizationList?: import('viem').AuthorizationList;
488
+ chain?: import('viem').Chain | null;
489
+ dataSuffix?: `0x${string}`;
490
+ gas?: bigint;
491
+ gasPrice?: bigint;
492
+ maxFeePerGas?: bigint;
493
+ maxPriorityFeePerGas?: bigint;
494
+ nonce?: number;
495
+ value?: bigint;
496
+ }): Promise<`0x${string}`>;
497
+ /**
498
+ * unpause
499
+ * nonpayable
500
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
501
+ */
502
+ unpause(options?: {
503
+ accessList?: import('viem').AccessList;
504
+ authorizationList?: import('viem').AuthorizationList;
505
+ chain?: import('viem').Chain | null;
506
+ dataSuffix?: `0x${string}`;
507
+ gas?: bigint;
508
+ gasPrice?: bigint;
509
+ maxFeePerGas?: bigint;
510
+ maxPriorityFeePerGas?: bigint;
511
+ nonce?: number;
512
+ value?: bigint;
513
+ }): Promise<`0x${string}`>;
514
+ /**
515
+ * upgradeTo
516
+ * nonpayable
517
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
518
+ */
519
+ upgradeTo(newImplementation: `0x${string}`, options?: {
520
+ accessList?: import('viem').AccessList;
521
+ authorizationList?: import('viem').AuthorizationList;
522
+ chain?: import('viem').Chain | null;
523
+ dataSuffix?: `0x${string}`;
524
+ gas?: bigint;
525
+ gasPrice?: bigint;
526
+ maxFeePerGas?: bigint;
527
+ maxPriorityFeePerGas?: bigint;
528
+ nonce?: number;
529
+ value?: bigint;
530
+ }): Promise<`0x${string}`>;
531
+ /**
532
+ * upgradeToAndCall
533
+ * payable
534
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
535
+ */
536
+ upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
537
+ accessList?: import('viem').AccessList;
538
+ authorizationList?: import('viem').AuthorizationList;
539
+ chain?: import('viem').Chain | null;
540
+ dataSuffix?: `0x${string}`;
541
+ gas?: bigint;
542
+ gasPrice?: bigint;
543
+ maxFeePerGas?: bigint;
544
+ maxPriorityFeePerGas?: bigint;
545
+ nonce?: number;
546
+ value?: bigint;
547
+ }): Promise<`0x${string}`>;
548
+ /**
549
+ * Simulate contract write operations (dry-run without sending transaction)
550
+ *
551
+ * @example
552
+ * const result = await contract.simulate.transfer('0x...', 1000n);
553
+ * console.log('Gas estimate:', result.request.gas);
554
+ * console.log('Would succeed:', result.result);
555
+ */
556
+ get simulate(): {
557
+ /**
558
+ * Simulate admin
559
+ * Returns gas estimate and result without sending transaction
560
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
561
+ */
562
+ admin(options?: {
563
+ accessList?: import("viem").AccessList;
564
+ authorizationList?: import("viem").AuthorizationList;
565
+ chain?: import("viem").Chain | null;
566
+ dataSuffix?: `0x${string}`;
567
+ gas?: bigint;
568
+ gasPrice?: bigint;
569
+ maxFeePerGas?: bigint;
570
+ maxPriorityFeePerGas?: bigint;
571
+ nonce?: number;
572
+ value?: bigint;
573
+ }): Promise<`0x${string}`>;
574
+ /**
575
+ * Simulate cancelFreeze
576
+ * Returns gas estimate and result without sending transaction
577
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
578
+ */
579
+ cancelFreeze(options?: {
580
+ accessList?: import("viem").AccessList;
581
+ authorizationList?: import("viem").AuthorizationList;
582
+ chain?: import("viem").Chain | null;
583
+ dataSuffix?: `0x${string}`;
584
+ gas?: bigint;
585
+ gasPrice?: bigint;
586
+ maxFeePerGas?: bigint;
587
+ maxPriorityFeePerGas?: bigint;
588
+ nonce?: number;
589
+ value?: bigint;
590
+ }): Promise<void>;
591
+ /**
592
+ * Simulate changeAdmin
593
+ * Returns gas estimate and result without sending transaction
594
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
595
+ */
596
+ changeAdmin(newAdmin: `0x${string}`, options?: {
597
+ accessList?: import("viem").AccessList;
598
+ authorizationList?: import("viem").AuthorizationList;
599
+ chain?: import("viem").Chain | null;
600
+ dataSuffix?: `0x${string}`;
601
+ gas?: bigint;
602
+ gasPrice?: bigint;
603
+ maxFeePerGas?: bigint;
604
+ maxPriorityFeePerGas?: bigint;
605
+ nonce?: number;
606
+ value?: bigint;
607
+ }): Promise<void>;
608
+ /**
609
+ * Simulate changePauser
610
+ * Returns gas estimate and result without sending transaction
611
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
612
+ */
613
+ changePauser(newPauser: `0x${string}`, options?: {
614
+ accessList?: import("viem").AccessList;
615
+ authorizationList?: import("viem").AuthorizationList;
616
+ chain?: import("viem").Chain | null;
617
+ dataSuffix?: `0x${string}`;
618
+ gas?: bigint;
619
+ gasPrice?: bigint;
620
+ maxFeePerGas?: bigint;
621
+ maxPriorityFeePerGas?: bigint;
622
+ nonce?: number;
623
+ value?: bigint;
624
+ }): Promise<void>;
625
+ /**
626
+ * Simulate freeze
627
+ * Returns gas estimate and result without sending transaction
628
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
629
+ */
630
+ freeze(freezeTimeout: bigint, options?: {
631
+ accessList?: import("viem").AccessList;
632
+ authorizationList?: import("viem").AuthorizationList;
633
+ chain?: import("viem").Chain | null;
634
+ dataSuffix?: `0x${string}`;
635
+ gas?: bigint;
636
+ gasPrice?: bigint;
637
+ maxFeePerGas?: bigint;
638
+ maxPriorityFeePerGas?: bigint;
639
+ nonce?: number;
640
+ value?: bigint;
641
+ }): Promise<void>;
642
+ /**
643
+ * Simulate freezeTime
644
+ * Returns gas estimate and result without sending transaction
645
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
646
+ */
647
+ freezeTime(options?: {
648
+ accessList?: import("viem").AccessList;
649
+ authorizationList?: import("viem").AuthorizationList;
650
+ chain?: import("viem").Chain | null;
651
+ dataSuffix?: `0x${string}`;
652
+ gas?: bigint;
653
+ gasPrice?: bigint;
654
+ maxFeePerGas?: bigint;
655
+ maxPriorityFeePerGas?: bigint;
656
+ nonce?: number;
657
+ value?: bigint;
658
+ }): Promise<bigint>;
659
+ /**
660
+ * Simulate frozen
661
+ * Returns gas estimate and result without sending transaction
662
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
663
+ */
664
+ frozen(options?: {
665
+ accessList?: import("viem").AccessList;
666
+ authorizationList?: import("viem").AuthorizationList;
667
+ chain?: import("viem").Chain | null;
668
+ dataSuffix?: `0x${string}`;
669
+ gas?: bigint;
670
+ gasPrice?: bigint;
671
+ maxFeePerGas?: bigint;
672
+ maxPriorityFeePerGas?: bigint;
673
+ nonce?: number;
674
+ value?: bigint;
675
+ }): Promise<boolean>;
676
+ /**
677
+ * Simulate implementation
678
+ * Returns gas estimate and result without sending transaction
679
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
680
+ */
681
+ implementation(options?: {
682
+ accessList?: import("viem").AccessList;
683
+ authorizationList?: import("viem").AuthorizationList;
684
+ chain?: import("viem").Chain | null;
685
+ dataSuffix?: `0x${string}`;
686
+ gas?: bigint;
687
+ gasPrice?: bigint;
688
+ maxFeePerGas?: bigint;
689
+ maxPriorityFeePerGas?: bigint;
690
+ nonce?: number;
691
+ value?: bigint;
692
+ }): Promise<`0x${string}`>;
693
+ /**
694
+ * Simulate pause
695
+ * Returns gas estimate and result without sending transaction
696
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
697
+ */
698
+ pause(options?: {
699
+ accessList?: import("viem").AccessList;
700
+ authorizationList?: import("viem").AuthorizationList;
701
+ chain?: import("viem").Chain | null;
702
+ dataSuffix?: `0x${string}`;
703
+ gas?: bigint;
704
+ gasPrice?: bigint;
705
+ maxFeePerGas?: bigint;
706
+ maxPriorityFeePerGas?: bigint;
707
+ nonce?: number;
708
+ value?: bigint;
709
+ }): Promise<void>;
710
+ /**
711
+ * Simulate paused
712
+ * Returns gas estimate and result without sending transaction
713
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
714
+ */
715
+ paused(options?: {
716
+ accessList?: import("viem").AccessList;
717
+ authorizationList?: import("viem").AuthorizationList;
718
+ chain?: import("viem").Chain | null;
719
+ dataSuffix?: `0x${string}`;
720
+ gas?: bigint;
721
+ gasPrice?: bigint;
722
+ maxFeePerGas?: bigint;
723
+ maxPriorityFeePerGas?: bigint;
724
+ nonce?: number;
725
+ value?: bigint;
726
+ }): Promise<boolean>;
727
+ /**
728
+ * Simulate pauser
729
+ * Returns gas estimate and result without sending transaction
730
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
731
+ */
732
+ pauser(options?: {
733
+ accessList?: import("viem").AccessList;
734
+ authorizationList?: import("viem").AuthorizationList;
735
+ chain?: import("viem").Chain | null;
736
+ dataSuffix?: `0x${string}`;
737
+ gas?: bigint;
738
+ gasPrice?: bigint;
739
+ maxFeePerGas?: bigint;
740
+ maxPriorityFeePerGas?: bigint;
741
+ nonce?: number;
742
+ value?: bigint;
743
+ }): Promise<`0x${string}`>;
744
+ /**
745
+ * Simulate unpause
746
+ * Returns gas estimate and result without sending transaction
747
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
748
+ */
749
+ unpause(options?: {
750
+ accessList?: import("viem").AccessList;
751
+ authorizationList?: import("viem").AuthorizationList;
752
+ chain?: import("viem").Chain | null;
753
+ dataSuffix?: `0x${string}`;
754
+ gas?: bigint;
755
+ gasPrice?: bigint;
756
+ maxFeePerGas?: bigint;
757
+ maxPriorityFeePerGas?: bigint;
758
+ nonce?: number;
759
+ value?: bigint;
760
+ }): Promise<void>;
761
+ /**
762
+ * Simulate upgradeTo
763
+ * Returns gas estimate and result without sending transaction
764
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
765
+ */
766
+ upgradeTo(newImplementation: `0x${string}`, options?: {
767
+ accessList?: import("viem").AccessList;
768
+ authorizationList?: import("viem").AuthorizationList;
769
+ chain?: import("viem").Chain | null;
770
+ dataSuffix?: `0x${string}`;
771
+ gas?: bigint;
772
+ gasPrice?: bigint;
773
+ maxFeePerGas?: bigint;
774
+ maxPriorityFeePerGas?: bigint;
775
+ nonce?: number;
776
+ value?: bigint;
777
+ }): Promise<void>;
778
+ /**
779
+ * Simulate upgradeToAndCall
780
+ * Returns gas estimate and result without sending transaction
781
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
782
+ */
783
+ upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
784
+ accessList?: import("viem").AccessList;
785
+ authorizationList?: import("viem").AuthorizationList;
786
+ chain?: import("viem").Chain | null;
787
+ dataSuffix?: `0x${string}`;
788
+ gas?: bigint;
789
+ gasPrice?: bigint;
790
+ maxFeePerGas?: bigint;
791
+ maxPriorityFeePerGas?: bigint;
792
+ nonce?: number;
793
+ value?: bigint;
794
+ }): Promise<void>;
795
+ };
796
+ /**
797
+ * Watch contract events
798
+ *
799
+ * @example
800
+ * // Watch all Transfer events
801
+ * const unwatch = contract.watch.Transfer((event) => {
802
+ * console.log('Transfer:', event);
803
+ * });
804
+ *
805
+ * // Stop watching
806
+ * unwatch();
807
+ */
808
+ get watch(): {
809
+ /**
810
+ * Watch AdminChanged events
811
+ * @param callback Function to call when event is emitted
812
+ * @param filter Optional filter for indexed parameters
813
+ * @returns Unwatch function to stop listening
814
+ */
815
+ AdminChanged: (callback: (event: {
816
+ previousAdmin: `0x${string}`;
817
+ newAdmin: `0x${string}`;
818
+ }) => void) => () => void;
819
+ /**
820
+ * Watch BeaconUpgraded events
821
+ * @param callback Function to call when event is emitted
822
+ * @param filter Optional filter for indexed parameters
823
+ * @returns Unwatch function to stop listening
824
+ */
825
+ BeaconUpgraded: (callback: (event: {
826
+ beacon: `0x${string}`;
827
+ }) => void, filter?: {
828
+ beacon: `0x${string}`;
829
+ }) => () => void;
830
+ /**
831
+ * Watch PauserChanged events
832
+ * @param callback Function to call when event is emitted
833
+ * @param filter Optional filter for indexed parameters
834
+ * @returns Unwatch function to stop listening
835
+ */
836
+ PauserChanged: (callback: (event: {
837
+ previousPauser: `0x${string}`;
838
+ newPauser: `0x${string}`;
839
+ }) => void) => () => void;
840
+ /**
841
+ * Watch SetFreezeTime events
842
+ * @param callback Function to call when event is emitted
843
+ * @param filter Optional filter for indexed parameters
844
+ * @returns Unwatch function to stop listening
845
+ */
846
+ SetFreezeTime: (callback: (event: {
847
+ freezeTime: bigint;
848
+ }) => void) => () => void;
849
+ /**
850
+ * Watch Upgraded events
851
+ * @param callback Function to call when event is emitted
852
+ * @param filter Optional filter for indexed parameters
853
+ * @returns Unwatch function to stop listening
854
+ */
855
+ Upgraded: (callback: (event: {
856
+ implementation: `0x${string}`;
857
+ }) => void, filter?: {
858
+ implementation: `0x${string}`;
859
+ }) => () => void;
860
+ };
861
+ }