@gitmyabi/usdt 1.0.8 → 1.0.9

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