@gitmyabi/usdt 1.0.8 → 1.0.10

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.
@@ -2,40 +2,46 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * Tether_json ABI
5
+ * TETHER_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const Tether_jsonAbi = [
9
+ export const TETHER_jsonAbi = [
10
10
  {
11
- "inputs": [],
12
- "stateMutability": "nonpayable",
13
- "type": "constructor"
14
- },
15
- {
16
- "anonymous": false,
17
11
  "inputs": [
18
12
  {
19
- "indexed": true,
20
- "internalType": "address",
21
- "name": "tokenOwner",
22
- "type": "address"
13
+ "internalType": "string",
14
+ "name": "name_",
15
+ "type": "string"
23
16
  },
24
17
  {
25
- "indexed": true,
26
- "internalType": "address",
27
- "name": "spender",
28
- "type": "address"
18
+ "internalType": "string",
19
+ "name": "symbol_",
20
+ "type": "string"
29
21
  },
30
22
  {
31
- "indexed": false,
32
23
  "internalType": "uint256",
33
- "name": "value",
24
+ "name": "decimals_",
34
25
  "type": "uint256"
26
+ },
27
+ {
28
+ "internalType": "uint256",
29
+ "name": "initialBalance_",
30
+ "type": "uint256"
31
+ },
32
+ {
33
+ "internalType": "address",
34
+ "name": "tokenOwner",
35
+ "type": "address"
36
+ },
37
+ {
38
+ "internalType": "address payable",
39
+ "name": "feeReceiver_",
40
+ "type": "address"
35
41
  }
36
42
  ],
37
- "name": "Approval",
38
- "type": "event"
43
+ "stateMutability": "payable",
44
+ "type": "constructor"
39
45
  },
40
46
  {
41
47
  "anonymous": false,
@@ -43,17 +49,23 @@ export const Tether_jsonAbi = [
43
49
  {
44
50
  "indexed": true,
45
51
  "internalType": "address",
46
- "name": "account",
52
+ "name": "owner",
53
+ "type": "address"
54
+ },
55
+ {
56
+ "indexed": true,
57
+ "internalType": "address",
58
+ "name": "spender",
47
59
  "type": "address"
48
60
  },
49
61
  {
50
62
  "indexed": false,
51
63
  "internalType": "uint256",
52
- "name": "amount",
64
+ "name": "value",
53
65
  "type": "uint256"
54
66
  }
55
67
  ],
56
- "name": "Freeze",
68
+ "name": "Approval",
57
69
  "type": "event"
58
70
  },
59
71
  {
@@ -101,29 +113,36 @@ export const Tether_jsonAbi = [
101
113
  "type": "event"
102
114
  },
103
115
  {
104
- "anonymous": false,
105
- "inputs": [
106
- {
107
- "indexed": true,
108
- "internalType": "address",
109
- "name": "account",
110
- "type": "address"
111
- },
116
+ "inputs": [],
117
+ "name": "Optimization",
118
+ "outputs": [
112
119
  {
113
- "indexed": false,
114
120
  "internalType": "uint256",
115
- "name": "amount",
121
+ "name": "",
116
122
  "type": "uint256"
117
123
  }
118
124
  ],
119
- "name": "Unfreeze",
120
- "type": "event"
125
+ "stateMutability": "view",
126
+ "type": "function"
127
+ },
128
+ {
129
+ "inputs": [],
130
+ "name": "_owner",
131
+ "outputs": [
132
+ {
133
+ "internalType": "address",
134
+ "name": "",
135
+ "type": "address"
136
+ }
137
+ ],
138
+ "stateMutability": "view",
139
+ "type": "function"
121
140
  },
122
141
  {
123
142
  "inputs": [
124
143
  {
125
144
  "internalType": "address",
126
- "name": "tokenOwner",
145
+ "name": "owner",
127
146
  "type": "address"
128
147
  },
129
148
  {
@@ -167,25 +186,6 @@ export const Tether_jsonAbi = [
167
186
  "stateMutability": "nonpayable",
168
187
  "type": "function"
169
188
  },
170
- {
171
- "inputs": [
172
- {
173
- "internalType": "address",
174
- "name": "account",
175
- "type": "address"
176
- }
177
- ],
178
- "name": "availableBalanceOf",
179
- "outputs": [
180
- {
181
- "internalType": "uint256",
182
- "name": "",
183
- "type": "uint256"
184
- }
185
- ],
186
- "stateMutability": "view",
187
- "type": "function"
188
- },
189
189
  {
190
190
  "inputs": [
191
191
  {
@@ -210,9 +210,9 @@ export const Tether_jsonAbi = [
210
210
  "name": "decimals",
211
211
  "outputs": [
212
212
  {
213
- "internalType": "uint8",
213
+ "internalType": "uint256",
214
214
  "name": "",
215
- "type": "uint8"
215
+ "type": "uint256"
216
216
  }
217
217
  ],
218
218
  "stateMutability": "view",
@@ -246,16 +246,16 @@ export const Tether_jsonAbi = [
246
246
  "inputs": [
247
247
  {
248
248
  "internalType": "address",
249
- "name": "account",
249
+ "name": "spender",
250
250
  "type": "address"
251
251
  },
252
252
  {
253
253
  "internalType": "uint256",
254
- "name": "amount",
254
+ "name": "addedValue",
255
255
  "type": "uint256"
256
256
  }
257
257
  ],
258
- "name": "freezeBalance",
258
+ "name": "increaseAllowance",
259
259
  "outputs": [
260
260
  {
261
261
  "internalType": "bool",
@@ -267,19 +267,26 @@ export const Tether_jsonAbi = [
267
267
  "type": "function"
268
268
  },
269
269
  {
270
- "inputs": [
270
+ "inputs": [],
271
+ "name": "name",
272
+ "outputs": [
271
273
  {
272
- "internalType": "address",
273
- "name": "account",
274
- "type": "address"
274
+ "internalType": "string",
275
+ "name": "",
276
+ "type": "string"
275
277
  }
276
278
  ],
277
- "name": "frozenBalanceOf",
279
+ "stateMutability": "view",
280
+ "type": "function"
281
+ },
282
+ {
283
+ "inputs": [],
284
+ "name": "owner",
278
285
  "outputs": [
279
286
  {
280
- "internalType": "uint256",
287
+ "internalType": "address",
281
288
  "name": "",
282
- "type": "uint256"
289
+ "type": "address"
283
290
  }
284
291
  ],
285
292
  "stateMutability": "view",
@@ -289,50 +296,25 @@ export const Tether_jsonAbi = [
289
296
  "inputs": [
290
297
  {
291
298
  "internalType": "address",
292
- "name": "spender",
299
+ "name": "tokenAddress",
293
300
  "type": "address"
294
301
  },
295
302
  {
296
303
  "internalType": "uint256",
297
- "name": "addedValue",
304
+ "name": "tokenAmount",
298
305
  "type": "uint256"
299
306
  }
300
307
  ],
301
- "name": "increaseAllowance",
302
- "outputs": [
303
- {
304
- "internalType": "bool",
305
- "name": "",
306
- "type": "bool"
307
- }
308
- ],
308
+ "name": "recoverERC20",
309
+ "outputs": [],
309
310
  "stateMutability": "nonpayable",
310
311
  "type": "function"
311
312
  },
312
313
  {
313
314
  "inputs": [],
314
- "name": "name",
315
- "outputs": [
316
- {
317
- "internalType": "string",
318
- "name": "",
319
- "type": "string"
320
- }
321
- ],
322
- "stateMutability": "view",
323
- "type": "function"
324
- },
325
- {
326
- "inputs": [],
327
- "name": "owner",
328
- "outputs": [
329
- {
330
- "internalType": "address",
331
- "name": "",
332
- "type": "address"
333
- }
334
- ],
335
- "stateMutability": "view",
315
+ "name": "renounceOwnership",
316
+ "outputs": [],
317
+ "stateMutability": "nonpayable",
336
318
  "type": "function"
337
319
  },
338
320
  {
@@ -365,7 +347,7 @@ export const Tether_jsonAbi = [
365
347
  "inputs": [
366
348
  {
367
349
  "internalType": "address",
368
- "name": "to",
350
+ "name": "recipient",
369
351
  "type": "address"
370
352
  },
371
353
  {
@@ -389,12 +371,12 @@ export const Tether_jsonAbi = [
389
371
  "inputs": [
390
372
  {
391
373
  "internalType": "address",
392
- "name": "from",
374
+ "name": "sender",
393
375
  "type": "address"
394
376
  },
395
377
  {
396
378
  "internalType": "address",
397
- "name": "to",
379
+ "name": "recipient",
398
380
  "type": "address"
399
381
  },
400
382
  {
@@ -423,80 +405,26 @@ export const Tether_jsonAbi = [
423
405
  }
424
406
  ],
425
407
  "name": "transferOwnership",
426
- "outputs": [
427
- {
428
- "internalType": "bool",
429
- "name": "",
430
- "type": "bool"
431
- }
432
- ],
433
- "stateMutability": "nonpayable",
434
- "type": "function"
435
- },
436
- {
437
- "inputs": [
438
- {
439
- "internalType": "address",
440
- "name": "to",
441
- "type": "address"
442
- },
443
- {
444
- "internalType": "uint256",
445
- "name": "amount",
446
- "type": "uint256"
447
- }
448
- ],
449
- "name": "transferWithFreeze",
450
- "outputs": [
451
- {
452
- "internalType": "bool",
453
- "name": "",
454
- "type": "bool"
455
- }
456
- ],
457
- "stateMutability": "nonpayable",
458
- "type": "function"
459
- },
460
- {
461
- "inputs": [
462
- {
463
- "internalType": "address",
464
- "name": "account",
465
- "type": "address"
466
- },
467
- {
468
- "internalType": "uint256",
469
- "name": "amount",
470
- "type": "uint256"
471
- }
472
- ],
473
- "name": "unfreezeBalance",
474
- "outputs": [
475
- {
476
- "internalType": "bool",
477
- "name": "",
478
- "type": "bool"
479
- }
480
- ],
408
+ "outputs": [],
481
409
  "stateMutability": "nonpayable",
482
410
  "type": "function"
483
411
  }
484
412
  ] as const satisfies Abi;
485
413
 
486
414
  /**
487
- * Type-safe ABI for Tether_json
415
+ * Type-safe ABI for TETHER_json
488
416
  */
489
- export type Tether_jsonAbi = typeof Tether_jsonAbi;
417
+ export type TETHER_jsonAbi = typeof TETHER_jsonAbi;
490
418
 
491
419
  /**
492
- * Contract instance type for Tether_json
420
+ * Contract instance type for TETHER_json
493
421
  */
494
422
  // Use any for contract type to avoid complex viem type issues
495
423
  // The runtime behavior is type-safe through viem's ABI typing
496
- export type Tether_jsonContract = any;
424
+ export type TETHER_jsonContract = any;
497
425
 
498
426
  /**
499
- * Tether_json Contract Class
427
+ * TETHER_json Contract Class
500
428
  *
501
429
  * Provides a class-based API similar to TypeChain for interacting with the contract.
502
430
  *
@@ -504,12 +432,12 @@ export type Tether_jsonContract = any;
504
432
  * ```typescript
505
433
  * import { createPublicClient, createWalletClient, http } from 'viem';
506
434
  * import { mainnet } from 'viem/chains';
507
- * import { Tether_json } from 'Tether_json';
435
+ * import { TETHER_json } from 'TETHER_json';
508
436
  *
509
437
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
510
438
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
511
439
  *
512
- * const contract = new Tether_json('0x...', { publicClient, walletClient });
440
+ * const contract = new TETHER_json('0x...', { publicClient, walletClient });
513
441
  *
514
442
  * // Read functions
515
443
  * const result = await contract.balanceOf('0x...');
@@ -527,8 +455,8 @@ export type Tether_jsonContract = any;
527
455
  * });
528
456
  * ```
529
457
  */
530
- export class Tether_json {
531
- private contract: Tether_jsonContract;
458
+ export class TETHER_json {
459
+ private contract: TETHER_jsonContract;
532
460
  private contractAddress: Address;
533
461
  private publicClient: PublicClient;
534
462
 
@@ -543,7 +471,7 @@ export class Tether_json {
543
471
  this.publicClient = clients.publicClient;
544
472
  this.contract = getContract({
545
473
  address,
546
- abi: Tether_jsonAbi,
474
+ abi: TETHER_jsonAbi,
547
475
  client: {
548
476
  public: clients.publicClient,
549
477
  wallet: clients.walletClient,
@@ -561,24 +489,32 @@ export class Tether_json {
561
489
  /**
562
490
  * Get the underlying viem contract instance
563
491
  */
564
- getContract(): Tether_jsonContract {
492
+ getContract(): TETHER_jsonContract {
565
493
  return this.contract;
566
494
  }
567
495
 
568
496
  /**
569
- * allowance
497
+ * Optimization
498
+ * view
499
+ */
500
+ async Optimization(): Promise<bigint> {
501
+ return this.contract.read.Optimization() as Promise<bigint>;
502
+ }
503
+
504
+ /**
505
+ * _owner
570
506
  * view
571
507
  */
572
- async allowance(tokenOwner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
573
- return this.contract.read.allowance([tokenOwner, spender] as const) as Promise<bigint>;
508
+ async _owner(): Promise<`0x${string}`> {
509
+ return this.contract.read._owner() as Promise<`0x${string}`>;
574
510
  }
575
511
 
576
512
  /**
577
- * availableBalanceOf
513
+ * allowance
578
514
  * view
579
515
  */
580
- async availableBalanceOf(account: `0x${string}`): Promise<bigint> {
581
- return this.contract.read.availableBalanceOf([account] as const) as Promise<bigint>;
516
+ async allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
517
+ return this.contract.read.allowance([owner, spender] as const) as Promise<bigint>;
582
518
  }
583
519
 
584
520
  /**
@@ -597,14 +533,6 @@ export class Tether_json {
597
533
  return this.contract.read.decimals() as Promise<bigint>;
598
534
  }
599
535
 
600
- /**
601
- * frozenBalanceOf
602
- * view
603
- */
604
- async frozenBalanceOf(account: `0x${string}`): Promise<bigint> {
605
- return this.contract.read.frozenBalanceOf([account] as const) as Promise<bigint>;
606
- }
607
-
608
536
  /**
609
537
  * name
610
538
  * view
@@ -683,29 +611,6 @@ export class Tether_json {
683
611
  return this.contract.write.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<`0x${string}`>;
684
612
  }
685
613
 
686
- /**
687
- * freezeBalance
688
- * nonpayable
689
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
690
- */
691
- async freezeBalance(account: `0x${string}`, amount: bigint, options?: {
692
- accessList?: import('viem').AccessList;
693
- authorizationList?: import('viem').AuthorizationList;
694
- chain?: import('viem').Chain | null;
695
- dataSuffix?: `0x${string}`;
696
- gas?: bigint;
697
- gasPrice?: bigint;
698
- maxFeePerGas?: bigint;
699
- maxPriorityFeePerGas?: bigint;
700
- nonce?: number;
701
- value?: bigint;
702
- }): Promise<`0x${string}`> {
703
- if (!this.contract.write) {
704
- throw new Error('Wallet client is required for write operations');
705
- }
706
- return this.contract.write.freezeBalance([account, amount] as const, options) as Promise<`0x${string}`>;
707
- }
708
-
709
614
  /**
710
615
  * increaseAllowance
711
616
  * nonpayable
@@ -730,11 +635,11 @@ export class Tether_json {
730
635
  }
731
636
 
732
637
  /**
733
- * transfer
638
+ * recoverERC20
734
639
  * nonpayable
735
640
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
736
641
  */
737
- async transfer(to: `0x${string}`, amount: bigint, options?: {
642
+ async recoverERC20(tokenAddress: `0x${string}`, tokenAmount: bigint, options?: {
738
643
  accessList?: import('viem').AccessList;
739
644
  authorizationList?: import('viem').AuthorizationList;
740
645
  chain?: import('viem').Chain | null;
@@ -749,15 +654,15 @@ export class Tether_json {
749
654
  if (!this.contract.write) {
750
655
  throw new Error('Wallet client is required for write operations');
751
656
  }
752
- return this.contract.write.transfer([to, amount] as const, options) as Promise<`0x${string}`>;
657
+ return this.contract.write.recoverERC20([tokenAddress, tokenAmount] as const, options) as Promise<`0x${string}`>;
753
658
  }
754
659
 
755
660
  /**
756
- * transferFrom
661
+ * renounceOwnership
757
662
  * nonpayable
758
663
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
759
664
  */
760
- async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
665
+ async renounceOwnership(options?: {
761
666
  accessList?: import('viem').AccessList;
762
667
  authorizationList?: import('viem').AuthorizationList;
763
668
  chain?: import('viem').Chain | null;
@@ -772,15 +677,15 @@ export class Tether_json {
772
677
  if (!this.contract.write) {
773
678
  throw new Error('Wallet client is required for write operations');
774
679
  }
775
- return this.contract.write.transferFrom([from, to, amount] as const, options) as Promise<`0x${string}`>;
680
+ return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
776
681
  }
777
682
 
778
683
  /**
779
- * transferOwnership
684
+ * transfer
780
685
  * nonpayable
781
686
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
782
687
  */
783
- async transferOwnership(newOwner: `0x${string}`, options?: {
688
+ async transfer(recipient: `0x${string}`, amount: bigint, options?: {
784
689
  accessList?: import('viem').AccessList;
785
690
  authorizationList?: import('viem').AuthorizationList;
786
691
  chain?: import('viem').Chain | null;
@@ -795,15 +700,15 @@ export class Tether_json {
795
700
  if (!this.contract.write) {
796
701
  throw new Error('Wallet client is required for write operations');
797
702
  }
798
- return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
703
+ return this.contract.write.transfer([recipient, amount] as const, options) as Promise<`0x${string}`>;
799
704
  }
800
705
 
801
706
  /**
802
- * transferWithFreeze
707
+ * transferFrom
803
708
  * nonpayable
804
709
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
805
710
  */
806
- async transferWithFreeze(to: `0x${string}`, amount: bigint, options?: {
711
+ async transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
807
712
  accessList?: import('viem').AccessList;
808
713
  authorizationList?: import('viem').AuthorizationList;
809
714
  chain?: import('viem').Chain | null;
@@ -818,15 +723,15 @@ export class Tether_json {
818
723
  if (!this.contract.write) {
819
724
  throw new Error('Wallet client is required for write operations');
820
725
  }
821
- return this.contract.write.transferWithFreeze([to, amount] as const, options) as Promise<`0x${string}`>;
726
+ return this.contract.write.transferFrom([sender, recipient, amount] as const, options) as Promise<`0x${string}`>;
822
727
  }
823
728
 
824
729
  /**
825
- * unfreezeBalance
730
+ * transferOwnership
826
731
  * nonpayable
827
732
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
828
733
  */
829
- async unfreezeBalance(account: `0x${string}`, amount: bigint, options?: {
734
+ async transferOwnership(newOwner: `0x${string}`, options?: {
830
735
  accessList?: import('viem').AccessList;
831
736
  authorizationList?: import('viem').AuthorizationList;
832
737
  chain?: import('viem').Chain | null;
@@ -841,7 +746,7 @@ export class Tether_json {
841
746
  if (!this.contract.write) {
842
747
  throw new Error('Wallet client is required for write operations');
843
748
  }
844
- return this.contract.write.unfreezeBalance([account, amount] as const, options) as Promise<`0x${string}`>;
749
+ return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
845
750
  }
846
751
 
847
752
 
@@ -898,25 +803,6 @@ export class Tether_json {
898
803
  }): Promise<boolean> {
899
804
  return contract.simulate.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<boolean>;
900
805
  },
901
- /**
902
- * Simulate freezeBalance
903
- * Returns gas estimate and result without sending transaction
904
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
905
- */
906
- async freezeBalance(account: `0x${string}`, amount: 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
- return contract.simulate.freezeBalance([account, amount] as const, options) as Promise<boolean>;
919
- },
920
806
  /**
921
807
  * Simulate increaseAllowance
922
808
  * Returns gas estimate and result without sending transaction
@@ -937,11 +823,11 @@ export class Tether_json {
937
823
  return contract.simulate.increaseAllowance([spender, addedValue] as const, options) as Promise<boolean>;
938
824
  },
939
825
  /**
940
- * Simulate transfer
826
+ * Simulate recoverERC20
941
827
  * Returns gas estimate and result without sending transaction
942
828
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
943
829
  */
944
- async transfer(to: `0x${string}`, amount: bigint, options?: {
830
+ async recoverERC20(tokenAddress: `0x${string}`, tokenAmount: bigint, options?: {
945
831
  accessList?: import('viem').AccessList;
946
832
  authorizationList?: import('viem').AuthorizationList;
947
833
  chain?: import('viem').Chain | null;
@@ -952,15 +838,15 @@ export class Tether_json {
952
838
  maxPriorityFeePerGas?: bigint;
953
839
  nonce?: number;
954
840
  value?: bigint;
955
- }): Promise<boolean> {
956
- return contract.simulate.transfer([to, amount] as const, options) as Promise<boolean>;
841
+ }): Promise<void> {
842
+ return contract.simulate.recoverERC20([tokenAddress, tokenAmount] as const, options) as Promise<void>;
957
843
  },
958
844
  /**
959
- * Simulate transferFrom
845
+ * Simulate renounceOwnership
960
846
  * Returns gas estimate and result without sending transaction
961
847
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
962
848
  */
963
- async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
849
+ async renounceOwnership(options?: {
964
850
  accessList?: import('viem').AccessList;
965
851
  authorizationList?: import('viem').AuthorizationList;
966
852
  chain?: import('viem').Chain | null;
@@ -971,15 +857,15 @@ export class Tether_json {
971
857
  maxPriorityFeePerGas?: bigint;
972
858
  nonce?: number;
973
859
  value?: bigint;
974
- }): Promise<boolean> {
975
- return contract.simulate.transferFrom([from, to, amount] as const, options) as Promise<boolean>;
860
+ }): Promise<void> {
861
+ return contract.simulate.renounceOwnership(options) as Promise<void>;
976
862
  },
977
863
  /**
978
- * Simulate transferOwnership
864
+ * Simulate transfer
979
865
  * Returns gas estimate and result without sending transaction
980
866
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
981
867
  */
982
- async transferOwnership(newOwner: `0x${string}`, options?: {
868
+ async transfer(recipient: `0x${string}`, amount: bigint, options?: {
983
869
  accessList?: import('viem').AccessList;
984
870
  authorizationList?: import('viem').AuthorizationList;
985
871
  chain?: import('viem').Chain | null;
@@ -991,14 +877,14 @@ export class Tether_json {
991
877
  nonce?: number;
992
878
  value?: bigint;
993
879
  }): Promise<boolean> {
994
- return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<boolean>;
880
+ return contract.simulate.transfer([recipient, amount] as const, options) as Promise<boolean>;
995
881
  },
996
882
  /**
997
- * Simulate transferWithFreeze
883
+ * Simulate transferFrom
998
884
  * Returns gas estimate and result without sending transaction
999
885
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1000
886
  */
1001
- async transferWithFreeze(to: `0x${string}`, amount: bigint, options?: {
887
+ async transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
1002
888
  accessList?: import('viem').AccessList;
1003
889
  authorizationList?: import('viem').AuthorizationList;
1004
890
  chain?: import('viem').Chain | null;
@@ -1010,14 +896,14 @@ export class Tether_json {
1010
896
  nonce?: number;
1011
897
  value?: bigint;
1012
898
  }): Promise<boolean> {
1013
- return contract.simulate.transferWithFreeze([to, amount] as const, options) as Promise<boolean>;
899
+ return contract.simulate.transferFrom([sender, recipient, amount] as const, options) as Promise<boolean>;
1014
900
  },
1015
901
  /**
1016
- * Simulate unfreezeBalance
902
+ * Simulate transferOwnership
1017
903
  * Returns gas estimate and result without sending transaction
1018
904
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1019
905
  */
1020
- async unfreezeBalance(account: `0x${string}`, amount: bigint, options?: {
906
+ async transferOwnership(newOwner: `0x${string}`, options?: {
1021
907
  accessList?: import('viem').AccessList;
1022
908
  authorizationList?: import('viem').AuthorizationList;
1023
909
  chain?: import('viem').Chain | null;
@@ -1028,8 +914,8 @@ export class Tether_json {
1028
914
  maxPriorityFeePerGas?: bigint;
1029
915
  nonce?: number;
1030
916
  value?: bigint;
1031
- }): Promise<boolean> {
1032
- return contract.simulate.unfreezeBalance([account, amount] as const, options) as Promise<boolean>;
917
+ }): Promise<void> {
918
+ return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
1033
919
  }
1034
920
  };
1035
921
  }
@@ -1054,10 +940,10 @@ export class Tether_json {
1054
940
  * @param filter Optional filter for indexed parameters
1055
941
  * @returns Unwatch function to stop listening
1056
942
  */
1057
- Approval: (callback: (event: { tokenOwner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { tokenOwner: `0x${string}`; spender: `0x${string}` }) => {
943
+ Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
1058
944
  return this.publicClient.watchContractEvent({
1059
945
  address: this.contractAddress,
1060
- abi: Tether_jsonAbi,
946
+ abi: TETHER_jsonAbi,
1061
947
  eventName: 'Approval',
1062
948
  args: filter,
1063
949
  onLogs: (logs: any[]) => {
@@ -1067,25 +953,6 @@ export class Tether_json {
1067
953
  },
1068
954
  }) as () => void;
1069
955
  },
1070
- /**
1071
- * Watch Freeze events
1072
- * @param callback Function to call when event is emitted
1073
- * @param filter Optional filter for indexed parameters
1074
- * @returns Unwatch function to stop listening
1075
- */
1076
- Freeze: (callback: (event: { account: `0x${string}`; amount: bigint }) => void, filter?: { account: `0x${string}` }) => {
1077
- return this.publicClient.watchContractEvent({
1078
- address: this.contractAddress,
1079
- abi: Tether_jsonAbi,
1080
- eventName: 'Freeze',
1081
- args: filter,
1082
- onLogs: (logs: any[]) => {
1083
- logs.forEach((log: any) => {
1084
- callback(log.args as any);
1085
- });
1086
- },
1087
- }) as () => void;
1088
- },
1089
956
  /**
1090
957
  * Watch OwnershipTransferred events
1091
958
  * @param callback Function to call when event is emitted
@@ -1095,7 +962,7 @@ export class Tether_json {
1095
962
  OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
1096
963
  return this.publicClient.watchContractEvent({
1097
964
  address: this.contractAddress,
1098
- abi: Tether_jsonAbi,
965
+ abi: TETHER_jsonAbi,
1099
966
  eventName: 'OwnershipTransferred',
1100
967
  args: filter,
1101
968
  onLogs: (logs: any[]) => {
@@ -1114,7 +981,7 @@ export class Tether_json {
1114
981
  Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
1115
982
  return this.publicClient.watchContractEvent({
1116
983
  address: this.contractAddress,
1117
- abi: Tether_jsonAbi,
984
+ abi: TETHER_jsonAbi,
1118
985
  eventName: 'Transfer',
1119
986
  args: filter,
1120
987
  onLogs: (logs: any[]) => {
@@ -1123,25 +990,6 @@ export class Tether_json {
1123
990
  });
1124
991
  },
1125
992
  }) as () => void;
1126
- },
1127
- /**
1128
- * Watch Unfreeze events
1129
- * @param callback Function to call when event is emitted
1130
- * @param filter Optional filter for indexed parameters
1131
- * @returns Unwatch function to stop listening
1132
- */
1133
- Unfreeze: (callback: (event: { account: `0x${string}`; amount: bigint }) => void, filter?: { account: `0x${string}` }) => {
1134
- return this.publicClient.watchContractEvent({
1135
- address: this.contractAddress,
1136
- abi: Tether_jsonAbi,
1137
- eventName: 'Unfreeze',
1138
- args: filter,
1139
- onLogs: (logs: any[]) => {
1140
- logs.forEach((log: any) => {
1141
- callback(log.args as any);
1142
- });
1143
- },
1144
- }) as () => void;
1145
993
  }
1146
994
  };
1147
995
  }