@gitmyabi/usdt 1.0.15 → 1.0.16

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-ff477c43-1786005331866`
5
+ - **Build ID**: `etherscan-usdt-8d2021ec-1786097010496`
6
6
  - **Build Number**: 1
7
- - **Commit**: `77a52c5`
7
+ - **Commit**: `723b7ad`
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
15
+ npm install @gitmyabi/usdt@1.0.16
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -1,76 +1,44 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * SimpleUSDT_json ABI
3
+ * UERC20_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 SimpleUSDT_jsonAbi: readonly [{
7
+ export declare const UERC20_jsonAbi: readonly [{
8
8
  readonly inputs: readonly [];
9
9
  readonly stateMutability: "nonpayable";
10
10
  readonly type: "constructor";
11
11
  }, {
12
- readonly inputs: readonly [{
13
- readonly internalType: "address";
14
- readonly name: "spender";
15
- readonly type: "address";
16
- }, {
17
- readonly internalType: "uint256";
18
- readonly name: "allowance";
19
- readonly type: "uint256";
20
- }, {
21
- readonly internalType: "uint256";
22
- readonly name: "needed";
23
- readonly type: "uint256";
24
- }];
25
- readonly name: "ERC20InsufficientAllowance";
12
+ readonly inputs: readonly [];
13
+ readonly name: "AllowanceOverflow";
26
14
  readonly type: "error";
27
15
  }, {
28
- readonly inputs: readonly [{
29
- readonly internalType: "address";
30
- readonly name: "sender";
31
- readonly type: "address";
32
- }, {
33
- readonly internalType: "uint256";
34
- readonly name: "balance";
35
- readonly type: "uint256";
36
- }, {
37
- readonly internalType: "uint256";
38
- readonly name: "needed";
39
- readonly type: "uint256";
40
- }];
41
- readonly name: "ERC20InsufficientBalance";
16
+ readonly inputs: readonly [];
17
+ readonly name: "AllowanceUnderflow";
42
18
  readonly type: "error";
43
19
  }, {
44
- readonly inputs: readonly [{
45
- readonly internalType: "address";
46
- readonly name: "approver";
47
- readonly type: "address";
48
- }];
49
- readonly name: "ERC20InvalidApprover";
20
+ readonly inputs: readonly [];
21
+ readonly name: "InsufficientAllowance";
50
22
  readonly type: "error";
51
23
  }, {
52
- readonly inputs: readonly [{
53
- readonly internalType: "address";
54
- readonly name: "receiver";
55
- readonly type: "address";
56
- }];
57
- readonly name: "ERC20InvalidReceiver";
24
+ readonly inputs: readonly [];
25
+ readonly name: "InsufficientBalance";
58
26
  readonly type: "error";
59
27
  }, {
60
- readonly inputs: readonly [{
61
- readonly internalType: "address";
62
- readonly name: "sender";
63
- readonly type: "address";
64
- }];
65
- readonly name: "ERC20InvalidSender";
28
+ readonly inputs: readonly [];
29
+ readonly name: "InvalidPermit";
66
30
  readonly type: "error";
67
31
  }, {
68
- readonly inputs: readonly [{
69
- readonly internalType: "address";
70
- readonly name: "spender";
71
- readonly type: "address";
72
- }];
73
- readonly name: "ERC20InvalidSpender";
32
+ readonly inputs: readonly [];
33
+ readonly name: "Permit2AllowanceIsFixedAtInfinity";
34
+ readonly type: "error";
35
+ }, {
36
+ readonly inputs: readonly [];
37
+ readonly name: "PermitExpired";
38
+ readonly type: "error";
39
+ }, {
40
+ readonly inputs: readonly [];
41
+ readonly name: "TotalSupplyOverflow";
74
42
  readonly type: "error";
75
43
  }, {
76
44
  readonly anonymous: false;
@@ -87,7 +55,7 @@ export declare const SimpleUSDT_jsonAbi: readonly [{
87
55
  }, {
88
56
  readonly indexed: false;
89
57
  readonly internalType: "uint256";
90
- readonly name: "value";
58
+ readonly name: "amount";
91
59
  readonly type: "uint256";
92
60
  }];
93
61
  readonly name: "Approval";
@@ -107,11 +75,21 @@ export declare const SimpleUSDT_jsonAbi: readonly [{
107
75
  }, {
108
76
  readonly indexed: false;
109
77
  readonly internalType: "uint256";
110
- readonly name: "value";
78
+ readonly name: "amount";
111
79
  readonly type: "uint256";
112
80
  }];
113
81
  readonly name: "Transfer";
114
82
  readonly type: "event";
83
+ }, {
84
+ readonly inputs: readonly [];
85
+ readonly name: "DOMAIN_SEPARATOR";
86
+ readonly outputs: readonly [{
87
+ readonly internalType: "bytes32";
88
+ readonly name: "result";
89
+ readonly type: "bytes32";
90
+ }];
91
+ readonly stateMutability: "view";
92
+ readonly type: "function";
115
93
  }, {
116
94
  readonly inputs: readonly [{
117
95
  readonly internalType: "address";
@@ -125,7 +103,7 @@ export declare const SimpleUSDT_jsonAbi: readonly [{
125
103
  readonly name: "allowance";
126
104
  readonly outputs: readonly [{
127
105
  readonly internalType: "uint256";
128
- readonly name: "";
106
+ readonly name: "result";
129
107
  readonly type: "uint256";
130
108
  }];
131
109
  readonly stateMutability: "view";
@@ -137,7 +115,7 @@ export declare const SimpleUSDT_jsonAbi: readonly [{
137
115
  readonly type: "address";
138
116
  }, {
139
117
  readonly internalType: "uint256";
140
- readonly name: "value";
118
+ readonly name: "amount";
141
119
  readonly type: "uint256";
142
120
  }];
143
121
  readonly name: "approve";
@@ -151,17 +129,27 @@ export declare const SimpleUSDT_jsonAbi: readonly [{
151
129
  }, {
152
130
  readonly inputs: readonly [{
153
131
  readonly internalType: "address";
154
- readonly name: "account";
132
+ readonly name: "owner";
155
133
  readonly type: "address";
156
134
  }];
157
135
  readonly name: "balanceOf";
158
136
  readonly outputs: readonly [{
159
137
  readonly internalType: "uint256";
160
- readonly name: "";
138
+ readonly name: "result";
161
139
  readonly type: "uint256";
162
140
  }];
163
141
  readonly stateMutability: "view";
164
142
  readonly type: "function";
143
+ }, {
144
+ readonly inputs: readonly [];
145
+ readonly name: "creator";
146
+ readonly outputs: readonly [{
147
+ readonly internalType: "address";
148
+ readonly name: "";
149
+ readonly type: "address";
150
+ }];
151
+ readonly stateMutability: "view";
152
+ readonly type: "function";
165
153
  }, {
166
154
  readonly inputs: readonly [];
167
155
  readonly name: "decimals";
@@ -170,7 +158,39 @@ export declare const SimpleUSDT_jsonAbi: readonly [{
170
158
  readonly name: "";
171
159
  readonly type: "uint8";
172
160
  }];
173
- readonly stateMutability: "pure";
161
+ readonly stateMutability: "view";
162
+ readonly type: "function";
163
+ }, {
164
+ readonly inputs: readonly [];
165
+ readonly name: "graffiti";
166
+ readonly outputs: readonly [{
167
+ readonly internalType: "bytes32";
168
+ readonly name: "";
169
+ readonly type: "bytes32";
170
+ }];
171
+ readonly stateMutability: "view";
172
+ readonly type: "function";
173
+ }, {
174
+ readonly inputs: readonly [];
175
+ readonly name: "metadata";
176
+ readonly outputs: readonly [{
177
+ readonly internalType: "string";
178
+ readonly name: "description";
179
+ readonly type: "string";
180
+ }, {
181
+ readonly internalType: "string";
182
+ readonly name: "website";
183
+ readonly type: "string";
184
+ }, {
185
+ readonly internalType: "string";
186
+ readonly name: "image";
187
+ readonly type: "string";
188
+ }, {
189
+ readonly internalType: "bytes";
190
+ readonly name: "extraData";
191
+ readonly type: "bytes";
192
+ }];
193
+ readonly stateMutability: "view";
174
194
  readonly type: "function";
175
195
  }, {
176
196
  readonly inputs: readonly [];
@@ -182,6 +202,68 @@ export declare const SimpleUSDT_jsonAbi: readonly [{
182
202
  }];
183
203
  readonly stateMutability: "view";
184
204
  readonly type: "function";
205
+ }, {
206
+ readonly inputs: readonly [{
207
+ readonly internalType: "address";
208
+ readonly name: "owner";
209
+ readonly type: "address";
210
+ }];
211
+ readonly name: "nonces";
212
+ readonly outputs: readonly [{
213
+ readonly internalType: "uint256";
214
+ readonly name: "result";
215
+ readonly type: "uint256";
216
+ }];
217
+ readonly stateMutability: "view";
218
+ readonly type: "function";
219
+ }, {
220
+ readonly inputs: readonly [{
221
+ readonly internalType: "address";
222
+ readonly name: "owner";
223
+ readonly type: "address";
224
+ }, {
225
+ readonly internalType: "address";
226
+ readonly name: "spender";
227
+ readonly type: "address";
228
+ }, {
229
+ readonly internalType: "uint256";
230
+ readonly name: "value";
231
+ readonly type: "uint256";
232
+ }, {
233
+ readonly internalType: "uint256";
234
+ readonly name: "deadline";
235
+ readonly type: "uint256";
236
+ }, {
237
+ readonly internalType: "uint8";
238
+ readonly name: "v";
239
+ readonly type: "uint8";
240
+ }, {
241
+ readonly internalType: "bytes32";
242
+ readonly name: "r";
243
+ readonly type: "bytes32";
244
+ }, {
245
+ readonly internalType: "bytes32";
246
+ readonly name: "s";
247
+ readonly type: "bytes32";
248
+ }];
249
+ readonly name: "permit";
250
+ readonly outputs: readonly [];
251
+ readonly stateMutability: "nonpayable";
252
+ readonly type: "function";
253
+ }, {
254
+ readonly inputs: readonly [{
255
+ readonly internalType: "bytes4";
256
+ readonly name: "_interfaceId";
257
+ readonly type: "bytes4";
258
+ }];
259
+ readonly name: "supportsInterface";
260
+ readonly outputs: readonly [{
261
+ readonly internalType: "bool";
262
+ readonly name: "";
263
+ readonly type: "bool";
264
+ }];
265
+ readonly stateMutability: "view";
266
+ readonly type: "function";
185
267
  }, {
186
268
  readonly inputs: readonly [];
187
269
  readonly name: "symbol";
@@ -192,12 +274,22 @@ export declare const SimpleUSDT_jsonAbi: readonly [{
192
274
  }];
193
275
  readonly stateMutability: "view";
194
276
  readonly type: "function";
277
+ }, {
278
+ readonly inputs: readonly [];
279
+ readonly name: "tokenURI";
280
+ readonly outputs: readonly [{
281
+ readonly internalType: "string";
282
+ readonly name: "";
283
+ readonly type: "string";
284
+ }];
285
+ readonly stateMutability: "view";
286
+ readonly type: "function";
195
287
  }, {
196
288
  readonly inputs: readonly [];
197
289
  readonly name: "totalSupply";
198
290
  readonly outputs: readonly [{
199
291
  readonly internalType: "uint256";
200
- readonly name: "";
292
+ readonly name: "result";
201
293
  readonly type: "uint256";
202
294
  }];
203
295
  readonly stateMutability: "view";
@@ -209,7 +301,7 @@ export declare const SimpleUSDT_jsonAbi: readonly [{
209
301
  readonly type: "address";
210
302
  }, {
211
303
  readonly internalType: "uint256";
212
- readonly name: "value";
304
+ readonly name: "amount";
213
305
  readonly type: "uint256";
214
306
  }];
215
307
  readonly name: "transfer";
@@ -231,7 +323,7 @@ export declare const SimpleUSDT_jsonAbi: readonly [{
231
323
  readonly type: "address";
232
324
  }, {
233
325
  readonly internalType: "uint256";
234
- readonly name: "value";
326
+ readonly name: "amount";
235
327
  readonly type: "uint256";
236
328
  }];
237
329
  readonly name: "transferFrom";
@@ -244,15 +336,15 @@ export declare const SimpleUSDT_jsonAbi: readonly [{
244
336
  readonly type: "function";
245
337
  }];
246
338
  /**
247
- * Type-safe ABI for SimpleUSDT_json
339
+ * Type-safe ABI for UERC20_json
248
340
  */
249
- export type SimpleUSDT_jsonAbi = typeof SimpleUSDT_jsonAbi;
341
+ export type UERC20_jsonAbi = typeof UERC20_jsonAbi;
250
342
  /**
251
- * Contract instance type for SimpleUSDT_json
343
+ * Contract instance type for UERC20_json
252
344
  */
253
- export type SimpleUSDT_jsonContract = any;
345
+ export type UERC20_jsonContract = any;
254
346
  /**
255
- * SimpleUSDT_json Contract Class
347
+ * UERC20_json Contract Class
256
348
  *
257
349
  * Provides a class-based API similar to TypeChain for interacting with the contract.
258
350
  *
@@ -260,12 +352,12 @@ export type SimpleUSDT_jsonContract = any;
260
352
  * ```typescript
261
353
  * import { createPublicClient, createWalletClient, http } from 'viem';
262
354
  * import { mainnet } from 'viem/chains';
263
- * import { SimpleUSDT_json } from 'SimpleUSDT_json';
355
+ * import { UERC20_json } from 'UERC20_json';
264
356
  *
265
357
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
266
358
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
267
359
  *
268
- * const contract = new SimpleUSDT_json('0x...', { publicClient, walletClient });
360
+ * const contract = new UERC20_json('0x...', { publicClient, walletClient });
269
361
  *
270
362
  * // Read functions
271
363
  * const result = await contract.balanceOf('0x...');
@@ -283,7 +375,7 @@ export type SimpleUSDT_jsonContract = any;
283
375
  * });
284
376
  * ```
285
377
  */
286
- export declare class SimpleUSDT_json {
378
+ export declare class UERC20_json {
287
379
  private contract;
288
380
  private contractAddress;
289
381
  private publicClient;
@@ -298,7 +390,12 @@ export declare class SimpleUSDT_json {
298
390
  /**
299
391
  * Get the underlying viem contract instance
300
392
  */
301
- getContract(): SimpleUSDT_jsonContract;
393
+ getContract(): UERC20_jsonContract;
394
+ /**
395
+ * DOMAIN_SEPARATOR
396
+ * view
397
+ */
398
+ DOMAIN_SEPARATOR(): Promise<`0x${string}`>;
302
399
  /**
303
400
  * allowance
304
401
  * view
@@ -308,22 +405,52 @@ export declare class SimpleUSDT_json {
308
405
  * balanceOf
309
406
  * view
310
407
  */
311
- balanceOf(account: `0x${string}`): Promise<bigint>;
408
+ balanceOf(owner: `0x${string}`): Promise<bigint>;
409
+ /**
410
+ * creator
411
+ * view
412
+ */
413
+ creator(): Promise<`0x${string}`>;
312
414
  /**
313
415
  * decimals
314
- * pure
416
+ * view
315
417
  */
316
418
  decimals(): Promise<bigint>;
419
+ /**
420
+ * graffiti
421
+ * view
422
+ */
423
+ graffiti(): Promise<`0x${string}`>;
424
+ /**
425
+ * metadata
426
+ * view
427
+ */
428
+ metadata(): Promise<[string, string, string, `0x${string}`]>;
317
429
  /**
318
430
  * name
319
431
  * view
320
432
  */
321
433
  name(): Promise<string>;
434
+ /**
435
+ * nonces
436
+ * view
437
+ */
438
+ nonces(owner: `0x${string}`): Promise<bigint>;
439
+ /**
440
+ * supportsInterface
441
+ * view
442
+ */
443
+ supportsInterface(_interfaceId: `0x${string}`): Promise<boolean>;
322
444
  /**
323
445
  * symbol
324
446
  * view
325
447
  */
326
448
  symbol(): Promise<string>;
449
+ /**
450
+ * tokenURI
451
+ * view
452
+ */
453
+ tokenURI(): Promise<string>;
327
454
  /**
328
455
  * totalSupply
329
456
  * view
@@ -334,7 +461,24 @@ export declare class SimpleUSDT_json {
334
461
  * nonpayable
335
462
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
336
463
  */
337
- approve(spender: `0x${string}`, value: bigint, options?: {
464
+ approve(spender: `0x${string}`, amount: bigint, options?: {
465
+ accessList?: import('viem').AccessList;
466
+ authorizationList?: import('viem').AuthorizationList;
467
+ chain?: import('viem').Chain | null;
468
+ dataSuffix?: `0x${string}`;
469
+ gas?: bigint;
470
+ gasPrice?: bigint;
471
+ maxFeePerGas?: bigint;
472
+ maxPriorityFeePerGas?: bigint;
473
+ nonce?: number;
474
+ value?: bigint;
475
+ }): Promise<`0x${string}`>;
476
+ /**
477
+ * permit
478
+ * nonpayable
479
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
480
+ */
481
+ permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
338
482
  accessList?: import('viem').AccessList;
339
483
  authorizationList?: import('viem').AuthorizationList;
340
484
  chain?: import('viem').Chain | null;
@@ -351,7 +495,7 @@ export declare class SimpleUSDT_json {
351
495
  * nonpayable
352
496
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
353
497
  */
354
- transfer(to: `0x${string}`, value: bigint, options?: {
498
+ transfer(to: `0x${string}`, amount: bigint, options?: {
355
499
  accessList?: import('viem').AccessList;
356
500
  authorizationList?: import('viem').AuthorizationList;
357
501
  chain?: import('viem').Chain | null;
@@ -368,7 +512,7 @@ export declare class SimpleUSDT_json {
368
512
  * nonpayable
369
513
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
370
514
  */
371
- transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
515
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
372
516
  accessList?: import('viem').AccessList;
373
517
  authorizationList?: import('viem').AuthorizationList;
374
518
  chain?: import('viem').Chain | null;
@@ -394,7 +538,7 @@ export declare class SimpleUSDT_json {
394
538
  * Returns gas estimate and result without sending transaction
395
539
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
396
540
  */
397
- approve(spender: `0x${string}`, value: bigint, options?: {
541
+ approve(spender: `0x${string}`, amount: bigint, options?: {
398
542
  accessList?: import("viem").AccessList;
399
543
  authorizationList?: import("viem").AuthorizationList;
400
544
  chain?: import("viem").Chain | null;
@@ -406,12 +550,29 @@ export declare class SimpleUSDT_json {
406
550
  nonce?: number;
407
551
  value?: bigint;
408
552
  }): Promise<boolean>;
553
+ /**
554
+ * Simulate permit
555
+ * Returns gas estimate and result without sending transaction
556
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
557
+ */
558
+ permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
559
+ accessList?: import("viem").AccessList;
560
+ authorizationList?: import("viem").AuthorizationList;
561
+ chain?: import("viem").Chain | null;
562
+ dataSuffix?: `0x${string}`;
563
+ gas?: bigint;
564
+ gasPrice?: bigint;
565
+ maxFeePerGas?: bigint;
566
+ maxPriorityFeePerGas?: bigint;
567
+ nonce?: number;
568
+ value?: bigint;
569
+ }): Promise<void>;
409
570
  /**
410
571
  * Simulate transfer
411
572
  * Returns gas estimate and result without sending transaction
412
573
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
413
574
  */
414
- transfer(to: `0x${string}`, value: bigint, options?: {
575
+ transfer(to: `0x${string}`, amount: bigint, options?: {
415
576
  accessList?: import("viem").AccessList;
416
577
  authorizationList?: import("viem").AuthorizationList;
417
578
  chain?: import("viem").Chain | null;
@@ -428,7 +589,7 @@ export declare class SimpleUSDT_json {
428
589
  * Returns gas estimate and result without sending transaction
429
590
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
430
591
  */
431
- transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
592
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
432
593
  accessList?: import("viem").AccessList;
433
594
  authorizationList?: import("viem").AuthorizationList;
434
595
  chain?: import("viem").Chain | null;
@@ -463,7 +624,7 @@ export declare class SimpleUSDT_json {
463
624
  Approval: (callback: (event: {
464
625
  owner: `0x${string}`;
465
626
  spender: `0x${string}`;
466
- value: bigint;
627
+ amount: bigint;
467
628
  }) => void, filter?: {
468
629
  owner: `0x${string}`;
469
630
  spender: `0x${string}`;
@@ -477,7 +638,7 @@ export declare class SimpleUSDT_json {
477
638
  Transfer: (callback: (event: {
478
639
  from: `0x${string}`;
479
640
  to: `0x${string}`;
480
- value: bigint;
641
+ amount: bigint;
481
642
  }) => void, filter?: {
482
643
  from: `0x${string}`;
483
644
  to: `0x${string}`;