@gitmyabi-stg/rez 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,1099 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * Checkpoints.Checkpoint208 struct type
4
+ */
5
+ export type Checkpoints_Checkpoint208 = {
6
+ _key: bigint;
7
+ _value: bigint;
8
+ };
9
+ /**
10
+ * Renzo ABI
11
+ *
12
+ * This ABI is typed using viem's type system for full type safety.
13
+ */
14
+ export declare const RenzoAbi: readonly [{
15
+ readonly inputs: readonly [];
16
+ readonly stateMutability: "nonpayable";
17
+ readonly type: "constructor";
18
+ }, {
19
+ readonly inputs: readonly [];
20
+ readonly name: "CheckpointUnorderedInsertion";
21
+ readonly type: "error";
22
+ }, {
23
+ readonly inputs: readonly [];
24
+ readonly name: "ECDSAInvalidSignature";
25
+ readonly type: "error";
26
+ }, {
27
+ readonly inputs: readonly [{
28
+ readonly internalType: "uint256";
29
+ readonly name: "length";
30
+ readonly type: "uint256";
31
+ }];
32
+ readonly name: "ECDSAInvalidSignatureLength";
33
+ readonly type: "error";
34
+ }, {
35
+ readonly inputs: readonly [{
36
+ readonly internalType: "bytes32";
37
+ readonly name: "s";
38
+ readonly type: "bytes32";
39
+ }];
40
+ readonly name: "ECDSAInvalidSignatureS";
41
+ readonly type: "error";
42
+ }, {
43
+ readonly inputs: readonly [{
44
+ readonly internalType: "uint256";
45
+ readonly name: "increasedSupply";
46
+ readonly type: "uint256";
47
+ }, {
48
+ readonly internalType: "uint256";
49
+ readonly name: "cap";
50
+ readonly type: "uint256";
51
+ }];
52
+ readonly name: "ERC20ExceededSafeSupply";
53
+ readonly type: "error";
54
+ }, {
55
+ readonly inputs: readonly [{
56
+ readonly internalType: "address";
57
+ readonly name: "spender";
58
+ readonly type: "address";
59
+ }, {
60
+ readonly internalType: "uint256";
61
+ readonly name: "allowance";
62
+ readonly type: "uint256";
63
+ }, {
64
+ readonly internalType: "uint256";
65
+ readonly name: "needed";
66
+ readonly type: "uint256";
67
+ }];
68
+ readonly name: "ERC20InsufficientAllowance";
69
+ readonly type: "error";
70
+ }, {
71
+ readonly inputs: readonly [{
72
+ readonly internalType: "address";
73
+ readonly name: "sender";
74
+ readonly type: "address";
75
+ }, {
76
+ readonly internalType: "uint256";
77
+ readonly name: "balance";
78
+ readonly type: "uint256";
79
+ }, {
80
+ readonly internalType: "uint256";
81
+ readonly name: "needed";
82
+ readonly type: "uint256";
83
+ }];
84
+ readonly name: "ERC20InsufficientBalance";
85
+ readonly type: "error";
86
+ }, {
87
+ readonly inputs: readonly [{
88
+ readonly internalType: "address";
89
+ readonly name: "approver";
90
+ readonly type: "address";
91
+ }];
92
+ readonly name: "ERC20InvalidApprover";
93
+ readonly type: "error";
94
+ }, {
95
+ readonly inputs: readonly [{
96
+ readonly internalType: "address";
97
+ readonly name: "receiver";
98
+ readonly type: "address";
99
+ }];
100
+ readonly name: "ERC20InvalidReceiver";
101
+ readonly type: "error";
102
+ }, {
103
+ readonly inputs: readonly [{
104
+ readonly internalType: "address";
105
+ readonly name: "sender";
106
+ readonly type: "address";
107
+ }];
108
+ readonly name: "ERC20InvalidSender";
109
+ readonly type: "error";
110
+ }, {
111
+ readonly inputs: readonly [{
112
+ readonly internalType: "address";
113
+ readonly name: "spender";
114
+ readonly type: "address";
115
+ }];
116
+ readonly name: "ERC20InvalidSpender";
117
+ readonly type: "error";
118
+ }, {
119
+ readonly inputs: readonly [{
120
+ readonly internalType: "uint256";
121
+ readonly name: "deadline";
122
+ readonly type: "uint256";
123
+ }];
124
+ readonly name: "ERC2612ExpiredSignature";
125
+ readonly type: "error";
126
+ }, {
127
+ readonly inputs: readonly [{
128
+ readonly internalType: "address";
129
+ readonly name: "signer";
130
+ readonly type: "address";
131
+ }, {
132
+ readonly internalType: "address";
133
+ readonly name: "owner";
134
+ readonly type: "address";
135
+ }];
136
+ readonly name: "ERC2612InvalidSigner";
137
+ readonly type: "error";
138
+ }, {
139
+ readonly inputs: readonly [{
140
+ readonly internalType: "uint256";
141
+ readonly name: "timepoint";
142
+ readonly type: "uint256";
143
+ }, {
144
+ readonly internalType: "uint48";
145
+ readonly name: "clock";
146
+ readonly type: "uint48";
147
+ }];
148
+ readonly name: "ERC5805FutureLookup";
149
+ readonly type: "error";
150
+ }, {
151
+ readonly inputs: readonly [];
152
+ readonly name: "ERC6372InconsistentClock";
153
+ readonly type: "error";
154
+ }, {
155
+ readonly inputs: readonly [{
156
+ readonly internalType: "address";
157
+ readonly name: "account";
158
+ readonly type: "address";
159
+ }, {
160
+ readonly internalType: "uint256";
161
+ readonly name: "currentNonce";
162
+ readonly type: "uint256";
163
+ }];
164
+ readonly name: "InvalidAccountNonce";
165
+ readonly type: "error";
166
+ }, {
167
+ readonly inputs: readonly [];
168
+ readonly name: "InvalidShortString";
169
+ readonly type: "error";
170
+ }, {
171
+ readonly inputs: readonly [{
172
+ readonly internalType: "uint8";
173
+ readonly name: "bits";
174
+ readonly type: "uint8";
175
+ }, {
176
+ readonly internalType: "uint256";
177
+ readonly name: "value";
178
+ readonly type: "uint256";
179
+ }];
180
+ readonly name: "SafeCastOverflowedUintDowncast";
181
+ readonly type: "error";
182
+ }, {
183
+ readonly inputs: readonly [{
184
+ readonly internalType: "string";
185
+ readonly name: "str";
186
+ readonly type: "string";
187
+ }];
188
+ readonly name: "StringTooLong";
189
+ readonly type: "error";
190
+ }, {
191
+ readonly inputs: readonly [{
192
+ readonly internalType: "uint256";
193
+ readonly name: "expiry";
194
+ readonly type: "uint256";
195
+ }];
196
+ readonly name: "VotesExpiredSignature";
197
+ readonly type: "error";
198
+ }, {
199
+ readonly anonymous: false;
200
+ readonly inputs: readonly [{
201
+ readonly indexed: true;
202
+ readonly internalType: "address";
203
+ readonly name: "owner";
204
+ readonly type: "address";
205
+ }, {
206
+ readonly indexed: true;
207
+ readonly internalType: "address";
208
+ readonly name: "spender";
209
+ readonly type: "address";
210
+ }, {
211
+ readonly indexed: false;
212
+ readonly internalType: "uint256";
213
+ readonly name: "value";
214
+ readonly type: "uint256";
215
+ }];
216
+ readonly name: "Approval";
217
+ readonly type: "event";
218
+ }, {
219
+ readonly anonymous: false;
220
+ readonly inputs: readonly [{
221
+ readonly indexed: true;
222
+ readonly internalType: "address";
223
+ readonly name: "delegator";
224
+ readonly type: "address";
225
+ }, {
226
+ readonly indexed: true;
227
+ readonly internalType: "address";
228
+ readonly name: "fromDelegate";
229
+ readonly type: "address";
230
+ }, {
231
+ readonly indexed: true;
232
+ readonly internalType: "address";
233
+ readonly name: "toDelegate";
234
+ readonly type: "address";
235
+ }];
236
+ readonly name: "DelegateChanged";
237
+ readonly type: "event";
238
+ }, {
239
+ readonly anonymous: false;
240
+ readonly inputs: readonly [{
241
+ readonly indexed: true;
242
+ readonly internalType: "address";
243
+ readonly name: "delegate";
244
+ readonly type: "address";
245
+ }, {
246
+ readonly indexed: false;
247
+ readonly internalType: "uint256";
248
+ readonly name: "previousVotes";
249
+ readonly type: "uint256";
250
+ }, {
251
+ readonly indexed: false;
252
+ readonly internalType: "uint256";
253
+ readonly name: "newVotes";
254
+ readonly type: "uint256";
255
+ }];
256
+ readonly name: "DelegateVotesChanged";
257
+ readonly type: "event";
258
+ }, {
259
+ readonly anonymous: false;
260
+ readonly inputs: readonly [];
261
+ readonly name: "EIP712DomainChanged";
262
+ readonly type: "event";
263
+ }, {
264
+ readonly anonymous: false;
265
+ readonly inputs: readonly [{
266
+ readonly indexed: true;
267
+ readonly internalType: "address";
268
+ readonly name: "from";
269
+ readonly type: "address";
270
+ }, {
271
+ readonly indexed: true;
272
+ readonly internalType: "address";
273
+ readonly name: "to";
274
+ readonly type: "address";
275
+ }, {
276
+ readonly indexed: false;
277
+ readonly internalType: "uint256";
278
+ readonly name: "value";
279
+ readonly type: "uint256";
280
+ }];
281
+ readonly name: "Transfer";
282
+ readonly type: "event";
283
+ }, {
284
+ readonly inputs: readonly [];
285
+ readonly name: "CLOCK_MODE";
286
+ readonly outputs: readonly [{
287
+ readonly internalType: "string";
288
+ readonly name: "";
289
+ readonly type: "string";
290
+ }];
291
+ readonly stateMutability: "view";
292
+ readonly type: "function";
293
+ }, {
294
+ readonly inputs: readonly [];
295
+ readonly name: "DOMAIN_SEPARATOR";
296
+ readonly outputs: readonly [{
297
+ readonly internalType: "bytes32";
298
+ readonly name: "";
299
+ readonly type: "bytes32";
300
+ }];
301
+ readonly stateMutability: "view";
302
+ readonly type: "function";
303
+ }, {
304
+ readonly inputs: readonly [{
305
+ readonly internalType: "address";
306
+ readonly name: "owner";
307
+ readonly type: "address";
308
+ }, {
309
+ readonly internalType: "address";
310
+ readonly name: "spender";
311
+ readonly type: "address";
312
+ }];
313
+ readonly name: "allowance";
314
+ readonly outputs: readonly [{
315
+ readonly internalType: "uint256";
316
+ readonly name: "";
317
+ readonly type: "uint256";
318
+ }];
319
+ readonly stateMutability: "view";
320
+ readonly type: "function";
321
+ }, {
322
+ readonly inputs: readonly [{
323
+ readonly internalType: "address";
324
+ readonly name: "spender";
325
+ readonly type: "address";
326
+ }, {
327
+ readonly internalType: "uint256";
328
+ readonly name: "value";
329
+ readonly type: "uint256";
330
+ }];
331
+ readonly name: "approve";
332
+ readonly outputs: readonly [{
333
+ readonly internalType: "bool";
334
+ readonly name: "";
335
+ readonly type: "bool";
336
+ }];
337
+ readonly stateMutability: "nonpayable";
338
+ readonly type: "function";
339
+ }, {
340
+ readonly inputs: readonly [{
341
+ readonly internalType: "address";
342
+ readonly name: "account";
343
+ readonly type: "address";
344
+ }];
345
+ readonly name: "balanceOf";
346
+ readonly outputs: readonly [{
347
+ readonly internalType: "uint256";
348
+ readonly name: "";
349
+ readonly type: "uint256";
350
+ }];
351
+ readonly stateMutability: "view";
352
+ readonly type: "function";
353
+ }, {
354
+ readonly inputs: readonly [{
355
+ readonly internalType: "address";
356
+ readonly name: "account";
357
+ readonly type: "address";
358
+ }, {
359
+ readonly internalType: "uint32";
360
+ readonly name: "pos";
361
+ readonly type: "uint32";
362
+ }];
363
+ readonly name: "checkpoints";
364
+ readonly outputs: readonly [{
365
+ readonly components: readonly [{
366
+ readonly internalType: "uint48";
367
+ readonly name: "_key";
368
+ readonly type: "uint48";
369
+ }, {
370
+ readonly internalType: "uint208";
371
+ readonly name: "_value";
372
+ readonly type: "uint208";
373
+ }];
374
+ readonly internalType: "struct Checkpoints.Checkpoint208";
375
+ readonly name: "";
376
+ readonly type: "tuple";
377
+ }];
378
+ readonly stateMutability: "view";
379
+ readonly type: "function";
380
+ }, {
381
+ readonly inputs: readonly [];
382
+ readonly name: "clock";
383
+ readonly outputs: readonly [{
384
+ readonly internalType: "uint48";
385
+ readonly name: "";
386
+ readonly type: "uint48";
387
+ }];
388
+ readonly stateMutability: "view";
389
+ readonly type: "function";
390
+ }, {
391
+ readonly inputs: readonly [];
392
+ readonly name: "decimals";
393
+ readonly outputs: readonly [{
394
+ readonly internalType: "uint8";
395
+ readonly name: "";
396
+ readonly type: "uint8";
397
+ }];
398
+ readonly stateMutability: "view";
399
+ readonly type: "function";
400
+ }, {
401
+ readonly inputs: readonly [{
402
+ readonly internalType: "address";
403
+ readonly name: "delegatee";
404
+ readonly type: "address";
405
+ }];
406
+ readonly name: "delegate";
407
+ readonly outputs: readonly [];
408
+ readonly stateMutability: "nonpayable";
409
+ readonly type: "function";
410
+ }, {
411
+ readonly inputs: readonly [{
412
+ readonly internalType: "address";
413
+ readonly name: "delegatee";
414
+ readonly type: "address";
415
+ }, {
416
+ readonly internalType: "uint256";
417
+ readonly name: "nonce";
418
+ readonly type: "uint256";
419
+ }, {
420
+ readonly internalType: "uint256";
421
+ readonly name: "expiry";
422
+ readonly type: "uint256";
423
+ }, {
424
+ readonly internalType: "uint8";
425
+ readonly name: "v";
426
+ readonly type: "uint8";
427
+ }, {
428
+ readonly internalType: "bytes32";
429
+ readonly name: "r";
430
+ readonly type: "bytes32";
431
+ }, {
432
+ readonly internalType: "bytes32";
433
+ readonly name: "s";
434
+ readonly type: "bytes32";
435
+ }];
436
+ readonly name: "delegateBySig";
437
+ readonly outputs: readonly [];
438
+ readonly stateMutability: "nonpayable";
439
+ readonly type: "function";
440
+ }, {
441
+ readonly inputs: readonly [{
442
+ readonly internalType: "address";
443
+ readonly name: "account";
444
+ readonly type: "address";
445
+ }];
446
+ readonly name: "delegates";
447
+ readonly outputs: readonly [{
448
+ readonly internalType: "address";
449
+ readonly name: "";
450
+ readonly type: "address";
451
+ }];
452
+ readonly stateMutability: "view";
453
+ readonly type: "function";
454
+ }, {
455
+ readonly inputs: readonly [];
456
+ readonly name: "eip712Domain";
457
+ readonly outputs: readonly [{
458
+ readonly internalType: "bytes1";
459
+ readonly name: "fields";
460
+ readonly type: "bytes1";
461
+ }, {
462
+ readonly internalType: "string";
463
+ readonly name: "name";
464
+ readonly type: "string";
465
+ }, {
466
+ readonly internalType: "string";
467
+ readonly name: "version";
468
+ readonly type: "string";
469
+ }, {
470
+ readonly internalType: "uint256";
471
+ readonly name: "chainId";
472
+ readonly type: "uint256";
473
+ }, {
474
+ readonly internalType: "address";
475
+ readonly name: "verifyingContract";
476
+ readonly type: "address";
477
+ }, {
478
+ readonly internalType: "bytes32";
479
+ readonly name: "salt";
480
+ readonly type: "bytes32";
481
+ }, {
482
+ readonly internalType: "uint256[]";
483
+ readonly name: "extensions";
484
+ readonly type: "uint256[]";
485
+ }];
486
+ readonly stateMutability: "view";
487
+ readonly type: "function";
488
+ }, {
489
+ readonly inputs: readonly [{
490
+ readonly internalType: "uint256";
491
+ readonly name: "timepoint";
492
+ readonly type: "uint256";
493
+ }];
494
+ readonly name: "getPastTotalSupply";
495
+ readonly outputs: readonly [{
496
+ readonly internalType: "uint256";
497
+ readonly name: "";
498
+ readonly type: "uint256";
499
+ }];
500
+ readonly stateMutability: "view";
501
+ readonly type: "function";
502
+ }, {
503
+ readonly inputs: readonly [{
504
+ readonly internalType: "address";
505
+ readonly name: "account";
506
+ readonly type: "address";
507
+ }, {
508
+ readonly internalType: "uint256";
509
+ readonly name: "timepoint";
510
+ readonly type: "uint256";
511
+ }];
512
+ readonly name: "getPastVotes";
513
+ readonly outputs: readonly [{
514
+ readonly internalType: "uint256";
515
+ readonly name: "";
516
+ readonly type: "uint256";
517
+ }];
518
+ readonly stateMutability: "view";
519
+ readonly type: "function";
520
+ }, {
521
+ readonly inputs: readonly [{
522
+ readonly internalType: "address";
523
+ readonly name: "account";
524
+ readonly type: "address";
525
+ }];
526
+ readonly name: "getVotes";
527
+ readonly outputs: readonly [{
528
+ readonly internalType: "uint256";
529
+ readonly name: "";
530
+ readonly type: "uint256";
531
+ }];
532
+ readonly stateMutability: "view";
533
+ readonly type: "function";
534
+ }, {
535
+ readonly inputs: readonly [];
536
+ readonly name: "name";
537
+ readonly outputs: readonly [{
538
+ readonly internalType: "string";
539
+ readonly name: "";
540
+ readonly type: "string";
541
+ }];
542
+ readonly stateMutability: "view";
543
+ readonly type: "function";
544
+ }, {
545
+ readonly inputs: readonly [{
546
+ readonly internalType: "address";
547
+ readonly name: "owner";
548
+ readonly type: "address";
549
+ }];
550
+ readonly name: "nonces";
551
+ readonly outputs: readonly [{
552
+ readonly internalType: "uint256";
553
+ readonly name: "";
554
+ readonly type: "uint256";
555
+ }];
556
+ readonly stateMutability: "view";
557
+ readonly type: "function";
558
+ }, {
559
+ readonly inputs: readonly [{
560
+ readonly internalType: "address";
561
+ readonly name: "account";
562
+ readonly type: "address";
563
+ }];
564
+ readonly name: "numCheckpoints";
565
+ readonly outputs: readonly [{
566
+ readonly internalType: "uint32";
567
+ readonly name: "";
568
+ readonly type: "uint32";
569
+ }];
570
+ readonly stateMutability: "view";
571
+ readonly type: "function";
572
+ }, {
573
+ readonly inputs: readonly [{
574
+ readonly internalType: "address";
575
+ readonly name: "owner";
576
+ readonly type: "address";
577
+ }, {
578
+ readonly internalType: "address";
579
+ readonly name: "spender";
580
+ readonly type: "address";
581
+ }, {
582
+ readonly internalType: "uint256";
583
+ readonly name: "value";
584
+ readonly type: "uint256";
585
+ }, {
586
+ readonly internalType: "uint256";
587
+ readonly name: "deadline";
588
+ readonly type: "uint256";
589
+ }, {
590
+ readonly internalType: "uint8";
591
+ readonly name: "v";
592
+ readonly type: "uint8";
593
+ }, {
594
+ readonly internalType: "bytes32";
595
+ readonly name: "r";
596
+ readonly type: "bytes32";
597
+ }, {
598
+ readonly internalType: "bytes32";
599
+ readonly name: "s";
600
+ readonly type: "bytes32";
601
+ }];
602
+ readonly name: "permit";
603
+ readonly outputs: readonly [];
604
+ readonly stateMutability: "nonpayable";
605
+ readonly type: "function";
606
+ }, {
607
+ readonly inputs: readonly [];
608
+ readonly name: "symbol";
609
+ readonly outputs: readonly [{
610
+ readonly internalType: "string";
611
+ readonly name: "";
612
+ readonly type: "string";
613
+ }];
614
+ readonly stateMutability: "view";
615
+ readonly type: "function";
616
+ }, {
617
+ readonly inputs: readonly [];
618
+ readonly name: "totalSupply";
619
+ readonly outputs: readonly [{
620
+ readonly internalType: "uint256";
621
+ readonly name: "";
622
+ readonly type: "uint256";
623
+ }];
624
+ readonly stateMutability: "view";
625
+ readonly type: "function";
626
+ }, {
627
+ readonly inputs: readonly [{
628
+ readonly internalType: "address";
629
+ readonly name: "to";
630
+ readonly type: "address";
631
+ }, {
632
+ readonly internalType: "uint256";
633
+ readonly name: "value";
634
+ readonly type: "uint256";
635
+ }];
636
+ readonly name: "transfer";
637
+ readonly outputs: readonly [{
638
+ readonly internalType: "bool";
639
+ readonly name: "";
640
+ readonly type: "bool";
641
+ }];
642
+ readonly stateMutability: "nonpayable";
643
+ readonly type: "function";
644
+ }, {
645
+ readonly inputs: readonly [{
646
+ readonly internalType: "address";
647
+ readonly name: "from";
648
+ readonly type: "address";
649
+ }, {
650
+ readonly internalType: "address";
651
+ readonly name: "to";
652
+ readonly type: "address";
653
+ }, {
654
+ readonly internalType: "uint256";
655
+ readonly name: "value";
656
+ readonly type: "uint256";
657
+ }];
658
+ readonly name: "transferFrom";
659
+ readonly outputs: readonly [{
660
+ readonly internalType: "bool";
661
+ readonly name: "";
662
+ readonly type: "bool";
663
+ }];
664
+ readonly stateMutability: "nonpayable";
665
+ readonly type: "function";
666
+ }];
667
+ /**
668
+ * Type-safe ABI for Renzo
669
+ */
670
+ export type RenzoAbi = typeof RenzoAbi;
671
+ /**
672
+ * Contract instance type for Renzo
673
+ */
674
+ export type RenzoContract = any;
675
+ /**
676
+ * Renzo Contract Class
677
+ *
678
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
679
+ *
680
+ * @example
681
+ * ```typescript
682
+ * import { createPublicClient, createWalletClient, http } from 'viem';
683
+ * import { mainnet } from 'viem/chains';
684
+ * import { Renzo } from 'Renzo';
685
+ *
686
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
687
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
688
+ *
689
+ * const contract = new Renzo('0x...', { publicClient, walletClient });
690
+ *
691
+ * // Read functions
692
+ * const result = await contract.balanceOf('0x...');
693
+ *
694
+ * // Write functions
695
+ * const hash = await contract.transfer('0x...', 1000n);
696
+ *
697
+ * // Simulate transactions (dry-run)
698
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
699
+ * console.log('Gas estimate:', simulation.request.gas);
700
+ *
701
+ * // Watch events
702
+ * const unwatch = contract.watch.Transfer((event) => {
703
+ * console.log('Transfer event:', event);
704
+ * });
705
+ * ```
706
+ */
707
+ export declare class Renzo {
708
+ private contract;
709
+ private contractAddress;
710
+ private publicClient;
711
+ constructor(address: Address, clients: {
712
+ publicClient: PublicClient;
713
+ walletClient?: WalletClient;
714
+ });
715
+ /**
716
+ * Get the contract address
717
+ */
718
+ get address(): Address;
719
+ /**
720
+ * Get the underlying viem contract instance.
721
+ */
722
+ getContract(): RenzoContract;
723
+ /**
724
+ * CLOCK_MODE
725
+ * view
726
+ */
727
+ CLOCK_MODE(): Promise<string>;
728
+ /**
729
+ * DOMAIN_SEPARATOR
730
+ * view
731
+ */
732
+ DOMAIN_SEPARATOR(): Promise<`0x${string}`>;
733
+ /**
734
+ * allowance
735
+ * view
736
+ */
737
+ allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
738
+ /**
739
+ * balanceOf
740
+ * view
741
+ */
742
+ balanceOf(account: `0x${string}`): Promise<bigint>;
743
+ /**
744
+ * checkpoints
745
+ * view
746
+ */
747
+ checkpoints(account: `0x${string}`, pos: bigint): Promise<Checkpoints_Checkpoint208>;
748
+ /**
749
+ * clock
750
+ * view
751
+ */
752
+ clock(): Promise<bigint>;
753
+ /**
754
+ * decimals
755
+ * view
756
+ */
757
+ decimals(): Promise<bigint>;
758
+ /**
759
+ * delegates
760
+ * view
761
+ */
762
+ delegates(account: `0x${string}`): Promise<`0x${string}`>;
763
+ /**
764
+ * eip712Domain
765
+ * view
766
+ */
767
+ eip712Domain(): Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]>;
768
+ /**
769
+ * getPastTotalSupply
770
+ * view
771
+ */
772
+ getPastTotalSupply(timepoint: bigint): Promise<bigint>;
773
+ /**
774
+ * getPastVotes
775
+ * view
776
+ */
777
+ getPastVotes(account: `0x${string}`, timepoint: bigint): Promise<bigint>;
778
+ /**
779
+ * getVotes
780
+ * view
781
+ */
782
+ getVotes(account: `0x${string}`): Promise<bigint>;
783
+ /**
784
+ * name
785
+ * view
786
+ */
787
+ name(): Promise<string>;
788
+ /**
789
+ * nonces
790
+ * view
791
+ */
792
+ nonces(owner: `0x${string}`): Promise<bigint>;
793
+ /**
794
+ * numCheckpoints
795
+ * view
796
+ */
797
+ numCheckpoints(account: `0x${string}`): Promise<bigint>;
798
+ /**
799
+ * symbol
800
+ * view
801
+ */
802
+ symbol(): Promise<string>;
803
+ /**
804
+ * totalSupply
805
+ * view
806
+ */
807
+ totalSupply(): Promise<bigint>;
808
+ /**
809
+ * approve
810
+ * nonpayable
811
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
812
+ */
813
+ approve(spender: `0x${string}`, value: bigint, options?: {
814
+ accessList?: import('viem').AccessList;
815
+ authorizationList?: import('viem').AuthorizationList;
816
+ chain?: import('viem').Chain | null;
817
+ dataSuffix?: `0x${string}`;
818
+ gas?: bigint;
819
+ gasPrice?: bigint;
820
+ maxFeePerGas?: bigint;
821
+ maxPriorityFeePerGas?: bigint;
822
+ nonce?: number;
823
+ value?: bigint;
824
+ }): Promise<`0x${string}`>;
825
+ /**
826
+ * delegate
827
+ * nonpayable
828
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
829
+ */
830
+ delegate(delegatee: `0x${string}`, options?: {
831
+ accessList?: import('viem').AccessList;
832
+ authorizationList?: import('viem').AuthorizationList;
833
+ chain?: import('viem').Chain | null;
834
+ dataSuffix?: `0x${string}`;
835
+ gas?: bigint;
836
+ gasPrice?: bigint;
837
+ maxFeePerGas?: bigint;
838
+ maxPriorityFeePerGas?: bigint;
839
+ nonce?: number;
840
+ value?: bigint;
841
+ }): Promise<`0x${string}`>;
842
+ /**
843
+ * delegateBySig
844
+ * nonpayable
845
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
846
+ */
847
+ delegateBySig(delegatee: `0x${string}`, nonce: bigint, expiry: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
848
+ accessList?: import('viem').AccessList;
849
+ authorizationList?: import('viem').AuthorizationList;
850
+ chain?: import('viem').Chain | null;
851
+ dataSuffix?: `0x${string}`;
852
+ gas?: bigint;
853
+ gasPrice?: bigint;
854
+ maxFeePerGas?: bigint;
855
+ maxPriorityFeePerGas?: bigint;
856
+ nonce?: number;
857
+ value?: bigint;
858
+ }): Promise<`0x${string}`>;
859
+ /**
860
+ * permit
861
+ * nonpayable
862
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
863
+ */
864
+ permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
865
+ accessList?: import('viem').AccessList;
866
+ authorizationList?: import('viem').AuthorizationList;
867
+ chain?: import('viem').Chain | null;
868
+ dataSuffix?: `0x${string}`;
869
+ gas?: bigint;
870
+ gasPrice?: bigint;
871
+ maxFeePerGas?: bigint;
872
+ maxPriorityFeePerGas?: bigint;
873
+ nonce?: number;
874
+ value?: bigint;
875
+ }): Promise<`0x${string}`>;
876
+ /**
877
+ * transfer
878
+ * nonpayable
879
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
880
+ */
881
+ transfer(to: `0x${string}`, value: bigint, options?: {
882
+ accessList?: import('viem').AccessList;
883
+ authorizationList?: import('viem').AuthorizationList;
884
+ chain?: import('viem').Chain | null;
885
+ dataSuffix?: `0x${string}`;
886
+ gas?: bigint;
887
+ gasPrice?: bigint;
888
+ maxFeePerGas?: bigint;
889
+ maxPriorityFeePerGas?: bigint;
890
+ nonce?: number;
891
+ value?: bigint;
892
+ }): Promise<`0x${string}`>;
893
+ /**
894
+ * transferFrom
895
+ * nonpayable
896
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
897
+ */
898
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
899
+ accessList?: import('viem').AccessList;
900
+ authorizationList?: import('viem').AuthorizationList;
901
+ chain?: import('viem').Chain | null;
902
+ dataSuffix?: `0x${string}`;
903
+ gas?: bigint;
904
+ gasPrice?: bigint;
905
+ maxFeePerGas?: bigint;
906
+ maxPriorityFeePerGas?: bigint;
907
+ nonce?: number;
908
+ value?: bigint;
909
+ }): Promise<`0x${string}`>;
910
+ /**
911
+ * Simulate contract write operations (dry-run without sending transaction)
912
+ *
913
+ * @example
914
+ * const result = await contract.simulate.transfer('0x...', 1000n);
915
+ * console.log('Gas estimate:', result.request.gas);
916
+ * console.log('Would succeed:', result.result);
917
+ */
918
+ get simulate(): {
919
+ /**
920
+ * Simulate approve
921
+ * Returns gas estimate and result without sending transaction
922
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
923
+ */
924
+ approve(spender: `0x${string}`, value: bigint, options?: {
925
+ accessList?: import("viem").AccessList;
926
+ authorizationList?: import("viem").AuthorizationList;
927
+ chain?: import("viem").Chain | null;
928
+ dataSuffix?: `0x${string}`;
929
+ gas?: bigint;
930
+ gasPrice?: bigint;
931
+ maxFeePerGas?: bigint;
932
+ maxPriorityFeePerGas?: bigint;
933
+ nonce?: number;
934
+ value?: bigint;
935
+ }): Promise<boolean>;
936
+ /**
937
+ * Simulate delegate
938
+ * Returns gas estimate and result without sending transaction
939
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
940
+ */
941
+ delegate(delegatee: `0x${string}`, options?: {
942
+ accessList?: import("viem").AccessList;
943
+ authorizationList?: import("viem").AuthorizationList;
944
+ chain?: import("viem").Chain | null;
945
+ dataSuffix?: `0x${string}`;
946
+ gas?: bigint;
947
+ gasPrice?: bigint;
948
+ maxFeePerGas?: bigint;
949
+ maxPriorityFeePerGas?: bigint;
950
+ nonce?: number;
951
+ value?: bigint;
952
+ }): Promise<void>;
953
+ /**
954
+ * Simulate delegateBySig
955
+ * Returns gas estimate and result without sending transaction
956
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
957
+ */
958
+ delegateBySig(delegatee: `0x${string}`, nonce: bigint, expiry: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
959
+ accessList?: import("viem").AccessList;
960
+ authorizationList?: import("viem").AuthorizationList;
961
+ chain?: import("viem").Chain | null;
962
+ dataSuffix?: `0x${string}`;
963
+ gas?: bigint;
964
+ gasPrice?: bigint;
965
+ maxFeePerGas?: bigint;
966
+ maxPriorityFeePerGas?: bigint;
967
+ nonce?: number;
968
+ value?: bigint;
969
+ }): Promise<void>;
970
+ /**
971
+ * Simulate permit
972
+ * Returns gas estimate and result without sending transaction
973
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
974
+ */
975
+ permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
976
+ accessList?: import("viem").AccessList;
977
+ authorizationList?: import("viem").AuthorizationList;
978
+ chain?: import("viem").Chain | null;
979
+ dataSuffix?: `0x${string}`;
980
+ gas?: bigint;
981
+ gasPrice?: bigint;
982
+ maxFeePerGas?: bigint;
983
+ maxPriorityFeePerGas?: bigint;
984
+ nonce?: number;
985
+ value?: bigint;
986
+ }): Promise<void>;
987
+ /**
988
+ * Simulate transfer
989
+ * Returns gas estimate and result without sending transaction
990
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
991
+ */
992
+ transfer(to: `0x${string}`, value: bigint, options?: {
993
+ accessList?: import("viem").AccessList;
994
+ authorizationList?: import("viem").AuthorizationList;
995
+ chain?: import("viem").Chain | null;
996
+ dataSuffix?: `0x${string}`;
997
+ gas?: bigint;
998
+ gasPrice?: bigint;
999
+ maxFeePerGas?: bigint;
1000
+ maxPriorityFeePerGas?: bigint;
1001
+ nonce?: number;
1002
+ value?: bigint;
1003
+ }): Promise<boolean>;
1004
+ /**
1005
+ * Simulate transferFrom
1006
+ * Returns gas estimate and result without sending transaction
1007
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1008
+ */
1009
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
1010
+ accessList?: import("viem").AccessList;
1011
+ authorizationList?: import("viem").AuthorizationList;
1012
+ chain?: import("viem").Chain | null;
1013
+ dataSuffix?: `0x${string}`;
1014
+ gas?: bigint;
1015
+ gasPrice?: bigint;
1016
+ maxFeePerGas?: bigint;
1017
+ maxPriorityFeePerGas?: bigint;
1018
+ nonce?: number;
1019
+ value?: bigint;
1020
+ }): Promise<boolean>;
1021
+ };
1022
+ /**
1023
+ * Watch contract events
1024
+ *
1025
+ * @example
1026
+ * // Watch all Transfer events
1027
+ * const unwatch = contract.watch.Transfer((event) => {
1028
+ * console.log('Transfer:', event);
1029
+ * });
1030
+ *
1031
+ * // Stop watching
1032
+ * unwatch();
1033
+ */
1034
+ get watch(): {
1035
+ /**
1036
+ * Watch Approval events
1037
+ * @param callback Function to call when event is emitted
1038
+ * @param filter Optional filter for indexed parameters
1039
+ * @returns Unwatch function to stop listening
1040
+ */
1041
+ Approval: (callback: (event: {
1042
+ owner: `0x${string}`;
1043
+ spender: `0x${string}`;
1044
+ value: bigint;
1045
+ }) => void, filter?: {
1046
+ owner?: `0x${string}` | `0x${string}`[] | null;
1047
+ spender?: `0x${string}` | `0x${string}`[] | null;
1048
+ }) => () => void;
1049
+ /**
1050
+ * Watch DelegateChanged events
1051
+ * @param callback Function to call when event is emitted
1052
+ * @param filter Optional filter for indexed parameters
1053
+ * @returns Unwatch function to stop listening
1054
+ */
1055
+ DelegateChanged: (callback: (event: {
1056
+ delegator: `0x${string}`;
1057
+ fromDelegate: `0x${string}`;
1058
+ toDelegate: `0x${string}`;
1059
+ }) => void, filter?: {
1060
+ delegator?: `0x${string}` | `0x${string}`[] | null;
1061
+ fromDelegate?: `0x${string}` | `0x${string}`[] | null;
1062
+ toDelegate?: `0x${string}` | `0x${string}`[] | null;
1063
+ }) => () => void;
1064
+ /**
1065
+ * Watch DelegateVotesChanged events
1066
+ * @param callback Function to call when event is emitted
1067
+ * @param filter Optional filter for indexed parameters
1068
+ * @returns Unwatch function to stop listening
1069
+ */
1070
+ DelegateVotesChanged: (callback: (event: {
1071
+ delegate: `0x${string}`;
1072
+ previousVotes: bigint;
1073
+ newVotes: bigint;
1074
+ }) => void, filter?: {
1075
+ delegate?: `0x${string}` | `0x${string}`[] | null;
1076
+ }) => () => void;
1077
+ /**
1078
+ * Watch EIP712DomainChanged events
1079
+ * @param callback Function to call when event is emitted
1080
+ * @param filter Optional filter for indexed parameters
1081
+ * @returns Unwatch function to stop listening
1082
+ */
1083
+ EIP712DomainChanged: (callback: (event: {}) => void) => () => void;
1084
+ /**
1085
+ * Watch Transfer events
1086
+ * @param callback Function to call when event is emitted
1087
+ * @param filter Optional filter for indexed parameters
1088
+ * @returns Unwatch function to stop listening
1089
+ */
1090
+ Transfer: (callback: (event: {
1091
+ from: `0x${string}`;
1092
+ to: `0x${string}`;
1093
+ value: bigint;
1094
+ }) => void, filter?: {
1095
+ from?: `0x${string}` | `0x${string}`[] | null;
1096
+ to?: `0x${string}` | `0x${string}`[] | null;
1097
+ }) => () => void;
1098
+ };
1099
+ }