@gitmyabi/usdt 1.0.2 → 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/{USDToken_json.d.ts → TetherUSD_json.d.ts} +281 -42
- package/contracts/{USDToken_json.js → TetherUSD_json.js} +265 -54
- package/contracts/{USDToken_json.ts → TetherUSD_json.ts} +363 -59
- 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,12 +1,36 @@
|
|
|
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
|
|
8
|
-
readonly inputs: readonly [
|
|
9
|
-
|
|
7
|
+
export declare const TetherUSD_jsonAbi: readonly [{
|
|
8
|
+
readonly inputs: readonly [{
|
|
9
|
+
readonly internalType: "string";
|
|
10
|
+
readonly name: "name_";
|
|
11
|
+
readonly type: "string";
|
|
12
|
+
}, {
|
|
13
|
+
readonly internalType: "string";
|
|
14
|
+
readonly name: "symbol_";
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
}, {
|
|
17
|
+
readonly internalType: "uint256";
|
|
18
|
+
readonly name: "decimals_";
|
|
19
|
+
readonly type: "uint256";
|
|
20
|
+
}, {
|
|
21
|
+
readonly internalType: "uint256";
|
|
22
|
+
readonly name: "initialBalance_";
|
|
23
|
+
readonly type: "uint256";
|
|
24
|
+
}, {
|
|
25
|
+
readonly internalType: "address";
|
|
26
|
+
readonly name: "tokenOwner";
|
|
27
|
+
readonly type: "address";
|
|
28
|
+
}, {
|
|
29
|
+
readonly internalType: "address payable";
|
|
30
|
+
readonly name: "feeReceiver_";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}];
|
|
33
|
+
readonly stateMutability: "payable";
|
|
10
34
|
readonly type: "constructor";
|
|
11
35
|
}, {
|
|
12
36
|
readonly anonymous: false;
|
|
@@ -64,13 +88,33 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
64
88
|
readonly name: "Transfer";
|
|
65
89
|
readonly type: "event";
|
|
66
90
|
}, {
|
|
67
|
-
readonly inputs: readonly [
|
|
91
|
+
readonly inputs: readonly [];
|
|
92
|
+
readonly name: "Optimization";
|
|
93
|
+
readonly outputs: readonly [{
|
|
94
|
+
readonly internalType: "uint256";
|
|
95
|
+
readonly name: "";
|
|
96
|
+
readonly type: "uint256";
|
|
97
|
+
}];
|
|
98
|
+
readonly stateMutability: "view";
|
|
99
|
+
readonly type: "function";
|
|
100
|
+
}, {
|
|
101
|
+
readonly inputs: readonly [];
|
|
102
|
+
readonly name: "_owner";
|
|
103
|
+
readonly outputs: readonly [{
|
|
68
104
|
readonly internalType: "address";
|
|
69
105
|
readonly name: "";
|
|
70
106
|
readonly type: "address";
|
|
107
|
+
}];
|
|
108
|
+
readonly stateMutability: "view";
|
|
109
|
+
readonly type: "function";
|
|
110
|
+
}, {
|
|
111
|
+
readonly inputs: readonly [{
|
|
112
|
+
readonly internalType: "address";
|
|
113
|
+
readonly name: "owner";
|
|
114
|
+
readonly type: "address";
|
|
71
115
|
}, {
|
|
72
116
|
readonly internalType: "address";
|
|
73
|
-
readonly name: "";
|
|
117
|
+
readonly name: "spender";
|
|
74
118
|
readonly type: "address";
|
|
75
119
|
}];
|
|
76
120
|
readonly name: "allowance";
|
|
@@ -102,7 +146,7 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
102
146
|
}, {
|
|
103
147
|
readonly inputs: readonly [{
|
|
104
148
|
readonly internalType: "address";
|
|
105
|
-
readonly name: "";
|
|
149
|
+
readonly name: "account";
|
|
106
150
|
readonly type: "address";
|
|
107
151
|
}];
|
|
108
152
|
readonly name: "balanceOf";
|
|
@@ -117,12 +161,62 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
117
161
|
readonly inputs: readonly [];
|
|
118
162
|
readonly name: "decimals";
|
|
119
163
|
readonly outputs: readonly [{
|
|
120
|
-
readonly internalType: "
|
|
164
|
+
readonly internalType: "uint256";
|
|
121
165
|
readonly name: "";
|
|
122
|
-
readonly type: "
|
|
166
|
+
readonly type: "uint256";
|
|
123
167
|
}];
|
|
124
168
|
readonly stateMutability: "view";
|
|
125
169
|
readonly type: "function";
|
|
170
|
+
}, {
|
|
171
|
+
readonly inputs: readonly [{
|
|
172
|
+
readonly internalType: "address";
|
|
173
|
+
readonly name: "spender";
|
|
174
|
+
readonly type: "address";
|
|
175
|
+
}, {
|
|
176
|
+
readonly internalType: "uint256";
|
|
177
|
+
readonly name: "subtractedValue";
|
|
178
|
+
readonly type: "uint256";
|
|
179
|
+
}];
|
|
180
|
+
readonly name: "decreaseAllowance";
|
|
181
|
+
readonly outputs: readonly [{
|
|
182
|
+
readonly internalType: "bool";
|
|
183
|
+
readonly name: "";
|
|
184
|
+
readonly type: "bool";
|
|
185
|
+
}];
|
|
186
|
+
readonly stateMutability: "nonpayable";
|
|
187
|
+
readonly type: "function";
|
|
188
|
+
}, {
|
|
189
|
+
readonly inputs: readonly [{
|
|
190
|
+
readonly internalType: "address";
|
|
191
|
+
readonly name: "spender";
|
|
192
|
+
readonly type: "address";
|
|
193
|
+
}, {
|
|
194
|
+
readonly internalType: "uint256";
|
|
195
|
+
readonly name: "addedValue";
|
|
196
|
+
readonly type: "uint256";
|
|
197
|
+
}];
|
|
198
|
+
readonly name: "increaseAllowance";
|
|
199
|
+
readonly outputs: readonly [{
|
|
200
|
+
readonly internalType: "bool";
|
|
201
|
+
readonly name: "";
|
|
202
|
+
readonly type: "bool";
|
|
203
|
+
}];
|
|
204
|
+
readonly stateMutability: "nonpayable";
|
|
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";
|
|
126
220
|
}, {
|
|
127
221
|
readonly inputs: readonly [];
|
|
128
222
|
readonly name: "name";
|
|
@@ -143,6 +237,20 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
143
237
|
}];
|
|
144
238
|
readonly stateMutability: "view";
|
|
145
239
|
readonly type: "function";
|
|
240
|
+
}, {
|
|
241
|
+
readonly inputs: readonly [{
|
|
242
|
+
readonly internalType: "address";
|
|
243
|
+
readonly name: "tokenAddress";
|
|
244
|
+
readonly type: "address";
|
|
245
|
+
}, {
|
|
246
|
+
readonly internalType: "uint256";
|
|
247
|
+
readonly name: "tokenAmount";
|
|
248
|
+
readonly type: "uint256";
|
|
249
|
+
}];
|
|
250
|
+
readonly name: "recoverERC20";
|
|
251
|
+
readonly outputs: readonly [];
|
|
252
|
+
readonly stateMutability: "nonpayable";
|
|
253
|
+
readonly type: "function";
|
|
146
254
|
}, {
|
|
147
255
|
readonly inputs: readonly [];
|
|
148
256
|
readonly name: "renounceOwnership";
|
|
@@ -159,16 +267,6 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
159
267
|
}];
|
|
160
268
|
readonly stateMutability: "view";
|
|
161
269
|
readonly type: "function";
|
|
162
|
-
}, {
|
|
163
|
-
readonly inputs: readonly [];
|
|
164
|
-
readonly name: "tokenImage";
|
|
165
|
-
readonly outputs: readonly [{
|
|
166
|
-
readonly internalType: "string";
|
|
167
|
-
readonly name: "";
|
|
168
|
-
readonly type: "string";
|
|
169
|
-
}];
|
|
170
|
-
readonly stateMutability: "pure";
|
|
171
|
-
readonly type: "function";
|
|
172
270
|
}, {
|
|
173
271
|
readonly inputs: readonly [];
|
|
174
272
|
readonly name: "totalSupply";
|
|
@@ -182,7 +280,7 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
182
280
|
}, {
|
|
183
281
|
readonly inputs: readonly [{
|
|
184
282
|
readonly internalType: "address";
|
|
185
|
-
readonly name: "
|
|
283
|
+
readonly name: "recipient";
|
|
186
284
|
readonly type: "address";
|
|
187
285
|
}, {
|
|
188
286
|
readonly internalType: "uint256";
|
|
@@ -200,11 +298,11 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
200
298
|
}, {
|
|
201
299
|
readonly inputs: readonly [{
|
|
202
300
|
readonly internalType: "address";
|
|
203
|
-
readonly name: "
|
|
301
|
+
readonly name: "sender";
|
|
204
302
|
readonly type: "address";
|
|
205
303
|
}, {
|
|
206
304
|
readonly internalType: "address";
|
|
207
|
-
readonly name: "
|
|
305
|
+
readonly name: "recipient";
|
|
208
306
|
readonly type: "address";
|
|
209
307
|
}, {
|
|
210
308
|
readonly internalType: "uint256";
|
|
@@ -231,15 +329,15 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
231
329
|
readonly type: "function";
|
|
232
330
|
}];
|
|
233
331
|
/**
|
|
234
|
-
* Type-safe ABI for
|
|
332
|
+
* Type-safe ABI for TetherUSD_json
|
|
235
333
|
*/
|
|
236
|
-
export type
|
|
334
|
+
export type TetherUSD_jsonAbi = typeof TetherUSD_jsonAbi;
|
|
237
335
|
/**
|
|
238
|
-
* Contract instance type for
|
|
336
|
+
* Contract instance type for TetherUSD_json
|
|
239
337
|
*/
|
|
240
|
-
export type
|
|
338
|
+
export type TetherUSD_jsonContract = any;
|
|
241
339
|
/**
|
|
242
|
-
*
|
|
340
|
+
* TetherUSD_json Contract Class
|
|
243
341
|
*
|
|
244
342
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
245
343
|
*
|
|
@@ -247,12 +345,12 @@ export type USDToken_jsonContract = any;
|
|
|
247
345
|
* ```typescript
|
|
248
346
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
249
347
|
* import { mainnet } from 'viem/chains';
|
|
250
|
-
* import {
|
|
348
|
+
* import { TetherUSD_json } from 'TetherUSD_json';
|
|
251
349
|
*
|
|
252
350
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
253
351
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
254
352
|
*
|
|
255
|
-
* const contract = new
|
|
353
|
+
* const contract = new TetherUSD_json('0x...', { publicClient, walletClient });
|
|
256
354
|
*
|
|
257
355
|
* // Read functions
|
|
258
356
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -270,7 +368,7 @@ export type USDToken_jsonContract = any;
|
|
|
270
368
|
* });
|
|
271
369
|
* ```
|
|
272
370
|
*/
|
|
273
|
-
export declare class
|
|
371
|
+
export declare class TetherUSD_json {
|
|
274
372
|
private contract;
|
|
275
373
|
private contractAddress;
|
|
276
374
|
private publicClient;
|
|
@@ -285,17 +383,27 @@ export declare class USDToken_json {
|
|
|
285
383
|
/**
|
|
286
384
|
* Get the underlying viem contract instance
|
|
287
385
|
*/
|
|
288
|
-
getContract():
|
|
386
|
+
getContract(): TetherUSD_jsonContract;
|
|
387
|
+
/**
|
|
388
|
+
* Optimization
|
|
389
|
+
* view
|
|
390
|
+
*/
|
|
391
|
+
Optimization(): Promise<bigint>;
|
|
392
|
+
/**
|
|
393
|
+
* _owner
|
|
394
|
+
* view
|
|
395
|
+
*/
|
|
396
|
+
_owner(): Promise<`0x${string}`>;
|
|
289
397
|
/**
|
|
290
398
|
* allowance
|
|
291
399
|
* view
|
|
292
400
|
*/
|
|
293
|
-
allowance(
|
|
401
|
+
allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
294
402
|
/**
|
|
295
403
|
* balanceOf
|
|
296
404
|
* view
|
|
297
405
|
*/
|
|
298
|
-
balanceOf(
|
|
406
|
+
balanceOf(account: `0x${string}`): Promise<bigint>;
|
|
299
407
|
/**
|
|
300
408
|
* decimals
|
|
301
409
|
* view
|
|
@@ -316,11 +424,6 @@ export declare class USDToken_json {
|
|
|
316
424
|
* view
|
|
317
425
|
*/
|
|
318
426
|
symbol(): Promise<string>;
|
|
319
|
-
/**
|
|
320
|
-
* tokenImage
|
|
321
|
-
* pure
|
|
322
|
-
*/
|
|
323
|
-
tokenImage(): Promise<string>;
|
|
324
427
|
/**
|
|
325
428
|
* totalSupply
|
|
326
429
|
* view
|
|
@@ -343,6 +446,74 @@ export declare class USDToken_json {
|
|
|
343
446
|
nonce?: number;
|
|
344
447
|
value?: bigint;
|
|
345
448
|
}): Promise<`0x${string}`>;
|
|
449
|
+
/**
|
|
450
|
+
* decreaseAllowance
|
|
451
|
+
* nonpayable
|
|
452
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
453
|
+
*/
|
|
454
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
455
|
+
accessList?: import('viem').AccessList;
|
|
456
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
457
|
+
chain?: import('viem').Chain | null;
|
|
458
|
+
dataSuffix?: `0x${string}`;
|
|
459
|
+
gas?: bigint;
|
|
460
|
+
gasPrice?: bigint;
|
|
461
|
+
maxFeePerGas?: bigint;
|
|
462
|
+
maxPriorityFeePerGas?: bigint;
|
|
463
|
+
nonce?: number;
|
|
464
|
+
value?: bigint;
|
|
465
|
+
}): Promise<`0x${string}`>;
|
|
466
|
+
/**
|
|
467
|
+
* increaseAllowance
|
|
468
|
+
* nonpayable
|
|
469
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
470
|
+
*/
|
|
471
|
+
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
472
|
+
accessList?: import('viem').AccessList;
|
|
473
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
474
|
+
chain?: import('viem').Chain | null;
|
|
475
|
+
dataSuffix?: `0x${string}`;
|
|
476
|
+
gas?: bigint;
|
|
477
|
+
gasPrice?: bigint;
|
|
478
|
+
maxFeePerGas?: bigint;
|
|
479
|
+
maxPriorityFeePerGas?: bigint;
|
|
480
|
+
nonce?: number;
|
|
481
|
+
value?: bigint;
|
|
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}`>;
|
|
500
|
+
/**
|
|
501
|
+
* recoverERC20
|
|
502
|
+
* nonpayable
|
|
503
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
504
|
+
*/
|
|
505
|
+
recoverERC20(tokenAddress: `0x${string}`, tokenAmount: bigint, options?: {
|
|
506
|
+
accessList?: import('viem').AccessList;
|
|
507
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
508
|
+
chain?: import('viem').Chain | null;
|
|
509
|
+
dataSuffix?: `0x${string}`;
|
|
510
|
+
gas?: bigint;
|
|
511
|
+
gasPrice?: bigint;
|
|
512
|
+
maxFeePerGas?: bigint;
|
|
513
|
+
maxPriorityFeePerGas?: bigint;
|
|
514
|
+
nonce?: number;
|
|
515
|
+
value?: bigint;
|
|
516
|
+
}): Promise<`0x${string}`>;
|
|
346
517
|
/**
|
|
347
518
|
* renounceOwnership
|
|
348
519
|
* nonpayable
|
|
@@ -365,7 +536,7 @@ export declare class USDToken_json {
|
|
|
365
536
|
* nonpayable
|
|
366
537
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
367
538
|
*/
|
|
368
|
-
transfer(
|
|
539
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
369
540
|
accessList?: import('viem').AccessList;
|
|
370
541
|
authorizationList?: import('viem').AuthorizationList;
|
|
371
542
|
chain?: import('viem').Chain | null;
|
|
@@ -382,7 +553,7 @@ export declare class USDToken_json {
|
|
|
382
553
|
* nonpayable
|
|
383
554
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
384
555
|
*/
|
|
385
|
-
transferFrom(
|
|
556
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
386
557
|
accessList?: import('viem').AccessList;
|
|
387
558
|
authorizationList?: import('viem').AuthorizationList;
|
|
388
559
|
chain?: import('viem').Chain | null;
|
|
@@ -437,6 +608,74 @@ export declare class USDToken_json {
|
|
|
437
608
|
nonce?: number;
|
|
438
609
|
value?: bigint;
|
|
439
610
|
}): Promise<boolean>;
|
|
611
|
+
/**
|
|
612
|
+
* Simulate decreaseAllowance
|
|
613
|
+
* Returns gas estimate and result without sending transaction
|
|
614
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
615
|
+
*/
|
|
616
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
617
|
+
accessList?: import("viem").AccessList;
|
|
618
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
619
|
+
chain?: import("viem").Chain | null;
|
|
620
|
+
dataSuffix?: `0x${string}`;
|
|
621
|
+
gas?: bigint;
|
|
622
|
+
gasPrice?: bigint;
|
|
623
|
+
maxFeePerGas?: bigint;
|
|
624
|
+
maxPriorityFeePerGas?: bigint;
|
|
625
|
+
nonce?: number;
|
|
626
|
+
value?: bigint;
|
|
627
|
+
}): Promise<boolean>;
|
|
628
|
+
/**
|
|
629
|
+
* Simulate increaseAllowance
|
|
630
|
+
* Returns gas estimate and result without sending transaction
|
|
631
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
632
|
+
*/
|
|
633
|
+
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
634
|
+
accessList?: import("viem").AccessList;
|
|
635
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
636
|
+
chain?: import("viem").Chain | null;
|
|
637
|
+
dataSuffix?: `0x${string}`;
|
|
638
|
+
gas?: bigint;
|
|
639
|
+
gasPrice?: bigint;
|
|
640
|
+
maxFeePerGas?: bigint;
|
|
641
|
+
maxPriorityFeePerGas?: bigint;
|
|
642
|
+
nonce?: number;
|
|
643
|
+
value?: bigint;
|
|
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>;
|
|
662
|
+
/**
|
|
663
|
+
* Simulate recoverERC20
|
|
664
|
+
* Returns gas estimate and result without sending transaction
|
|
665
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
666
|
+
*/
|
|
667
|
+
recoverERC20(tokenAddress: `0x${string}`, tokenAmount: bigint, options?: {
|
|
668
|
+
accessList?: import("viem").AccessList;
|
|
669
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
670
|
+
chain?: import("viem").Chain | null;
|
|
671
|
+
dataSuffix?: `0x${string}`;
|
|
672
|
+
gas?: bigint;
|
|
673
|
+
gasPrice?: bigint;
|
|
674
|
+
maxFeePerGas?: bigint;
|
|
675
|
+
maxPriorityFeePerGas?: bigint;
|
|
676
|
+
nonce?: number;
|
|
677
|
+
value?: bigint;
|
|
678
|
+
}): Promise<void>;
|
|
440
679
|
/**
|
|
441
680
|
* Simulate renounceOwnership
|
|
442
681
|
* Returns gas estimate and result without sending transaction
|
|
@@ -459,7 +698,7 @@ export declare class USDToken_json {
|
|
|
459
698
|
* Returns gas estimate and result without sending transaction
|
|
460
699
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
461
700
|
*/
|
|
462
|
-
transfer(
|
|
701
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
463
702
|
accessList?: import("viem").AccessList;
|
|
464
703
|
authorizationList?: import("viem").AuthorizationList;
|
|
465
704
|
chain?: import("viem").Chain | null;
|
|
@@ -476,7 +715,7 @@ export declare class USDToken_json {
|
|
|
476
715
|
* Returns gas estimate and result without sending transaction
|
|
477
716
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
478
717
|
*/
|
|
479
|
-
transferFrom(
|
|
718
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
480
719
|
accessList?: import("viem").AccessList;
|
|
481
720
|
authorizationList?: import("viem").AuthorizationList;
|
|
482
721
|
chain?: import("viem").Chain | null;
|