@gitmyabi/dot 1.0.0 → 1.0.1
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/{ERC20Token_json.d.ts → Token_json.d.ts} +116 -323
- package/contracts/{ERC20Token_json.js → Token_json.js} +143 -332
- package/contracts/{ERC20Token_json.ts → Token_json.ts} +149 -431
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Token_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 Token_jsonAbi: readonly [{
|
|
8
8
|
readonly inputs: readonly [{
|
|
9
9
|
readonly internalType: "string";
|
|
10
|
-
readonly name: "
|
|
10
|
+
readonly name: "_name";
|
|
11
11
|
readonly type: "string";
|
|
12
12
|
}, {
|
|
13
13
|
readonly internalType: "string";
|
|
14
|
-
readonly name: "
|
|
14
|
+
readonly name: "_symbol";
|
|
15
15
|
readonly type: "string";
|
|
16
|
-
}, {
|
|
17
|
-
readonly internalType: "uint256";
|
|
18
|
-
readonly name: "initSupply";
|
|
19
|
-
readonly type: "uint256";
|
|
20
16
|
}, {
|
|
21
17
|
readonly internalType: "uint8";
|
|
22
|
-
readonly name: "
|
|
18
|
+
readonly name: "_decimals";
|
|
23
19
|
readonly type: "uint8";
|
|
24
20
|
}];
|
|
25
21
|
readonly stateMutability: "nonpayable";
|
|
@@ -38,7 +34,7 @@ export declare const ERC20Token_jsonAbi: readonly [{
|
|
|
38
34
|
readonly name: "needed";
|
|
39
35
|
readonly type: "uint256";
|
|
40
36
|
}];
|
|
41
|
-
readonly name: "
|
|
37
|
+
readonly name: "InsufficientAllowance";
|
|
42
38
|
readonly type: "error";
|
|
43
39
|
}, {
|
|
44
40
|
readonly inputs: readonly [{
|
|
@@ -54,55 +50,51 @@ export declare const ERC20Token_jsonAbi: readonly [{
|
|
|
54
50
|
readonly name: "needed";
|
|
55
51
|
readonly type: "uint256";
|
|
56
52
|
}];
|
|
57
|
-
readonly name: "
|
|
53
|
+
readonly name: "InsufficientBalance";
|
|
58
54
|
readonly type: "error";
|
|
59
55
|
}, {
|
|
60
56
|
readonly inputs: readonly [{
|
|
61
57
|
readonly internalType: "address";
|
|
62
|
-
readonly name: "
|
|
58
|
+
readonly name: "";
|
|
63
59
|
readonly type: "address";
|
|
64
60
|
}];
|
|
65
|
-
readonly name: "
|
|
61
|
+
readonly name: "InvalidApprover";
|
|
66
62
|
readonly type: "error";
|
|
67
63
|
}, {
|
|
68
64
|
readonly inputs: readonly [{
|
|
69
65
|
readonly internalType: "address";
|
|
70
|
-
readonly name: "
|
|
66
|
+
readonly name: "";
|
|
71
67
|
readonly type: "address";
|
|
72
68
|
}];
|
|
73
|
-
readonly name: "
|
|
69
|
+
readonly name: "InvalidReceiver";
|
|
74
70
|
readonly type: "error";
|
|
75
71
|
}, {
|
|
76
72
|
readonly inputs: readonly [{
|
|
77
73
|
readonly internalType: "address";
|
|
78
|
-
readonly name: "
|
|
74
|
+
readonly name: "";
|
|
79
75
|
readonly type: "address";
|
|
80
76
|
}];
|
|
81
|
-
readonly name: "
|
|
77
|
+
readonly name: "InvalidSender";
|
|
82
78
|
readonly type: "error";
|
|
83
79
|
}, {
|
|
84
|
-
readonly inputs: readonly [
|
|
85
|
-
|
|
86
|
-
readonly name: "spender";
|
|
87
|
-
readonly type: "address";
|
|
88
|
-
}];
|
|
89
|
-
readonly name: "ERC20InvalidSpender";
|
|
80
|
+
readonly inputs: readonly [];
|
|
81
|
+
readonly name: "InvalidSignature";
|
|
90
82
|
readonly type: "error";
|
|
91
83
|
}, {
|
|
92
84
|
readonly inputs: readonly [{
|
|
93
85
|
readonly internalType: "address";
|
|
94
|
-
readonly name: "
|
|
86
|
+
readonly name: "";
|
|
95
87
|
readonly type: "address";
|
|
96
88
|
}];
|
|
97
|
-
readonly name: "
|
|
89
|
+
readonly name: "InvalidSpender";
|
|
98
90
|
readonly type: "error";
|
|
99
91
|
}, {
|
|
100
|
-
readonly inputs: readonly [
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
readonly name: "
|
|
92
|
+
readonly inputs: readonly [];
|
|
93
|
+
readonly name: "PermitExpired";
|
|
94
|
+
readonly type: "error";
|
|
95
|
+
}, {
|
|
96
|
+
readonly inputs: readonly [];
|
|
97
|
+
readonly name: "Unauthorized";
|
|
106
98
|
readonly type: "error";
|
|
107
99
|
}, {
|
|
108
100
|
readonly anonymous: false;
|
|
@@ -124,51 +116,6 @@ export declare const ERC20Token_jsonAbi: readonly [{
|
|
|
124
116
|
}];
|
|
125
117
|
readonly name: "Approval";
|
|
126
118
|
readonly type: "event";
|
|
127
|
-
}, {
|
|
128
|
-
readonly anonymous: false;
|
|
129
|
-
readonly inputs: readonly [{
|
|
130
|
-
readonly indexed: true;
|
|
131
|
-
readonly internalType: "address";
|
|
132
|
-
readonly name: "previousOwner";
|
|
133
|
-
readonly type: "address";
|
|
134
|
-
}, {
|
|
135
|
-
readonly indexed: true;
|
|
136
|
-
readonly internalType: "address";
|
|
137
|
-
readonly name: "newOwner";
|
|
138
|
-
readonly type: "address";
|
|
139
|
-
}];
|
|
140
|
-
readonly name: "OwnershipTransferred";
|
|
141
|
-
readonly type: "event";
|
|
142
|
-
}, {
|
|
143
|
-
readonly anonymous: false;
|
|
144
|
-
readonly inputs: readonly [{
|
|
145
|
-
readonly indexed: false;
|
|
146
|
-
readonly internalType: "uint8";
|
|
147
|
-
readonly name: "precision";
|
|
148
|
-
readonly type: "uint8";
|
|
149
|
-
}];
|
|
150
|
-
readonly name: "SetDecimals";
|
|
151
|
-
readonly type: "event";
|
|
152
|
-
}, {
|
|
153
|
-
readonly anonymous: false;
|
|
154
|
-
readonly inputs: readonly [{
|
|
155
|
-
readonly indexed: false;
|
|
156
|
-
readonly internalType: "string";
|
|
157
|
-
readonly name: "name";
|
|
158
|
-
readonly type: "string";
|
|
159
|
-
}];
|
|
160
|
-
readonly name: "SetName";
|
|
161
|
-
readonly type: "event";
|
|
162
|
-
}, {
|
|
163
|
-
readonly anonymous: false;
|
|
164
|
-
readonly inputs: readonly [{
|
|
165
|
-
readonly indexed: false;
|
|
166
|
-
readonly internalType: "string";
|
|
167
|
-
readonly name: "symbol";
|
|
168
|
-
readonly type: "string";
|
|
169
|
-
}];
|
|
170
|
-
readonly name: "SetSymbol";
|
|
171
|
-
readonly type: "event";
|
|
172
119
|
}, {
|
|
173
120
|
readonly anonymous: false;
|
|
174
121
|
readonly inputs: readonly [{
|
|
@@ -189,10 +136,20 @@ export declare const ERC20Token_jsonAbi: readonly [{
|
|
|
189
136
|
}];
|
|
190
137
|
readonly name: "Transfer";
|
|
191
138
|
readonly type: "event";
|
|
139
|
+
}, {
|
|
140
|
+
readonly inputs: readonly [];
|
|
141
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
142
|
+
readonly outputs: readonly [{
|
|
143
|
+
readonly internalType: "bytes32";
|
|
144
|
+
readonly name: "";
|
|
145
|
+
readonly type: "bytes32";
|
|
146
|
+
}];
|
|
147
|
+
readonly stateMutability: "view";
|
|
148
|
+
readonly type: "function";
|
|
192
149
|
}, {
|
|
193
150
|
readonly inputs: readonly [{
|
|
194
151
|
readonly internalType: "address";
|
|
195
|
-
readonly name: "
|
|
152
|
+
readonly name: "_owner";
|
|
196
153
|
readonly type: "address";
|
|
197
154
|
}, {
|
|
198
155
|
readonly internalType: "address";
|
|
@@ -214,7 +171,7 @@ export declare const ERC20Token_jsonAbi: readonly [{
|
|
|
214
171
|
readonly type: "address";
|
|
215
172
|
}, {
|
|
216
173
|
readonly internalType: "uint256";
|
|
217
|
-
readonly name: "
|
|
174
|
+
readonly name: "amount";
|
|
218
175
|
readonly type: "uint256";
|
|
219
176
|
}];
|
|
220
177
|
readonly name: "approve";
|
|
@@ -263,6 +220,16 @@ export declare const ERC20Token_jsonAbi: readonly [{
|
|
|
263
220
|
}];
|
|
264
221
|
readonly stateMutability: "view";
|
|
265
222
|
readonly type: "function";
|
|
223
|
+
}, {
|
|
224
|
+
readonly inputs: readonly [];
|
|
225
|
+
readonly name: "gateway";
|
|
226
|
+
readonly outputs: readonly [{
|
|
227
|
+
readonly internalType: "address";
|
|
228
|
+
readonly name: "";
|
|
229
|
+
readonly type: "address";
|
|
230
|
+
}];
|
|
231
|
+
readonly stateMutability: "view";
|
|
232
|
+
readonly type: "function";
|
|
266
233
|
}, {
|
|
267
234
|
readonly inputs: readonly [{
|
|
268
235
|
readonly internalType: "address";
|
|
@@ -288,48 +255,50 @@ export declare const ERC20Token_jsonAbi: readonly [{
|
|
|
288
255
|
readonly stateMutability: "view";
|
|
289
256
|
readonly type: "function";
|
|
290
257
|
}, {
|
|
291
|
-
readonly inputs: readonly [
|
|
292
|
-
readonly name: "owner";
|
|
293
|
-
readonly outputs: readonly [{
|
|
258
|
+
readonly inputs: readonly [{
|
|
294
259
|
readonly internalType: "address";
|
|
295
|
-
readonly name: "";
|
|
260
|
+
readonly name: "account";
|
|
296
261
|
readonly type: "address";
|
|
297
262
|
}];
|
|
263
|
+
readonly name: "nonces";
|
|
264
|
+
readonly outputs: readonly [{
|
|
265
|
+
readonly internalType: "uint256";
|
|
266
|
+
readonly name: "";
|
|
267
|
+
readonly type: "uint256";
|
|
268
|
+
}];
|
|
298
269
|
readonly stateMutability: "view";
|
|
299
270
|
readonly type: "function";
|
|
300
|
-
}, {
|
|
301
|
-
readonly inputs: readonly [];
|
|
302
|
-
readonly name: "renounceOwnership";
|
|
303
|
-
readonly outputs: readonly [];
|
|
304
|
-
readonly stateMutability: "nonpayable";
|
|
305
|
-
readonly type: "function";
|
|
306
271
|
}, {
|
|
307
272
|
readonly inputs: readonly [{
|
|
273
|
+
readonly internalType: "address";
|
|
274
|
+
readonly name: "issuer";
|
|
275
|
+
readonly type: "address";
|
|
276
|
+
}, {
|
|
277
|
+
readonly internalType: "address";
|
|
278
|
+
readonly name: "spender";
|
|
279
|
+
readonly type: "address";
|
|
280
|
+
}, {
|
|
281
|
+
readonly internalType: "uint256";
|
|
282
|
+
readonly name: "value";
|
|
283
|
+
readonly type: "uint256";
|
|
284
|
+
}, {
|
|
285
|
+
readonly internalType: "uint256";
|
|
286
|
+
readonly name: "deadline";
|
|
287
|
+
readonly type: "uint256";
|
|
288
|
+
}, {
|
|
308
289
|
readonly internalType: "uint8";
|
|
309
|
-
readonly name: "
|
|
290
|
+
readonly name: "v";
|
|
310
291
|
readonly type: "uint8";
|
|
292
|
+
}, {
|
|
293
|
+
readonly internalType: "bytes32";
|
|
294
|
+
readonly name: "r";
|
|
295
|
+
readonly type: "bytes32";
|
|
296
|
+
}, {
|
|
297
|
+
readonly internalType: "bytes32";
|
|
298
|
+
readonly name: "s";
|
|
299
|
+
readonly type: "bytes32";
|
|
311
300
|
}];
|
|
312
|
-
readonly name: "
|
|
313
|
-
readonly outputs: readonly [];
|
|
314
|
-
readonly stateMutability: "nonpayable";
|
|
315
|
-
readonly type: "function";
|
|
316
|
-
}, {
|
|
317
|
-
readonly inputs: readonly [{
|
|
318
|
-
readonly internalType: "string";
|
|
319
|
-
readonly name: "newName";
|
|
320
|
-
readonly type: "string";
|
|
321
|
-
}];
|
|
322
|
-
readonly name: "setName";
|
|
323
|
-
readonly outputs: readonly [];
|
|
324
|
-
readonly stateMutability: "nonpayable";
|
|
325
|
-
readonly type: "function";
|
|
326
|
-
}, {
|
|
327
|
-
readonly inputs: readonly [{
|
|
328
|
-
readonly internalType: "string";
|
|
329
|
-
readonly name: "newSymbol";
|
|
330
|
-
readonly type: "string";
|
|
331
|
-
}];
|
|
332
|
-
readonly name: "setSymbol";
|
|
301
|
+
readonly name: "permit";
|
|
333
302
|
readonly outputs: readonly [];
|
|
334
303
|
readonly stateMutability: "nonpayable";
|
|
335
304
|
readonly type: "function";
|
|
@@ -356,11 +325,11 @@ export declare const ERC20Token_jsonAbi: readonly [{
|
|
|
356
325
|
}, {
|
|
357
326
|
readonly inputs: readonly [{
|
|
358
327
|
readonly internalType: "address";
|
|
359
|
-
readonly name: "
|
|
328
|
+
readonly name: "recipient";
|
|
360
329
|
readonly type: "address";
|
|
361
330
|
}, {
|
|
362
331
|
readonly internalType: "uint256";
|
|
363
|
-
readonly name: "
|
|
332
|
+
readonly name: "amount";
|
|
364
333
|
readonly type: "uint256";
|
|
365
334
|
}];
|
|
366
335
|
readonly name: "transfer";
|
|
@@ -374,15 +343,15 @@ export declare const ERC20Token_jsonAbi: readonly [{
|
|
|
374
343
|
}, {
|
|
375
344
|
readonly inputs: readonly [{
|
|
376
345
|
readonly internalType: "address";
|
|
377
|
-
readonly name: "
|
|
346
|
+
readonly name: "sender";
|
|
378
347
|
readonly type: "address";
|
|
379
348
|
}, {
|
|
380
349
|
readonly internalType: "address";
|
|
381
|
-
readonly name: "
|
|
350
|
+
readonly name: "recipient";
|
|
382
351
|
readonly type: "address";
|
|
383
352
|
}, {
|
|
384
353
|
readonly internalType: "uint256";
|
|
385
|
-
readonly name: "
|
|
354
|
+
readonly name: "amount";
|
|
386
355
|
readonly type: "uint256";
|
|
387
356
|
}];
|
|
388
357
|
readonly name: "transferFrom";
|
|
@@ -393,27 +362,17 @@ export declare const ERC20Token_jsonAbi: readonly [{
|
|
|
393
362
|
}];
|
|
394
363
|
readonly stateMutability: "nonpayable";
|
|
395
364
|
readonly type: "function";
|
|
396
|
-
}, {
|
|
397
|
-
readonly inputs: readonly [{
|
|
398
|
-
readonly internalType: "address";
|
|
399
|
-
readonly name: "newOwner";
|
|
400
|
-
readonly type: "address";
|
|
401
|
-
}];
|
|
402
|
-
readonly name: "transferOwnership";
|
|
403
|
-
readonly outputs: readonly [];
|
|
404
|
-
readonly stateMutability: "nonpayable";
|
|
405
|
-
readonly type: "function";
|
|
406
365
|
}];
|
|
407
366
|
/**
|
|
408
|
-
* Type-safe ABI for
|
|
367
|
+
* Type-safe ABI for Token_json
|
|
409
368
|
*/
|
|
410
|
-
export type
|
|
369
|
+
export type Token_jsonAbi = typeof Token_jsonAbi;
|
|
411
370
|
/**
|
|
412
|
-
* Contract instance type for
|
|
371
|
+
* Contract instance type for Token_json
|
|
413
372
|
*/
|
|
414
|
-
export type
|
|
373
|
+
export type Token_jsonContract = any;
|
|
415
374
|
/**
|
|
416
|
-
*
|
|
375
|
+
* Token_json Contract Class
|
|
417
376
|
*
|
|
418
377
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
419
378
|
*
|
|
@@ -421,12 +380,12 @@ export type ERC20Token_jsonContract = any;
|
|
|
421
380
|
* ```typescript
|
|
422
381
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
423
382
|
* import { mainnet } from 'viem/chains';
|
|
424
|
-
* import {
|
|
383
|
+
* import { Token_json } from 'Token_json';
|
|
425
384
|
*
|
|
426
385
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
427
386
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
428
387
|
*
|
|
429
|
-
* const contract = new
|
|
388
|
+
* const contract = new Token_json('0x...', { publicClient, walletClient });
|
|
430
389
|
*
|
|
431
390
|
* // Read functions
|
|
432
391
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -444,7 +403,7 @@ export type ERC20Token_jsonContract = any;
|
|
|
444
403
|
* });
|
|
445
404
|
* ```
|
|
446
405
|
*/
|
|
447
|
-
export declare class
|
|
406
|
+
export declare class Token_json {
|
|
448
407
|
private contract;
|
|
449
408
|
private contractAddress;
|
|
450
409
|
private publicClient;
|
|
@@ -459,12 +418,17 @@ export declare class ERC20Token_json {
|
|
|
459
418
|
/**
|
|
460
419
|
* Get the underlying viem contract instance
|
|
461
420
|
*/
|
|
462
|
-
getContract():
|
|
421
|
+
getContract(): Token_jsonContract;
|
|
422
|
+
/**
|
|
423
|
+
* DOMAIN_SEPARATOR
|
|
424
|
+
* view
|
|
425
|
+
*/
|
|
426
|
+
DOMAIN_SEPARATOR(): Promise<`0x${string}`>;
|
|
463
427
|
/**
|
|
464
428
|
* allowance
|
|
465
429
|
* view
|
|
466
430
|
*/
|
|
467
|
-
allowance(
|
|
431
|
+
allowance(_owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
468
432
|
/**
|
|
469
433
|
* balanceOf
|
|
470
434
|
* view
|
|
@@ -475,16 +439,21 @@ export declare class ERC20Token_json {
|
|
|
475
439
|
* view
|
|
476
440
|
*/
|
|
477
441
|
decimals(): Promise<bigint>;
|
|
442
|
+
/**
|
|
443
|
+
* gateway
|
|
444
|
+
* view
|
|
445
|
+
*/
|
|
446
|
+
gateway(): Promise<`0x${string}`>;
|
|
478
447
|
/**
|
|
479
448
|
* name
|
|
480
449
|
* view
|
|
481
450
|
*/
|
|
482
451
|
name(): Promise<string>;
|
|
483
452
|
/**
|
|
484
|
-
*
|
|
453
|
+
* nonces
|
|
485
454
|
* view
|
|
486
455
|
*/
|
|
487
|
-
|
|
456
|
+
nonces(account: `0x${string}`): Promise<bigint>;
|
|
488
457
|
/**
|
|
489
458
|
* symbol
|
|
490
459
|
* view
|
|
@@ -500,7 +469,7 @@ export declare class ERC20Token_json {
|
|
|
500
469
|
* nonpayable
|
|
501
470
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
502
471
|
*/
|
|
503
|
-
approve(spender: `0x${string}`,
|
|
472
|
+
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
504
473
|
accessList?: import('viem').AccessList;
|
|
505
474
|
authorizationList?: import('viem').AuthorizationList;
|
|
506
475
|
chain?: import('viem').Chain | null;
|
|
@@ -547,62 +516,11 @@ export declare class ERC20Token_json {
|
|
|
547
516
|
value?: bigint;
|
|
548
517
|
}): Promise<`0x${string}`>;
|
|
549
518
|
/**
|
|
550
|
-
*
|
|
519
|
+
* permit
|
|
551
520
|
* nonpayable
|
|
552
521
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
553
522
|
*/
|
|
554
|
-
|
|
555
|
-
accessList?: import('viem').AccessList;
|
|
556
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
557
|
-
chain?: import('viem').Chain | null;
|
|
558
|
-
dataSuffix?: `0x${string}`;
|
|
559
|
-
gas?: bigint;
|
|
560
|
-
gasPrice?: bigint;
|
|
561
|
-
maxFeePerGas?: bigint;
|
|
562
|
-
maxPriorityFeePerGas?: bigint;
|
|
563
|
-
nonce?: number;
|
|
564
|
-
value?: bigint;
|
|
565
|
-
}): Promise<`0x${string}`>;
|
|
566
|
-
/**
|
|
567
|
-
* setDecimals
|
|
568
|
-
* nonpayable
|
|
569
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
570
|
-
*/
|
|
571
|
-
setDecimals(newDecimals: bigint, options?: {
|
|
572
|
-
accessList?: import('viem').AccessList;
|
|
573
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
574
|
-
chain?: import('viem').Chain | null;
|
|
575
|
-
dataSuffix?: `0x${string}`;
|
|
576
|
-
gas?: bigint;
|
|
577
|
-
gasPrice?: bigint;
|
|
578
|
-
maxFeePerGas?: bigint;
|
|
579
|
-
maxPriorityFeePerGas?: bigint;
|
|
580
|
-
nonce?: number;
|
|
581
|
-
value?: bigint;
|
|
582
|
-
}): Promise<`0x${string}`>;
|
|
583
|
-
/**
|
|
584
|
-
* setName
|
|
585
|
-
* nonpayable
|
|
586
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
587
|
-
*/
|
|
588
|
-
setName(newName: string, options?: {
|
|
589
|
-
accessList?: import('viem').AccessList;
|
|
590
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
591
|
-
chain?: import('viem').Chain | null;
|
|
592
|
-
dataSuffix?: `0x${string}`;
|
|
593
|
-
gas?: bigint;
|
|
594
|
-
gasPrice?: bigint;
|
|
595
|
-
maxFeePerGas?: bigint;
|
|
596
|
-
maxPriorityFeePerGas?: bigint;
|
|
597
|
-
nonce?: number;
|
|
598
|
-
value?: bigint;
|
|
599
|
-
}): Promise<`0x${string}`>;
|
|
600
|
-
/**
|
|
601
|
-
* setSymbol
|
|
602
|
-
* nonpayable
|
|
603
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
604
|
-
*/
|
|
605
|
-
setSymbol(newSymbol: string, options?: {
|
|
523
|
+
permit(issuer: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
606
524
|
accessList?: import('viem').AccessList;
|
|
607
525
|
authorizationList?: import('viem').AuthorizationList;
|
|
608
526
|
chain?: import('viem').Chain | null;
|
|
@@ -619,7 +537,7 @@ export declare class ERC20Token_json {
|
|
|
619
537
|
* nonpayable
|
|
620
538
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
621
539
|
*/
|
|
622
|
-
transfer(
|
|
540
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
623
541
|
accessList?: import('viem').AccessList;
|
|
624
542
|
authorizationList?: import('viem').AuthorizationList;
|
|
625
543
|
chain?: import('viem').Chain | null;
|
|
@@ -636,24 +554,7 @@ export declare class ERC20Token_json {
|
|
|
636
554
|
* nonpayable
|
|
637
555
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
638
556
|
*/
|
|
639
|
-
transferFrom(
|
|
640
|
-
accessList?: import('viem').AccessList;
|
|
641
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
642
|
-
chain?: import('viem').Chain | null;
|
|
643
|
-
dataSuffix?: `0x${string}`;
|
|
644
|
-
gas?: bigint;
|
|
645
|
-
gasPrice?: bigint;
|
|
646
|
-
maxFeePerGas?: bigint;
|
|
647
|
-
maxPriorityFeePerGas?: bigint;
|
|
648
|
-
nonce?: number;
|
|
649
|
-
value?: bigint;
|
|
650
|
-
}): Promise<`0x${string}`>;
|
|
651
|
-
/**
|
|
652
|
-
* transferOwnership
|
|
653
|
-
* nonpayable
|
|
654
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
655
|
-
*/
|
|
656
|
-
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
557
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
657
558
|
accessList?: import('viem').AccessList;
|
|
658
559
|
authorizationList?: import('viem').AuthorizationList;
|
|
659
560
|
chain?: import('viem').Chain | null;
|
|
@@ -679,7 +580,7 @@ export declare class ERC20Token_json {
|
|
|
679
580
|
* Returns gas estimate and result without sending transaction
|
|
680
581
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
681
582
|
*/
|
|
682
|
-
approve(spender: `0x${string}`,
|
|
583
|
+
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
683
584
|
accessList?: import("viem").AccessList;
|
|
684
585
|
authorizationList?: import("viem").AuthorizationList;
|
|
685
586
|
chain?: import("viem").Chain | null;
|
|
@@ -726,62 +627,11 @@ export declare class ERC20Token_json {
|
|
|
726
627
|
value?: bigint;
|
|
727
628
|
}): Promise<void>;
|
|
728
629
|
/**
|
|
729
|
-
* Simulate
|
|
630
|
+
* Simulate permit
|
|
730
631
|
* Returns gas estimate and result without sending transaction
|
|
731
632
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
732
633
|
*/
|
|
733
|
-
|
|
734
|
-
accessList?: import("viem").AccessList;
|
|
735
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
736
|
-
chain?: import("viem").Chain | null;
|
|
737
|
-
dataSuffix?: `0x${string}`;
|
|
738
|
-
gas?: bigint;
|
|
739
|
-
gasPrice?: bigint;
|
|
740
|
-
maxFeePerGas?: bigint;
|
|
741
|
-
maxPriorityFeePerGas?: bigint;
|
|
742
|
-
nonce?: number;
|
|
743
|
-
value?: bigint;
|
|
744
|
-
}): Promise<void>;
|
|
745
|
-
/**
|
|
746
|
-
* Simulate setDecimals
|
|
747
|
-
* Returns gas estimate and result without sending transaction
|
|
748
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
749
|
-
*/
|
|
750
|
-
setDecimals(newDecimals: bigint, options?: {
|
|
751
|
-
accessList?: import("viem").AccessList;
|
|
752
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
753
|
-
chain?: import("viem").Chain | null;
|
|
754
|
-
dataSuffix?: `0x${string}`;
|
|
755
|
-
gas?: bigint;
|
|
756
|
-
gasPrice?: bigint;
|
|
757
|
-
maxFeePerGas?: bigint;
|
|
758
|
-
maxPriorityFeePerGas?: bigint;
|
|
759
|
-
nonce?: number;
|
|
760
|
-
value?: bigint;
|
|
761
|
-
}): Promise<void>;
|
|
762
|
-
/**
|
|
763
|
-
* Simulate setName
|
|
764
|
-
* Returns gas estimate and result without sending transaction
|
|
765
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
766
|
-
*/
|
|
767
|
-
setName(newName: string, options?: {
|
|
768
|
-
accessList?: import("viem").AccessList;
|
|
769
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
770
|
-
chain?: import("viem").Chain | null;
|
|
771
|
-
dataSuffix?: `0x${string}`;
|
|
772
|
-
gas?: bigint;
|
|
773
|
-
gasPrice?: bigint;
|
|
774
|
-
maxFeePerGas?: bigint;
|
|
775
|
-
maxPriorityFeePerGas?: bigint;
|
|
776
|
-
nonce?: number;
|
|
777
|
-
value?: bigint;
|
|
778
|
-
}): Promise<void>;
|
|
779
|
-
/**
|
|
780
|
-
* Simulate setSymbol
|
|
781
|
-
* Returns gas estimate and result without sending transaction
|
|
782
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
783
|
-
*/
|
|
784
|
-
setSymbol(newSymbol: string, options?: {
|
|
634
|
+
permit(issuer: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
785
635
|
accessList?: import("viem").AccessList;
|
|
786
636
|
authorizationList?: import("viem").AuthorizationList;
|
|
787
637
|
chain?: import("viem").Chain | null;
|
|
@@ -798,7 +648,7 @@ export declare class ERC20Token_json {
|
|
|
798
648
|
* Returns gas estimate and result without sending transaction
|
|
799
649
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
800
650
|
*/
|
|
801
|
-
transfer(
|
|
651
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
802
652
|
accessList?: import("viem").AccessList;
|
|
803
653
|
authorizationList?: import("viem").AuthorizationList;
|
|
804
654
|
chain?: import("viem").Chain | null;
|
|
@@ -815,7 +665,7 @@ export declare class ERC20Token_json {
|
|
|
815
665
|
* Returns gas estimate and result without sending transaction
|
|
816
666
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
817
667
|
*/
|
|
818
|
-
transferFrom(
|
|
668
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
819
669
|
accessList?: import("viem").AccessList;
|
|
820
670
|
authorizationList?: import("viem").AuthorizationList;
|
|
821
671
|
chain?: import("viem").Chain | null;
|
|
@@ -827,23 +677,6 @@ export declare class ERC20Token_json {
|
|
|
827
677
|
nonce?: number;
|
|
828
678
|
value?: bigint;
|
|
829
679
|
}): Promise<boolean>;
|
|
830
|
-
/**
|
|
831
|
-
* Simulate transferOwnership
|
|
832
|
-
* Returns gas estimate and result without sending transaction
|
|
833
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
834
|
-
*/
|
|
835
|
-
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
836
|
-
accessList?: import("viem").AccessList;
|
|
837
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
838
|
-
chain?: import("viem").Chain | null;
|
|
839
|
-
dataSuffix?: `0x${string}`;
|
|
840
|
-
gas?: bigint;
|
|
841
|
-
gasPrice?: bigint;
|
|
842
|
-
maxFeePerGas?: bigint;
|
|
843
|
-
maxPriorityFeePerGas?: bigint;
|
|
844
|
-
nonce?: number;
|
|
845
|
-
value?: bigint;
|
|
846
|
-
}): Promise<void>;
|
|
847
680
|
};
|
|
848
681
|
/**
|
|
849
682
|
* Watch contract events
|
|
@@ -872,46 +705,6 @@ export declare class ERC20Token_json {
|
|
|
872
705
|
owner: `0x${string}`;
|
|
873
706
|
spender: `0x${string}`;
|
|
874
707
|
}) => () => void;
|
|
875
|
-
/**
|
|
876
|
-
* Watch OwnershipTransferred events
|
|
877
|
-
* @param callback Function to call when event is emitted
|
|
878
|
-
* @param filter Optional filter for indexed parameters
|
|
879
|
-
* @returns Unwatch function to stop listening
|
|
880
|
-
*/
|
|
881
|
-
OwnershipTransferred: (callback: (event: {
|
|
882
|
-
previousOwner: `0x${string}`;
|
|
883
|
-
newOwner: `0x${string}`;
|
|
884
|
-
}) => void, filter?: {
|
|
885
|
-
previousOwner: `0x${string}`;
|
|
886
|
-
newOwner: `0x${string}`;
|
|
887
|
-
}) => () => void;
|
|
888
|
-
/**
|
|
889
|
-
* Watch SetDecimals events
|
|
890
|
-
* @param callback Function to call when event is emitted
|
|
891
|
-
* @param filter Optional filter for indexed parameters
|
|
892
|
-
* @returns Unwatch function to stop listening
|
|
893
|
-
*/
|
|
894
|
-
SetDecimals: (callback: (event: {
|
|
895
|
-
precision: bigint;
|
|
896
|
-
}) => void) => () => void;
|
|
897
|
-
/**
|
|
898
|
-
* Watch SetName events
|
|
899
|
-
* @param callback Function to call when event is emitted
|
|
900
|
-
* @param filter Optional filter for indexed parameters
|
|
901
|
-
* @returns Unwatch function to stop listening
|
|
902
|
-
*/
|
|
903
|
-
SetName: (callback: (event: {
|
|
904
|
-
name: string;
|
|
905
|
-
}) => void) => () => void;
|
|
906
|
-
/**
|
|
907
|
-
* Watch SetSymbol events
|
|
908
|
-
* @param callback Function to call when event is emitted
|
|
909
|
-
* @param filter Optional filter for indexed parameters
|
|
910
|
-
* @returns Unwatch function to stop listening
|
|
911
|
-
*/
|
|
912
|
-
SetSymbol: (callback: (event: {
|
|
913
|
-
symbol: string;
|
|
914
|
-
}) => void) => () => void;
|
|
915
708
|
/**
|
|
916
709
|
* Watch Transfer events
|
|
917
710
|
* @param callback Function to call when event is emitted
|