@gitmyabi/usdt 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/contracts/{USDToken_json.d.ts → SimpleUSDTToken_json.d.ts} +36 -320
- package/contracts/{USDToken_json.js → SimpleUSDTToken_json.js} +46 -333
- package/contracts/{USDToken_json.ts → SimpleUSDTToken_json.ts} +50 -434
- 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-680fdf1e-1787033882968`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `e2ee137`
|
|
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.20
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* SimpleUSDTToken_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 [
|
|
7
|
+
export declare const SimpleUSDTToken_jsonAbi: readonly [{
|
|
8
|
+
readonly inputs: readonly [{
|
|
9
|
+
readonly internalType: "uint256";
|
|
10
|
+
readonly name: "initialSupply";
|
|
11
|
+
readonly type: "uint256";
|
|
12
|
+
}];
|
|
9
13
|
readonly stateMutability: "nonpayable";
|
|
10
14
|
readonly type: "constructor";
|
|
11
15
|
}, {
|
|
@@ -28,36 +32,6 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
28
32
|
}];
|
|
29
33
|
readonly name: "Approval";
|
|
30
34
|
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";
|
|
41
|
-
}, {
|
|
42
|
-
readonly anonymous: false;
|
|
43
|
-
readonly inputs: readonly [{
|
|
44
|
-
readonly indexed: true;
|
|
45
|
-
readonly internalType: "address";
|
|
46
|
-
readonly name: "previousOwner";
|
|
47
|
-
readonly type: "address";
|
|
48
|
-
}];
|
|
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";
|
|
60
|
-
readonly type: "event";
|
|
61
35
|
}, {
|
|
62
36
|
readonly anonymous: false;
|
|
63
37
|
readonly inputs: readonly [{
|
|
@@ -103,13 +77,13 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
103
77
|
readonly type: "address";
|
|
104
78
|
}, {
|
|
105
79
|
readonly internalType: "uint256";
|
|
106
|
-
readonly name: "
|
|
80
|
+
readonly name: "value";
|
|
107
81
|
readonly type: "uint256";
|
|
108
82
|
}];
|
|
109
83
|
readonly name: "approve";
|
|
110
84
|
readonly outputs: readonly [{
|
|
111
85
|
readonly internalType: "bool";
|
|
112
|
-
readonly name: "";
|
|
86
|
+
readonly name: "success";
|
|
113
87
|
readonly type: "bool";
|
|
114
88
|
}];
|
|
115
89
|
readonly stateMutability: "nonpayable";
|
|
@@ -141,49 +115,17 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
141
115
|
}, {
|
|
142
116
|
readonly inputs: readonly [{
|
|
143
117
|
readonly internalType: "address";
|
|
144
|
-
readonly name: "
|
|
145
|
-
readonly type: "address";
|
|
146
|
-
}, {
|
|
147
|
-
readonly internalType: "uint256";
|
|
148
|
-
readonly name: "subtractedValue";
|
|
149
|
-
readonly type: "uint256";
|
|
150
|
-
}];
|
|
151
|
-
readonly name: "decreaseAllowance";
|
|
152
|
-
readonly outputs: readonly [{
|
|
153
|
-
readonly internalType: "bool";
|
|
154
|
-
readonly name: "";
|
|
155
|
-
readonly type: "bool";
|
|
156
|
-
}];
|
|
157
|
-
readonly stateMutability: "nonpayable";
|
|
158
|
-
readonly type: "function";
|
|
159
|
-
}, {
|
|
160
|
-
readonly inputs: readonly [{
|
|
161
|
-
readonly internalType: "address";
|
|
162
|
-
readonly name: "spender";
|
|
118
|
+
readonly name: "to";
|
|
163
119
|
readonly type: "address";
|
|
164
120
|
}, {
|
|
165
121
|
readonly internalType: "uint256";
|
|
166
|
-
readonly name: "
|
|
122
|
+
readonly name: "amount";
|
|
167
123
|
readonly type: "uint256";
|
|
168
124
|
}];
|
|
169
|
-
readonly name: "
|
|
170
|
-
readonly outputs: readonly [
|
|
171
|
-
readonly internalType: "bool";
|
|
172
|
-
readonly name: "";
|
|
173
|
-
readonly type: "bool";
|
|
174
|
-
}];
|
|
125
|
+
readonly name: "mint";
|
|
126
|
+
readonly outputs: readonly [];
|
|
175
127
|
readonly stateMutability: "nonpayable";
|
|
176
128
|
readonly type: "function";
|
|
177
|
-
}, {
|
|
178
|
-
readonly inputs: readonly [];
|
|
179
|
-
readonly name: "isRenounced";
|
|
180
|
-
readonly outputs: readonly [{
|
|
181
|
-
readonly internalType: "bool";
|
|
182
|
-
readonly name: "";
|
|
183
|
-
readonly type: "bool";
|
|
184
|
-
}];
|
|
185
|
-
readonly stateMutability: "view";
|
|
186
|
-
readonly type: "function";
|
|
187
129
|
}, {
|
|
188
130
|
readonly inputs: readonly [];
|
|
189
131
|
readonly name: "name";
|
|
@@ -204,42 +146,6 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
204
146
|
}];
|
|
205
147
|
readonly stateMutability: "view";
|
|
206
148
|
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";
|
|
223
|
-
}, {
|
|
224
|
-
readonly inputs: readonly [{
|
|
225
|
-
readonly internalType: "string";
|
|
226
|
-
readonly name: "newName";
|
|
227
|
-
readonly type: "string";
|
|
228
|
-
}];
|
|
229
|
-
readonly name: "setName";
|
|
230
|
-
readonly outputs: readonly [];
|
|
231
|
-
readonly stateMutability: "nonpayable";
|
|
232
|
-
readonly type: "function";
|
|
233
|
-
}, {
|
|
234
|
-
readonly inputs: readonly [{
|
|
235
|
-
readonly internalType: "string";
|
|
236
|
-
readonly name: "newSymbol";
|
|
237
|
-
readonly type: "string";
|
|
238
|
-
}];
|
|
239
|
-
readonly name: "setSymbol";
|
|
240
|
-
readonly outputs: readonly [];
|
|
241
|
-
readonly stateMutability: "nonpayable";
|
|
242
|
-
readonly type: "function";
|
|
243
149
|
}, {
|
|
244
150
|
readonly inputs: readonly [];
|
|
245
151
|
readonly name: "symbol";
|
|
@@ -250,16 +156,6 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
250
156
|
}];
|
|
251
157
|
readonly stateMutability: "view";
|
|
252
158
|
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";
|
|
263
159
|
}, {
|
|
264
160
|
readonly inputs: readonly [];
|
|
265
161
|
readonly name: "totalSupply";
|
|
@@ -277,13 +173,13 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
277
173
|
readonly type: "address";
|
|
278
174
|
}, {
|
|
279
175
|
readonly internalType: "uint256";
|
|
280
|
-
readonly name: "
|
|
176
|
+
readonly name: "value";
|
|
281
177
|
readonly type: "uint256";
|
|
282
178
|
}];
|
|
283
179
|
readonly name: "transfer";
|
|
284
180
|
readonly outputs: readonly [{
|
|
285
181
|
readonly internalType: "bool";
|
|
286
|
-
readonly name: "";
|
|
182
|
+
readonly name: "success";
|
|
287
183
|
readonly type: "bool";
|
|
288
184
|
}];
|
|
289
185
|
readonly stateMutability: "nonpayable";
|
|
@@ -299,28 +195,28 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
299
195
|
readonly type: "address";
|
|
300
196
|
}, {
|
|
301
197
|
readonly internalType: "uint256";
|
|
302
|
-
readonly name: "
|
|
198
|
+
readonly name: "value";
|
|
303
199
|
readonly type: "uint256";
|
|
304
200
|
}];
|
|
305
201
|
readonly name: "transferFrom";
|
|
306
202
|
readonly outputs: readonly [{
|
|
307
203
|
readonly internalType: "bool";
|
|
308
|
-
readonly name: "";
|
|
204
|
+
readonly name: "success";
|
|
309
205
|
readonly type: "bool";
|
|
310
206
|
}];
|
|
311
207
|
readonly stateMutability: "nonpayable";
|
|
312
208
|
readonly type: "function";
|
|
313
209
|
}];
|
|
314
210
|
/**
|
|
315
|
-
* Type-safe ABI for
|
|
211
|
+
* Type-safe ABI for SimpleUSDTToken_json
|
|
316
212
|
*/
|
|
317
|
-
export type
|
|
213
|
+
export type SimpleUSDTToken_jsonAbi = typeof SimpleUSDTToken_jsonAbi;
|
|
318
214
|
/**
|
|
319
|
-
* Contract instance type for
|
|
215
|
+
* Contract instance type for SimpleUSDTToken_json
|
|
320
216
|
*/
|
|
321
|
-
export type
|
|
217
|
+
export type SimpleUSDTToken_jsonContract = any;
|
|
322
218
|
/**
|
|
323
|
-
*
|
|
219
|
+
* SimpleUSDTToken_json Contract Class
|
|
324
220
|
*
|
|
325
221
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
326
222
|
*
|
|
@@ -328,12 +224,12 @@ export type USDToken_jsonContract = any;
|
|
|
328
224
|
* ```typescript
|
|
329
225
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
330
226
|
* import { mainnet } from 'viem/chains';
|
|
331
|
-
* import {
|
|
227
|
+
* import { SimpleUSDTToken_json } from 'SimpleUSDTToken_json';
|
|
332
228
|
*
|
|
333
229
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
334
230
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
335
231
|
*
|
|
336
|
-
* const contract = new
|
|
232
|
+
* const contract = new SimpleUSDTToken_json('0x...', { publicClient, walletClient });
|
|
337
233
|
*
|
|
338
234
|
* // Read functions
|
|
339
235
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -351,7 +247,7 @@ export type USDToken_jsonContract = any;
|
|
|
351
247
|
* });
|
|
352
248
|
* ```
|
|
353
249
|
*/
|
|
354
|
-
export declare class
|
|
250
|
+
export declare class SimpleUSDTToken_json {
|
|
355
251
|
private contract;
|
|
356
252
|
private contractAddress;
|
|
357
253
|
private publicClient;
|
|
@@ -366,7 +262,7 @@ export declare class USDToken_json {
|
|
|
366
262
|
/**
|
|
367
263
|
* Get the underlying viem contract instance
|
|
368
264
|
*/
|
|
369
|
-
getContract():
|
|
265
|
+
getContract(): SimpleUSDTToken_jsonContract;
|
|
370
266
|
/**
|
|
371
267
|
* allowance
|
|
372
268
|
* view
|
|
@@ -382,11 +278,6 @@ export declare class USDToken_json {
|
|
|
382
278
|
* view
|
|
383
279
|
*/
|
|
384
280
|
decimals(): Promise<bigint>;
|
|
385
|
-
/**
|
|
386
|
-
* isRenounced
|
|
387
|
-
* view
|
|
388
|
-
*/
|
|
389
|
-
isRenounced(): Promise<boolean>;
|
|
390
281
|
/**
|
|
391
282
|
* name
|
|
392
283
|
* view
|
|
@@ -397,21 +288,11 @@ export declare class USDToken_json {
|
|
|
397
288
|
* view
|
|
398
289
|
*/
|
|
399
290
|
owner(): Promise<`0x${string}`>;
|
|
400
|
-
/**
|
|
401
|
-
* renounced
|
|
402
|
-
* view
|
|
403
|
-
*/
|
|
404
|
-
renounced(): Promise<boolean>;
|
|
405
291
|
/**
|
|
406
292
|
* symbol
|
|
407
293
|
* view
|
|
408
294
|
*/
|
|
409
295
|
symbol(): Promise<string>;
|
|
410
|
-
/**
|
|
411
|
-
* tokenImage
|
|
412
|
-
* pure
|
|
413
|
-
*/
|
|
414
|
-
tokenImage(): Promise<string>;
|
|
415
296
|
/**
|
|
416
297
|
* totalSupply
|
|
417
298
|
* view
|
|
@@ -422,7 +303,7 @@ export declare class USDToken_json {
|
|
|
422
303
|
* nonpayable
|
|
423
304
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
424
305
|
*/
|
|
425
|
-
approve(spender: `0x${string}`,
|
|
306
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
426
307
|
accessList?: import('viem').AccessList;
|
|
427
308
|
authorizationList?: import('viem').AuthorizationList;
|
|
428
309
|
chain?: import('viem').Chain | null;
|
|
@@ -435,79 +316,11 @@ export declare class USDToken_json {
|
|
|
435
316
|
value?: bigint;
|
|
436
317
|
}): Promise<`0x${string}`>;
|
|
437
318
|
/**
|
|
438
|
-
*
|
|
319
|
+
* mint
|
|
439
320
|
* nonpayable
|
|
440
321
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
441
322
|
*/
|
|
442
|
-
|
|
443
|
-
accessList?: import('viem').AccessList;
|
|
444
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
445
|
-
chain?: import('viem').Chain | null;
|
|
446
|
-
dataSuffix?: `0x${string}`;
|
|
447
|
-
gas?: bigint;
|
|
448
|
-
gasPrice?: bigint;
|
|
449
|
-
maxFeePerGas?: bigint;
|
|
450
|
-
maxPriorityFeePerGas?: bigint;
|
|
451
|
-
nonce?: number;
|
|
452
|
-
value?: bigint;
|
|
453
|
-
}): Promise<`0x${string}`>;
|
|
454
|
-
/**
|
|
455
|
-
* increaseAllowance
|
|
456
|
-
* nonpayable
|
|
457
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
458
|
-
*/
|
|
459
|
-
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
460
|
-
accessList?: import('viem').AccessList;
|
|
461
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
462
|
-
chain?: import('viem').Chain | null;
|
|
463
|
-
dataSuffix?: `0x${string}`;
|
|
464
|
-
gas?: bigint;
|
|
465
|
-
gasPrice?: bigint;
|
|
466
|
-
maxFeePerGas?: bigint;
|
|
467
|
-
maxPriorityFeePerGas?: bigint;
|
|
468
|
-
nonce?: number;
|
|
469
|
-
value?: bigint;
|
|
470
|
-
}): Promise<`0x${string}`>;
|
|
471
|
-
/**
|
|
472
|
-
* renounceOwnership
|
|
473
|
-
* nonpayable
|
|
474
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
475
|
-
*/
|
|
476
|
-
renounceOwnership(options?: {
|
|
477
|
-
accessList?: import('viem').AccessList;
|
|
478
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
479
|
-
chain?: import('viem').Chain | null;
|
|
480
|
-
dataSuffix?: `0x${string}`;
|
|
481
|
-
gas?: bigint;
|
|
482
|
-
gasPrice?: bigint;
|
|
483
|
-
maxFeePerGas?: bigint;
|
|
484
|
-
maxPriorityFeePerGas?: bigint;
|
|
485
|
-
nonce?: number;
|
|
486
|
-
value?: bigint;
|
|
487
|
-
}): Promise<`0x${string}`>;
|
|
488
|
-
/**
|
|
489
|
-
* setName
|
|
490
|
-
* nonpayable
|
|
491
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
492
|
-
*/
|
|
493
|
-
setName(newName: string, options?: {
|
|
494
|
-
accessList?: import('viem').AccessList;
|
|
495
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
496
|
-
chain?: import('viem').Chain | null;
|
|
497
|
-
dataSuffix?: `0x${string}`;
|
|
498
|
-
gas?: bigint;
|
|
499
|
-
gasPrice?: bigint;
|
|
500
|
-
maxFeePerGas?: bigint;
|
|
501
|
-
maxPriorityFeePerGas?: bigint;
|
|
502
|
-
nonce?: number;
|
|
503
|
-
value?: bigint;
|
|
504
|
-
}): Promise<`0x${string}`>;
|
|
505
|
-
/**
|
|
506
|
-
* setSymbol
|
|
507
|
-
* nonpayable
|
|
508
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
509
|
-
*/
|
|
510
|
-
setSymbol(newSymbol: string, options?: {
|
|
323
|
+
mint(to: `0x${string}`, amount: bigint, options?: {
|
|
511
324
|
accessList?: import('viem').AccessList;
|
|
512
325
|
authorizationList?: import('viem').AuthorizationList;
|
|
513
326
|
chain?: import('viem').Chain | null;
|
|
@@ -524,7 +337,7 @@ export declare class USDToken_json {
|
|
|
524
337
|
* nonpayable
|
|
525
338
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
526
339
|
*/
|
|
527
|
-
transfer(to: `0x${string}`,
|
|
340
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
528
341
|
accessList?: import('viem').AccessList;
|
|
529
342
|
authorizationList?: import('viem').AuthorizationList;
|
|
530
343
|
chain?: import('viem').Chain | null;
|
|
@@ -541,7 +354,7 @@ export declare class USDToken_json {
|
|
|
541
354
|
* nonpayable
|
|
542
355
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
543
356
|
*/
|
|
544
|
-
transferFrom(from: `0x${string}`, to: `0x${string}`,
|
|
357
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
545
358
|
accessList?: import('viem').AccessList;
|
|
546
359
|
authorizationList?: import('viem').AuthorizationList;
|
|
547
360
|
chain?: import('viem').Chain | null;
|
|
@@ -567,7 +380,7 @@ export declare class USDToken_json {
|
|
|
567
380
|
* Returns gas estimate and result without sending transaction
|
|
568
381
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
569
382
|
*/
|
|
570
|
-
approve(spender: `0x${string}`,
|
|
383
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
571
384
|
accessList?: import("viem").AccessList;
|
|
572
385
|
authorizationList?: import("viem").AuthorizationList;
|
|
573
386
|
chain?: import("viem").Chain | null;
|
|
@@ -580,79 +393,11 @@ export declare class USDToken_json {
|
|
|
580
393
|
value?: bigint;
|
|
581
394
|
}): Promise<boolean>;
|
|
582
395
|
/**
|
|
583
|
-
* Simulate
|
|
396
|
+
* Simulate mint
|
|
584
397
|
* Returns gas estimate and result without sending transaction
|
|
585
398
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
586
399
|
*/
|
|
587
|
-
|
|
588
|
-
accessList?: import("viem").AccessList;
|
|
589
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
590
|
-
chain?: import("viem").Chain | null;
|
|
591
|
-
dataSuffix?: `0x${string}`;
|
|
592
|
-
gas?: bigint;
|
|
593
|
-
gasPrice?: bigint;
|
|
594
|
-
maxFeePerGas?: bigint;
|
|
595
|
-
maxPriorityFeePerGas?: bigint;
|
|
596
|
-
nonce?: number;
|
|
597
|
-
value?: bigint;
|
|
598
|
-
}): Promise<boolean>;
|
|
599
|
-
/**
|
|
600
|
-
* Simulate increaseAllowance
|
|
601
|
-
* Returns gas estimate and result without sending transaction
|
|
602
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
603
|
-
*/
|
|
604
|
-
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
605
|
-
accessList?: import("viem").AccessList;
|
|
606
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
607
|
-
chain?: import("viem").Chain | null;
|
|
608
|
-
dataSuffix?: `0x${string}`;
|
|
609
|
-
gas?: bigint;
|
|
610
|
-
gasPrice?: bigint;
|
|
611
|
-
maxFeePerGas?: bigint;
|
|
612
|
-
maxPriorityFeePerGas?: bigint;
|
|
613
|
-
nonce?: number;
|
|
614
|
-
value?: bigint;
|
|
615
|
-
}): Promise<boolean>;
|
|
616
|
-
/**
|
|
617
|
-
* Simulate renounceOwnership
|
|
618
|
-
* Returns gas estimate and result without sending transaction
|
|
619
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
620
|
-
*/
|
|
621
|
-
renounceOwnership(options?: {
|
|
622
|
-
accessList?: import("viem").AccessList;
|
|
623
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
624
|
-
chain?: import("viem").Chain | null;
|
|
625
|
-
dataSuffix?: `0x${string}`;
|
|
626
|
-
gas?: bigint;
|
|
627
|
-
gasPrice?: bigint;
|
|
628
|
-
maxFeePerGas?: bigint;
|
|
629
|
-
maxPriorityFeePerGas?: bigint;
|
|
630
|
-
nonce?: number;
|
|
631
|
-
value?: bigint;
|
|
632
|
-
}): Promise<void>;
|
|
633
|
-
/**
|
|
634
|
-
* Simulate setName
|
|
635
|
-
* Returns gas estimate and result without sending transaction
|
|
636
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
637
|
-
*/
|
|
638
|
-
setName(newName: string, options?: {
|
|
639
|
-
accessList?: import("viem").AccessList;
|
|
640
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
641
|
-
chain?: import("viem").Chain | null;
|
|
642
|
-
dataSuffix?: `0x${string}`;
|
|
643
|
-
gas?: bigint;
|
|
644
|
-
gasPrice?: bigint;
|
|
645
|
-
maxFeePerGas?: bigint;
|
|
646
|
-
maxPriorityFeePerGas?: bigint;
|
|
647
|
-
nonce?: number;
|
|
648
|
-
value?: bigint;
|
|
649
|
-
}): Promise<void>;
|
|
650
|
-
/**
|
|
651
|
-
* Simulate setSymbol
|
|
652
|
-
* Returns gas estimate and result without sending transaction
|
|
653
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
654
|
-
*/
|
|
655
|
-
setSymbol(newSymbol: string, options?: {
|
|
400
|
+
mint(to: `0x${string}`, amount: bigint, options?: {
|
|
656
401
|
accessList?: import("viem").AccessList;
|
|
657
402
|
authorizationList?: import("viem").AuthorizationList;
|
|
658
403
|
chain?: import("viem").Chain | null;
|
|
@@ -669,7 +414,7 @@ export declare class USDToken_json {
|
|
|
669
414
|
* Returns gas estimate and result without sending transaction
|
|
670
415
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
671
416
|
*/
|
|
672
|
-
transfer(to: `0x${string}`,
|
|
417
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
673
418
|
accessList?: import("viem").AccessList;
|
|
674
419
|
authorizationList?: import("viem").AuthorizationList;
|
|
675
420
|
chain?: import("viem").Chain | null;
|
|
@@ -686,7 +431,7 @@ export declare class USDToken_json {
|
|
|
686
431
|
* Returns gas estimate and result without sending transaction
|
|
687
432
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
688
433
|
*/
|
|
689
|
-
transferFrom(from: `0x${string}`, to: `0x${string}`,
|
|
434
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
690
435
|
accessList?: import("viem").AccessList;
|
|
691
436
|
authorizationList?: import("viem").AuthorizationList;
|
|
692
437
|
chain?: import("viem").Chain | null;
|
|
@@ -726,35 +471,6 @@ export declare class USDToken_json {
|
|
|
726
471
|
owner: `0x${string}`;
|
|
727
472
|
spender: `0x${string}`;
|
|
728
473
|
}) => () => void;
|
|
729
|
-
/**
|
|
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
|
|
740
|
-
* @param callback Function to call when event is emitted
|
|
741
|
-
* @param filter Optional filter for indexed parameters
|
|
742
|
-
* @returns Unwatch function to stop listening
|
|
743
|
-
*/
|
|
744
|
-
OwnershipRenounced: (callback: (event: {
|
|
745
|
-
previousOwner: `0x${string}`;
|
|
746
|
-
}) => void, filter?: {
|
|
747
|
-
previousOwner: `0x${string}`;
|
|
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;
|
|
758
474
|
/**
|
|
759
475
|
* Watch Transfer events
|
|
760
476
|
* @param callback Function to call when event is emitted
|