@gitmyabi/usdt 1.0.1 → 1.0.2

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-859a56e7-1784625456444`
5
+ - **Build ID**: `etherscan-usdt-4921427d-1784884935869`
6
6
  - **Build Number**: 1
7
- - **Commit**: `871defe`
7
+ - **Commit**: `646cbeb`
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.1
15
+ npm install @gitmyabi/usdt@1.0.2
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -1,36 +1,12 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * USDT_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 USDT_jsonAbi: readonly [{
8
- readonly inputs: readonly [{
9
- readonly internalType: "string";
10
- readonly name: "name_";
11
- readonly type: "string";
12
- }, {
13
- readonly internalType: "string";
14
- readonly name: "symbol_";
15
- readonly type: "string";
16
- }, {
17
- readonly internalType: "uint256";
18
- readonly name: "decimals_";
19
- readonly type: "uint256";
20
- }, {
21
- readonly internalType: "uint256";
22
- readonly name: "initialBalance_";
23
- readonly type: "uint256";
24
- }, {
25
- readonly internalType: "address";
26
- readonly name: "tokenOwner";
27
- readonly type: "address";
28
- }, {
29
- readonly internalType: "address payable";
30
- readonly name: "feeReceiver_";
31
- readonly type: "address";
32
- }];
33
- readonly stateMutability: "payable";
7
+ export declare const USDToken_jsonAbi: readonly [{
8
+ readonly inputs: readonly [];
9
+ readonly stateMutability: "nonpayable";
34
10
  readonly type: "constructor";
35
11
  }, {
36
12
  readonly anonymous: false;
@@ -87,34 +63,14 @@ export declare const USDT_jsonAbi: readonly [{
87
63
  }];
88
64
  readonly name: "Transfer";
89
65
  readonly type: "event";
90
- }, {
91
- readonly inputs: readonly [];
92
- readonly name: "Optimization";
93
- readonly outputs: readonly [{
94
- readonly internalType: "uint256";
95
- readonly name: "";
96
- readonly type: "uint256";
97
- }];
98
- readonly stateMutability: "view";
99
- readonly type: "function";
100
- }, {
101
- readonly inputs: readonly [];
102
- readonly name: "_owner";
103
- readonly outputs: readonly [{
104
- readonly internalType: "address";
105
- readonly name: "";
106
- readonly type: "address";
107
- }];
108
- readonly stateMutability: "view";
109
- readonly type: "function";
110
66
  }, {
111
67
  readonly inputs: readonly [{
112
68
  readonly internalType: "address";
113
- readonly name: "owner";
69
+ readonly name: "";
114
70
  readonly type: "address";
115
71
  }, {
116
72
  readonly internalType: "address";
117
- readonly name: "spender";
73
+ readonly name: "";
118
74
  readonly type: "address";
119
75
  }];
120
76
  readonly name: "allowance";
@@ -146,7 +102,7 @@ export declare const USDT_jsonAbi: readonly [{
146
102
  }, {
147
103
  readonly inputs: readonly [{
148
104
  readonly internalType: "address";
149
- readonly name: "account";
105
+ readonly name: "";
150
106
  readonly type: "address";
151
107
  }];
152
108
  readonly name: "balanceOf";
@@ -161,48 +117,12 @@ export declare const USDT_jsonAbi: readonly [{
161
117
  readonly inputs: readonly [];
162
118
  readonly name: "decimals";
163
119
  readonly outputs: readonly [{
164
- readonly internalType: "uint256";
120
+ readonly internalType: "uint8";
165
121
  readonly name: "";
166
- readonly type: "uint256";
122
+ readonly type: "uint8";
167
123
  }];
168
124
  readonly stateMutability: "view";
169
125
  readonly type: "function";
170
- }, {
171
- readonly inputs: readonly [{
172
- readonly internalType: "address";
173
- readonly name: "spender";
174
- readonly type: "address";
175
- }, {
176
- readonly internalType: "uint256";
177
- readonly name: "subtractedValue";
178
- readonly type: "uint256";
179
- }];
180
- readonly name: "decreaseAllowance";
181
- readonly outputs: readonly [{
182
- readonly internalType: "bool";
183
- readonly name: "";
184
- readonly type: "bool";
185
- }];
186
- readonly stateMutability: "nonpayable";
187
- readonly type: "function";
188
- }, {
189
- readonly inputs: readonly [{
190
- readonly internalType: "address";
191
- readonly name: "spender";
192
- readonly type: "address";
193
- }, {
194
- readonly internalType: "uint256";
195
- readonly name: "addedValue";
196
- readonly type: "uint256";
197
- }];
198
- readonly name: "increaseAllowance";
199
- readonly outputs: readonly [{
200
- readonly internalType: "bool";
201
- readonly name: "";
202
- readonly type: "bool";
203
- }];
204
- readonly stateMutability: "nonpayable";
205
- readonly type: "function";
206
126
  }, {
207
127
  readonly inputs: readonly [];
208
128
  readonly name: "name";
@@ -223,20 +143,6 @@ export declare const USDT_jsonAbi: readonly [{
223
143
  }];
224
144
  readonly stateMutability: "view";
225
145
  readonly type: "function";
226
- }, {
227
- readonly inputs: readonly [{
228
- readonly internalType: "address";
229
- readonly name: "tokenAddress";
230
- readonly type: "address";
231
- }, {
232
- readonly internalType: "uint256";
233
- readonly name: "tokenAmount";
234
- readonly type: "uint256";
235
- }];
236
- readonly name: "recoverERC20";
237
- readonly outputs: readonly [];
238
- readonly stateMutability: "nonpayable";
239
- readonly type: "function";
240
146
  }, {
241
147
  readonly inputs: readonly [];
242
148
  readonly name: "renounceOwnership";
@@ -253,6 +159,16 @@ export declare const USDT_jsonAbi: readonly [{
253
159
  }];
254
160
  readonly stateMutability: "view";
255
161
  readonly type: "function";
162
+ }, {
163
+ readonly inputs: readonly [];
164
+ readonly name: "tokenImage";
165
+ readonly outputs: readonly [{
166
+ readonly internalType: "string";
167
+ readonly name: "";
168
+ readonly type: "string";
169
+ }];
170
+ readonly stateMutability: "pure";
171
+ readonly type: "function";
256
172
  }, {
257
173
  readonly inputs: readonly [];
258
174
  readonly name: "totalSupply";
@@ -266,7 +182,7 @@ export declare const USDT_jsonAbi: readonly [{
266
182
  }, {
267
183
  readonly inputs: readonly [{
268
184
  readonly internalType: "address";
269
- readonly name: "recipient";
185
+ readonly name: "to";
270
186
  readonly type: "address";
271
187
  }, {
272
188
  readonly internalType: "uint256";
@@ -284,11 +200,11 @@ export declare const USDT_jsonAbi: readonly [{
284
200
  }, {
285
201
  readonly inputs: readonly [{
286
202
  readonly internalType: "address";
287
- readonly name: "sender";
203
+ readonly name: "from";
288
204
  readonly type: "address";
289
205
  }, {
290
206
  readonly internalType: "address";
291
- readonly name: "recipient";
207
+ readonly name: "to";
292
208
  readonly type: "address";
293
209
  }, {
294
210
  readonly internalType: "uint256";
@@ -315,15 +231,15 @@ export declare const USDT_jsonAbi: readonly [{
315
231
  readonly type: "function";
316
232
  }];
317
233
  /**
318
- * Type-safe ABI for USDT_json
234
+ * Type-safe ABI for USDToken_json
319
235
  */
320
- export type USDT_jsonAbi = typeof USDT_jsonAbi;
236
+ export type USDToken_jsonAbi = typeof USDToken_jsonAbi;
321
237
  /**
322
- * Contract instance type for USDT_json
238
+ * Contract instance type for USDToken_json
323
239
  */
324
- export type USDT_jsonContract = any;
240
+ export type USDToken_jsonContract = any;
325
241
  /**
326
- * USDT_json Contract Class
242
+ * USDToken_json Contract Class
327
243
  *
328
244
  * Provides a class-based API similar to TypeChain for interacting with the contract.
329
245
  *
@@ -331,12 +247,12 @@ export type USDT_jsonContract = any;
331
247
  * ```typescript
332
248
  * import { createPublicClient, createWalletClient, http } from 'viem';
333
249
  * import { mainnet } from 'viem/chains';
334
- * import { USDT_json } from 'USDT_json';
250
+ * import { USDToken_json } from 'USDToken_json';
335
251
  *
336
252
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
337
253
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
338
254
  *
339
- * const contract = new USDT_json('0x...', { publicClient, walletClient });
255
+ * const contract = new USDToken_json('0x...', { publicClient, walletClient });
340
256
  *
341
257
  * // Read functions
342
258
  * const result = await contract.balanceOf('0x...');
@@ -354,7 +270,7 @@ export type USDT_jsonContract = any;
354
270
  * });
355
271
  * ```
356
272
  */
357
- export declare class USDT_json {
273
+ export declare class USDToken_json {
358
274
  private contract;
359
275
  private contractAddress;
360
276
  private publicClient;
@@ -369,27 +285,17 @@ export declare class USDT_json {
369
285
  /**
370
286
  * Get the underlying viem contract instance
371
287
  */
372
- getContract(): USDT_jsonContract;
373
- /**
374
- * Optimization
375
- * view
376
- */
377
- Optimization(): Promise<bigint>;
378
- /**
379
- * _owner
380
- * view
381
- */
382
- _owner(): Promise<`0x${string}`>;
288
+ getContract(): USDToken_jsonContract;
383
289
  /**
384
290
  * allowance
385
291
  * view
386
292
  */
387
- allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
293
+ allowance(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
388
294
  /**
389
295
  * balanceOf
390
296
  * view
391
297
  */
392
- balanceOf(account: `0x${string}`): Promise<bigint>;
298
+ balanceOf(arg0: `0x${string}`): Promise<bigint>;
393
299
  /**
394
300
  * decimals
395
301
  * view
@@ -410,6 +316,11 @@ export declare class USDT_json {
410
316
  * view
411
317
  */
412
318
  symbol(): Promise<string>;
319
+ /**
320
+ * tokenImage
321
+ * pure
322
+ */
323
+ tokenImage(): Promise<string>;
413
324
  /**
414
325
  * totalSupply
415
326
  * view
@@ -432,57 +343,6 @@ export declare class USDT_json {
432
343
  nonce?: number;
433
344
  value?: bigint;
434
345
  }): Promise<`0x${string}`>;
435
- /**
436
- * decreaseAllowance
437
- * nonpayable
438
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
439
- */
440
- decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
441
- accessList?: import('viem').AccessList;
442
- authorizationList?: import('viem').AuthorizationList;
443
- chain?: import('viem').Chain | null;
444
- dataSuffix?: `0x${string}`;
445
- gas?: bigint;
446
- gasPrice?: bigint;
447
- maxFeePerGas?: bigint;
448
- maxPriorityFeePerGas?: bigint;
449
- nonce?: number;
450
- value?: bigint;
451
- }): Promise<`0x${string}`>;
452
- /**
453
- * increaseAllowance
454
- * nonpayable
455
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
456
- */
457
- increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
458
- accessList?: import('viem').AccessList;
459
- authorizationList?: import('viem').AuthorizationList;
460
- chain?: import('viem').Chain | null;
461
- dataSuffix?: `0x${string}`;
462
- gas?: bigint;
463
- gasPrice?: bigint;
464
- maxFeePerGas?: bigint;
465
- maxPriorityFeePerGas?: bigint;
466
- nonce?: number;
467
- value?: bigint;
468
- }): Promise<`0x${string}`>;
469
- /**
470
- * recoverERC20
471
- * nonpayable
472
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
473
- */
474
- recoverERC20(tokenAddress: `0x${string}`, tokenAmount: bigint, options?: {
475
- accessList?: import('viem').AccessList;
476
- authorizationList?: import('viem').AuthorizationList;
477
- chain?: import('viem').Chain | null;
478
- dataSuffix?: `0x${string}`;
479
- gas?: bigint;
480
- gasPrice?: bigint;
481
- maxFeePerGas?: bigint;
482
- maxPriorityFeePerGas?: bigint;
483
- nonce?: number;
484
- value?: bigint;
485
- }): Promise<`0x${string}`>;
486
346
  /**
487
347
  * renounceOwnership
488
348
  * nonpayable
@@ -505,7 +365,7 @@ export declare class USDT_json {
505
365
  * nonpayable
506
366
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
507
367
  */
508
- transfer(recipient: `0x${string}`, amount: bigint, options?: {
368
+ transfer(to: `0x${string}`, amount: bigint, options?: {
509
369
  accessList?: import('viem').AccessList;
510
370
  authorizationList?: import('viem').AuthorizationList;
511
371
  chain?: import('viem').Chain | null;
@@ -522,7 +382,7 @@ export declare class USDT_json {
522
382
  * nonpayable
523
383
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
524
384
  */
525
- transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
385
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
526
386
  accessList?: import('viem').AccessList;
527
387
  authorizationList?: import('viem').AuthorizationList;
528
388
  chain?: import('viem').Chain | null;
@@ -577,57 +437,6 @@ export declare class USDT_json {
577
437
  nonce?: number;
578
438
  value?: bigint;
579
439
  }): Promise<boolean>;
580
- /**
581
- * Simulate decreaseAllowance
582
- * Returns gas estimate and result without sending transaction
583
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
584
- */
585
- decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
586
- accessList?: import("viem").AccessList;
587
- authorizationList?: import("viem").AuthorizationList;
588
- chain?: import("viem").Chain | null;
589
- dataSuffix?: `0x${string}`;
590
- gas?: bigint;
591
- gasPrice?: bigint;
592
- maxFeePerGas?: bigint;
593
- maxPriorityFeePerGas?: bigint;
594
- nonce?: number;
595
- value?: bigint;
596
- }): Promise<boolean>;
597
- /**
598
- * Simulate increaseAllowance
599
- * Returns gas estimate and result without sending transaction
600
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
601
- */
602
- increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
603
- accessList?: import("viem").AccessList;
604
- authorizationList?: import("viem").AuthorizationList;
605
- chain?: import("viem").Chain | null;
606
- dataSuffix?: `0x${string}`;
607
- gas?: bigint;
608
- gasPrice?: bigint;
609
- maxFeePerGas?: bigint;
610
- maxPriorityFeePerGas?: bigint;
611
- nonce?: number;
612
- value?: bigint;
613
- }): Promise<boolean>;
614
- /**
615
- * Simulate recoverERC20
616
- * Returns gas estimate and result without sending transaction
617
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
618
- */
619
- recoverERC20(tokenAddress: `0x${string}`, tokenAmount: bigint, options?: {
620
- accessList?: import("viem").AccessList;
621
- authorizationList?: import("viem").AuthorizationList;
622
- chain?: import("viem").Chain | null;
623
- dataSuffix?: `0x${string}`;
624
- gas?: bigint;
625
- gasPrice?: bigint;
626
- maxFeePerGas?: bigint;
627
- maxPriorityFeePerGas?: bigint;
628
- nonce?: number;
629
- value?: bigint;
630
- }): Promise<void>;
631
440
  /**
632
441
  * Simulate renounceOwnership
633
442
  * Returns gas estimate and result without sending transaction
@@ -650,7 +459,7 @@ export declare class USDT_json {
650
459
  * Returns gas estimate and result without sending transaction
651
460
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
652
461
  */
653
- transfer(recipient: `0x${string}`, amount: bigint, options?: {
462
+ transfer(to: `0x${string}`, amount: bigint, options?: {
654
463
  accessList?: import("viem").AccessList;
655
464
  authorizationList?: import("viem").AuthorizationList;
656
465
  chain?: import("viem").Chain | null;
@@ -667,7 +476,7 @@ export declare class USDT_json {
667
476
  * Returns gas estimate and result without sending transaction
668
477
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
669
478
  */
670
- transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
479
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
671
480
  accessList?: import("viem").AccessList;
672
481
  authorizationList?: import("viem").AuthorizationList;
673
482
  chain?: import("viem").Chain | null;