@gitmyabi/usdt 1.0.6 → 1.0.7
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/{TetherUSDT_json.d.ts → MyToken_json.d.ts} +278 -73
- package/contracts/{TetherUSDT_json.js → MyToken_json.js} +253 -88
- package/contracts/{TetherUSDT_json.ts → MyToken_json.ts} +352 -92
- 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-6c3e6234-1785416087055`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `38b8a46`
|
|
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.7
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -1,77 +1,33 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* MyToken_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
|
-
readonly stateMutability: "nonpayable";
|
|
10
|
-
readonly type: "constructor";
|
|
11
|
-
}, {
|
|
7
|
+
export declare const MyToken_jsonAbi: readonly [{
|
|
12
8
|
readonly inputs: readonly [{
|
|
13
|
-
readonly internalType: "
|
|
14
|
-
readonly name: "
|
|
15
|
-
readonly type: "
|
|
9
|
+
readonly internalType: "string";
|
|
10
|
+
readonly name: "_name";
|
|
11
|
+
readonly type: "string";
|
|
16
12
|
}, {
|
|
17
|
-
readonly internalType: "
|
|
18
|
-
readonly name: "
|
|
19
|
-
readonly type: "
|
|
13
|
+
readonly internalType: "string";
|
|
14
|
+
readonly name: "_symbol";
|
|
15
|
+
readonly type: "string";
|
|
20
16
|
}, {
|
|
21
17
|
readonly internalType: "uint256";
|
|
22
|
-
readonly name: "
|
|
18
|
+
readonly name: "_cap";
|
|
23
19
|
readonly type: "uint256";
|
|
24
|
-
}];
|
|
25
|
-
readonly name: "ERC20InsufficientAllowance";
|
|
26
|
-
readonly type: "error";
|
|
27
|
-
}, {
|
|
28
|
-
readonly inputs: readonly [{
|
|
29
|
-
readonly internalType: "address";
|
|
30
|
-
readonly name: "sender";
|
|
31
|
-
readonly type: "address";
|
|
32
20
|
}, {
|
|
33
21
|
readonly internalType: "uint256";
|
|
34
|
-
readonly name: "
|
|
22
|
+
readonly name: "_initialSupply";
|
|
35
23
|
readonly type: "uint256";
|
|
36
24
|
}, {
|
|
37
|
-
readonly internalType: "
|
|
38
|
-
readonly name: "
|
|
39
|
-
readonly type: "
|
|
40
|
-
}];
|
|
41
|
-
readonly name: "ERC20InsufficientBalance";
|
|
42
|
-
readonly type: "error";
|
|
43
|
-
}, {
|
|
44
|
-
readonly inputs: readonly [{
|
|
45
|
-
readonly internalType: "address";
|
|
46
|
-
readonly name: "approver";
|
|
47
|
-
readonly type: "address";
|
|
48
|
-
}];
|
|
49
|
-
readonly name: "ERC20InvalidApprover";
|
|
50
|
-
readonly type: "error";
|
|
51
|
-
}, {
|
|
52
|
-
readonly inputs: readonly [{
|
|
53
|
-
readonly internalType: "address";
|
|
54
|
-
readonly name: "receiver";
|
|
55
|
-
readonly type: "address";
|
|
56
|
-
}];
|
|
57
|
-
readonly name: "ERC20InvalidReceiver";
|
|
58
|
-
readonly type: "error";
|
|
59
|
-
}, {
|
|
60
|
-
readonly inputs: readonly [{
|
|
61
|
-
readonly internalType: "address";
|
|
62
|
-
readonly name: "sender";
|
|
63
|
-
readonly type: "address";
|
|
64
|
-
}];
|
|
65
|
-
readonly name: "ERC20InvalidSender";
|
|
66
|
-
readonly type: "error";
|
|
67
|
-
}, {
|
|
68
|
-
readonly inputs: readonly [{
|
|
69
|
-
readonly internalType: "address";
|
|
70
|
-
readonly name: "spender";
|
|
71
|
-
readonly type: "address";
|
|
25
|
+
readonly internalType: "string";
|
|
26
|
+
readonly name: "_logoURI";
|
|
27
|
+
readonly type: "string";
|
|
72
28
|
}];
|
|
73
|
-
readonly
|
|
74
|
-
readonly type: "
|
|
29
|
+
readonly stateMutability: "nonpayable";
|
|
30
|
+
readonly type: "constructor";
|
|
75
31
|
}, {
|
|
76
32
|
readonly anonymous: false;
|
|
77
33
|
readonly inputs: readonly [{
|
|
@@ -92,6 +48,21 @@ export declare const TetherUSDT_jsonAbi: readonly [{
|
|
|
92
48
|
}];
|
|
93
49
|
readonly name: "Approval";
|
|
94
50
|
readonly type: "event";
|
|
51
|
+
}, {
|
|
52
|
+
readonly anonymous: false;
|
|
53
|
+
readonly inputs: readonly [{
|
|
54
|
+
readonly indexed: true;
|
|
55
|
+
readonly internalType: "address";
|
|
56
|
+
readonly name: "previousOwner";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
}, {
|
|
59
|
+
readonly indexed: true;
|
|
60
|
+
readonly internalType: "address";
|
|
61
|
+
readonly name: "newOwner";
|
|
62
|
+
readonly type: "address";
|
|
63
|
+
}];
|
|
64
|
+
readonly name: "OwnershipTransferred";
|
|
65
|
+
readonly type: "event";
|
|
95
66
|
}, {
|
|
96
67
|
readonly anonymous: false;
|
|
97
68
|
readonly inputs: readonly [{
|
|
@@ -115,11 +86,11 @@ export declare const TetherUSDT_jsonAbi: readonly [{
|
|
|
115
86
|
}, {
|
|
116
87
|
readonly inputs: readonly [{
|
|
117
88
|
readonly internalType: "address";
|
|
118
|
-
readonly name: "
|
|
89
|
+
readonly name: "";
|
|
119
90
|
readonly type: "address";
|
|
120
91
|
}, {
|
|
121
92
|
readonly internalType: "address";
|
|
122
|
-
readonly name: "
|
|
93
|
+
readonly name: "";
|
|
123
94
|
readonly type: "address";
|
|
124
95
|
}];
|
|
125
96
|
readonly name: "allowance";
|
|
@@ -151,7 +122,7 @@ export declare const TetherUSDT_jsonAbi: readonly [{
|
|
|
151
122
|
}, {
|
|
152
123
|
readonly inputs: readonly [{
|
|
153
124
|
readonly internalType: "address";
|
|
154
|
-
readonly name: "
|
|
125
|
+
readonly name: "";
|
|
155
126
|
readonly type: "address";
|
|
156
127
|
}];
|
|
157
128
|
readonly name: "balanceOf";
|
|
@@ -162,6 +133,16 @@ export declare const TetherUSDT_jsonAbi: readonly [{
|
|
|
162
133
|
}];
|
|
163
134
|
readonly stateMutability: "view";
|
|
164
135
|
readonly type: "function";
|
|
136
|
+
}, {
|
|
137
|
+
readonly inputs: readonly [];
|
|
138
|
+
readonly name: "cap";
|
|
139
|
+
readonly outputs: readonly [{
|
|
140
|
+
readonly internalType: "uint256";
|
|
141
|
+
readonly name: "";
|
|
142
|
+
readonly type: "uint256";
|
|
143
|
+
}];
|
|
144
|
+
readonly stateMutability: "view";
|
|
145
|
+
readonly type: "function";
|
|
165
146
|
}, {
|
|
166
147
|
readonly inputs: readonly [];
|
|
167
148
|
readonly name: "decimals";
|
|
@@ -172,6 +153,30 @@ export declare const TetherUSDT_jsonAbi: readonly [{
|
|
|
172
153
|
}];
|
|
173
154
|
readonly stateMutability: "view";
|
|
174
155
|
readonly type: "function";
|
|
156
|
+
}, {
|
|
157
|
+
readonly inputs: readonly [];
|
|
158
|
+
readonly name: "logoURI";
|
|
159
|
+
readonly outputs: readonly [{
|
|
160
|
+
readonly internalType: "string";
|
|
161
|
+
readonly name: "";
|
|
162
|
+
readonly type: "string";
|
|
163
|
+
}];
|
|
164
|
+
readonly stateMutability: "view";
|
|
165
|
+
readonly type: "function";
|
|
166
|
+
}, {
|
|
167
|
+
readonly inputs: readonly [{
|
|
168
|
+
readonly internalType: "address";
|
|
169
|
+
readonly name: "to";
|
|
170
|
+
readonly type: "address";
|
|
171
|
+
}, {
|
|
172
|
+
readonly internalType: "uint256";
|
|
173
|
+
readonly name: "amount";
|
|
174
|
+
readonly type: "uint256";
|
|
175
|
+
}];
|
|
176
|
+
readonly name: "mint";
|
|
177
|
+
readonly outputs: readonly [];
|
|
178
|
+
readonly stateMutability: "nonpayable";
|
|
179
|
+
readonly type: "function";
|
|
175
180
|
}, {
|
|
176
181
|
readonly inputs: readonly [];
|
|
177
182
|
readonly name: "name";
|
|
@@ -182,6 +187,32 @@ export declare const TetherUSDT_jsonAbi: readonly [{
|
|
|
182
187
|
}];
|
|
183
188
|
readonly stateMutability: "view";
|
|
184
189
|
readonly type: "function";
|
|
190
|
+
}, {
|
|
191
|
+
readonly inputs: readonly [];
|
|
192
|
+
readonly name: "owner";
|
|
193
|
+
readonly outputs: readonly [{
|
|
194
|
+
readonly internalType: "address";
|
|
195
|
+
readonly name: "";
|
|
196
|
+
readonly type: "address";
|
|
197
|
+
}];
|
|
198
|
+
readonly stateMutability: "view";
|
|
199
|
+
readonly type: "function";
|
|
200
|
+
}, {
|
|
201
|
+
readonly inputs: readonly [];
|
|
202
|
+
readonly name: "renounceOwnership";
|
|
203
|
+
readonly outputs: readonly [];
|
|
204
|
+
readonly stateMutability: "nonpayable";
|
|
205
|
+
readonly type: "function";
|
|
206
|
+
}, {
|
|
207
|
+
readonly inputs: readonly [{
|
|
208
|
+
readonly internalType: "string";
|
|
209
|
+
readonly name: "_logoURI";
|
|
210
|
+
readonly type: "string";
|
|
211
|
+
}];
|
|
212
|
+
readonly name: "setLogoURI";
|
|
213
|
+
readonly outputs: readonly [];
|
|
214
|
+
readonly stateMutability: "nonpayable";
|
|
215
|
+
readonly type: "function";
|
|
185
216
|
}, {
|
|
186
217
|
readonly inputs: readonly [];
|
|
187
218
|
readonly name: "symbol";
|
|
@@ -242,17 +273,27 @@ export declare const TetherUSDT_jsonAbi: readonly [{
|
|
|
242
273
|
}];
|
|
243
274
|
readonly stateMutability: "nonpayable";
|
|
244
275
|
readonly type: "function";
|
|
276
|
+
}, {
|
|
277
|
+
readonly inputs: readonly [{
|
|
278
|
+
readonly internalType: "address";
|
|
279
|
+
readonly name: "newOwner";
|
|
280
|
+
readonly type: "address";
|
|
281
|
+
}];
|
|
282
|
+
readonly name: "transferOwnership";
|
|
283
|
+
readonly outputs: readonly [];
|
|
284
|
+
readonly stateMutability: "nonpayable";
|
|
285
|
+
readonly type: "function";
|
|
245
286
|
}];
|
|
246
287
|
/**
|
|
247
|
-
* Type-safe ABI for
|
|
288
|
+
* Type-safe ABI for MyToken_json
|
|
248
289
|
*/
|
|
249
|
-
export type
|
|
290
|
+
export type MyToken_jsonAbi = typeof MyToken_jsonAbi;
|
|
250
291
|
/**
|
|
251
|
-
* Contract instance type for
|
|
292
|
+
* Contract instance type for MyToken_json
|
|
252
293
|
*/
|
|
253
|
-
export type
|
|
294
|
+
export type MyToken_jsonContract = any;
|
|
254
295
|
/**
|
|
255
|
-
*
|
|
296
|
+
* MyToken_json Contract Class
|
|
256
297
|
*
|
|
257
298
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
258
299
|
*
|
|
@@ -260,12 +301,12 @@ export type TetherUSDT_jsonContract = any;
|
|
|
260
301
|
* ```typescript
|
|
261
302
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
262
303
|
* import { mainnet } from 'viem/chains';
|
|
263
|
-
* import {
|
|
304
|
+
* import { MyToken_json } from 'MyToken_json';
|
|
264
305
|
*
|
|
265
306
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
266
307
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
267
308
|
*
|
|
268
|
-
* const contract = new
|
|
309
|
+
* const contract = new MyToken_json('0x...', { publicClient, walletClient });
|
|
269
310
|
*
|
|
270
311
|
* // Read functions
|
|
271
312
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -283,7 +324,7 @@ export type TetherUSDT_jsonContract = any;
|
|
|
283
324
|
* });
|
|
284
325
|
* ```
|
|
285
326
|
*/
|
|
286
|
-
export declare class
|
|
327
|
+
export declare class MyToken_json {
|
|
287
328
|
private contract;
|
|
288
329
|
private contractAddress;
|
|
289
330
|
private publicClient;
|
|
@@ -298,27 +339,42 @@ export declare class TetherUSDT_json {
|
|
|
298
339
|
/**
|
|
299
340
|
* Get the underlying viem contract instance
|
|
300
341
|
*/
|
|
301
|
-
getContract():
|
|
342
|
+
getContract(): MyToken_jsonContract;
|
|
302
343
|
/**
|
|
303
344
|
* allowance
|
|
304
345
|
* view
|
|
305
346
|
*/
|
|
306
|
-
allowance(
|
|
347
|
+
allowance(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
|
|
307
348
|
/**
|
|
308
349
|
* balanceOf
|
|
309
350
|
* view
|
|
310
351
|
*/
|
|
311
|
-
balanceOf(
|
|
352
|
+
balanceOf(arg0: `0x${string}`): Promise<bigint>;
|
|
353
|
+
/**
|
|
354
|
+
* cap
|
|
355
|
+
* view
|
|
356
|
+
*/
|
|
357
|
+
cap(): Promise<bigint>;
|
|
312
358
|
/**
|
|
313
359
|
* decimals
|
|
314
360
|
* view
|
|
315
361
|
*/
|
|
316
362
|
decimals(): Promise<bigint>;
|
|
363
|
+
/**
|
|
364
|
+
* logoURI
|
|
365
|
+
* view
|
|
366
|
+
*/
|
|
367
|
+
logoURI(): Promise<string>;
|
|
317
368
|
/**
|
|
318
369
|
* name
|
|
319
370
|
* view
|
|
320
371
|
*/
|
|
321
372
|
name(): Promise<string>;
|
|
373
|
+
/**
|
|
374
|
+
* owner
|
|
375
|
+
* view
|
|
376
|
+
*/
|
|
377
|
+
owner(): Promise<`0x${string}`>;
|
|
322
378
|
/**
|
|
323
379
|
* symbol
|
|
324
380
|
* view
|
|
@@ -346,6 +402,57 @@ export declare class TetherUSDT_json {
|
|
|
346
402
|
nonce?: number;
|
|
347
403
|
value?: bigint;
|
|
348
404
|
}): Promise<`0x${string}`>;
|
|
405
|
+
/**
|
|
406
|
+
* mint
|
|
407
|
+
* nonpayable
|
|
408
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
409
|
+
*/
|
|
410
|
+
mint(to: `0x${string}`, amount: bigint, options?: {
|
|
411
|
+
accessList?: import('viem').AccessList;
|
|
412
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
413
|
+
chain?: import('viem').Chain | null;
|
|
414
|
+
dataSuffix?: `0x${string}`;
|
|
415
|
+
gas?: bigint;
|
|
416
|
+
gasPrice?: bigint;
|
|
417
|
+
maxFeePerGas?: bigint;
|
|
418
|
+
maxPriorityFeePerGas?: bigint;
|
|
419
|
+
nonce?: number;
|
|
420
|
+
value?: bigint;
|
|
421
|
+
}): Promise<`0x${string}`>;
|
|
422
|
+
/**
|
|
423
|
+
* renounceOwnership
|
|
424
|
+
* nonpayable
|
|
425
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
426
|
+
*/
|
|
427
|
+
renounceOwnership(options?: {
|
|
428
|
+
accessList?: import('viem').AccessList;
|
|
429
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
430
|
+
chain?: import('viem').Chain | null;
|
|
431
|
+
dataSuffix?: `0x${string}`;
|
|
432
|
+
gas?: bigint;
|
|
433
|
+
gasPrice?: bigint;
|
|
434
|
+
maxFeePerGas?: bigint;
|
|
435
|
+
maxPriorityFeePerGas?: bigint;
|
|
436
|
+
nonce?: number;
|
|
437
|
+
value?: bigint;
|
|
438
|
+
}): Promise<`0x${string}`>;
|
|
439
|
+
/**
|
|
440
|
+
* setLogoURI
|
|
441
|
+
* nonpayable
|
|
442
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
443
|
+
*/
|
|
444
|
+
setLogoURI(_logoURI: string, options?: {
|
|
445
|
+
accessList?: import('viem').AccessList;
|
|
446
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
447
|
+
chain?: import('viem').Chain | null;
|
|
448
|
+
dataSuffix?: `0x${string}`;
|
|
449
|
+
gas?: bigint;
|
|
450
|
+
gasPrice?: bigint;
|
|
451
|
+
maxFeePerGas?: bigint;
|
|
452
|
+
maxPriorityFeePerGas?: bigint;
|
|
453
|
+
nonce?: number;
|
|
454
|
+
value?: bigint;
|
|
455
|
+
}): Promise<`0x${string}`>;
|
|
349
456
|
/**
|
|
350
457
|
* transfer
|
|
351
458
|
* nonpayable
|
|
@@ -380,6 +487,23 @@ export declare class TetherUSDT_json {
|
|
|
380
487
|
nonce?: number;
|
|
381
488
|
value?: bigint;
|
|
382
489
|
}): Promise<`0x${string}`>;
|
|
490
|
+
/**
|
|
491
|
+
* transferOwnership
|
|
492
|
+
* nonpayable
|
|
493
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
494
|
+
*/
|
|
495
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
496
|
+
accessList?: import('viem').AccessList;
|
|
497
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
498
|
+
chain?: import('viem').Chain | null;
|
|
499
|
+
dataSuffix?: `0x${string}`;
|
|
500
|
+
gas?: bigint;
|
|
501
|
+
gasPrice?: bigint;
|
|
502
|
+
maxFeePerGas?: bigint;
|
|
503
|
+
maxPriorityFeePerGas?: bigint;
|
|
504
|
+
nonce?: number;
|
|
505
|
+
value?: bigint;
|
|
506
|
+
}): Promise<`0x${string}`>;
|
|
383
507
|
/**
|
|
384
508
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
385
509
|
*
|
|
@@ -406,6 +530,57 @@ export declare class TetherUSDT_json {
|
|
|
406
530
|
nonce?: number;
|
|
407
531
|
value?: bigint;
|
|
408
532
|
}): Promise<boolean>;
|
|
533
|
+
/**
|
|
534
|
+
* Simulate mint
|
|
535
|
+
* Returns gas estimate and result without sending transaction
|
|
536
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
537
|
+
*/
|
|
538
|
+
mint(to: `0x${string}`, amount: bigint, options?: {
|
|
539
|
+
accessList?: import("viem").AccessList;
|
|
540
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
541
|
+
chain?: import("viem").Chain | null;
|
|
542
|
+
dataSuffix?: `0x${string}`;
|
|
543
|
+
gas?: bigint;
|
|
544
|
+
gasPrice?: bigint;
|
|
545
|
+
maxFeePerGas?: bigint;
|
|
546
|
+
maxPriorityFeePerGas?: bigint;
|
|
547
|
+
nonce?: number;
|
|
548
|
+
value?: bigint;
|
|
549
|
+
}): Promise<void>;
|
|
550
|
+
/**
|
|
551
|
+
* Simulate renounceOwnership
|
|
552
|
+
* Returns gas estimate and result without sending transaction
|
|
553
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
554
|
+
*/
|
|
555
|
+
renounceOwnership(options?: {
|
|
556
|
+
accessList?: import("viem").AccessList;
|
|
557
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
558
|
+
chain?: import("viem").Chain | null;
|
|
559
|
+
dataSuffix?: `0x${string}`;
|
|
560
|
+
gas?: bigint;
|
|
561
|
+
gasPrice?: bigint;
|
|
562
|
+
maxFeePerGas?: bigint;
|
|
563
|
+
maxPriorityFeePerGas?: bigint;
|
|
564
|
+
nonce?: number;
|
|
565
|
+
value?: bigint;
|
|
566
|
+
}): Promise<void>;
|
|
567
|
+
/**
|
|
568
|
+
* Simulate setLogoURI
|
|
569
|
+
* Returns gas estimate and result without sending transaction
|
|
570
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
571
|
+
*/
|
|
572
|
+
setLogoURI(_logoURI: string, options?: {
|
|
573
|
+
accessList?: import("viem").AccessList;
|
|
574
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
575
|
+
chain?: import("viem").Chain | null;
|
|
576
|
+
dataSuffix?: `0x${string}`;
|
|
577
|
+
gas?: bigint;
|
|
578
|
+
gasPrice?: bigint;
|
|
579
|
+
maxFeePerGas?: bigint;
|
|
580
|
+
maxPriorityFeePerGas?: bigint;
|
|
581
|
+
nonce?: number;
|
|
582
|
+
value?: bigint;
|
|
583
|
+
}): Promise<void>;
|
|
409
584
|
/**
|
|
410
585
|
* Simulate transfer
|
|
411
586
|
* Returns gas estimate and result without sending transaction
|
|
@@ -440,6 +615,23 @@ export declare class TetherUSDT_json {
|
|
|
440
615
|
nonce?: number;
|
|
441
616
|
value?: bigint;
|
|
442
617
|
}): Promise<boolean>;
|
|
618
|
+
/**
|
|
619
|
+
* Simulate transferOwnership
|
|
620
|
+
* Returns gas estimate and result without sending transaction
|
|
621
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
622
|
+
*/
|
|
623
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
624
|
+
accessList?: import("viem").AccessList;
|
|
625
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
626
|
+
chain?: import("viem").Chain | null;
|
|
627
|
+
dataSuffix?: `0x${string}`;
|
|
628
|
+
gas?: bigint;
|
|
629
|
+
gasPrice?: bigint;
|
|
630
|
+
maxFeePerGas?: bigint;
|
|
631
|
+
maxPriorityFeePerGas?: bigint;
|
|
632
|
+
nonce?: number;
|
|
633
|
+
value?: bigint;
|
|
634
|
+
}): Promise<void>;
|
|
443
635
|
};
|
|
444
636
|
/**
|
|
445
637
|
* Watch contract events
|
|
@@ -468,6 +660,19 @@ export declare class TetherUSDT_json {
|
|
|
468
660
|
owner: `0x${string}`;
|
|
469
661
|
spender: `0x${string}`;
|
|
470
662
|
}) => () => void;
|
|
663
|
+
/**
|
|
664
|
+
* Watch OwnershipTransferred events
|
|
665
|
+
* @param callback Function to call when event is emitted
|
|
666
|
+
* @param filter Optional filter for indexed parameters
|
|
667
|
+
* @returns Unwatch function to stop listening
|
|
668
|
+
*/
|
|
669
|
+
OwnershipTransferred: (callback: (event: {
|
|
670
|
+
previousOwner: `0x${string}`;
|
|
671
|
+
newOwner: `0x${string}`;
|
|
672
|
+
}) => void, filter?: {
|
|
673
|
+
previousOwner: `0x${string}`;
|
|
674
|
+
newOwner: `0x${string}`;
|
|
675
|
+
}) => () => void;
|
|
471
676
|
/**
|
|
472
677
|
* Watch Transfer events
|
|
473
678
|
* @param callback Function to call when event is emitted
|