@gitmyabi/usdt 1.0.4 → 1.0.6
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 → TetherUSDT_json.d.ts} +84 -371
- package/contracts/{USDToken_json.js → TetherUSDT_json.js} +105 -369
- package/contracts/TetherUSDT_json.ts +654 -0
- 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/contracts/USDToken_json.ts +0 -1039
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-e7f88c1b-1785415611783`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `c53c47b`
|
|
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.6
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -1,62 +1,96 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* TetherUSDT_json ABI
|
|
4
4
|
*
|
|
5
5
|
* This ABI is typed using viem's type system for full type safety.
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const TetherUSDT_jsonAbi: readonly [{
|
|
8
8
|
readonly inputs: readonly [];
|
|
9
9
|
readonly stateMutability: "nonpayable";
|
|
10
10
|
readonly type: "constructor";
|
|
11
11
|
}, {
|
|
12
|
-
readonly anonymous: false;
|
|
13
12
|
readonly inputs: readonly [{
|
|
14
|
-
readonly indexed: true;
|
|
15
13
|
readonly internalType: "address";
|
|
16
|
-
readonly name: "
|
|
14
|
+
readonly name: "spender";
|
|
17
15
|
readonly type: "address";
|
|
18
16
|
}, {
|
|
19
|
-
readonly
|
|
17
|
+
readonly internalType: "uint256";
|
|
18
|
+
readonly name: "allowance";
|
|
19
|
+
readonly type: "uint256";
|
|
20
|
+
}, {
|
|
21
|
+
readonly internalType: "uint256";
|
|
22
|
+
readonly name: "needed";
|
|
23
|
+
readonly type: "uint256";
|
|
24
|
+
}];
|
|
25
|
+
readonly name: "ERC20InsufficientAllowance";
|
|
26
|
+
readonly type: "error";
|
|
27
|
+
}, {
|
|
28
|
+
readonly inputs: readonly [{
|
|
20
29
|
readonly internalType: "address";
|
|
21
|
-
readonly name: "
|
|
30
|
+
readonly name: "sender";
|
|
22
31
|
readonly type: "address";
|
|
23
32
|
}, {
|
|
24
|
-
readonly indexed: false;
|
|
25
33
|
readonly internalType: "uint256";
|
|
26
|
-
readonly name: "
|
|
34
|
+
readonly name: "balance";
|
|
35
|
+
readonly type: "uint256";
|
|
36
|
+
}, {
|
|
37
|
+
readonly internalType: "uint256";
|
|
38
|
+
readonly name: "needed";
|
|
27
39
|
readonly type: "uint256";
|
|
28
40
|
}];
|
|
29
|
-
readonly name: "
|
|
30
|
-
readonly type: "
|
|
41
|
+
readonly name: "ERC20InsufficientBalance";
|
|
42
|
+
readonly type: "error";
|
|
31
43
|
}, {
|
|
32
|
-
readonly anonymous: false;
|
|
33
44
|
readonly inputs: readonly [{
|
|
34
|
-
readonly
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly type: "string";
|
|
45
|
+
readonly internalType: "address";
|
|
46
|
+
readonly name: "approver";
|
|
47
|
+
readonly type: "address";
|
|
38
48
|
}];
|
|
39
|
-
readonly name: "
|
|
40
|
-
readonly type: "
|
|
49
|
+
readonly name: "ERC20InvalidApprover";
|
|
50
|
+
readonly type: "error";
|
|
41
51
|
}, {
|
|
42
|
-
readonly anonymous: false;
|
|
43
52
|
readonly inputs: readonly [{
|
|
44
|
-
readonly indexed: true;
|
|
45
53
|
readonly internalType: "address";
|
|
46
|
-
readonly name: "
|
|
54
|
+
readonly name: "receiver";
|
|
47
55
|
readonly type: "address";
|
|
48
56
|
}];
|
|
49
|
-
readonly name: "
|
|
50
|
-
readonly type: "
|
|
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";
|
|
72
|
+
}];
|
|
73
|
+
readonly name: "ERC20InvalidSpender";
|
|
74
|
+
readonly type: "error";
|
|
51
75
|
}, {
|
|
52
76
|
readonly anonymous: false;
|
|
53
77
|
readonly inputs: readonly [{
|
|
78
|
+
readonly indexed: true;
|
|
79
|
+
readonly internalType: "address";
|
|
80
|
+
readonly name: "owner";
|
|
81
|
+
readonly type: "address";
|
|
82
|
+
}, {
|
|
83
|
+
readonly indexed: true;
|
|
84
|
+
readonly internalType: "address";
|
|
85
|
+
readonly name: "spender";
|
|
86
|
+
readonly type: "address";
|
|
87
|
+
}, {
|
|
54
88
|
readonly indexed: false;
|
|
55
|
-
readonly internalType: "
|
|
56
|
-
readonly name: "
|
|
57
|
-
readonly type: "
|
|
89
|
+
readonly internalType: "uint256";
|
|
90
|
+
readonly name: "value";
|
|
91
|
+
readonly type: "uint256";
|
|
58
92
|
}];
|
|
59
|
-
readonly name: "
|
|
93
|
+
readonly name: "Approval";
|
|
60
94
|
readonly type: "event";
|
|
61
95
|
}, {
|
|
62
96
|
readonly anonymous: false;
|
|
@@ -81,11 +115,11 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
81
115
|
}, {
|
|
82
116
|
readonly inputs: readonly [{
|
|
83
117
|
readonly internalType: "address";
|
|
84
|
-
readonly name: "";
|
|
118
|
+
readonly name: "owner";
|
|
85
119
|
readonly type: "address";
|
|
86
120
|
}, {
|
|
87
121
|
readonly internalType: "address";
|
|
88
|
-
readonly name: "";
|
|
122
|
+
readonly name: "spender";
|
|
89
123
|
readonly type: "address";
|
|
90
124
|
}];
|
|
91
125
|
readonly name: "allowance";
|
|
@@ -103,7 +137,7 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
103
137
|
readonly type: "address";
|
|
104
138
|
}, {
|
|
105
139
|
readonly internalType: "uint256";
|
|
106
|
-
readonly name: "
|
|
140
|
+
readonly name: "value";
|
|
107
141
|
readonly type: "uint256";
|
|
108
142
|
}];
|
|
109
143
|
readonly name: "approve";
|
|
@@ -117,7 +151,7 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
117
151
|
}, {
|
|
118
152
|
readonly inputs: readonly [{
|
|
119
153
|
readonly internalType: "address";
|
|
120
|
-
readonly name: "";
|
|
154
|
+
readonly name: "account";
|
|
121
155
|
readonly type: "address";
|
|
122
156
|
}];
|
|
123
157
|
readonly name: "balanceOf";
|
|
@@ -138,52 +172,6 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
138
172
|
}];
|
|
139
173
|
readonly stateMutability: "view";
|
|
140
174
|
readonly type: "function";
|
|
141
|
-
}, {
|
|
142
|
-
readonly inputs: readonly [{
|
|
143
|
-
readonly internalType: "address";
|
|
144
|
-
readonly name: "spender";
|
|
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";
|
|
163
|
-
readonly type: "address";
|
|
164
|
-
}, {
|
|
165
|
-
readonly internalType: "uint256";
|
|
166
|
-
readonly name: "addedValue";
|
|
167
|
-
readonly type: "uint256";
|
|
168
|
-
}];
|
|
169
|
-
readonly name: "increaseAllowance";
|
|
170
|
-
readonly outputs: readonly [{
|
|
171
|
-
readonly internalType: "bool";
|
|
172
|
-
readonly name: "";
|
|
173
|
-
readonly type: "bool";
|
|
174
|
-
}];
|
|
175
|
-
readonly stateMutability: "nonpayable";
|
|
176
|
-
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
175
|
}, {
|
|
188
176
|
readonly inputs: readonly [];
|
|
189
177
|
readonly name: "name";
|
|
@@ -194,52 +182,6 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
194
182
|
}];
|
|
195
183
|
readonly stateMutability: "view";
|
|
196
184
|
readonly type: "function";
|
|
197
|
-
}, {
|
|
198
|
-
readonly inputs: readonly [];
|
|
199
|
-
readonly name: "owner";
|
|
200
|
-
readonly outputs: readonly [{
|
|
201
|
-
readonly internalType: "address";
|
|
202
|
-
readonly name: "";
|
|
203
|
-
readonly type: "address";
|
|
204
|
-
}];
|
|
205
|
-
readonly stateMutability: "view";
|
|
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";
|
|
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
185
|
}, {
|
|
244
186
|
readonly inputs: readonly [];
|
|
245
187
|
readonly name: "symbol";
|
|
@@ -250,16 +192,6 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
250
192
|
}];
|
|
251
193
|
readonly stateMutability: "view";
|
|
252
194
|
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
195
|
}, {
|
|
264
196
|
readonly inputs: readonly [];
|
|
265
197
|
readonly name: "totalSupply";
|
|
@@ -277,7 +209,7 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
277
209
|
readonly type: "address";
|
|
278
210
|
}, {
|
|
279
211
|
readonly internalType: "uint256";
|
|
280
|
-
readonly name: "
|
|
212
|
+
readonly name: "value";
|
|
281
213
|
readonly type: "uint256";
|
|
282
214
|
}];
|
|
283
215
|
readonly name: "transfer";
|
|
@@ -299,7 +231,7 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
299
231
|
readonly type: "address";
|
|
300
232
|
}, {
|
|
301
233
|
readonly internalType: "uint256";
|
|
302
|
-
readonly name: "
|
|
234
|
+
readonly name: "value";
|
|
303
235
|
readonly type: "uint256";
|
|
304
236
|
}];
|
|
305
237
|
readonly name: "transferFrom";
|
|
@@ -312,15 +244,15 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
312
244
|
readonly type: "function";
|
|
313
245
|
}];
|
|
314
246
|
/**
|
|
315
|
-
* Type-safe ABI for
|
|
247
|
+
* Type-safe ABI for TetherUSDT_json
|
|
316
248
|
*/
|
|
317
|
-
export type
|
|
249
|
+
export type TetherUSDT_jsonAbi = typeof TetherUSDT_jsonAbi;
|
|
318
250
|
/**
|
|
319
|
-
* Contract instance type for
|
|
251
|
+
* Contract instance type for TetherUSDT_json
|
|
320
252
|
*/
|
|
321
|
-
export type
|
|
253
|
+
export type TetherUSDT_jsonContract = any;
|
|
322
254
|
/**
|
|
323
|
-
*
|
|
255
|
+
* TetherUSDT_json Contract Class
|
|
324
256
|
*
|
|
325
257
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
326
258
|
*
|
|
@@ -328,12 +260,12 @@ export type USDToken_jsonContract = any;
|
|
|
328
260
|
* ```typescript
|
|
329
261
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
330
262
|
* import { mainnet } from 'viem/chains';
|
|
331
|
-
* import {
|
|
263
|
+
* import { TetherUSDT_json } from 'TetherUSDT_json';
|
|
332
264
|
*
|
|
333
265
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
334
266
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
335
267
|
*
|
|
336
|
-
* const contract = new
|
|
268
|
+
* const contract = new TetherUSDT_json('0x...', { publicClient, walletClient });
|
|
337
269
|
*
|
|
338
270
|
* // Read functions
|
|
339
271
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -351,7 +283,7 @@ export type USDToken_jsonContract = any;
|
|
|
351
283
|
* });
|
|
352
284
|
* ```
|
|
353
285
|
*/
|
|
354
|
-
export declare class
|
|
286
|
+
export declare class TetherUSDT_json {
|
|
355
287
|
private contract;
|
|
356
288
|
private contractAddress;
|
|
357
289
|
private publicClient;
|
|
@@ -366,52 +298,32 @@ export declare class USDToken_json {
|
|
|
366
298
|
/**
|
|
367
299
|
* Get the underlying viem contract instance
|
|
368
300
|
*/
|
|
369
|
-
getContract():
|
|
301
|
+
getContract(): TetherUSDT_jsonContract;
|
|
370
302
|
/**
|
|
371
303
|
* allowance
|
|
372
304
|
* view
|
|
373
305
|
*/
|
|
374
|
-
allowance(
|
|
306
|
+
allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
375
307
|
/**
|
|
376
308
|
* balanceOf
|
|
377
309
|
* view
|
|
378
310
|
*/
|
|
379
|
-
balanceOf(
|
|
311
|
+
balanceOf(account: `0x${string}`): Promise<bigint>;
|
|
380
312
|
/**
|
|
381
313
|
* decimals
|
|
382
314
|
* view
|
|
383
315
|
*/
|
|
384
316
|
decimals(): Promise<bigint>;
|
|
385
|
-
/**
|
|
386
|
-
* isRenounced
|
|
387
|
-
* view
|
|
388
|
-
*/
|
|
389
|
-
isRenounced(): Promise<boolean>;
|
|
390
317
|
/**
|
|
391
318
|
* name
|
|
392
319
|
* view
|
|
393
320
|
*/
|
|
394
321
|
name(): Promise<string>;
|
|
395
|
-
/**
|
|
396
|
-
* owner
|
|
397
|
-
* view
|
|
398
|
-
*/
|
|
399
|
-
owner(): Promise<`0x${string}`>;
|
|
400
|
-
/**
|
|
401
|
-
* renounced
|
|
402
|
-
* view
|
|
403
|
-
*/
|
|
404
|
-
renounced(): Promise<boolean>;
|
|
405
322
|
/**
|
|
406
323
|
* symbol
|
|
407
324
|
* view
|
|
408
325
|
*/
|
|
409
326
|
symbol(): Promise<string>;
|
|
410
|
-
/**
|
|
411
|
-
* tokenImage
|
|
412
|
-
* pure
|
|
413
|
-
*/
|
|
414
|
-
tokenImage(): Promise<string>;
|
|
415
327
|
/**
|
|
416
328
|
* totalSupply
|
|
417
329
|
* view
|
|
@@ -422,92 +334,7 @@ export declare class USDToken_json {
|
|
|
422
334
|
* nonpayable
|
|
423
335
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
424
336
|
*/
|
|
425
|
-
approve(spender: `0x${string}`,
|
|
426
|
-
accessList?: import('viem').AccessList;
|
|
427
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
428
|
-
chain?: import('viem').Chain | null;
|
|
429
|
-
dataSuffix?: `0x${string}`;
|
|
430
|
-
gas?: bigint;
|
|
431
|
-
gasPrice?: bigint;
|
|
432
|
-
maxFeePerGas?: bigint;
|
|
433
|
-
maxPriorityFeePerGas?: bigint;
|
|
434
|
-
nonce?: number;
|
|
435
|
-
value?: bigint;
|
|
436
|
-
}): Promise<`0x${string}`>;
|
|
437
|
-
/**
|
|
438
|
-
* decreaseAllowance
|
|
439
|
-
* nonpayable
|
|
440
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
441
|
-
*/
|
|
442
|
-
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
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?: {
|
|
337
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
511
338
|
accessList?: import('viem').AccessList;
|
|
512
339
|
authorizationList?: import('viem').AuthorizationList;
|
|
513
340
|
chain?: import('viem').Chain | null;
|
|
@@ -524,7 +351,7 @@ export declare class USDToken_json {
|
|
|
524
351
|
* nonpayable
|
|
525
352
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
526
353
|
*/
|
|
527
|
-
transfer(to: `0x${string}`,
|
|
354
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
528
355
|
accessList?: import('viem').AccessList;
|
|
529
356
|
authorizationList?: import('viem').AuthorizationList;
|
|
530
357
|
chain?: import('viem').Chain | null;
|
|
@@ -541,7 +368,7 @@ export declare class USDToken_json {
|
|
|
541
368
|
* nonpayable
|
|
542
369
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
543
370
|
*/
|
|
544
|
-
transferFrom(from: `0x${string}`, to: `0x${string}`,
|
|
371
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
545
372
|
accessList?: import('viem').AccessList;
|
|
546
373
|
authorizationList?: import('viem').AuthorizationList;
|
|
547
374
|
chain?: import('viem').Chain | null;
|
|
@@ -567,7 +394,7 @@ export declare class USDToken_json {
|
|
|
567
394
|
* Returns gas estimate and result without sending transaction
|
|
568
395
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
569
396
|
*/
|
|
570
|
-
approve(spender: `0x${string}`,
|
|
397
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
571
398
|
accessList?: import("viem").AccessList;
|
|
572
399
|
authorizationList?: import("viem").AuthorizationList;
|
|
573
400
|
chain?: import("viem").Chain | null;
|
|
@@ -579,97 +406,12 @@ export declare class USDToken_json {
|
|
|
579
406
|
nonce?: number;
|
|
580
407
|
value?: bigint;
|
|
581
408
|
}): Promise<boolean>;
|
|
582
|
-
/**
|
|
583
|
-
* Simulate decreaseAllowance
|
|
584
|
-
* Returns gas estimate and result without sending transaction
|
|
585
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
586
|
-
*/
|
|
587
|
-
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
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?: {
|
|
656
|
-
accessList?: import("viem").AccessList;
|
|
657
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
658
|
-
chain?: import("viem").Chain | null;
|
|
659
|
-
dataSuffix?: `0x${string}`;
|
|
660
|
-
gas?: bigint;
|
|
661
|
-
gasPrice?: bigint;
|
|
662
|
-
maxFeePerGas?: bigint;
|
|
663
|
-
maxPriorityFeePerGas?: bigint;
|
|
664
|
-
nonce?: number;
|
|
665
|
-
value?: bigint;
|
|
666
|
-
}): Promise<void>;
|
|
667
409
|
/**
|
|
668
410
|
* Simulate transfer
|
|
669
411
|
* Returns gas estimate and result without sending transaction
|
|
670
412
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
671
413
|
*/
|
|
672
|
-
transfer(to: `0x${string}`,
|
|
414
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
673
415
|
accessList?: import("viem").AccessList;
|
|
674
416
|
authorizationList?: import("viem").AuthorizationList;
|
|
675
417
|
chain?: import("viem").Chain | null;
|
|
@@ -686,7 +428,7 @@ export declare class USDToken_json {
|
|
|
686
428
|
* Returns gas estimate and result without sending transaction
|
|
687
429
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
688
430
|
*/
|
|
689
|
-
transferFrom(from: `0x${string}`, to: `0x${string}`,
|
|
431
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
690
432
|
accessList?: import("viem").AccessList;
|
|
691
433
|
authorizationList?: import("viem").AuthorizationList;
|
|
692
434
|
chain?: import("viem").Chain | null;
|
|
@@ -726,35 +468,6 @@ export declare class USDToken_json {
|
|
|
726
468
|
owner: `0x${string}`;
|
|
727
469
|
spender: `0x${string}`;
|
|
728
470
|
}) => () => 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
471
|
/**
|
|
759
472
|
* Watch Transfer events
|
|
760
473
|
* @param callback Function to call when event is emitted
|