@gitmyabi/usdt 1.0.3 → 1.0.4
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/{TetherUSD_json.d.ts → USDToken_json.d.ts} +138 -168
- package/contracts/{TetherUSD_json.js → USDToken_json.js} +190 -187
- package/contracts/{TetherUSD_json.ts → USDToken_json.ts} +199 -216
- 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-abce0930-1785161377856`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `312f559`
|
|
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.4
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -1,36 +1,12 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* USDToken_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
|
-
|
|
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";
|
|
7
|
+
export declare const USDToken_jsonAbi: readonly [{
|
|
8
|
+
readonly inputs: readonly [];
|
|
9
|
+
readonly stateMutability: "nonpayable";
|
|
34
10
|
readonly type: "constructor";
|
|
35
11
|
}, {
|
|
36
12
|
readonly anonymous: false;
|
|
@@ -52,6 +28,16 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
52
28
|
}];
|
|
53
29
|
readonly name: "Approval";
|
|
54
30
|
readonly type: "event";
|
|
31
|
+
}, {
|
|
32
|
+
readonly anonymous: false;
|
|
33
|
+
readonly inputs: readonly [{
|
|
34
|
+
readonly indexed: false;
|
|
35
|
+
readonly internalType: "string";
|
|
36
|
+
readonly name: "newName";
|
|
37
|
+
readonly type: "string";
|
|
38
|
+
}];
|
|
39
|
+
readonly name: "NameChanged";
|
|
40
|
+
readonly type: "event";
|
|
55
41
|
}, {
|
|
56
42
|
readonly anonymous: false;
|
|
57
43
|
readonly inputs: readonly [{
|
|
@@ -59,13 +45,18 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
59
45
|
readonly internalType: "address";
|
|
60
46
|
readonly name: "previousOwner";
|
|
61
47
|
readonly type: "address";
|
|
62
|
-
}, {
|
|
63
|
-
readonly indexed: true;
|
|
64
|
-
readonly internalType: "address";
|
|
65
|
-
readonly name: "newOwner";
|
|
66
|
-
readonly type: "address";
|
|
67
48
|
}];
|
|
68
|
-
readonly name: "
|
|
49
|
+
readonly name: "OwnershipRenounced";
|
|
50
|
+
readonly type: "event";
|
|
51
|
+
}, {
|
|
52
|
+
readonly anonymous: false;
|
|
53
|
+
readonly inputs: readonly [{
|
|
54
|
+
readonly indexed: false;
|
|
55
|
+
readonly internalType: "string";
|
|
56
|
+
readonly name: "newSymbol";
|
|
57
|
+
readonly type: "string";
|
|
58
|
+
}];
|
|
59
|
+
readonly name: "SymbolChanged";
|
|
69
60
|
readonly type: "event";
|
|
70
61
|
}, {
|
|
71
62
|
readonly anonymous: false;
|
|
@@ -87,34 +78,14 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
87
78
|
}];
|
|
88
79
|
readonly name: "Transfer";
|
|
89
80
|
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
81
|
}, {
|
|
111
82
|
readonly inputs: readonly [{
|
|
112
83
|
readonly internalType: "address";
|
|
113
|
-
readonly name: "
|
|
84
|
+
readonly name: "";
|
|
114
85
|
readonly type: "address";
|
|
115
86
|
}, {
|
|
116
87
|
readonly internalType: "address";
|
|
117
|
-
readonly name: "
|
|
88
|
+
readonly name: "";
|
|
118
89
|
readonly type: "address";
|
|
119
90
|
}];
|
|
120
91
|
readonly name: "allowance";
|
|
@@ -146,7 +117,7 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
146
117
|
}, {
|
|
147
118
|
readonly inputs: readonly [{
|
|
148
119
|
readonly internalType: "address";
|
|
149
|
-
readonly name: "
|
|
120
|
+
readonly name: "";
|
|
150
121
|
readonly type: "address";
|
|
151
122
|
}];
|
|
152
123
|
readonly name: "balanceOf";
|
|
@@ -161,9 +132,9 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
161
132
|
readonly inputs: readonly [];
|
|
162
133
|
readonly name: "decimals";
|
|
163
134
|
readonly outputs: readonly [{
|
|
164
|
-
readonly internalType: "
|
|
135
|
+
readonly internalType: "uint8";
|
|
165
136
|
readonly name: "";
|
|
166
|
-
readonly type: "
|
|
137
|
+
readonly type: "uint8";
|
|
167
138
|
}];
|
|
168
139
|
readonly stateMutability: "view";
|
|
169
140
|
readonly type: "function";
|
|
@@ -204,18 +175,14 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
204
175
|
readonly stateMutability: "nonpayable";
|
|
205
176
|
readonly type: "function";
|
|
206
177
|
}, {
|
|
207
|
-
readonly inputs: readonly [
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
readonly
|
|
211
|
-
|
|
212
|
-
readonly
|
|
213
|
-
readonly name: "amount";
|
|
214
|
-
readonly type: "uint256";
|
|
178
|
+
readonly inputs: readonly [];
|
|
179
|
+
readonly name: "isRenounced";
|
|
180
|
+
readonly outputs: readonly [{
|
|
181
|
+
readonly internalType: "bool";
|
|
182
|
+
readonly name: "";
|
|
183
|
+
readonly type: "bool";
|
|
215
184
|
}];
|
|
216
|
-
readonly
|
|
217
|
-
readonly outputs: readonly [];
|
|
218
|
-
readonly stateMutability: "nonpayable";
|
|
185
|
+
readonly stateMutability: "view";
|
|
219
186
|
readonly type: "function";
|
|
220
187
|
}, {
|
|
221
188
|
readonly inputs: readonly [];
|
|
@@ -237,23 +204,39 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
237
204
|
}];
|
|
238
205
|
readonly stateMutability: "view";
|
|
239
206
|
readonly type: "function";
|
|
207
|
+
}, {
|
|
208
|
+
readonly inputs: readonly [];
|
|
209
|
+
readonly name: "renounceOwnership";
|
|
210
|
+
readonly outputs: readonly [];
|
|
211
|
+
readonly stateMutability: "nonpayable";
|
|
212
|
+
readonly type: "function";
|
|
213
|
+
}, {
|
|
214
|
+
readonly inputs: readonly [];
|
|
215
|
+
readonly name: "renounced";
|
|
216
|
+
readonly outputs: readonly [{
|
|
217
|
+
readonly internalType: "bool";
|
|
218
|
+
readonly name: "";
|
|
219
|
+
readonly type: "bool";
|
|
220
|
+
}];
|
|
221
|
+
readonly stateMutability: "view";
|
|
222
|
+
readonly type: "function";
|
|
240
223
|
}, {
|
|
241
224
|
readonly inputs: readonly [{
|
|
242
|
-
readonly internalType: "
|
|
243
|
-
readonly name: "
|
|
244
|
-
readonly type: "
|
|
245
|
-
}, {
|
|
246
|
-
readonly internalType: "uint256";
|
|
247
|
-
readonly name: "tokenAmount";
|
|
248
|
-
readonly type: "uint256";
|
|
225
|
+
readonly internalType: "string";
|
|
226
|
+
readonly name: "newName";
|
|
227
|
+
readonly type: "string";
|
|
249
228
|
}];
|
|
250
|
-
readonly name: "
|
|
229
|
+
readonly name: "setName";
|
|
251
230
|
readonly outputs: readonly [];
|
|
252
231
|
readonly stateMutability: "nonpayable";
|
|
253
232
|
readonly type: "function";
|
|
254
233
|
}, {
|
|
255
|
-
readonly inputs: readonly [
|
|
256
|
-
|
|
234
|
+
readonly inputs: readonly [{
|
|
235
|
+
readonly internalType: "string";
|
|
236
|
+
readonly name: "newSymbol";
|
|
237
|
+
readonly type: "string";
|
|
238
|
+
}];
|
|
239
|
+
readonly name: "setSymbol";
|
|
257
240
|
readonly outputs: readonly [];
|
|
258
241
|
readonly stateMutability: "nonpayable";
|
|
259
242
|
readonly type: "function";
|
|
@@ -267,6 +250,16 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
267
250
|
}];
|
|
268
251
|
readonly stateMutability: "view";
|
|
269
252
|
readonly type: "function";
|
|
253
|
+
}, {
|
|
254
|
+
readonly inputs: readonly [];
|
|
255
|
+
readonly name: "tokenImage";
|
|
256
|
+
readonly outputs: readonly [{
|
|
257
|
+
readonly internalType: "string";
|
|
258
|
+
readonly name: "";
|
|
259
|
+
readonly type: "string";
|
|
260
|
+
}];
|
|
261
|
+
readonly stateMutability: "pure";
|
|
262
|
+
readonly type: "function";
|
|
270
263
|
}, {
|
|
271
264
|
readonly inputs: readonly [];
|
|
272
265
|
readonly name: "totalSupply";
|
|
@@ -280,7 +273,7 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
280
273
|
}, {
|
|
281
274
|
readonly inputs: readonly [{
|
|
282
275
|
readonly internalType: "address";
|
|
283
|
-
readonly name: "
|
|
276
|
+
readonly name: "to";
|
|
284
277
|
readonly type: "address";
|
|
285
278
|
}, {
|
|
286
279
|
readonly internalType: "uint256";
|
|
@@ -298,11 +291,11 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
298
291
|
}, {
|
|
299
292
|
readonly inputs: readonly [{
|
|
300
293
|
readonly internalType: "address";
|
|
301
|
-
readonly name: "
|
|
294
|
+
readonly name: "from";
|
|
302
295
|
readonly type: "address";
|
|
303
296
|
}, {
|
|
304
297
|
readonly internalType: "address";
|
|
305
|
-
readonly name: "
|
|
298
|
+
readonly name: "to";
|
|
306
299
|
readonly type: "address";
|
|
307
300
|
}, {
|
|
308
301
|
readonly internalType: "uint256";
|
|
@@ -317,27 +310,17 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
317
310
|
}];
|
|
318
311
|
readonly stateMutability: "nonpayable";
|
|
319
312
|
readonly type: "function";
|
|
320
|
-
}, {
|
|
321
|
-
readonly inputs: readonly [{
|
|
322
|
-
readonly internalType: "address";
|
|
323
|
-
readonly name: "newOwner";
|
|
324
|
-
readonly type: "address";
|
|
325
|
-
}];
|
|
326
|
-
readonly name: "transferOwnership";
|
|
327
|
-
readonly outputs: readonly [];
|
|
328
|
-
readonly stateMutability: "nonpayable";
|
|
329
|
-
readonly type: "function";
|
|
330
313
|
}];
|
|
331
314
|
/**
|
|
332
|
-
* Type-safe ABI for
|
|
315
|
+
* Type-safe ABI for USDToken_json
|
|
333
316
|
*/
|
|
334
|
-
export type
|
|
317
|
+
export type USDToken_jsonAbi = typeof USDToken_jsonAbi;
|
|
335
318
|
/**
|
|
336
|
-
* Contract instance type for
|
|
319
|
+
* Contract instance type for USDToken_json
|
|
337
320
|
*/
|
|
338
|
-
export type
|
|
321
|
+
export type USDToken_jsonContract = any;
|
|
339
322
|
/**
|
|
340
|
-
*
|
|
323
|
+
* USDToken_json Contract Class
|
|
341
324
|
*
|
|
342
325
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
343
326
|
*
|
|
@@ -345,12 +328,12 @@ export type TetherUSD_jsonContract = any;
|
|
|
345
328
|
* ```typescript
|
|
346
329
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
347
330
|
* import { mainnet } from 'viem/chains';
|
|
348
|
-
* import {
|
|
331
|
+
* import { USDToken_json } from 'USDToken_json';
|
|
349
332
|
*
|
|
350
333
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
351
334
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
352
335
|
*
|
|
353
|
-
* const contract = new
|
|
336
|
+
* const contract = new USDToken_json('0x...', { publicClient, walletClient });
|
|
354
337
|
*
|
|
355
338
|
* // Read functions
|
|
356
339
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -368,7 +351,7 @@ export type TetherUSD_jsonContract = any;
|
|
|
368
351
|
* });
|
|
369
352
|
* ```
|
|
370
353
|
*/
|
|
371
|
-
export declare class
|
|
354
|
+
export declare class USDToken_json {
|
|
372
355
|
private contract;
|
|
373
356
|
private contractAddress;
|
|
374
357
|
private publicClient;
|
|
@@ -383,32 +366,27 @@ export declare class TetherUSD_json {
|
|
|
383
366
|
/**
|
|
384
367
|
* Get the underlying viem contract instance
|
|
385
368
|
*/
|
|
386
|
-
getContract():
|
|
387
|
-
/**
|
|
388
|
-
* Optimization
|
|
389
|
-
* view
|
|
390
|
-
*/
|
|
391
|
-
Optimization(): Promise<bigint>;
|
|
392
|
-
/**
|
|
393
|
-
* _owner
|
|
394
|
-
* view
|
|
395
|
-
*/
|
|
396
|
-
_owner(): Promise<`0x${string}`>;
|
|
369
|
+
getContract(): USDToken_jsonContract;
|
|
397
370
|
/**
|
|
398
371
|
* allowance
|
|
399
372
|
* view
|
|
400
373
|
*/
|
|
401
|
-
allowance(
|
|
374
|
+
allowance(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
|
|
402
375
|
/**
|
|
403
376
|
* balanceOf
|
|
404
377
|
* view
|
|
405
378
|
*/
|
|
406
|
-
balanceOf(
|
|
379
|
+
balanceOf(arg0: `0x${string}`): Promise<bigint>;
|
|
407
380
|
/**
|
|
408
381
|
* decimals
|
|
409
382
|
* view
|
|
410
383
|
*/
|
|
411
384
|
decimals(): Promise<bigint>;
|
|
385
|
+
/**
|
|
386
|
+
* isRenounced
|
|
387
|
+
* view
|
|
388
|
+
*/
|
|
389
|
+
isRenounced(): Promise<boolean>;
|
|
412
390
|
/**
|
|
413
391
|
* name
|
|
414
392
|
* view
|
|
@@ -419,11 +397,21 @@ export declare class TetherUSD_json {
|
|
|
419
397
|
* view
|
|
420
398
|
*/
|
|
421
399
|
owner(): Promise<`0x${string}`>;
|
|
400
|
+
/**
|
|
401
|
+
* renounced
|
|
402
|
+
* view
|
|
403
|
+
*/
|
|
404
|
+
renounced(): Promise<boolean>;
|
|
422
405
|
/**
|
|
423
406
|
* symbol
|
|
424
407
|
* view
|
|
425
408
|
*/
|
|
426
409
|
symbol(): Promise<string>;
|
|
410
|
+
/**
|
|
411
|
+
* tokenImage
|
|
412
|
+
* pure
|
|
413
|
+
*/
|
|
414
|
+
tokenImage(): Promise<string>;
|
|
427
415
|
/**
|
|
428
416
|
* totalSupply
|
|
429
417
|
* view
|
|
@@ -481,11 +469,11 @@ export declare class TetherUSD_json {
|
|
|
481
469
|
value?: bigint;
|
|
482
470
|
}): Promise<`0x${string}`>;
|
|
483
471
|
/**
|
|
484
|
-
*
|
|
472
|
+
* renounceOwnership
|
|
485
473
|
* nonpayable
|
|
486
474
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
487
475
|
*/
|
|
488
|
-
|
|
476
|
+
renounceOwnership(options?: {
|
|
489
477
|
accessList?: import('viem').AccessList;
|
|
490
478
|
authorizationList?: import('viem').AuthorizationList;
|
|
491
479
|
chain?: import('viem').Chain | null;
|
|
@@ -498,11 +486,11 @@ export declare class TetherUSD_json {
|
|
|
498
486
|
value?: bigint;
|
|
499
487
|
}): Promise<`0x${string}`>;
|
|
500
488
|
/**
|
|
501
|
-
*
|
|
489
|
+
* setName
|
|
502
490
|
* nonpayable
|
|
503
491
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
504
492
|
*/
|
|
505
|
-
|
|
493
|
+
setName(newName: string, options?: {
|
|
506
494
|
accessList?: import('viem').AccessList;
|
|
507
495
|
authorizationList?: import('viem').AuthorizationList;
|
|
508
496
|
chain?: import('viem').Chain | null;
|
|
@@ -515,11 +503,11 @@ export declare class TetherUSD_json {
|
|
|
515
503
|
value?: bigint;
|
|
516
504
|
}): Promise<`0x${string}`>;
|
|
517
505
|
/**
|
|
518
|
-
*
|
|
506
|
+
* setSymbol
|
|
519
507
|
* nonpayable
|
|
520
508
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
521
509
|
*/
|
|
522
|
-
|
|
510
|
+
setSymbol(newSymbol: string, options?: {
|
|
523
511
|
accessList?: import('viem').AccessList;
|
|
524
512
|
authorizationList?: import('viem').AuthorizationList;
|
|
525
513
|
chain?: import('viem').Chain | null;
|
|
@@ -536,7 +524,7 @@ export declare class TetherUSD_json {
|
|
|
536
524
|
* nonpayable
|
|
537
525
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
538
526
|
*/
|
|
539
|
-
transfer(
|
|
527
|
+
transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
540
528
|
accessList?: import('viem').AccessList;
|
|
541
529
|
authorizationList?: import('viem').AuthorizationList;
|
|
542
530
|
chain?: import('viem').Chain | null;
|
|
@@ -553,24 +541,7 @@ export declare class TetherUSD_json {
|
|
|
553
541
|
* nonpayable
|
|
554
542
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
555
543
|
*/
|
|
556
|
-
transferFrom(
|
|
557
|
-
accessList?: import('viem').AccessList;
|
|
558
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
559
|
-
chain?: import('viem').Chain | null;
|
|
560
|
-
dataSuffix?: `0x${string}`;
|
|
561
|
-
gas?: bigint;
|
|
562
|
-
gasPrice?: bigint;
|
|
563
|
-
maxFeePerGas?: bigint;
|
|
564
|
-
maxPriorityFeePerGas?: bigint;
|
|
565
|
-
nonce?: number;
|
|
566
|
-
value?: bigint;
|
|
567
|
-
}): Promise<`0x${string}`>;
|
|
568
|
-
/**
|
|
569
|
-
* transferOwnership
|
|
570
|
-
* nonpayable
|
|
571
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
572
|
-
*/
|
|
573
|
-
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
544
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
574
545
|
accessList?: import('viem').AccessList;
|
|
575
546
|
authorizationList?: import('viem').AuthorizationList;
|
|
576
547
|
chain?: import('viem').Chain | null;
|
|
@@ -643,11 +614,11 @@ export declare class TetherUSD_json {
|
|
|
643
614
|
value?: bigint;
|
|
644
615
|
}): Promise<boolean>;
|
|
645
616
|
/**
|
|
646
|
-
* Simulate
|
|
617
|
+
* Simulate renounceOwnership
|
|
647
618
|
* Returns gas estimate and result without sending transaction
|
|
648
619
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
649
620
|
*/
|
|
650
|
-
|
|
621
|
+
renounceOwnership(options?: {
|
|
651
622
|
accessList?: import("viem").AccessList;
|
|
652
623
|
authorizationList?: import("viem").AuthorizationList;
|
|
653
624
|
chain?: import("viem").Chain | null;
|
|
@@ -660,11 +631,11 @@ export declare class TetherUSD_json {
|
|
|
660
631
|
value?: bigint;
|
|
661
632
|
}): Promise<void>;
|
|
662
633
|
/**
|
|
663
|
-
* Simulate
|
|
634
|
+
* Simulate setName
|
|
664
635
|
* Returns gas estimate and result without sending transaction
|
|
665
636
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
666
637
|
*/
|
|
667
|
-
|
|
638
|
+
setName(newName: string, options?: {
|
|
668
639
|
accessList?: import("viem").AccessList;
|
|
669
640
|
authorizationList?: import("viem").AuthorizationList;
|
|
670
641
|
chain?: import("viem").Chain | null;
|
|
@@ -677,11 +648,11 @@ export declare class TetherUSD_json {
|
|
|
677
648
|
value?: bigint;
|
|
678
649
|
}): Promise<void>;
|
|
679
650
|
/**
|
|
680
|
-
* Simulate
|
|
651
|
+
* Simulate setSymbol
|
|
681
652
|
* Returns gas estimate and result without sending transaction
|
|
682
653
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
683
654
|
*/
|
|
684
|
-
|
|
655
|
+
setSymbol(newSymbol: string, options?: {
|
|
685
656
|
accessList?: import("viem").AccessList;
|
|
686
657
|
authorizationList?: import("viem").AuthorizationList;
|
|
687
658
|
chain?: import("viem").Chain | null;
|
|
@@ -698,7 +669,7 @@ export declare class TetherUSD_json {
|
|
|
698
669
|
* Returns gas estimate and result without sending transaction
|
|
699
670
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
700
671
|
*/
|
|
701
|
-
transfer(
|
|
672
|
+
transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
702
673
|
accessList?: import("viem").AccessList;
|
|
703
674
|
authorizationList?: import("viem").AuthorizationList;
|
|
704
675
|
chain?: import("viem").Chain | null;
|
|
@@ -715,7 +686,7 @@ export declare class TetherUSD_json {
|
|
|
715
686
|
* Returns gas estimate and result without sending transaction
|
|
716
687
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
717
688
|
*/
|
|
718
|
-
transferFrom(
|
|
689
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
719
690
|
accessList?: import("viem").AccessList;
|
|
720
691
|
authorizationList?: import("viem").AuthorizationList;
|
|
721
692
|
chain?: import("viem").Chain | null;
|
|
@@ -727,23 +698,6 @@ export declare class TetherUSD_json {
|
|
|
727
698
|
nonce?: number;
|
|
728
699
|
value?: bigint;
|
|
729
700
|
}): Promise<boolean>;
|
|
730
|
-
/**
|
|
731
|
-
* Simulate transferOwnership
|
|
732
|
-
* Returns gas estimate and result without sending transaction
|
|
733
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
734
|
-
*/
|
|
735
|
-
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
736
|
-
accessList?: import("viem").AccessList;
|
|
737
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
738
|
-
chain?: import("viem").Chain | null;
|
|
739
|
-
dataSuffix?: `0x${string}`;
|
|
740
|
-
gas?: bigint;
|
|
741
|
-
gasPrice?: bigint;
|
|
742
|
-
maxFeePerGas?: bigint;
|
|
743
|
-
maxPriorityFeePerGas?: bigint;
|
|
744
|
-
nonce?: number;
|
|
745
|
-
value?: bigint;
|
|
746
|
-
}): Promise<void>;
|
|
747
701
|
};
|
|
748
702
|
/**
|
|
749
703
|
* Watch contract events
|
|
@@ -773,18 +727,34 @@ export declare class TetherUSD_json {
|
|
|
773
727
|
spender: `0x${string}`;
|
|
774
728
|
}) => () => void;
|
|
775
729
|
/**
|
|
776
|
-
* Watch
|
|
730
|
+
* Watch NameChanged events
|
|
731
|
+
* @param callback Function to call when event is emitted
|
|
732
|
+
* @param filter Optional filter for indexed parameters
|
|
733
|
+
* @returns Unwatch function to stop listening
|
|
734
|
+
*/
|
|
735
|
+
NameChanged: (callback: (event: {
|
|
736
|
+
newName: string;
|
|
737
|
+
}) => void) => () => void;
|
|
738
|
+
/**
|
|
739
|
+
* Watch OwnershipRenounced events
|
|
777
740
|
* @param callback Function to call when event is emitted
|
|
778
741
|
* @param filter Optional filter for indexed parameters
|
|
779
742
|
* @returns Unwatch function to stop listening
|
|
780
743
|
*/
|
|
781
|
-
|
|
744
|
+
OwnershipRenounced: (callback: (event: {
|
|
782
745
|
previousOwner: `0x${string}`;
|
|
783
|
-
newOwner: `0x${string}`;
|
|
784
746
|
}) => void, filter?: {
|
|
785
747
|
previousOwner: `0x${string}`;
|
|
786
|
-
newOwner: `0x${string}`;
|
|
787
748
|
}) => () => void;
|
|
749
|
+
/**
|
|
750
|
+
* Watch SymbolChanged events
|
|
751
|
+
* @param callback Function to call when event is emitted
|
|
752
|
+
* @param filter Optional filter for indexed parameters
|
|
753
|
+
* @returns Unwatch function to stop listening
|
|
754
|
+
*/
|
|
755
|
+
SymbolChanged: (callback: (event: {
|
|
756
|
+
newSymbol: string;
|
|
757
|
+
}) => void) => () => void;
|
|
788
758
|
/**
|
|
789
759
|
* Watch Transfer events
|
|
790
760
|
* @param callback Function to call when event is emitted
|