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