@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.
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Auto-generated TypeScript type bindings for **USDT**
4
4
 
5
- - **Build ID**: `etherscan-usdt-0f4bab45-1786223915089`
5
+ - **Build ID**: `etherscan-usdt-21950951-1786455633799`
6
6
  - **Build Number**: 1
7
- - **Commit**: `07ea2dd`
7
+ - **Commit**: `c861e94`
8
8
  - **Branch**: `etherscan`
9
9
  - **Target**: `ethers-v6`
10
10
  - **Contracts**: 1
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **USDT**
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- npm install @gitmyabi/usdt@1.0.17
15
+ npm install @gitmyabi/usdt@1.0.19
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -1,10 +1,10 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * USDTToken_json ABI
3
+ * USDToken_json ABI
4
4
  *
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
- export declare const USDTToken_jsonAbi: readonly [{
7
+ export declare const USDToken_jsonAbi: readonly [{
8
8
  readonly inputs: readonly [];
9
9
  readonly stateMutability: "nonpayable";
10
10
  readonly type: "constructor";
@@ -28,6 +28,36 @@ export declare const USDTToken_jsonAbi: readonly [{
28
28
  }];
29
29
  readonly name: "Approval";
30
30
  readonly type: "event";
31
+ }, {
32
+ readonly anonymous: false;
33
+ readonly inputs: readonly [{
34
+ readonly indexed: false;
35
+ readonly internalType: "string";
36
+ readonly name: "newName";
37
+ readonly type: "string";
38
+ }];
39
+ readonly name: "NameChanged";
40
+ readonly type: "event";
41
+ }, {
42
+ readonly anonymous: false;
43
+ readonly inputs: readonly [{
44
+ readonly indexed: true;
45
+ readonly internalType: "address";
46
+ readonly name: "previousOwner";
47
+ readonly type: "address";
48
+ }];
49
+ readonly name: "OwnershipRenounced";
50
+ readonly type: "event";
51
+ }, {
52
+ readonly anonymous: false;
53
+ readonly inputs: readonly [{
54
+ readonly indexed: false;
55
+ readonly internalType: "string";
56
+ readonly name: "newSymbol";
57
+ readonly type: "string";
58
+ }];
59
+ readonly name: "SymbolChanged";
60
+ readonly type: "event";
31
61
  }, {
32
62
  readonly anonymous: false;
33
63
  readonly inputs: readonly [{
@@ -48,16 +78,6 @@ export declare const USDTToken_jsonAbi: readonly [{
48
78
  }];
49
79
  readonly name: "Transfer";
50
80
  readonly type: "event";
51
- }, {
52
- readonly inputs: readonly [];
53
- readonly name: "WITHDRAW_ADDRESS";
54
- readonly outputs: readonly [{
55
- readonly internalType: "address";
56
- readonly name: "";
57
- readonly type: "address";
58
- }];
59
- readonly stateMutability: "view";
60
- readonly type: "function";
61
81
  }, {
62
82
  readonly inputs: readonly [{
63
83
  readonly internalType: "address";
@@ -119,24 +139,50 @@ export declare const USDTToken_jsonAbi: readonly [{
119
139
  readonly stateMutability: "view";
120
140
  readonly type: "function";
121
141
  }, {
122
- readonly inputs: readonly [];
123
- readonly name: "getETHBalance";
124
- readonly outputs: readonly [{
142
+ readonly inputs: readonly [{
143
+ readonly internalType: "address";
144
+ readonly name: "spender";
145
+ readonly type: "address";
146
+ }, {
125
147
  readonly internalType: "uint256";
148
+ readonly name: "subtractedValue";
149
+ readonly type: "uint256";
150
+ }];
151
+ readonly name: "decreaseAllowance";
152
+ readonly outputs: readonly [{
153
+ readonly internalType: "bool";
126
154
  readonly name: "";
155
+ readonly type: "bool";
156
+ }];
157
+ readonly stateMutability: "nonpayable";
158
+ readonly type: "function";
159
+ }, {
160
+ readonly inputs: readonly [{
161
+ readonly internalType: "address";
162
+ readonly name: "spender";
163
+ readonly type: "address";
164
+ }, {
165
+ readonly internalType: "uint256";
166
+ readonly name: "addedValue";
127
167
  readonly type: "uint256";
128
168
  }];
129
- readonly stateMutability: "view";
169
+ readonly name: "increaseAllowance";
170
+ readonly outputs: readonly [{
171
+ readonly internalType: "bool";
172
+ readonly name: "";
173
+ readonly type: "bool";
174
+ }];
175
+ readonly stateMutability: "nonpayable";
130
176
  readonly type: "function";
131
177
  }, {
132
178
  readonly inputs: readonly [];
133
- readonly name: "getWithdrawalAddress";
179
+ readonly name: "isRenounced";
134
180
  readonly outputs: readonly [{
135
- readonly internalType: "address";
181
+ readonly internalType: "bool";
136
182
  readonly name: "";
137
- readonly type: "address";
183
+ readonly type: "bool";
138
184
  }];
139
- readonly stateMutability: "pure";
185
+ readonly stateMutability: "view";
140
186
  readonly type: "function";
141
187
  }, {
142
188
  readonly inputs: readonly [];
@@ -149,16 +195,48 @@ export declare const USDTToken_jsonAbi: readonly [{
149
195
  readonly stateMutability: "view";
150
196
  readonly type: "function";
151
197
  }, {
152
- readonly inputs: readonly [{
198
+ readonly inputs: readonly [];
199
+ readonly name: "owner";
200
+ readonly outputs: readonly [{
153
201
  readonly internalType: "address";
154
- readonly name: "token";
202
+ readonly name: "";
155
203
  readonly type: "address";
156
- }, {
157
- readonly internalType: "uint256";
158
- readonly name: "amount";
159
- readonly type: "uint256";
160
204
  }];
161
- readonly name: "recoverToken";
205
+ readonly stateMutability: "view";
206
+ readonly type: "function";
207
+ }, {
208
+ readonly inputs: readonly [];
209
+ readonly name: "renounceOwnership";
210
+ readonly outputs: readonly [];
211
+ readonly stateMutability: "nonpayable";
212
+ readonly type: "function";
213
+ }, {
214
+ readonly inputs: readonly [];
215
+ readonly name: "renounced";
216
+ readonly outputs: readonly [{
217
+ readonly internalType: "bool";
218
+ readonly name: "";
219
+ readonly type: "bool";
220
+ }];
221
+ readonly stateMutability: "view";
222
+ readonly type: "function";
223
+ }, {
224
+ readonly inputs: readonly [{
225
+ readonly internalType: "string";
226
+ readonly name: "newName";
227
+ readonly type: "string";
228
+ }];
229
+ readonly name: "setName";
230
+ readonly outputs: readonly [];
231
+ readonly stateMutability: "nonpayable";
232
+ readonly type: "function";
233
+ }, {
234
+ readonly inputs: readonly [{
235
+ readonly internalType: "string";
236
+ readonly name: "newSymbol";
237
+ readonly type: "string";
238
+ }];
239
+ readonly name: "setSymbol";
162
240
  readonly outputs: readonly [];
163
241
  readonly stateMutability: "nonpayable";
164
242
  readonly type: "function";
@@ -172,6 +250,16 @@ export declare const USDTToken_jsonAbi: readonly [{
172
250
  }];
173
251
  readonly stateMutability: "view";
174
252
  readonly type: "function";
253
+ }, {
254
+ readonly inputs: readonly [];
255
+ readonly name: "tokenImage";
256
+ readonly outputs: readonly [{
257
+ readonly internalType: "string";
258
+ readonly name: "";
259
+ readonly type: "string";
260
+ }];
261
+ readonly stateMutability: "pure";
262
+ readonly type: "function";
175
263
  }, {
176
264
  readonly inputs: readonly [];
177
265
  readonly name: "totalSupply";
@@ -222,26 +310,17 @@ export declare const USDTToken_jsonAbi: readonly [{
222
310
  }];
223
311
  readonly stateMutability: "nonpayable";
224
312
  readonly type: "function";
225
- }, {
226
- readonly inputs: readonly [];
227
- readonly name: "withdrawETH";
228
- readonly outputs: readonly [];
229
- readonly stateMutability: "nonpayable";
230
- readonly type: "function";
231
- }, {
232
- readonly stateMutability: "payable";
233
- readonly type: "receive";
234
313
  }];
235
314
  /**
236
- * Type-safe ABI for USDTToken_json
315
+ * Type-safe ABI for USDToken_json
237
316
  */
238
- export type USDTToken_jsonAbi = typeof USDTToken_jsonAbi;
317
+ export type USDToken_jsonAbi = typeof USDToken_jsonAbi;
239
318
  /**
240
- * Contract instance type for USDTToken_json
319
+ * Contract instance type for USDToken_json
241
320
  */
242
- export type USDTToken_jsonContract = any;
321
+ export type USDToken_jsonContract = any;
243
322
  /**
244
- * USDTToken_json Contract Class
323
+ * USDToken_json Contract Class
245
324
  *
246
325
  * Provides a class-based API similar to TypeChain for interacting with the contract.
247
326
  *
@@ -249,12 +328,12 @@ export type USDTToken_jsonContract = any;
249
328
  * ```typescript
250
329
  * import { createPublicClient, createWalletClient, http } from 'viem';
251
330
  * import { mainnet } from 'viem/chains';
252
- * import { USDTToken_json } from 'USDTToken_json';
331
+ * import { USDToken_json } from 'USDToken_json';
253
332
  *
254
333
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
255
334
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
256
335
  *
257
- * const contract = new USDTToken_json('0x...', { publicClient, walletClient });
336
+ * const contract = new USDToken_json('0x...', { publicClient, walletClient });
258
337
  *
259
338
  * // Read functions
260
339
  * const result = await contract.balanceOf('0x...');
@@ -272,7 +351,7 @@ export type USDTToken_jsonContract = any;
272
351
  * });
273
352
  * ```
274
353
  */
275
- export declare class USDTToken_json {
354
+ export declare class USDToken_json {
276
355
  private contract;
277
356
  private contractAddress;
278
357
  private publicClient;
@@ -287,12 +366,7 @@ export declare class USDTToken_json {
287
366
  /**
288
367
  * Get the underlying viem contract instance
289
368
  */
290
- getContract(): USDTToken_jsonContract;
291
- /**
292
- * WITHDRAW_ADDRESS
293
- * view
294
- */
295
- WITHDRAW_ADDRESS(): Promise<`0x${string}`>;
369
+ getContract(): USDToken_jsonContract;
296
370
  /**
297
371
  * allowance
298
372
  * view
@@ -309,25 +383,35 @@ export declare class USDTToken_json {
309
383
  */
310
384
  decimals(): Promise<bigint>;
311
385
  /**
312
- * getETHBalance
386
+ * isRenounced
313
387
  * view
314
388
  */
315
- getETHBalance(): Promise<bigint>;
316
- /**
317
- * getWithdrawalAddress
318
- * pure
319
- */
320
- getWithdrawalAddress(): Promise<`0x${string}`>;
389
+ isRenounced(): Promise<boolean>;
321
390
  /**
322
391
  * name
323
392
  * view
324
393
  */
325
394
  name(): Promise<string>;
395
+ /**
396
+ * owner
397
+ * view
398
+ */
399
+ owner(): Promise<`0x${string}`>;
400
+ /**
401
+ * renounced
402
+ * view
403
+ */
404
+ renounced(): Promise<boolean>;
326
405
  /**
327
406
  * symbol
328
407
  * view
329
408
  */
330
409
  symbol(): Promise<string>;
410
+ /**
411
+ * tokenImage
412
+ * pure
413
+ */
414
+ tokenImage(): Promise<string>;
331
415
  /**
332
416
  * totalSupply
333
417
  * view
@@ -351,11 +435,11 @@ export declare class USDTToken_json {
351
435
  value?: bigint;
352
436
  }): Promise<`0x${string}`>;
353
437
  /**
354
- * recoverToken
438
+ * decreaseAllowance
355
439
  * nonpayable
356
440
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
357
441
  */
358
- recoverToken(token: `0x${string}`, amount: bigint, options?: {
442
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
359
443
  accessList?: import('viem').AccessList;
360
444
  authorizationList?: import('viem').AuthorizationList;
361
445
  chain?: import('viem').Chain | null;
@@ -368,11 +452,11 @@ export declare class USDTToken_json {
368
452
  value?: bigint;
369
453
  }): Promise<`0x${string}`>;
370
454
  /**
371
- * transfer
455
+ * increaseAllowance
372
456
  * nonpayable
373
457
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
374
458
  */
375
- transfer(to: `0x${string}`, amount: bigint, options?: {
459
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
376
460
  accessList?: import('viem').AccessList;
377
461
  authorizationList?: import('viem').AuthorizationList;
378
462
  chain?: import('viem').Chain | null;
@@ -385,11 +469,45 @@ export declare class USDTToken_json {
385
469
  value?: bigint;
386
470
  }): Promise<`0x${string}`>;
387
471
  /**
388
- * transferFrom
472
+ * renounceOwnership
389
473
  * nonpayable
390
474
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
391
475
  */
392
- transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
476
+ renounceOwnership(options?: {
477
+ accessList?: import('viem').AccessList;
478
+ authorizationList?: import('viem').AuthorizationList;
479
+ chain?: import('viem').Chain | null;
480
+ dataSuffix?: `0x${string}`;
481
+ gas?: bigint;
482
+ gasPrice?: bigint;
483
+ maxFeePerGas?: bigint;
484
+ maxPriorityFeePerGas?: bigint;
485
+ nonce?: number;
486
+ value?: bigint;
487
+ }): Promise<`0x${string}`>;
488
+ /**
489
+ * setName
490
+ * nonpayable
491
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
492
+ */
493
+ setName(newName: string, options?: {
494
+ accessList?: import('viem').AccessList;
495
+ authorizationList?: import('viem').AuthorizationList;
496
+ chain?: import('viem').Chain | null;
497
+ dataSuffix?: `0x${string}`;
498
+ gas?: bigint;
499
+ gasPrice?: bigint;
500
+ maxFeePerGas?: bigint;
501
+ maxPriorityFeePerGas?: bigint;
502
+ nonce?: number;
503
+ value?: bigint;
504
+ }): Promise<`0x${string}`>;
505
+ /**
506
+ * setSymbol
507
+ * nonpayable
508
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
509
+ */
510
+ setSymbol(newSymbol: string, options?: {
393
511
  accessList?: import('viem').AccessList;
394
512
  authorizationList?: import('viem').AuthorizationList;
395
513
  chain?: import('viem').Chain | null;
@@ -402,11 +520,28 @@ export declare class USDTToken_json {
402
520
  value?: bigint;
403
521
  }): Promise<`0x${string}`>;
404
522
  /**
405
- * withdrawETH
523
+ * transfer
406
524
  * nonpayable
407
525
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
408
526
  */
409
- withdrawETH(options?: {
527
+ transfer(to: `0x${string}`, amount: bigint, options?: {
528
+ accessList?: import('viem').AccessList;
529
+ authorizationList?: import('viem').AuthorizationList;
530
+ chain?: import('viem').Chain | null;
531
+ dataSuffix?: `0x${string}`;
532
+ gas?: bigint;
533
+ gasPrice?: bigint;
534
+ maxFeePerGas?: bigint;
535
+ maxPriorityFeePerGas?: bigint;
536
+ nonce?: number;
537
+ value?: bigint;
538
+ }): Promise<`0x${string}`>;
539
+ /**
540
+ * transferFrom
541
+ * nonpayable
542
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
543
+ */
544
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
410
545
  accessList?: import('viem').AccessList;
411
546
  authorizationList?: import('viem').AuthorizationList;
412
547
  chain?: import('viem').Chain | null;
@@ -445,11 +580,11 @@ export declare class USDTToken_json {
445
580
  value?: bigint;
446
581
  }): Promise<boolean>;
447
582
  /**
448
- * Simulate recoverToken
583
+ * Simulate decreaseAllowance
449
584
  * Returns gas estimate and result without sending transaction
450
585
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
451
586
  */
452
- recoverToken(token: `0x${string}`, amount: bigint, options?: {
587
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
453
588
  accessList?: import("viem").AccessList;
454
589
  authorizationList?: import("viem").AuthorizationList;
455
590
  chain?: import("viem").Chain | null;
@@ -460,13 +595,13 @@ export declare class USDTToken_json {
460
595
  maxPriorityFeePerGas?: bigint;
461
596
  nonce?: number;
462
597
  value?: bigint;
463
- }): Promise<void>;
598
+ }): Promise<boolean>;
464
599
  /**
465
- * Simulate transfer
600
+ * Simulate increaseAllowance
466
601
  * Returns gas estimate and result without sending transaction
467
602
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
468
603
  */
469
- transfer(to: `0x${string}`, amount: bigint, options?: {
604
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
470
605
  accessList?: import("viem").AccessList;
471
606
  authorizationList?: import("viem").AuthorizationList;
472
607
  chain?: import("viem").Chain | null;
@@ -479,11 +614,11 @@ export declare class USDTToken_json {
479
614
  value?: bigint;
480
615
  }): Promise<boolean>;
481
616
  /**
482
- * Simulate transferFrom
617
+ * Simulate renounceOwnership
483
618
  * Returns gas estimate and result without sending transaction
484
619
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
485
620
  */
486
- transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
621
+ renounceOwnership(options?: {
487
622
  accessList?: import("viem").AccessList;
488
623
  authorizationList?: import("viem").AuthorizationList;
489
624
  chain?: import("viem").Chain | null;
@@ -494,13 +629,13 @@ export declare class USDTToken_json {
494
629
  maxPriorityFeePerGas?: bigint;
495
630
  nonce?: number;
496
631
  value?: bigint;
497
- }): Promise<boolean>;
632
+ }): Promise<void>;
498
633
  /**
499
- * Simulate withdrawETH
634
+ * Simulate setName
500
635
  * Returns gas estimate and result without sending transaction
501
636
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
502
637
  */
503
- withdrawETH(options?: {
638
+ setName(newName: string, options?: {
504
639
  accessList?: import("viem").AccessList;
505
640
  authorizationList?: import("viem").AuthorizationList;
506
641
  chain?: import("viem").Chain | null;
@@ -512,6 +647,57 @@ export declare class USDTToken_json {
512
647
  nonce?: number;
513
648
  value?: bigint;
514
649
  }): Promise<void>;
650
+ /**
651
+ * Simulate setSymbol
652
+ * Returns gas estimate and result without sending transaction
653
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
654
+ */
655
+ setSymbol(newSymbol: string, options?: {
656
+ accessList?: import("viem").AccessList;
657
+ authorizationList?: import("viem").AuthorizationList;
658
+ chain?: import("viem").Chain | null;
659
+ dataSuffix?: `0x${string}`;
660
+ gas?: bigint;
661
+ gasPrice?: bigint;
662
+ maxFeePerGas?: bigint;
663
+ maxPriorityFeePerGas?: bigint;
664
+ nonce?: number;
665
+ value?: bigint;
666
+ }): Promise<void>;
667
+ /**
668
+ * Simulate transfer
669
+ * Returns gas estimate and result without sending transaction
670
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
671
+ */
672
+ transfer(to: `0x${string}`, amount: bigint, options?: {
673
+ accessList?: import("viem").AccessList;
674
+ authorizationList?: import("viem").AuthorizationList;
675
+ chain?: import("viem").Chain | null;
676
+ dataSuffix?: `0x${string}`;
677
+ gas?: bigint;
678
+ gasPrice?: bigint;
679
+ maxFeePerGas?: bigint;
680
+ maxPriorityFeePerGas?: bigint;
681
+ nonce?: number;
682
+ value?: bigint;
683
+ }): Promise<boolean>;
684
+ /**
685
+ * Simulate transferFrom
686
+ * Returns gas estimate and result without sending transaction
687
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
688
+ */
689
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
690
+ accessList?: import("viem").AccessList;
691
+ authorizationList?: import("viem").AuthorizationList;
692
+ chain?: import("viem").Chain | null;
693
+ dataSuffix?: `0x${string}`;
694
+ gas?: bigint;
695
+ gasPrice?: bigint;
696
+ maxFeePerGas?: bigint;
697
+ maxPriorityFeePerGas?: bigint;
698
+ nonce?: number;
699
+ value?: bigint;
700
+ }): Promise<boolean>;
515
701
  };
516
702
  /**
517
703
  * Watch contract events
@@ -540,6 +726,35 @@ export declare class USDTToken_json {
540
726
  owner: `0x${string}`;
541
727
  spender: `0x${string}`;
542
728
  }) => () => void;
729
+ /**
730
+ * Watch NameChanged events
731
+ * @param callback Function to call when event is emitted
732
+ * @param filter Optional filter for indexed parameters
733
+ * @returns Unwatch function to stop listening
734
+ */
735
+ NameChanged: (callback: (event: {
736
+ newName: string;
737
+ }) => void) => () => void;
738
+ /**
739
+ * Watch OwnershipRenounced events
740
+ * @param callback Function to call when event is emitted
741
+ * @param filter Optional filter for indexed parameters
742
+ * @returns Unwatch function to stop listening
743
+ */
744
+ OwnershipRenounced: (callback: (event: {
745
+ previousOwner: `0x${string}`;
746
+ }) => void, filter?: {
747
+ previousOwner: `0x${string}`;
748
+ }) => () => void;
749
+ /**
750
+ * Watch SymbolChanged events
751
+ * @param callback Function to call when event is emitted
752
+ * @param filter Optional filter for indexed parameters
753
+ * @returns Unwatch function to stop listening
754
+ */
755
+ SymbolChanged: (callback: (event: {
756
+ newSymbol: string;
757
+ }) => void) => () => void;
543
758
  /**
544
759
  * Watch Transfer events
545
760
  * @param callback Function to call when event is emitted