@kasarlabs/vesu-mcp 0.1.0

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.
Files changed (46) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +28 -0
  3. package/bin/vesu-mcp.js +14 -0
  4. package/build/index.d.ts +2 -0
  5. package/build/index.js +49 -0
  6. package/build/index.js.map +1 -0
  7. package/build/interfaces/index.d.ts +112 -0
  8. package/build/interfaces/index.js +28 -0
  9. package/build/interfaces/index.js.map +1 -0
  10. package/build/lib/abis/erc20Abi.d.ts +89 -0
  11. package/build/lib/abis/erc20Abi.js +128 -0
  12. package/build/lib/abis/erc20Abi.js.map +1 -0
  13. package/build/lib/abis/extensionAbi.d.ts +1397 -0
  14. package/build/lib/abis/extensionAbi.js +1909 -0
  15. package/build/lib/abis/extensionAbi.js.map +1 -0
  16. package/build/lib/abis/singletonAbi.d.ts +1410 -0
  17. package/build/lib/abis/singletonAbi.js +1914 -0
  18. package/build/lib/abis/singletonAbi.js.map +1 -0
  19. package/build/lib/abis/vTokenAbi.d.ts +561 -0
  20. package/build/lib/abis/vTokenAbi.js +781 -0
  21. package/build/lib/abis/vTokenAbi.js.map +1 -0
  22. package/build/lib/constants/index.d.ts +7 -0
  23. package/build/lib/constants/index.js +7 -0
  24. package/build/lib/constants/index.js.map +1 -0
  25. package/build/lib/dependances/types.d.ts +85 -0
  26. package/build/lib/dependances/types.js +51 -0
  27. package/build/lib/dependances/types.js.map +1 -0
  28. package/build/lib/utils/contracts.d.ts +3458 -0
  29. package/build/lib/utils/contracts.js +22 -0
  30. package/build/lib/utils/contracts.js.map +1 -0
  31. package/build/lib/utils/num.d.ts +33 -0
  32. package/build/lib/utils/num.js +59 -0
  33. package/build/lib/utils/num.js.map +1 -0
  34. package/build/lib/utils/processTransactions.d.ts +6 -0
  35. package/build/lib/utils/processTransactions.js +23 -0
  36. package/build/lib/utils/processTransactions.js.map +1 -0
  37. package/build/schemas/index.d.ts +18 -0
  38. package/build/schemas/index.js +13 -0
  39. package/build/schemas/index.js.map +1 -0
  40. package/build/tools/depositService.d.ts +19 -0
  41. package/build/tools/depositService.js +117 -0
  42. package/build/tools/depositService.js.map +1 -0
  43. package/build/tools/withdrawService.d.ts +20 -0
  44. package/build/tools/withdrawService.js +122 -0
  45. package/build/tools/withdrawService.js.map +1 -0
  46. package/package.json +44 -0
@@ -0,0 +1,781 @@
1
+ export const vTokenAbi = [
2
+ {
3
+ name: 'VToken',
4
+ type: 'impl',
5
+ interface_name: 'vesu::v_token::IVToken',
6
+ },
7
+ {
8
+ name: 'core::integer::u256',
9
+ type: 'struct',
10
+ members: [
11
+ {
12
+ name: 'low',
13
+ type: 'core::integer::u128',
14
+ },
15
+ {
16
+ name: 'high',
17
+ type: 'core::integer::u128',
18
+ },
19
+ ],
20
+ },
21
+ {
22
+ name: 'core::bool',
23
+ type: 'enum',
24
+ variants: [
25
+ {
26
+ name: 'False',
27
+ type: '()',
28
+ },
29
+ {
30
+ name: 'True',
31
+ type: '()',
32
+ },
33
+ ],
34
+ },
35
+ {
36
+ name: 'vesu::v_token::IVToken',
37
+ type: 'interface',
38
+ items: [
39
+ {
40
+ name: 'extension',
41
+ type: 'function',
42
+ inputs: [],
43
+ outputs: [
44
+ {
45
+ type: 'core::starknet::contract_address::ContractAddress',
46
+ },
47
+ ],
48
+ state_mutability: 'view',
49
+ },
50
+ {
51
+ name: 'approve_extension',
52
+ type: 'function',
53
+ inputs: [],
54
+ outputs: [],
55
+ state_mutability: 'external',
56
+ },
57
+ {
58
+ name: 'mint_v_token',
59
+ type: 'function',
60
+ inputs: [
61
+ {
62
+ name: 'recipient',
63
+ type: 'core::starknet::contract_address::ContractAddress',
64
+ },
65
+ {
66
+ name: 'amount',
67
+ type: 'core::integer::u256',
68
+ },
69
+ ],
70
+ outputs: [
71
+ {
72
+ type: 'core::bool',
73
+ },
74
+ ],
75
+ state_mutability: 'external',
76
+ },
77
+ {
78
+ name: 'burn_v_token',
79
+ type: 'function',
80
+ inputs: [
81
+ {
82
+ name: 'from',
83
+ type: 'core::starknet::contract_address::ContractAddress',
84
+ },
85
+ {
86
+ name: 'amount',
87
+ type: 'core::integer::u256',
88
+ },
89
+ ],
90
+ outputs: [
91
+ {
92
+ type: 'core::bool',
93
+ },
94
+ ],
95
+ state_mutability: 'external',
96
+ },
97
+ ],
98
+ },
99
+ {
100
+ name: 'IERC4626',
101
+ type: 'impl',
102
+ interface_name: 'vesu::v_token::IERC4626',
103
+ },
104
+ {
105
+ name: 'vesu::v_token::IERC4626',
106
+ type: 'interface',
107
+ items: [
108
+ {
109
+ name: 'asset',
110
+ type: 'function',
111
+ inputs: [],
112
+ outputs: [
113
+ {
114
+ type: 'core::starknet::contract_address::ContractAddress',
115
+ },
116
+ ],
117
+ state_mutability: 'view',
118
+ },
119
+ {
120
+ name: 'total_assets',
121
+ type: 'function',
122
+ inputs: [],
123
+ outputs: [
124
+ {
125
+ type: 'core::integer::u256',
126
+ },
127
+ ],
128
+ state_mutability: 'view',
129
+ },
130
+ {
131
+ name: 'convert_to_shares',
132
+ type: 'function',
133
+ inputs: [
134
+ {
135
+ name: 'assets',
136
+ type: 'core::integer::u256',
137
+ },
138
+ ],
139
+ outputs: [
140
+ {
141
+ type: 'core::integer::u256',
142
+ },
143
+ ],
144
+ state_mutability: 'view',
145
+ },
146
+ {
147
+ name: 'convert_to_assets',
148
+ type: 'function',
149
+ inputs: [
150
+ {
151
+ name: 'shares',
152
+ type: 'core::integer::u256',
153
+ },
154
+ ],
155
+ outputs: [
156
+ {
157
+ type: 'core::integer::u256',
158
+ },
159
+ ],
160
+ state_mutability: 'view',
161
+ },
162
+ {
163
+ name: 'max_deposit',
164
+ type: 'function',
165
+ inputs: [
166
+ {
167
+ name: 'receiver',
168
+ type: 'core::starknet::contract_address::ContractAddress',
169
+ },
170
+ ],
171
+ outputs: [
172
+ {
173
+ type: 'core::integer::u256',
174
+ },
175
+ ],
176
+ state_mutability: 'view',
177
+ },
178
+ {
179
+ name: 'preview_deposit',
180
+ type: 'function',
181
+ inputs: [
182
+ {
183
+ name: 'assets',
184
+ type: 'core::integer::u256',
185
+ },
186
+ ],
187
+ outputs: [
188
+ {
189
+ type: 'core::integer::u256',
190
+ },
191
+ ],
192
+ state_mutability: 'view',
193
+ },
194
+ {
195
+ name: 'deposit',
196
+ type: 'function',
197
+ inputs: [
198
+ {
199
+ name: 'assets',
200
+ type: 'core::integer::u256',
201
+ },
202
+ {
203
+ name: 'receiver',
204
+ type: 'core::starknet::contract_address::ContractAddress',
205
+ },
206
+ ],
207
+ outputs: [
208
+ {
209
+ type: 'core::integer::u256',
210
+ },
211
+ ],
212
+ state_mutability: 'external',
213
+ },
214
+ {
215
+ name: 'max_mint',
216
+ type: 'function',
217
+ inputs: [
218
+ {
219
+ name: 'receiver',
220
+ type: 'core::starknet::contract_address::ContractAddress',
221
+ },
222
+ ],
223
+ outputs: [
224
+ {
225
+ type: 'core::integer::u256',
226
+ },
227
+ ],
228
+ state_mutability: 'view',
229
+ },
230
+ {
231
+ name: 'preview_mint',
232
+ type: 'function',
233
+ inputs: [
234
+ {
235
+ name: 'shares',
236
+ type: 'core::integer::u256',
237
+ },
238
+ ],
239
+ outputs: [
240
+ {
241
+ type: 'core::integer::u256',
242
+ },
243
+ ],
244
+ state_mutability: 'view',
245
+ },
246
+ {
247
+ name: 'mint',
248
+ type: 'function',
249
+ inputs: [
250
+ {
251
+ name: 'shares',
252
+ type: 'core::integer::u256',
253
+ },
254
+ {
255
+ name: 'receiver',
256
+ type: 'core::starknet::contract_address::ContractAddress',
257
+ },
258
+ ],
259
+ outputs: [
260
+ {
261
+ type: 'core::integer::u256',
262
+ },
263
+ ],
264
+ state_mutability: 'external',
265
+ },
266
+ {
267
+ name: 'max_withdraw',
268
+ type: 'function',
269
+ inputs: [
270
+ {
271
+ name: 'owner',
272
+ type: 'core::starknet::contract_address::ContractAddress',
273
+ },
274
+ ],
275
+ outputs: [
276
+ {
277
+ type: 'core::integer::u256',
278
+ },
279
+ ],
280
+ state_mutability: 'view',
281
+ },
282
+ {
283
+ name: 'preview_withdraw',
284
+ type: 'function',
285
+ inputs: [
286
+ {
287
+ name: 'assets',
288
+ type: 'core::integer::u256',
289
+ },
290
+ ],
291
+ outputs: [
292
+ {
293
+ type: 'core::integer::u256',
294
+ },
295
+ ],
296
+ state_mutability: 'view',
297
+ },
298
+ {
299
+ name: 'withdraw',
300
+ type: 'function',
301
+ inputs: [
302
+ {
303
+ name: 'assets',
304
+ type: 'core::integer::u256',
305
+ },
306
+ {
307
+ name: 'receiver',
308
+ type: 'core::starknet::contract_address::ContractAddress',
309
+ },
310
+ {
311
+ name: 'owner',
312
+ type: 'core::starknet::contract_address::ContractAddress',
313
+ },
314
+ ],
315
+ outputs: [
316
+ {
317
+ type: 'core::integer::u256',
318
+ },
319
+ ],
320
+ state_mutability: 'external',
321
+ },
322
+ {
323
+ name: 'max_redeem',
324
+ type: 'function',
325
+ inputs: [
326
+ {
327
+ name: 'owner',
328
+ type: 'core::starknet::contract_address::ContractAddress',
329
+ },
330
+ ],
331
+ outputs: [
332
+ {
333
+ type: 'core::integer::u256',
334
+ },
335
+ ],
336
+ state_mutability: 'view',
337
+ },
338
+ {
339
+ name: 'preview_redeem',
340
+ type: 'function',
341
+ inputs: [
342
+ {
343
+ name: 'shares',
344
+ type: 'core::integer::u256',
345
+ },
346
+ ],
347
+ outputs: [
348
+ {
349
+ type: 'core::integer::u256',
350
+ },
351
+ ],
352
+ state_mutability: 'view',
353
+ },
354
+ {
355
+ name: 'redeem',
356
+ type: 'function',
357
+ inputs: [
358
+ {
359
+ name: 'shares',
360
+ type: 'core::integer::u256',
361
+ },
362
+ {
363
+ name: 'receiver',
364
+ type: 'core::starknet::contract_address::ContractAddress',
365
+ },
366
+ {
367
+ name: 'owner',
368
+ type: 'core::starknet::contract_address::ContractAddress',
369
+ },
370
+ ],
371
+ outputs: [
372
+ {
373
+ type: 'core::integer::u256',
374
+ },
375
+ ],
376
+ state_mutability: 'external',
377
+ },
378
+ ],
379
+ },
380
+ {
381
+ name: 'ERC20Impl',
382
+ type: 'impl',
383
+ interface_name: 'vesu::vendor::erc20::IERC20',
384
+ },
385
+ {
386
+ name: 'vesu::vendor::erc20::IERC20',
387
+ type: 'interface',
388
+ items: [
389
+ {
390
+ name: 'total_supply',
391
+ type: 'function',
392
+ inputs: [],
393
+ outputs: [
394
+ {
395
+ type: 'core::integer::u256',
396
+ },
397
+ ],
398
+ state_mutability: 'view',
399
+ },
400
+ {
401
+ name: 'balance_of',
402
+ type: 'function',
403
+ inputs: [
404
+ {
405
+ name: 'account',
406
+ type: 'core::starknet::contract_address::ContractAddress',
407
+ },
408
+ ],
409
+ outputs: [
410
+ {
411
+ type: 'core::integer::u256',
412
+ },
413
+ ],
414
+ state_mutability: 'view',
415
+ },
416
+ {
417
+ name: 'allowance',
418
+ type: 'function',
419
+ inputs: [
420
+ {
421
+ name: 'owner',
422
+ type: 'core::starknet::contract_address::ContractAddress',
423
+ },
424
+ {
425
+ name: 'spender',
426
+ type: 'core::starknet::contract_address::ContractAddress',
427
+ },
428
+ ],
429
+ outputs: [
430
+ {
431
+ type: 'core::integer::u256',
432
+ },
433
+ ],
434
+ state_mutability: 'view',
435
+ },
436
+ {
437
+ name: 'transfer',
438
+ type: 'function',
439
+ inputs: [
440
+ {
441
+ name: 'recipient',
442
+ type: 'core::starknet::contract_address::ContractAddress',
443
+ },
444
+ {
445
+ name: 'amount',
446
+ type: 'core::integer::u256',
447
+ },
448
+ ],
449
+ outputs: [
450
+ {
451
+ type: 'core::bool',
452
+ },
453
+ ],
454
+ state_mutability: 'external',
455
+ },
456
+ {
457
+ name: 'transfer_from',
458
+ type: 'function',
459
+ inputs: [
460
+ {
461
+ name: 'sender',
462
+ type: 'core::starknet::contract_address::ContractAddress',
463
+ },
464
+ {
465
+ name: 'recipient',
466
+ type: 'core::starknet::contract_address::ContractAddress',
467
+ },
468
+ {
469
+ name: 'amount',
470
+ type: 'core::integer::u256',
471
+ },
472
+ ],
473
+ outputs: [
474
+ {
475
+ type: 'core::bool',
476
+ },
477
+ ],
478
+ state_mutability: 'external',
479
+ },
480
+ {
481
+ name: 'approve',
482
+ type: 'function',
483
+ inputs: [
484
+ {
485
+ name: 'spender',
486
+ type: 'core::starknet::contract_address::ContractAddress',
487
+ },
488
+ {
489
+ name: 'amount',
490
+ type: 'core::integer::u256',
491
+ },
492
+ ],
493
+ outputs: [
494
+ {
495
+ type: 'core::bool',
496
+ },
497
+ ],
498
+ state_mutability: 'external',
499
+ },
500
+ ],
501
+ },
502
+ {
503
+ name: 'ERC20MetadataImpl',
504
+ type: 'impl',
505
+ interface_name: 'vesu::vendor::erc20::IERC20Metadata',
506
+ },
507
+ {
508
+ name: 'vesu::vendor::erc20::IERC20Metadata',
509
+ type: 'interface',
510
+ items: [
511
+ {
512
+ name: 'name',
513
+ type: 'function',
514
+ inputs: [],
515
+ outputs: [
516
+ {
517
+ type: 'core::felt252',
518
+ },
519
+ ],
520
+ state_mutability: 'view',
521
+ },
522
+ {
523
+ name: 'symbol',
524
+ type: 'function',
525
+ inputs: [],
526
+ outputs: [
527
+ {
528
+ type: 'core::felt252',
529
+ },
530
+ ],
531
+ state_mutability: 'view',
532
+ },
533
+ {
534
+ name: 'decimals',
535
+ type: 'function',
536
+ inputs: [],
537
+ outputs: [
538
+ {
539
+ type: 'core::integer::u8',
540
+ },
541
+ ],
542
+ state_mutability: 'view',
543
+ },
544
+ ],
545
+ },
546
+ {
547
+ name: 'ERC20CamelOnlyImpl',
548
+ type: 'impl',
549
+ interface_name: 'vesu::vendor::erc20::IERC20CamelOnly',
550
+ },
551
+ {
552
+ name: 'vesu::vendor::erc20::IERC20CamelOnly',
553
+ type: 'interface',
554
+ items: [
555
+ {
556
+ name: 'totalSupply',
557
+ type: 'function',
558
+ inputs: [],
559
+ outputs: [
560
+ {
561
+ type: 'core::integer::u256',
562
+ },
563
+ ],
564
+ state_mutability: 'view',
565
+ },
566
+ {
567
+ name: 'balanceOf',
568
+ type: 'function',
569
+ inputs: [
570
+ {
571
+ name: 'account',
572
+ type: 'core::starknet::contract_address::ContractAddress',
573
+ },
574
+ ],
575
+ outputs: [
576
+ {
577
+ type: 'core::integer::u256',
578
+ },
579
+ ],
580
+ state_mutability: 'view',
581
+ },
582
+ {
583
+ name: 'transferFrom',
584
+ type: 'function',
585
+ inputs: [
586
+ {
587
+ name: 'sender',
588
+ type: 'core::starknet::contract_address::ContractAddress',
589
+ },
590
+ {
591
+ name: 'recipient',
592
+ type: 'core::starknet::contract_address::ContractAddress',
593
+ },
594
+ {
595
+ name: 'amount',
596
+ type: 'core::integer::u256',
597
+ },
598
+ ],
599
+ outputs: [
600
+ {
601
+ type: 'core::bool',
602
+ },
603
+ ],
604
+ state_mutability: 'external',
605
+ },
606
+ ],
607
+ },
608
+ {
609
+ name: 'constructor',
610
+ type: 'constructor',
611
+ inputs: [
612
+ {
613
+ name: 'name',
614
+ type: 'core::felt252',
615
+ },
616
+ {
617
+ name: 'symbol',
618
+ type: 'core::felt252',
619
+ },
620
+ {
621
+ name: 'decimals',
622
+ type: 'core::integer::u8',
623
+ },
624
+ {
625
+ name: 'pool_id',
626
+ type: 'core::felt252',
627
+ },
628
+ {
629
+ name: 'extension',
630
+ type: 'core::starknet::contract_address::ContractAddress',
631
+ },
632
+ {
633
+ name: 'asset',
634
+ type: 'core::starknet::contract_address::ContractAddress',
635
+ },
636
+ ],
637
+ },
638
+ {
639
+ kind: 'struct',
640
+ name: 'vesu::vendor::erc20_component::ERC20Component::Transfer',
641
+ type: 'event',
642
+ members: [
643
+ {
644
+ kind: 'key',
645
+ name: 'from',
646
+ type: 'core::starknet::contract_address::ContractAddress',
647
+ },
648
+ {
649
+ kind: 'key',
650
+ name: 'to',
651
+ type: 'core::starknet::contract_address::ContractAddress',
652
+ },
653
+ {
654
+ kind: 'data',
655
+ name: 'value',
656
+ type: 'core::integer::u256',
657
+ },
658
+ ],
659
+ },
660
+ {
661
+ kind: 'struct',
662
+ name: 'vesu::vendor::erc20_component::ERC20Component::Approval',
663
+ type: 'event',
664
+ members: [
665
+ {
666
+ kind: 'key',
667
+ name: 'owner',
668
+ type: 'core::starknet::contract_address::ContractAddress',
669
+ },
670
+ {
671
+ kind: 'key',
672
+ name: 'spender',
673
+ type: 'core::starknet::contract_address::ContractAddress',
674
+ },
675
+ {
676
+ kind: 'data',
677
+ name: 'value',
678
+ type: 'core::integer::u256',
679
+ },
680
+ ],
681
+ },
682
+ {
683
+ kind: 'enum',
684
+ name: 'vesu::vendor::erc20_component::ERC20Component::Event',
685
+ type: 'event',
686
+ variants: [
687
+ {
688
+ kind: 'nested',
689
+ name: 'Transfer',
690
+ type: 'vesu::vendor::erc20_component::ERC20Component::Transfer',
691
+ },
692
+ {
693
+ kind: 'nested',
694
+ name: 'Approval',
695
+ type: 'vesu::vendor::erc20_component::ERC20Component::Approval',
696
+ },
697
+ ],
698
+ },
699
+ {
700
+ kind: 'struct',
701
+ name: 'vesu::v_token::VToken::Deposit',
702
+ type: 'event',
703
+ members: [
704
+ {
705
+ kind: 'key',
706
+ name: 'sender',
707
+ type: 'core::starknet::contract_address::ContractAddress',
708
+ },
709
+ {
710
+ kind: 'key',
711
+ name: 'owner',
712
+ type: 'core::starknet::contract_address::ContractAddress',
713
+ },
714
+ {
715
+ kind: 'data',
716
+ name: 'assets',
717
+ type: 'core::integer::u256',
718
+ },
719
+ {
720
+ kind: 'data',
721
+ name: 'shares',
722
+ type: 'core::integer::u256',
723
+ },
724
+ ],
725
+ },
726
+ {
727
+ kind: 'struct',
728
+ name: 'vesu::v_token::VToken::Withdraw',
729
+ type: 'event',
730
+ members: [
731
+ {
732
+ kind: 'key',
733
+ name: 'sender',
734
+ type: 'core::starknet::contract_address::ContractAddress',
735
+ },
736
+ {
737
+ kind: 'key',
738
+ name: 'receiver',
739
+ type: 'core::starknet::contract_address::ContractAddress',
740
+ },
741
+ {
742
+ kind: 'key',
743
+ name: 'owner',
744
+ type: 'core::starknet::contract_address::ContractAddress',
745
+ },
746
+ {
747
+ kind: 'data',
748
+ name: 'assets',
749
+ type: 'core::integer::u256',
750
+ },
751
+ {
752
+ kind: 'data',
753
+ name: 'shares',
754
+ type: 'core::integer::u256',
755
+ },
756
+ ],
757
+ },
758
+ {
759
+ kind: 'enum',
760
+ name: 'vesu::v_token::VToken::Event',
761
+ type: 'event',
762
+ variants: [
763
+ {
764
+ kind: 'flat',
765
+ name: 'ERC20Event',
766
+ type: 'vesu::vendor::erc20_component::ERC20Component::Event',
767
+ },
768
+ {
769
+ kind: 'nested',
770
+ name: 'Deposit',
771
+ type: 'vesu::v_token::VToken::Deposit',
772
+ },
773
+ {
774
+ kind: 'nested',
775
+ name: 'Withdraw',
776
+ type: 'vesu::v_token::VToken::Withdraw',
777
+ },
778
+ ],
779
+ },
780
+ ];
781
+ //# sourceMappingURL=vTokenAbi.js.map