@gitmyabi/usdt 1.0.28 → 1.0.30

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-58efe15c-1788966209088`
5
+ - **Build ID**: `etherscan-usdt-83f3eaa5-1789024380631`
6
6
  - **Build Number**: 1
7
- - **Commit**: `36bc508`
7
+ - **Commit**: `193e573`
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.28
15
+ npm install @gitmyabi/usdt@1.0.30
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -1,26 +1,22 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * ERC20Token_json ABI
3
+ * MyNewToken_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 ERC20Token_jsonAbi: readonly [{
7
+ export declare const MyNewToken_jsonAbi: readonly [{
8
8
  readonly inputs: readonly [{
9
9
  readonly internalType: "string";
10
- readonly name: "initialName";
10
+ readonly name: "name";
11
11
  readonly type: "string";
12
12
  }, {
13
13
  readonly internalType: "string";
14
- readonly name: "initialSymbol";
14
+ readonly name: "symbol";
15
15
  readonly type: "string";
16
16
  }, {
17
17
  readonly internalType: "uint256";
18
- readonly name: "initSupply";
18
+ readonly name: "initialSupply";
19
19
  readonly type: "uint256";
20
- }, {
21
- readonly internalType: "uint8";
22
- readonly name: "initialDecimals";
23
- readonly type: "uint8";
24
20
  }];
25
21
  readonly stateMutability: "nonpayable";
26
22
  readonly type: "constructor";
@@ -139,36 +135,6 @@ export declare const ERC20Token_jsonAbi: readonly [{
139
135
  }];
140
136
  readonly name: "OwnershipTransferred";
141
137
  readonly type: "event";
142
- }, {
143
- readonly anonymous: false;
144
- readonly inputs: readonly [{
145
- readonly indexed: false;
146
- readonly internalType: "uint8";
147
- readonly name: "precision";
148
- readonly type: "uint8";
149
- }];
150
- readonly name: "SetDecimals";
151
- readonly type: "event";
152
- }, {
153
- readonly anonymous: false;
154
- readonly inputs: readonly [{
155
- readonly indexed: false;
156
- readonly internalType: "string";
157
- readonly name: "name";
158
- readonly type: "string";
159
- }];
160
- readonly name: "SetName";
161
- readonly type: "event";
162
- }, {
163
- readonly anonymous: false;
164
- readonly inputs: readonly [{
165
- readonly indexed: false;
166
- readonly internalType: "string";
167
- readonly name: "symbol";
168
- readonly type: "string";
169
- }];
170
- readonly name: "SetSymbol";
171
- readonly type: "event";
172
138
  }, {
173
139
  readonly anonymous: false;
174
140
  readonly inputs: readonly [{
@@ -239,20 +205,6 @@ export declare const ERC20Token_jsonAbi: readonly [{
239
205
  }];
240
206
  readonly stateMutability: "view";
241
207
  readonly type: "function";
242
- }, {
243
- readonly inputs: readonly [{
244
- readonly internalType: "address";
245
- readonly name: "account";
246
- readonly type: "address";
247
- }, {
248
- readonly internalType: "uint256";
249
- readonly name: "amount";
250
- readonly type: "uint256";
251
- }];
252
- readonly name: "burn";
253
- readonly outputs: readonly [];
254
- readonly stateMutability: "nonpayable";
255
- readonly type: "function";
256
208
  }, {
257
209
  readonly inputs: readonly [];
258
210
  readonly name: "decimals";
@@ -266,7 +218,7 @@ export declare const ERC20Token_jsonAbi: readonly [{
266
218
  }, {
267
219
  readonly inputs: readonly [{
268
220
  readonly internalType: "address";
269
- readonly name: "account";
221
+ readonly name: "to";
270
222
  readonly type: "address";
271
223
  }, {
272
224
  readonly internalType: "uint256";
@@ -303,36 +255,6 @@ export declare const ERC20Token_jsonAbi: readonly [{
303
255
  readonly outputs: readonly [];
304
256
  readonly stateMutability: "nonpayable";
305
257
  readonly type: "function";
306
- }, {
307
- readonly inputs: readonly [{
308
- readonly internalType: "uint8";
309
- readonly name: "newDecimals";
310
- readonly type: "uint8";
311
- }];
312
- readonly name: "setDecimals";
313
- readonly outputs: readonly [];
314
- readonly stateMutability: "nonpayable";
315
- readonly type: "function";
316
- }, {
317
- readonly inputs: readonly [{
318
- readonly internalType: "string";
319
- readonly name: "newName";
320
- readonly type: "string";
321
- }];
322
- readonly name: "setName";
323
- readonly outputs: readonly [];
324
- readonly stateMutability: "nonpayable";
325
- readonly type: "function";
326
- }, {
327
- readonly inputs: readonly [{
328
- readonly internalType: "string";
329
- readonly name: "newSymbol";
330
- readonly type: "string";
331
- }];
332
- readonly name: "setSymbol";
333
- readonly outputs: readonly [];
334
- readonly stateMutability: "nonpayable";
335
- readonly type: "function";
336
258
  }, {
337
259
  readonly inputs: readonly [];
338
260
  readonly name: "symbol";
@@ -405,15 +327,15 @@ export declare const ERC20Token_jsonAbi: readonly [{
405
327
  readonly type: "function";
406
328
  }];
407
329
  /**
408
- * Type-safe ABI for ERC20Token_json
330
+ * Type-safe ABI for MyNewToken_json
409
331
  */
410
- export type ERC20Token_jsonAbi = typeof ERC20Token_jsonAbi;
332
+ export type MyNewToken_jsonAbi = typeof MyNewToken_jsonAbi;
411
333
  /**
412
- * Contract instance type for ERC20Token_json
334
+ * Contract instance type for MyNewToken_json
413
335
  */
414
- export type ERC20Token_jsonContract = any;
336
+ export type MyNewToken_jsonContract = any;
415
337
  /**
416
- * ERC20Token_json Contract Class
338
+ * MyNewToken_json Contract Class
417
339
  *
418
340
  * Provides a class-based API similar to TypeChain for interacting with the contract.
419
341
  *
@@ -421,12 +343,12 @@ export type ERC20Token_jsonContract = any;
421
343
  * ```typescript
422
344
  * import { createPublicClient, createWalletClient, http } from 'viem';
423
345
  * import { mainnet } from 'viem/chains';
424
- * import { ERC20Token_json } from 'ERC20Token_json';
346
+ * import { MyNewToken_json } from 'MyNewToken_json';
425
347
  *
426
348
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
427
349
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
428
350
  *
429
- * const contract = new ERC20Token_json('0x...', { publicClient, walletClient });
351
+ * const contract = new MyNewToken_json('0x...', { publicClient, walletClient });
430
352
  *
431
353
  * // Read functions
432
354
  * const result = await contract.balanceOf('0x...');
@@ -444,7 +366,7 @@ export type ERC20Token_jsonContract = any;
444
366
  * });
445
367
  * ```
446
368
  */
447
- export declare class ERC20Token_json {
369
+ export declare class MyNewToken_json {
448
370
  private contract;
449
371
  private contractAddress;
450
372
  private publicClient;
@@ -459,7 +381,7 @@ export declare class ERC20Token_json {
459
381
  /**
460
382
  * Get the underlying viem contract instance
461
383
  */
462
- getContract(): ERC20Token_jsonContract;
384
+ getContract(): MyNewToken_jsonContract;
463
385
  /**
464
386
  * allowance
465
387
  * view
@@ -512,29 +434,12 @@ export declare class ERC20Token_json {
512
434
  nonce?: number;
513
435
  value?: bigint;
514
436
  }): Promise<`0x${string}`>;
515
- /**
516
- * burn
517
- * nonpayable
518
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
519
- */
520
- burn(account: `0x${string}`, amount: bigint, options?: {
521
- accessList?: import('viem').AccessList;
522
- authorizationList?: import('viem').AuthorizationList;
523
- chain?: import('viem').Chain | null;
524
- dataSuffix?: `0x${string}`;
525
- gas?: bigint;
526
- gasPrice?: bigint;
527
- maxFeePerGas?: bigint;
528
- maxPriorityFeePerGas?: bigint;
529
- nonce?: number;
530
- value?: bigint;
531
- }): Promise<`0x${string}`>;
532
437
  /**
533
438
  * mint
534
439
  * nonpayable
535
440
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
536
441
  */
537
- mint(account: `0x${string}`, amount: bigint, options?: {
442
+ mint(to: `0x${string}`, amount: bigint, options?: {
538
443
  accessList?: import('viem').AccessList;
539
444
  authorizationList?: import('viem').AuthorizationList;
540
445
  chain?: import('viem').Chain | null;
@@ -563,57 +468,6 @@ export declare class ERC20Token_json {
563
468
  nonce?: number;
564
469
  value?: bigint;
565
470
  }): Promise<`0x${string}`>;
566
- /**
567
- * setDecimals
568
- * nonpayable
569
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
570
- */
571
- setDecimals(newDecimals: bigint, options?: {
572
- accessList?: import('viem').AccessList;
573
- authorizationList?: import('viem').AuthorizationList;
574
- chain?: import('viem').Chain | null;
575
- dataSuffix?: `0x${string}`;
576
- gas?: bigint;
577
- gasPrice?: bigint;
578
- maxFeePerGas?: bigint;
579
- maxPriorityFeePerGas?: bigint;
580
- nonce?: number;
581
- value?: bigint;
582
- }): Promise<`0x${string}`>;
583
- /**
584
- * setName
585
- * nonpayable
586
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
587
- */
588
- setName(newName: string, options?: {
589
- accessList?: import('viem').AccessList;
590
- authorizationList?: import('viem').AuthorizationList;
591
- chain?: import('viem').Chain | null;
592
- dataSuffix?: `0x${string}`;
593
- gas?: bigint;
594
- gasPrice?: bigint;
595
- maxFeePerGas?: bigint;
596
- maxPriorityFeePerGas?: bigint;
597
- nonce?: number;
598
- value?: bigint;
599
- }): Promise<`0x${string}`>;
600
- /**
601
- * setSymbol
602
- * nonpayable
603
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
604
- */
605
- setSymbol(newSymbol: string, options?: {
606
- accessList?: import('viem').AccessList;
607
- authorizationList?: import('viem').AuthorizationList;
608
- chain?: import('viem').Chain | null;
609
- dataSuffix?: `0x${string}`;
610
- gas?: bigint;
611
- gasPrice?: bigint;
612
- maxFeePerGas?: bigint;
613
- maxPriorityFeePerGas?: bigint;
614
- nonce?: number;
615
- value?: bigint;
616
- }): Promise<`0x${string}`>;
617
471
  /**
618
472
  * transfer
619
473
  * nonpayable
@@ -691,29 +545,12 @@ export declare class ERC20Token_json {
691
545
  nonce?: number;
692
546
  value?: bigint;
693
547
  }): Promise<boolean>;
694
- /**
695
- * Simulate burn
696
- * Returns gas estimate and result without sending transaction
697
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
698
- */
699
- burn(account: `0x${string}`, amount: bigint, options?: {
700
- accessList?: import("viem").AccessList;
701
- authorizationList?: import("viem").AuthorizationList;
702
- chain?: import("viem").Chain | null;
703
- dataSuffix?: `0x${string}`;
704
- gas?: bigint;
705
- gasPrice?: bigint;
706
- maxFeePerGas?: bigint;
707
- maxPriorityFeePerGas?: bigint;
708
- nonce?: number;
709
- value?: bigint;
710
- }): Promise<void>;
711
548
  /**
712
549
  * Simulate mint
713
550
  * Returns gas estimate and result without sending transaction
714
551
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
715
552
  */
716
- mint(account: `0x${string}`, amount: bigint, options?: {
553
+ mint(to: `0x${string}`, amount: bigint, options?: {
717
554
  accessList?: import("viem").AccessList;
718
555
  authorizationList?: import("viem").AuthorizationList;
719
556
  chain?: import("viem").Chain | null;
@@ -742,57 +579,6 @@ export declare class ERC20Token_json {
742
579
  nonce?: number;
743
580
  value?: bigint;
744
581
  }): Promise<void>;
745
- /**
746
- * Simulate setDecimals
747
- * Returns gas estimate and result without sending transaction
748
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
749
- */
750
- setDecimals(newDecimals: bigint, options?: {
751
- accessList?: import("viem").AccessList;
752
- authorizationList?: import("viem").AuthorizationList;
753
- chain?: import("viem").Chain | null;
754
- dataSuffix?: `0x${string}`;
755
- gas?: bigint;
756
- gasPrice?: bigint;
757
- maxFeePerGas?: bigint;
758
- maxPriorityFeePerGas?: bigint;
759
- nonce?: number;
760
- value?: bigint;
761
- }): Promise<void>;
762
- /**
763
- * Simulate setName
764
- * Returns gas estimate and result without sending transaction
765
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
766
- */
767
- setName(newName: string, options?: {
768
- accessList?: import("viem").AccessList;
769
- authorizationList?: import("viem").AuthorizationList;
770
- chain?: import("viem").Chain | null;
771
- dataSuffix?: `0x${string}`;
772
- gas?: bigint;
773
- gasPrice?: bigint;
774
- maxFeePerGas?: bigint;
775
- maxPriorityFeePerGas?: bigint;
776
- nonce?: number;
777
- value?: bigint;
778
- }): Promise<void>;
779
- /**
780
- * Simulate setSymbol
781
- * Returns gas estimate and result without sending transaction
782
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
783
- */
784
- setSymbol(newSymbol: string, options?: {
785
- accessList?: import("viem").AccessList;
786
- authorizationList?: import("viem").AuthorizationList;
787
- chain?: import("viem").Chain | null;
788
- dataSuffix?: `0x${string}`;
789
- gas?: bigint;
790
- gasPrice?: bigint;
791
- maxFeePerGas?: bigint;
792
- maxPriorityFeePerGas?: bigint;
793
- nonce?: number;
794
- value?: bigint;
795
- }): Promise<void>;
796
582
  /**
797
583
  * Simulate transfer
798
584
  * Returns gas estimate and result without sending transaction
@@ -885,33 +671,6 @@ export declare class ERC20Token_json {
885
671
  previousOwner: `0x${string}`;
886
672
  newOwner: `0x${string}`;
887
673
  }) => () => void;
888
- /**
889
- * Watch SetDecimals events
890
- * @param callback Function to call when event is emitted
891
- * @param filter Optional filter for indexed parameters
892
- * @returns Unwatch function to stop listening
893
- */
894
- SetDecimals: (callback: (event: {
895
- precision: bigint;
896
- }) => void) => () => void;
897
- /**
898
- * Watch SetName events
899
- * @param callback Function to call when event is emitted
900
- * @param filter Optional filter for indexed parameters
901
- * @returns Unwatch function to stop listening
902
- */
903
- SetName: (callback: (event: {
904
- name: string;
905
- }) => void) => () => void;
906
- /**
907
- * Watch SetSymbol events
908
- * @param callback Function to call when event is emitted
909
- * @param filter Optional filter for indexed parameters
910
- * @returns Unwatch function to stop listening
911
- */
912
- SetSymbol: (callback: (event: {
913
- symbol: string;
914
- }) => void) => () => void;
915
674
  /**
916
675
  * Watch Transfer events
917
676
  * @param callback Function to call when event is emitted