@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,1914 @@
1
+ export const singletonAbi = [
2
+ {
3
+ name: 'SingletonImpl',
4
+ type: 'impl',
5
+ interface_name: 'vesu::singleton::ISingleton',
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::data_model::AssetConfig',
37
+ type: 'struct',
38
+ members: [
39
+ {
40
+ name: 'total_collateral_shares',
41
+ type: 'core::integer::u256',
42
+ },
43
+ {
44
+ name: 'total_nominal_debt',
45
+ type: 'core::integer::u256',
46
+ },
47
+ {
48
+ name: 'reserve',
49
+ type: 'core::integer::u256',
50
+ },
51
+ {
52
+ name: 'max_utilization',
53
+ type: 'core::integer::u256',
54
+ },
55
+ {
56
+ name: 'floor',
57
+ type: 'core::integer::u256',
58
+ },
59
+ {
60
+ name: 'scale',
61
+ type: 'core::integer::u256',
62
+ },
63
+ {
64
+ name: 'is_legacy',
65
+ type: 'core::bool',
66
+ },
67
+ {
68
+ name: 'last_updated',
69
+ type: 'core::integer::u64',
70
+ },
71
+ {
72
+ name: 'last_rate_accumulator',
73
+ type: 'core::integer::u256',
74
+ },
75
+ {
76
+ name: 'last_full_utilization_rate',
77
+ type: 'core::integer::u256',
78
+ },
79
+ {
80
+ name: 'fee_rate',
81
+ type: 'core::integer::u256',
82
+ },
83
+ ],
84
+ },
85
+ {
86
+ name: 'vesu::data_model::LTVConfig',
87
+ type: 'struct',
88
+ members: [
89
+ {
90
+ name: 'max_ltv',
91
+ type: 'core::integer::u64',
92
+ },
93
+ ],
94
+ },
95
+ {
96
+ name: 'vesu::data_model::Position',
97
+ type: 'struct',
98
+ members: [
99
+ {
100
+ name: 'collateral_shares',
101
+ type: 'core::integer::u256',
102
+ },
103
+ {
104
+ name: 'nominal_debt',
105
+ type: 'core::integer::u256',
106
+ },
107
+ ],
108
+ },
109
+ {
110
+ name: 'alexandria_math::i257::i257',
111
+ type: 'struct',
112
+ members: [
113
+ {
114
+ name: 'abs',
115
+ type: 'core::integer::u256',
116
+ },
117
+ {
118
+ name: 'is_negative',
119
+ type: 'core::bool',
120
+ },
121
+ ],
122
+ },
123
+ {
124
+ name: 'vesu::data_model::AmountType',
125
+ type: 'enum',
126
+ variants: [
127
+ {
128
+ name: 'Delta',
129
+ type: '()',
130
+ },
131
+ {
132
+ name: 'Target',
133
+ type: '()',
134
+ },
135
+ ],
136
+ },
137
+ {
138
+ name: 'vesu::data_model::AmountDenomination',
139
+ type: 'enum',
140
+ variants: [
141
+ {
142
+ name: 'Native',
143
+ type: '()',
144
+ },
145
+ {
146
+ name: 'Assets',
147
+ type: '()',
148
+ },
149
+ ],
150
+ },
151
+ {
152
+ name: 'vesu::data_model::Amount',
153
+ type: 'struct',
154
+ members: [
155
+ {
156
+ name: 'amount_type',
157
+ type: 'vesu::data_model::AmountType',
158
+ },
159
+ {
160
+ name: 'denomination',
161
+ type: 'vesu::data_model::AmountDenomination',
162
+ },
163
+ {
164
+ name: 'value',
165
+ type: 'alexandria_math::i257::i257',
166
+ },
167
+ ],
168
+ },
169
+ {
170
+ name: 'vesu::data_model::AssetPrice',
171
+ type: 'struct',
172
+ members: [
173
+ {
174
+ name: 'value',
175
+ type: 'core::integer::u256',
176
+ },
177
+ {
178
+ name: 'is_valid',
179
+ type: 'core::bool',
180
+ },
181
+ ],
182
+ },
183
+ {
184
+ name: 'vesu::data_model::Context',
185
+ type: 'struct',
186
+ members: [
187
+ {
188
+ name: 'pool_id',
189
+ type: 'core::felt252',
190
+ },
191
+ {
192
+ name: 'extension',
193
+ type: 'core::starknet::contract_address::ContractAddress',
194
+ },
195
+ {
196
+ name: 'collateral_asset',
197
+ type: 'core::starknet::contract_address::ContractAddress',
198
+ },
199
+ {
200
+ name: 'debt_asset',
201
+ type: 'core::starknet::contract_address::ContractAddress',
202
+ },
203
+ {
204
+ name: 'collateral_asset_config',
205
+ type: 'vesu::data_model::AssetConfig',
206
+ },
207
+ {
208
+ name: 'debt_asset_config',
209
+ type: 'vesu::data_model::AssetConfig',
210
+ },
211
+ {
212
+ name: 'collateral_asset_price',
213
+ type: 'vesu::data_model::AssetPrice',
214
+ },
215
+ {
216
+ name: 'debt_asset_price',
217
+ type: 'vesu::data_model::AssetPrice',
218
+ },
219
+ {
220
+ name: 'collateral_asset_fee_shares',
221
+ type: 'core::integer::u256',
222
+ },
223
+ {
224
+ name: 'debt_asset_fee_shares',
225
+ type: 'core::integer::u256',
226
+ },
227
+ {
228
+ name: 'max_ltv',
229
+ type: 'core::integer::u64',
230
+ },
231
+ {
232
+ name: 'user',
233
+ type: 'core::starknet::contract_address::ContractAddress',
234
+ },
235
+ {
236
+ name: 'position',
237
+ type: 'vesu::data_model::Position',
238
+ },
239
+ ],
240
+ },
241
+ {
242
+ name: 'vesu::data_model::AssetParams',
243
+ type: 'struct',
244
+ members: [
245
+ {
246
+ name: 'asset',
247
+ type: 'core::starknet::contract_address::ContractAddress',
248
+ },
249
+ {
250
+ name: 'floor',
251
+ type: 'core::integer::u256',
252
+ },
253
+ {
254
+ name: 'initial_rate_accumulator',
255
+ type: 'core::integer::u256',
256
+ },
257
+ {
258
+ name: 'initial_full_utilization_rate',
259
+ type: 'core::integer::u256',
260
+ },
261
+ {
262
+ name: 'max_utilization',
263
+ type: 'core::integer::u256',
264
+ },
265
+ {
266
+ name: 'is_legacy',
267
+ type: 'core::bool',
268
+ },
269
+ {
270
+ name: 'fee_rate',
271
+ type: 'core::integer::u256',
272
+ },
273
+ ],
274
+ },
275
+ {
276
+ name: 'core::array::Span::<vesu::data_model::AssetParams>',
277
+ type: 'struct',
278
+ members: [
279
+ {
280
+ name: 'snapshot',
281
+ type: '@core::array::Array::<vesu::data_model::AssetParams>',
282
+ },
283
+ ],
284
+ },
285
+ {
286
+ name: 'vesu::data_model::LTVParams',
287
+ type: 'struct',
288
+ members: [
289
+ {
290
+ name: 'collateral_asset_index',
291
+ type: 'core::integer::u32',
292
+ },
293
+ {
294
+ name: 'debt_asset_index',
295
+ type: 'core::integer::u32',
296
+ },
297
+ {
298
+ name: 'max_ltv',
299
+ type: 'core::integer::u64',
300
+ },
301
+ ],
302
+ },
303
+ {
304
+ name: 'core::array::Span::<vesu::data_model::LTVParams>',
305
+ type: 'struct',
306
+ members: [
307
+ {
308
+ name: 'snapshot',
309
+ type: '@core::array::Array::<vesu::data_model::LTVParams>',
310
+ },
311
+ ],
312
+ },
313
+ {
314
+ name: 'core::array::Span::<core::felt252>',
315
+ type: 'struct',
316
+ members: [
317
+ {
318
+ name: 'snapshot',
319
+ type: '@core::array::Array::<core::felt252>',
320
+ },
321
+ ],
322
+ },
323
+ {
324
+ name: 'vesu::data_model::ModifyPositionParams',
325
+ type: 'struct',
326
+ members: [
327
+ {
328
+ name: 'pool_id',
329
+ type: 'core::felt252',
330
+ },
331
+ {
332
+ name: 'collateral_asset',
333
+ type: 'core::starknet::contract_address::ContractAddress',
334
+ },
335
+ {
336
+ name: 'debt_asset',
337
+ type: 'core::starknet::contract_address::ContractAddress',
338
+ },
339
+ {
340
+ name: 'user',
341
+ type: 'core::starknet::contract_address::ContractAddress',
342
+ },
343
+ {
344
+ name: 'collateral',
345
+ type: 'vesu::data_model::Amount',
346
+ },
347
+ {
348
+ name: 'debt',
349
+ type: 'vesu::data_model::Amount',
350
+ },
351
+ {
352
+ name: 'data',
353
+ type: 'core::array::Span::<core::felt252>',
354
+ },
355
+ ],
356
+ },
357
+ {
358
+ name: 'vesu::data_model::UpdatePositionResponse',
359
+ type: 'struct',
360
+ members: [
361
+ {
362
+ name: 'collateral_delta',
363
+ type: 'alexandria_math::i257::i257',
364
+ },
365
+ {
366
+ name: 'collateral_shares_delta',
367
+ type: 'alexandria_math::i257::i257',
368
+ },
369
+ {
370
+ name: 'debt_delta',
371
+ type: 'alexandria_math::i257::i257',
372
+ },
373
+ {
374
+ name: 'nominal_debt_delta',
375
+ type: 'alexandria_math::i257::i257',
376
+ },
377
+ {
378
+ name: 'bad_debt',
379
+ type: 'core::integer::u256',
380
+ },
381
+ ],
382
+ },
383
+ {
384
+ name: 'vesu::data_model::UnsignedAmount',
385
+ type: 'struct',
386
+ members: [
387
+ {
388
+ name: 'amount_type',
389
+ type: 'vesu::data_model::AmountType',
390
+ },
391
+ {
392
+ name: 'denomination',
393
+ type: 'vesu::data_model::AmountDenomination',
394
+ },
395
+ {
396
+ name: 'value',
397
+ type: 'core::integer::u256',
398
+ },
399
+ ],
400
+ },
401
+ {
402
+ name: 'vesu::data_model::TransferPositionParams',
403
+ type: 'struct',
404
+ members: [
405
+ {
406
+ name: 'pool_id',
407
+ type: 'core::felt252',
408
+ },
409
+ {
410
+ name: 'from_collateral_asset',
411
+ type: 'core::starknet::contract_address::ContractAddress',
412
+ },
413
+ {
414
+ name: 'from_debt_asset',
415
+ type: 'core::starknet::contract_address::ContractAddress',
416
+ },
417
+ {
418
+ name: 'to_collateral_asset',
419
+ type: 'core::starknet::contract_address::ContractAddress',
420
+ },
421
+ {
422
+ name: 'to_debt_asset',
423
+ type: 'core::starknet::contract_address::ContractAddress',
424
+ },
425
+ {
426
+ name: 'from_user',
427
+ type: 'core::starknet::contract_address::ContractAddress',
428
+ },
429
+ {
430
+ name: 'to_user',
431
+ type: 'core::starknet::contract_address::ContractAddress',
432
+ },
433
+ {
434
+ name: 'collateral',
435
+ type: 'vesu::data_model::UnsignedAmount',
436
+ },
437
+ {
438
+ name: 'debt',
439
+ type: 'vesu::data_model::UnsignedAmount',
440
+ },
441
+ {
442
+ name: 'from_data',
443
+ type: 'core::array::Span::<core::felt252>',
444
+ },
445
+ {
446
+ name: 'to_data',
447
+ type: 'core::array::Span::<core::felt252>',
448
+ },
449
+ ],
450
+ },
451
+ {
452
+ name: 'vesu::data_model::LiquidatePositionParams',
453
+ type: 'struct',
454
+ members: [
455
+ {
456
+ name: 'pool_id',
457
+ type: 'core::felt252',
458
+ },
459
+ {
460
+ name: 'collateral_asset',
461
+ type: 'core::starknet::contract_address::ContractAddress',
462
+ },
463
+ {
464
+ name: 'debt_asset',
465
+ type: 'core::starknet::contract_address::ContractAddress',
466
+ },
467
+ {
468
+ name: 'user',
469
+ type: 'core::starknet::contract_address::ContractAddress',
470
+ },
471
+ {
472
+ name: 'receive_as_shares',
473
+ type: 'core::bool',
474
+ },
475
+ {
476
+ name: 'data',
477
+ type: 'core::array::Span::<core::felt252>',
478
+ },
479
+ ],
480
+ },
481
+ {
482
+ name: 'vesu::singleton::ISingleton',
483
+ type: 'interface',
484
+ items: [
485
+ {
486
+ name: 'creator_nonce',
487
+ type: 'function',
488
+ inputs: [
489
+ {
490
+ name: 'creator',
491
+ type: 'core::starknet::contract_address::ContractAddress',
492
+ },
493
+ ],
494
+ outputs: [
495
+ {
496
+ type: 'core::felt252',
497
+ },
498
+ ],
499
+ state_mutability: 'view',
500
+ },
501
+ {
502
+ name: 'extension',
503
+ type: 'function',
504
+ inputs: [
505
+ {
506
+ name: 'pool_id',
507
+ type: 'core::felt252',
508
+ },
509
+ ],
510
+ outputs: [
511
+ {
512
+ type: 'core::starknet::contract_address::ContractAddress',
513
+ },
514
+ ],
515
+ state_mutability: 'view',
516
+ },
517
+ {
518
+ name: 'asset_config_unsafe',
519
+ type: 'function',
520
+ inputs: [
521
+ {
522
+ name: 'pool_id',
523
+ type: 'core::felt252',
524
+ },
525
+ {
526
+ name: 'asset',
527
+ type: 'core::starknet::contract_address::ContractAddress',
528
+ },
529
+ ],
530
+ outputs: [
531
+ {
532
+ type: '(vesu::data_model::AssetConfig, core::integer::u256)',
533
+ },
534
+ ],
535
+ state_mutability: 'view',
536
+ },
537
+ {
538
+ name: 'asset_config',
539
+ type: 'function',
540
+ inputs: [
541
+ {
542
+ name: 'pool_id',
543
+ type: 'core::felt252',
544
+ },
545
+ {
546
+ name: 'asset',
547
+ type: 'core::starknet::contract_address::ContractAddress',
548
+ },
549
+ ],
550
+ outputs: [
551
+ {
552
+ type: '(vesu::data_model::AssetConfig, core::integer::u256)',
553
+ },
554
+ ],
555
+ state_mutability: 'external',
556
+ },
557
+ {
558
+ name: 'ltv_config',
559
+ type: 'function',
560
+ inputs: [
561
+ {
562
+ name: 'pool_id',
563
+ type: 'core::felt252',
564
+ },
565
+ {
566
+ name: 'collateral_asset',
567
+ type: 'core::starknet::contract_address::ContractAddress',
568
+ },
569
+ {
570
+ name: 'debt_asset',
571
+ type: 'core::starknet::contract_address::ContractAddress',
572
+ },
573
+ ],
574
+ outputs: [
575
+ {
576
+ type: 'vesu::data_model::LTVConfig',
577
+ },
578
+ ],
579
+ state_mutability: 'view',
580
+ },
581
+ {
582
+ name: 'position_unsafe',
583
+ type: 'function',
584
+ inputs: [
585
+ {
586
+ name: 'pool_id',
587
+ type: 'core::felt252',
588
+ },
589
+ {
590
+ name: 'collateral_asset',
591
+ type: 'core::starknet::contract_address::ContractAddress',
592
+ },
593
+ {
594
+ name: 'debt_asset',
595
+ type: 'core::starknet::contract_address::ContractAddress',
596
+ },
597
+ {
598
+ name: 'user',
599
+ type: 'core::starknet::contract_address::ContractAddress',
600
+ },
601
+ ],
602
+ outputs: [
603
+ {
604
+ type: '(vesu::data_model::Position, core::integer::u256, core::integer::u256)',
605
+ },
606
+ ],
607
+ state_mutability: 'view',
608
+ },
609
+ {
610
+ name: 'position',
611
+ type: 'function',
612
+ inputs: [
613
+ {
614
+ name: 'pool_id',
615
+ type: 'core::felt252',
616
+ },
617
+ {
618
+ name: 'collateral_asset',
619
+ type: 'core::starknet::contract_address::ContractAddress',
620
+ },
621
+ {
622
+ name: 'debt_asset',
623
+ type: 'core::starknet::contract_address::ContractAddress',
624
+ },
625
+ {
626
+ name: 'user',
627
+ type: 'core::starknet::contract_address::ContractAddress',
628
+ },
629
+ ],
630
+ outputs: [
631
+ {
632
+ type: '(vesu::data_model::Position, core::integer::u256, core::integer::u256)',
633
+ },
634
+ ],
635
+ state_mutability: 'external',
636
+ },
637
+ {
638
+ name: 'check_collateralization_unsafe',
639
+ type: 'function',
640
+ inputs: [
641
+ {
642
+ name: 'pool_id',
643
+ type: 'core::felt252',
644
+ },
645
+ {
646
+ name: 'collateral_asset',
647
+ type: 'core::starknet::contract_address::ContractAddress',
648
+ },
649
+ {
650
+ name: 'debt_asset',
651
+ type: 'core::starknet::contract_address::ContractAddress',
652
+ },
653
+ {
654
+ name: 'user',
655
+ type: 'core::starknet::contract_address::ContractAddress',
656
+ },
657
+ ],
658
+ outputs: [
659
+ {
660
+ type: '(core::bool, core::integer::u256, core::integer::u256)',
661
+ },
662
+ ],
663
+ state_mutability: 'view',
664
+ },
665
+ {
666
+ name: 'check_collateralization',
667
+ type: 'function',
668
+ inputs: [
669
+ {
670
+ name: 'pool_id',
671
+ type: 'core::felt252',
672
+ },
673
+ {
674
+ name: 'collateral_asset',
675
+ type: 'core::starknet::contract_address::ContractAddress',
676
+ },
677
+ {
678
+ name: 'debt_asset',
679
+ type: 'core::starknet::contract_address::ContractAddress',
680
+ },
681
+ {
682
+ name: 'user',
683
+ type: 'core::starknet::contract_address::ContractAddress',
684
+ },
685
+ ],
686
+ outputs: [
687
+ {
688
+ type: '(core::bool, core::integer::u256, core::integer::u256)',
689
+ },
690
+ ],
691
+ state_mutability: 'external',
692
+ },
693
+ {
694
+ name: 'rate_accumulator_unsafe',
695
+ type: 'function',
696
+ inputs: [
697
+ {
698
+ name: 'pool_id',
699
+ type: 'core::felt252',
700
+ },
701
+ {
702
+ name: 'asset',
703
+ type: 'core::starknet::contract_address::ContractAddress',
704
+ },
705
+ ],
706
+ outputs: [
707
+ {
708
+ type: 'core::integer::u256',
709
+ },
710
+ ],
711
+ state_mutability: 'view',
712
+ },
713
+ {
714
+ name: 'rate_accumulator',
715
+ type: 'function',
716
+ inputs: [
717
+ {
718
+ name: 'pool_id',
719
+ type: 'core::felt252',
720
+ },
721
+ {
722
+ name: 'asset',
723
+ type: 'core::starknet::contract_address::ContractAddress',
724
+ },
725
+ ],
726
+ outputs: [
727
+ {
728
+ type: 'core::integer::u256',
729
+ },
730
+ ],
731
+ state_mutability: 'external',
732
+ },
733
+ {
734
+ name: 'utilization_unsafe',
735
+ type: 'function',
736
+ inputs: [
737
+ {
738
+ name: 'pool_id',
739
+ type: 'core::felt252',
740
+ },
741
+ {
742
+ name: 'asset',
743
+ type: 'core::starknet::contract_address::ContractAddress',
744
+ },
745
+ ],
746
+ outputs: [
747
+ {
748
+ type: 'core::integer::u256',
749
+ },
750
+ ],
751
+ state_mutability: 'view',
752
+ },
753
+ {
754
+ name: 'utilization',
755
+ type: 'function',
756
+ inputs: [
757
+ {
758
+ name: 'pool_id',
759
+ type: 'core::felt252',
760
+ },
761
+ {
762
+ name: 'asset',
763
+ type: 'core::starknet::contract_address::ContractAddress',
764
+ },
765
+ ],
766
+ outputs: [
767
+ {
768
+ type: 'core::integer::u256',
769
+ },
770
+ ],
771
+ state_mutability: 'external',
772
+ },
773
+ {
774
+ name: 'delegation',
775
+ type: 'function',
776
+ inputs: [
777
+ {
778
+ name: 'pool_id',
779
+ type: 'core::felt252',
780
+ },
781
+ {
782
+ name: 'delegator',
783
+ type: 'core::starknet::contract_address::ContractAddress',
784
+ },
785
+ {
786
+ name: 'delegatee',
787
+ type: 'core::starknet::contract_address::ContractAddress',
788
+ },
789
+ ],
790
+ outputs: [
791
+ {
792
+ type: 'core::bool',
793
+ },
794
+ ],
795
+ state_mutability: 'view',
796
+ },
797
+ {
798
+ name: 'calculate_pool_id',
799
+ type: 'function',
800
+ inputs: [
801
+ {
802
+ name: 'caller_address',
803
+ type: 'core::starknet::contract_address::ContractAddress',
804
+ },
805
+ {
806
+ name: 'nonce',
807
+ type: 'core::felt252',
808
+ },
809
+ ],
810
+ outputs: [
811
+ {
812
+ type: 'core::felt252',
813
+ },
814
+ ],
815
+ state_mutability: 'view',
816
+ },
817
+ {
818
+ name: 'calculate_debt',
819
+ type: 'function',
820
+ inputs: [
821
+ {
822
+ name: 'nominal_debt',
823
+ type: 'alexandria_math::i257::i257',
824
+ },
825
+ {
826
+ name: 'rate_accumulator',
827
+ type: 'core::integer::u256',
828
+ },
829
+ {
830
+ name: 'asset_scale',
831
+ type: 'core::integer::u256',
832
+ },
833
+ ],
834
+ outputs: [
835
+ {
836
+ type: 'core::integer::u256',
837
+ },
838
+ ],
839
+ state_mutability: 'view',
840
+ },
841
+ {
842
+ name: 'calculate_nominal_debt',
843
+ type: 'function',
844
+ inputs: [
845
+ {
846
+ name: 'debt',
847
+ type: 'alexandria_math::i257::i257',
848
+ },
849
+ {
850
+ name: 'rate_accumulator',
851
+ type: 'core::integer::u256',
852
+ },
853
+ {
854
+ name: 'asset_scale',
855
+ type: 'core::integer::u256',
856
+ },
857
+ ],
858
+ outputs: [
859
+ {
860
+ type: 'core::integer::u256',
861
+ },
862
+ ],
863
+ state_mutability: 'view',
864
+ },
865
+ {
866
+ name: 'calculate_collateral_shares_unsafe',
867
+ type: 'function',
868
+ inputs: [
869
+ {
870
+ name: 'pool_id',
871
+ type: 'core::felt252',
872
+ },
873
+ {
874
+ name: 'asset',
875
+ type: 'core::starknet::contract_address::ContractAddress',
876
+ },
877
+ {
878
+ name: 'collateral',
879
+ type: 'alexandria_math::i257::i257',
880
+ },
881
+ ],
882
+ outputs: [
883
+ {
884
+ type: 'core::integer::u256',
885
+ },
886
+ ],
887
+ state_mutability: 'view',
888
+ },
889
+ {
890
+ name: 'calculate_collateral_shares',
891
+ type: 'function',
892
+ inputs: [
893
+ {
894
+ name: 'pool_id',
895
+ type: 'core::felt252',
896
+ },
897
+ {
898
+ name: 'asset',
899
+ type: 'core::starknet::contract_address::ContractAddress',
900
+ },
901
+ {
902
+ name: 'collateral',
903
+ type: 'alexandria_math::i257::i257',
904
+ },
905
+ ],
906
+ outputs: [
907
+ {
908
+ type: 'core::integer::u256',
909
+ },
910
+ ],
911
+ state_mutability: 'external',
912
+ },
913
+ {
914
+ name: 'calculate_collateral_unsafe',
915
+ type: 'function',
916
+ inputs: [
917
+ {
918
+ name: 'pool_id',
919
+ type: 'core::felt252',
920
+ },
921
+ {
922
+ name: 'asset',
923
+ type: 'core::starknet::contract_address::ContractAddress',
924
+ },
925
+ {
926
+ name: 'collateral_shares',
927
+ type: 'alexandria_math::i257::i257',
928
+ },
929
+ ],
930
+ outputs: [
931
+ {
932
+ type: 'core::integer::u256',
933
+ },
934
+ ],
935
+ state_mutability: 'view',
936
+ },
937
+ {
938
+ name: 'calculate_collateral',
939
+ type: 'function',
940
+ inputs: [
941
+ {
942
+ name: 'pool_id',
943
+ type: 'core::felt252',
944
+ },
945
+ {
946
+ name: 'asset',
947
+ type: 'core::starknet::contract_address::ContractAddress',
948
+ },
949
+ {
950
+ name: 'collateral_shares',
951
+ type: 'alexandria_math::i257::i257',
952
+ },
953
+ ],
954
+ outputs: [
955
+ {
956
+ type: 'core::integer::u256',
957
+ },
958
+ ],
959
+ state_mutability: 'external',
960
+ },
961
+ {
962
+ name: 'deconstruct_collateral_amount_unsafe',
963
+ type: 'function',
964
+ inputs: [
965
+ {
966
+ name: 'pool_id',
967
+ type: 'core::felt252',
968
+ },
969
+ {
970
+ name: 'collateral_asset',
971
+ type: 'core::starknet::contract_address::ContractAddress',
972
+ },
973
+ {
974
+ name: 'debt_asset',
975
+ type: 'core::starknet::contract_address::ContractAddress',
976
+ },
977
+ {
978
+ name: 'user',
979
+ type: 'core::starknet::contract_address::ContractAddress',
980
+ },
981
+ {
982
+ name: 'collateral',
983
+ type: 'vesu::data_model::Amount',
984
+ },
985
+ ],
986
+ outputs: [
987
+ {
988
+ type: '(alexandria_math::i257::i257, alexandria_math::i257::i257)',
989
+ },
990
+ ],
991
+ state_mutability: 'view',
992
+ },
993
+ {
994
+ name: 'deconstruct_collateral_amount',
995
+ type: 'function',
996
+ inputs: [
997
+ {
998
+ name: 'pool_id',
999
+ type: 'core::felt252',
1000
+ },
1001
+ {
1002
+ name: 'collateral_asset',
1003
+ type: 'core::starknet::contract_address::ContractAddress',
1004
+ },
1005
+ {
1006
+ name: 'debt_asset',
1007
+ type: 'core::starknet::contract_address::ContractAddress',
1008
+ },
1009
+ {
1010
+ name: 'user',
1011
+ type: 'core::starknet::contract_address::ContractAddress',
1012
+ },
1013
+ {
1014
+ name: 'collateral',
1015
+ type: 'vesu::data_model::Amount',
1016
+ },
1017
+ ],
1018
+ outputs: [
1019
+ {
1020
+ type: '(alexandria_math::i257::i257, alexandria_math::i257::i257)',
1021
+ },
1022
+ ],
1023
+ state_mutability: 'external',
1024
+ },
1025
+ {
1026
+ name: 'deconstruct_debt_amount_unsafe',
1027
+ type: 'function',
1028
+ inputs: [
1029
+ {
1030
+ name: 'pool_id',
1031
+ type: 'core::felt252',
1032
+ },
1033
+ {
1034
+ name: 'collateral_asset',
1035
+ type: 'core::starknet::contract_address::ContractAddress',
1036
+ },
1037
+ {
1038
+ name: 'debt_asset',
1039
+ type: 'core::starknet::contract_address::ContractAddress',
1040
+ },
1041
+ {
1042
+ name: 'user',
1043
+ type: 'core::starknet::contract_address::ContractAddress',
1044
+ },
1045
+ {
1046
+ name: 'debt',
1047
+ type: 'vesu::data_model::Amount',
1048
+ },
1049
+ ],
1050
+ outputs: [
1051
+ {
1052
+ type: '(alexandria_math::i257::i257, alexandria_math::i257::i257)',
1053
+ },
1054
+ ],
1055
+ state_mutability: 'view',
1056
+ },
1057
+ {
1058
+ name: 'deconstruct_debt_amount',
1059
+ type: 'function',
1060
+ inputs: [
1061
+ {
1062
+ name: 'pool_id',
1063
+ type: 'core::felt252',
1064
+ },
1065
+ {
1066
+ name: 'collateral_asset',
1067
+ type: 'core::starknet::contract_address::ContractAddress',
1068
+ },
1069
+ {
1070
+ name: 'debt_asset',
1071
+ type: 'core::starknet::contract_address::ContractAddress',
1072
+ },
1073
+ {
1074
+ name: 'user',
1075
+ type: 'core::starknet::contract_address::ContractAddress',
1076
+ },
1077
+ {
1078
+ name: 'debt',
1079
+ type: 'vesu::data_model::Amount',
1080
+ },
1081
+ ],
1082
+ outputs: [
1083
+ {
1084
+ type: '(alexandria_math::i257::i257, alexandria_math::i257::i257)',
1085
+ },
1086
+ ],
1087
+ state_mutability: 'external',
1088
+ },
1089
+ {
1090
+ name: 'context_unsafe',
1091
+ type: 'function',
1092
+ inputs: [
1093
+ {
1094
+ name: 'pool_id',
1095
+ type: 'core::felt252',
1096
+ },
1097
+ {
1098
+ name: 'collateral_asset',
1099
+ type: 'core::starknet::contract_address::ContractAddress',
1100
+ },
1101
+ {
1102
+ name: 'debt_asset',
1103
+ type: 'core::starknet::contract_address::ContractAddress',
1104
+ },
1105
+ {
1106
+ name: 'user',
1107
+ type: 'core::starknet::contract_address::ContractAddress',
1108
+ },
1109
+ ],
1110
+ outputs: [
1111
+ {
1112
+ type: 'vesu::data_model::Context',
1113
+ },
1114
+ ],
1115
+ state_mutability: 'view',
1116
+ },
1117
+ {
1118
+ name: 'context',
1119
+ type: 'function',
1120
+ inputs: [
1121
+ {
1122
+ name: 'pool_id',
1123
+ type: 'core::felt252',
1124
+ },
1125
+ {
1126
+ name: 'collateral_asset',
1127
+ type: 'core::starknet::contract_address::ContractAddress',
1128
+ },
1129
+ {
1130
+ name: 'debt_asset',
1131
+ type: 'core::starknet::contract_address::ContractAddress',
1132
+ },
1133
+ {
1134
+ name: 'user',
1135
+ type: 'core::starknet::contract_address::ContractAddress',
1136
+ },
1137
+ ],
1138
+ outputs: [
1139
+ {
1140
+ type: 'vesu::data_model::Context',
1141
+ },
1142
+ ],
1143
+ state_mutability: 'external',
1144
+ },
1145
+ {
1146
+ name: 'create_pool',
1147
+ type: 'function',
1148
+ inputs: [
1149
+ {
1150
+ name: 'asset_params',
1151
+ type: 'core::array::Span::<vesu::data_model::AssetParams>',
1152
+ },
1153
+ {
1154
+ name: 'ltv_params',
1155
+ type: 'core::array::Span::<vesu::data_model::LTVParams>',
1156
+ },
1157
+ {
1158
+ name: 'extension',
1159
+ type: 'core::starknet::contract_address::ContractAddress',
1160
+ },
1161
+ ],
1162
+ outputs: [
1163
+ {
1164
+ type: 'core::felt252',
1165
+ },
1166
+ ],
1167
+ state_mutability: 'external',
1168
+ },
1169
+ {
1170
+ name: 'modify_position',
1171
+ type: 'function',
1172
+ inputs: [
1173
+ {
1174
+ name: 'params',
1175
+ type: 'vesu::data_model::ModifyPositionParams',
1176
+ },
1177
+ ],
1178
+ outputs: [
1179
+ {
1180
+ type: 'vesu::data_model::UpdatePositionResponse',
1181
+ },
1182
+ ],
1183
+ state_mutability: 'external',
1184
+ },
1185
+ {
1186
+ name: 'transfer_position',
1187
+ type: 'function',
1188
+ inputs: [
1189
+ {
1190
+ name: 'params',
1191
+ type: 'vesu::data_model::TransferPositionParams',
1192
+ },
1193
+ ],
1194
+ outputs: [],
1195
+ state_mutability: 'external',
1196
+ },
1197
+ {
1198
+ name: 'liquidate_position',
1199
+ type: 'function',
1200
+ inputs: [
1201
+ {
1202
+ name: 'params',
1203
+ type: 'vesu::data_model::LiquidatePositionParams',
1204
+ },
1205
+ ],
1206
+ outputs: [
1207
+ {
1208
+ type: 'vesu::data_model::UpdatePositionResponse',
1209
+ },
1210
+ ],
1211
+ state_mutability: 'external',
1212
+ },
1213
+ {
1214
+ name: 'flash_loan',
1215
+ type: 'function',
1216
+ inputs: [
1217
+ {
1218
+ name: 'receiver',
1219
+ type: 'core::starknet::contract_address::ContractAddress',
1220
+ },
1221
+ {
1222
+ name: 'asset',
1223
+ type: 'core::starknet::contract_address::ContractAddress',
1224
+ },
1225
+ {
1226
+ name: 'amount',
1227
+ type: 'core::integer::u256',
1228
+ },
1229
+ {
1230
+ name: 'is_legacy',
1231
+ type: 'core::bool',
1232
+ },
1233
+ {
1234
+ name: 'data',
1235
+ type: 'core::array::Span::<core::felt252>',
1236
+ },
1237
+ ],
1238
+ outputs: [],
1239
+ state_mutability: 'external',
1240
+ },
1241
+ {
1242
+ name: 'modify_delegation',
1243
+ type: 'function',
1244
+ inputs: [
1245
+ {
1246
+ name: 'pool_id',
1247
+ type: 'core::felt252',
1248
+ },
1249
+ {
1250
+ name: 'delegatee',
1251
+ type: 'core::starknet::contract_address::ContractAddress',
1252
+ },
1253
+ {
1254
+ name: 'delegation',
1255
+ type: 'core::bool',
1256
+ },
1257
+ ],
1258
+ outputs: [],
1259
+ state_mutability: 'external',
1260
+ },
1261
+ {
1262
+ name: 'donate_to_reserve',
1263
+ type: 'function',
1264
+ inputs: [
1265
+ {
1266
+ name: 'pool_id',
1267
+ type: 'core::felt252',
1268
+ },
1269
+ {
1270
+ name: 'asset',
1271
+ type: 'core::starknet::contract_address::ContractAddress',
1272
+ },
1273
+ {
1274
+ name: 'amount',
1275
+ type: 'core::integer::u256',
1276
+ },
1277
+ ],
1278
+ outputs: [],
1279
+ state_mutability: 'external',
1280
+ },
1281
+ {
1282
+ name: 'retrieve_from_reserve',
1283
+ type: 'function',
1284
+ inputs: [
1285
+ {
1286
+ name: 'pool_id',
1287
+ type: 'core::felt252',
1288
+ },
1289
+ {
1290
+ name: 'asset',
1291
+ type: 'core::starknet::contract_address::ContractAddress',
1292
+ },
1293
+ {
1294
+ name: 'receiver',
1295
+ type: 'core::starknet::contract_address::ContractAddress',
1296
+ },
1297
+ {
1298
+ name: 'amount',
1299
+ type: 'core::integer::u256',
1300
+ },
1301
+ ],
1302
+ outputs: [],
1303
+ state_mutability: 'external',
1304
+ },
1305
+ {
1306
+ name: 'set_asset_config',
1307
+ type: 'function',
1308
+ inputs: [
1309
+ {
1310
+ name: 'pool_id',
1311
+ type: 'core::felt252',
1312
+ },
1313
+ {
1314
+ name: 'params',
1315
+ type: 'vesu::data_model::AssetParams',
1316
+ },
1317
+ ],
1318
+ outputs: [],
1319
+ state_mutability: 'external',
1320
+ },
1321
+ {
1322
+ name: 'set_ltv_config',
1323
+ type: 'function',
1324
+ inputs: [
1325
+ {
1326
+ name: 'pool_id',
1327
+ type: 'core::felt252',
1328
+ },
1329
+ {
1330
+ name: 'collateral_asset',
1331
+ type: 'core::starknet::contract_address::ContractAddress',
1332
+ },
1333
+ {
1334
+ name: 'debt_asset',
1335
+ type: 'core::starknet::contract_address::ContractAddress',
1336
+ },
1337
+ {
1338
+ name: 'ltv_config',
1339
+ type: 'vesu::data_model::LTVConfig',
1340
+ },
1341
+ ],
1342
+ outputs: [],
1343
+ state_mutability: 'external',
1344
+ },
1345
+ {
1346
+ name: 'set_asset_parameter',
1347
+ type: 'function',
1348
+ inputs: [
1349
+ {
1350
+ name: 'pool_id',
1351
+ type: 'core::felt252',
1352
+ },
1353
+ {
1354
+ name: 'asset',
1355
+ type: 'core::starknet::contract_address::ContractAddress',
1356
+ },
1357
+ {
1358
+ name: 'parameter',
1359
+ type: 'core::felt252',
1360
+ },
1361
+ {
1362
+ name: 'value',
1363
+ type: 'core::integer::u256',
1364
+ },
1365
+ ],
1366
+ outputs: [],
1367
+ state_mutability: 'external',
1368
+ },
1369
+ {
1370
+ name: 'set_extension',
1371
+ type: 'function',
1372
+ inputs: [
1373
+ {
1374
+ name: 'pool_id',
1375
+ type: 'core::felt252',
1376
+ },
1377
+ {
1378
+ name: 'extension',
1379
+ type: 'core::starknet::contract_address::ContractAddress',
1380
+ },
1381
+ ],
1382
+ outputs: [],
1383
+ state_mutability: 'external',
1384
+ },
1385
+ {
1386
+ name: 'claim_fee_shares',
1387
+ type: 'function',
1388
+ inputs: [
1389
+ {
1390
+ name: 'pool_id',
1391
+ type: 'core::felt252',
1392
+ },
1393
+ {
1394
+ name: 'asset',
1395
+ type: 'core::starknet::contract_address::ContractAddress',
1396
+ },
1397
+ ],
1398
+ outputs: [],
1399
+ state_mutability: 'external',
1400
+ },
1401
+ ],
1402
+ },
1403
+ {
1404
+ kind: 'struct',
1405
+ name: 'vesu::singleton::Singleton::CreatePool',
1406
+ type: 'event',
1407
+ members: [
1408
+ {
1409
+ kind: 'key',
1410
+ name: 'pool_id',
1411
+ type: 'core::felt252',
1412
+ },
1413
+ {
1414
+ kind: 'key',
1415
+ name: 'extension',
1416
+ type: 'core::starknet::contract_address::ContractAddress',
1417
+ },
1418
+ {
1419
+ kind: 'key',
1420
+ name: 'creator',
1421
+ type: 'core::starknet::contract_address::ContractAddress',
1422
+ },
1423
+ ],
1424
+ },
1425
+ {
1426
+ kind: 'struct',
1427
+ name: 'vesu::singleton::Singleton::ModifyPosition',
1428
+ type: 'event',
1429
+ members: [
1430
+ {
1431
+ kind: 'key',
1432
+ name: 'pool_id',
1433
+ type: 'core::felt252',
1434
+ },
1435
+ {
1436
+ kind: 'key',
1437
+ name: 'collateral_asset',
1438
+ type: 'core::starknet::contract_address::ContractAddress',
1439
+ },
1440
+ {
1441
+ kind: 'key',
1442
+ name: 'debt_asset',
1443
+ type: 'core::starknet::contract_address::ContractAddress',
1444
+ },
1445
+ {
1446
+ kind: 'key',
1447
+ name: 'user',
1448
+ type: 'core::starknet::contract_address::ContractAddress',
1449
+ },
1450
+ {
1451
+ kind: 'data',
1452
+ name: 'collateral_delta',
1453
+ type: 'alexandria_math::i257::i257',
1454
+ },
1455
+ {
1456
+ kind: 'data',
1457
+ name: 'collateral_shares_delta',
1458
+ type: 'alexandria_math::i257::i257',
1459
+ },
1460
+ {
1461
+ kind: 'data',
1462
+ name: 'debt_delta',
1463
+ type: 'alexandria_math::i257::i257',
1464
+ },
1465
+ {
1466
+ kind: 'data',
1467
+ name: 'nominal_debt_delta',
1468
+ type: 'alexandria_math::i257::i257',
1469
+ },
1470
+ ],
1471
+ },
1472
+ {
1473
+ kind: 'struct',
1474
+ name: 'vesu::singleton::Singleton::TransferPosition',
1475
+ type: 'event',
1476
+ members: [
1477
+ {
1478
+ kind: 'key',
1479
+ name: 'pool_id',
1480
+ type: 'core::felt252',
1481
+ },
1482
+ {
1483
+ kind: 'key',
1484
+ name: 'from_collateral_asset',
1485
+ type: 'core::starknet::contract_address::ContractAddress',
1486
+ },
1487
+ {
1488
+ kind: 'key',
1489
+ name: 'from_debt_asset',
1490
+ type: 'core::starknet::contract_address::ContractAddress',
1491
+ },
1492
+ {
1493
+ kind: 'key',
1494
+ name: 'to_collateral_asset',
1495
+ type: 'core::starknet::contract_address::ContractAddress',
1496
+ },
1497
+ {
1498
+ kind: 'key',
1499
+ name: 'to_debt_asset',
1500
+ type: 'core::starknet::contract_address::ContractAddress',
1501
+ },
1502
+ {
1503
+ kind: 'key',
1504
+ name: 'from_user',
1505
+ type: 'core::starknet::contract_address::ContractAddress',
1506
+ },
1507
+ {
1508
+ kind: 'key',
1509
+ name: 'to_user',
1510
+ type: 'core::starknet::contract_address::ContractAddress',
1511
+ },
1512
+ ],
1513
+ },
1514
+ {
1515
+ kind: 'struct',
1516
+ name: 'vesu::singleton::Singleton::LiquidatePosition',
1517
+ type: 'event',
1518
+ members: [
1519
+ {
1520
+ kind: 'key',
1521
+ name: 'pool_id',
1522
+ type: 'core::felt252',
1523
+ },
1524
+ {
1525
+ kind: 'key',
1526
+ name: 'collateral_asset',
1527
+ type: 'core::starknet::contract_address::ContractAddress',
1528
+ },
1529
+ {
1530
+ kind: 'key',
1531
+ name: 'debt_asset',
1532
+ type: 'core::starknet::contract_address::ContractAddress',
1533
+ },
1534
+ {
1535
+ kind: 'key',
1536
+ name: 'user',
1537
+ type: 'core::starknet::contract_address::ContractAddress',
1538
+ },
1539
+ {
1540
+ kind: 'key',
1541
+ name: 'liquidator',
1542
+ type: 'core::starknet::contract_address::ContractAddress',
1543
+ },
1544
+ {
1545
+ kind: 'data',
1546
+ name: 'collateral_delta',
1547
+ type: 'alexandria_math::i257::i257',
1548
+ },
1549
+ {
1550
+ kind: 'data',
1551
+ name: 'collateral_shares_delta',
1552
+ type: 'alexandria_math::i257::i257',
1553
+ },
1554
+ {
1555
+ kind: 'data',
1556
+ name: 'debt_delta',
1557
+ type: 'alexandria_math::i257::i257',
1558
+ },
1559
+ {
1560
+ kind: 'data',
1561
+ name: 'nominal_debt_delta',
1562
+ type: 'alexandria_math::i257::i257',
1563
+ },
1564
+ {
1565
+ kind: 'data',
1566
+ name: 'bad_debt',
1567
+ type: 'core::integer::u256',
1568
+ },
1569
+ ],
1570
+ },
1571
+ {
1572
+ kind: 'struct',
1573
+ name: 'vesu::singleton::Singleton::AccrueFees',
1574
+ type: 'event',
1575
+ members: [
1576
+ {
1577
+ kind: 'key',
1578
+ name: 'pool_id',
1579
+ type: 'core::felt252',
1580
+ },
1581
+ {
1582
+ kind: 'key',
1583
+ name: 'collateral_asset',
1584
+ type: 'core::starknet::contract_address::ContractAddress',
1585
+ },
1586
+ {
1587
+ kind: 'key',
1588
+ name: 'debt_asset',
1589
+ type: 'core::starknet::contract_address::ContractAddress',
1590
+ },
1591
+ {
1592
+ kind: 'key',
1593
+ name: 'recipient',
1594
+ type: 'core::starknet::contract_address::ContractAddress',
1595
+ },
1596
+ {
1597
+ kind: 'data',
1598
+ name: 'collateral_asset_fee_shares',
1599
+ type: 'core::integer::u256',
1600
+ },
1601
+ {
1602
+ kind: 'data',
1603
+ name: 'debt_asset_fee_shares',
1604
+ type: 'core::integer::u256',
1605
+ },
1606
+ ],
1607
+ },
1608
+ {
1609
+ kind: 'struct',
1610
+ name: 'vesu::singleton::Singleton::UpdateContext',
1611
+ type: 'event',
1612
+ members: [
1613
+ {
1614
+ kind: 'key',
1615
+ name: 'pool_id',
1616
+ type: 'core::felt252',
1617
+ },
1618
+ {
1619
+ kind: 'key',
1620
+ name: 'collateral_asset',
1621
+ type: 'core::starknet::contract_address::ContractAddress',
1622
+ },
1623
+ {
1624
+ kind: 'key',
1625
+ name: 'debt_asset',
1626
+ type: 'core::starknet::contract_address::ContractAddress',
1627
+ },
1628
+ {
1629
+ kind: 'data',
1630
+ name: 'collateral_asset_config',
1631
+ type: 'vesu::data_model::AssetConfig',
1632
+ },
1633
+ {
1634
+ kind: 'data',
1635
+ name: 'debt_asset_config',
1636
+ type: 'vesu::data_model::AssetConfig',
1637
+ },
1638
+ {
1639
+ kind: 'data',
1640
+ name: 'collateral_asset_price',
1641
+ type: 'vesu::data_model::AssetPrice',
1642
+ },
1643
+ {
1644
+ kind: 'data',
1645
+ name: 'debt_asset_price',
1646
+ type: 'vesu::data_model::AssetPrice',
1647
+ },
1648
+ ],
1649
+ },
1650
+ {
1651
+ kind: 'struct',
1652
+ name: 'vesu::singleton::Singleton::Flashloan',
1653
+ type: 'event',
1654
+ members: [
1655
+ {
1656
+ kind: 'key',
1657
+ name: 'sender',
1658
+ type: 'core::starknet::contract_address::ContractAddress',
1659
+ },
1660
+ {
1661
+ kind: 'key',
1662
+ name: 'receiver',
1663
+ type: 'core::starknet::contract_address::ContractAddress',
1664
+ },
1665
+ {
1666
+ kind: 'key',
1667
+ name: 'asset',
1668
+ type: 'core::starknet::contract_address::ContractAddress',
1669
+ },
1670
+ {
1671
+ kind: 'data',
1672
+ name: 'amount',
1673
+ type: 'core::integer::u256',
1674
+ },
1675
+ ],
1676
+ },
1677
+ {
1678
+ kind: 'struct',
1679
+ name: 'vesu::singleton::Singleton::ModifyDelegation',
1680
+ type: 'event',
1681
+ members: [
1682
+ {
1683
+ kind: 'key',
1684
+ name: 'pool_id',
1685
+ type: 'core::felt252',
1686
+ },
1687
+ {
1688
+ kind: 'key',
1689
+ name: 'delegator',
1690
+ type: 'core::starknet::contract_address::ContractAddress',
1691
+ },
1692
+ {
1693
+ kind: 'key',
1694
+ name: 'delegatee',
1695
+ type: 'core::starknet::contract_address::ContractAddress',
1696
+ },
1697
+ {
1698
+ kind: 'data',
1699
+ name: 'delegation',
1700
+ type: 'core::bool',
1701
+ },
1702
+ ],
1703
+ },
1704
+ {
1705
+ kind: 'struct',
1706
+ name: 'vesu::singleton::Singleton::Donate',
1707
+ type: 'event',
1708
+ members: [
1709
+ {
1710
+ kind: 'key',
1711
+ name: 'pool_id',
1712
+ type: 'core::felt252',
1713
+ },
1714
+ {
1715
+ kind: 'key',
1716
+ name: 'asset',
1717
+ type: 'core::starknet::contract_address::ContractAddress',
1718
+ },
1719
+ {
1720
+ kind: 'data',
1721
+ name: 'amount',
1722
+ type: 'core::integer::u256',
1723
+ },
1724
+ ],
1725
+ },
1726
+ {
1727
+ kind: 'struct',
1728
+ name: 'vesu::singleton::Singleton::RetrieveReserve',
1729
+ type: 'event',
1730
+ members: [
1731
+ {
1732
+ kind: 'key',
1733
+ name: 'pool_id',
1734
+ type: 'core::felt252',
1735
+ },
1736
+ {
1737
+ kind: 'key',
1738
+ name: 'asset',
1739
+ type: 'core::starknet::contract_address::ContractAddress',
1740
+ },
1741
+ {
1742
+ kind: 'key',
1743
+ name: 'receiver',
1744
+ type: 'core::starknet::contract_address::ContractAddress',
1745
+ },
1746
+ ],
1747
+ },
1748
+ {
1749
+ kind: 'struct',
1750
+ name: 'vesu::singleton::Singleton::SetLTVConfig',
1751
+ type: 'event',
1752
+ members: [
1753
+ {
1754
+ kind: 'key',
1755
+ name: 'pool_id',
1756
+ type: 'core::felt252',
1757
+ },
1758
+ {
1759
+ kind: 'key',
1760
+ name: 'collateral_asset',
1761
+ type: 'core::starknet::contract_address::ContractAddress',
1762
+ },
1763
+ {
1764
+ kind: 'key',
1765
+ name: 'debt_asset',
1766
+ type: 'core::starknet::contract_address::ContractAddress',
1767
+ },
1768
+ {
1769
+ kind: 'data',
1770
+ name: 'ltv_config',
1771
+ type: 'vesu::data_model::LTVConfig',
1772
+ },
1773
+ ],
1774
+ },
1775
+ {
1776
+ kind: 'struct',
1777
+ name: 'vesu::singleton::Singleton::SetAssetConfig',
1778
+ type: 'event',
1779
+ members: [
1780
+ {
1781
+ kind: 'key',
1782
+ name: 'pool_id',
1783
+ type: 'core::felt252',
1784
+ },
1785
+ {
1786
+ kind: 'key',
1787
+ name: 'asset',
1788
+ type: 'core::starknet::contract_address::ContractAddress',
1789
+ },
1790
+ ],
1791
+ },
1792
+ {
1793
+ kind: 'struct',
1794
+ name: 'vesu::singleton::Singleton::SetAssetParameter',
1795
+ type: 'event',
1796
+ members: [
1797
+ {
1798
+ kind: 'key',
1799
+ name: 'pool_id',
1800
+ type: 'core::felt252',
1801
+ },
1802
+ {
1803
+ kind: 'key',
1804
+ name: 'asset',
1805
+ type: 'core::starknet::contract_address::ContractAddress',
1806
+ },
1807
+ {
1808
+ kind: 'key',
1809
+ name: 'parameter',
1810
+ type: 'core::felt252',
1811
+ },
1812
+ {
1813
+ kind: 'data',
1814
+ name: 'value',
1815
+ type: 'core::integer::u256',
1816
+ },
1817
+ ],
1818
+ },
1819
+ {
1820
+ kind: 'struct',
1821
+ name: 'vesu::singleton::Singleton::SetExtension',
1822
+ type: 'event',
1823
+ members: [
1824
+ {
1825
+ kind: 'key',
1826
+ name: 'pool_id',
1827
+ type: 'core::felt252',
1828
+ },
1829
+ {
1830
+ kind: 'key',
1831
+ name: 'extension',
1832
+ type: 'core::starknet::contract_address::ContractAddress',
1833
+ },
1834
+ ],
1835
+ },
1836
+ {
1837
+ kind: 'enum',
1838
+ name: 'vesu::singleton::Singleton::Event',
1839
+ type: 'event',
1840
+ variants: [
1841
+ {
1842
+ kind: 'nested',
1843
+ name: 'CreatePool',
1844
+ type: 'vesu::singleton::Singleton::CreatePool',
1845
+ },
1846
+ {
1847
+ kind: 'nested',
1848
+ name: 'ModifyPosition',
1849
+ type: 'vesu::singleton::Singleton::ModifyPosition',
1850
+ },
1851
+ {
1852
+ kind: 'nested',
1853
+ name: 'TransferPosition',
1854
+ type: 'vesu::singleton::Singleton::TransferPosition',
1855
+ },
1856
+ {
1857
+ kind: 'nested',
1858
+ name: 'LiquidatePosition',
1859
+ type: 'vesu::singleton::Singleton::LiquidatePosition',
1860
+ },
1861
+ {
1862
+ kind: 'nested',
1863
+ name: 'AccrueFees',
1864
+ type: 'vesu::singleton::Singleton::AccrueFees',
1865
+ },
1866
+ {
1867
+ kind: 'nested',
1868
+ name: 'UpdateContext',
1869
+ type: 'vesu::singleton::Singleton::UpdateContext',
1870
+ },
1871
+ {
1872
+ kind: 'nested',
1873
+ name: 'Flashloan',
1874
+ type: 'vesu::singleton::Singleton::Flashloan',
1875
+ },
1876
+ {
1877
+ kind: 'nested',
1878
+ name: 'ModifyDelegation',
1879
+ type: 'vesu::singleton::Singleton::ModifyDelegation',
1880
+ },
1881
+ {
1882
+ kind: 'nested',
1883
+ name: 'Donate',
1884
+ type: 'vesu::singleton::Singleton::Donate',
1885
+ },
1886
+ {
1887
+ kind: 'nested',
1888
+ name: 'RetrieveReserve',
1889
+ type: 'vesu::singleton::Singleton::RetrieveReserve',
1890
+ },
1891
+ {
1892
+ kind: 'nested',
1893
+ name: 'SetLTVConfig',
1894
+ type: 'vesu::singleton::Singleton::SetLTVConfig',
1895
+ },
1896
+ {
1897
+ kind: 'nested',
1898
+ name: 'SetAssetConfig',
1899
+ type: 'vesu::singleton::Singleton::SetAssetConfig',
1900
+ },
1901
+ {
1902
+ kind: 'nested',
1903
+ name: 'SetAssetParameter',
1904
+ type: 'vesu::singleton::Singleton::SetAssetParameter',
1905
+ },
1906
+ {
1907
+ kind: 'nested',
1908
+ name: 'SetExtension',
1909
+ type: 'vesu::singleton::Singleton::SetExtension',
1910
+ },
1911
+ ],
1912
+ },
1913
+ ];
1914
+ //# sourceMappingURL=singletonAbi.js.map