@gitmyabi/dot 1.0.1 → 1.0.3
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/{Token_json.d.ts → ERC6160Ext20_json.d.ts} +312 -151
- package/contracts/{Token_json.js → ERC6160Ext20_json.js} +300 -190
- package/contracts/{Token_json.ts → ERC6160Ext20_json.ts} +399 -194
- 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,100 +1,32 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* ERC6160Ext20_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 ERC6160Ext20_jsonAbi: readonly [{
|
|
8
8
|
readonly inputs: readonly [{
|
|
9
|
+
readonly internalType: "address";
|
|
10
|
+
readonly name: "admin";
|
|
11
|
+
readonly type: "address";
|
|
12
|
+
}, {
|
|
9
13
|
readonly internalType: "string";
|
|
10
|
-
readonly name: "
|
|
14
|
+
readonly name: "name";
|
|
11
15
|
readonly type: "string";
|
|
12
16
|
}, {
|
|
13
17
|
readonly internalType: "string";
|
|
14
|
-
readonly name: "
|
|
18
|
+
readonly name: "symbol";
|
|
15
19
|
readonly type: "string";
|
|
16
|
-
}, {
|
|
17
|
-
readonly internalType: "uint8";
|
|
18
|
-
readonly name: "_decimals";
|
|
19
|
-
readonly type: "uint8";
|
|
20
20
|
}];
|
|
21
21
|
readonly stateMutability: "nonpayable";
|
|
22
22
|
readonly type: "constructor";
|
|
23
|
-
}, {
|
|
24
|
-
readonly inputs: readonly [{
|
|
25
|
-
readonly internalType: "address";
|
|
26
|
-
readonly name: "spender";
|
|
27
|
-
readonly type: "address";
|
|
28
|
-
}, {
|
|
29
|
-
readonly internalType: "uint256";
|
|
30
|
-
readonly name: "allowance";
|
|
31
|
-
readonly type: "uint256";
|
|
32
|
-
}, {
|
|
33
|
-
readonly internalType: "uint256";
|
|
34
|
-
readonly name: "needed";
|
|
35
|
-
readonly type: "uint256";
|
|
36
|
-
}];
|
|
37
|
-
readonly name: "InsufficientAllowance";
|
|
38
|
-
readonly type: "error";
|
|
39
|
-
}, {
|
|
40
|
-
readonly inputs: readonly [{
|
|
41
|
-
readonly internalType: "address";
|
|
42
|
-
readonly name: "sender";
|
|
43
|
-
readonly type: "address";
|
|
44
|
-
}, {
|
|
45
|
-
readonly internalType: "uint256";
|
|
46
|
-
readonly name: "balance";
|
|
47
|
-
readonly type: "uint256";
|
|
48
|
-
}, {
|
|
49
|
-
readonly internalType: "uint256";
|
|
50
|
-
readonly name: "needed";
|
|
51
|
-
readonly type: "uint256";
|
|
52
|
-
}];
|
|
53
|
-
readonly name: "InsufficientBalance";
|
|
54
|
-
readonly type: "error";
|
|
55
|
-
}, {
|
|
56
|
-
readonly inputs: readonly [{
|
|
57
|
-
readonly internalType: "address";
|
|
58
|
-
readonly name: "";
|
|
59
|
-
readonly type: "address";
|
|
60
|
-
}];
|
|
61
|
-
readonly name: "InvalidApprover";
|
|
62
|
-
readonly type: "error";
|
|
63
|
-
}, {
|
|
64
|
-
readonly inputs: readonly [{
|
|
65
|
-
readonly internalType: "address";
|
|
66
|
-
readonly name: "";
|
|
67
|
-
readonly type: "address";
|
|
68
|
-
}];
|
|
69
|
-
readonly name: "InvalidReceiver";
|
|
70
|
-
readonly type: "error";
|
|
71
|
-
}, {
|
|
72
|
-
readonly inputs: readonly [{
|
|
73
|
-
readonly internalType: "address";
|
|
74
|
-
readonly name: "";
|
|
75
|
-
readonly type: "address";
|
|
76
|
-
}];
|
|
77
|
-
readonly name: "InvalidSender";
|
|
78
|
-
readonly type: "error";
|
|
79
23
|
}, {
|
|
80
24
|
readonly inputs: readonly [];
|
|
81
|
-
readonly name: "
|
|
82
|
-
readonly type: "error";
|
|
83
|
-
}, {
|
|
84
|
-
readonly inputs: readonly [{
|
|
85
|
-
readonly internalType: "address";
|
|
86
|
-
readonly name: "";
|
|
87
|
-
readonly type: "address";
|
|
88
|
-
}];
|
|
89
|
-
readonly name: "InvalidSpender";
|
|
25
|
+
readonly name: "NotRoleAdmin";
|
|
90
26
|
readonly type: "error";
|
|
91
27
|
}, {
|
|
92
28
|
readonly inputs: readonly [];
|
|
93
|
-
readonly name: "
|
|
94
|
-
readonly type: "error";
|
|
95
|
-
}, {
|
|
96
|
-
readonly inputs: readonly [];
|
|
97
|
-
readonly name: "Unauthorized";
|
|
29
|
+
readonly name: "PermissionDenied";
|
|
98
30
|
readonly type: "error";
|
|
99
31
|
}, {
|
|
100
32
|
readonly anonymous: false;
|
|
@@ -138,7 +70,17 @@ export declare const Token_jsonAbi: readonly [{
|
|
|
138
70
|
readonly type: "event";
|
|
139
71
|
}, {
|
|
140
72
|
readonly inputs: readonly [];
|
|
141
|
-
readonly name: "
|
|
73
|
+
readonly name: "BURNER_ROLE";
|
|
74
|
+
readonly outputs: readonly [{
|
|
75
|
+
readonly internalType: "bytes32";
|
|
76
|
+
readonly name: "";
|
|
77
|
+
readonly type: "bytes32";
|
|
78
|
+
}];
|
|
79
|
+
readonly stateMutability: "view";
|
|
80
|
+
readonly type: "function";
|
|
81
|
+
}, {
|
|
82
|
+
readonly inputs: readonly [];
|
|
83
|
+
readonly name: "MINTER_ROLE";
|
|
142
84
|
readonly outputs: readonly [{
|
|
143
85
|
readonly internalType: "bytes32";
|
|
144
86
|
readonly name: "";
|
|
@@ -149,7 +91,7 @@ export declare const Token_jsonAbi: readonly [{
|
|
|
149
91
|
}, {
|
|
150
92
|
readonly inputs: readonly [{
|
|
151
93
|
readonly internalType: "address";
|
|
152
|
-
readonly name: "
|
|
94
|
+
readonly name: "owner";
|
|
153
95
|
readonly type: "address";
|
|
154
96
|
}, {
|
|
155
97
|
readonly internalType: "address";
|
|
@@ -199,11 +141,11 @@ export declare const Token_jsonAbi: readonly [{
|
|
|
199
141
|
}, {
|
|
200
142
|
readonly inputs: readonly [{
|
|
201
143
|
readonly internalType: "address";
|
|
202
|
-
readonly name: "
|
|
144
|
+
readonly name: "_from";
|
|
203
145
|
readonly type: "address";
|
|
204
146
|
}, {
|
|
205
147
|
readonly internalType: "uint256";
|
|
206
|
-
readonly name: "
|
|
148
|
+
readonly name: "_amount";
|
|
207
149
|
readonly type: "uint256";
|
|
208
150
|
}];
|
|
209
151
|
readonly name: "burn";
|
|
@@ -211,97 +153,165 @@ export declare const Token_jsonAbi: readonly [{
|
|
|
211
153
|
readonly stateMutability: "nonpayable";
|
|
212
154
|
readonly type: "function";
|
|
213
155
|
}, {
|
|
214
|
-
readonly inputs: readonly [
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
readonly
|
|
218
|
-
readonly name: "";
|
|
219
|
-
readonly type: "uint8";
|
|
156
|
+
readonly inputs: readonly [{
|
|
157
|
+
readonly internalType: "address";
|
|
158
|
+
readonly name: "newAdmin";
|
|
159
|
+
readonly type: "address";
|
|
220
160
|
}];
|
|
221
|
-
readonly
|
|
161
|
+
readonly name: "changeAdmin";
|
|
162
|
+
readonly outputs: readonly [];
|
|
163
|
+
readonly stateMutability: "nonpayable";
|
|
222
164
|
readonly type: "function";
|
|
223
165
|
}, {
|
|
224
166
|
readonly inputs: readonly [];
|
|
225
|
-
readonly name: "
|
|
167
|
+
readonly name: "decimals";
|
|
226
168
|
readonly outputs: readonly [{
|
|
227
|
-
readonly internalType: "
|
|
169
|
+
readonly internalType: "uint8";
|
|
228
170
|
readonly name: "";
|
|
229
|
-
readonly type: "
|
|
171
|
+
readonly type: "uint8";
|
|
230
172
|
}];
|
|
231
173
|
readonly stateMutability: "view";
|
|
232
174
|
readonly type: "function";
|
|
233
175
|
}, {
|
|
234
176
|
readonly inputs: readonly [{
|
|
235
177
|
readonly internalType: "address";
|
|
236
|
-
readonly name: "
|
|
178
|
+
readonly name: "spender";
|
|
237
179
|
readonly type: "address";
|
|
238
180
|
}, {
|
|
239
181
|
readonly internalType: "uint256";
|
|
240
|
-
readonly name: "
|
|
182
|
+
readonly name: "subtractedValue";
|
|
241
183
|
readonly type: "uint256";
|
|
242
184
|
}];
|
|
243
|
-
readonly name: "
|
|
244
|
-
readonly outputs: readonly [
|
|
185
|
+
readonly name: "decreaseAllowance";
|
|
186
|
+
readonly outputs: readonly [{
|
|
187
|
+
readonly internalType: "bool";
|
|
188
|
+
readonly name: "";
|
|
189
|
+
readonly type: "bool";
|
|
190
|
+
}];
|
|
245
191
|
readonly stateMutability: "nonpayable";
|
|
246
192
|
readonly type: "function";
|
|
247
193
|
}, {
|
|
248
194
|
readonly inputs: readonly [];
|
|
249
|
-
readonly name: "
|
|
195
|
+
readonly name: "getBurnerRole";
|
|
250
196
|
readonly outputs: readonly [{
|
|
251
|
-
readonly internalType: "
|
|
197
|
+
readonly internalType: "bytes32";
|
|
252
198
|
readonly name: "";
|
|
253
|
-
readonly type: "
|
|
199
|
+
readonly type: "bytes32";
|
|
254
200
|
}];
|
|
255
|
-
readonly stateMutability: "
|
|
201
|
+
readonly stateMutability: "pure";
|
|
202
|
+
readonly type: "function";
|
|
203
|
+
}, {
|
|
204
|
+
readonly inputs: readonly [];
|
|
205
|
+
readonly name: "getMinterRole";
|
|
206
|
+
readonly outputs: readonly [{
|
|
207
|
+
readonly internalType: "bytes32";
|
|
208
|
+
readonly name: "";
|
|
209
|
+
readonly type: "bytes32";
|
|
210
|
+
}];
|
|
211
|
+
readonly stateMutability: "pure";
|
|
256
212
|
readonly type: "function";
|
|
257
213
|
}, {
|
|
258
214
|
readonly inputs: readonly [{
|
|
215
|
+
readonly internalType: "bytes32";
|
|
216
|
+
readonly name: "_role";
|
|
217
|
+
readonly type: "bytes32";
|
|
218
|
+
}, {
|
|
259
219
|
readonly internalType: "address";
|
|
260
|
-
readonly name: "
|
|
220
|
+
readonly name: "_account";
|
|
261
221
|
readonly type: "address";
|
|
262
222
|
}];
|
|
263
|
-
readonly name: "
|
|
223
|
+
readonly name: "grantRole";
|
|
224
|
+
readonly outputs: readonly [];
|
|
225
|
+
readonly stateMutability: "nonpayable";
|
|
226
|
+
readonly type: "function";
|
|
227
|
+
}, {
|
|
228
|
+
readonly inputs: readonly [{
|
|
229
|
+
readonly internalType: "bytes32";
|
|
230
|
+
readonly name: "_role";
|
|
231
|
+
readonly type: "bytes32";
|
|
232
|
+
}, {
|
|
233
|
+
readonly internalType: "address";
|
|
234
|
+
readonly name: "_account";
|
|
235
|
+
readonly type: "address";
|
|
236
|
+
}];
|
|
237
|
+
readonly name: "hasRole";
|
|
264
238
|
readonly outputs: readonly [{
|
|
265
|
-
readonly internalType: "
|
|
239
|
+
readonly internalType: "bool";
|
|
266
240
|
readonly name: "";
|
|
267
|
-
readonly type: "
|
|
241
|
+
readonly type: "bool";
|
|
268
242
|
}];
|
|
269
243
|
readonly stateMutability: "view";
|
|
270
244
|
readonly type: "function";
|
|
271
245
|
}, {
|
|
272
246
|
readonly inputs: readonly [{
|
|
273
|
-
readonly internalType: "address";
|
|
274
|
-
readonly name: "issuer";
|
|
275
|
-
readonly type: "address";
|
|
276
|
-
}, {
|
|
277
247
|
readonly internalType: "address";
|
|
278
248
|
readonly name: "spender";
|
|
279
249
|
readonly type: "address";
|
|
280
250
|
}, {
|
|
281
251
|
readonly internalType: "uint256";
|
|
282
|
-
readonly name: "
|
|
252
|
+
readonly name: "addedValue";
|
|
283
253
|
readonly type: "uint256";
|
|
254
|
+
}];
|
|
255
|
+
readonly name: "increaseAllowance";
|
|
256
|
+
readonly outputs: readonly [{
|
|
257
|
+
readonly internalType: "bool";
|
|
258
|
+
readonly name: "";
|
|
259
|
+
readonly type: "bool";
|
|
260
|
+
}];
|
|
261
|
+
readonly stateMutability: "nonpayable";
|
|
262
|
+
readonly type: "function";
|
|
263
|
+
}, {
|
|
264
|
+
readonly inputs: readonly [{
|
|
265
|
+
readonly internalType: "address";
|
|
266
|
+
readonly name: "_to";
|
|
267
|
+
readonly type: "address";
|
|
284
268
|
}, {
|
|
285
269
|
readonly internalType: "uint256";
|
|
286
|
-
readonly name: "
|
|
270
|
+
readonly name: "_amount";
|
|
287
271
|
readonly type: "uint256";
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
272
|
+
}];
|
|
273
|
+
readonly name: "mint";
|
|
274
|
+
readonly outputs: readonly [];
|
|
275
|
+
readonly stateMutability: "nonpayable";
|
|
276
|
+
readonly type: "function";
|
|
277
|
+
}, {
|
|
278
|
+
readonly inputs: readonly [];
|
|
279
|
+
readonly name: "name";
|
|
280
|
+
readonly outputs: readonly [{
|
|
281
|
+
readonly internalType: "string";
|
|
282
|
+
readonly name: "";
|
|
283
|
+
readonly type: "string";
|
|
284
|
+
}];
|
|
285
|
+
readonly stateMutability: "view";
|
|
286
|
+
readonly type: "function";
|
|
287
|
+
}, {
|
|
288
|
+
readonly inputs: readonly [{
|
|
293
289
|
readonly internalType: "bytes32";
|
|
294
|
-
readonly name: "
|
|
290
|
+
readonly name: "_role";
|
|
295
291
|
readonly type: "bytes32";
|
|
296
292
|
}, {
|
|
297
|
-
readonly internalType: "
|
|
298
|
-
readonly name: "
|
|
299
|
-
readonly type: "
|
|
293
|
+
readonly internalType: "address";
|
|
294
|
+
readonly name: "_account";
|
|
295
|
+
readonly type: "address";
|
|
300
296
|
}];
|
|
301
|
-
readonly name: "
|
|
297
|
+
readonly name: "revokeRole";
|
|
302
298
|
readonly outputs: readonly [];
|
|
303
299
|
readonly stateMutability: "nonpayable";
|
|
304
300
|
readonly type: "function";
|
|
301
|
+
}, {
|
|
302
|
+
readonly inputs: readonly [{
|
|
303
|
+
readonly internalType: "bytes4";
|
|
304
|
+
readonly name: "_interfaceId";
|
|
305
|
+
readonly type: "bytes4";
|
|
306
|
+
}];
|
|
307
|
+
readonly name: "supportsInterface";
|
|
308
|
+
readonly outputs: readonly [{
|
|
309
|
+
readonly internalType: "bool";
|
|
310
|
+
readonly name: "";
|
|
311
|
+
readonly type: "bool";
|
|
312
|
+
}];
|
|
313
|
+
readonly stateMutability: "view";
|
|
314
|
+
readonly type: "function";
|
|
305
315
|
}, {
|
|
306
316
|
readonly inputs: readonly [];
|
|
307
317
|
readonly name: "symbol";
|
|
@@ -325,7 +335,7 @@ export declare const Token_jsonAbi: readonly [{
|
|
|
325
335
|
}, {
|
|
326
336
|
readonly inputs: readonly [{
|
|
327
337
|
readonly internalType: "address";
|
|
328
|
-
readonly name: "
|
|
338
|
+
readonly name: "to";
|
|
329
339
|
readonly type: "address";
|
|
330
340
|
}, {
|
|
331
341
|
readonly internalType: "uint256";
|
|
@@ -343,11 +353,11 @@ export declare const Token_jsonAbi: readonly [{
|
|
|
343
353
|
}, {
|
|
344
354
|
readonly inputs: readonly [{
|
|
345
355
|
readonly internalType: "address";
|
|
346
|
-
readonly name: "
|
|
356
|
+
readonly name: "from";
|
|
347
357
|
readonly type: "address";
|
|
348
358
|
}, {
|
|
349
359
|
readonly internalType: "address";
|
|
350
|
-
readonly name: "
|
|
360
|
+
readonly name: "to";
|
|
351
361
|
readonly type: "address";
|
|
352
362
|
}, {
|
|
353
363
|
readonly internalType: "uint256";
|
|
@@ -364,15 +374,15 @@ export declare const Token_jsonAbi: readonly [{
|
|
|
364
374
|
readonly type: "function";
|
|
365
375
|
}];
|
|
366
376
|
/**
|
|
367
|
-
* Type-safe ABI for
|
|
377
|
+
* Type-safe ABI for ERC6160Ext20_json
|
|
368
378
|
*/
|
|
369
|
-
export type
|
|
379
|
+
export type ERC6160Ext20_jsonAbi = typeof ERC6160Ext20_jsonAbi;
|
|
370
380
|
/**
|
|
371
|
-
* Contract instance type for
|
|
381
|
+
* Contract instance type for ERC6160Ext20_json
|
|
372
382
|
*/
|
|
373
|
-
export type
|
|
383
|
+
export type ERC6160Ext20_jsonContract = any;
|
|
374
384
|
/**
|
|
375
|
-
*
|
|
385
|
+
* ERC6160Ext20_json Contract Class
|
|
376
386
|
*
|
|
377
387
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
378
388
|
*
|
|
@@ -380,12 +390,12 @@ export type Token_jsonContract = any;
|
|
|
380
390
|
* ```typescript
|
|
381
391
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
382
392
|
* import { mainnet } from 'viem/chains';
|
|
383
|
-
* import {
|
|
393
|
+
* import { ERC6160Ext20_json } from 'ERC6160Ext20_json';
|
|
384
394
|
*
|
|
385
395
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
386
396
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
387
397
|
*
|
|
388
|
-
* const contract = new
|
|
398
|
+
* const contract = new ERC6160Ext20_json('0x...', { publicClient, walletClient });
|
|
389
399
|
*
|
|
390
400
|
* // Read functions
|
|
391
401
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -403,7 +413,7 @@ export type Token_jsonContract = any;
|
|
|
403
413
|
* });
|
|
404
414
|
* ```
|
|
405
415
|
*/
|
|
406
|
-
export declare class
|
|
416
|
+
export declare class ERC6160Ext20_json {
|
|
407
417
|
private contract;
|
|
408
418
|
private contractAddress;
|
|
409
419
|
private publicClient;
|
|
@@ -418,17 +428,22 @@ export declare class Token_json {
|
|
|
418
428
|
/**
|
|
419
429
|
* Get the underlying viem contract instance
|
|
420
430
|
*/
|
|
421
|
-
getContract():
|
|
431
|
+
getContract(): ERC6160Ext20_jsonContract;
|
|
422
432
|
/**
|
|
423
|
-
*
|
|
433
|
+
* BURNER_ROLE
|
|
424
434
|
* view
|
|
425
435
|
*/
|
|
426
|
-
|
|
436
|
+
BURNER_ROLE(): Promise<`0x${string}`>;
|
|
437
|
+
/**
|
|
438
|
+
* MINTER_ROLE
|
|
439
|
+
* view
|
|
440
|
+
*/
|
|
441
|
+
MINTER_ROLE(): Promise<`0x${string}`>;
|
|
427
442
|
/**
|
|
428
443
|
* allowance
|
|
429
444
|
* view
|
|
430
445
|
*/
|
|
431
|
-
allowance(
|
|
446
|
+
allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
432
447
|
/**
|
|
433
448
|
* balanceOf
|
|
434
449
|
* view
|
|
@@ -440,20 +455,30 @@ export declare class Token_json {
|
|
|
440
455
|
*/
|
|
441
456
|
decimals(): Promise<bigint>;
|
|
442
457
|
/**
|
|
443
|
-
*
|
|
458
|
+
* getBurnerRole
|
|
459
|
+
* pure
|
|
460
|
+
*/
|
|
461
|
+
getBurnerRole(): Promise<`0x${string}`>;
|
|
462
|
+
/**
|
|
463
|
+
* getMinterRole
|
|
464
|
+
* pure
|
|
465
|
+
*/
|
|
466
|
+
getMinterRole(): Promise<`0x${string}`>;
|
|
467
|
+
/**
|
|
468
|
+
* hasRole
|
|
444
469
|
* view
|
|
445
470
|
*/
|
|
446
|
-
|
|
471
|
+
hasRole(_role: `0x${string}`, _account: `0x${string}`): Promise<boolean>;
|
|
447
472
|
/**
|
|
448
473
|
* name
|
|
449
474
|
* view
|
|
450
475
|
*/
|
|
451
476
|
name(): Promise<string>;
|
|
452
477
|
/**
|
|
453
|
-
*
|
|
478
|
+
* supportsInterface
|
|
454
479
|
* view
|
|
455
480
|
*/
|
|
456
|
-
|
|
481
|
+
supportsInterface(_interfaceId: `0x${string}`): Promise<boolean>;
|
|
457
482
|
/**
|
|
458
483
|
* symbol
|
|
459
484
|
* view
|
|
@@ -486,7 +511,75 @@ export declare class Token_json {
|
|
|
486
511
|
* nonpayable
|
|
487
512
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
488
513
|
*/
|
|
489
|
-
burn(
|
|
514
|
+
burn(_from: `0x${string}`, _amount: bigint, options?: {
|
|
515
|
+
accessList?: import('viem').AccessList;
|
|
516
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
517
|
+
chain?: import('viem').Chain | null;
|
|
518
|
+
dataSuffix?: `0x${string}`;
|
|
519
|
+
gas?: bigint;
|
|
520
|
+
gasPrice?: bigint;
|
|
521
|
+
maxFeePerGas?: bigint;
|
|
522
|
+
maxPriorityFeePerGas?: bigint;
|
|
523
|
+
nonce?: number;
|
|
524
|
+
value?: bigint;
|
|
525
|
+
}): Promise<`0x${string}`>;
|
|
526
|
+
/**
|
|
527
|
+
* changeAdmin
|
|
528
|
+
* nonpayable
|
|
529
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
530
|
+
*/
|
|
531
|
+
changeAdmin(newAdmin: `0x${string}`, options?: {
|
|
532
|
+
accessList?: import('viem').AccessList;
|
|
533
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
534
|
+
chain?: import('viem').Chain | null;
|
|
535
|
+
dataSuffix?: `0x${string}`;
|
|
536
|
+
gas?: bigint;
|
|
537
|
+
gasPrice?: bigint;
|
|
538
|
+
maxFeePerGas?: bigint;
|
|
539
|
+
maxPriorityFeePerGas?: bigint;
|
|
540
|
+
nonce?: number;
|
|
541
|
+
value?: bigint;
|
|
542
|
+
}): Promise<`0x${string}`>;
|
|
543
|
+
/**
|
|
544
|
+
* decreaseAllowance
|
|
545
|
+
* nonpayable
|
|
546
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
547
|
+
*/
|
|
548
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
549
|
+
accessList?: import('viem').AccessList;
|
|
550
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
551
|
+
chain?: import('viem').Chain | null;
|
|
552
|
+
dataSuffix?: `0x${string}`;
|
|
553
|
+
gas?: bigint;
|
|
554
|
+
gasPrice?: bigint;
|
|
555
|
+
maxFeePerGas?: bigint;
|
|
556
|
+
maxPriorityFeePerGas?: bigint;
|
|
557
|
+
nonce?: number;
|
|
558
|
+
value?: bigint;
|
|
559
|
+
}): Promise<`0x${string}`>;
|
|
560
|
+
/**
|
|
561
|
+
* grantRole
|
|
562
|
+
* nonpayable
|
|
563
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
564
|
+
*/
|
|
565
|
+
grantRole(_role: `0x${string}`, _account: `0x${string}`, options?: {
|
|
566
|
+
accessList?: import('viem').AccessList;
|
|
567
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
568
|
+
chain?: import('viem').Chain | null;
|
|
569
|
+
dataSuffix?: `0x${string}`;
|
|
570
|
+
gas?: bigint;
|
|
571
|
+
gasPrice?: bigint;
|
|
572
|
+
maxFeePerGas?: bigint;
|
|
573
|
+
maxPriorityFeePerGas?: bigint;
|
|
574
|
+
nonce?: number;
|
|
575
|
+
value?: bigint;
|
|
576
|
+
}): Promise<`0x${string}`>;
|
|
577
|
+
/**
|
|
578
|
+
* increaseAllowance
|
|
579
|
+
* nonpayable
|
|
580
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
581
|
+
*/
|
|
582
|
+
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
490
583
|
accessList?: import('viem').AccessList;
|
|
491
584
|
authorizationList?: import('viem').AuthorizationList;
|
|
492
585
|
chain?: import('viem').Chain | null;
|
|
@@ -503,7 +596,7 @@ export declare class Token_json {
|
|
|
503
596
|
* nonpayable
|
|
504
597
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
505
598
|
*/
|
|
506
|
-
mint(
|
|
599
|
+
mint(_to: `0x${string}`, _amount: bigint, options?: {
|
|
507
600
|
accessList?: import('viem').AccessList;
|
|
508
601
|
authorizationList?: import('viem').AuthorizationList;
|
|
509
602
|
chain?: import('viem').Chain | null;
|
|
@@ -516,11 +609,11 @@ export declare class Token_json {
|
|
|
516
609
|
value?: bigint;
|
|
517
610
|
}): Promise<`0x${string}`>;
|
|
518
611
|
/**
|
|
519
|
-
*
|
|
612
|
+
* revokeRole
|
|
520
613
|
* nonpayable
|
|
521
614
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
522
615
|
*/
|
|
523
|
-
|
|
616
|
+
revokeRole(_role: `0x${string}`, _account: `0x${string}`, options?: {
|
|
524
617
|
accessList?: import('viem').AccessList;
|
|
525
618
|
authorizationList?: import('viem').AuthorizationList;
|
|
526
619
|
chain?: import('viem').Chain | null;
|
|
@@ -537,7 +630,7 @@ export declare class Token_json {
|
|
|
537
630
|
* nonpayable
|
|
538
631
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
539
632
|
*/
|
|
540
|
-
transfer(
|
|
633
|
+
transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
541
634
|
accessList?: import('viem').AccessList;
|
|
542
635
|
authorizationList?: import('viem').AuthorizationList;
|
|
543
636
|
chain?: import('viem').Chain | null;
|
|
@@ -554,7 +647,7 @@ export declare class Token_json {
|
|
|
554
647
|
* nonpayable
|
|
555
648
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
556
649
|
*/
|
|
557
|
-
transferFrom(
|
|
650
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
558
651
|
accessList?: import('viem').AccessList;
|
|
559
652
|
authorizationList?: import('viem').AuthorizationList;
|
|
560
653
|
chain?: import('viem').Chain | null;
|
|
@@ -597,7 +690,58 @@ export declare class Token_json {
|
|
|
597
690
|
* Returns gas estimate and result without sending transaction
|
|
598
691
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
599
692
|
*/
|
|
600
|
-
burn(
|
|
693
|
+
burn(_from: `0x${string}`, _amount: bigint, options?: {
|
|
694
|
+
accessList?: import("viem").AccessList;
|
|
695
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
696
|
+
chain?: import("viem").Chain | null;
|
|
697
|
+
dataSuffix?: `0x${string}`;
|
|
698
|
+
gas?: bigint;
|
|
699
|
+
gasPrice?: bigint;
|
|
700
|
+
maxFeePerGas?: bigint;
|
|
701
|
+
maxPriorityFeePerGas?: bigint;
|
|
702
|
+
nonce?: number;
|
|
703
|
+
value?: bigint;
|
|
704
|
+
}): Promise<void>;
|
|
705
|
+
/**
|
|
706
|
+
* Simulate changeAdmin
|
|
707
|
+
* Returns gas estimate and result without sending transaction
|
|
708
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
709
|
+
*/
|
|
710
|
+
changeAdmin(newAdmin: `0x${string}`, options?: {
|
|
711
|
+
accessList?: import("viem").AccessList;
|
|
712
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
713
|
+
chain?: import("viem").Chain | null;
|
|
714
|
+
dataSuffix?: `0x${string}`;
|
|
715
|
+
gas?: bigint;
|
|
716
|
+
gasPrice?: bigint;
|
|
717
|
+
maxFeePerGas?: bigint;
|
|
718
|
+
maxPriorityFeePerGas?: bigint;
|
|
719
|
+
nonce?: number;
|
|
720
|
+
value?: bigint;
|
|
721
|
+
}): Promise<void>;
|
|
722
|
+
/**
|
|
723
|
+
* Simulate decreaseAllowance
|
|
724
|
+
* Returns gas estimate and result without sending transaction
|
|
725
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
726
|
+
*/
|
|
727
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
728
|
+
accessList?: import("viem").AccessList;
|
|
729
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
730
|
+
chain?: import("viem").Chain | null;
|
|
731
|
+
dataSuffix?: `0x${string}`;
|
|
732
|
+
gas?: bigint;
|
|
733
|
+
gasPrice?: bigint;
|
|
734
|
+
maxFeePerGas?: bigint;
|
|
735
|
+
maxPriorityFeePerGas?: bigint;
|
|
736
|
+
nonce?: number;
|
|
737
|
+
value?: bigint;
|
|
738
|
+
}): Promise<boolean>;
|
|
739
|
+
/**
|
|
740
|
+
* Simulate grantRole
|
|
741
|
+
* Returns gas estimate and result without sending transaction
|
|
742
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
743
|
+
*/
|
|
744
|
+
grantRole(_role: `0x${string}`, _account: `0x${string}`, options?: {
|
|
601
745
|
accessList?: import("viem").AccessList;
|
|
602
746
|
authorizationList?: import("viem").AuthorizationList;
|
|
603
747
|
chain?: import("viem").Chain | null;
|
|
@@ -609,12 +753,29 @@ export declare class Token_json {
|
|
|
609
753
|
nonce?: number;
|
|
610
754
|
value?: bigint;
|
|
611
755
|
}): Promise<void>;
|
|
756
|
+
/**
|
|
757
|
+
* Simulate increaseAllowance
|
|
758
|
+
* Returns gas estimate and result without sending transaction
|
|
759
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
760
|
+
*/
|
|
761
|
+
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
762
|
+
accessList?: import("viem").AccessList;
|
|
763
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
764
|
+
chain?: import("viem").Chain | null;
|
|
765
|
+
dataSuffix?: `0x${string}`;
|
|
766
|
+
gas?: bigint;
|
|
767
|
+
gasPrice?: bigint;
|
|
768
|
+
maxFeePerGas?: bigint;
|
|
769
|
+
maxPriorityFeePerGas?: bigint;
|
|
770
|
+
nonce?: number;
|
|
771
|
+
value?: bigint;
|
|
772
|
+
}): Promise<boolean>;
|
|
612
773
|
/**
|
|
613
774
|
* Simulate mint
|
|
614
775
|
* Returns gas estimate and result without sending transaction
|
|
615
776
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
616
777
|
*/
|
|
617
|
-
mint(
|
|
778
|
+
mint(_to: `0x${string}`, _amount: bigint, options?: {
|
|
618
779
|
accessList?: import("viem").AccessList;
|
|
619
780
|
authorizationList?: import("viem").AuthorizationList;
|
|
620
781
|
chain?: import("viem").Chain | null;
|
|
@@ -627,11 +788,11 @@ export declare class Token_json {
|
|
|
627
788
|
value?: bigint;
|
|
628
789
|
}): Promise<void>;
|
|
629
790
|
/**
|
|
630
|
-
* Simulate
|
|
791
|
+
* Simulate revokeRole
|
|
631
792
|
* Returns gas estimate and result without sending transaction
|
|
632
793
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
633
794
|
*/
|
|
634
|
-
|
|
795
|
+
revokeRole(_role: `0x${string}`, _account: `0x${string}`, options?: {
|
|
635
796
|
accessList?: import("viem").AccessList;
|
|
636
797
|
authorizationList?: import("viem").AuthorizationList;
|
|
637
798
|
chain?: import("viem").Chain | null;
|
|
@@ -648,7 +809,7 @@ export declare class Token_json {
|
|
|
648
809
|
* Returns gas estimate and result without sending transaction
|
|
649
810
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
650
811
|
*/
|
|
651
|
-
transfer(
|
|
812
|
+
transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
652
813
|
accessList?: import("viem").AccessList;
|
|
653
814
|
authorizationList?: import("viem").AuthorizationList;
|
|
654
815
|
chain?: import("viem").Chain | null;
|
|
@@ -665,7 +826,7 @@ export declare class Token_json {
|
|
|
665
826
|
* Returns gas estimate and result without sending transaction
|
|
666
827
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
667
828
|
*/
|
|
668
|
-
transferFrom(
|
|
829
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
669
830
|
accessList?: import("viem").AccessList;
|
|
670
831
|
authorizationList?: import("viem").AuthorizationList;
|
|
671
832
|
chain?: import("viem").Chain | null;
|