@gitmyabi/usdt 1.0.8 → 1.0.10
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 → TETHER_json.d.ts} +115 -225
- package/contracts/{Tether_json.js → TETHER_json.js} +138 -267
- package/contracts/{Tether_json.ts → TETHER_json.ts} +147 -299
- 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-22e23fc8-1785660798729`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `6af0536`
|
|
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.10
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -1,19 +1,43 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* TETHER_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 TETHER_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;
|
|
13
37
|
readonly inputs: readonly [{
|
|
14
38
|
readonly indexed: true;
|
|
15
39
|
readonly internalType: "address";
|
|
16
|
-
readonly name: "
|
|
40
|
+
readonly name: "owner";
|
|
17
41
|
readonly type: "address";
|
|
18
42
|
}, {
|
|
19
43
|
readonly indexed: true;
|
|
@@ -28,21 +52,6 @@ export declare const Tether_jsonAbi: readonly [{
|
|
|
28
52
|
}];
|
|
29
53
|
readonly name: "Approval";
|
|
30
54
|
readonly type: "event";
|
|
31
|
-
}, {
|
|
32
|
-
readonly anonymous: false;
|
|
33
|
-
readonly inputs: readonly [{
|
|
34
|
-
readonly indexed: true;
|
|
35
|
-
readonly internalType: "address";
|
|
36
|
-
readonly name: "account";
|
|
37
|
-
readonly type: "address";
|
|
38
|
-
}, {
|
|
39
|
-
readonly indexed: false;
|
|
40
|
-
readonly internalType: "uint256";
|
|
41
|
-
readonly name: "amount";
|
|
42
|
-
readonly type: "uint256";
|
|
43
|
-
}];
|
|
44
|
-
readonly name: "Freeze";
|
|
45
|
-
readonly type: "event";
|
|
46
55
|
}, {
|
|
47
56
|
readonly anonymous: false;
|
|
48
57
|
readonly inputs: readonly [{
|
|
@@ -79,24 +88,29 @@ export declare const Tether_jsonAbi: readonly [{
|
|
|
79
88
|
readonly name: "Transfer";
|
|
80
89
|
readonly type: "event";
|
|
81
90
|
}, {
|
|
82
|
-
readonly
|
|
83
|
-
readonly
|
|
84
|
-
|
|
85
|
-
readonly internalType: "address";
|
|
86
|
-
readonly name: "account";
|
|
87
|
-
readonly type: "address";
|
|
88
|
-
}, {
|
|
89
|
-
readonly indexed: false;
|
|
91
|
+
readonly inputs: readonly [];
|
|
92
|
+
readonly name: "Optimization";
|
|
93
|
+
readonly outputs: readonly [{
|
|
90
94
|
readonly internalType: "uint256";
|
|
91
|
-
readonly name: "
|
|
95
|
+
readonly name: "";
|
|
92
96
|
readonly type: "uint256";
|
|
93
97
|
}];
|
|
94
|
-
readonly
|
|
95
|
-
readonly type: "
|
|
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";
|
|
96
110
|
}, {
|
|
97
111
|
readonly inputs: readonly [{
|
|
98
112
|
readonly internalType: "address";
|
|
99
|
-
readonly name: "
|
|
113
|
+
readonly name: "owner";
|
|
100
114
|
readonly type: "address";
|
|
101
115
|
}, {
|
|
102
116
|
readonly internalType: "address";
|
|
@@ -129,20 +143,6 @@ export declare const Tether_jsonAbi: readonly [{
|
|
|
129
143
|
}];
|
|
130
144
|
readonly stateMutability: "nonpayable";
|
|
131
145
|
readonly type: "function";
|
|
132
|
-
}, {
|
|
133
|
-
readonly inputs: readonly [{
|
|
134
|
-
readonly internalType: "address";
|
|
135
|
-
readonly name: "account";
|
|
136
|
-
readonly type: "address";
|
|
137
|
-
}];
|
|
138
|
-
readonly name: "availableBalanceOf";
|
|
139
|
-
readonly outputs: readonly [{
|
|
140
|
-
readonly internalType: "uint256";
|
|
141
|
-
readonly name: "";
|
|
142
|
-
readonly type: "uint256";
|
|
143
|
-
}];
|
|
144
|
-
readonly stateMutability: "view";
|
|
145
|
-
readonly type: "function";
|
|
146
146
|
}, {
|
|
147
147
|
readonly inputs: readonly [{
|
|
148
148
|
readonly internalType: "address";
|
|
@@ -161,9 +161,9 @@ export declare const Tether_jsonAbi: readonly [{
|
|
|
161
161
|
readonly inputs: readonly [];
|
|
162
162
|
readonly name: "decimals";
|
|
163
163
|
readonly outputs: readonly [{
|
|
164
|
-
readonly internalType: "
|
|
164
|
+
readonly internalType: "uint256";
|
|
165
165
|
readonly name: "";
|
|
166
|
-
readonly type: "
|
|
166
|
+
readonly type: "uint256";
|
|
167
167
|
}];
|
|
168
168
|
readonly stateMutability: "view";
|
|
169
169
|
readonly type: "function";
|
|
@@ -185,38 +185,6 @@ export declare const Tether_jsonAbi: readonly [{
|
|
|
185
185
|
}];
|
|
186
186
|
readonly stateMutability: "nonpayable";
|
|
187
187
|
readonly type: "function";
|
|
188
|
-
}, {
|
|
189
|
-
readonly inputs: readonly [{
|
|
190
|
-
readonly internalType: "address";
|
|
191
|
-
readonly name: "account";
|
|
192
|
-
readonly type: "address";
|
|
193
|
-
}, {
|
|
194
|
-
readonly internalType: "uint256";
|
|
195
|
-
readonly name: "amount";
|
|
196
|
-
readonly type: "uint256";
|
|
197
|
-
}];
|
|
198
|
-
readonly name: "freezeBalance";
|
|
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 name: "frozenBalanceOf";
|
|
213
|
-
readonly outputs: readonly [{
|
|
214
|
-
readonly internalType: "uint256";
|
|
215
|
-
readonly name: "";
|
|
216
|
-
readonly type: "uint256";
|
|
217
|
-
}];
|
|
218
|
-
readonly stateMutability: "view";
|
|
219
|
-
readonly type: "function";
|
|
220
188
|
}, {
|
|
221
189
|
readonly inputs: readonly [{
|
|
222
190
|
readonly internalType: "address";
|
|
@@ -255,6 +223,26 @@ export declare const Tether_jsonAbi: readonly [{
|
|
|
255
223
|
}];
|
|
256
224
|
readonly stateMutability: "view";
|
|
257
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";
|
|
258
246
|
}, {
|
|
259
247
|
readonly inputs: readonly [];
|
|
260
248
|
readonly name: "symbol";
|
|
@@ -278,7 +266,7 @@ export declare const Tether_jsonAbi: readonly [{
|
|
|
278
266
|
}, {
|
|
279
267
|
readonly inputs: readonly [{
|
|
280
268
|
readonly internalType: "address";
|
|
281
|
-
readonly name: "
|
|
269
|
+
readonly name: "recipient";
|
|
282
270
|
readonly type: "address";
|
|
283
271
|
}, {
|
|
284
272
|
readonly internalType: "uint256";
|
|
@@ -296,11 +284,11 @@ export declare const Tether_jsonAbi: readonly [{
|
|
|
296
284
|
}, {
|
|
297
285
|
readonly inputs: readonly [{
|
|
298
286
|
readonly internalType: "address";
|
|
299
|
-
readonly name: "
|
|
287
|
+
readonly name: "sender";
|
|
300
288
|
readonly type: "address";
|
|
301
289
|
}, {
|
|
302
290
|
readonly internalType: "address";
|
|
303
|
-
readonly name: "
|
|
291
|
+
readonly name: "recipient";
|
|
304
292
|
readonly type: "address";
|
|
305
293
|
}, {
|
|
306
294
|
readonly internalType: "uint256";
|
|
@@ -322,60 +310,20 @@ export declare const Tether_jsonAbi: readonly [{
|
|
|
322
310
|
readonly type: "address";
|
|
323
311
|
}];
|
|
324
312
|
readonly name: "transferOwnership";
|
|
325
|
-
readonly outputs: readonly [
|
|
326
|
-
readonly internalType: "bool";
|
|
327
|
-
readonly name: "";
|
|
328
|
-
readonly type: "bool";
|
|
329
|
-
}];
|
|
330
|
-
readonly stateMutability: "nonpayable";
|
|
331
|
-
readonly type: "function";
|
|
332
|
-
}, {
|
|
333
|
-
readonly inputs: readonly [{
|
|
334
|
-
readonly internalType: "address";
|
|
335
|
-
readonly name: "to";
|
|
336
|
-
readonly type: "address";
|
|
337
|
-
}, {
|
|
338
|
-
readonly internalType: "uint256";
|
|
339
|
-
readonly name: "amount";
|
|
340
|
-
readonly type: "uint256";
|
|
341
|
-
}];
|
|
342
|
-
readonly name: "transferWithFreeze";
|
|
343
|
-
readonly outputs: readonly [{
|
|
344
|
-
readonly internalType: "bool";
|
|
345
|
-
readonly name: "";
|
|
346
|
-
readonly type: "bool";
|
|
347
|
-
}];
|
|
348
|
-
readonly stateMutability: "nonpayable";
|
|
349
|
-
readonly type: "function";
|
|
350
|
-
}, {
|
|
351
|
-
readonly inputs: readonly [{
|
|
352
|
-
readonly internalType: "address";
|
|
353
|
-
readonly name: "account";
|
|
354
|
-
readonly type: "address";
|
|
355
|
-
}, {
|
|
356
|
-
readonly internalType: "uint256";
|
|
357
|
-
readonly name: "amount";
|
|
358
|
-
readonly type: "uint256";
|
|
359
|
-
}];
|
|
360
|
-
readonly name: "unfreezeBalance";
|
|
361
|
-
readonly outputs: readonly [{
|
|
362
|
-
readonly internalType: "bool";
|
|
363
|
-
readonly name: "";
|
|
364
|
-
readonly type: "bool";
|
|
365
|
-
}];
|
|
313
|
+
readonly outputs: readonly [];
|
|
366
314
|
readonly stateMutability: "nonpayable";
|
|
367
315
|
readonly type: "function";
|
|
368
316
|
}];
|
|
369
317
|
/**
|
|
370
|
-
* Type-safe ABI for
|
|
318
|
+
* Type-safe ABI for TETHER_json
|
|
371
319
|
*/
|
|
372
|
-
export type
|
|
320
|
+
export type TETHER_jsonAbi = typeof TETHER_jsonAbi;
|
|
373
321
|
/**
|
|
374
|
-
* Contract instance type for
|
|
322
|
+
* Contract instance type for TETHER_json
|
|
375
323
|
*/
|
|
376
|
-
export type
|
|
324
|
+
export type TETHER_jsonContract = any;
|
|
377
325
|
/**
|
|
378
|
-
*
|
|
326
|
+
* TETHER_json Contract Class
|
|
379
327
|
*
|
|
380
328
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
381
329
|
*
|
|
@@ -383,12 +331,12 @@ export type Tether_jsonContract = any;
|
|
|
383
331
|
* ```typescript
|
|
384
332
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
385
333
|
* import { mainnet } from 'viem/chains';
|
|
386
|
-
* import {
|
|
334
|
+
* import { TETHER_json } from 'TETHER_json';
|
|
387
335
|
*
|
|
388
336
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
389
337
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
390
338
|
*
|
|
391
|
-
* const contract = new
|
|
339
|
+
* const contract = new TETHER_json('0x...', { publicClient, walletClient });
|
|
392
340
|
*
|
|
393
341
|
* // Read functions
|
|
394
342
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -406,7 +354,7 @@ export type Tether_jsonContract = any;
|
|
|
406
354
|
* });
|
|
407
355
|
* ```
|
|
408
356
|
*/
|
|
409
|
-
export declare class
|
|
357
|
+
export declare class TETHER_json {
|
|
410
358
|
private contract;
|
|
411
359
|
private contractAddress;
|
|
412
360
|
private publicClient;
|
|
@@ -421,17 +369,22 @@ export declare class Tether_json {
|
|
|
421
369
|
/**
|
|
422
370
|
* Get the underlying viem contract instance
|
|
423
371
|
*/
|
|
424
|
-
getContract():
|
|
372
|
+
getContract(): TETHER_jsonContract;
|
|
425
373
|
/**
|
|
426
|
-
*
|
|
374
|
+
* Optimization
|
|
427
375
|
* view
|
|
428
376
|
*/
|
|
429
|
-
|
|
377
|
+
Optimization(): Promise<bigint>;
|
|
430
378
|
/**
|
|
431
|
-
*
|
|
379
|
+
* _owner
|
|
432
380
|
* view
|
|
433
381
|
*/
|
|
434
|
-
|
|
382
|
+
_owner(): Promise<`0x${string}`>;
|
|
383
|
+
/**
|
|
384
|
+
* allowance
|
|
385
|
+
* view
|
|
386
|
+
*/
|
|
387
|
+
allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
435
388
|
/**
|
|
436
389
|
* balanceOf
|
|
437
390
|
* view
|
|
@@ -442,11 +395,6 @@ export declare class Tether_json {
|
|
|
442
395
|
* view
|
|
443
396
|
*/
|
|
444
397
|
decimals(): Promise<bigint>;
|
|
445
|
-
/**
|
|
446
|
-
* frozenBalanceOf
|
|
447
|
-
* view
|
|
448
|
-
*/
|
|
449
|
-
frozenBalanceOf(account: `0x${string}`): Promise<bigint>;
|
|
450
398
|
/**
|
|
451
399
|
* name
|
|
452
400
|
* view
|
|
@@ -501,23 +449,6 @@ export declare class Tether_json {
|
|
|
501
449
|
nonce?: number;
|
|
502
450
|
value?: bigint;
|
|
503
451
|
}): Promise<`0x${string}`>;
|
|
504
|
-
/**
|
|
505
|
-
* freezeBalance
|
|
506
|
-
* nonpayable
|
|
507
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
508
|
-
*/
|
|
509
|
-
freezeBalance(account: `0x${string}`, amount: bigint, options?: {
|
|
510
|
-
accessList?: import('viem').AccessList;
|
|
511
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
512
|
-
chain?: import('viem').Chain | null;
|
|
513
|
-
dataSuffix?: `0x${string}`;
|
|
514
|
-
gas?: bigint;
|
|
515
|
-
gasPrice?: bigint;
|
|
516
|
-
maxFeePerGas?: bigint;
|
|
517
|
-
maxPriorityFeePerGas?: bigint;
|
|
518
|
-
nonce?: number;
|
|
519
|
-
value?: bigint;
|
|
520
|
-
}): Promise<`0x${string}`>;
|
|
521
452
|
/**
|
|
522
453
|
* increaseAllowance
|
|
523
454
|
* nonpayable
|
|
@@ -536,11 +467,11 @@ export declare class Tether_json {
|
|
|
536
467
|
value?: bigint;
|
|
537
468
|
}): Promise<`0x${string}`>;
|
|
538
469
|
/**
|
|
539
|
-
*
|
|
470
|
+
* recoverERC20
|
|
540
471
|
* nonpayable
|
|
541
472
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
542
473
|
*/
|
|
543
|
-
|
|
474
|
+
recoverERC20(tokenAddress: `0x${string}`, tokenAmount: bigint, options?: {
|
|
544
475
|
accessList?: import('viem').AccessList;
|
|
545
476
|
authorizationList?: import('viem').AuthorizationList;
|
|
546
477
|
chain?: import('viem').Chain | null;
|
|
@@ -553,11 +484,11 @@ export declare class Tether_json {
|
|
|
553
484
|
value?: bigint;
|
|
554
485
|
}): Promise<`0x${string}`>;
|
|
555
486
|
/**
|
|
556
|
-
*
|
|
487
|
+
* renounceOwnership
|
|
557
488
|
* nonpayable
|
|
558
489
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
559
490
|
*/
|
|
560
|
-
|
|
491
|
+
renounceOwnership(options?: {
|
|
561
492
|
accessList?: import('viem').AccessList;
|
|
562
493
|
authorizationList?: import('viem').AuthorizationList;
|
|
563
494
|
chain?: import('viem').Chain | null;
|
|
@@ -570,11 +501,11 @@ export declare class Tether_json {
|
|
|
570
501
|
value?: bigint;
|
|
571
502
|
}): Promise<`0x${string}`>;
|
|
572
503
|
/**
|
|
573
|
-
*
|
|
504
|
+
* transfer
|
|
574
505
|
* nonpayable
|
|
575
506
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
576
507
|
*/
|
|
577
|
-
|
|
508
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
578
509
|
accessList?: import('viem').AccessList;
|
|
579
510
|
authorizationList?: import('viem').AuthorizationList;
|
|
580
511
|
chain?: import('viem').Chain | null;
|
|
@@ -587,11 +518,11 @@ export declare class Tether_json {
|
|
|
587
518
|
value?: bigint;
|
|
588
519
|
}): Promise<`0x${string}`>;
|
|
589
520
|
/**
|
|
590
|
-
*
|
|
521
|
+
* transferFrom
|
|
591
522
|
* nonpayable
|
|
592
523
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
593
524
|
*/
|
|
594
|
-
|
|
525
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
595
526
|
accessList?: import('viem').AccessList;
|
|
596
527
|
authorizationList?: import('viem').AuthorizationList;
|
|
597
528
|
chain?: import('viem').Chain | null;
|
|
@@ -604,11 +535,11 @@ export declare class Tether_json {
|
|
|
604
535
|
value?: bigint;
|
|
605
536
|
}): Promise<`0x${string}`>;
|
|
606
537
|
/**
|
|
607
|
-
*
|
|
538
|
+
* transferOwnership
|
|
608
539
|
* nonpayable
|
|
609
540
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
610
541
|
*/
|
|
611
|
-
|
|
542
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
612
543
|
accessList?: import('viem').AccessList;
|
|
613
544
|
authorizationList?: import('viem').AuthorizationList;
|
|
614
545
|
chain?: import('viem').Chain | null;
|
|
@@ -663,23 +594,6 @@ export declare class Tether_json {
|
|
|
663
594
|
nonce?: number;
|
|
664
595
|
value?: bigint;
|
|
665
596
|
}): Promise<boolean>;
|
|
666
|
-
/**
|
|
667
|
-
* Simulate freezeBalance
|
|
668
|
-
* Returns gas estimate and result without sending transaction
|
|
669
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
670
|
-
*/
|
|
671
|
-
freezeBalance(account: `0x${string}`, amount: bigint, options?: {
|
|
672
|
-
accessList?: import("viem").AccessList;
|
|
673
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
674
|
-
chain?: import("viem").Chain | null;
|
|
675
|
-
dataSuffix?: `0x${string}`;
|
|
676
|
-
gas?: bigint;
|
|
677
|
-
gasPrice?: bigint;
|
|
678
|
-
maxFeePerGas?: bigint;
|
|
679
|
-
maxPriorityFeePerGas?: bigint;
|
|
680
|
-
nonce?: number;
|
|
681
|
-
value?: bigint;
|
|
682
|
-
}): Promise<boolean>;
|
|
683
597
|
/**
|
|
684
598
|
* Simulate increaseAllowance
|
|
685
599
|
* Returns gas estimate and result without sending transaction
|
|
@@ -698,11 +612,11 @@ export declare class Tether_json {
|
|
|
698
612
|
value?: bigint;
|
|
699
613
|
}): Promise<boolean>;
|
|
700
614
|
/**
|
|
701
|
-
* Simulate
|
|
615
|
+
* Simulate recoverERC20
|
|
702
616
|
* Returns gas estimate and result without sending transaction
|
|
703
617
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
704
618
|
*/
|
|
705
|
-
|
|
619
|
+
recoverERC20(tokenAddress: `0x${string}`, tokenAmount: bigint, options?: {
|
|
706
620
|
accessList?: import("viem").AccessList;
|
|
707
621
|
authorizationList?: import("viem").AuthorizationList;
|
|
708
622
|
chain?: import("viem").Chain | null;
|
|
@@ -713,13 +627,13 @@ export declare class Tether_json {
|
|
|
713
627
|
maxPriorityFeePerGas?: bigint;
|
|
714
628
|
nonce?: number;
|
|
715
629
|
value?: bigint;
|
|
716
|
-
}): Promise<
|
|
630
|
+
}): Promise<void>;
|
|
717
631
|
/**
|
|
718
|
-
* Simulate
|
|
632
|
+
* Simulate renounceOwnership
|
|
719
633
|
* Returns gas estimate and result without sending transaction
|
|
720
634
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
721
635
|
*/
|
|
722
|
-
|
|
636
|
+
renounceOwnership(options?: {
|
|
723
637
|
accessList?: import("viem").AccessList;
|
|
724
638
|
authorizationList?: import("viem").AuthorizationList;
|
|
725
639
|
chain?: import("viem").Chain | null;
|
|
@@ -730,13 +644,13 @@ export declare class Tether_json {
|
|
|
730
644
|
maxPriorityFeePerGas?: bigint;
|
|
731
645
|
nonce?: number;
|
|
732
646
|
value?: bigint;
|
|
733
|
-
}): Promise<
|
|
647
|
+
}): Promise<void>;
|
|
734
648
|
/**
|
|
735
|
-
* Simulate
|
|
649
|
+
* Simulate transfer
|
|
736
650
|
* Returns gas estimate and result without sending transaction
|
|
737
651
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
738
652
|
*/
|
|
739
|
-
|
|
653
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
740
654
|
accessList?: import("viem").AccessList;
|
|
741
655
|
authorizationList?: import("viem").AuthorizationList;
|
|
742
656
|
chain?: import("viem").Chain | null;
|
|
@@ -749,11 +663,11 @@ export declare class Tether_json {
|
|
|
749
663
|
value?: bigint;
|
|
750
664
|
}): Promise<boolean>;
|
|
751
665
|
/**
|
|
752
|
-
* Simulate
|
|
666
|
+
* Simulate transferFrom
|
|
753
667
|
* Returns gas estimate and result without sending transaction
|
|
754
668
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
755
669
|
*/
|
|
756
|
-
|
|
670
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
757
671
|
accessList?: import("viem").AccessList;
|
|
758
672
|
authorizationList?: import("viem").AuthorizationList;
|
|
759
673
|
chain?: import("viem").Chain | null;
|
|
@@ -766,11 +680,11 @@ export declare class Tether_json {
|
|
|
766
680
|
value?: bigint;
|
|
767
681
|
}): Promise<boolean>;
|
|
768
682
|
/**
|
|
769
|
-
* Simulate
|
|
683
|
+
* Simulate transferOwnership
|
|
770
684
|
* Returns gas estimate and result without sending transaction
|
|
771
685
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
772
686
|
*/
|
|
773
|
-
|
|
687
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
774
688
|
accessList?: import("viem").AccessList;
|
|
775
689
|
authorizationList?: import("viem").AuthorizationList;
|
|
776
690
|
chain?: import("viem").Chain | null;
|
|
@@ -781,7 +695,7 @@ export declare class Tether_json {
|
|
|
781
695
|
maxPriorityFeePerGas?: bigint;
|
|
782
696
|
nonce?: number;
|
|
783
697
|
value?: bigint;
|
|
784
|
-
}): Promise<
|
|
698
|
+
}): Promise<void>;
|
|
785
699
|
};
|
|
786
700
|
/**
|
|
787
701
|
* Watch contract events
|
|
@@ -803,25 +717,13 @@ export declare class Tether_json {
|
|
|
803
717
|
* @returns Unwatch function to stop listening
|
|
804
718
|
*/
|
|
805
719
|
Approval: (callback: (event: {
|
|
806
|
-
|
|
720
|
+
owner: `0x${string}`;
|
|
807
721
|
spender: `0x${string}`;
|
|
808
722
|
value: bigint;
|
|
809
723
|
}) => void, filter?: {
|
|
810
|
-
|
|
724
|
+
owner: `0x${string}`;
|
|
811
725
|
spender: `0x${string}`;
|
|
812
726
|
}) => () => void;
|
|
813
|
-
/**
|
|
814
|
-
* Watch Freeze events
|
|
815
|
-
* @param callback Function to call when event is emitted
|
|
816
|
-
* @param filter Optional filter for indexed parameters
|
|
817
|
-
* @returns Unwatch function to stop listening
|
|
818
|
-
*/
|
|
819
|
-
Freeze: (callback: (event: {
|
|
820
|
-
account: `0x${string}`;
|
|
821
|
-
amount: bigint;
|
|
822
|
-
}) => void, filter?: {
|
|
823
|
-
account: `0x${string}`;
|
|
824
|
-
}) => () => void;
|
|
825
727
|
/**
|
|
826
728
|
* Watch OwnershipTransferred events
|
|
827
729
|
* @param callback Function to call when event is emitted
|
|
@@ -849,17 +751,5 @@ export declare class Tether_json {
|
|
|
849
751
|
from: `0x${string}`;
|
|
850
752
|
to: `0x${string}`;
|
|
851
753
|
}) => () => void;
|
|
852
|
-
/**
|
|
853
|
-
* Watch Unfreeze events
|
|
854
|
-
* @param callback Function to call when event is emitted
|
|
855
|
-
* @param filter Optional filter for indexed parameters
|
|
856
|
-
* @returns Unwatch function to stop listening
|
|
857
|
-
*/
|
|
858
|
-
Unfreeze: (callback: (event: {
|
|
859
|
-
account: `0x${string}`;
|
|
860
|
-
amount: bigint;
|
|
861
|
-
}) => void, filter?: {
|
|
862
|
-
account: `0x${string}`;
|
|
863
|
-
}) => () => void;
|
|
864
754
|
};
|
|
865
755
|
}
|