@gitmyabi/usdt 1.0.1 → 1.0.3
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 +3 -3
- package/contracts/{USDT_json.d.ts → TetherUSD_json.d.ts} +59 -11
- package/contracts/{USDT_json.js → TetherUSD_json.js} +49 -12
- package/contracts/{USDT_json.ts → TetherUSD_json.ts} +76 -16
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
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-
|
|
5
|
+
- **Build ID**: `etherscan-usdt-11fb75cb-1784891884171`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `9c30d2e`
|
|
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.
|
|
15
|
+
npm install @gitmyabi/usdt@1.0.3
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
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
|
|
7
|
+
export declare const TetherUSD_jsonAbi: readonly [{
|
|
8
8
|
readonly inputs: readonly [{
|
|
9
9
|
readonly internalType: "string";
|
|
10
10
|
readonly name: "name_";
|
|
@@ -203,6 +203,20 @@ export declare const USDT_jsonAbi: readonly [{
|
|
|
203
203
|
}];
|
|
204
204
|
readonly stateMutability: "nonpayable";
|
|
205
205
|
readonly type: "function";
|
|
206
|
+
}, {
|
|
207
|
+
readonly inputs: readonly [{
|
|
208
|
+
readonly internalType: "address";
|
|
209
|
+
readonly name: "account";
|
|
210
|
+
readonly type: "address";
|
|
211
|
+
}, {
|
|
212
|
+
readonly internalType: "uint256";
|
|
213
|
+
readonly name: "amount";
|
|
214
|
+
readonly type: "uint256";
|
|
215
|
+
}];
|
|
216
|
+
readonly name: "mint";
|
|
217
|
+
readonly outputs: readonly [];
|
|
218
|
+
readonly stateMutability: "nonpayable";
|
|
219
|
+
readonly type: "function";
|
|
206
220
|
}, {
|
|
207
221
|
readonly inputs: readonly [];
|
|
208
222
|
readonly name: "name";
|
|
@@ -315,15 +329,15 @@ export declare const USDT_jsonAbi: readonly [{
|
|
|
315
329
|
readonly type: "function";
|
|
316
330
|
}];
|
|
317
331
|
/**
|
|
318
|
-
* Type-safe ABI for
|
|
332
|
+
* Type-safe ABI for TetherUSD_json
|
|
319
333
|
*/
|
|
320
|
-
export type
|
|
334
|
+
export type TetherUSD_jsonAbi = typeof TetherUSD_jsonAbi;
|
|
321
335
|
/**
|
|
322
|
-
* Contract instance type for
|
|
336
|
+
* Contract instance type for TetherUSD_json
|
|
323
337
|
*/
|
|
324
|
-
export type
|
|
338
|
+
export type TetherUSD_jsonContract = any;
|
|
325
339
|
/**
|
|
326
|
-
*
|
|
340
|
+
* TetherUSD_json Contract Class
|
|
327
341
|
*
|
|
328
342
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
329
343
|
*
|
|
@@ -331,12 +345,12 @@ export type USDT_jsonContract = any;
|
|
|
331
345
|
* ```typescript
|
|
332
346
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
333
347
|
* import { mainnet } from 'viem/chains';
|
|
334
|
-
* import {
|
|
348
|
+
* import { TetherUSD_json } from 'TetherUSD_json';
|
|
335
349
|
*
|
|
336
350
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
337
351
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
338
352
|
*
|
|
339
|
-
* const contract = new
|
|
353
|
+
* const contract = new TetherUSD_json('0x...', { publicClient, walletClient });
|
|
340
354
|
*
|
|
341
355
|
* // Read functions
|
|
342
356
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -354,7 +368,7 @@ export type USDT_jsonContract = any;
|
|
|
354
368
|
* });
|
|
355
369
|
* ```
|
|
356
370
|
*/
|
|
357
|
-
export declare class
|
|
371
|
+
export declare class TetherUSD_json {
|
|
358
372
|
private contract;
|
|
359
373
|
private contractAddress;
|
|
360
374
|
private publicClient;
|
|
@@ -369,7 +383,7 @@ export declare class USDT_json {
|
|
|
369
383
|
/**
|
|
370
384
|
* Get the underlying viem contract instance
|
|
371
385
|
*/
|
|
372
|
-
getContract():
|
|
386
|
+
getContract(): TetherUSD_jsonContract;
|
|
373
387
|
/**
|
|
374
388
|
* Optimization
|
|
375
389
|
* view
|
|
@@ -466,6 +480,23 @@ export declare class USDT_json {
|
|
|
466
480
|
nonce?: number;
|
|
467
481
|
value?: bigint;
|
|
468
482
|
}): Promise<`0x${string}`>;
|
|
483
|
+
/**
|
|
484
|
+
* mint
|
|
485
|
+
* nonpayable
|
|
486
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
487
|
+
*/
|
|
488
|
+
mint(account: `0x${string}`, amount: bigint, options?: {
|
|
489
|
+
accessList?: import('viem').AccessList;
|
|
490
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
491
|
+
chain?: import('viem').Chain | null;
|
|
492
|
+
dataSuffix?: `0x${string}`;
|
|
493
|
+
gas?: bigint;
|
|
494
|
+
gasPrice?: bigint;
|
|
495
|
+
maxFeePerGas?: bigint;
|
|
496
|
+
maxPriorityFeePerGas?: bigint;
|
|
497
|
+
nonce?: number;
|
|
498
|
+
value?: bigint;
|
|
499
|
+
}): Promise<`0x${string}`>;
|
|
469
500
|
/**
|
|
470
501
|
* recoverERC20
|
|
471
502
|
* nonpayable
|
|
@@ -611,6 +642,23 @@ export declare class USDT_json {
|
|
|
611
642
|
nonce?: number;
|
|
612
643
|
value?: bigint;
|
|
613
644
|
}): Promise<boolean>;
|
|
645
|
+
/**
|
|
646
|
+
* Simulate mint
|
|
647
|
+
* Returns gas estimate and result without sending transaction
|
|
648
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
649
|
+
*/
|
|
650
|
+
mint(account: `0x${string}`, amount: bigint, options?: {
|
|
651
|
+
accessList?: import("viem").AccessList;
|
|
652
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
653
|
+
chain?: import("viem").Chain | null;
|
|
654
|
+
dataSuffix?: `0x${string}`;
|
|
655
|
+
gas?: bigint;
|
|
656
|
+
gasPrice?: bigint;
|
|
657
|
+
maxFeePerGas?: bigint;
|
|
658
|
+
maxPriorityFeePerGas?: bigint;
|
|
659
|
+
nonce?: number;
|
|
660
|
+
value?: bigint;
|
|
661
|
+
}): Promise<void>;
|
|
614
662
|
/**
|
|
615
663
|
* Simulate recoverERC20
|
|
616
664
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TetherUSD_json = exports.TetherUSD_jsonAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* TetherUSD_json ABI
|
|
7
7
|
*
|
|
8
8
|
* This ABI is typed using viem's type system for full type safety.
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.TetherUSD_jsonAbi = [
|
|
11
11
|
{
|
|
12
12
|
"inputs": [
|
|
13
13
|
{
|
|
@@ -267,6 +267,24 @@ exports.USDT_jsonAbi = [
|
|
|
267
267
|
"stateMutability": "nonpayable",
|
|
268
268
|
"type": "function"
|
|
269
269
|
},
|
|
270
|
+
{
|
|
271
|
+
"inputs": [
|
|
272
|
+
{
|
|
273
|
+
"internalType": "address",
|
|
274
|
+
"name": "account",
|
|
275
|
+
"type": "address"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"internalType": "uint256",
|
|
279
|
+
"name": "amount",
|
|
280
|
+
"type": "uint256"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"name": "mint",
|
|
284
|
+
"outputs": [],
|
|
285
|
+
"stateMutability": "nonpayable",
|
|
286
|
+
"type": "function"
|
|
287
|
+
},
|
|
270
288
|
{
|
|
271
289
|
"inputs": [],
|
|
272
290
|
"name": "name",
|
|
@@ -412,7 +430,7 @@ exports.USDT_jsonAbi = [
|
|
|
412
430
|
}
|
|
413
431
|
];
|
|
414
432
|
/**
|
|
415
|
-
*
|
|
433
|
+
* TetherUSD_json Contract Class
|
|
416
434
|
*
|
|
417
435
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
418
436
|
*
|
|
@@ -420,12 +438,12 @@ exports.USDT_jsonAbi = [
|
|
|
420
438
|
* ```typescript
|
|
421
439
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
422
440
|
* import { mainnet } from 'viem/chains';
|
|
423
|
-
* import {
|
|
441
|
+
* import { TetherUSD_json } from 'TetherUSD_json';
|
|
424
442
|
*
|
|
425
443
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
426
444
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
427
445
|
*
|
|
428
|
-
* const contract = new
|
|
446
|
+
* const contract = new TetherUSD_json('0x...', { publicClient, walletClient });
|
|
429
447
|
*
|
|
430
448
|
* // Read functions
|
|
431
449
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -443,13 +461,13 @@ exports.USDT_jsonAbi = [
|
|
|
443
461
|
* });
|
|
444
462
|
* ```
|
|
445
463
|
*/
|
|
446
|
-
class
|
|
464
|
+
class TetherUSD_json {
|
|
447
465
|
constructor(address, clients) {
|
|
448
466
|
this.contractAddress = address;
|
|
449
467
|
this.publicClient = clients.publicClient;
|
|
450
468
|
this.contract = (0, viem_1.getContract)({
|
|
451
469
|
address,
|
|
452
|
-
abi: exports.
|
|
470
|
+
abi: exports.TetherUSD_jsonAbi,
|
|
453
471
|
client: {
|
|
454
472
|
public: clients.publicClient,
|
|
455
473
|
wallet: clients.walletClient,
|
|
@@ -564,6 +582,17 @@ class USDT_json {
|
|
|
564
582
|
}
|
|
565
583
|
return this.contract.write.increaseAllowance([spender, addedValue], options);
|
|
566
584
|
}
|
|
585
|
+
/**
|
|
586
|
+
* mint
|
|
587
|
+
* nonpayable
|
|
588
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
589
|
+
*/
|
|
590
|
+
async mint(account, amount, options) {
|
|
591
|
+
if (!this.contract.write) {
|
|
592
|
+
throw new Error('Wallet client is required for write operations');
|
|
593
|
+
}
|
|
594
|
+
return this.contract.write.mint([account, amount], options);
|
|
595
|
+
}
|
|
567
596
|
/**
|
|
568
597
|
* recoverERC20
|
|
569
598
|
* nonpayable
|
|
@@ -657,6 +686,14 @@ class USDT_json {
|
|
|
657
686
|
async increaseAllowance(spender, addedValue, options) {
|
|
658
687
|
return contract.simulate.increaseAllowance([spender, addedValue], options);
|
|
659
688
|
},
|
|
689
|
+
/**
|
|
690
|
+
* Simulate mint
|
|
691
|
+
* Returns gas estimate and result without sending transaction
|
|
692
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
693
|
+
*/
|
|
694
|
+
async mint(account, amount, options) {
|
|
695
|
+
return contract.simulate.mint([account, amount], options);
|
|
696
|
+
},
|
|
660
697
|
/**
|
|
661
698
|
* Simulate recoverERC20
|
|
662
699
|
* Returns gas estimate and result without sending transaction
|
|
@@ -722,7 +759,7 @@ class USDT_json {
|
|
|
722
759
|
Approval: (callback, filter) => {
|
|
723
760
|
return this.publicClient.watchContractEvent({
|
|
724
761
|
address: this.contractAddress,
|
|
725
|
-
abi: exports.
|
|
762
|
+
abi: exports.TetherUSD_jsonAbi,
|
|
726
763
|
eventName: 'Approval',
|
|
727
764
|
args: filter,
|
|
728
765
|
onLogs: (logs) => {
|
|
@@ -741,7 +778,7 @@ class USDT_json {
|
|
|
741
778
|
OwnershipTransferred: (callback, filter) => {
|
|
742
779
|
return this.publicClient.watchContractEvent({
|
|
743
780
|
address: this.contractAddress,
|
|
744
|
-
abi: exports.
|
|
781
|
+
abi: exports.TetherUSD_jsonAbi,
|
|
745
782
|
eventName: 'OwnershipTransferred',
|
|
746
783
|
args: filter,
|
|
747
784
|
onLogs: (logs) => {
|
|
@@ -760,7 +797,7 @@ class USDT_json {
|
|
|
760
797
|
Transfer: (callback, filter) => {
|
|
761
798
|
return this.publicClient.watchContractEvent({
|
|
762
799
|
address: this.contractAddress,
|
|
763
|
-
abi: exports.
|
|
800
|
+
abi: exports.TetherUSD_jsonAbi,
|
|
764
801
|
eventName: 'Transfer',
|
|
765
802
|
args: filter,
|
|
766
803
|
onLogs: (logs) => {
|
|
@@ -773,4 +810,4 @@ class USDT_json {
|
|
|
773
810
|
};
|
|
774
811
|
}
|
|
775
812
|
}
|
|
776
|
-
exports.
|
|
813
|
+
exports.TetherUSD_json = TetherUSD_json;
|
|
@@ -2,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
|
|
|
2
2
|
import { getContract } from 'viem';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* TetherUSD_json ABI
|
|
6
6
|
*
|
|
7
7
|
* This ABI is typed using viem's type system for full type safety.
|
|
8
8
|
*/
|
|
9
|
-
export const
|
|
9
|
+
export const TetherUSD_jsonAbi = [
|
|
10
10
|
{
|
|
11
11
|
"inputs": [
|
|
12
12
|
{
|
|
@@ -266,6 +266,24 @@ export const USDT_jsonAbi = [
|
|
|
266
266
|
"stateMutability": "nonpayable",
|
|
267
267
|
"type": "function"
|
|
268
268
|
},
|
|
269
|
+
{
|
|
270
|
+
"inputs": [
|
|
271
|
+
{
|
|
272
|
+
"internalType": "address",
|
|
273
|
+
"name": "account",
|
|
274
|
+
"type": "address"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"internalType": "uint256",
|
|
278
|
+
"name": "amount",
|
|
279
|
+
"type": "uint256"
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
"name": "mint",
|
|
283
|
+
"outputs": [],
|
|
284
|
+
"stateMutability": "nonpayable",
|
|
285
|
+
"type": "function"
|
|
286
|
+
},
|
|
269
287
|
{
|
|
270
288
|
"inputs": [],
|
|
271
289
|
"name": "name",
|
|
@@ -412,19 +430,19 @@ export const USDT_jsonAbi = [
|
|
|
412
430
|
] as const satisfies Abi;
|
|
413
431
|
|
|
414
432
|
/**
|
|
415
|
-
* Type-safe ABI for
|
|
433
|
+
* Type-safe ABI for TetherUSD_json
|
|
416
434
|
*/
|
|
417
|
-
export type
|
|
435
|
+
export type TetherUSD_jsonAbi = typeof TetherUSD_jsonAbi;
|
|
418
436
|
|
|
419
437
|
/**
|
|
420
|
-
* Contract instance type for
|
|
438
|
+
* Contract instance type for TetherUSD_json
|
|
421
439
|
*/
|
|
422
440
|
// Use any for contract type to avoid complex viem type issues
|
|
423
441
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
424
|
-
export type
|
|
442
|
+
export type TetherUSD_jsonContract = any;
|
|
425
443
|
|
|
426
444
|
/**
|
|
427
|
-
*
|
|
445
|
+
* TetherUSD_json Contract Class
|
|
428
446
|
*
|
|
429
447
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
430
448
|
*
|
|
@@ -432,12 +450,12 @@ export type USDT_jsonContract = any;
|
|
|
432
450
|
* ```typescript
|
|
433
451
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
434
452
|
* import { mainnet } from 'viem/chains';
|
|
435
|
-
* import {
|
|
453
|
+
* import { TetherUSD_json } from 'TetherUSD_json';
|
|
436
454
|
*
|
|
437
455
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
438
456
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
439
457
|
*
|
|
440
|
-
* const contract = new
|
|
458
|
+
* const contract = new TetherUSD_json('0x...', { publicClient, walletClient });
|
|
441
459
|
*
|
|
442
460
|
* // Read functions
|
|
443
461
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -455,8 +473,8 @@ export type USDT_jsonContract = any;
|
|
|
455
473
|
* });
|
|
456
474
|
* ```
|
|
457
475
|
*/
|
|
458
|
-
export class
|
|
459
|
-
private contract:
|
|
476
|
+
export class TetherUSD_json {
|
|
477
|
+
private contract: TetherUSD_jsonContract;
|
|
460
478
|
private contractAddress: Address;
|
|
461
479
|
private publicClient: PublicClient;
|
|
462
480
|
|
|
@@ -471,7 +489,7 @@ export class USDT_json {
|
|
|
471
489
|
this.publicClient = clients.publicClient;
|
|
472
490
|
this.contract = getContract({
|
|
473
491
|
address,
|
|
474
|
-
abi:
|
|
492
|
+
abi: TetherUSD_jsonAbi,
|
|
475
493
|
client: {
|
|
476
494
|
public: clients.publicClient,
|
|
477
495
|
wallet: clients.walletClient,
|
|
@@ -489,7 +507,7 @@ export class USDT_json {
|
|
|
489
507
|
/**
|
|
490
508
|
* Get the underlying viem contract instance
|
|
491
509
|
*/
|
|
492
|
-
getContract():
|
|
510
|
+
getContract(): TetherUSD_jsonContract {
|
|
493
511
|
return this.contract;
|
|
494
512
|
}
|
|
495
513
|
|
|
@@ -634,6 +652,29 @@ export class USDT_json {
|
|
|
634
652
|
return this.contract.write.increaseAllowance([spender, addedValue] as const, options) as Promise<`0x${string}`>;
|
|
635
653
|
}
|
|
636
654
|
|
|
655
|
+
/**
|
|
656
|
+
* mint
|
|
657
|
+
* nonpayable
|
|
658
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
659
|
+
*/
|
|
660
|
+
async mint(account: `0x${string}`, amount: bigint, options?: {
|
|
661
|
+
accessList?: import('viem').AccessList;
|
|
662
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
663
|
+
chain?: import('viem').Chain | null;
|
|
664
|
+
dataSuffix?: `0x${string}`;
|
|
665
|
+
gas?: bigint;
|
|
666
|
+
gasPrice?: bigint;
|
|
667
|
+
maxFeePerGas?: bigint;
|
|
668
|
+
maxPriorityFeePerGas?: bigint;
|
|
669
|
+
nonce?: number;
|
|
670
|
+
value?: bigint;
|
|
671
|
+
}): Promise<`0x${string}`> {
|
|
672
|
+
if (!this.contract.write) {
|
|
673
|
+
throw new Error('Wallet client is required for write operations');
|
|
674
|
+
}
|
|
675
|
+
return this.contract.write.mint([account, amount] as const, options) as Promise<`0x${string}`>;
|
|
676
|
+
}
|
|
677
|
+
|
|
637
678
|
/**
|
|
638
679
|
* recoverERC20
|
|
639
680
|
* nonpayable
|
|
@@ -822,6 +863,25 @@ export class USDT_json {
|
|
|
822
863
|
}): Promise<boolean> {
|
|
823
864
|
return contract.simulate.increaseAllowance([spender, addedValue] as const, options) as Promise<boolean>;
|
|
824
865
|
},
|
|
866
|
+
/**
|
|
867
|
+
* Simulate mint
|
|
868
|
+
* Returns gas estimate and result without sending transaction
|
|
869
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
870
|
+
*/
|
|
871
|
+
async mint(account: `0x${string}`, amount: bigint, options?: {
|
|
872
|
+
accessList?: import('viem').AccessList;
|
|
873
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
874
|
+
chain?: import('viem').Chain | null;
|
|
875
|
+
dataSuffix?: `0x${string}`;
|
|
876
|
+
gas?: bigint;
|
|
877
|
+
gasPrice?: bigint;
|
|
878
|
+
maxFeePerGas?: bigint;
|
|
879
|
+
maxPriorityFeePerGas?: bigint;
|
|
880
|
+
nonce?: number;
|
|
881
|
+
value?: bigint;
|
|
882
|
+
}): Promise<void> {
|
|
883
|
+
return contract.simulate.mint([account, amount] as const, options) as Promise<void>;
|
|
884
|
+
},
|
|
825
885
|
/**
|
|
826
886
|
* Simulate recoverERC20
|
|
827
887
|
* Returns gas estimate and result without sending transaction
|
|
@@ -943,7 +1003,7 @@ export class USDT_json {
|
|
|
943
1003
|
Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
|
|
944
1004
|
return this.publicClient.watchContractEvent({
|
|
945
1005
|
address: this.contractAddress,
|
|
946
|
-
abi:
|
|
1006
|
+
abi: TetherUSD_jsonAbi,
|
|
947
1007
|
eventName: 'Approval',
|
|
948
1008
|
args: filter,
|
|
949
1009
|
onLogs: (logs: any[]) => {
|
|
@@ -962,7 +1022,7 @@ export class USDT_json {
|
|
|
962
1022
|
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
|
|
963
1023
|
return this.publicClient.watchContractEvent({
|
|
964
1024
|
address: this.contractAddress,
|
|
965
|
-
abi:
|
|
1025
|
+
abi: TetherUSD_jsonAbi,
|
|
966
1026
|
eventName: 'OwnershipTransferred',
|
|
967
1027
|
args: filter,
|
|
968
1028
|
onLogs: (logs: any[]) => {
|
|
@@ -981,7 +1041,7 @@ export class USDT_json {
|
|
|
981
1041
|
Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
|
|
982
1042
|
return this.publicClient.watchContractEvent({
|
|
983
1043
|
address: this.contractAddress,
|
|
984
|
-
abi:
|
|
1044
|
+
abi: TetherUSD_jsonAbi,
|
|
985
1045
|
eventName: 'Transfer',
|
|
986
1046
|
args: filter,
|
|
987
1047
|
onLogs: (logs: any[]) => {
|
package/contracts/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
1
|
+
export { TetherUSD_jsonAbi, TetherUSD_json } from './TetherUSD_json';
|
|
2
|
+
export type { TetherUSD_jsonAbi as TetherUSD_jsonAbiType, TetherUSD_jsonContract } from './TetherUSD_json';
|
package/contracts/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TetherUSD_json = exports.TetherUSD_jsonAbi = void 0;
|
|
4
4
|
// Auto-generated exports for all contracts
|
|
5
|
-
var
|
|
6
|
-
Object.defineProperty(exports, "
|
|
7
|
-
Object.defineProperty(exports, "
|
|
5
|
+
var TetherUSD_json_1 = require("./TetherUSD_json");
|
|
6
|
+
Object.defineProperty(exports, "TetherUSD_jsonAbi", { enumerable: true, get: function () { return TetherUSD_json_1.TetherUSD_jsonAbi; } });
|
|
7
|
+
Object.defineProperty(exports, "TetherUSD_json", { enumerable: true, get: function () { return TetherUSD_json_1.TetherUSD_json; } });
|
package/contracts/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Auto-generated exports for all contracts
|
|
2
|
-
export {
|
|
3
|
-
export type {
|
|
2
|
+
export { TetherUSD_jsonAbi, TetherUSD_json } from './TetherUSD_json';
|
|
3
|
+
export type { TetherUSD_jsonAbi as TetherUSD_jsonAbiType, TetherUSD_jsonContract } from './TetherUSD_json';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitmyabi/usdt",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Auto-generated TypeScript type bindings for USDT (build etherscan-usdt-
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "Auto-generated TypeScript type bindings for USDT (build etherscan-usdt-11fb75cb-1784891884171, commit 9c30d2e, branch etherscan)",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"url": "https://github.com/etherscan/usdt"
|
|
40
40
|
},
|
|
41
41
|
"branch": "etherscan",
|
|
42
|
-
"shortHash": "
|
|
42
|
+
"shortHash": "9c30d2e"
|
|
43
43
|
}
|