@gitmyabi/usdt 1.0.7 → 1.0.9

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-6c3e6234-1785416087055`
5
+ - **Build ID**: `etherscan-usdt-13793556-1785610315537`
6
6
  - **Build Number**: 1
7
- - **Commit**: `38b8a46`
7
+ - **Commit**: `b398b69`
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.7
15
+ npm install @gitmyabi/usdt@1.0.9
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -1,31 +1,11 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * MyToken_json ABI
3
+ * TetherUSD_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 MyToken_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: "_cap";
19
- readonly type: "uint256";
20
- }, {
21
- readonly internalType: "uint256";
22
- readonly name: "_initialSupply";
23
- readonly type: "uint256";
24
- }, {
25
- readonly internalType: "string";
26
- readonly name: "_logoURI";
27
- readonly type: "string";
28
- }];
7
+ export declare const TetherUSD_jsonAbi: readonly [{
8
+ readonly inputs: readonly [];
29
9
  readonly stateMutability: "nonpayable";
30
10
  readonly type: "constructor";
31
11
  }, {
@@ -48,21 +28,6 @@ export declare const MyToken_jsonAbi: readonly [{
48
28
  }];
49
29
  readonly name: "Approval";
50
30
  readonly type: "event";
51
- }, {
52
- readonly anonymous: false;
53
- readonly inputs: readonly [{
54
- readonly indexed: true;
55
- readonly internalType: "address";
56
- readonly name: "previousOwner";
57
- readonly type: "address";
58
- }, {
59
- readonly indexed: true;
60
- readonly internalType: "address";
61
- readonly name: "newOwner";
62
- readonly type: "address";
63
- }];
64
- readonly name: "OwnershipTransferred";
65
- readonly type: "event";
66
31
  }, {
67
32
  readonly anonymous: false;
68
33
  readonly inputs: readonly [{
@@ -104,11 +69,11 @@ export declare const MyToken_jsonAbi: readonly [{
104
69
  }, {
105
70
  readonly inputs: readonly [{
106
71
  readonly internalType: "address";
107
- readonly name: "spender";
72
+ readonly name: "s";
108
73
  readonly type: "address";
109
74
  }, {
110
75
  readonly internalType: "uint256";
111
- readonly name: "value";
76
+ readonly name: "v";
112
77
  readonly type: "uint256";
113
78
  }];
114
79
  readonly name: "approve";
@@ -133,16 +98,6 @@ export declare const MyToken_jsonAbi: readonly [{
133
98
  }];
134
99
  readonly stateMutability: "view";
135
100
  readonly type: "function";
136
- }, {
137
- readonly inputs: readonly [];
138
- readonly name: "cap";
139
- readonly outputs: readonly [{
140
- readonly internalType: "uint256";
141
- readonly name: "";
142
- readonly type: "uint256";
143
- }];
144
- readonly stateMutability: "view";
145
- readonly type: "function";
146
101
  }, {
147
102
  readonly inputs: readonly [];
148
103
  readonly name: "decimals";
@@ -153,30 +108,6 @@ export declare const MyToken_jsonAbi: readonly [{
153
108
  }];
154
109
  readonly stateMutability: "view";
155
110
  readonly type: "function";
156
- }, {
157
- readonly inputs: readonly [];
158
- readonly name: "logoURI";
159
- readonly outputs: readonly [{
160
- readonly internalType: "string";
161
- readonly name: "";
162
- readonly type: "string";
163
- }];
164
- readonly stateMutability: "view";
165
- readonly type: "function";
166
- }, {
167
- readonly inputs: readonly [{
168
- readonly internalType: "address";
169
- readonly name: "to";
170
- readonly type: "address";
171
- }, {
172
- readonly internalType: "uint256";
173
- readonly name: "amount";
174
- readonly type: "uint256";
175
- }];
176
- readonly name: "mint";
177
- readonly outputs: readonly [];
178
- readonly stateMutability: "nonpayable";
179
- readonly type: "function";
180
111
  }, {
181
112
  readonly inputs: readonly [];
182
113
  readonly name: "name";
@@ -187,32 +118,6 @@ export declare const MyToken_jsonAbi: readonly [{
187
118
  }];
188
119
  readonly stateMutability: "view";
189
120
  readonly type: "function";
190
- }, {
191
- readonly inputs: readonly [];
192
- readonly name: "owner";
193
- readonly outputs: readonly [{
194
- readonly internalType: "address";
195
- readonly name: "";
196
- readonly type: "address";
197
- }];
198
- readonly stateMutability: "view";
199
- readonly type: "function";
200
- }, {
201
- readonly inputs: readonly [];
202
- readonly name: "renounceOwnership";
203
- readonly outputs: readonly [];
204
- readonly stateMutability: "nonpayable";
205
- readonly type: "function";
206
- }, {
207
- readonly inputs: readonly [{
208
- readonly internalType: "string";
209
- readonly name: "_logoURI";
210
- readonly type: "string";
211
- }];
212
- readonly name: "setLogoURI";
213
- readonly outputs: readonly [];
214
- readonly stateMutability: "nonpayable";
215
- readonly type: "function";
216
121
  }, {
217
122
  readonly inputs: readonly [];
218
123
  readonly name: "symbol";
@@ -240,7 +145,7 @@ export declare const MyToken_jsonAbi: readonly [{
240
145
  readonly type: "address";
241
146
  }, {
242
147
  readonly internalType: "uint256";
243
- readonly name: "value";
148
+ readonly name: "v";
244
149
  readonly type: "uint256";
245
150
  }];
246
151
  readonly name: "transfer";
@@ -254,15 +159,15 @@ export declare const MyToken_jsonAbi: readonly [{
254
159
  }, {
255
160
  readonly inputs: readonly [{
256
161
  readonly internalType: "address";
257
- readonly name: "from";
162
+ readonly name: "f";
258
163
  readonly type: "address";
259
164
  }, {
260
165
  readonly internalType: "address";
261
- readonly name: "to";
166
+ readonly name: "t";
262
167
  readonly type: "address";
263
168
  }, {
264
169
  readonly internalType: "uint256";
265
- readonly name: "value";
170
+ readonly name: "v";
266
171
  readonly type: "uint256";
267
172
  }];
268
173
  readonly name: "transferFrom";
@@ -273,27 +178,17 @@ export declare const MyToken_jsonAbi: readonly [{
273
178
  }];
274
179
  readonly stateMutability: "nonpayable";
275
180
  readonly type: "function";
276
- }, {
277
- readonly inputs: readonly [{
278
- readonly internalType: "address";
279
- readonly name: "newOwner";
280
- readonly type: "address";
281
- }];
282
- readonly name: "transferOwnership";
283
- readonly outputs: readonly [];
284
- readonly stateMutability: "nonpayable";
285
- readonly type: "function";
286
181
  }];
287
182
  /**
288
- * Type-safe ABI for MyToken_json
183
+ * Type-safe ABI for TetherUSD_json
289
184
  */
290
- export type MyToken_jsonAbi = typeof MyToken_jsonAbi;
185
+ export type TetherUSD_jsonAbi = typeof TetherUSD_jsonAbi;
291
186
  /**
292
- * Contract instance type for MyToken_json
187
+ * Contract instance type for TetherUSD_json
293
188
  */
294
- export type MyToken_jsonContract = any;
189
+ export type TetherUSD_jsonContract = any;
295
190
  /**
296
- * MyToken_json Contract Class
191
+ * TetherUSD_json Contract Class
297
192
  *
298
193
  * Provides a class-based API similar to TypeChain for interacting with the contract.
299
194
  *
@@ -301,12 +196,12 @@ export type MyToken_jsonContract = any;
301
196
  * ```typescript
302
197
  * import { createPublicClient, createWalletClient, http } from 'viem';
303
198
  * import { mainnet } from 'viem/chains';
304
- * import { MyToken_json } from 'MyToken_json';
199
+ * import { TetherUSD_json } from 'TetherUSD_json';
305
200
  *
306
201
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
307
202
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
308
203
  *
309
- * const contract = new MyToken_json('0x...', { publicClient, walletClient });
204
+ * const contract = new TetherUSD_json('0x...', { publicClient, walletClient });
310
205
  *
311
206
  * // Read functions
312
207
  * const result = await contract.balanceOf('0x...');
@@ -324,7 +219,7 @@ export type MyToken_jsonContract = any;
324
219
  * });
325
220
  * ```
326
221
  */
327
- export declare class MyToken_json {
222
+ export declare class TetherUSD_json {
328
223
  private contract;
329
224
  private contractAddress;
330
225
  private publicClient;
@@ -339,7 +234,7 @@ export declare class MyToken_json {
339
234
  /**
340
235
  * Get the underlying viem contract instance
341
236
  */
342
- getContract(): MyToken_jsonContract;
237
+ getContract(): TetherUSD_jsonContract;
343
238
  /**
344
239
  * allowance
345
240
  * view
@@ -350,31 +245,16 @@ export declare class MyToken_json {
350
245
  * view
351
246
  */
352
247
  balanceOf(arg0: `0x${string}`): Promise<bigint>;
353
- /**
354
- * cap
355
- * view
356
- */
357
- cap(): Promise<bigint>;
358
248
  /**
359
249
  * decimals
360
250
  * view
361
251
  */
362
252
  decimals(): Promise<bigint>;
363
- /**
364
- * logoURI
365
- * view
366
- */
367
- logoURI(): Promise<string>;
368
253
  /**
369
254
  * name
370
255
  * view
371
256
  */
372
257
  name(): Promise<string>;
373
- /**
374
- * owner
375
- * view
376
- */
377
- owner(): Promise<`0x${string}`>;
378
258
  /**
379
259
  * symbol
380
260
  * view
@@ -390,58 +270,7 @@ export declare class MyToken_json {
390
270
  * nonpayable
391
271
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
392
272
  */
393
- approve(spender: `0x${string}`, value: bigint, options?: {
394
- accessList?: import('viem').AccessList;
395
- authorizationList?: import('viem').AuthorizationList;
396
- chain?: import('viem').Chain | null;
397
- dataSuffix?: `0x${string}`;
398
- gas?: bigint;
399
- gasPrice?: bigint;
400
- maxFeePerGas?: bigint;
401
- maxPriorityFeePerGas?: bigint;
402
- nonce?: number;
403
- value?: bigint;
404
- }): Promise<`0x${string}`>;
405
- /**
406
- * mint
407
- * nonpayable
408
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
409
- */
410
- mint(to: `0x${string}`, amount: bigint, options?: {
411
- accessList?: import('viem').AccessList;
412
- authorizationList?: import('viem').AuthorizationList;
413
- chain?: import('viem').Chain | null;
414
- dataSuffix?: `0x${string}`;
415
- gas?: bigint;
416
- gasPrice?: bigint;
417
- maxFeePerGas?: bigint;
418
- maxPriorityFeePerGas?: bigint;
419
- nonce?: number;
420
- value?: bigint;
421
- }): Promise<`0x${string}`>;
422
- /**
423
- * renounceOwnership
424
- * nonpayable
425
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
426
- */
427
- renounceOwnership(options?: {
428
- accessList?: import('viem').AccessList;
429
- authorizationList?: import('viem').AuthorizationList;
430
- chain?: import('viem').Chain | null;
431
- dataSuffix?: `0x${string}`;
432
- gas?: bigint;
433
- gasPrice?: bigint;
434
- maxFeePerGas?: bigint;
435
- maxPriorityFeePerGas?: bigint;
436
- nonce?: number;
437
- value?: bigint;
438
- }): Promise<`0x${string}`>;
439
- /**
440
- * setLogoURI
441
- * nonpayable
442
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
443
- */
444
- setLogoURI(_logoURI: string, options?: {
273
+ approve(s: `0x${string}`, v: bigint, options?: {
445
274
  accessList?: import('viem').AccessList;
446
275
  authorizationList?: import('viem').AuthorizationList;
447
276
  chain?: import('viem').Chain | null;
@@ -458,7 +287,7 @@ export declare class MyToken_json {
458
287
  * nonpayable
459
288
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
460
289
  */
461
- transfer(to: `0x${string}`, value: bigint, options?: {
290
+ transfer(to: `0x${string}`, v: bigint, options?: {
462
291
  accessList?: import('viem').AccessList;
463
292
  authorizationList?: import('viem').AuthorizationList;
464
293
  chain?: import('viem').Chain | null;
@@ -475,24 +304,7 @@ export declare class MyToken_json {
475
304
  * nonpayable
476
305
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
477
306
  */
478
- transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
479
- accessList?: import('viem').AccessList;
480
- authorizationList?: import('viem').AuthorizationList;
481
- chain?: import('viem').Chain | null;
482
- dataSuffix?: `0x${string}`;
483
- gas?: bigint;
484
- gasPrice?: bigint;
485
- maxFeePerGas?: bigint;
486
- maxPriorityFeePerGas?: bigint;
487
- nonce?: number;
488
- value?: bigint;
489
- }): Promise<`0x${string}`>;
490
- /**
491
- * transferOwnership
492
- * nonpayable
493
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
494
- */
495
- transferOwnership(newOwner: `0x${string}`, options?: {
307
+ transferFrom(f: `0x${string}`, t: `0x${string}`, v: bigint, options?: {
496
308
  accessList?: import('viem').AccessList;
497
309
  authorizationList?: import('viem').AuthorizationList;
498
310
  chain?: import('viem').Chain | null;
@@ -518,7 +330,7 @@ export declare class MyToken_json {
518
330
  * Returns gas estimate and result without sending transaction
519
331
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
520
332
  */
521
- approve(spender: `0x${string}`, value: bigint, options?: {
333
+ approve(s: `0x${string}`, v: bigint, options?: {
522
334
  accessList?: import("viem").AccessList;
523
335
  authorizationList?: import("viem").AuthorizationList;
524
336
  chain?: import("viem").Chain | null;
@@ -530,63 +342,12 @@ export declare class MyToken_json {
530
342
  nonce?: number;
531
343
  value?: bigint;
532
344
  }): Promise<boolean>;
533
- /**
534
- * Simulate mint
535
- * Returns gas estimate and result without sending transaction
536
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
537
- */
538
- mint(to: `0x${string}`, amount: bigint, options?: {
539
- accessList?: import("viem").AccessList;
540
- authorizationList?: import("viem").AuthorizationList;
541
- chain?: import("viem").Chain | null;
542
- dataSuffix?: `0x${string}`;
543
- gas?: bigint;
544
- gasPrice?: bigint;
545
- maxFeePerGas?: bigint;
546
- maxPriorityFeePerGas?: bigint;
547
- nonce?: number;
548
- value?: bigint;
549
- }): Promise<void>;
550
- /**
551
- * Simulate renounceOwnership
552
- * Returns gas estimate and result without sending transaction
553
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
554
- */
555
- renounceOwnership(options?: {
556
- accessList?: import("viem").AccessList;
557
- authorizationList?: import("viem").AuthorizationList;
558
- chain?: import("viem").Chain | null;
559
- dataSuffix?: `0x${string}`;
560
- gas?: bigint;
561
- gasPrice?: bigint;
562
- maxFeePerGas?: bigint;
563
- maxPriorityFeePerGas?: bigint;
564
- nonce?: number;
565
- value?: bigint;
566
- }): Promise<void>;
567
- /**
568
- * Simulate setLogoURI
569
- * Returns gas estimate and result without sending transaction
570
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
571
- */
572
- setLogoURI(_logoURI: string, options?: {
573
- accessList?: import("viem").AccessList;
574
- authorizationList?: import("viem").AuthorizationList;
575
- chain?: import("viem").Chain | null;
576
- dataSuffix?: `0x${string}`;
577
- gas?: bigint;
578
- gasPrice?: bigint;
579
- maxFeePerGas?: bigint;
580
- maxPriorityFeePerGas?: bigint;
581
- nonce?: number;
582
- value?: bigint;
583
- }): Promise<void>;
584
345
  /**
585
346
  * Simulate transfer
586
347
  * Returns gas estimate and result without sending transaction
587
348
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
588
349
  */
589
- transfer(to: `0x${string}`, value: bigint, options?: {
350
+ transfer(to: `0x${string}`, v: bigint, options?: {
590
351
  accessList?: import("viem").AccessList;
591
352
  authorizationList?: import("viem").AuthorizationList;
592
353
  chain?: import("viem").Chain | null;
@@ -603,7 +364,7 @@ export declare class MyToken_json {
603
364
  * Returns gas estimate and result without sending transaction
604
365
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
605
366
  */
606
- transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
367
+ transferFrom(f: `0x${string}`, t: `0x${string}`, v: bigint, options?: {
607
368
  accessList?: import("viem").AccessList;
608
369
  authorizationList?: import("viem").AuthorizationList;
609
370
  chain?: import("viem").Chain | null;
@@ -615,23 +376,6 @@ export declare class MyToken_json {
615
376
  nonce?: number;
616
377
  value?: bigint;
617
378
  }): Promise<boolean>;
618
- /**
619
- * Simulate transferOwnership
620
- * Returns gas estimate and result without sending transaction
621
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
622
- */
623
- transferOwnership(newOwner: `0x${string}`, options?: {
624
- accessList?: import("viem").AccessList;
625
- authorizationList?: import("viem").AuthorizationList;
626
- chain?: import("viem").Chain | null;
627
- dataSuffix?: `0x${string}`;
628
- gas?: bigint;
629
- gasPrice?: bigint;
630
- maxFeePerGas?: bigint;
631
- maxPriorityFeePerGas?: bigint;
632
- nonce?: number;
633
- value?: bigint;
634
- }): Promise<void>;
635
379
  };
636
380
  /**
637
381
  * Watch contract events
@@ -660,19 +404,6 @@ export declare class MyToken_json {
660
404
  owner: `0x${string}`;
661
405
  spender: `0x${string}`;
662
406
  }) => () => void;
663
- /**
664
- * Watch OwnershipTransferred events
665
- * @param callback Function to call when event is emitted
666
- * @param filter Optional filter for indexed parameters
667
- * @returns Unwatch function to stop listening
668
- */
669
- OwnershipTransferred: (callback: (event: {
670
- previousOwner: `0x${string}`;
671
- newOwner: `0x${string}`;
672
- }) => void, filter?: {
673
- previousOwner: `0x${string}`;
674
- newOwner: `0x${string}`;
675
- }) => () => void;
676
407
  /**
677
408
  * Watch Transfer events
678
409
  * @param callback Function to call when event is emitted