@gitmyabi/usdt 1.0.17 → 1.0.19

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,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * USDTToken_json ABI
5
+ * USDToken_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const USDTToken_jsonAbi = [
9
+ export const USDToken_jsonAbi = [
10
10
  {
11
11
  "inputs": [],
12
12
  "stateMutability": "nonpayable",
@@ -37,6 +37,45 @@ export const USDTToken_jsonAbi = [
37
37
  "name": "Approval",
38
38
  "type": "event"
39
39
  },
40
+ {
41
+ "anonymous": false,
42
+ "inputs": [
43
+ {
44
+ "indexed": false,
45
+ "internalType": "string",
46
+ "name": "newName",
47
+ "type": "string"
48
+ }
49
+ ],
50
+ "name": "NameChanged",
51
+ "type": "event"
52
+ },
53
+ {
54
+ "anonymous": false,
55
+ "inputs": [
56
+ {
57
+ "indexed": true,
58
+ "internalType": "address",
59
+ "name": "previousOwner",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "name": "OwnershipRenounced",
64
+ "type": "event"
65
+ },
66
+ {
67
+ "anonymous": false,
68
+ "inputs": [
69
+ {
70
+ "indexed": false,
71
+ "internalType": "string",
72
+ "name": "newSymbol",
73
+ "type": "string"
74
+ }
75
+ ],
76
+ "name": "SymbolChanged",
77
+ "type": "event"
78
+ },
40
79
  {
41
80
  "anonymous": false,
42
81
  "inputs": [
@@ -62,19 +101,6 @@ export const USDTToken_jsonAbi = [
62
101
  "name": "Transfer",
63
102
  "type": "event"
64
103
  },
65
- {
66
- "inputs": [],
67
- "name": "WITHDRAW_ADDRESS",
68
- "outputs": [
69
- {
70
- "internalType": "address",
71
- "name": "",
72
- "type": "address"
73
- }
74
- ],
75
- "stateMutability": "view",
76
- "type": "function"
77
- },
78
104
  {
79
105
  "inputs": [
80
106
  {
@@ -156,29 +182,64 @@ export const USDTToken_jsonAbi = [
156
182
  "type": "function"
157
183
  },
158
184
  {
159
- "inputs": [],
160
- "name": "getETHBalance",
161
- "outputs": [
185
+ "inputs": [
186
+ {
187
+ "internalType": "address",
188
+ "name": "spender",
189
+ "type": "address"
190
+ },
162
191
  {
163
192
  "internalType": "uint256",
193
+ "name": "subtractedValue",
194
+ "type": "uint256"
195
+ }
196
+ ],
197
+ "name": "decreaseAllowance",
198
+ "outputs": [
199
+ {
200
+ "internalType": "bool",
164
201
  "name": "",
202
+ "type": "bool"
203
+ }
204
+ ],
205
+ "stateMutability": "nonpayable",
206
+ "type": "function"
207
+ },
208
+ {
209
+ "inputs": [
210
+ {
211
+ "internalType": "address",
212
+ "name": "spender",
213
+ "type": "address"
214
+ },
215
+ {
216
+ "internalType": "uint256",
217
+ "name": "addedValue",
165
218
  "type": "uint256"
166
219
  }
167
220
  ],
168
- "stateMutability": "view",
221
+ "name": "increaseAllowance",
222
+ "outputs": [
223
+ {
224
+ "internalType": "bool",
225
+ "name": "",
226
+ "type": "bool"
227
+ }
228
+ ],
229
+ "stateMutability": "nonpayable",
169
230
  "type": "function"
170
231
  },
171
232
  {
172
233
  "inputs": [],
173
- "name": "getWithdrawalAddress",
234
+ "name": "isRenounced",
174
235
  "outputs": [
175
236
  {
176
- "internalType": "address",
237
+ "internalType": "bool",
177
238
  "name": "",
178
- "type": "address"
239
+ "type": "bool"
179
240
  }
180
241
  ],
181
- "stateMutability": "pure",
242
+ "stateMutability": "view",
182
243
  "type": "function"
183
244
  },
184
245
  {
@@ -195,19 +256,60 @@ export const USDTToken_jsonAbi = [
195
256
  "type": "function"
196
257
  },
197
258
  {
198
- "inputs": [
259
+ "inputs": [],
260
+ "name": "owner",
261
+ "outputs": [
199
262
  {
200
263
  "internalType": "address",
201
- "name": "token",
264
+ "name": "",
202
265
  "type": "address"
203
- },
266
+ }
267
+ ],
268
+ "stateMutability": "view",
269
+ "type": "function"
270
+ },
271
+ {
272
+ "inputs": [],
273
+ "name": "renounceOwnership",
274
+ "outputs": [],
275
+ "stateMutability": "nonpayable",
276
+ "type": "function"
277
+ },
278
+ {
279
+ "inputs": [],
280
+ "name": "renounced",
281
+ "outputs": [
204
282
  {
205
- "internalType": "uint256",
206
- "name": "amount",
207
- "type": "uint256"
283
+ "internalType": "bool",
284
+ "name": "",
285
+ "type": "bool"
286
+ }
287
+ ],
288
+ "stateMutability": "view",
289
+ "type": "function"
290
+ },
291
+ {
292
+ "inputs": [
293
+ {
294
+ "internalType": "string",
295
+ "name": "newName",
296
+ "type": "string"
297
+ }
298
+ ],
299
+ "name": "setName",
300
+ "outputs": [],
301
+ "stateMutability": "nonpayable",
302
+ "type": "function"
303
+ },
304
+ {
305
+ "inputs": [
306
+ {
307
+ "internalType": "string",
308
+ "name": "newSymbol",
309
+ "type": "string"
208
310
  }
209
311
  ],
210
- "name": "recoverToken",
312
+ "name": "setSymbol",
211
313
  "outputs": [],
212
314
  "stateMutability": "nonpayable",
213
315
  "type": "function"
@@ -225,6 +327,19 @@ export const USDTToken_jsonAbi = [
225
327
  "stateMutability": "view",
226
328
  "type": "function"
227
329
  },
330
+ {
331
+ "inputs": [],
332
+ "name": "tokenImage",
333
+ "outputs": [
334
+ {
335
+ "internalType": "string",
336
+ "name": "",
337
+ "type": "string"
338
+ }
339
+ ],
340
+ "stateMutability": "pure",
341
+ "type": "function"
342
+ },
228
343
  {
229
344
  "inputs": [],
230
345
  "name": "totalSupply",
@@ -290,34 +405,23 @@ export const USDTToken_jsonAbi = [
290
405
  ],
291
406
  "stateMutability": "nonpayable",
292
407
  "type": "function"
293
- },
294
- {
295
- "inputs": [],
296
- "name": "withdrawETH",
297
- "outputs": [],
298
- "stateMutability": "nonpayable",
299
- "type": "function"
300
- },
301
- {
302
- "stateMutability": "payable",
303
- "type": "receive"
304
408
  }
305
409
  ] as const satisfies Abi;
306
410
 
307
411
  /**
308
- * Type-safe ABI for USDTToken_json
412
+ * Type-safe ABI for USDToken_json
309
413
  */
310
- export type USDTToken_jsonAbi = typeof USDTToken_jsonAbi;
414
+ export type USDToken_jsonAbi = typeof USDToken_jsonAbi;
311
415
 
312
416
  /**
313
- * Contract instance type for USDTToken_json
417
+ * Contract instance type for USDToken_json
314
418
  */
315
419
  // Use any for contract type to avoid complex viem type issues
316
420
  // The runtime behavior is type-safe through viem's ABI typing
317
- export type USDTToken_jsonContract = any;
421
+ export type USDToken_jsonContract = any;
318
422
 
319
423
  /**
320
- * USDTToken_json Contract Class
424
+ * USDToken_json Contract Class
321
425
  *
322
426
  * Provides a class-based API similar to TypeChain for interacting with the contract.
323
427
  *
@@ -325,12 +429,12 @@ export type USDTToken_jsonContract = any;
325
429
  * ```typescript
326
430
  * import { createPublicClient, createWalletClient, http } from 'viem';
327
431
  * import { mainnet } from 'viem/chains';
328
- * import { USDTToken_json } from 'USDTToken_json';
432
+ * import { USDToken_json } from 'USDToken_json';
329
433
  *
330
434
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
331
435
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
332
436
  *
333
- * const contract = new USDTToken_json('0x...', { publicClient, walletClient });
437
+ * const contract = new USDToken_json('0x...', { publicClient, walletClient });
334
438
  *
335
439
  * // Read functions
336
440
  * const result = await contract.balanceOf('0x...');
@@ -348,8 +452,8 @@ export type USDTToken_jsonContract = any;
348
452
  * });
349
453
  * ```
350
454
  */
351
- export class USDTToken_json {
352
- private contract: USDTToken_jsonContract;
455
+ export class USDToken_json {
456
+ private contract: USDToken_jsonContract;
353
457
  private contractAddress: Address;
354
458
  private publicClient: PublicClient;
355
459
 
@@ -364,7 +468,7 @@ export class USDTToken_json {
364
468
  this.publicClient = clients.publicClient;
365
469
  this.contract = getContract({
366
470
  address,
367
- abi: USDTToken_jsonAbi,
471
+ abi: USDToken_jsonAbi,
368
472
  client: {
369
473
  public: clients.publicClient,
370
474
  wallet: clients.walletClient,
@@ -382,18 +486,10 @@ export class USDTToken_json {
382
486
  /**
383
487
  * Get the underlying viem contract instance
384
488
  */
385
- getContract(): USDTToken_jsonContract {
489
+ getContract(): USDToken_jsonContract {
386
490
  return this.contract;
387
491
  }
388
492
 
389
- /**
390
- * WITHDRAW_ADDRESS
391
- * view
392
- */
393
- async WITHDRAW_ADDRESS(): Promise<`0x${string}`> {
394
- return this.contract.read.WITHDRAW_ADDRESS() as Promise<`0x${string}`>;
395
- }
396
-
397
493
  /**
398
494
  * allowance
399
495
  * view
@@ -419,27 +515,35 @@ export class USDTToken_json {
419
515
  }
420
516
 
421
517
  /**
422
- * getETHBalance
518
+ * isRenounced
423
519
  * view
424
520
  */
425
- async getETHBalance(): Promise<bigint> {
426
- return this.contract.read.getETHBalance() as Promise<bigint>;
521
+ async isRenounced(): Promise<boolean> {
522
+ return this.contract.read.isRenounced() as Promise<boolean>;
427
523
  }
428
524
 
429
525
  /**
430
- * getWithdrawalAddress
431
- * pure
526
+ * name
527
+ * view
432
528
  */
433
- async getWithdrawalAddress(): Promise<`0x${string}`> {
434
- return this.contract.read.getWithdrawalAddress() as Promise<`0x${string}`>;
529
+ async name(): Promise<string> {
530
+ return this.contract.read.name() as Promise<string>;
435
531
  }
436
532
 
437
533
  /**
438
- * name
534
+ * owner
439
535
  * view
440
536
  */
441
- async name(): Promise<string> {
442
- return this.contract.read.name() as Promise<string>;
537
+ async owner(): Promise<`0x${string}`> {
538
+ return this.contract.read.owner() as Promise<`0x${string}`>;
539
+ }
540
+
541
+ /**
542
+ * renounced
543
+ * view
544
+ */
545
+ async renounced(): Promise<boolean> {
546
+ return this.contract.read.renounced() as Promise<boolean>;
443
547
  }
444
548
 
445
549
  /**
@@ -450,6 +554,14 @@ export class USDTToken_json {
450
554
  return this.contract.read.symbol() as Promise<string>;
451
555
  }
452
556
 
557
+ /**
558
+ * tokenImage
559
+ * pure
560
+ */
561
+ async tokenImage(): Promise<string> {
562
+ return this.contract.read.tokenImage() as Promise<string>;
563
+ }
564
+
453
565
  /**
454
566
  * totalSupply
455
567
  * view
@@ -482,11 +594,11 @@ export class USDTToken_json {
482
594
  }
483
595
 
484
596
  /**
485
- * recoverToken
597
+ * decreaseAllowance
486
598
  * nonpayable
487
599
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
488
600
  */
489
- async recoverToken(token: `0x${string}`, amount: bigint, options?: {
601
+ async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
490
602
  accessList?: import('viem').AccessList;
491
603
  authorizationList?: import('viem').AuthorizationList;
492
604
  chain?: import('viem').Chain | null;
@@ -501,15 +613,15 @@ export class USDTToken_json {
501
613
  if (!this.contract.write) {
502
614
  throw new Error('Wallet client is required for write operations');
503
615
  }
504
- return this.contract.write.recoverToken([token, amount] as const, options) as Promise<`0x${string}`>;
616
+ return this.contract.write.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<`0x${string}`>;
505
617
  }
506
618
 
507
619
  /**
508
- * transfer
620
+ * increaseAllowance
509
621
  * nonpayable
510
622
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
511
623
  */
512
- async transfer(to: `0x${string}`, amount: bigint, options?: {
624
+ async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
513
625
  accessList?: import('viem').AccessList;
514
626
  authorizationList?: import('viem').AuthorizationList;
515
627
  chain?: import('viem').Chain | null;
@@ -524,15 +636,15 @@ export class USDTToken_json {
524
636
  if (!this.contract.write) {
525
637
  throw new Error('Wallet client is required for write operations');
526
638
  }
527
- return this.contract.write.transfer([to, amount] as const, options) as Promise<`0x${string}`>;
639
+ return this.contract.write.increaseAllowance([spender, addedValue] as const, options) as Promise<`0x${string}`>;
528
640
  }
529
641
 
530
642
  /**
531
- * transferFrom
643
+ * renounceOwnership
532
644
  * nonpayable
533
645
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
534
646
  */
535
- async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
647
+ async renounceOwnership(options?: {
536
648
  accessList?: import('viem').AccessList;
537
649
  authorizationList?: import('viem').AuthorizationList;
538
650
  chain?: import('viem').Chain | null;
@@ -547,15 +659,15 @@ export class USDTToken_json {
547
659
  if (!this.contract.write) {
548
660
  throw new Error('Wallet client is required for write operations');
549
661
  }
550
- return this.contract.write.transferFrom([from, to, amount] as const, options) as Promise<`0x${string}`>;
662
+ return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
551
663
  }
552
664
 
553
665
  /**
554
- * withdrawETH
666
+ * setName
555
667
  * nonpayable
556
668
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
557
669
  */
558
- async withdrawETH(options?: {
670
+ async setName(newName: string, options?: {
559
671
  accessList?: import('viem').AccessList;
560
672
  authorizationList?: import('viem').AuthorizationList;
561
673
  chain?: import('viem').Chain | null;
@@ -570,7 +682,76 @@ export class USDTToken_json {
570
682
  if (!this.contract.write) {
571
683
  throw new Error('Wallet client is required for write operations');
572
684
  }
573
- return this.contract.write.withdrawETH(options) as Promise<`0x${string}`>;
685
+ return this.contract.write.setName([newName] as const, options) as Promise<`0x${string}`>;
686
+ }
687
+
688
+ /**
689
+ * setSymbol
690
+ * nonpayable
691
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
692
+ */
693
+ async setSymbol(newSymbol: string, options?: {
694
+ accessList?: import('viem').AccessList;
695
+ authorizationList?: import('viem').AuthorizationList;
696
+ chain?: import('viem').Chain | null;
697
+ dataSuffix?: `0x${string}`;
698
+ gas?: bigint;
699
+ gasPrice?: bigint;
700
+ maxFeePerGas?: bigint;
701
+ maxPriorityFeePerGas?: bigint;
702
+ nonce?: number;
703
+ value?: bigint;
704
+ }): Promise<`0x${string}`> {
705
+ if (!this.contract.write) {
706
+ throw new Error('Wallet client is required for write operations');
707
+ }
708
+ return this.contract.write.setSymbol([newSymbol] as const, options) as Promise<`0x${string}`>;
709
+ }
710
+
711
+ /**
712
+ * transfer
713
+ * nonpayable
714
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
715
+ */
716
+ async transfer(to: `0x${string}`, amount: bigint, options?: {
717
+ accessList?: import('viem').AccessList;
718
+ authorizationList?: import('viem').AuthorizationList;
719
+ chain?: import('viem').Chain | null;
720
+ dataSuffix?: `0x${string}`;
721
+ gas?: bigint;
722
+ gasPrice?: bigint;
723
+ maxFeePerGas?: bigint;
724
+ maxPriorityFeePerGas?: bigint;
725
+ nonce?: number;
726
+ value?: bigint;
727
+ }): Promise<`0x${string}`> {
728
+ if (!this.contract.write) {
729
+ throw new Error('Wallet client is required for write operations');
730
+ }
731
+ return this.contract.write.transfer([to, amount] as const, options) as Promise<`0x${string}`>;
732
+ }
733
+
734
+ /**
735
+ * transferFrom
736
+ * nonpayable
737
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
738
+ */
739
+ async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, 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<`0x${string}`> {
751
+ if (!this.contract.write) {
752
+ throw new Error('Wallet client is required for write operations');
753
+ }
754
+ return this.contract.write.transferFrom([from, to, amount] as const, options) as Promise<`0x${string}`>;
574
755
  }
575
756
 
576
757
 
@@ -609,11 +790,11 @@ export class USDTToken_json {
609
790
  return contract.simulate.approve([spender, amount] as const, options) as Promise<boolean>;
610
791
  },
611
792
  /**
612
- * Simulate recoverToken
793
+ * Simulate decreaseAllowance
613
794
  * Returns gas estimate and result without sending transaction
614
795
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
615
796
  */
616
- async recoverToken(token: `0x${string}`, amount: bigint, options?: {
797
+ async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
617
798
  accessList?: import('viem').AccessList;
618
799
  authorizationList?: import('viem').AuthorizationList;
619
800
  chain?: import('viem').Chain | null;
@@ -624,15 +805,15 @@ export class USDTToken_json {
624
805
  maxPriorityFeePerGas?: bigint;
625
806
  nonce?: number;
626
807
  value?: bigint;
627
- }): Promise<void> {
628
- return contract.simulate.recoverToken([token, amount] as const, options) as Promise<void>;
808
+ }): Promise<boolean> {
809
+ return contract.simulate.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<boolean>;
629
810
  },
630
811
  /**
631
- * Simulate transfer
812
+ * Simulate increaseAllowance
632
813
  * Returns gas estimate and result without sending transaction
633
814
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
634
815
  */
635
- async transfer(to: `0x${string}`, amount: bigint, options?: {
816
+ async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
636
817
  accessList?: import('viem').AccessList;
637
818
  authorizationList?: import('viem').AuthorizationList;
638
819
  chain?: import('viem').Chain | null;
@@ -644,14 +825,14 @@ export class USDTToken_json {
644
825
  nonce?: number;
645
826
  value?: bigint;
646
827
  }): Promise<boolean> {
647
- return contract.simulate.transfer([to, amount] as const, options) as Promise<boolean>;
828
+ return contract.simulate.increaseAllowance([spender, addedValue] as const, options) as Promise<boolean>;
648
829
  },
649
830
  /**
650
- * Simulate transferFrom
831
+ * Simulate renounceOwnership
651
832
  * Returns gas estimate and result without sending transaction
652
833
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
653
834
  */
654
- async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
835
+ async renounceOwnership(options?: {
655
836
  accessList?: import('viem').AccessList;
656
837
  authorizationList?: import('viem').AuthorizationList;
657
838
  chain?: import('viem').Chain | null;
@@ -662,15 +843,34 @@ export class USDTToken_json {
662
843
  maxPriorityFeePerGas?: bigint;
663
844
  nonce?: number;
664
845
  value?: bigint;
665
- }): Promise<boolean> {
666
- return contract.simulate.transferFrom([from, to, amount] as const, options) as Promise<boolean>;
846
+ }): Promise<void> {
847
+ return contract.simulate.renounceOwnership(options) as Promise<void>;
848
+ },
849
+ /**
850
+ * Simulate setName
851
+ * Returns gas estimate and result without sending transaction
852
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
853
+ */
854
+ async setName(newName: string, options?: {
855
+ accessList?: import('viem').AccessList;
856
+ authorizationList?: import('viem').AuthorizationList;
857
+ chain?: import('viem').Chain | null;
858
+ dataSuffix?: `0x${string}`;
859
+ gas?: bigint;
860
+ gasPrice?: bigint;
861
+ maxFeePerGas?: bigint;
862
+ maxPriorityFeePerGas?: bigint;
863
+ nonce?: number;
864
+ value?: bigint;
865
+ }): Promise<void> {
866
+ return contract.simulate.setName([newName] as const, options) as Promise<void>;
667
867
  },
668
868
  /**
669
- * Simulate withdrawETH
869
+ * Simulate setSymbol
670
870
  * Returns gas estimate and result without sending transaction
671
871
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
672
872
  */
673
- async withdrawETH(options?: {
873
+ async setSymbol(newSymbol: string, options?: {
674
874
  accessList?: import('viem').AccessList;
675
875
  authorizationList?: import('viem').AuthorizationList;
676
876
  chain?: import('viem').Chain | null;
@@ -682,7 +882,45 @@ export class USDTToken_json {
682
882
  nonce?: number;
683
883
  value?: bigint;
684
884
  }): Promise<void> {
685
- return contract.simulate.withdrawETH(options) as Promise<void>;
885
+ return contract.simulate.setSymbol([newSymbol] as const, options) as Promise<void>;
886
+ },
887
+ /**
888
+ * Simulate transfer
889
+ * Returns gas estimate and result without sending transaction
890
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
891
+ */
892
+ async transfer(to: `0x${string}`, amount: bigint, options?: {
893
+ accessList?: import('viem').AccessList;
894
+ authorizationList?: import('viem').AuthorizationList;
895
+ chain?: import('viem').Chain | null;
896
+ dataSuffix?: `0x${string}`;
897
+ gas?: bigint;
898
+ gasPrice?: bigint;
899
+ maxFeePerGas?: bigint;
900
+ maxPriorityFeePerGas?: bigint;
901
+ nonce?: number;
902
+ value?: bigint;
903
+ }): Promise<boolean> {
904
+ return contract.simulate.transfer([to, amount] as const, options) as Promise<boolean>;
905
+ },
906
+ /**
907
+ * Simulate transferFrom
908
+ * Returns gas estimate and result without sending transaction
909
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
910
+ */
911
+ async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
912
+ accessList?: import('viem').AccessList;
913
+ authorizationList?: import('viem').AuthorizationList;
914
+ chain?: import('viem').Chain | null;
915
+ dataSuffix?: `0x${string}`;
916
+ gas?: bigint;
917
+ gasPrice?: bigint;
918
+ maxFeePerGas?: bigint;
919
+ maxPriorityFeePerGas?: bigint;
920
+ nonce?: number;
921
+ value?: bigint;
922
+ }): Promise<boolean> {
923
+ return contract.simulate.transferFrom([from, to, amount] as const, options) as Promise<boolean>;
686
924
  }
687
925
  };
688
926
  }
@@ -710,7 +948,7 @@ export class USDTToken_json {
710
948
  Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
711
949
  return this.publicClient.watchContractEvent({
712
950
  address: this.contractAddress,
713
- abi: USDTToken_jsonAbi,
951
+ abi: USDToken_jsonAbi,
714
952
  eventName: 'Approval',
715
953
  args: filter,
716
954
  onLogs: (logs: any[]) => {
@@ -720,6 +958,63 @@ export class USDTToken_json {
720
958
  },
721
959
  }) as () => void;
722
960
  },
961
+ /**
962
+ * Watch NameChanged events
963
+ * @param callback Function to call when event is emitted
964
+ * @param filter Optional filter for indexed parameters
965
+ * @returns Unwatch function to stop listening
966
+ */
967
+ NameChanged: (callback: (event: { newName: string }) => void) => {
968
+ return this.publicClient.watchContractEvent({
969
+ address: this.contractAddress,
970
+ abi: USDToken_jsonAbi,
971
+ eventName: 'NameChanged',
972
+
973
+ onLogs: (logs: any[]) => {
974
+ logs.forEach((log: any) => {
975
+ callback(log.args as any);
976
+ });
977
+ },
978
+ }) as () => void;
979
+ },
980
+ /**
981
+ * Watch OwnershipRenounced events
982
+ * @param callback Function to call when event is emitted
983
+ * @param filter Optional filter for indexed parameters
984
+ * @returns Unwatch function to stop listening
985
+ */
986
+ OwnershipRenounced: (callback: (event: { previousOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}` }) => {
987
+ return this.publicClient.watchContractEvent({
988
+ address: this.contractAddress,
989
+ abi: USDToken_jsonAbi,
990
+ eventName: 'OwnershipRenounced',
991
+ args: filter,
992
+ onLogs: (logs: any[]) => {
993
+ logs.forEach((log: any) => {
994
+ callback(log.args as any);
995
+ });
996
+ },
997
+ }) as () => void;
998
+ },
999
+ /**
1000
+ * Watch SymbolChanged events
1001
+ * @param callback Function to call when event is emitted
1002
+ * @param filter Optional filter for indexed parameters
1003
+ * @returns Unwatch function to stop listening
1004
+ */
1005
+ SymbolChanged: (callback: (event: { newSymbol: string }) => void) => {
1006
+ return this.publicClient.watchContractEvent({
1007
+ address: this.contractAddress,
1008
+ abi: USDToken_jsonAbi,
1009
+ eventName: 'SymbolChanged',
1010
+
1011
+ onLogs: (logs: any[]) => {
1012
+ logs.forEach((log: any) => {
1013
+ callback(log.args as any);
1014
+ });
1015
+ },
1016
+ }) as () => void;
1017
+ },
723
1018
  /**
724
1019
  * Watch Transfer events
725
1020
  * @param callback Function to call when event is emitted
@@ -729,7 +1024,7 @@ export class USDTToken_json {
729
1024
  Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
730
1025
  return this.publicClient.watchContractEvent({
731
1026
  address: this.contractAddress,
732
- abi: USDTToken_jsonAbi,
1027
+ abi: USDToken_jsonAbi,
733
1028
  eventName: 'Transfer',
734
1029
  args: filter,
735
1030
  onLogs: (logs: any[]) => {