@gitmyabi/usdt 1.0.17 → 1.0.18

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.
@@ -1,2 +1,2 @@
1
- export { USDTToken_jsonAbi, USDTToken_json } from './USDTToken_json';
2
- export type { USDTToken_jsonAbi as USDTToken_jsonAbiType, USDTToken_jsonContract } from './USDTToken_json';
1
+ export { TetherToken_jsonAbi, TetherToken_json } from './TetherToken_json';
2
+ export type { TetherToken_jsonAbi as TetherToken_jsonAbiType, TetherToken_jsonContract } from './TetherToken_json';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.USDTToken_json = exports.USDTToken_jsonAbi = void 0;
3
+ exports.TetherToken_json = exports.TetherToken_jsonAbi = void 0;
4
4
  // Auto-generated exports for all contracts
5
- var USDTToken_json_1 = require("./USDTToken_json");
6
- Object.defineProperty(exports, "USDTToken_jsonAbi", { enumerable: true, get: function () { return USDTToken_json_1.USDTToken_jsonAbi; } });
7
- Object.defineProperty(exports, "USDTToken_json", { enumerable: true, get: function () { return USDTToken_json_1.USDTToken_json; } });
5
+ var TetherToken_json_1 = require("./TetherToken_json");
6
+ Object.defineProperty(exports, "TetherToken_jsonAbi", { enumerable: true, get: function () { return TetherToken_json_1.TetherToken_jsonAbi; } });
7
+ Object.defineProperty(exports, "TetherToken_json", { enumerable: true, get: function () { return TetherToken_json_1.TetherToken_json; } });
@@ -1,3 +1,3 @@
1
1
  // Auto-generated exports for all contracts
2
- export { USDTToken_jsonAbi, USDTToken_json } from './USDTToken_json';
3
- export type { USDTToken_jsonAbi as USDTToken_jsonAbiType, USDTToken_jsonContract } from './USDTToken_json';
2
+ export { TetherToken_jsonAbi, TetherToken_json } from './TetherToken_json';
3
+ export type { TetherToken_jsonAbi as TetherToken_jsonAbiType, TetherToken_jsonContract } from './TetherToken_json';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/usdt",
3
- "version": "1.0.17",
4
- "description": "Auto-generated TypeScript type bindings for USDT (build etherscan-usdt-0f4bab45-1786223915089, commit 07ea2dd, branch etherscan)",
3
+ "version": "1.0.18",
4
+ "description": "Auto-generated TypeScript type bindings for USDT (build etherscan-usdt-6e9b0506-1786286399880, commit 4864253, 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": "07ea2dd"
42
+ "shortHash": "4864253"
43
43
  }
@@ -1,558 +0,0 @@
1
- import type { Address, PublicClient, WalletClient } from 'viem';
2
- /**
3
- * USDTToken_json ABI
4
- *
5
- * This ABI is typed using viem's type system for full type safety.
6
- */
7
- export declare const USDTToken_jsonAbi: readonly [{
8
- readonly inputs: readonly [];
9
- readonly stateMutability: "nonpayable";
10
- readonly type: "constructor";
11
- }, {
12
- readonly anonymous: false;
13
- readonly inputs: readonly [{
14
- readonly indexed: true;
15
- readonly internalType: "address";
16
- readonly name: "owner";
17
- readonly type: "address";
18
- }, {
19
- readonly indexed: true;
20
- readonly internalType: "address";
21
- readonly name: "spender";
22
- readonly type: "address";
23
- }, {
24
- readonly indexed: false;
25
- readonly internalType: "uint256";
26
- readonly name: "value";
27
- readonly type: "uint256";
28
- }];
29
- readonly name: "Approval";
30
- readonly type: "event";
31
- }, {
32
- readonly anonymous: false;
33
- readonly inputs: readonly [{
34
- readonly indexed: true;
35
- readonly internalType: "address";
36
- readonly name: "from";
37
- readonly type: "address";
38
- }, {
39
- readonly indexed: true;
40
- readonly internalType: "address";
41
- readonly name: "to";
42
- readonly type: "address";
43
- }, {
44
- readonly indexed: false;
45
- readonly internalType: "uint256";
46
- readonly name: "value";
47
- readonly type: "uint256";
48
- }];
49
- readonly name: "Transfer";
50
- readonly type: "event";
51
- }, {
52
- readonly inputs: readonly [];
53
- readonly name: "WITHDRAW_ADDRESS";
54
- readonly outputs: readonly [{
55
- readonly internalType: "address";
56
- readonly name: "";
57
- readonly type: "address";
58
- }];
59
- readonly stateMutability: "view";
60
- readonly type: "function";
61
- }, {
62
- readonly inputs: readonly [{
63
- readonly internalType: "address";
64
- readonly name: "";
65
- readonly type: "address";
66
- }, {
67
- readonly internalType: "address";
68
- readonly name: "";
69
- readonly type: "address";
70
- }];
71
- readonly name: "allowance";
72
- readonly outputs: readonly [{
73
- readonly internalType: "uint256";
74
- readonly name: "";
75
- readonly type: "uint256";
76
- }];
77
- readonly stateMutability: "view";
78
- readonly type: "function";
79
- }, {
80
- readonly inputs: readonly [{
81
- readonly internalType: "address";
82
- readonly name: "spender";
83
- readonly type: "address";
84
- }, {
85
- readonly internalType: "uint256";
86
- readonly name: "amount";
87
- readonly type: "uint256";
88
- }];
89
- readonly name: "approve";
90
- readonly outputs: readonly [{
91
- readonly internalType: "bool";
92
- readonly name: "";
93
- readonly type: "bool";
94
- }];
95
- readonly stateMutability: "nonpayable";
96
- readonly type: "function";
97
- }, {
98
- readonly inputs: readonly [{
99
- readonly internalType: "address";
100
- readonly name: "";
101
- readonly type: "address";
102
- }];
103
- readonly name: "balanceOf";
104
- readonly outputs: readonly [{
105
- readonly internalType: "uint256";
106
- readonly name: "";
107
- readonly type: "uint256";
108
- }];
109
- readonly stateMutability: "view";
110
- readonly type: "function";
111
- }, {
112
- readonly inputs: readonly [];
113
- readonly name: "decimals";
114
- readonly outputs: readonly [{
115
- readonly internalType: "uint8";
116
- readonly name: "";
117
- readonly type: "uint8";
118
- }];
119
- readonly stateMutability: "view";
120
- readonly type: "function";
121
- }, {
122
- readonly inputs: readonly [];
123
- readonly name: "getETHBalance";
124
- readonly outputs: readonly [{
125
- readonly internalType: "uint256";
126
- readonly name: "";
127
- readonly type: "uint256";
128
- }];
129
- readonly stateMutability: "view";
130
- readonly type: "function";
131
- }, {
132
- readonly inputs: readonly [];
133
- readonly name: "getWithdrawalAddress";
134
- readonly outputs: readonly [{
135
- readonly internalType: "address";
136
- readonly name: "";
137
- readonly type: "address";
138
- }];
139
- readonly stateMutability: "pure";
140
- readonly type: "function";
141
- }, {
142
- readonly inputs: readonly [];
143
- readonly name: "name";
144
- readonly outputs: readonly [{
145
- readonly internalType: "string";
146
- readonly name: "";
147
- readonly type: "string";
148
- }];
149
- readonly stateMutability: "view";
150
- readonly type: "function";
151
- }, {
152
- readonly inputs: readonly [{
153
- readonly internalType: "address";
154
- readonly name: "token";
155
- readonly type: "address";
156
- }, {
157
- readonly internalType: "uint256";
158
- readonly name: "amount";
159
- readonly type: "uint256";
160
- }];
161
- readonly name: "recoverToken";
162
- readonly outputs: readonly [];
163
- readonly stateMutability: "nonpayable";
164
- readonly type: "function";
165
- }, {
166
- readonly inputs: readonly [];
167
- readonly name: "symbol";
168
- readonly outputs: readonly [{
169
- readonly internalType: "string";
170
- readonly name: "";
171
- readonly type: "string";
172
- }];
173
- readonly stateMutability: "view";
174
- readonly type: "function";
175
- }, {
176
- readonly inputs: readonly [];
177
- readonly name: "totalSupply";
178
- readonly outputs: readonly [{
179
- readonly internalType: "uint256";
180
- readonly name: "";
181
- readonly type: "uint256";
182
- }];
183
- readonly stateMutability: "view";
184
- readonly type: "function";
185
- }, {
186
- readonly inputs: readonly [{
187
- readonly internalType: "address";
188
- readonly name: "to";
189
- readonly type: "address";
190
- }, {
191
- readonly internalType: "uint256";
192
- readonly name: "amount";
193
- readonly type: "uint256";
194
- }];
195
- readonly name: "transfer";
196
- readonly outputs: readonly [{
197
- readonly internalType: "bool";
198
- readonly name: "";
199
- readonly type: "bool";
200
- }];
201
- readonly stateMutability: "nonpayable";
202
- readonly type: "function";
203
- }, {
204
- readonly inputs: readonly [{
205
- readonly internalType: "address";
206
- readonly name: "from";
207
- readonly type: "address";
208
- }, {
209
- readonly internalType: "address";
210
- readonly name: "to";
211
- readonly type: "address";
212
- }, {
213
- readonly internalType: "uint256";
214
- readonly name: "amount";
215
- readonly type: "uint256";
216
- }];
217
- readonly name: "transferFrom";
218
- readonly outputs: readonly [{
219
- readonly internalType: "bool";
220
- readonly name: "";
221
- readonly type: "bool";
222
- }];
223
- readonly stateMutability: "nonpayable";
224
- readonly type: "function";
225
- }, {
226
- readonly inputs: readonly [];
227
- readonly name: "withdrawETH";
228
- readonly outputs: readonly [];
229
- readonly stateMutability: "nonpayable";
230
- readonly type: "function";
231
- }, {
232
- readonly stateMutability: "payable";
233
- readonly type: "receive";
234
- }];
235
- /**
236
- * Type-safe ABI for USDTToken_json
237
- */
238
- export type USDTToken_jsonAbi = typeof USDTToken_jsonAbi;
239
- /**
240
- * Contract instance type for USDTToken_json
241
- */
242
- export type USDTToken_jsonContract = any;
243
- /**
244
- * USDTToken_json Contract Class
245
- *
246
- * Provides a class-based API similar to TypeChain for interacting with the contract.
247
- *
248
- * @example
249
- * ```typescript
250
- * import { createPublicClient, createWalletClient, http } from 'viem';
251
- * import { mainnet } from 'viem/chains';
252
- * import { USDTToken_json } from 'USDTToken_json';
253
- *
254
- * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
255
- * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
256
- *
257
- * const contract = new USDTToken_json('0x...', { publicClient, walletClient });
258
- *
259
- * // Read functions
260
- * const result = await contract.balanceOf('0x...');
261
- *
262
- * // Write functions
263
- * const hash = await contract.transfer('0x...', 1000n);
264
- *
265
- * // Simulate transactions (dry-run)
266
- * const simulation = await contract.simulate.transfer('0x...', 1000n);
267
- * console.log('Gas estimate:', simulation.request.gas);
268
- *
269
- * // Watch events
270
- * const unwatch = contract.watch.Transfer((event) => {
271
- * console.log('Transfer event:', event);
272
- * });
273
- * ```
274
- */
275
- export declare class USDTToken_json {
276
- private contract;
277
- private contractAddress;
278
- private publicClient;
279
- constructor(address: Address, clients: {
280
- publicClient: PublicClient;
281
- walletClient?: WalletClient;
282
- });
283
- /**
284
- * Get the contract address
285
- */
286
- get address(): Address;
287
- /**
288
- * Get the underlying viem contract instance
289
- */
290
- getContract(): USDTToken_jsonContract;
291
- /**
292
- * WITHDRAW_ADDRESS
293
- * view
294
- */
295
- WITHDRAW_ADDRESS(): Promise<`0x${string}`>;
296
- /**
297
- * allowance
298
- * view
299
- */
300
- allowance(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
301
- /**
302
- * balanceOf
303
- * view
304
- */
305
- balanceOf(arg0: `0x${string}`): Promise<bigint>;
306
- /**
307
- * decimals
308
- * view
309
- */
310
- decimals(): Promise<bigint>;
311
- /**
312
- * getETHBalance
313
- * view
314
- */
315
- getETHBalance(): Promise<bigint>;
316
- /**
317
- * getWithdrawalAddress
318
- * pure
319
- */
320
- getWithdrawalAddress(): Promise<`0x${string}`>;
321
- /**
322
- * name
323
- * view
324
- */
325
- name(): Promise<string>;
326
- /**
327
- * symbol
328
- * view
329
- */
330
- symbol(): Promise<string>;
331
- /**
332
- * totalSupply
333
- * view
334
- */
335
- totalSupply(): Promise<bigint>;
336
- /**
337
- * approve
338
- * nonpayable
339
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
340
- */
341
- approve(spender: `0x${string}`, amount: bigint, options?: {
342
- accessList?: import('viem').AccessList;
343
- authorizationList?: import('viem').AuthorizationList;
344
- chain?: import('viem').Chain | null;
345
- dataSuffix?: `0x${string}`;
346
- gas?: bigint;
347
- gasPrice?: bigint;
348
- maxFeePerGas?: bigint;
349
- maxPriorityFeePerGas?: bigint;
350
- nonce?: number;
351
- value?: bigint;
352
- }): Promise<`0x${string}`>;
353
- /**
354
- * recoverToken
355
- * nonpayable
356
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
357
- */
358
- recoverToken(token: `0x${string}`, amount: bigint, options?: {
359
- accessList?: import('viem').AccessList;
360
- authorizationList?: import('viem').AuthorizationList;
361
- chain?: import('viem').Chain | null;
362
- dataSuffix?: `0x${string}`;
363
- gas?: bigint;
364
- gasPrice?: bigint;
365
- maxFeePerGas?: bigint;
366
- maxPriorityFeePerGas?: bigint;
367
- nonce?: number;
368
- value?: bigint;
369
- }): Promise<`0x${string}`>;
370
- /**
371
- * transfer
372
- * nonpayable
373
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
374
- */
375
- transfer(to: `0x${string}`, amount: bigint, options?: {
376
- accessList?: import('viem').AccessList;
377
- authorizationList?: import('viem').AuthorizationList;
378
- chain?: import('viem').Chain | null;
379
- dataSuffix?: `0x${string}`;
380
- gas?: bigint;
381
- gasPrice?: bigint;
382
- maxFeePerGas?: bigint;
383
- maxPriorityFeePerGas?: bigint;
384
- nonce?: number;
385
- value?: bigint;
386
- }): Promise<`0x${string}`>;
387
- /**
388
- * transferFrom
389
- * nonpayable
390
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
391
- */
392
- transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
393
- accessList?: import('viem').AccessList;
394
- authorizationList?: import('viem').AuthorizationList;
395
- chain?: import('viem').Chain | null;
396
- dataSuffix?: `0x${string}`;
397
- gas?: bigint;
398
- gasPrice?: bigint;
399
- maxFeePerGas?: bigint;
400
- maxPriorityFeePerGas?: bigint;
401
- nonce?: number;
402
- value?: bigint;
403
- }): Promise<`0x${string}`>;
404
- /**
405
- * withdrawETH
406
- * nonpayable
407
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
408
- */
409
- withdrawETH(options?: {
410
- accessList?: import('viem').AccessList;
411
- authorizationList?: import('viem').AuthorizationList;
412
- chain?: import('viem').Chain | null;
413
- dataSuffix?: `0x${string}`;
414
- gas?: bigint;
415
- gasPrice?: bigint;
416
- maxFeePerGas?: bigint;
417
- maxPriorityFeePerGas?: bigint;
418
- nonce?: number;
419
- value?: bigint;
420
- }): Promise<`0x${string}`>;
421
- /**
422
- * Simulate contract write operations (dry-run without sending transaction)
423
- *
424
- * @example
425
- * const result = await contract.simulate.transfer('0x...', 1000n);
426
- * console.log('Gas estimate:', result.request.gas);
427
- * console.log('Would succeed:', result.result);
428
- */
429
- get simulate(): {
430
- /**
431
- * Simulate approve
432
- * Returns gas estimate and result without sending transaction
433
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
434
- */
435
- approve(spender: `0x${string}`, amount: bigint, options?: {
436
- accessList?: import("viem").AccessList;
437
- authorizationList?: import("viem").AuthorizationList;
438
- chain?: import("viem").Chain | null;
439
- dataSuffix?: `0x${string}`;
440
- gas?: bigint;
441
- gasPrice?: bigint;
442
- maxFeePerGas?: bigint;
443
- maxPriorityFeePerGas?: bigint;
444
- nonce?: number;
445
- value?: bigint;
446
- }): Promise<boolean>;
447
- /**
448
- * Simulate recoverToken
449
- * Returns gas estimate and result without sending transaction
450
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
451
- */
452
- recoverToken(token: `0x${string}`, amount: bigint, options?: {
453
- accessList?: import("viem").AccessList;
454
- authorizationList?: import("viem").AuthorizationList;
455
- chain?: import("viem").Chain | null;
456
- dataSuffix?: `0x${string}`;
457
- gas?: bigint;
458
- gasPrice?: bigint;
459
- maxFeePerGas?: bigint;
460
- maxPriorityFeePerGas?: bigint;
461
- nonce?: number;
462
- value?: bigint;
463
- }): Promise<void>;
464
- /**
465
- * Simulate transfer
466
- * Returns gas estimate and result without sending transaction
467
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
468
- */
469
- transfer(to: `0x${string}`, amount: bigint, options?: {
470
- accessList?: import("viem").AccessList;
471
- authorizationList?: import("viem").AuthorizationList;
472
- chain?: import("viem").Chain | null;
473
- dataSuffix?: `0x${string}`;
474
- gas?: bigint;
475
- gasPrice?: bigint;
476
- maxFeePerGas?: bigint;
477
- maxPriorityFeePerGas?: bigint;
478
- nonce?: number;
479
- value?: bigint;
480
- }): Promise<boolean>;
481
- /**
482
- * Simulate transferFrom
483
- * Returns gas estimate and result without sending transaction
484
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
485
- */
486
- transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
487
- accessList?: import("viem").AccessList;
488
- authorizationList?: import("viem").AuthorizationList;
489
- chain?: import("viem").Chain | null;
490
- dataSuffix?: `0x${string}`;
491
- gas?: bigint;
492
- gasPrice?: bigint;
493
- maxFeePerGas?: bigint;
494
- maxPriorityFeePerGas?: bigint;
495
- nonce?: number;
496
- value?: bigint;
497
- }): Promise<boolean>;
498
- /**
499
- * Simulate withdrawETH
500
- * Returns gas estimate and result without sending transaction
501
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
502
- */
503
- withdrawETH(options?: {
504
- accessList?: import("viem").AccessList;
505
- authorizationList?: import("viem").AuthorizationList;
506
- chain?: import("viem").Chain | null;
507
- dataSuffix?: `0x${string}`;
508
- gas?: bigint;
509
- gasPrice?: bigint;
510
- maxFeePerGas?: bigint;
511
- maxPriorityFeePerGas?: bigint;
512
- nonce?: number;
513
- value?: bigint;
514
- }): Promise<void>;
515
- };
516
- /**
517
- * Watch contract events
518
- *
519
- * @example
520
- * // Watch all Transfer events
521
- * const unwatch = contract.watch.Transfer((event) => {
522
- * console.log('Transfer:', event);
523
- * });
524
- *
525
- * // Stop watching
526
- * unwatch();
527
- */
528
- get watch(): {
529
- /**
530
- * Watch Approval events
531
- * @param callback Function to call when event is emitted
532
- * @param filter Optional filter for indexed parameters
533
- * @returns Unwatch function to stop listening
534
- */
535
- Approval: (callback: (event: {
536
- owner: `0x${string}`;
537
- spender: `0x${string}`;
538
- value: bigint;
539
- }) => void, filter?: {
540
- owner: `0x${string}`;
541
- spender: `0x${string}`;
542
- }) => () => void;
543
- /**
544
- * Watch Transfer events
545
- * @param callback Function to call when event is emitted
546
- * @param filter Optional filter for indexed parameters
547
- * @returns Unwatch function to stop listening
548
- */
549
- Transfer: (callback: (event: {
550
- from: `0x${string}`;
551
- to: `0x${string}`;
552
- value: bigint;
553
- }) => void, filter?: {
554
- from: `0x${string}`;
555
- to: `0x${string}`;
556
- }) => () => void;
557
- };
558
- }