@iotexproject/kit 0.0.7 → 0.0.9
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/dist/index.d.ts +1 -1153
- package/package.json +11 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,1153 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare class ERC20Entity {
|
|
4
|
-
address: `0x${string}`;
|
|
5
|
-
chainId: "1";
|
|
6
|
-
abi: readonly [
|
|
7
|
-
{
|
|
8
|
-
readonly inputs: readonly [
|
|
9
|
-
{
|
|
10
|
-
readonly internalType: "string";
|
|
11
|
-
readonly name: "name";
|
|
12
|
-
readonly type: "string";
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
readonly internalType: "string";
|
|
16
|
-
readonly name: "symbol";
|
|
17
|
-
readonly type: "string";
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
readonly internalType: "uint256";
|
|
21
|
-
readonly name: "initialSupply";
|
|
22
|
-
readonly type: "uint256";
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
readonly internalType: "address";
|
|
26
|
-
readonly name: "owner";
|
|
27
|
-
readonly type: "address";
|
|
28
|
-
}
|
|
29
|
-
];
|
|
30
|
-
readonly stateMutability: "nonpayable";
|
|
31
|
-
readonly type: "constructor";
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
readonly anonymous: false;
|
|
35
|
-
readonly inputs: readonly [
|
|
36
|
-
{
|
|
37
|
-
readonly indexed: true;
|
|
38
|
-
readonly internalType: "address";
|
|
39
|
-
readonly name: "owner";
|
|
40
|
-
readonly type: "address";
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
readonly indexed: true;
|
|
44
|
-
readonly internalType: "address";
|
|
45
|
-
readonly name: "spender";
|
|
46
|
-
readonly type: "address";
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
readonly indexed: false;
|
|
50
|
-
readonly internalType: "uint256";
|
|
51
|
-
readonly name: "value";
|
|
52
|
-
readonly type: "uint256";
|
|
53
|
-
}
|
|
54
|
-
];
|
|
55
|
-
readonly name: "Approval";
|
|
56
|
-
readonly type: "event";
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
readonly anonymous: false;
|
|
60
|
-
readonly inputs: readonly [
|
|
61
|
-
{
|
|
62
|
-
readonly indexed: true;
|
|
63
|
-
readonly internalType: "address";
|
|
64
|
-
readonly name: "from";
|
|
65
|
-
readonly type: "address";
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
readonly indexed: true;
|
|
69
|
-
readonly internalType: "address";
|
|
70
|
-
readonly name: "to";
|
|
71
|
-
readonly type: "address";
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
readonly indexed: false;
|
|
75
|
-
readonly internalType: "uint256";
|
|
76
|
-
readonly name: "value";
|
|
77
|
-
readonly type: "uint256";
|
|
78
|
-
}
|
|
79
|
-
];
|
|
80
|
-
readonly name: "Transfer";
|
|
81
|
-
readonly type: "event";
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
readonly inputs: readonly [
|
|
85
|
-
{
|
|
86
|
-
readonly internalType: "address";
|
|
87
|
-
readonly name: "owner";
|
|
88
|
-
readonly type: "address";
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
readonly internalType: "address";
|
|
92
|
-
readonly name: "spender";
|
|
93
|
-
readonly type: "address";
|
|
94
|
-
}
|
|
95
|
-
];
|
|
96
|
-
readonly name: "allowance";
|
|
97
|
-
readonly outputs: readonly [
|
|
98
|
-
{
|
|
99
|
-
readonly internalType: "uint256";
|
|
100
|
-
readonly name: "";
|
|
101
|
-
readonly type: "uint256";
|
|
102
|
-
}
|
|
103
|
-
];
|
|
104
|
-
readonly stateMutability: "view";
|
|
105
|
-
readonly type: "function";
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
readonly inputs: readonly [
|
|
109
|
-
{
|
|
110
|
-
readonly internalType: "address";
|
|
111
|
-
readonly name: "spender";
|
|
112
|
-
readonly type: "address";
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
readonly internalType: "uint256";
|
|
116
|
-
readonly name: "amount";
|
|
117
|
-
readonly type: "uint256";
|
|
118
|
-
}
|
|
119
|
-
];
|
|
120
|
-
readonly name: "approve";
|
|
121
|
-
readonly outputs: readonly [
|
|
122
|
-
{
|
|
123
|
-
readonly internalType: "bool";
|
|
124
|
-
readonly name: "";
|
|
125
|
-
readonly type: "bool";
|
|
126
|
-
}
|
|
127
|
-
];
|
|
128
|
-
readonly stateMutability: "nonpayable";
|
|
129
|
-
readonly type: "function";
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
readonly inputs: readonly [
|
|
133
|
-
{
|
|
134
|
-
readonly internalType: "address";
|
|
135
|
-
readonly name: "account";
|
|
136
|
-
readonly type: "address";
|
|
137
|
-
}
|
|
138
|
-
];
|
|
139
|
-
readonly name: "balanceOf";
|
|
140
|
-
readonly outputs: readonly [
|
|
141
|
-
{
|
|
142
|
-
readonly internalType: "uint256";
|
|
143
|
-
readonly name: "";
|
|
144
|
-
readonly type: "uint256";
|
|
145
|
-
}
|
|
146
|
-
];
|
|
147
|
-
readonly stateMutability: "view";
|
|
148
|
-
readonly type: "function";
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
readonly inputs: readonly [
|
|
152
|
-
{
|
|
153
|
-
readonly internalType: "uint256";
|
|
154
|
-
readonly name: "amount";
|
|
155
|
-
readonly type: "uint256";
|
|
156
|
-
}
|
|
157
|
-
];
|
|
158
|
-
readonly name: "burn";
|
|
159
|
-
readonly outputs: readonly [
|
|
160
|
-
];
|
|
161
|
-
readonly stateMutability: "nonpayable";
|
|
162
|
-
readonly type: "function";
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
readonly inputs: readonly [
|
|
166
|
-
{
|
|
167
|
-
readonly internalType: "address";
|
|
168
|
-
readonly name: "account";
|
|
169
|
-
readonly type: "address";
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
readonly internalType: "uint256";
|
|
173
|
-
readonly name: "amount";
|
|
174
|
-
readonly type: "uint256";
|
|
175
|
-
}
|
|
176
|
-
];
|
|
177
|
-
readonly name: "burnFrom";
|
|
178
|
-
readonly outputs: readonly [
|
|
179
|
-
];
|
|
180
|
-
readonly stateMutability: "nonpayable";
|
|
181
|
-
readonly type: "function";
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
readonly inputs: readonly [
|
|
185
|
-
];
|
|
186
|
-
readonly name: "decimals";
|
|
187
|
-
readonly outputs: readonly [
|
|
188
|
-
{
|
|
189
|
-
readonly internalType: "uint8";
|
|
190
|
-
readonly name: "";
|
|
191
|
-
readonly type: "uint8";
|
|
192
|
-
}
|
|
193
|
-
];
|
|
194
|
-
readonly stateMutability: "view";
|
|
195
|
-
readonly type: "function";
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
readonly inputs: readonly [
|
|
199
|
-
{
|
|
200
|
-
readonly internalType: "address";
|
|
201
|
-
readonly name: "spender";
|
|
202
|
-
readonly type: "address";
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
readonly internalType: "uint256";
|
|
206
|
-
readonly name: "subtractedValue";
|
|
207
|
-
readonly type: "uint256";
|
|
208
|
-
}
|
|
209
|
-
];
|
|
210
|
-
readonly name: "decreaseAllowance";
|
|
211
|
-
readonly outputs: readonly [
|
|
212
|
-
{
|
|
213
|
-
readonly internalType: "bool";
|
|
214
|
-
readonly name: "";
|
|
215
|
-
readonly type: "bool";
|
|
216
|
-
}
|
|
217
|
-
];
|
|
218
|
-
readonly stateMutability: "nonpayable";
|
|
219
|
-
readonly type: "function";
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
readonly inputs: readonly [
|
|
223
|
-
{
|
|
224
|
-
readonly internalType: "address";
|
|
225
|
-
readonly name: "spender";
|
|
226
|
-
readonly type: "address";
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
readonly internalType: "uint256";
|
|
230
|
-
readonly name: "addedValue";
|
|
231
|
-
readonly type: "uint256";
|
|
232
|
-
}
|
|
233
|
-
];
|
|
234
|
-
readonly name: "increaseAllowance";
|
|
235
|
-
readonly outputs: readonly [
|
|
236
|
-
{
|
|
237
|
-
readonly internalType: "bool";
|
|
238
|
-
readonly name: "";
|
|
239
|
-
readonly type: "bool";
|
|
240
|
-
}
|
|
241
|
-
];
|
|
242
|
-
readonly stateMutability: "nonpayable";
|
|
243
|
-
readonly type: "function";
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
readonly inputs: readonly [
|
|
247
|
-
];
|
|
248
|
-
readonly name: "name";
|
|
249
|
-
readonly outputs: readonly [
|
|
250
|
-
{
|
|
251
|
-
readonly internalType: "string";
|
|
252
|
-
readonly name: "";
|
|
253
|
-
readonly type: "string";
|
|
254
|
-
}
|
|
255
|
-
];
|
|
256
|
-
readonly stateMutability: "view";
|
|
257
|
-
readonly type: "function";
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
readonly inputs: readonly [
|
|
261
|
-
];
|
|
262
|
-
readonly name: "symbol";
|
|
263
|
-
readonly outputs: readonly [
|
|
264
|
-
{
|
|
265
|
-
readonly internalType: "string";
|
|
266
|
-
readonly name: "";
|
|
267
|
-
readonly type: "string";
|
|
268
|
-
}
|
|
269
|
-
];
|
|
270
|
-
readonly stateMutability: "view";
|
|
271
|
-
readonly type: "function";
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
readonly inputs: readonly [
|
|
275
|
-
];
|
|
276
|
-
readonly name: "totalSupply";
|
|
277
|
-
readonly outputs: readonly [
|
|
278
|
-
{
|
|
279
|
-
readonly internalType: "uint256";
|
|
280
|
-
readonly name: "";
|
|
281
|
-
readonly type: "uint256";
|
|
282
|
-
}
|
|
283
|
-
];
|
|
284
|
-
readonly stateMutability: "view";
|
|
285
|
-
readonly type: "function";
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
readonly inputs: readonly [
|
|
289
|
-
{
|
|
290
|
-
readonly internalType: "address";
|
|
291
|
-
readonly name: "recipient";
|
|
292
|
-
readonly type: "address";
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
readonly internalType: "uint256";
|
|
296
|
-
readonly name: "amount";
|
|
297
|
-
readonly type: "uint256";
|
|
298
|
-
}
|
|
299
|
-
];
|
|
300
|
-
readonly name: "transfer";
|
|
301
|
-
readonly outputs: readonly [
|
|
302
|
-
{
|
|
303
|
-
readonly internalType: "bool";
|
|
304
|
-
readonly name: "";
|
|
305
|
-
readonly type: "bool";
|
|
306
|
-
}
|
|
307
|
-
];
|
|
308
|
-
readonly stateMutability: "nonpayable";
|
|
309
|
-
readonly type: "function";
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
readonly inputs: readonly [
|
|
313
|
-
{
|
|
314
|
-
readonly internalType: "address";
|
|
315
|
-
readonly name: "sender";
|
|
316
|
-
readonly type: "address";
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
readonly internalType: "address";
|
|
320
|
-
readonly name: "recipient";
|
|
321
|
-
readonly type: "address";
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
readonly internalType: "uint256";
|
|
325
|
-
readonly name: "amount";
|
|
326
|
-
readonly type: "uint256";
|
|
327
|
-
}
|
|
328
|
-
];
|
|
329
|
-
readonly name: "transferFrom";
|
|
330
|
-
readonly outputs: readonly [
|
|
331
|
-
{
|
|
332
|
-
readonly internalType: "bool";
|
|
333
|
-
readonly name: "";
|
|
334
|
-
readonly type: "bool";
|
|
335
|
-
}
|
|
336
|
-
];
|
|
337
|
-
readonly stateMutability: "nonpayable";
|
|
338
|
-
readonly type: "function";
|
|
339
|
-
}
|
|
340
|
-
];
|
|
341
|
-
totalSupply: number;
|
|
342
|
-
}
|
|
343
|
-
declare class UniswapV2LPEntity {
|
|
344
|
-
address: `0x${string}`;
|
|
345
|
-
chainId: "1";
|
|
346
|
-
abi: readonly [
|
|
347
|
-
{
|
|
348
|
-
readonly type: "constructor";
|
|
349
|
-
readonly inputs: readonly [
|
|
350
|
-
];
|
|
351
|
-
readonly payable: false;
|
|
352
|
-
readonly stateMutability: "nonpayable";
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
readonly name: "Approval";
|
|
356
|
-
readonly type: "event";
|
|
357
|
-
readonly inputs: readonly [
|
|
358
|
-
{
|
|
359
|
-
readonly name: "owner";
|
|
360
|
-
readonly type: "address";
|
|
361
|
-
readonly indexed: true;
|
|
362
|
-
readonly internalType: "address";
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
readonly name: "spender";
|
|
366
|
-
readonly type: "address";
|
|
367
|
-
readonly indexed: true;
|
|
368
|
-
readonly internalType: "address";
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
readonly name: "value";
|
|
372
|
-
readonly type: "uint256";
|
|
373
|
-
readonly indexed: false;
|
|
374
|
-
readonly internalType: "uint256";
|
|
375
|
-
}
|
|
376
|
-
];
|
|
377
|
-
readonly anonymous: false;
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
readonly name: "Burn";
|
|
381
|
-
readonly type: "event";
|
|
382
|
-
readonly inputs: readonly [
|
|
383
|
-
{
|
|
384
|
-
readonly name: "sender";
|
|
385
|
-
readonly type: "address";
|
|
386
|
-
readonly indexed: true;
|
|
387
|
-
readonly internalType: "address";
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
readonly name: "amount0";
|
|
391
|
-
readonly type: "uint256";
|
|
392
|
-
readonly indexed: false;
|
|
393
|
-
readonly internalType: "uint256";
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
readonly name: "amount1";
|
|
397
|
-
readonly type: "uint256";
|
|
398
|
-
readonly indexed: false;
|
|
399
|
-
readonly internalType: "uint256";
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
readonly name: "to";
|
|
403
|
-
readonly type: "address";
|
|
404
|
-
readonly indexed: true;
|
|
405
|
-
readonly internalType: "address";
|
|
406
|
-
}
|
|
407
|
-
];
|
|
408
|
-
readonly anonymous: false;
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
readonly name: "Mint";
|
|
412
|
-
readonly type: "event";
|
|
413
|
-
readonly inputs: readonly [
|
|
414
|
-
{
|
|
415
|
-
readonly name: "sender";
|
|
416
|
-
readonly type: "address";
|
|
417
|
-
readonly indexed: true;
|
|
418
|
-
readonly internalType: "address";
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
readonly name: "amount0";
|
|
422
|
-
readonly type: "uint256";
|
|
423
|
-
readonly indexed: false;
|
|
424
|
-
readonly internalType: "uint256";
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
readonly name: "amount1";
|
|
428
|
-
readonly type: "uint256";
|
|
429
|
-
readonly indexed: false;
|
|
430
|
-
readonly internalType: "uint256";
|
|
431
|
-
}
|
|
432
|
-
];
|
|
433
|
-
readonly anonymous: false;
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
readonly name: "Swap";
|
|
437
|
-
readonly type: "event";
|
|
438
|
-
readonly inputs: readonly [
|
|
439
|
-
{
|
|
440
|
-
readonly name: "sender";
|
|
441
|
-
readonly type: "address";
|
|
442
|
-
readonly indexed: true;
|
|
443
|
-
readonly internalType: "address";
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
readonly name: "amount0In";
|
|
447
|
-
readonly type: "uint256";
|
|
448
|
-
readonly indexed: false;
|
|
449
|
-
readonly internalType: "uint256";
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
readonly name: "amount1In";
|
|
453
|
-
readonly type: "uint256";
|
|
454
|
-
readonly indexed: false;
|
|
455
|
-
readonly internalType: "uint256";
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
readonly name: "amount0Out";
|
|
459
|
-
readonly type: "uint256";
|
|
460
|
-
readonly indexed: false;
|
|
461
|
-
readonly internalType: "uint256";
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
readonly name: "amount1Out";
|
|
465
|
-
readonly type: "uint256";
|
|
466
|
-
readonly indexed: false;
|
|
467
|
-
readonly internalType: "uint256";
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
readonly name: "to";
|
|
471
|
-
readonly type: "address";
|
|
472
|
-
readonly indexed: true;
|
|
473
|
-
readonly internalType: "address";
|
|
474
|
-
}
|
|
475
|
-
];
|
|
476
|
-
readonly anonymous: false;
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
readonly name: "Sync";
|
|
480
|
-
readonly type: "event";
|
|
481
|
-
readonly inputs: readonly [
|
|
482
|
-
{
|
|
483
|
-
readonly name: "reserve0";
|
|
484
|
-
readonly type: "uint112";
|
|
485
|
-
readonly indexed: false;
|
|
486
|
-
readonly internalType: "uint112";
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
readonly name: "reserve1";
|
|
490
|
-
readonly type: "uint112";
|
|
491
|
-
readonly indexed: false;
|
|
492
|
-
readonly internalType: "uint112";
|
|
493
|
-
}
|
|
494
|
-
];
|
|
495
|
-
readonly anonymous: false;
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
readonly name: "Transfer";
|
|
499
|
-
readonly type: "event";
|
|
500
|
-
readonly inputs: readonly [
|
|
501
|
-
{
|
|
502
|
-
readonly name: "from";
|
|
503
|
-
readonly type: "address";
|
|
504
|
-
readonly indexed: true;
|
|
505
|
-
readonly internalType: "address";
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
readonly name: "to";
|
|
509
|
-
readonly type: "address";
|
|
510
|
-
readonly indexed: true;
|
|
511
|
-
readonly internalType: "address";
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
readonly name: "value";
|
|
515
|
-
readonly type: "uint256";
|
|
516
|
-
readonly indexed: false;
|
|
517
|
-
readonly internalType: "uint256";
|
|
518
|
-
}
|
|
519
|
-
];
|
|
520
|
-
readonly anonymous: false;
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
readonly name: "DOMAIN_SEPARATOR";
|
|
524
|
-
readonly type: "function";
|
|
525
|
-
readonly inputs: readonly [
|
|
526
|
-
];
|
|
527
|
-
readonly outputs: readonly [
|
|
528
|
-
{
|
|
529
|
-
readonly name: "";
|
|
530
|
-
readonly type: "bytes32";
|
|
531
|
-
readonly internalType: "bytes32";
|
|
532
|
-
}
|
|
533
|
-
];
|
|
534
|
-
readonly payable: false;
|
|
535
|
-
readonly constant: true;
|
|
536
|
-
readonly stateMutability: "view";
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
readonly name: "MINIMUM_LIQUIDITY";
|
|
540
|
-
readonly type: "function";
|
|
541
|
-
readonly inputs: readonly [
|
|
542
|
-
];
|
|
543
|
-
readonly outputs: readonly [
|
|
544
|
-
{
|
|
545
|
-
readonly name: "";
|
|
546
|
-
readonly type: "uint256";
|
|
547
|
-
readonly internalType: "uint256";
|
|
548
|
-
}
|
|
549
|
-
];
|
|
550
|
-
readonly payable: false;
|
|
551
|
-
readonly constant: true;
|
|
552
|
-
readonly stateMutability: "view";
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
readonly name: "PERMIT_TYPEHASH";
|
|
556
|
-
readonly type: "function";
|
|
557
|
-
readonly inputs: readonly [
|
|
558
|
-
];
|
|
559
|
-
readonly outputs: readonly [
|
|
560
|
-
{
|
|
561
|
-
readonly name: "";
|
|
562
|
-
readonly type: "bytes32";
|
|
563
|
-
readonly internalType: "bytes32";
|
|
564
|
-
}
|
|
565
|
-
];
|
|
566
|
-
readonly payable: false;
|
|
567
|
-
readonly constant: true;
|
|
568
|
-
readonly stateMutability: "view";
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
readonly name: "allowance";
|
|
572
|
-
readonly type: "function";
|
|
573
|
-
readonly inputs: readonly [
|
|
574
|
-
{
|
|
575
|
-
readonly name: "";
|
|
576
|
-
readonly type: "address";
|
|
577
|
-
readonly internalType: "address";
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
readonly name: "";
|
|
581
|
-
readonly type: "address";
|
|
582
|
-
readonly internalType: "address";
|
|
583
|
-
}
|
|
584
|
-
];
|
|
585
|
-
readonly outputs: readonly [
|
|
586
|
-
{
|
|
587
|
-
readonly name: "";
|
|
588
|
-
readonly type: "uint256";
|
|
589
|
-
readonly internalType: "uint256";
|
|
590
|
-
}
|
|
591
|
-
];
|
|
592
|
-
readonly payable: false;
|
|
593
|
-
readonly constant: true;
|
|
594
|
-
readonly stateMutability: "view";
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
readonly name: "approve";
|
|
598
|
-
readonly type: "function";
|
|
599
|
-
readonly inputs: readonly [
|
|
600
|
-
{
|
|
601
|
-
readonly name: "spender";
|
|
602
|
-
readonly type: "address";
|
|
603
|
-
readonly internalType: "address";
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
readonly name: "value";
|
|
607
|
-
readonly type: "uint256";
|
|
608
|
-
readonly internalType: "uint256";
|
|
609
|
-
}
|
|
610
|
-
];
|
|
611
|
-
readonly outputs: readonly [
|
|
612
|
-
{
|
|
613
|
-
readonly name: "";
|
|
614
|
-
readonly type: "bool";
|
|
615
|
-
readonly internalType: "bool";
|
|
616
|
-
}
|
|
617
|
-
];
|
|
618
|
-
readonly payable: false;
|
|
619
|
-
readonly constant: false;
|
|
620
|
-
readonly stateMutability: "nonpayable";
|
|
621
|
-
},
|
|
622
|
-
{
|
|
623
|
-
readonly name: "balanceOf";
|
|
624
|
-
readonly type: "function";
|
|
625
|
-
readonly inputs: readonly [
|
|
626
|
-
{
|
|
627
|
-
readonly name: "";
|
|
628
|
-
readonly type: "address";
|
|
629
|
-
readonly internalType: "address";
|
|
630
|
-
}
|
|
631
|
-
];
|
|
632
|
-
readonly outputs: readonly [
|
|
633
|
-
{
|
|
634
|
-
readonly name: "";
|
|
635
|
-
readonly type: "uint256";
|
|
636
|
-
readonly internalType: "uint256";
|
|
637
|
-
}
|
|
638
|
-
];
|
|
639
|
-
readonly payable: false;
|
|
640
|
-
readonly constant: true;
|
|
641
|
-
readonly stateMutability: "view";
|
|
642
|
-
},
|
|
643
|
-
{
|
|
644
|
-
readonly name: "burn";
|
|
645
|
-
readonly type: "function";
|
|
646
|
-
readonly inputs: readonly [
|
|
647
|
-
{
|
|
648
|
-
readonly name: "to";
|
|
649
|
-
readonly type: "address";
|
|
650
|
-
readonly internalType: "address";
|
|
651
|
-
}
|
|
652
|
-
];
|
|
653
|
-
readonly outputs: readonly [
|
|
654
|
-
{
|
|
655
|
-
readonly name: "amount0";
|
|
656
|
-
readonly type: "uint256";
|
|
657
|
-
readonly internalType: "uint256";
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
readonly name: "amount1";
|
|
661
|
-
readonly type: "uint256";
|
|
662
|
-
readonly internalType: "uint256";
|
|
663
|
-
}
|
|
664
|
-
];
|
|
665
|
-
readonly payable: false;
|
|
666
|
-
readonly constant: false;
|
|
667
|
-
readonly stateMutability: "nonpayable";
|
|
668
|
-
},
|
|
669
|
-
{
|
|
670
|
-
readonly name: "decimals";
|
|
671
|
-
readonly type: "function";
|
|
672
|
-
readonly inputs: readonly [
|
|
673
|
-
];
|
|
674
|
-
readonly outputs: readonly [
|
|
675
|
-
{
|
|
676
|
-
readonly name: "";
|
|
677
|
-
readonly type: "uint8";
|
|
678
|
-
readonly internalType: "uint8";
|
|
679
|
-
}
|
|
680
|
-
];
|
|
681
|
-
readonly payable: false;
|
|
682
|
-
readonly constant: true;
|
|
683
|
-
readonly stateMutability: "view";
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
readonly name: "factory";
|
|
687
|
-
readonly type: "function";
|
|
688
|
-
readonly inputs: readonly [
|
|
689
|
-
];
|
|
690
|
-
readonly outputs: readonly [
|
|
691
|
-
{
|
|
692
|
-
readonly name: "";
|
|
693
|
-
readonly type: "address";
|
|
694
|
-
readonly internalType: "address";
|
|
695
|
-
}
|
|
696
|
-
];
|
|
697
|
-
readonly payable: false;
|
|
698
|
-
readonly constant: true;
|
|
699
|
-
readonly stateMutability: "view";
|
|
700
|
-
},
|
|
701
|
-
{
|
|
702
|
-
readonly name: "getReserves";
|
|
703
|
-
readonly type: "function";
|
|
704
|
-
readonly inputs: readonly [
|
|
705
|
-
];
|
|
706
|
-
readonly outputs: readonly [
|
|
707
|
-
{
|
|
708
|
-
readonly name: "_reserve0";
|
|
709
|
-
readonly type: "uint112";
|
|
710
|
-
readonly internalType: "uint112";
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
readonly name: "_reserve1";
|
|
714
|
-
readonly type: "uint112";
|
|
715
|
-
readonly internalType: "uint112";
|
|
716
|
-
},
|
|
717
|
-
{
|
|
718
|
-
readonly name: "_blockTimestampLast";
|
|
719
|
-
readonly type: "uint32";
|
|
720
|
-
readonly internalType: "uint32";
|
|
721
|
-
}
|
|
722
|
-
];
|
|
723
|
-
readonly payable: false;
|
|
724
|
-
readonly constant: true;
|
|
725
|
-
readonly stateMutability: "view";
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
readonly name: "initialize";
|
|
729
|
-
readonly type: "function";
|
|
730
|
-
readonly inputs: readonly [
|
|
731
|
-
{
|
|
732
|
-
readonly name: "_token0";
|
|
733
|
-
readonly type: "address";
|
|
734
|
-
readonly internalType: "address";
|
|
735
|
-
},
|
|
736
|
-
{
|
|
737
|
-
readonly name: "_token1";
|
|
738
|
-
readonly type: "address";
|
|
739
|
-
readonly internalType: "address";
|
|
740
|
-
}
|
|
741
|
-
];
|
|
742
|
-
readonly outputs: readonly [
|
|
743
|
-
];
|
|
744
|
-
readonly payable: false;
|
|
745
|
-
readonly constant: false;
|
|
746
|
-
readonly stateMutability: "nonpayable";
|
|
747
|
-
},
|
|
748
|
-
{
|
|
749
|
-
readonly name: "kLast";
|
|
750
|
-
readonly type: "function";
|
|
751
|
-
readonly inputs: readonly [
|
|
752
|
-
];
|
|
753
|
-
readonly outputs: readonly [
|
|
754
|
-
{
|
|
755
|
-
readonly name: "";
|
|
756
|
-
readonly type: "uint256";
|
|
757
|
-
readonly internalType: "uint256";
|
|
758
|
-
}
|
|
759
|
-
];
|
|
760
|
-
readonly payable: false;
|
|
761
|
-
readonly constant: true;
|
|
762
|
-
readonly stateMutability: "view";
|
|
763
|
-
},
|
|
764
|
-
{
|
|
765
|
-
readonly name: "mint";
|
|
766
|
-
readonly type: "function";
|
|
767
|
-
readonly inputs: readonly [
|
|
768
|
-
{
|
|
769
|
-
readonly name: "to";
|
|
770
|
-
readonly type: "address";
|
|
771
|
-
readonly internalType: "address";
|
|
772
|
-
}
|
|
773
|
-
];
|
|
774
|
-
readonly outputs: readonly [
|
|
775
|
-
{
|
|
776
|
-
readonly name: "liquidity";
|
|
777
|
-
readonly type: "uint256";
|
|
778
|
-
readonly internalType: "uint256";
|
|
779
|
-
}
|
|
780
|
-
];
|
|
781
|
-
readonly payable: false;
|
|
782
|
-
readonly constant: false;
|
|
783
|
-
readonly stateMutability: "nonpayable";
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
readonly name: "name";
|
|
787
|
-
readonly type: "function";
|
|
788
|
-
readonly inputs: readonly [
|
|
789
|
-
];
|
|
790
|
-
readonly outputs: readonly [
|
|
791
|
-
{
|
|
792
|
-
readonly name: "";
|
|
793
|
-
readonly type: "string";
|
|
794
|
-
readonly internalType: "string";
|
|
795
|
-
}
|
|
796
|
-
];
|
|
797
|
-
readonly payable: false;
|
|
798
|
-
readonly constant: true;
|
|
799
|
-
readonly stateMutability: "view";
|
|
800
|
-
},
|
|
801
|
-
{
|
|
802
|
-
readonly name: "nonces";
|
|
803
|
-
readonly type: "function";
|
|
804
|
-
readonly inputs: readonly [
|
|
805
|
-
{
|
|
806
|
-
readonly name: "";
|
|
807
|
-
readonly type: "address";
|
|
808
|
-
readonly internalType: "address";
|
|
809
|
-
}
|
|
810
|
-
];
|
|
811
|
-
readonly outputs: readonly [
|
|
812
|
-
{
|
|
813
|
-
readonly name: "";
|
|
814
|
-
readonly type: "uint256";
|
|
815
|
-
readonly internalType: "uint256";
|
|
816
|
-
}
|
|
817
|
-
];
|
|
818
|
-
readonly payable: false;
|
|
819
|
-
readonly constant: true;
|
|
820
|
-
readonly stateMutability: "view";
|
|
821
|
-
},
|
|
822
|
-
{
|
|
823
|
-
readonly name: "permit";
|
|
824
|
-
readonly type: "function";
|
|
825
|
-
readonly inputs: readonly [
|
|
826
|
-
{
|
|
827
|
-
readonly name: "owner";
|
|
828
|
-
readonly type: "address";
|
|
829
|
-
readonly internalType: "address";
|
|
830
|
-
},
|
|
831
|
-
{
|
|
832
|
-
readonly name: "spender";
|
|
833
|
-
readonly type: "address";
|
|
834
|
-
readonly internalType: "address";
|
|
835
|
-
},
|
|
836
|
-
{
|
|
837
|
-
readonly name: "value";
|
|
838
|
-
readonly type: "uint256";
|
|
839
|
-
readonly internalType: "uint256";
|
|
840
|
-
},
|
|
841
|
-
{
|
|
842
|
-
readonly name: "deadline";
|
|
843
|
-
readonly type: "uint256";
|
|
844
|
-
readonly internalType: "uint256";
|
|
845
|
-
},
|
|
846
|
-
{
|
|
847
|
-
readonly name: "v";
|
|
848
|
-
readonly type: "uint8";
|
|
849
|
-
readonly internalType: "uint8";
|
|
850
|
-
},
|
|
851
|
-
{
|
|
852
|
-
readonly name: "r";
|
|
853
|
-
readonly type: "bytes32";
|
|
854
|
-
readonly internalType: "bytes32";
|
|
855
|
-
},
|
|
856
|
-
{
|
|
857
|
-
readonly name: "s";
|
|
858
|
-
readonly type: "bytes32";
|
|
859
|
-
readonly internalType: "bytes32";
|
|
860
|
-
}
|
|
861
|
-
];
|
|
862
|
-
readonly outputs: readonly [
|
|
863
|
-
];
|
|
864
|
-
readonly payable: false;
|
|
865
|
-
readonly constant: false;
|
|
866
|
-
readonly stateMutability: "nonpayable";
|
|
867
|
-
},
|
|
868
|
-
{
|
|
869
|
-
readonly name: "price0CumulativeLast";
|
|
870
|
-
readonly type: "function";
|
|
871
|
-
readonly inputs: readonly [
|
|
872
|
-
];
|
|
873
|
-
readonly outputs: readonly [
|
|
874
|
-
{
|
|
875
|
-
readonly name: "";
|
|
876
|
-
readonly type: "uint256";
|
|
877
|
-
readonly internalType: "uint256";
|
|
878
|
-
}
|
|
879
|
-
];
|
|
880
|
-
readonly payable: false;
|
|
881
|
-
readonly constant: true;
|
|
882
|
-
readonly stateMutability: "view";
|
|
883
|
-
},
|
|
884
|
-
{
|
|
885
|
-
readonly name: "price1CumulativeLast";
|
|
886
|
-
readonly type: "function";
|
|
887
|
-
readonly inputs: readonly [
|
|
888
|
-
];
|
|
889
|
-
readonly outputs: readonly [
|
|
890
|
-
{
|
|
891
|
-
readonly name: "";
|
|
892
|
-
readonly type: "uint256";
|
|
893
|
-
readonly internalType: "uint256";
|
|
894
|
-
}
|
|
895
|
-
];
|
|
896
|
-
readonly payable: false;
|
|
897
|
-
readonly constant: true;
|
|
898
|
-
readonly stateMutability: "view";
|
|
899
|
-
},
|
|
900
|
-
{
|
|
901
|
-
readonly name: "skim";
|
|
902
|
-
readonly type: "function";
|
|
903
|
-
readonly inputs: readonly [
|
|
904
|
-
{
|
|
905
|
-
readonly name: "to";
|
|
906
|
-
readonly type: "address";
|
|
907
|
-
readonly internalType: "address";
|
|
908
|
-
}
|
|
909
|
-
];
|
|
910
|
-
readonly outputs: readonly [
|
|
911
|
-
];
|
|
912
|
-
readonly payable: false;
|
|
913
|
-
readonly constant: false;
|
|
914
|
-
readonly stateMutability: "nonpayable";
|
|
915
|
-
},
|
|
916
|
-
{
|
|
917
|
-
readonly name: "swap";
|
|
918
|
-
readonly type: "function";
|
|
919
|
-
readonly inputs: readonly [
|
|
920
|
-
{
|
|
921
|
-
readonly name: "amount0Out";
|
|
922
|
-
readonly type: "uint256";
|
|
923
|
-
readonly internalType: "uint256";
|
|
924
|
-
},
|
|
925
|
-
{
|
|
926
|
-
readonly name: "amount1Out";
|
|
927
|
-
readonly type: "uint256";
|
|
928
|
-
readonly internalType: "uint256";
|
|
929
|
-
},
|
|
930
|
-
{
|
|
931
|
-
readonly name: "to";
|
|
932
|
-
readonly type: "address";
|
|
933
|
-
readonly internalType: "address";
|
|
934
|
-
},
|
|
935
|
-
{
|
|
936
|
-
readonly name: "data";
|
|
937
|
-
readonly type: "bytes";
|
|
938
|
-
readonly internalType: "bytes";
|
|
939
|
-
}
|
|
940
|
-
];
|
|
941
|
-
readonly outputs: readonly [
|
|
942
|
-
];
|
|
943
|
-
readonly payable: false;
|
|
944
|
-
readonly constant: false;
|
|
945
|
-
readonly stateMutability: "nonpayable";
|
|
946
|
-
},
|
|
947
|
-
{
|
|
948
|
-
readonly name: "symbol";
|
|
949
|
-
readonly type: "function";
|
|
950
|
-
readonly inputs: readonly [
|
|
951
|
-
];
|
|
952
|
-
readonly outputs: readonly [
|
|
953
|
-
{
|
|
954
|
-
readonly name: "";
|
|
955
|
-
readonly type: "string";
|
|
956
|
-
readonly internalType: "string";
|
|
957
|
-
}
|
|
958
|
-
];
|
|
959
|
-
readonly payable: false;
|
|
960
|
-
readonly constant: true;
|
|
961
|
-
readonly stateMutability: "view";
|
|
962
|
-
},
|
|
963
|
-
{
|
|
964
|
-
readonly name: "sync";
|
|
965
|
-
readonly type: "function";
|
|
966
|
-
readonly inputs: readonly [
|
|
967
|
-
];
|
|
968
|
-
readonly outputs: readonly [
|
|
969
|
-
];
|
|
970
|
-
readonly payable: false;
|
|
971
|
-
readonly constant: false;
|
|
972
|
-
readonly stateMutability: "nonpayable";
|
|
973
|
-
},
|
|
974
|
-
{
|
|
975
|
-
readonly name: "token0";
|
|
976
|
-
readonly type: "function";
|
|
977
|
-
readonly inputs: readonly [
|
|
978
|
-
];
|
|
979
|
-
readonly outputs: readonly [
|
|
980
|
-
{
|
|
981
|
-
readonly name: "";
|
|
982
|
-
readonly type: "address";
|
|
983
|
-
readonly internalType: "address";
|
|
984
|
-
}
|
|
985
|
-
];
|
|
986
|
-
readonly payable: false;
|
|
987
|
-
readonly constant: true;
|
|
988
|
-
readonly stateMutability: "view";
|
|
989
|
-
},
|
|
990
|
-
{
|
|
991
|
-
readonly name: "token1";
|
|
992
|
-
readonly type: "function";
|
|
993
|
-
readonly inputs: readonly [
|
|
994
|
-
];
|
|
995
|
-
readonly outputs: readonly [
|
|
996
|
-
{
|
|
997
|
-
readonly name: "";
|
|
998
|
-
readonly type: "address";
|
|
999
|
-
readonly internalType: "address";
|
|
1000
|
-
}
|
|
1001
|
-
];
|
|
1002
|
-
readonly payable: false;
|
|
1003
|
-
readonly constant: true;
|
|
1004
|
-
readonly stateMutability: "view";
|
|
1005
|
-
},
|
|
1006
|
-
{
|
|
1007
|
-
readonly name: "totalSupply";
|
|
1008
|
-
readonly type: "function";
|
|
1009
|
-
readonly inputs: readonly [
|
|
1010
|
-
];
|
|
1011
|
-
readonly outputs: readonly [
|
|
1012
|
-
{
|
|
1013
|
-
readonly name: "";
|
|
1014
|
-
readonly type: "uint256";
|
|
1015
|
-
readonly internalType: "uint256";
|
|
1016
|
-
}
|
|
1017
|
-
];
|
|
1018
|
-
readonly payable: false;
|
|
1019
|
-
readonly constant: true;
|
|
1020
|
-
readonly stateMutability: "view";
|
|
1021
|
-
},
|
|
1022
|
-
{
|
|
1023
|
-
readonly name: "transfer";
|
|
1024
|
-
readonly type: "function";
|
|
1025
|
-
readonly inputs: readonly [
|
|
1026
|
-
{
|
|
1027
|
-
readonly name: "to";
|
|
1028
|
-
readonly type: "address";
|
|
1029
|
-
readonly internalType: "address";
|
|
1030
|
-
},
|
|
1031
|
-
{
|
|
1032
|
-
readonly name: "value";
|
|
1033
|
-
readonly type: "uint256";
|
|
1034
|
-
readonly internalType: "uint256";
|
|
1035
|
-
}
|
|
1036
|
-
];
|
|
1037
|
-
readonly outputs: readonly [
|
|
1038
|
-
{
|
|
1039
|
-
readonly name: "";
|
|
1040
|
-
readonly type: "bool";
|
|
1041
|
-
readonly internalType: "bool";
|
|
1042
|
-
}
|
|
1043
|
-
];
|
|
1044
|
-
readonly payable: false;
|
|
1045
|
-
readonly constant: false;
|
|
1046
|
-
readonly stateMutability: "nonpayable";
|
|
1047
|
-
},
|
|
1048
|
-
{
|
|
1049
|
-
readonly name: "transferFrom";
|
|
1050
|
-
readonly type: "function";
|
|
1051
|
-
readonly inputs: readonly [
|
|
1052
|
-
{
|
|
1053
|
-
readonly name: "from";
|
|
1054
|
-
readonly type: "address";
|
|
1055
|
-
readonly internalType: "address";
|
|
1056
|
-
},
|
|
1057
|
-
{
|
|
1058
|
-
readonly name: "to";
|
|
1059
|
-
readonly type: "address";
|
|
1060
|
-
readonly internalType: "address";
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
readonly name: "value";
|
|
1064
|
-
readonly type: "uint256";
|
|
1065
|
-
readonly internalType: "uint256";
|
|
1066
|
-
}
|
|
1067
|
-
];
|
|
1068
|
-
readonly outputs: readonly [
|
|
1069
|
-
{
|
|
1070
|
-
readonly name: "";
|
|
1071
|
-
readonly type: "bool";
|
|
1072
|
-
readonly internalType: "bool";
|
|
1073
|
-
}
|
|
1074
|
-
];
|
|
1075
|
-
readonly payable: false;
|
|
1076
|
-
readonly constant: false;
|
|
1077
|
-
readonly stateMutability: "nonpayable";
|
|
1078
|
-
}
|
|
1079
|
-
];
|
|
1080
|
-
totalSupply: number;
|
|
1081
|
-
token0: string;
|
|
1082
|
-
Token0: ERC20Entity;
|
|
1083
|
-
totalSupplyUSD(): Promise<number>;
|
|
1084
|
-
}
|
|
1085
|
-
declare class Mimo {
|
|
1086
|
-
getLpList(args: {
|
|
1087
|
-
address: string;
|
|
1088
|
-
}): Promise<import("@dappworks/kit/aiem").QueryReturnType<UniswapV2LPEntity, {
|
|
1089
|
-
totalSupply: true;
|
|
1090
|
-
totalSupplyUSD: true;
|
|
1091
|
-
Token0: {
|
|
1092
|
-
address: true;
|
|
1093
|
-
totalSupply: true;
|
|
1094
|
-
};
|
|
1095
|
-
}>>;
|
|
1096
|
-
}
|
|
1097
|
-
export interface Bucket {
|
|
1098
|
-
index: bigint;
|
|
1099
|
-
candidateAddress: string;
|
|
1100
|
-
stakedAmount: bigint;
|
|
1101
|
-
stakedDuration: number;
|
|
1102
|
-
createTime: bigint;
|
|
1103
|
-
stakeStartTime: bigint;
|
|
1104
|
-
unstakeStartTime: bigint;
|
|
1105
|
-
autoStake: boolean;
|
|
1106
|
-
owner: string;
|
|
1107
|
-
contractAddress: string;
|
|
1108
|
-
stakedDurationBlockNumber: bigint;
|
|
1109
|
-
createBlockHeight: bigint;
|
|
1110
|
-
stakeStartBlockHeight: bigint;
|
|
1111
|
-
unstakeStartBlockHeight: bigint;
|
|
1112
|
-
}
|
|
1113
|
-
declare class Staking {
|
|
1114
|
-
compositeBucketsByVoter(args: {
|
|
1115
|
-
address: `0x${string}`;
|
|
1116
|
-
count?: string;
|
|
1117
|
-
}): Promise<Bucket[] | {
|
|
1118
|
-
error: any;
|
|
1119
|
-
}>;
|
|
1120
|
-
changeCandidate(args: {
|
|
1121
|
-
candName: string;
|
|
1122
|
-
bucketIndex: string;
|
|
1123
|
-
}): Promise<any>;
|
|
1124
|
-
depositToStake(args: {
|
|
1125
|
-
bucketIndex: string;
|
|
1126
|
-
amount: string;
|
|
1127
|
-
}): Promise<any>;
|
|
1128
|
-
restake(args: {
|
|
1129
|
-
bucketIndex: string;
|
|
1130
|
-
duration: string;
|
|
1131
|
-
autoStake: boolean;
|
|
1132
|
-
}): Promise<any>;
|
|
1133
|
-
unstake(args: {
|
|
1134
|
-
bucketIndex: string;
|
|
1135
|
-
}): Promise<any>;
|
|
1136
|
-
withdrawStake(args: {
|
|
1137
|
-
bucketIndex: string;
|
|
1138
|
-
}): Promise<any>;
|
|
1139
|
-
transferStake(args: {
|
|
1140
|
-
voterAddress: `0x${string}`;
|
|
1141
|
-
bucketIndex: string;
|
|
1142
|
-
}): Promise<any>;
|
|
1143
|
-
}
|
|
1144
|
-
declare const modules: {
|
|
1145
|
-
mimo: Mimo;
|
|
1146
|
-
staking: Staking;
|
|
1147
|
-
};
|
|
1148
|
-
export type ModuleType = typeof modules;
|
|
1149
|
-
export declare const createClient: ({ url }?: {
|
|
1150
|
-
url?: string;
|
|
1151
|
-
}) => ModuleType;
|
|
1152
|
-
|
|
1153
|
-
export {};
|
|
1
|
+
export * from "./lib/client";
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@iotexproject/kit",
|
|
3
3
|
"module": "index.ts",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "v0.0.
|
|
5
|
+
"version": "v0.0.9",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
@@ -15,7 +15,14 @@
|
|
|
15
15
|
],
|
|
16
16
|
"peerDependencies": {},
|
|
17
17
|
"dependencies": {
|
|
18
|
+
"@iotexproject/iotex-address-ts": "^1.0.4",
|
|
19
|
+
"axios": "^1.7.2",
|
|
20
|
+
"bech32": "^2.0.0",
|
|
18
21
|
"bentocache": "^1.0.0-beta.9",
|
|
22
|
+
"bignumber.js": "^9.1.2",
|
|
23
|
+
"dataloader": "^2.2.2",
|
|
24
|
+
"dayjs": "^1.11.12",
|
|
25
|
+
"lru-cache": "^11.0.0",
|
|
19
26
|
"reflect-metadata": "^0.2.2",
|
|
20
27
|
"viem": "^2.17.5"
|
|
21
28
|
},
|
|
@@ -23,8 +30,10 @@
|
|
|
23
30
|
"@dappworks/kit": "0.4.122",
|
|
24
31
|
"@types/bun": "latest",
|
|
25
32
|
"bun-plugin-dts": "^0.2.3",
|
|
33
|
+
"bun-plugin-isolated-decl": "^0.1.1",
|
|
26
34
|
"hono": "^4.4.11",
|
|
27
|
-
"
|
|
35
|
+
"oxc-transform": "^0.22.0",
|
|
36
|
+
"typescript": "^5.5.4"
|
|
28
37
|
},
|
|
29
38
|
"publishConfig": {
|
|
30
39
|
"access": "public",
|