@gitmyabi/usdt 1.0.2 → 1.0.4

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-4921427d-1784884935869`
5
+ - **Build ID**: `etherscan-usdt-abce0930-1785161377856`
6
6
  - **Build Number**: 1
7
- - **Commit**: `646cbeb`
7
+ - **Commit**: `312f559`
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.2
15
+ npm install @gitmyabi/usdt@1.0.4
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -28,6 +28,16 @@ export declare const USDToken_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";
31
41
  }, {
32
42
  readonly anonymous: false;
33
43
  readonly inputs: readonly [{
@@ -35,13 +45,18 @@ export declare const USDToken_jsonAbi: readonly [{
35
45
  readonly internalType: "address";
36
46
  readonly name: "previousOwner";
37
47
  readonly type: "address";
38
- }, {
39
- readonly indexed: true;
40
- readonly internalType: "address";
41
- readonly name: "newOwner";
42
- readonly type: "address";
43
48
  }];
44
- readonly name: "OwnershipTransferred";
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";
45
60
  readonly type: "event";
46
61
  }, {
47
62
  readonly anonymous: false;
@@ -123,6 +138,52 @@ export declare const USDToken_jsonAbi: readonly [{
123
138
  }];
124
139
  readonly stateMutability: "view";
125
140
  readonly type: "function";
141
+ }, {
142
+ readonly inputs: readonly [{
143
+ readonly internalType: "address";
144
+ readonly name: "spender";
145
+ readonly type: "address";
146
+ }, {
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";
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";
167
+ readonly type: "uint256";
168
+ }];
169
+ readonly name: "increaseAllowance";
170
+ readonly outputs: readonly [{
171
+ readonly internalType: "bool";
172
+ readonly name: "";
173
+ readonly type: "bool";
174
+ }];
175
+ readonly stateMutability: "nonpayable";
176
+ readonly type: "function";
177
+ }, {
178
+ readonly inputs: readonly [];
179
+ readonly name: "isRenounced";
180
+ readonly outputs: readonly [{
181
+ readonly internalType: "bool";
182
+ readonly name: "";
183
+ readonly type: "bool";
184
+ }];
185
+ readonly stateMutability: "view";
186
+ readonly type: "function";
126
187
  }, {
127
188
  readonly inputs: readonly [];
128
189
  readonly name: "name";
@@ -149,6 +210,36 @@ export declare const USDToken_jsonAbi: readonly [{
149
210
  readonly outputs: readonly [];
150
211
  readonly stateMutability: "nonpayable";
151
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";
240
+ readonly outputs: readonly [];
241
+ readonly stateMutability: "nonpayable";
242
+ readonly type: "function";
152
243
  }, {
153
244
  readonly inputs: readonly [];
154
245
  readonly name: "symbol";
@@ -219,16 +310,6 @@ export declare const USDToken_jsonAbi: readonly [{
219
310
  }];
220
311
  readonly stateMutability: "nonpayable";
221
312
  readonly type: "function";
222
- }, {
223
- readonly inputs: readonly [{
224
- readonly internalType: "address";
225
- readonly name: "newOwner";
226
- readonly type: "address";
227
- }];
228
- readonly name: "transferOwnership";
229
- readonly outputs: readonly [];
230
- readonly stateMutability: "nonpayable";
231
- readonly type: "function";
232
313
  }];
233
314
  /**
234
315
  * Type-safe ABI for USDToken_json
@@ -301,6 +382,11 @@ export declare class USDToken_json {
301
382
  * view
302
383
  */
303
384
  decimals(): Promise<bigint>;
385
+ /**
386
+ * isRenounced
387
+ * view
388
+ */
389
+ isRenounced(): Promise<boolean>;
304
390
  /**
305
391
  * name
306
392
  * view
@@ -311,6 +397,11 @@ export declare class USDToken_json {
311
397
  * view
312
398
  */
313
399
  owner(): Promise<`0x${string}`>;
400
+ /**
401
+ * renounced
402
+ * view
403
+ */
404
+ renounced(): Promise<boolean>;
314
405
  /**
315
406
  * symbol
316
407
  * view
@@ -343,6 +434,40 @@ export declare class USDToken_json {
343
434
  nonce?: number;
344
435
  value?: bigint;
345
436
  }): Promise<`0x${string}`>;
437
+ /**
438
+ * decreaseAllowance
439
+ * nonpayable
440
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
441
+ */
442
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
443
+ accessList?: import('viem').AccessList;
444
+ authorizationList?: import('viem').AuthorizationList;
445
+ chain?: import('viem').Chain | null;
446
+ dataSuffix?: `0x${string}`;
447
+ gas?: bigint;
448
+ gasPrice?: bigint;
449
+ maxFeePerGas?: bigint;
450
+ maxPriorityFeePerGas?: bigint;
451
+ nonce?: number;
452
+ value?: bigint;
453
+ }): Promise<`0x${string}`>;
454
+ /**
455
+ * increaseAllowance
456
+ * nonpayable
457
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
458
+ */
459
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
460
+ accessList?: import('viem').AccessList;
461
+ authorizationList?: import('viem').AuthorizationList;
462
+ chain?: import('viem').Chain | null;
463
+ dataSuffix?: `0x${string}`;
464
+ gas?: bigint;
465
+ gasPrice?: bigint;
466
+ maxFeePerGas?: bigint;
467
+ maxPriorityFeePerGas?: bigint;
468
+ nonce?: number;
469
+ value?: bigint;
470
+ }): Promise<`0x${string}`>;
346
471
  /**
347
472
  * renounceOwnership
348
473
  * nonpayable
@@ -361,11 +486,11 @@ export declare class USDToken_json {
361
486
  value?: bigint;
362
487
  }): Promise<`0x${string}`>;
363
488
  /**
364
- * transfer
489
+ * setName
365
490
  * nonpayable
366
491
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
367
492
  */
368
- transfer(to: `0x${string}`, amount: bigint, options?: {
493
+ setName(newName: string, options?: {
369
494
  accessList?: import('viem').AccessList;
370
495
  authorizationList?: import('viem').AuthorizationList;
371
496
  chain?: import('viem').Chain | null;
@@ -378,11 +503,11 @@ export declare class USDToken_json {
378
503
  value?: bigint;
379
504
  }): Promise<`0x${string}`>;
380
505
  /**
381
- * transferFrom
506
+ * setSymbol
382
507
  * nonpayable
383
508
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
384
509
  */
385
- transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
510
+ setSymbol(newSymbol: string, options?: {
386
511
  accessList?: import('viem').AccessList;
387
512
  authorizationList?: import('viem').AuthorizationList;
388
513
  chain?: import('viem').Chain | null;
@@ -395,11 +520,28 @@ export declare class USDToken_json {
395
520
  value?: bigint;
396
521
  }): Promise<`0x${string}`>;
397
522
  /**
398
- * transferOwnership
523
+ * transfer
399
524
  * nonpayable
400
525
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
401
526
  */
402
- transferOwnership(newOwner: `0x${string}`, 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?: {
403
545
  accessList?: import('viem').AccessList;
404
546
  authorizationList?: import('viem').AuthorizationList;
405
547
  chain?: import('viem').Chain | null;
@@ -437,6 +579,40 @@ export declare class USDToken_json {
437
579
  nonce?: number;
438
580
  value?: bigint;
439
581
  }): Promise<boolean>;
582
+ /**
583
+ * Simulate decreaseAllowance
584
+ * Returns gas estimate and result without sending transaction
585
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
586
+ */
587
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
588
+ accessList?: import("viem").AccessList;
589
+ authorizationList?: import("viem").AuthorizationList;
590
+ chain?: import("viem").Chain | null;
591
+ dataSuffix?: `0x${string}`;
592
+ gas?: bigint;
593
+ gasPrice?: bigint;
594
+ maxFeePerGas?: bigint;
595
+ maxPriorityFeePerGas?: bigint;
596
+ nonce?: number;
597
+ value?: bigint;
598
+ }): Promise<boolean>;
599
+ /**
600
+ * Simulate increaseAllowance
601
+ * Returns gas estimate and result without sending transaction
602
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
603
+ */
604
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
605
+ accessList?: import("viem").AccessList;
606
+ authorizationList?: import("viem").AuthorizationList;
607
+ chain?: import("viem").Chain | null;
608
+ dataSuffix?: `0x${string}`;
609
+ gas?: bigint;
610
+ gasPrice?: bigint;
611
+ maxFeePerGas?: bigint;
612
+ maxPriorityFeePerGas?: bigint;
613
+ nonce?: number;
614
+ value?: bigint;
615
+ }): Promise<boolean>;
440
616
  /**
441
617
  * Simulate renounceOwnership
442
618
  * Returns gas estimate and result without sending transaction
@@ -455,11 +631,11 @@ export declare class USDToken_json {
455
631
  value?: bigint;
456
632
  }): Promise<void>;
457
633
  /**
458
- * Simulate transfer
634
+ * Simulate setName
459
635
  * Returns gas estimate and result without sending transaction
460
636
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
461
637
  */
462
- transfer(to: `0x${string}`, amount: bigint, options?: {
638
+ setName(newName: string, options?: {
463
639
  accessList?: import("viem").AccessList;
464
640
  authorizationList?: import("viem").AuthorizationList;
465
641
  chain?: import("viem").Chain | null;
@@ -470,13 +646,30 @@ export declare class USDToken_json {
470
646
  maxPriorityFeePerGas?: bigint;
471
647
  nonce?: number;
472
648
  value?: bigint;
473
- }): Promise<boolean>;
649
+ }): Promise<void>;
474
650
  /**
475
- * Simulate transferFrom
651
+ * Simulate setSymbol
476
652
  * Returns gas estimate and result without sending transaction
477
653
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
478
654
  */
479
- transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
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?: {
480
673
  accessList?: import("viem").AccessList;
481
674
  authorizationList?: import("viem").AuthorizationList;
482
675
  chain?: import("viem").Chain | null;
@@ -489,11 +682,11 @@ export declare class USDToken_json {
489
682
  value?: bigint;
490
683
  }): Promise<boolean>;
491
684
  /**
492
- * Simulate transferOwnership
685
+ * Simulate transferFrom
493
686
  * Returns gas estimate and result without sending transaction
494
687
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
495
688
  */
496
- transferOwnership(newOwner: `0x${string}`, options?: {
689
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
497
690
  accessList?: import("viem").AccessList;
498
691
  authorizationList?: import("viem").AuthorizationList;
499
692
  chain?: import("viem").Chain | null;
@@ -504,7 +697,7 @@ export declare class USDToken_json {
504
697
  maxPriorityFeePerGas?: bigint;
505
698
  nonce?: number;
506
699
  value?: bigint;
507
- }): Promise<void>;
700
+ }): Promise<boolean>;
508
701
  };
509
702
  /**
510
703
  * Watch contract events
@@ -534,18 +727,34 @@ export declare class USDToken_json {
534
727
  spender: `0x${string}`;
535
728
  }) => () => void;
536
729
  /**
537
- * Watch OwnershipTransferred events
730
+ * Watch NameChanged events
538
731
  * @param callback Function to call when event is emitted
539
732
  * @param filter Optional filter for indexed parameters
540
733
  * @returns Unwatch function to stop listening
541
734
  */
542
- OwnershipTransferred: (callback: (event: {
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: {
543
745
  previousOwner: `0x${string}`;
544
- newOwner: `0x${string}`;
545
746
  }) => void, filter?: {
546
747
  previousOwner: `0x${string}`;
547
- newOwner: `0x${string}`;
548
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;
549
758
  /**
550
759
  * Watch Transfer events
551
760
  * @param callback Function to call when event is emitted