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