@gitmyabi/usdt 1.0.2 → 1.0.3

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,14 +2,45 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * USDToken_json ABI
5
+ * TetherUSD_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const USDToken_jsonAbi = [
9
+ export const TetherUSD_jsonAbi = [
10
10
  {
11
- "inputs": [],
12
- "stateMutability": "nonpayable",
11
+ "inputs": [
12
+ {
13
+ "internalType": "string",
14
+ "name": "name_",
15
+ "type": "string"
16
+ },
17
+ {
18
+ "internalType": "string",
19
+ "name": "symbol_",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "internalType": "uint256",
24
+ "name": "decimals_",
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"
41
+ }
42
+ ],
43
+ "stateMutability": "payable",
13
44
  "type": "constructor"
14
45
  },
15
46
  {
@@ -82,15 +113,41 @@ export const USDToken_jsonAbi = [
82
113
  "type": "event"
83
114
  },
84
115
  {
85
- "inputs": [
116
+ "inputs": [],
117
+ "name": "Optimization",
118
+ "outputs": [
119
+ {
120
+ "internalType": "uint256",
121
+ "name": "",
122
+ "type": "uint256"
123
+ }
124
+ ],
125
+ "stateMutability": "view",
126
+ "type": "function"
127
+ },
128
+ {
129
+ "inputs": [],
130
+ "name": "_owner",
131
+ "outputs": [
86
132
  {
87
133
  "internalType": "address",
88
134
  "name": "",
89
135
  "type": "address"
136
+ }
137
+ ],
138
+ "stateMutability": "view",
139
+ "type": "function"
140
+ },
141
+ {
142
+ "inputs": [
143
+ {
144
+ "internalType": "address",
145
+ "name": "owner",
146
+ "type": "address"
90
147
  },
91
148
  {
92
149
  "internalType": "address",
93
- "name": "",
150
+ "name": "spender",
94
151
  "type": "address"
95
152
  }
96
153
  ],
@@ -133,7 +190,7 @@ export const USDToken_jsonAbi = [
133
190
  "inputs": [
134
191
  {
135
192
  "internalType": "address",
136
- "name": "",
193
+ "name": "account",
137
194
  "type": "address"
138
195
  }
139
196
  ],
@@ -153,14 +210,80 @@ export const USDToken_jsonAbi = [
153
210
  "name": "decimals",
154
211
  "outputs": [
155
212
  {
156
- "internalType": "uint8",
213
+ "internalType": "uint256",
157
214
  "name": "",
158
- "type": "uint8"
215
+ "type": "uint256"
159
216
  }
160
217
  ],
161
218
  "stateMutability": "view",
162
219
  "type": "function"
163
220
  },
221
+ {
222
+ "inputs": [
223
+ {
224
+ "internalType": "address",
225
+ "name": "spender",
226
+ "type": "address"
227
+ },
228
+ {
229
+ "internalType": "uint256",
230
+ "name": "subtractedValue",
231
+ "type": "uint256"
232
+ }
233
+ ],
234
+ "name": "decreaseAllowance",
235
+ "outputs": [
236
+ {
237
+ "internalType": "bool",
238
+ "name": "",
239
+ "type": "bool"
240
+ }
241
+ ],
242
+ "stateMutability": "nonpayable",
243
+ "type": "function"
244
+ },
245
+ {
246
+ "inputs": [
247
+ {
248
+ "internalType": "address",
249
+ "name": "spender",
250
+ "type": "address"
251
+ },
252
+ {
253
+ "internalType": "uint256",
254
+ "name": "addedValue",
255
+ "type": "uint256"
256
+ }
257
+ ],
258
+ "name": "increaseAllowance",
259
+ "outputs": [
260
+ {
261
+ "internalType": "bool",
262
+ "name": "",
263
+ "type": "bool"
264
+ }
265
+ ],
266
+ "stateMutability": "nonpayable",
267
+ "type": "function"
268
+ },
269
+ {
270
+ "inputs": [
271
+ {
272
+ "internalType": "address",
273
+ "name": "account",
274
+ "type": "address"
275
+ },
276
+ {
277
+ "internalType": "uint256",
278
+ "name": "amount",
279
+ "type": "uint256"
280
+ }
281
+ ],
282
+ "name": "mint",
283
+ "outputs": [],
284
+ "stateMutability": "nonpayable",
285
+ "type": "function"
286
+ },
164
287
  {
165
288
  "inputs": [],
166
289
  "name": "name",
@@ -188,28 +311,33 @@ export const USDToken_jsonAbi = [
188
311
  "type": "function"
189
312
  },
190
313
  {
191
- "inputs": [],
192
- "name": "renounceOwnership",
314
+ "inputs": [
315
+ {
316
+ "internalType": "address",
317
+ "name": "tokenAddress",
318
+ "type": "address"
319
+ },
320
+ {
321
+ "internalType": "uint256",
322
+ "name": "tokenAmount",
323
+ "type": "uint256"
324
+ }
325
+ ],
326
+ "name": "recoverERC20",
193
327
  "outputs": [],
194
328
  "stateMutability": "nonpayable",
195
329
  "type": "function"
196
330
  },
197
331
  {
198
332
  "inputs": [],
199
- "name": "symbol",
200
- "outputs": [
201
- {
202
- "internalType": "string",
203
- "name": "",
204
- "type": "string"
205
- }
206
- ],
207
- "stateMutability": "view",
333
+ "name": "renounceOwnership",
334
+ "outputs": [],
335
+ "stateMutability": "nonpayable",
208
336
  "type": "function"
209
337
  },
210
338
  {
211
339
  "inputs": [],
212
- "name": "tokenImage",
340
+ "name": "symbol",
213
341
  "outputs": [
214
342
  {
215
343
  "internalType": "string",
@@ -217,7 +345,7 @@ export const USDToken_jsonAbi = [
217
345
  "type": "string"
218
346
  }
219
347
  ],
220
- "stateMutability": "pure",
348
+ "stateMutability": "view",
221
349
  "type": "function"
222
350
  },
223
351
  {
@@ -237,7 +365,7 @@ export const USDToken_jsonAbi = [
237
365
  "inputs": [
238
366
  {
239
367
  "internalType": "address",
240
- "name": "to",
368
+ "name": "recipient",
241
369
  "type": "address"
242
370
  },
243
371
  {
@@ -261,12 +389,12 @@ export const USDToken_jsonAbi = [
261
389
  "inputs": [
262
390
  {
263
391
  "internalType": "address",
264
- "name": "from",
392
+ "name": "sender",
265
393
  "type": "address"
266
394
  },
267
395
  {
268
396
  "internalType": "address",
269
- "name": "to",
397
+ "name": "recipient",
270
398
  "type": "address"
271
399
  },
272
400
  {
@@ -302,19 +430,19 @@ export const USDToken_jsonAbi = [
302
430
  ] as const satisfies Abi;
303
431
 
304
432
  /**
305
- * Type-safe ABI for USDToken_json
433
+ * Type-safe ABI for TetherUSD_json
306
434
  */
307
- export type USDToken_jsonAbi = typeof USDToken_jsonAbi;
435
+ export type TetherUSD_jsonAbi = typeof TetherUSD_jsonAbi;
308
436
 
309
437
  /**
310
- * Contract instance type for USDToken_json
438
+ * Contract instance type for TetherUSD_json
311
439
  */
312
440
  // Use any for contract type to avoid complex viem type issues
313
441
  // The runtime behavior is type-safe through viem's ABI typing
314
- export type USDToken_jsonContract = any;
442
+ export type TetherUSD_jsonContract = any;
315
443
 
316
444
  /**
317
- * USDToken_json Contract Class
445
+ * TetherUSD_json Contract Class
318
446
  *
319
447
  * Provides a class-based API similar to TypeChain for interacting with the contract.
320
448
  *
@@ -322,12 +450,12 @@ export type USDToken_jsonContract = any;
322
450
  * ```typescript
323
451
  * import { createPublicClient, createWalletClient, http } from 'viem';
324
452
  * import { mainnet } from 'viem/chains';
325
- * import { USDToken_json } from 'USDToken_json';
453
+ * import { TetherUSD_json } from 'TetherUSD_json';
326
454
  *
327
455
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
328
456
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
329
457
  *
330
- * const contract = new USDToken_json('0x...', { publicClient, walletClient });
458
+ * const contract = new TetherUSD_json('0x...', { publicClient, walletClient });
331
459
  *
332
460
  * // Read functions
333
461
  * const result = await contract.balanceOf('0x...');
@@ -345,8 +473,8 @@ export type USDToken_jsonContract = any;
345
473
  * });
346
474
  * ```
347
475
  */
348
- export class USDToken_json {
349
- private contract: USDToken_jsonContract;
476
+ export class TetherUSD_json {
477
+ private contract: TetherUSD_jsonContract;
350
478
  private contractAddress: Address;
351
479
  private publicClient: PublicClient;
352
480
 
@@ -361,7 +489,7 @@ export class USDToken_json {
361
489
  this.publicClient = clients.publicClient;
362
490
  this.contract = getContract({
363
491
  address,
364
- abi: USDToken_jsonAbi,
492
+ abi: TetherUSD_jsonAbi,
365
493
  client: {
366
494
  public: clients.publicClient,
367
495
  wallet: clients.walletClient,
@@ -379,24 +507,40 @@ export class USDToken_json {
379
507
  /**
380
508
  * Get the underlying viem contract instance
381
509
  */
382
- getContract(): USDToken_jsonContract {
510
+ getContract(): TetherUSD_jsonContract {
383
511
  return this.contract;
384
512
  }
385
513
 
514
+ /**
515
+ * Optimization
516
+ * view
517
+ */
518
+ async Optimization(): Promise<bigint> {
519
+ return this.contract.read.Optimization() as Promise<bigint>;
520
+ }
521
+
522
+ /**
523
+ * _owner
524
+ * view
525
+ */
526
+ async _owner(): Promise<`0x${string}`> {
527
+ return this.contract.read._owner() as Promise<`0x${string}`>;
528
+ }
529
+
386
530
  /**
387
531
  * allowance
388
532
  * view
389
533
  */
390
- async allowance(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint> {
391
- return this.contract.read.allowance([arg0, arg1] as const) as Promise<bigint>;
534
+ async allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
535
+ return this.contract.read.allowance([owner, spender] as const) as Promise<bigint>;
392
536
  }
393
537
 
394
538
  /**
395
539
  * balanceOf
396
540
  * view
397
541
  */
398
- async balanceOf(arg0: `0x${string}`): Promise<bigint> {
399
- return this.contract.read.balanceOf([arg0] as const) as Promise<bigint>;
542
+ async balanceOf(account: `0x${string}`): Promise<bigint> {
543
+ return this.contract.read.balanceOf([account] as const) as Promise<bigint>;
400
544
  }
401
545
 
402
546
  /**
@@ -431,14 +575,6 @@ export class USDToken_json {
431
575
  return this.contract.read.symbol() as Promise<string>;
432
576
  }
433
577
 
434
- /**
435
- * tokenImage
436
- * pure
437
- */
438
- async tokenImage(): Promise<string> {
439
- return this.contract.read.tokenImage() as Promise<string>;
440
- }
441
-
442
578
  /**
443
579
  * totalSupply
444
580
  * view
@@ -470,6 +606,98 @@ export class USDToken_json {
470
606
  return this.contract.write.approve([spender, amount] as const, options) as Promise<`0x${string}`>;
471
607
  }
472
608
 
609
+ /**
610
+ * decreaseAllowance
611
+ * nonpayable
612
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
613
+ */
614
+ async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
615
+ accessList?: import('viem').AccessList;
616
+ authorizationList?: import('viem').AuthorizationList;
617
+ chain?: import('viem').Chain | null;
618
+ dataSuffix?: `0x${string}`;
619
+ gas?: bigint;
620
+ gasPrice?: bigint;
621
+ maxFeePerGas?: bigint;
622
+ maxPriorityFeePerGas?: bigint;
623
+ nonce?: number;
624
+ value?: bigint;
625
+ }): Promise<`0x${string}`> {
626
+ if (!this.contract.write) {
627
+ throw new Error('Wallet client is required for write operations');
628
+ }
629
+ return this.contract.write.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<`0x${string}`>;
630
+ }
631
+
632
+ /**
633
+ * increaseAllowance
634
+ * nonpayable
635
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
636
+ */
637
+ async increaseAllowance(spender: `0x${string}`, addedValue: 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<`0x${string}`> {
649
+ if (!this.contract.write) {
650
+ throw new Error('Wallet client is required for write operations');
651
+ }
652
+ return this.contract.write.increaseAllowance([spender, addedValue] as const, options) as Promise<`0x${string}`>;
653
+ }
654
+
655
+ /**
656
+ * mint
657
+ * nonpayable
658
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
659
+ */
660
+ async mint(account: `0x${string}`, amount: bigint, options?: {
661
+ accessList?: import('viem').AccessList;
662
+ authorizationList?: import('viem').AuthorizationList;
663
+ chain?: import('viem').Chain | null;
664
+ dataSuffix?: `0x${string}`;
665
+ gas?: bigint;
666
+ gasPrice?: bigint;
667
+ maxFeePerGas?: bigint;
668
+ maxPriorityFeePerGas?: bigint;
669
+ nonce?: number;
670
+ value?: bigint;
671
+ }): Promise<`0x${string}`> {
672
+ if (!this.contract.write) {
673
+ throw new Error('Wallet client is required for write operations');
674
+ }
675
+ return this.contract.write.mint([account, amount] as const, options) as Promise<`0x${string}`>;
676
+ }
677
+
678
+ /**
679
+ * recoverERC20
680
+ * nonpayable
681
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
682
+ */
683
+ async recoverERC20(tokenAddress: `0x${string}`, tokenAmount: bigint, options?: {
684
+ accessList?: import('viem').AccessList;
685
+ authorizationList?: import('viem').AuthorizationList;
686
+ chain?: import('viem').Chain | null;
687
+ dataSuffix?: `0x${string}`;
688
+ gas?: bigint;
689
+ gasPrice?: bigint;
690
+ maxFeePerGas?: bigint;
691
+ maxPriorityFeePerGas?: bigint;
692
+ nonce?: number;
693
+ value?: bigint;
694
+ }): Promise<`0x${string}`> {
695
+ if (!this.contract.write) {
696
+ throw new Error('Wallet client is required for write operations');
697
+ }
698
+ return this.contract.write.recoverERC20([tokenAddress, tokenAmount] as const, options) as Promise<`0x${string}`>;
699
+ }
700
+
473
701
  /**
474
702
  * renounceOwnership
475
703
  * nonpayable
@@ -498,7 +726,7 @@ export class USDToken_json {
498
726
  * nonpayable
499
727
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
500
728
  */
501
- async transfer(to: `0x${string}`, amount: bigint, options?: {
729
+ async transfer(recipient: `0x${string}`, amount: bigint, options?: {
502
730
  accessList?: import('viem').AccessList;
503
731
  authorizationList?: import('viem').AuthorizationList;
504
732
  chain?: import('viem').Chain | null;
@@ -513,7 +741,7 @@ export class USDToken_json {
513
741
  if (!this.contract.write) {
514
742
  throw new Error('Wallet client is required for write operations');
515
743
  }
516
- return this.contract.write.transfer([to, amount] as const, options) as Promise<`0x${string}`>;
744
+ return this.contract.write.transfer([recipient, amount] as const, options) as Promise<`0x${string}`>;
517
745
  }
518
746
 
519
747
  /**
@@ -521,7 +749,7 @@ export class USDToken_json {
521
749
  * nonpayable
522
750
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
523
751
  */
524
- async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
752
+ async transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
525
753
  accessList?: import('viem').AccessList;
526
754
  authorizationList?: import('viem').AuthorizationList;
527
755
  chain?: import('viem').Chain | null;
@@ -536,7 +764,7 @@ export class USDToken_json {
536
764
  if (!this.contract.write) {
537
765
  throw new Error('Wallet client is required for write operations');
538
766
  }
539
- return this.contract.write.transferFrom([from, to, amount] as const, options) as Promise<`0x${string}`>;
767
+ return this.contract.write.transferFrom([sender, recipient, amount] as const, options) as Promise<`0x${string}`>;
540
768
  }
541
769
 
542
770
  /**
@@ -597,6 +825,82 @@ export class USDToken_json {
597
825
  }): Promise<boolean> {
598
826
  return contract.simulate.approve([spender, amount] as const, options) as Promise<boolean>;
599
827
  },
828
+ /**
829
+ * Simulate decreaseAllowance
830
+ * Returns gas estimate and result without sending transaction
831
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
832
+ */
833
+ async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
834
+ accessList?: import('viem').AccessList;
835
+ authorizationList?: import('viem').AuthorizationList;
836
+ chain?: import('viem').Chain | null;
837
+ dataSuffix?: `0x${string}`;
838
+ gas?: bigint;
839
+ gasPrice?: bigint;
840
+ maxFeePerGas?: bigint;
841
+ maxPriorityFeePerGas?: bigint;
842
+ nonce?: number;
843
+ value?: bigint;
844
+ }): Promise<boolean> {
845
+ return contract.simulate.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<boolean>;
846
+ },
847
+ /**
848
+ * Simulate increaseAllowance
849
+ * Returns gas estimate and result without sending transaction
850
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
851
+ */
852
+ async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
853
+ accessList?: import('viem').AccessList;
854
+ authorizationList?: import('viem').AuthorizationList;
855
+ chain?: import('viem').Chain | null;
856
+ dataSuffix?: `0x${string}`;
857
+ gas?: bigint;
858
+ gasPrice?: bigint;
859
+ maxFeePerGas?: bigint;
860
+ maxPriorityFeePerGas?: bigint;
861
+ nonce?: number;
862
+ value?: bigint;
863
+ }): Promise<boolean> {
864
+ return contract.simulate.increaseAllowance([spender, addedValue] as const, options) as Promise<boolean>;
865
+ },
866
+ /**
867
+ * Simulate mint
868
+ * Returns gas estimate and result without sending transaction
869
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
870
+ */
871
+ async mint(account: `0x${string}`, amount: bigint, options?: {
872
+ accessList?: import('viem').AccessList;
873
+ authorizationList?: import('viem').AuthorizationList;
874
+ chain?: import('viem').Chain | null;
875
+ dataSuffix?: `0x${string}`;
876
+ gas?: bigint;
877
+ gasPrice?: bigint;
878
+ maxFeePerGas?: bigint;
879
+ maxPriorityFeePerGas?: bigint;
880
+ nonce?: number;
881
+ value?: bigint;
882
+ }): Promise<void> {
883
+ return contract.simulate.mint([account, amount] as const, options) as Promise<void>;
884
+ },
885
+ /**
886
+ * Simulate recoverERC20
887
+ * Returns gas estimate and result without sending transaction
888
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
889
+ */
890
+ async recoverERC20(tokenAddress: `0x${string}`, tokenAmount: bigint, options?: {
891
+ accessList?: import('viem').AccessList;
892
+ authorizationList?: import('viem').AuthorizationList;
893
+ chain?: import('viem').Chain | null;
894
+ dataSuffix?: `0x${string}`;
895
+ gas?: bigint;
896
+ gasPrice?: bigint;
897
+ maxFeePerGas?: bigint;
898
+ maxPriorityFeePerGas?: bigint;
899
+ nonce?: number;
900
+ value?: bigint;
901
+ }): Promise<void> {
902
+ return contract.simulate.recoverERC20([tokenAddress, tokenAmount] as const, options) as Promise<void>;
903
+ },
600
904
  /**
601
905
  * Simulate renounceOwnership
602
906
  * Returns gas estimate and result without sending transaction
@@ -621,7 +925,7 @@ export class USDToken_json {
621
925
  * Returns gas estimate and result without sending transaction
622
926
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
623
927
  */
624
- async transfer(to: `0x${string}`, amount: bigint, options?: {
928
+ async transfer(recipient: `0x${string}`, amount: bigint, options?: {
625
929
  accessList?: import('viem').AccessList;
626
930
  authorizationList?: import('viem').AuthorizationList;
627
931
  chain?: import('viem').Chain | null;
@@ -633,14 +937,14 @@ export class USDToken_json {
633
937
  nonce?: number;
634
938
  value?: bigint;
635
939
  }): Promise<boolean> {
636
- return contract.simulate.transfer([to, amount] as const, options) as Promise<boolean>;
940
+ return contract.simulate.transfer([recipient, amount] as const, options) as Promise<boolean>;
637
941
  },
638
942
  /**
639
943
  * Simulate transferFrom
640
944
  * Returns gas estimate and result without sending transaction
641
945
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
642
946
  */
643
- async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
947
+ async transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
644
948
  accessList?: import('viem').AccessList;
645
949
  authorizationList?: import('viem').AuthorizationList;
646
950
  chain?: import('viem').Chain | null;
@@ -652,7 +956,7 @@ export class USDToken_json {
652
956
  nonce?: number;
653
957
  value?: bigint;
654
958
  }): Promise<boolean> {
655
- return contract.simulate.transferFrom([from, to, amount] as const, options) as Promise<boolean>;
959
+ return contract.simulate.transferFrom([sender, recipient, amount] as const, options) as Promise<boolean>;
656
960
  },
657
961
  /**
658
962
  * Simulate transferOwnership
@@ -699,7 +1003,7 @@ export class USDToken_json {
699
1003
  Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
700
1004
  return this.publicClient.watchContractEvent({
701
1005
  address: this.contractAddress,
702
- abi: USDToken_jsonAbi,
1006
+ abi: TetherUSD_jsonAbi,
703
1007
  eventName: 'Approval',
704
1008
  args: filter,
705
1009
  onLogs: (logs: any[]) => {
@@ -718,7 +1022,7 @@ export class USDToken_json {
718
1022
  OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
719
1023
  return this.publicClient.watchContractEvent({
720
1024
  address: this.contractAddress,
721
- abi: USDToken_jsonAbi,
1025
+ abi: TetherUSD_jsonAbi,
722
1026
  eventName: 'OwnershipTransferred',
723
1027
  args: filter,
724
1028
  onLogs: (logs: any[]) => {
@@ -737,7 +1041,7 @@ export class USDToken_json {
737
1041
  Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
738
1042
  return this.publicClient.watchContractEvent({
739
1043
  address: this.contractAddress,
740
- abi: USDToken_jsonAbi,
1044
+ abi: TetherUSD_jsonAbi,
741
1045
  eventName: 'Transfer',
742
1046
  args: filter,
743
1047
  onLogs: (logs: any[]) => {
@@ -1,2 +1,2 @@
1
- export { USDToken_jsonAbi, USDToken_json } from './USDToken_json';
2
- export type { USDToken_jsonAbi as USDToken_jsonAbiType, USDToken_jsonContract } from './USDToken_json';
1
+ export { TetherUSD_jsonAbi, TetherUSD_json } from './TetherUSD_json';
2
+ export type { TetherUSD_jsonAbi as TetherUSD_jsonAbiType, TetherUSD_jsonContract } from './TetherUSD_json';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.USDToken_json = exports.USDToken_jsonAbi = void 0;
3
+ exports.TetherUSD_json = exports.TetherUSD_jsonAbi = void 0;
4
4
  // Auto-generated exports for all contracts
5
- var USDToken_json_1 = require("./USDToken_json");
6
- Object.defineProperty(exports, "USDToken_jsonAbi", { enumerable: true, get: function () { return USDToken_json_1.USDToken_jsonAbi; } });
7
- Object.defineProperty(exports, "USDToken_json", { enumerable: true, get: function () { return USDToken_json_1.USDToken_json; } });
5
+ var TetherUSD_json_1 = require("./TetherUSD_json");
6
+ Object.defineProperty(exports, "TetherUSD_jsonAbi", { enumerable: true, get: function () { return TetherUSD_json_1.TetherUSD_jsonAbi; } });
7
+ Object.defineProperty(exports, "TetherUSD_json", { enumerable: true, get: function () { return TetherUSD_json_1.TetherUSD_json; } });
@@ -1,3 +1,3 @@
1
1
  // Auto-generated exports for all contracts
2
- export { USDToken_jsonAbi, USDToken_json } from './USDToken_json';
3
- export type { USDToken_jsonAbi as USDToken_jsonAbiType, USDToken_jsonContract } from './USDToken_json';
2
+ export { TetherUSD_jsonAbi, TetherUSD_json } from './TetherUSD_json';
3
+ export type { TetherUSD_jsonAbi as TetherUSD_jsonAbiType, TetherUSD_jsonContract } from './TetherUSD_json';