@gitmyabi/usdt 1.0.10 → 1.0.12
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/{TETHER_json.d.ts → StandardERC20_json.d.ts} +91 -336
- package/contracts/{TETHER_json.js → StandardERC20_json.js} +112 -305
- package/contracts/{TETHER_json.ts → StandardERC20_json.ts} +116 -427
- 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-479723ff-1785741302812`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `17be2aa`
|
|
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.12
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* StandardERC20_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 StandardERC20_jsonAbi: readonly [{
|
|
8
8
|
readonly inputs: readonly [{
|
|
9
9
|
readonly internalType: "string";
|
|
10
10
|
readonly name: "name_";
|
|
@@ -14,17 +14,17 @@ export declare const TETHER_jsonAbi: readonly [{
|
|
|
14
14
|
readonly name: "symbol_";
|
|
15
15
|
readonly type: "string";
|
|
16
16
|
}, {
|
|
17
|
-
readonly internalType: "
|
|
17
|
+
readonly internalType: "uint8";
|
|
18
18
|
readonly name: "decimals_";
|
|
19
|
-
readonly type: "
|
|
19
|
+
readonly type: "uint8";
|
|
20
20
|
}, {
|
|
21
21
|
readonly internalType: "uint256";
|
|
22
22
|
readonly name: "initialBalance_";
|
|
23
23
|
readonly type: "uint256";
|
|
24
24
|
}, {
|
|
25
|
-
readonly internalType: "
|
|
26
|
-
readonly name: "
|
|
27
|
-
readonly type: "
|
|
25
|
+
readonly internalType: "bytes";
|
|
26
|
+
readonly name: "signature_";
|
|
27
|
+
readonly type: "bytes";
|
|
28
28
|
}, {
|
|
29
29
|
readonly internalType: "address payable";
|
|
30
30
|
readonly name: "feeReceiver_";
|
|
@@ -33,39 +33,88 @@ export declare const TETHER_jsonAbi: readonly [{
|
|
|
33
33
|
readonly stateMutability: "payable";
|
|
34
34
|
readonly type: "constructor";
|
|
35
35
|
}, {
|
|
36
|
-
readonly anonymous: false;
|
|
37
36
|
readonly inputs: readonly [{
|
|
38
|
-
readonly indexed: true;
|
|
39
37
|
readonly internalType: "address";
|
|
40
|
-
readonly name: "
|
|
38
|
+
readonly name: "spender";
|
|
41
39
|
readonly type: "address";
|
|
42
40
|
}, {
|
|
43
|
-
readonly
|
|
41
|
+
readonly internalType: "uint256";
|
|
42
|
+
readonly name: "allowance";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
}, {
|
|
45
|
+
readonly internalType: "uint256";
|
|
46
|
+
readonly name: "needed";
|
|
47
|
+
readonly type: "uint256";
|
|
48
|
+
}];
|
|
49
|
+
readonly name: "ERC20InsufficientAllowance";
|
|
50
|
+
readonly type: "error";
|
|
51
|
+
}, {
|
|
52
|
+
readonly inputs: readonly [{
|
|
44
53
|
readonly internalType: "address";
|
|
45
|
-
readonly name: "
|
|
54
|
+
readonly name: "sender";
|
|
46
55
|
readonly type: "address";
|
|
47
56
|
}, {
|
|
48
|
-
readonly indexed: false;
|
|
49
57
|
readonly internalType: "uint256";
|
|
50
|
-
readonly name: "
|
|
58
|
+
readonly name: "balance";
|
|
59
|
+
readonly type: "uint256";
|
|
60
|
+
}, {
|
|
61
|
+
readonly internalType: "uint256";
|
|
62
|
+
readonly name: "needed";
|
|
51
63
|
readonly type: "uint256";
|
|
52
64
|
}];
|
|
53
|
-
readonly name: "
|
|
54
|
-
readonly type: "
|
|
65
|
+
readonly name: "ERC20InsufficientBalance";
|
|
66
|
+
readonly type: "error";
|
|
67
|
+
}, {
|
|
68
|
+
readonly inputs: readonly [{
|
|
69
|
+
readonly internalType: "address";
|
|
70
|
+
readonly name: "approver";
|
|
71
|
+
readonly type: "address";
|
|
72
|
+
}];
|
|
73
|
+
readonly name: "ERC20InvalidApprover";
|
|
74
|
+
readonly type: "error";
|
|
75
|
+
}, {
|
|
76
|
+
readonly inputs: readonly [{
|
|
77
|
+
readonly internalType: "address";
|
|
78
|
+
readonly name: "receiver";
|
|
79
|
+
readonly type: "address";
|
|
80
|
+
}];
|
|
81
|
+
readonly name: "ERC20InvalidReceiver";
|
|
82
|
+
readonly type: "error";
|
|
83
|
+
}, {
|
|
84
|
+
readonly inputs: readonly [{
|
|
85
|
+
readonly internalType: "address";
|
|
86
|
+
readonly name: "sender";
|
|
87
|
+
readonly type: "address";
|
|
88
|
+
}];
|
|
89
|
+
readonly name: "ERC20InvalidSender";
|
|
90
|
+
readonly type: "error";
|
|
91
|
+
}, {
|
|
92
|
+
readonly inputs: readonly [{
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
readonly name: "spender";
|
|
95
|
+
readonly type: "address";
|
|
96
|
+
}];
|
|
97
|
+
readonly name: "ERC20InvalidSpender";
|
|
98
|
+
readonly type: "error";
|
|
55
99
|
}, {
|
|
56
100
|
readonly anonymous: false;
|
|
57
101
|
readonly inputs: readonly [{
|
|
58
102
|
readonly indexed: true;
|
|
59
103
|
readonly internalType: "address";
|
|
60
|
-
readonly name: "
|
|
104
|
+
readonly name: "owner";
|
|
61
105
|
readonly type: "address";
|
|
62
106
|
}, {
|
|
63
107
|
readonly indexed: true;
|
|
64
108
|
readonly internalType: "address";
|
|
65
|
-
readonly name: "
|
|
109
|
+
readonly name: "spender";
|
|
66
110
|
readonly type: "address";
|
|
111
|
+
}, {
|
|
112
|
+
readonly indexed: false;
|
|
113
|
+
readonly internalType: "uint256";
|
|
114
|
+
readonly name: "value";
|
|
115
|
+
readonly type: "uint256";
|
|
67
116
|
}];
|
|
68
|
-
readonly name: "
|
|
117
|
+
readonly name: "Approval";
|
|
69
118
|
readonly type: "event";
|
|
70
119
|
}, {
|
|
71
120
|
readonly anonymous: false;
|
|
@@ -87,26 +136,6 @@ export declare const TETHER_jsonAbi: readonly [{
|
|
|
87
136
|
}];
|
|
88
137
|
readonly name: "Transfer";
|
|
89
138
|
readonly type: "event";
|
|
90
|
-
}, {
|
|
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 [{
|
|
104
|
-
readonly internalType: "address";
|
|
105
|
-
readonly name: "";
|
|
106
|
-
readonly type: "address";
|
|
107
|
-
}];
|
|
108
|
-
readonly stateMutability: "view";
|
|
109
|
-
readonly type: "function";
|
|
110
139
|
}, {
|
|
111
140
|
readonly inputs: readonly [{
|
|
112
141
|
readonly internalType: "address";
|
|
@@ -132,7 +161,7 @@ export declare const TETHER_jsonAbi: readonly [{
|
|
|
132
161
|
readonly type: "address";
|
|
133
162
|
}, {
|
|
134
163
|
readonly internalType: "uint256";
|
|
135
|
-
readonly name: "
|
|
164
|
+
readonly name: "value";
|
|
136
165
|
readonly type: "uint256";
|
|
137
166
|
}];
|
|
138
167
|
readonly name: "approve";
|
|
@@ -161,48 +190,12 @@ export declare const TETHER_jsonAbi: readonly [{
|
|
|
161
190
|
readonly inputs: readonly [];
|
|
162
191
|
readonly name: "decimals";
|
|
163
192
|
readonly outputs: readonly [{
|
|
164
|
-
readonly internalType: "
|
|
193
|
+
readonly internalType: "uint8";
|
|
165
194
|
readonly name: "";
|
|
166
|
-
readonly type: "
|
|
195
|
+
readonly type: "uint8";
|
|
167
196
|
}];
|
|
168
197
|
readonly stateMutability: "view";
|
|
169
198
|
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
199
|
}, {
|
|
207
200
|
readonly inputs: readonly [];
|
|
208
201
|
readonly name: "name";
|
|
@@ -213,36 +206,6 @@ export declare const TETHER_jsonAbi: readonly [{
|
|
|
213
206
|
}];
|
|
214
207
|
readonly stateMutability: "view";
|
|
215
208
|
readonly type: "function";
|
|
216
|
-
}, {
|
|
217
|
-
readonly inputs: readonly [];
|
|
218
|
-
readonly name: "owner";
|
|
219
|
-
readonly outputs: readonly [{
|
|
220
|
-
readonly internalType: "address";
|
|
221
|
-
readonly name: "";
|
|
222
|
-
readonly type: "address";
|
|
223
|
-
}];
|
|
224
|
-
readonly stateMutability: "view";
|
|
225
|
-
readonly type: "function";
|
|
226
|
-
}, {
|
|
227
|
-
readonly inputs: readonly [{
|
|
228
|
-
readonly internalType: "address";
|
|
229
|
-
readonly name: "tokenAddress";
|
|
230
|
-
readonly type: "address";
|
|
231
|
-
}, {
|
|
232
|
-
readonly internalType: "uint256";
|
|
233
|
-
readonly name: "tokenAmount";
|
|
234
|
-
readonly type: "uint256";
|
|
235
|
-
}];
|
|
236
|
-
readonly name: "recoverERC20";
|
|
237
|
-
readonly outputs: readonly [];
|
|
238
|
-
readonly stateMutability: "nonpayable";
|
|
239
|
-
readonly type: "function";
|
|
240
|
-
}, {
|
|
241
|
-
readonly inputs: readonly [];
|
|
242
|
-
readonly name: "renounceOwnership";
|
|
243
|
-
readonly outputs: readonly [];
|
|
244
|
-
readonly stateMutability: "nonpayable";
|
|
245
|
-
readonly type: "function";
|
|
246
209
|
}, {
|
|
247
210
|
readonly inputs: readonly [];
|
|
248
211
|
readonly name: "symbol";
|
|
@@ -266,11 +229,11 @@ export declare const TETHER_jsonAbi: readonly [{
|
|
|
266
229
|
}, {
|
|
267
230
|
readonly inputs: readonly [{
|
|
268
231
|
readonly internalType: "address";
|
|
269
|
-
readonly name: "
|
|
232
|
+
readonly name: "to";
|
|
270
233
|
readonly type: "address";
|
|
271
234
|
}, {
|
|
272
235
|
readonly internalType: "uint256";
|
|
273
|
-
readonly name: "
|
|
236
|
+
readonly name: "value";
|
|
274
237
|
readonly type: "uint256";
|
|
275
238
|
}];
|
|
276
239
|
readonly name: "transfer";
|
|
@@ -284,15 +247,15 @@ export declare const TETHER_jsonAbi: readonly [{
|
|
|
284
247
|
}, {
|
|
285
248
|
readonly inputs: readonly [{
|
|
286
249
|
readonly internalType: "address";
|
|
287
|
-
readonly name: "
|
|
250
|
+
readonly name: "from";
|
|
288
251
|
readonly type: "address";
|
|
289
252
|
}, {
|
|
290
253
|
readonly internalType: "address";
|
|
291
|
-
readonly name: "
|
|
254
|
+
readonly name: "to";
|
|
292
255
|
readonly type: "address";
|
|
293
256
|
}, {
|
|
294
257
|
readonly internalType: "uint256";
|
|
295
|
-
readonly name: "
|
|
258
|
+
readonly name: "value";
|
|
296
259
|
readonly type: "uint256";
|
|
297
260
|
}];
|
|
298
261
|
readonly name: "transferFrom";
|
|
@@ -303,27 +266,17 @@ export declare const TETHER_jsonAbi: readonly [{
|
|
|
303
266
|
}];
|
|
304
267
|
readonly stateMutability: "nonpayable";
|
|
305
268
|
readonly type: "function";
|
|
306
|
-
}, {
|
|
307
|
-
readonly inputs: readonly [{
|
|
308
|
-
readonly internalType: "address";
|
|
309
|
-
readonly name: "newOwner";
|
|
310
|
-
readonly type: "address";
|
|
311
|
-
}];
|
|
312
|
-
readonly name: "transferOwnership";
|
|
313
|
-
readonly outputs: readonly [];
|
|
314
|
-
readonly stateMutability: "nonpayable";
|
|
315
|
-
readonly type: "function";
|
|
316
269
|
}];
|
|
317
270
|
/**
|
|
318
|
-
* Type-safe ABI for
|
|
271
|
+
* Type-safe ABI for StandardERC20_json
|
|
319
272
|
*/
|
|
320
|
-
export type
|
|
273
|
+
export type StandardERC20_jsonAbi = typeof StandardERC20_jsonAbi;
|
|
321
274
|
/**
|
|
322
|
-
* Contract instance type for
|
|
275
|
+
* Contract instance type for StandardERC20_json
|
|
323
276
|
*/
|
|
324
|
-
export type
|
|
277
|
+
export type StandardERC20_jsonContract = any;
|
|
325
278
|
/**
|
|
326
|
-
*
|
|
279
|
+
* StandardERC20_json Contract Class
|
|
327
280
|
*
|
|
328
281
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
329
282
|
*
|
|
@@ -331,12 +284,12 @@ export type TETHER_jsonContract = any;
|
|
|
331
284
|
* ```typescript
|
|
332
285
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
333
286
|
* import { mainnet } from 'viem/chains';
|
|
334
|
-
* import {
|
|
287
|
+
* import { StandardERC20_json } from 'StandardERC20_json';
|
|
335
288
|
*
|
|
336
289
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
337
290
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
338
291
|
*
|
|
339
|
-
* const contract = new
|
|
292
|
+
* const contract = new StandardERC20_json('0x...', { publicClient, walletClient });
|
|
340
293
|
*
|
|
341
294
|
* // Read functions
|
|
342
295
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -354,7 +307,7 @@ export type TETHER_jsonContract = any;
|
|
|
354
307
|
* });
|
|
355
308
|
* ```
|
|
356
309
|
*/
|
|
357
|
-
export declare class
|
|
310
|
+
export declare class StandardERC20_json {
|
|
358
311
|
private contract;
|
|
359
312
|
private contractAddress;
|
|
360
313
|
private publicClient;
|
|
@@ -369,17 +322,7 @@ export declare class TETHER_json {
|
|
|
369
322
|
/**
|
|
370
323
|
* Get the underlying viem contract instance
|
|
371
324
|
*/
|
|
372
|
-
getContract():
|
|
373
|
-
/**
|
|
374
|
-
* Optimization
|
|
375
|
-
* view
|
|
376
|
-
*/
|
|
377
|
-
Optimization(): Promise<bigint>;
|
|
378
|
-
/**
|
|
379
|
-
* _owner
|
|
380
|
-
* view
|
|
381
|
-
*/
|
|
382
|
-
_owner(): Promise<`0x${string}`>;
|
|
325
|
+
getContract(): StandardERC20_jsonContract;
|
|
383
326
|
/**
|
|
384
327
|
* allowance
|
|
385
328
|
* view
|
|
@@ -400,11 +343,6 @@ export declare class TETHER_json {
|
|
|
400
343
|
* view
|
|
401
344
|
*/
|
|
402
345
|
name(): Promise<string>;
|
|
403
|
-
/**
|
|
404
|
-
* owner
|
|
405
|
-
* view
|
|
406
|
-
*/
|
|
407
|
-
owner(): Promise<`0x${string}`>;
|
|
408
346
|
/**
|
|
409
347
|
* symbol
|
|
410
348
|
* view
|
|
@@ -420,75 +358,7 @@ export declare class TETHER_json {
|
|
|
420
358
|
* nonpayable
|
|
421
359
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
422
360
|
*/
|
|
423
|
-
approve(spender: `0x${string}`,
|
|
424
|
-
accessList?: import('viem').AccessList;
|
|
425
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
426
|
-
chain?: import('viem').Chain | null;
|
|
427
|
-
dataSuffix?: `0x${string}`;
|
|
428
|
-
gas?: bigint;
|
|
429
|
-
gasPrice?: bigint;
|
|
430
|
-
maxFeePerGas?: bigint;
|
|
431
|
-
maxPriorityFeePerGas?: bigint;
|
|
432
|
-
nonce?: number;
|
|
433
|
-
value?: bigint;
|
|
434
|
-
}): Promise<`0x${string}`>;
|
|
435
|
-
/**
|
|
436
|
-
* decreaseAllowance
|
|
437
|
-
* nonpayable
|
|
438
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
439
|
-
*/
|
|
440
|
-
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
441
|
-
accessList?: import('viem').AccessList;
|
|
442
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
443
|
-
chain?: import('viem').Chain | null;
|
|
444
|
-
dataSuffix?: `0x${string}`;
|
|
445
|
-
gas?: bigint;
|
|
446
|
-
gasPrice?: bigint;
|
|
447
|
-
maxFeePerGas?: bigint;
|
|
448
|
-
maxPriorityFeePerGas?: bigint;
|
|
449
|
-
nonce?: number;
|
|
450
|
-
value?: bigint;
|
|
451
|
-
}): Promise<`0x${string}`>;
|
|
452
|
-
/**
|
|
453
|
-
* increaseAllowance
|
|
454
|
-
* nonpayable
|
|
455
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
456
|
-
*/
|
|
457
|
-
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
458
|
-
accessList?: import('viem').AccessList;
|
|
459
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
460
|
-
chain?: import('viem').Chain | null;
|
|
461
|
-
dataSuffix?: `0x${string}`;
|
|
462
|
-
gas?: bigint;
|
|
463
|
-
gasPrice?: bigint;
|
|
464
|
-
maxFeePerGas?: bigint;
|
|
465
|
-
maxPriorityFeePerGas?: bigint;
|
|
466
|
-
nonce?: number;
|
|
467
|
-
value?: bigint;
|
|
468
|
-
}): Promise<`0x${string}`>;
|
|
469
|
-
/**
|
|
470
|
-
* recoverERC20
|
|
471
|
-
* nonpayable
|
|
472
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
473
|
-
*/
|
|
474
|
-
recoverERC20(tokenAddress: `0x${string}`, tokenAmount: bigint, options?: {
|
|
475
|
-
accessList?: import('viem').AccessList;
|
|
476
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
477
|
-
chain?: import('viem').Chain | null;
|
|
478
|
-
dataSuffix?: `0x${string}`;
|
|
479
|
-
gas?: bigint;
|
|
480
|
-
gasPrice?: bigint;
|
|
481
|
-
maxFeePerGas?: bigint;
|
|
482
|
-
maxPriorityFeePerGas?: bigint;
|
|
483
|
-
nonce?: number;
|
|
484
|
-
value?: bigint;
|
|
485
|
-
}): Promise<`0x${string}`>;
|
|
486
|
-
/**
|
|
487
|
-
* renounceOwnership
|
|
488
|
-
* nonpayable
|
|
489
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
490
|
-
*/
|
|
491
|
-
renounceOwnership(options?: {
|
|
361
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
492
362
|
accessList?: import('viem').AccessList;
|
|
493
363
|
authorizationList?: import('viem').AuthorizationList;
|
|
494
364
|
chain?: import('viem').Chain | null;
|
|
@@ -505,7 +375,7 @@ export declare class TETHER_json {
|
|
|
505
375
|
* nonpayable
|
|
506
376
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
507
377
|
*/
|
|
508
|
-
transfer(
|
|
378
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
509
379
|
accessList?: import('viem').AccessList;
|
|
510
380
|
authorizationList?: import('viem').AuthorizationList;
|
|
511
381
|
chain?: import('viem').Chain | null;
|
|
@@ -522,24 +392,7 @@ export declare class TETHER_json {
|
|
|
522
392
|
* nonpayable
|
|
523
393
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
524
394
|
*/
|
|
525
|
-
transferFrom(
|
|
526
|
-
accessList?: import('viem').AccessList;
|
|
527
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
528
|
-
chain?: import('viem').Chain | null;
|
|
529
|
-
dataSuffix?: `0x${string}`;
|
|
530
|
-
gas?: bigint;
|
|
531
|
-
gasPrice?: bigint;
|
|
532
|
-
maxFeePerGas?: bigint;
|
|
533
|
-
maxPriorityFeePerGas?: bigint;
|
|
534
|
-
nonce?: number;
|
|
535
|
-
value?: bigint;
|
|
536
|
-
}): Promise<`0x${string}`>;
|
|
537
|
-
/**
|
|
538
|
-
* transferOwnership
|
|
539
|
-
* nonpayable
|
|
540
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
541
|
-
*/
|
|
542
|
-
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
395
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
543
396
|
accessList?: import('viem').AccessList;
|
|
544
397
|
authorizationList?: import('viem').AuthorizationList;
|
|
545
398
|
chain?: import('viem').Chain | null;
|
|
@@ -565,24 +418,7 @@ export declare class TETHER_json {
|
|
|
565
418
|
* Returns gas estimate and result without sending transaction
|
|
566
419
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
567
420
|
*/
|
|
568
|
-
approve(spender: `0x${string}`,
|
|
569
|
-
accessList?: import("viem").AccessList;
|
|
570
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
571
|
-
chain?: import("viem").Chain | null;
|
|
572
|
-
dataSuffix?: `0x${string}`;
|
|
573
|
-
gas?: bigint;
|
|
574
|
-
gasPrice?: bigint;
|
|
575
|
-
maxFeePerGas?: bigint;
|
|
576
|
-
maxPriorityFeePerGas?: bigint;
|
|
577
|
-
nonce?: number;
|
|
578
|
-
value?: bigint;
|
|
579
|
-
}): Promise<boolean>;
|
|
580
|
-
/**
|
|
581
|
-
* Simulate decreaseAllowance
|
|
582
|
-
* Returns gas estimate and result without sending transaction
|
|
583
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
584
|
-
*/
|
|
585
|
-
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
421
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
586
422
|
accessList?: import("viem").AccessList;
|
|
587
423
|
authorizationList?: import("viem").AuthorizationList;
|
|
588
424
|
chain?: import("viem").Chain | null;
|
|
@@ -594,63 +430,12 @@ export declare class TETHER_json {
|
|
|
594
430
|
nonce?: number;
|
|
595
431
|
value?: bigint;
|
|
596
432
|
}): Promise<boolean>;
|
|
597
|
-
/**
|
|
598
|
-
* Simulate increaseAllowance
|
|
599
|
-
* Returns gas estimate and result without sending transaction
|
|
600
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
601
|
-
*/
|
|
602
|
-
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
603
|
-
accessList?: import("viem").AccessList;
|
|
604
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
605
|
-
chain?: import("viem").Chain | null;
|
|
606
|
-
dataSuffix?: `0x${string}`;
|
|
607
|
-
gas?: bigint;
|
|
608
|
-
gasPrice?: bigint;
|
|
609
|
-
maxFeePerGas?: bigint;
|
|
610
|
-
maxPriorityFeePerGas?: bigint;
|
|
611
|
-
nonce?: number;
|
|
612
|
-
value?: bigint;
|
|
613
|
-
}): Promise<boolean>;
|
|
614
|
-
/**
|
|
615
|
-
* Simulate recoverERC20
|
|
616
|
-
* Returns gas estimate and result without sending transaction
|
|
617
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
618
|
-
*/
|
|
619
|
-
recoverERC20(tokenAddress: `0x${string}`, tokenAmount: bigint, options?: {
|
|
620
|
-
accessList?: import("viem").AccessList;
|
|
621
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
622
|
-
chain?: import("viem").Chain | null;
|
|
623
|
-
dataSuffix?: `0x${string}`;
|
|
624
|
-
gas?: bigint;
|
|
625
|
-
gasPrice?: bigint;
|
|
626
|
-
maxFeePerGas?: bigint;
|
|
627
|
-
maxPriorityFeePerGas?: bigint;
|
|
628
|
-
nonce?: number;
|
|
629
|
-
value?: bigint;
|
|
630
|
-
}): Promise<void>;
|
|
631
|
-
/**
|
|
632
|
-
* Simulate renounceOwnership
|
|
633
|
-
* Returns gas estimate and result without sending transaction
|
|
634
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
635
|
-
*/
|
|
636
|
-
renounceOwnership(options?: {
|
|
637
|
-
accessList?: import("viem").AccessList;
|
|
638
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
639
|
-
chain?: import("viem").Chain | null;
|
|
640
|
-
dataSuffix?: `0x${string}`;
|
|
641
|
-
gas?: bigint;
|
|
642
|
-
gasPrice?: bigint;
|
|
643
|
-
maxFeePerGas?: bigint;
|
|
644
|
-
maxPriorityFeePerGas?: bigint;
|
|
645
|
-
nonce?: number;
|
|
646
|
-
value?: bigint;
|
|
647
|
-
}): Promise<void>;
|
|
648
433
|
/**
|
|
649
434
|
* Simulate transfer
|
|
650
435
|
* Returns gas estimate and result without sending transaction
|
|
651
436
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
652
437
|
*/
|
|
653
|
-
transfer(
|
|
438
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
654
439
|
accessList?: import("viem").AccessList;
|
|
655
440
|
authorizationList?: import("viem").AuthorizationList;
|
|
656
441
|
chain?: import("viem").Chain | null;
|
|
@@ -667,7 +452,7 @@ export declare class TETHER_json {
|
|
|
667
452
|
* Returns gas estimate and result without sending transaction
|
|
668
453
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
669
454
|
*/
|
|
670
|
-
transferFrom(
|
|
455
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
671
456
|
accessList?: import("viem").AccessList;
|
|
672
457
|
authorizationList?: import("viem").AuthorizationList;
|
|
673
458
|
chain?: import("viem").Chain | null;
|
|
@@ -679,23 +464,6 @@ export declare class TETHER_json {
|
|
|
679
464
|
nonce?: number;
|
|
680
465
|
value?: bigint;
|
|
681
466
|
}): Promise<boolean>;
|
|
682
|
-
/**
|
|
683
|
-
* Simulate transferOwnership
|
|
684
|
-
* Returns gas estimate and result without sending transaction
|
|
685
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
686
|
-
*/
|
|
687
|
-
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
688
|
-
accessList?: import("viem").AccessList;
|
|
689
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
690
|
-
chain?: import("viem").Chain | null;
|
|
691
|
-
dataSuffix?: `0x${string}`;
|
|
692
|
-
gas?: bigint;
|
|
693
|
-
gasPrice?: bigint;
|
|
694
|
-
maxFeePerGas?: bigint;
|
|
695
|
-
maxPriorityFeePerGas?: bigint;
|
|
696
|
-
nonce?: number;
|
|
697
|
-
value?: bigint;
|
|
698
|
-
}): Promise<void>;
|
|
699
467
|
};
|
|
700
468
|
/**
|
|
701
469
|
* Watch contract events
|
|
@@ -724,19 +492,6 @@ export declare class TETHER_json {
|
|
|
724
492
|
owner: `0x${string}`;
|
|
725
493
|
spender: `0x${string}`;
|
|
726
494
|
}) => () => void;
|
|
727
|
-
/**
|
|
728
|
-
* Watch OwnershipTransferred events
|
|
729
|
-
* @param callback Function to call when event is emitted
|
|
730
|
-
* @param filter Optional filter for indexed parameters
|
|
731
|
-
* @returns Unwatch function to stop listening
|
|
732
|
-
*/
|
|
733
|
-
OwnershipTransferred: (callback: (event: {
|
|
734
|
-
previousOwner: `0x${string}`;
|
|
735
|
-
newOwner: `0x${string}`;
|
|
736
|
-
}) => void, filter?: {
|
|
737
|
-
previousOwner: `0x${string}`;
|
|
738
|
-
newOwner: `0x${string}`;
|
|
739
|
-
}) => () => void;
|
|
740
495
|
/**
|
|
741
496
|
* Watch Transfer events
|
|
742
497
|
* @param callback Function to call when event is emitted
|