@gitmyabi/usdt 1.0.7 → 1.0.8
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/{MyToken_json.d.ts → Tether_json.d.ts} +272 -98
- package/contracts/{MyToken_json.js → Tether_json.js} +306 -118
- package/contracts/{MyToken_json.ts → Tether_json.ts} +362 -128
- 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-36bc33df-1785512519373`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `3edf50f`
|
|
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.8
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Tether_json ABI
|
|
4
4
|
*
|
|
5
5
|
* This ABI is typed using viem's type system for full type safety.
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
8
|
-
readonly inputs: readonly [
|
|
9
|
-
readonly internalType: "string";
|
|
10
|
-
readonly name: "_name";
|
|
11
|
-
readonly type: "string";
|
|
12
|
-
}, {
|
|
13
|
-
readonly internalType: "string";
|
|
14
|
-
readonly name: "_symbol";
|
|
15
|
-
readonly type: "string";
|
|
16
|
-
}, {
|
|
17
|
-
readonly internalType: "uint256";
|
|
18
|
-
readonly name: "_cap";
|
|
19
|
-
readonly type: "uint256";
|
|
20
|
-
}, {
|
|
21
|
-
readonly internalType: "uint256";
|
|
22
|
-
readonly name: "_initialSupply";
|
|
23
|
-
readonly type: "uint256";
|
|
24
|
-
}, {
|
|
25
|
-
readonly internalType: "string";
|
|
26
|
-
readonly name: "_logoURI";
|
|
27
|
-
readonly type: "string";
|
|
28
|
-
}];
|
|
7
|
+
export declare const Tether_jsonAbi: readonly [{
|
|
8
|
+
readonly inputs: readonly [];
|
|
29
9
|
readonly stateMutability: "nonpayable";
|
|
30
10
|
readonly type: "constructor";
|
|
31
11
|
}, {
|
|
@@ -33,7 +13,7 @@ export declare const MyToken_jsonAbi: readonly [{
|
|
|
33
13
|
readonly inputs: readonly [{
|
|
34
14
|
readonly indexed: true;
|
|
35
15
|
readonly internalType: "address";
|
|
36
|
-
readonly name: "
|
|
16
|
+
readonly name: "tokenOwner";
|
|
37
17
|
readonly type: "address";
|
|
38
18
|
}, {
|
|
39
19
|
readonly indexed: true;
|
|
@@ -48,6 +28,21 @@ export declare const MyToken_jsonAbi: readonly [{
|
|
|
48
28
|
}];
|
|
49
29
|
readonly name: "Approval";
|
|
50
30
|
readonly type: "event";
|
|
31
|
+
}, {
|
|
32
|
+
readonly anonymous: false;
|
|
33
|
+
readonly inputs: readonly [{
|
|
34
|
+
readonly indexed: true;
|
|
35
|
+
readonly internalType: "address";
|
|
36
|
+
readonly name: "account";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
}, {
|
|
39
|
+
readonly indexed: false;
|
|
40
|
+
readonly internalType: "uint256";
|
|
41
|
+
readonly name: "amount";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
}];
|
|
44
|
+
readonly name: "Freeze";
|
|
45
|
+
readonly type: "event";
|
|
51
46
|
}, {
|
|
52
47
|
readonly anonymous: false;
|
|
53
48
|
readonly inputs: readonly [{
|
|
@@ -84,13 +79,28 @@ export declare const MyToken_jsonAbi: readonly [{
|
|
|
84
79
|
readonly name: "Transfer";
|
|
85
80
|
readonly type: "event";
|
|
86
81
|
}, {
|
|
82
|
+
readonly anonymous: false;
|
|
87
83
|
readonly inputs: readonly [{
|
|
84
|
+
readonly indexed: true;
|
|
88
85
|
readonly internalType: "address";
|
|
89
|
-
readonly name: "";
|
|
86
|
+
readonly name: "account";
|
|
90
87
|
readonly type: "address";
|
|
91
88
|
}, {
|
|
89
|
+
readonly indexed: false;
|
|
90
|
+
readonly internalType: "uint256";
|
|
91
|
+
readonly name: "amount";
|
|
92
|
+
readonly type: "uint256";
|
|
93
|
+
}];
|
|
94
|
+
readonly name: "Unfreeze";
|
|
95
|
+
readonly type: "event";
|
|
96
|
+
}, {
|
|
97
|
+
readonly inputs: readonly [{
|
|
92
98
|
readonly internalType: "address";
|
|
93
|
-
readonly name: "";
|
|
99
|
+
readonly name: "tokenOwner";
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
}, {
|
|
102
|
+
readonly internalType: "address";
|
|
103
|
+
readonly name: "spender";
|
|
94
104
|
readonly type: "address";
|
|
95
105
|
}];
|
|
96
106
|
readonly name: "allowance";
|
|
@@ -108,7 +118,7 @@ export declare const MyToken_jsonAbi: readonly [{
|
|
|
108
118
|
readonly type: "address";
|
|
109
119
|
}, {
|
|
110
120
|
readonly internalType: "uint256";
|
|
111
|
-
readonly name: "
|
|
121
|
+
readonly name: "amount";
|
|
112
122
|
readonly type: "uint256";
|
|
113
123
|
}];
|
|
114
124
|
readonly name: "approve";
|
|
@@ -122,10 +132,10 @@ export declare const MyToken_jsonAbi: readonly [{
|
|
|
122
132
|
}, {
|
|
123
133
|
readonly inputs: readonly [{
|
|
124
134
|
readonly internalType: "address";
|
|
125
|
-
readonly name: "";
|
|
135
|
+
readonly name: "account";
|
|
126
136
|
readonly type: "address";
|
|
127
137
|
}];
|
|
128
|
-
readonly name: "
|
|
138
|
+
readonly name: "availableBalanceOf";
|
|
129
139
|
readonly outputs: readonly [{
|
|
130
140
|
readonly internalType: "uint256";
|
|
131
141
|
readonly name: "";
|
|
@@ -134,8 +144,12 @@ export declare const MyToken_jsonAbi: readonly [{
|
|
|
134
144
|
readonly stateMutability: "view";
|
|
135
145
|
readonly type: "function";
|
|
136
146
|
}, {
|
|
137
|
-
readonly inputs: readonly [
|
|
138
|
-
|
|
147
|
+
readonly inputs: readonly [{
|
|
148
|
+
readonly internalType: "address";
|
|
149
|
+
readonly name: "account";
|
|
150
|
+
readonly type: "address";
|
|
151
|
+
}];
|
|
152
|
+
readonly name: "balanceOf";
|
|
139
153
|
readonly outputs: readonly [{
|
|
140
154
|
readonly internalType: "uint256";
|
|
141
155
|
readonly name: "";
|
|
@@ -154,27 +168,71 @@ export declare const MyToken_jsonAbi: readonly [{
|
|
|
154
168
|
readonly stateMutability: "view";
|
|
155
169
|
readonly type: "function";
|
|
156
170
|
}, {
|
|
157
|
-
readonly inputs: readonly [
|
|
158
|
-
|
|
171
|
+
readonly inputs: readonly [{
|
|
172
|
+
readonly internalType: "address";
|
|
173
|
+
readonly name: "spender";
|
|
174
|
+
readonly type: "address";
|
|
175
|
+
}, {
|
|
176
|
+
readonly internalType: "uint256";
|
|
177
|
+
readonly name: "subtractedValue";
|
|
178
|
+
readonly type: "uint256";
|
|
179
|
+
}];
|
|
180
|
+
readonly name: "decreaseAllowance";
|
|
159
181
|
readonly outputs: readonly [{
|
|
160
|
-
readonly internalType: "
|
|
182
|
+
readonly internalType: "bool";
|
|
161
183
|
readonly name: "";
|
|
162
|
-
readonly type: "
|
|
184
|
+
readonly type: "bool";
|
|
163
185
|
}];
|
|
164
|
-
readonly stateMutability: "
|
|
186
|
+
readonly stateMutability: "nonpayable";
|
|
165
187
|
readonly type: "function";
|
|
166
188
|
}, {
|
|
167
189
|
readonly inputs: readonly [{
|
|
168
190
|
readonly internalType: "address";
|
|
169
|
-
readonly name: "
|
|
191
|
+
readonly name: "account";
|
|
170
192
|
readonly type: "address";
|
|
171
193
|
}, {
|
|
172
194
|
readonly internalType: "uint256";
|
|
173
195
|
readonly name: "amount";
|
|
174
196
|
readonly type: "uint256";
|
|
175
197
|
}];
|
|
176
|
-
readonly name: "
|
|
177
|
-
readonly outputs: readonly [
|
|
198
|
+
readonly name: "freezeBalance";
|
|
199
|
+
readonly outputs: readonly [{
|
|
200
|
+
readonly internalType: "bool";
|
|
201
|
+
readonly name: "";
|
|
202
|
+
readonly type: "bool";
|
|
203
|
+
}];
|
|
204
|
+
readonly stateMutability: "nonpayable";
|
|
205
|
+
readonly type: "function";
|
|
206
|
+
}, {
|
|
207
|
+
readonly inputs: readonly [{
|
|
208
|
+
readonly internalType: "address";
|
|
209
|
+
readonly name: "account";
|
|
210
|
+
readonly type: "address";
|
|
211
|
+
}];
|
|
212
|
+
readonly name: "frozenBalanceOf";
|
|
213
|
+
readonly outputs: readonly [{
|
|
214
|
+
readonly internalType: "uint256";
|
|
215
|
+
readonly name: "";
|
|
216
|
+
readonly type: "uint256";
|
|
217
|
+
}];
|
|
218
|
+
readonly stateMutability: "view";
|
|
219
|
+
readonly type: "function";
|
|
220
|
+
}, {
|
|
221
|
+
readonly inputs: readonly [{
|
|
222
|
+
readonly internalType: "address";
|
|
223
|
+
readonly name: "spender";
|
|
224
|
+
readonly type: "address";
|
|
225
|
+
}, {
|
|
226
|
+
readonly internalType: "uint256";
|
|
227
|
+
readonly name: "addedValue";
|
|
228
|
+
readonly type: "uint256";
|
|
229
|
+
}];
|
|
230
|
+
readonly name: "increaseAllowance";
|
|
231
|
+
readonly outputs: readonly [{
|
|
232
|
+
readonly internalType: "bool";
|
|
233
|
+
readonly name: "";
|
|
234
|
+
readonly type: "bool";
|
|
235
|
+
}];
|
|
178
236
|
readonly stateMutability: "nonpayable";
|
|
179
237
|
readonly type: "function";
|
|
180
238
|
}, {
|
|
@@ -197,22 +255,6 @@ export declare const MyToken_jsonAbi: readonly [{
|
|
|
197
255
|
}];
|
|
198
256
|
readonly stateMutability: "view";
|
|
199
257
|
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";
|
|
216
258
|
}, {
|
|
217
259
|
readonly inputs: readonly [];
|
|
218
260
|
readonly name: "symbol";
|
|
@@ -240,7 +282,7 @@ export declare const MyToken_jsonAbi: readonly [{
|
|
|
240
282
|
readonly type: "address";
|
|
241
283
|
}, {
|
|
242
284
|
readonly internalType: "uint256";
|
|
243
|
-
readonly name: "
|
|
285
|
+
readonly name: "amount";
|
|
244
286
|
readonly type: "uint256";
|
|
245
287
|
}];
|
|
246
288
|
readonly name: "transfer";
|
|
@@ -262,7 +304,7 @@ export declare const MyToken_jsonAbi: readonly [{
|
|
|
262
304
|
readonly type: "address";
|
|
263
305
|
}, {
|
|
264
306
|
readonly internalType: "uint256";
|
|
265
|
-
readonly name: "
|
|
307
|
+
readonly name: "amount";
|
|
266
308
|
readonly type: "uint256";
|
|
267
309
|
}];
|
|
268
310
|
readonly name: "transferFrom";
|
|
@@ -280,20 +322,60 @@ export declare const MyToken_jsonAbi: readonly [{
|
|
|
280
322
|
readonly type: "address";
|
|
281
323
|
}];
|
|
282
324
|
readonly name: "transferOwnership";
|
|
283
|
-
readonly outputs: readonly [
|
|
325
|
+
readonly outputs: readonly [{
|
|
326
|
+
readonly internalType: "bool";
|
|
327
|
+
readonly name: "";
|
|
328
|
+
readonly type: "bool";
|
|
329
|
+
}];
|
|
330
|
+
readonly stateMutability: "nonpayable";
|
|
331
|
+
readonly type: "function";
|
|
332
|
+
}, {
|
|
333
|
+
readonly inputs: readonly [{
|
|
334
|
+
readonly internalType: "address";
|
|
335
|
+
readonly name: "to";
|
|
336
|
+
readonly type: "address";
|
|
337
|
+
}, {
|
|
338
|
+
readonly internalType: "uint256";
|
|
339
|
+
readonly name: "amount";
|
|
340
|
+
readonly type: "uint256";
|
|
341
|
+
}];
|
|
342
|
+
readonly name: "transferWithFreeze";
|
|
343
|
+
readonly outputs: readonly [{
|
|
344
|
+
readonly internalType: "bool";
|
|
345
|
+
readonly name: "";
|
|
346
|
+
readonly type: "bool";
|
|
347
|
+
}];
|
|
348
|
+
readonly stateMutability: "nonpayable";
|
|
349
|
+
readonly type: "function";
|
|
350
|
+
}, {
|
|
351
|
+
readonly inputs: readonly [{
|
|
352
|
+
readonly internalType: "address";
|
|
353
|
+
readonly name: "account";
|
|
354
|
+
readonly type: "address";
|
|
355
|
+
}, {
|
|
356
|
+
readonly internalType: "uint256";
|
|
357
|
+
readonly name: "amount";
|
|
358
|
+
readonly type: "uint256";
|
|
359
|
+
}];
|
|
360
|
+
readonly name: "unfreezeBalance";
|
|
361
|
+
readonly outputs: readonly [{
|
|
362
|
+
readonly internalType: "bool";
|
|
363
|
+
readonly name: "";
|
|
364
|
+
readonly type: "bool";
|
|
365
|
+
}];
|
|
284
366
|
readonly stateMutability: "nonpayable";
|
|
285
367
|
readonly type: "function";
|
|
286
368
|
}];
|
|
287
369
|
/**
|
|
288
|
-
* Type-safe ABI for
|
|
370
|
+
* Type-safe ABI for Tether_json
|
|
289
371
|
*/
|
|
290
|
-
export type
|
|
372
|
+
export type Tether_jsonAbi = typeof Tether_jsonAbi;
|
|
291
373
|
/**
|
|
292
|
-
* Contract instance type for
|
|
374
|
+
* Contract instance type for Tether_json
|
|
293
375
|
*/
|
|
294
|
-
export type
|
|
376
|
+
export type Tether_jsonContract = any;
|
|
295
377
|
/**
|
|
296
|
-
*
|
|
378
|
+
* Tether_json Contract Class
|
|
297
379
|
*
|
|
298
380
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
299
381
|
*
|
|
@@ -301,12 +383,12 @@ export type MyToken_jsonContract = any;
|
|
|
301
383
|
* ```typescript
|
|
302
384
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
303
385
|
* import { mainnet } from 'viem/chains';
|
|
304
|
-
* import {
|
|
386
|
+
* import { Tether_json } from 'Tether_json';
|
|
305
387
|
*
|
|
306
388
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
307
389
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
308
390
|
*
|
|
309
|
-
* const contract = new
|
|
391
|
+
* const contract = new Tether_json('0x...', { publicClient, walletClient });
|
|
310
392
|
*
|
|
311
393
|
* // Read functions
|
|
312
394
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -324,7 +406,7 @@ export type MyToken_jsonContract = any;
|
|
|
324
406
|
* });
|
|
325
407
|
* ```
|
|
326
408
|
*/
|
|
327
|
-
export declare class
|
|
409
|
+
export declare class Tether_json {
|
|
328
410
|
private contract;
|
|
329
411
|
private contractAddress;
|
|
330
412
|
private publicClient;
|
|
@@ -339,32 +421,32 @@ export declare class MyToken_json {
|
|
|
339
421
|
/**
|
|
340
422
|
* Get the underlying viem contract instance
|
|
341
423
|
*/
|
|
342
|
-
getContract():
|
|
424
|
+
getContract(): Tether_jsonContract;
|
|
343
425
|
/**
|
|
344
426
|
* allowance
|
|
345
427
|
* view
|
|
346
428
|
*/
|
|
347
|
-
allowance(
|
|
429
|
+
allowance(tokenOwner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
348
430
|
/**
|
|
349
|
-
*
|
|
431
|
+
* availableBalanceOf
|
|
350
432
|
* view
|
|
351
433
|
*/
|
|
352
|
-
|
|
434
|
+
availableBalanceOf(account: `0x${string}`): Promise<bigint>;
|
|
353
435
|
/**
|
|
354
|
-
*
|
|
436
|
+
* balanceOf
|
|
355
437
|
* view
|
|
356
438
|
*/
|
|
357
|
-
|
|
439
|
+
balanceOf(account: `0x${string}`): Promise<bigint>;
|
|
358
440
|
/**
|
|
359
441
|
* decimals
|
|
360
442
|
* view
|
|
361
443
|
*/
|
|
362
444
|
decimals(): Promise<bigint>;
|
|
363
445
|
/**
|
|
364
|
-
*
|
|
446
|
+
* frozenBalanceOf
|
|
365
447
|
* view
|
|
366
448
|
*/
|
|
367
|
-
|
|
449
|
+
frozenBalanceOf(account: `0x${string}`): Promise<bigint>;
|
|
368
450
|
/**
|
|
369
451
|
* name
|
|
370
452
|
* view
|
|
@@ -390,7 +472,7 @@ export declare class MyToken_json {
|
|
|
390
472
|
* nonpayable
|
|
391
473
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
392
474
|
*/
|
|
393
|
-
approve(spender: `0x${string}`,
|
|
475
|
+
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
394
476
|
accessList?: import('viem').AccessList;
|
|
395
477
|
authorizationList?: import('viem').AuthorizationList;
|
|
396
478
|
chain?: import('viem').Chain | null;
|
|
@@ -403,11 +485,11 @@ export declare class MyToken_json {
|
|
|
403
485
|
value?: bigint;
|
|
404
486
|
}): Promise<`0x${string}`>;
|
|
405
487
|
/**
|
|
406
|
-
*
|
|
488
|
+
* decreaseAllowance
|
|
407
489
|
* nonpayable
|
|
408
490
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
409
491
|
*/
|
|
410
|
-
|
|
492
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
411
493
|
accessList?: import('viem').AccessList;
|
|
412
494
|
authorizationList?: import('viem').AuthorizationList;
|
|
413
495
|
chain?: import('viem').Chain | null;
|
|
@@ -420,11 +502,11 @@ export declare class MyToken_json {
|
|
|
420
502
|
value?: bigint;
|
|
421
503
|
}): Promise<`0x${string}`>;
|
|
422
504
|
/**
|
|
423
|
-
*
|
|
505
|
+
* freezeBalance
|
|
424
506
|
* nonpayable
|
|
425
507
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
426
508
|
*/
|
|
427
|
-
|
|
509
|
+
freezeBalance(account: `0x${string}`, amount: bigint, options?: {
|
|
428
510
|
accessList?: import('viem').AccessList;
|
|
429
511
|
authorizationList?: import('viem').AuthorizationList;
|
|
430
512
|
chain?: import('viem').Chain | null;
|
|
@@ -437,11 +519,11 @@ export declare class MyToken_json {
|
|
|
437
519
|
value?: bigint;
|
|
438
520
|
}): Promise<`0x${string}`>;
|
|
439
521
|
/**
|
|
440
|
-
*
|
|
522
|
+
* increaseAllowance
|
|
441
523
|
* nonpayable
|
|
442
524
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
443
525
|
*/
|
|
444
|
-
|
|
526
|
+
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
445
527
|
accessList?: import('viem').AccessList;
|
|
446
528
|
authorizationList?: import('viem').AuthorizationList;
|
|
447
529
|
chain?: import('viem').Chain | null;
|
|
@@ -458,7 +540,7 @@ export declare class MyToken_json {
|
|
|
458
540
|
* nonpayable
|
|
459
541
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
460
542
|
*/
|
|
461
|
-
transfer(to: `0x${string}`,
|
|
543
|
+
transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
462
544
|
accessList?: import('viem').AccessList;
|
|
463
545
|
authorizationList?: import('viem').AuthorizationList;
|
|
464
546
|
chain?: import('viem').Chain | null;
|
|
@@ -475,7 +557,7 @@ export declare class MyToken_json {
|
|
|
475
557
|
* nonpayable
|
|
476
558
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
477
559
|
*/
|
|
478
|
-
transferFrom(from: `0x${string}`, to: `0x${string}`,
|
|
560
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
479
561
|
accessList?: import('viem').AccessList;
|
|
480
562
|
authorizationList?: import('viem').AuthorizationList;
|
|
481
563
|
chain?: import('viem').Chain | null;
|
|
@@ -504,6 +586,40 @@ export declare class MyToken_json {
|
|
|
504
586
|
nonce?: number;
|
|
505
587
|
value?: bigint;
|
|
506
588
|
}): Promise<`0x${string}`>;
|
|
589
|
+
/**
|
|
590
|
+
* transferWithFreeze
|
|
591
|
+
* nonpayable
|
|
592
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
593
|
+
*/
|
|
594
|
+
transferWithFreeze(to: `0x${string}`, amount: bigint, options?: {
|
|
595
|
+
accessList?: import('viem').AccessList;
|
|
596
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
597
|
+
chain?: import('viem').Chain | null;
|
|
598
|
+
dataSuffix?: `0x${string}`;
|
|
599
|
+
gas?: bigint;
|
|
600
|
+
gasPrice?: bigint;
|
|
601
|
+
maxFeePerGas?: bigint;
|
|
602
|
+
maxPriorityFeePerGas?: bigint;
|
|
603
|
+
nonce?: number;
|
|
604
|
+
value?: bigint;
|
|
605
|
+
}): Promise<`0x${string}`>;
|
|
606
|
+
/**
|
|
607
|
+
* unfreezeBalance
|
|
608
|
+
* nonpayable
|
|
609
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
610
|
+
*/
|
|
611
|
+
unfreezeBalance(account: `0x${string}`, amount: bigint, options?: {
|
|
612
|
+
accessList?: import('viem').AccessList;
|
|
613
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
614
|
+
chain?: import('viem').Chain | null;
|
|
615
|
+
dataSuffix?: `0x${string}`;
|
|
616
|
+
gas?: bigint;
|
|
617
|
+
gasPrice?: bigint;
|
|
618
|
+
maxFeePerGas?: bigint;
|
|
619
|
+
maxPriorityFeePerGas?: bigint;
|
|
620
|
+
nonce?: number;
|
|
621
|
+
value?: bigint;
|
|
622
|
+
}): Promise<`0x${string}`>;
|
|
507
623
|
/**
|
|
508
624
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
509
625
|
*
|
|
@@ -518,7 +634,7 @@ export declare class MyToken_json {
|
|
|
518
634
|
* Returns gas estimate and result without sending transaction
|
|
519
635
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
520
636
|
*/
|
|
521
|
-
approve(spender: `0x${string}`,
|
|
637
|
+
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
522
638
|
accessList?: import("viem").AccessList;
|
|
523
639
|
authorizationList?: import("viem").AuthorizationList;
|
|
524
640
|
chain?: import("viem").Chain | null;
|
|
@@ -531,11 +647,11 @@ export declare class MyToken_json {
|
|
|
531
647
|
value?: bigint;
|
|
532
648
|
}): Promise<boolean>;
|
|
533
649
|
/**
|
|
534
|
-
* Simulate
|
|
650
|
+
* Simulate decreaseAllowance
|
|
535
651
|
* Returns gas estimate and result without sending transaction
|
|
536
652
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
537
653
|
*/
|
|
538
|
-
|
|
654
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
539
655
|
accessList?: import("viem").AccessList;
|
|
540
656
|
authorizationList?: import("viem").AuthorizationList;
|
|
541
657
|
chain?: import("viem").Chain | null;
|
|
@@ -546,13 +662,13 @@ export declare class MyToken_json {
|
|
|
546
662
|
maxPriorityFeePerGas?: bigint;
|
|
547
663
|
nonce?: number;
|
|
548
664
|
value?: bigint;
|
|
549
|
-
}): Promise<
|
|
665
|
+
}): Promise<boolean>;
|
|
550
666
|
/**
|
|
551
|
-
* Simulate
|
|
667
|
+
* Simulate freezeBalance
|
|
552
668
|
* Returns gas estimate and result without sending transaction
|
|
553
669
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
554
670
|
*/
|
|
555
|
-
|
|
671
|
+
freezeBalance(account: `0x${string}`, amount: bigint, options?: {
|
|
556
672
|
accessList?: import("viem").AccessList;
|
|
557
673
|
authorizationList?: import("viem").AuthorizationList;
|
|
558
674
|
chain?: import("viem").Chain | null;
|
|
@@ -563,13 +679,13 @@ export declare class MyToken_json {
|
|
|
563
679
|
maxPriorityFeePerGas?: bigint;
|
|
564
680
|
nonce?: number;
|
|
565
681
|
value?: bigint;
|
|
566
|
-
}): Promise<
|
|
682
|
+
}): Promise<boolean>;
|
|
567
683
|
/**
|
|
568
|
-
* Simulate
|
|
684
|
+
* Simulate increaseAllowance
|
|
569
685
|
* Returns gas estimate and result without sending transaction
|
|
570
686
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
571
687
|
*/
|
|
572
|
-
|
|
688
|
+
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
573
689
|
accessList?: import("viem").AccessList;
|
|
574
690
|
authorizationList?: import("viem").AuthorizationList;
|
|
575
691
|
chain?: import("viem").Chain | null;
|
|
@@ -580,13 +696,13 @@ export declare class MyToken_json {
|
|
|
580
696
|
maxPriorityFeePerGas?: bigint;
|
|
581
697
|
nonce?: number;
|
|
582
698
|
value?: bigint;
|
|
583
|
-
}): Promise<
|
|
699
|
+
}): Promise<boolean>;
|
|
584
700
|
/**
|
|
585
701
|
* Simulate transfer
|
|
586
702
|
* Returns gas estimate and result without sending transaction
|
|
587
703
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
588
704
|
*/
|
|
589
|
-
transfer(to: `0x${string}`,
|
|
705
|
+
transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
590
706
|
accessList?: import("viem").AccessList;
|
|
591
707
|
authorizationList?: import("viem").AuthorizationList;
|
|
592
708
|
chain?: import("viem").Chain | null;
|
|
@@ -603,7 +719,7 @@ export declare class MyToken_json {
|
|
|
603
719
|
* Returns gas estimate and result without sending transaction
|
|
604
720
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
605
721
|
*/
|
|
606
|
-
transferFrom(from: `0x${string}`, to: `0x${string}`,
|
|
722
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
607
723
|
accessList?: import("viem").AccessList;
|
|
608
724
|
authorizationList?: import("viem").AuthorizationList;
|
|
609
725
|
chain?: import("viem").Chain | null;
|
|
@@ -631,7 +747,41 @@ export declare class MyToken_json {
|
|
|
631
747
|
maxPriorityFeePerGas?: bigint;
|
|
632
748
|
nonce?: number;
|
|
633
749
|
value?: bigint;
|
|
634
|
-
}): Promise<
|
|
750
|
+
}): Promise<boolean>;
|
|
751
|
+
/**
|
|
752
|
+
* Simulate transferWithFreeze
|
|
753
|
+
* Returns gas estimate and result without sending transaction
|
|
754
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
755
|
+
*/
|
|
756
|
+
transferWithFreeze(to: `0x${string}`, amount: bigint, options?: {
|
|
757
|
+
accessList?: import("viem").AccessList;
|
|
758
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
759
|
+
chain?: import("viem").Chain | null;
|
|
760
|
+
dataSuffix?: `0x${string}`;
|
|
761
|
+
gas?: bigint;
|
|
762
|
+
gasPrice?: bigint;
|
|
763
|
+
maxFeePerGas?: bigint;
|
|
764
|
+
maxPriorityFeePerGas?: bigint;
|
|
765
|
+
nonce?: number;
|
|
766
|
+
value?: bigint;
|
|
767
|
+
}): Promise<boolean>;
|
|
768
|
+
/**
|
|
769
|
+
* Simulate unfreezeBalance
|
|
770
|
+
* Returns gas estimate and result without sending transaction
|
|
771
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
772
|
+
*/
|
|
773
|
+
unfreezeBalance(account: `0x${string}`, amount: bigint, options?: {
|
|
774
|
+
accessList?: import("viem").AccessList;
|
|
775
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
776
|
+
chain?: import("viem").Chain | null;
|
|
777
|
+
dataSuffix?: `0x${string}`;
|
|
778
|
+
gas?: bigint;
|
|
779
|
+
gasPrice?: bigint;
|
|
780
|
+
maxFeePerGas?: bigint;
|
|
781
|
+
maxPriorityFeePerGas?: bigint;
|
|
782
|
+
nonce?: number;
|
|
783
|
+
value?: bigint;
|
|
784
|
+
}): Promise<boolean>;
|
|
635
785
|
};
|
|
636
786
|
/**
|
|
637
787
|
* Watch contract events
|
|
@@ -653,13 +803,25 @@ export declare class MyToken_json {
|
|
|
653
803
|
* @returns Unwatch function to stop listening
|
|
654
804
|
*/
|
|
655
805
|
Approval: (callback: (event: {
|
|
656
|
-
|
|
806
|
+
tokenOwner: `0x${string}`;
|
|
657
807
|
spender: `0x${string}`;
|
|
658
808
|
value: bigint;
|
|
659
809
|
}) => void, filter?: {
|
|
660
|
-
|
|
810
|
+
tokenOwner: `0x${string}`;
|
|
661
811
|
spender: `0x${string}`;
|
|
662
812
|
}) => () => void;
|
|
813
|
+
/**
|
|
814
|
+
* Watch Freeze events
|
|
815
|
+
* @param callback Function to call when event is emitted
|
|
816
|
+
* @param filter Optional filter for indexed parameters
|
|
817
|
+
* @returns Unwatch function to stop listening
|
|
818
|
+
*/
|
|
819
|
+
Freeze: (callback: (event: {
|
|
820
|
+
account: `0x${string}`;
|
|
821
|
+
amount: bigint;
|
|
822
|
+
}) => void, filter?: {
|
|
823
|
+
account: `0x${string}`;
|
|
824
|
+
}) => () => void;
|
|
663
825
|
/**
|
|
664
826
|
* Watch OwnershipTransferred events
|
|
665
827
|
* @param callback Function to call when event is emitted
|
|
@@ -687,5 +849,17 @@ export declare class MyToken_json {
|
|
|
687
849
|
from: `0x${string}`;
|
|
688
850
|
to: `0x${string}`;
|
|
689
851
|
}) => () => void;
|
|
852
|
+
/**
|
|
853
|
+
* Watch Unfreeze events
|
|
854
|
+
* @param callback Function to call when event is emitted
|
|
855
|
+
* @param filter Optional filter for indexed parameters
|
|
856
|
+
* @returns Unwatch function to stop listening
|
|
857
|
+
*/
|
|
858
|
+
Unfreeze: (callback: (event: {
|
|
859
|
+
account: `0x${string}`;
|
|
860
|
+
amount: bigint;
|
|
861
|
+
}) => void, filter?: {
|
|
862
|
+
account: `0x${string}`;
|
|
863
|
+
}) => () => void;
|
|
690
864
|
};
|
|
691
865
|
}
|