@strkfarm/sdk 1.0.15 → 1.0.17

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.
@@ -0,0 +1,1473 @@
1
+ [
2
+ {
3
+ "type": "impl",
4
+ "name": "ExternalImpl",
5
+ "interface_name": "strkfarm_contracts::strategies::vesu_rebalance::interface::IVesuRebal"
6
+ },
7
+ {
8
+ "type": "enum",
9
+ "name": "strkfarm_contracts::strategies::vesu_rebalance::interface::Feature",
10
+ "variants": [
11
+ {
12
+ "name": "DEPOSIT",
13
+ "type": "()"
14
+ },
15
+ {
16
+ "name": "WITHDRAW",
17
+ "type": "()"
18
+ }
19
+ ]
20
+ },
21
+ {
22
+ "type": "struct",
23
+ "name": "core::integer::u256",
24
+ "members": [
25
+ {
26
+ "name": "low",
27
+ "type": "core::integer::u128"
28
+ },
29
+ {
30
+ "name": "high",
31
+ "type": "core::integer::u128"
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "type": "struct",
37
+ "name": "strkfarm_contracts::strategies::vesu_rebalance::interface::Action",
38
+ "members": [
39
+ {
40
+ "name": "pool_id",
41
+ "type": "core::felt252"
42
+ },
43
+ {
44
+ "name": "feature",
45
+ "type": "strkfarm_contracts::strategies::vesu_rebalance::interface::Feature"
46
+ },
47
+ {
48
+ "name": "token",
49
+ "type": "core::starknet::contract_address::ContractAddress"
50
+ },
51
+ {
52
+ "name": "amount",
53
+ "type": "core::integer::u256"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "type": "struct",
59
+ "name": "strkfarm_contracts::interfaces::IEkuboDistributor::Claim",
60
+ "members": [
61
+ {
62
+ "name": "id",
63
+ "type": "core::integer::u64"
64
+ },
65
+ {
66
+ "name": "claimee",
67
+ "type": "core::starknet::contract_address::ContractAddress"
68
+ },
69
+ {
70
+ "name": "amount",
71
+ "type": "core::integer::u128"
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ "type": "struct",
77
+ "name": "core::array::Span::<core::felt252>",
78
+ "members": [
79
+ {
80
+ "name": "snapshot",
81
+ "type": "@core::array::Array::<core::felt252>"
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "type": "struct",
87
+ "name": "strkfarm_contracts::components::swap::Route",
88
+ "members": [
89
+ {
90
+ "name": "token_from",
91
+ "type": "core::starknet::contract_address::ContractAddress"
92
+ },
93
+ {
94
+ "name": "token_to",
95
+ "type": "core::starknet::contract_address::ContractAddress"
96
+ },
97
+ {
98
+ "name": "exchange_address",
99
+ "type": "core::starknet::contract_address::ContractAddress"
100
+ },
101
+ {
102
+ "name": "percent",
103
+ "type": "core::integer::u128"
104
+ },
105
+ {
106
+ "name": "additional_swap_params",
107
+ "type": "core::array::Array::<core::felt252>"
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "type": "struct",
113
+ "name": "strkfarm_contracts::components::swap::AvnuMultiRouteSwap",
114
+ "members": [
115
+ {
116
+ "name": "token_from_address",
117
+ "type": "core::starknet::contract_address::ContractAddress"
118
+ },
119
+ {
120
+ "name": "token_from_amount",
121
+ "type": "core::integer::u256"
122
+ },
123
+ {
124
+ "name": "token_to_address",
125
+ "type": "core::starknet::contract_address::ContractAddress"
126
+ },
127
+ {
128
+ "name": "token_to_amount",
129
+ "type": "core::integer::u256"
130
+ },
131
+ {
132
+ "name": "token_to_min_amount",
133
+ "type": "core::integer::u256"
134
+ },
135
+ {
136
+ "name": "beneficiary",
137
+ "type": "core::starknet::contract_address::ContractAddress"
138
+ },
139
+ {
140
+ "name": "integrator_fee_amount_bps",
141
+ "type": "core::integer::u128"
142
+ },
143
+ {
144
+ "name": "integrator_fee_recipient",
145
+ "type": "core::starknet::contract_address::ContractAddress"
146
+ },
147
+ {
148
+ "name": "routes",
149
+ "type": "core::array::Array::<strkfarm_contracts::components::swap::Route>"
150
+ }
151
+ ]
152
+ },
153
+ {
154
+ "type": "struct",
155
+ "name": "strkfarm_contracts::strategies::vesu_rebalance::interface::Settings",
156
+ "members": [
157
+ {
158
+ "name": "default_pool_index",
159
+ "type": "core::integer::u8"
160
+ },
161
+ {
162
+ "name": "fee_bps",
163
+ "type": "core::integer::u32"
164
+ },
165
+ {
166
+ "name": "fee_receiver",
167
+ "type": "core::starknet::contract_address::ContractAddress"
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "type": "struct",
173
+ "name": "strkfarm_contracts::strategies::vesu_rebalance::interface::PoolProps",
174
+ "members": [
175
+ {
176
+ "name": "pool_id",
177
+ "type": "core::felt252"
178
+ },
179
+ {
180
+ "name": "max_weight",
181
+ "type": "core::integer::u32"
182
+ },
183
+ {
184
+ "name": "v_token",
185
+ "type": "core::starknet::contract_address::ContractAddress"
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ "type": "interface",
191
+ "name": "strkfarm_contracts::strategies::vesu_rebalance::interface::IVesuRebal",
192
+ "items": [
193
+ {
194
+ "type": "function",
195
+ "name": "rebalance",
196
+ "inputs": [
197
+ {
198
+ "name": "actions",
199
+ "type": "core::array::Array::<strkfarm_contracts::strategies::vesu_rebalance::interface::Action>"
200
+ }
201
+ ],
202
+ "outputs": [],
203
+ "state_mutability": "external"
204
+ },
205
+ {
206
+ "type": "function",
207
+ "name": "rebalance_weights",
208
+ "inputs": [
209
+ {
210
+ "name": "actions",
211
+ "type": "core::array::Array::<strkfarm_contracts::strategies::vesu_rebalance::interface::Action>"
212
+ }
213
+ ],
214
+ "outputs": [],
215
+ "state_mutability": "external"
216
+ },
217
+ {
218
+ "type": "function",
219
+ "name": "emergency_withdraw",
220
+ "inputs": [],
221
+ "outputs": [],
222
+ "state_mutability": "external"
223
+ },
224
+ {
225
+ "type": "function",
226
+ "name": "emergency_withdraw_pool",
227
+ "inputs": [
228
+ {
229
+ "name": "pool_index",
230
+ "type": "core::integer::u32"
231
+ }
232
+ ],
233
+ "outputs": [],
234
+ "state_mutability": "external"
235
+ },
236
+ {
237
+ "type": "function",
238
+ "name": "compute_yield",
239
+ "inputs": [],
240
+ "outputs": [
241
+ {
242
+ "type": "(core::integer::u256, core::integer::u256)"
243
+ }
244
+ ],
245
+ "state_mutability": "view"
246
+ },
247
+ {
248
+ "type": "function",
249
+ "name": "harvest",
250
+ "inputs": [
251
+ {
252
+ "name": "rewardsContract",
253
+ "type": "core::starknet::contract_address::ContractAddress"
254
+ },
255
+ {
256
+ "name": "claim",
257
+ "type": "strkfarm_contracts::interfaces::IEkuboDistributor::Claim"
258
+ },
259
+ {
260
+ "name": "proof",
261
+ "type": "core::array::Span::<core::felt252>"
262
+ },
263
+ {
264
+ "name": "swapInfo",
265
+ "type": "strkfarm_contracts::components::swap::AvnuMultiRouteSwap"
266
+ }
267
+ ],
268
+ "outputs": [],
269
+ "state_mutability": "external"
270
+ },
271
+ {
272
+ "type": "function",
273
+ "name": "set_settings",
274
+ "inputs": [
275
+ {
276
+ "name": "settings",
277
+ "type": "strkfarm_contracts::strategies::vesu_rebalance::interface::Settings"
278
+ }
279
+ ],
280
+ "outputs": [],
281
+ "state_mutability": "external"
282
+ },
283
+ {
284
+ "type": "function",
285
+ "name": "set_allowed_pools",
286
+ "inputs": [
287
+ {
288
+ "name": "pools",
289
+ "type": "core::array::Array::<strkfarm_contracts::strategies::vesu_rebalance::interface::PoolProps>"
290
+ }
291
+ ],
292
+ "outputs": [],
293
+ "state_mutability": "external"
294
+ },
295
+ {
296
+ "type": "function",
297
+ "name": "set_incentives_off",
298
+ "inputs": [],
299
+ "outputs": [],
300
+ "state_mutability": "external"
301
+ },
302
+ {
303
+ "type": "function",
304
+ "name": "get_settings",
305
+ "inputs": [],
306
+ "outputs": [
307
+ {
308
+ "type": "strkfarm_contracts::strategies::vesu_rebalance::interface::Settings"
309
+ }
310
+ ],
311
+ "state_mutability": "view"
312
+ },
313
+ {
314
+ "type": "function",
315
+ "name": "get_allowed_pools",
316
+ "inputs": [],
317
+ "outputs": [
318
+ {
319
+ "type": "core::array::Array::<strkfarm_contracts::strategies::vesu_rebalance::interface::PoolProps>"
320
+ }
321
+ ],
322
+ "state_mutability": "view"
323
+ },
324
+ {
325
+ "type": "function",
326
+ "name": "get_previous_index",
327
+ "inputs": [],
328
+ "outputs": [
329
+ {
330
+ "type": "core::integer::u128"
331
+ }
332
+ ],
333
+ "state_mutability": "view"
334
+ }
335
+ ]
336
+ },
337
+ {
338
+ "type": "impl",
339
+ "name": "VesuERC4626Impl",
340
+ "interface_name": "strkfarm_contracts::interfaces::IERC4626::IERC4626"
341
+ },
342
+ {
343
+ "type": "interface",
344
+ "name": "strkfarm_contracts::interfaces::IERC4626::IERC4626",
345
+ "items": [
346
+ {
347
+ "type": "function",
348
+ "name": "asset",
349
+ "inputs": [],
350
+ "outputs": [
351
+ {
352
+ "type": "core::starknet::contract_address::ContractAddress"
353
+ }
354
+ ],
355
+ "state_mutability": "view"
356
+ },
357
+ {
358
+ "type": "function",
359
+ "name": "total_assets",
360
+ "inputs": [],
361
+ "outputs": [
362
+ {
363
+ "type": "core::integer::u256"
364
+ }
365
+ ],
366
+ "state_mutability": "view"
367
+ },
368
+ {
369
+ "type": "function",
370
+ "name": "convert_to_shares",
371
+ "inputs": [
372
+ {
373
+ "name": "assets",
374
+ "type": "core::integer::u256"
375
+ }
376
+ ],
377
+ "outputs": [
378
+ {
379
+ "type": "core::integer::u256"
380
+ }
381
+ ],
382
+ "state_mutability": "view"
383
+ },
384
+ {
385
+ "type": "function",
386
+ "name": "convert_to_assets",
387
+ "inputs": [
388
+ {
389
+ "name": "shares",
390
+ "type": "core::integer::u256"
391
+ }
392
+ ],
393
+ "outputs": [
394
+ {
395
+ "type": "core::integer::u256"
396
+ }
397
+ ],
398
+ "state_mutability": "view"
399
+ },
400
+ {
401
+ "type": "function",
402
+ "name": "max_deposit",
403
+ "inputs": [
404
+ {
405
+ "name": "receiver",
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
+ "type": "function",
418
+ "name": "preview_deposit",
419
+ "inputs": [
420
+ {
421
+ "name": "assets",
422
+ "type": "core::integer::u256"
423
+ }
424
+ ],
425
+ "outputs": [
426
+ {
427
+ "type": "core::integer::u256"
428
+ }
429
+ ],
430
+ "state_mutability": "view"
431
+ },
432
+ {
433
+ "type": "function",
434
+ "name": "deposit",
435
+ "inputs": [
436
+ {
437
+ "name": "assets",
438
+ "type": "core::integer::u256"
439
+ },
440
+ {
441
+ "name": "receiver",
442
+ "type": "core::starknet::contract_address::ContractAddress"
443
+ }
444
+ ],
445
+ "outputs": [
446
+ {
447
+ "type": "core::integer::u256"
448
+ }
449
+ ],
450
+ "state_mutability": "external"
451
+ },
452
+ {
453
+ "type": "function",
454
+ "name": "max_mint",
455
+ "inputs": [
456
+ {
457
+ "name": "receiver",
458
+ "type": "core::starknet::contract_address::ContractAddress"
459
+ }
460
+ ],
461
+ "outputs": [
462
+ {
463
+ "type": "core::integer::u256"
464
+ }
465
+ ],
466
+ "state_mutability": "view"
467
+ },
468
+ {
469
+ "type": "function",
470
+ "name": "preview_mint",
471
+ "inputs": [
472
+ {
473
+ "name": "shares",
474
+ "type": "core::integer::u256"
475
+ }
476
+ ],
477
+ "outputs": [
478
+ {
479
+ "type": "core::integer::u256"
480
+ }
481
+ ],
482
+ "state_mutability": "view"
483
+ },
484
+ {
485
+ "type": "function",
486
+ "name": "mint",
487
+ "inputs": [
488
+ {
489
+ "name": "shares",
490
+ "type": "core::integer::u256"
491
+ },
492
+ {
493
+ "name": "receiver",
494
+ "type": "core::starknet::contract_address::ContractAddress"
495
+ }
496
+ ],
497
+ "outputs": [
498
+ {
499
+ "type": "core::integer::u256"
500
+ }
501
+ ],
502
+ "state_mutability": "external"
503
+ },
504
+ {
505
+ "type": "function",
506
+ "name": "max_withdraw",
507
+ "inputs": [
508
+ {
509
+ "name": "owner",
510
+ "type": "core::starknet::contract_address::ContractAddress"
511
+ }
512
+ ],
513
+ "outputs": [
514
+ {
515
+ "type": "core::integer::u256"
516
+ }
517
+ ],
518
+ "state_mutability": "view"
519
+ },
520
+ {
521
+ "type": "function",
522
+ "name": "preview_withdraw",
523
+ "inputs": [
524
+ {
525
+ "name": "assets",
526
+ "type": "core::integer::u256"
527
+ }
528
+ ],
529
+ "outputs": [
530
+ {
531
+ "type": "core::integer::u256"
532
+ }
533
+ ],
534
+ "state_mutability": "view"
535
+ },
536
+ {
537
+ "type": "function",
538
+ "name": "withdraw",
539
+ "inputs": [
540
+ {
541
+ "name": "assets",
542
+ "type": "core::integer::u256"
543
+ },
544
+ {
545
+ "name": "receiver",
546
+ "type": "core::starknet::contract_address::ContractAddress"
547
+ },
548
+ {
549
+ "name": "owner",
550
+ "type": "core::starknet::contract_address::ContractAddress"
551
+ }
552
+ ],
553
+ "outputs": [
554
+ {
555
+ "type": "core::integer::u256"
556
+ }
557
+ ],
558
+ "state_mutability": "external"
559
+ },
560
+ {
561
+ "type": "function",
562
+ "name": "max_redeem",
563
+ "inputs": [
564
+ {
565
+ "name": "owner",
566
+ "type": "core::starknet::contract_address::ContractAddress"
567
+ }
568
+ ],
569
+ "outputs": [
570
+ {
571
+ "type": "core::integer::u256"
572
+ }
573
+ ],
574
+ "state_mutability": "view"
575
+ },
576
+ {
577
+ "type": "function",
578
+ "name": "preview_redeem",
579
+ "inputs": [
580
+ {
581
+ "name": "shares",
582
+ "type": "core::integer::u256"
583
+ }
584
+ ],
585
+ "outputs": [
586
+ {
587
+ "type": "core::integer::u256"
588
+ }
589
+ ],
590
+ "state_mutability": "view"
591
+ },
592
+ {
593
+ "type": "function",
594
+ "name": "redeem",
595
+ "inputs": [
596
+ {
597
+ "name": "shares",
598
+ "type": "core::integer::u256"
599
+ },
600
+ {
601
+ "name": "receiver",
602
+ "type": "core::starknet::contract_address::ContractAddress"
603
+ },
604
+ {
605
+ "name": "owner",
606
+ "type": "core::starknet::contract_address::ContractAddress"
607
+ }
608
+ ],
609
+ "outputs": [
610
+ {
611
+ "type": "core::integer::u256"
612
+ }
613
+ ],
614
+ "state_mutability": "external"
615
+ }
616
+ ]
617
+ },
618
+ {
619
+ "type": "impl",
620
+ "name": "VesuERC20Impl",
621
+ "interface_name": "openzeppelin_token::erc20::interface::IERC20Mixin"
622
+ },
623
+ {
624
+ "type": "enum",
625
+ "name": "core::bool",
626
+ "variants": [
627
+ {
628
+ "name": "False",
629
+ "type": "()"
630
+ },
631
+ {
632
+ "name": "True",
633
+ "type": "()"
634
+ }
635
+ ]
636
+ },
637
+ {
638
+ "type": "struct",
639
+ "name": "core::byte_array::ByteArray",
640
+ "members": [
641
+ {
642
+ "name": "data",
643
+ "type": "core::array::Array::<core::bytes_31::bytes31>"
644
+ },
645
+ {
646
+ "name": "pending_word",
647
+ "type": "core::felt252"
648
+ },
649
+ {
650
+ "name": "pending_word_len",
651
+ "type": "core::integer::u32"
652
+ }
653
+ ]
654
+ },
655
+ {
656
+ "type": "interface",
657
+ "name": "openzeppelin_token::erc20::interface::IERC20Mixin",
658
+ "items": [
659
+ {
660
+ "type": "function",
661
+ "name": "total_supply",
662
+ "inputs": [],
663
+ "outputs": [
664
+ {
665
+ "type": "core::integer::u256"
666
+ }
667
+ ],
668
+ "state_mutability": "view"
669
+ },
670
+ {
671
+ "type": "function",
672
+ "name": "balance_of",
673
+ "inputs": [
674
+ {
675
+ "name": "account",
676
+ "type": "core::starknet::contract_address::ContractAddress"
677
+ }
678
+ ],
679
+ "outputs": [
680
+ {
681
+ "type": "core::integer::u256"
682
+ }
683
+ ],
684
+ "state_mutability": "view"
685
+ },
686
+ {
687
+ "type": "function",
688
+ "name": "allowance",
689
+ "inputs": [
690
+ {
691
+ "name": "owner",
692
+ "type": "core::starknet::contract_address::ContractAddress"
693
+ },
694
+ {
695
+ "name": "spender",
696
+ "type": "core::starknet::contract_address::ContractAddress"
697
+ }
698
+ ],
699
+ "outputs": [
700
+ {
701
+ "type": "core::integer::u256"
702
+ }
703
+ ],
704
+ "state_mutability": "view"
705
+ },
706
+ {
707
+ "type": "function",
708
+ "name": "transfer",
709
+ "inputs": [
710
+ {
711
+ "name": "recipient",
712
+ "type": "core::starknet::contract_address::ContractAddress"
713
+ },
714
+ {
715
+ "name": "amount",
716
+ "type": "core::integer::u256"
717
+ }
718
+ ],
719
+ "outputs": [
720
+ {
721
+ "type": "core::bool"
722
+ }
723
+ ],
724
+ "state_mutability": "external"
725
+ },
726
+ {
727
+ "type": "function",
728
+ "name": "transfer_from",
729
+ "inputs": [
730
+ {
731
+ "name": "sender",
732
+ "type": "core::starknet::contract_address::ContractAddress"
733
+ },
734
+ {
735
+ "name": "recipient",
736
+ "type": "core::starknet::contract_address::ContractAddress"
737
+ },
738
+ {
739
+ "name": "amount",
740
+ "type": "core::integer::u256"
741
+ }
742
+ ],
743
+ "outputs": [
744
+ {
745
+ "type": "core::bool"
746
+ }
747
+ ],
748
+ "state_mutability": "external"
749
+ },
750
+ {
751
+ "type": "function",
752
+ "name": "approve",
753
+ "inputs": [
754
+ {
755
+ "name": "spender",
756
+ "type": "core::starknet::contract_address::ContractAddress"
757
+ },
758
+ {
759
+ "name": "amount",
760
+ "type": "core::integer::u256"
761
+ }
762
+ ],
763
+ "outputs": [
764
+ {
765
+ "type": "core::bool"
766
+ }
767
+ ],
768
+ "state_mutability": "external"
769
+ },
770
+ {
771
+ "type": "function",
772
+ "name": "name",
773
+ "inputs": [],
774
+ "outputs": [
775
+ {
776
+ "type": "core::byte_array::ByteArray"
777
+ }
778
+ ],
779
+ "state_mutability": "view"
780
+ },
781
+ {
782
+ "type": "function",
783
+ "name": "symbol",
784
+ "inputs": [],
785
+ "outputs": [
786
+ {
787
+ "type": "core::byte_array::ByteArray"
788
+ }
789
+ ],
790
+ "state_mutability": "view"
791
+ },
792
+ {
793
+ "type": "function",
794
+ "name": "decimals",
795
+ "inputs": [],
796
+ "outputs": [
797
+ {
798
+ "type": "core::integer::u8"
799
+ }
800
+ ],
801
+ "state_mutability": "view"
802
+ },
803
+ {
804
+ "type": "function",
805
+ "name": "totalSupply",
806
+ "inputs": [],
807
+ "outputs": [
808
+ {
809
+ "type": "core::integer::u256"
810
+ }
811
+ ],
812
+ "state_mutability": "view"
813
+ },
814
+ {
815
+ "type": "function",
816
+ "name": "balanceOf",
817
+ "inputs": [
818
+ {
819
+ "name": "account",
820
+ "type": "core::starknet::contract_address::ContractAddress"
821
+ }
822
+ ],
823
+ "outputs": [
824
+ {
825
+ "type": "core::integer::u256"
826
+ }
827
+ ],
828
+ "state_mutability": "view"
829
+ },
830
+ {
831
+ "type": "function",
832
+ "name": "transferFrom",
833
+ "inputs": [
834
+ {
835
+ "name": "sender",
836
+ "type": "core::starknet::contract_address::ContractAddress"
837
+ },
838
+ {
839
+ "name": "recipient",
840
+ "type": "core::starknet::contract_address::ContractAddress"
841
+ },
842
+ {
843
+ "name": "amount",
844
+ "type": "core::integer::u256"
845
+ }
846
+ ],
847
+ "outputs": [
848
+ {
849
+ "type": "core::bool"
850
+ }
851
+ ],
852
+ "state_mutability": "external"
853
+ }
854
+ ]
855
+ },
856
+ {
857
+ "type": "impl",
858
+ "name": "CommonCompImpl",
859
+ "interface_name": "strkfarm_contracts::interfaces::common::ICommon"
860
+ },
861
+ {
862
+ "type": "interface",
863
+ "name": "strkfarm_contracts::interfaces::common::ICommon",
864
+ "items": [
865
+ {
866
+ "type": "function",
867
+ "name": "upgrade",
868
+ "inputs": [
869
+ {
870
+ "name": "new_class",
871
+ "type": "core::starknet::class_hash::ClassHash"
872
+ }
873
+ ],
874
+ "outputs": [],
875
+ "state_mutability": "external"
876
+ },
877
+ {
878
+ "type": "function",
879
+ "name": "pause",
880
+ "inputs": [],
881
+ "outputs": [],
882
+ "state_mutability": "external"
883
+ },
884
+ {
885
+ "type": "function",
886
+ "name": "unpause",
887
+ "inputs": [],
888
+ "outputs": [],
889
+ "state_mutability": "external"
890
+ },
891
+ {
892
+ "type": "function",
893
+ "name": "is_paused",
894
+ "inputs": [],
895
+ "outputs": [
896
+ {
897
+ "type": "core::bool"
898
+ }
899
+ ],
900
+ "state_mutability": "view"
901
+ }
902
+ ]
903
+ },
904
+ {
905
+ "type": "impl",
906
+ "name": "RewardShareImpl",
907
+ "interface_name": "strkfarm_contracts::components::harvester::reward_shares::IRewardShare"
908
+ },
909
+ {
910
+ "type": "struct",
911
+ "name": "strkfarm_contracts::components::harvester::reward_shares::UserRewardsInfo",
912
+ "members": [
913
+ {
914
+ "name": "pending_round_points",
915
+ "type": "core::integer::u128"
916
+ },
917
+ {
918
+ "name": "shares_owned",
919
+ "type": "core::integer::u128"
920
+ },
921
+ {
922
+ "name": "block_number",
923
+ "type": "core::integer::u64"
924
+ },
925
+ {
926
+ "name": "index",
927
+ "type": "core::integer::u32"
928
+ }
929
+ ]
930
+ },
931
+ {
932
+ "type": "struct",
933
+ "name": "strkfarm_contracts::components::harvester::reward_shares::RewardsInfo",
934
+ "members": [
935
+ {
936
+ "name": "amount",
937
+ "type": "core::integer::u128"
938
+ },
939
+ {
940
+ "name": "shares",
941
+ "type": "core::integer::u128"
942
+ },
943
+ {
944
+ "name": "total_round_points",
945
+ "type": "core::integer::u128"
946
+ },
947
+ {
948
+ "name": "block_number",
949
+ "type": "core::integer::u64"
950
+ }
951
+ ]
952
+ },
953
+ {
954
+ "type": "interface",
955
+ "name": "strkfarm_contracts::components::harvester::reward_shares::IRewardShare",
956
+ "items": [
957
+ {
958
+ "type": "function",
959
+ "name": "get_user_reward_info",
960
+ "inputs": [
961
+ {
962
+ "name": "user",
963
+ "type": "core::starknet::contract_address::ContractAddress"
964
+ }
965
+ ],
966
+ "outputs": [
967
+ {
968
+ "type": "strkfarm_contracts::components::harvester::reward_shares::UserRewardsInfo"
969
+ }
970
+ ],
971
+ "state_mutability": "view"
972
+ },
973
+ {
974
+ "type": "function",
975
+ "name": "get_rewards_info",
976
+ "inputs": [
977
+ {
978
+ "name": "index",
979
+ "type": "core::integer::u32"
980
+ }
981
+ ],
982
+ "outputs": [
983
+ {
984
+ "type": "strkfarm_contracts::components::harvester::reward_shares::RewardsInfo"
985
+ }
986
+ ],
987
+ "state_mutability": "view"
988
+ },
989
+ {
990
+ "type": "function",
991
+ "name": "get_total_rewards",
992
+ "inputs": [],
993
+ "outputs": [
994
+ {
995
+ "type": "core::integer::u32"
996
+ }
997
+ ],
998
+ "state_mutability": "view"
999
+ },
1000
+ {
1001
+ "type": "function",
1002
+ "name": "get_total_unminted_shares",
1003
+ "inputs": [],
1004
+ "outputs": [
1005
+ {
1006
+ "type": "core::integer::u128"
1007
+ }
1008
+ ],
1009
+ "state_mutability": "view"
1010
+ },
1011
+ {
1012
+ "type": "function",
1013
+ "name": "get_additional_shares",
1014
+ "inputs": [
1015
+ {
1016
+ "name": "user",
1017
+ "type": "core::starknet::contract_address::ContractAddress"
1018
+ }
1019
+ ],
1020
+ "outputs": [
1021
+ {
1022
+ "type": "(core::integer::u128, core::integer::u64, core::integer::u128)"
1023
+ }
1024
+ ],
1025
+ "state_mutability": "view"
1026
+ }
1027
+ ]
1028
+ },
1029
+ {
1030
+ "type": "struct",
1031
+ "name": "strkfarm_contracts::interfaces::IVesu::IStonDispatcher",
1032
+ "members": [
1033
+ {
1034
+ "name": "contract_address",
1035
+ "type": "core::starknet::contract_address::ContractAddress"
1036
+ }
1037
+ ]
1038
+ },
1039
+ {
1040
+ "type": "struct",
1041
+ "name": "strkfarm_contracts::components::vesu::vesuStruct",
1042
+ "members": [
1043
+ {
1044
+ "name": "singleton",
1045
+ "type": "strkfarm_contracts::interfaces::IVesu::IStonDispatcher"
1046
+ },
1047
+ {
1048
+ "name": "pool_id",
1049
+ "type": "core::felt252"
1050
+ },
1051
+ {
1052
+ "name": "debt",
1053
+ "type": "core::starknet::contract_address::ContractAddress"
1054
+ },
1055
+ {
1056
+ "name": "col",
1057
+ "type": "core::starknet::contract_address::ContractAddress"
1058
+ },
1059
+ {
1060
+ "name": "oracle",
1061
+ "type": "core::starknet::contract_address::ContractAddress"
1062
+ }
1063
+ ]
1064
+ },
1065
+ {
1066
+ "type": "constructor",
1067
+ "name": "constructor",
1068
+ "inputs": [
1069
+ {
1070
+ "name": "asset",
1071
+ "type": "core::starknet::contract_address::ContractAddress"
1072
+ },
1073
+ {
1074
+ "name": "access_control",
1075
+ "type": "core::starknet::contract_address::ContractAddress"
1076
+ },
1077
+ {
1078
+ "name": "allowed_pools",
1079
+ "type": "core::array::Array::<strkfarm_contracts::strategies::vesu_rebalance::interface::PoolProps>"
1080
+ },
1081
+ {
1082
+ "name": "settings",
1083
+ "type": "strkfarm_contracts::strategies::vesu_rebalance::interface::Settings"
1084
+ },
1085
+ {
1086
+ "name": "vesu_settings",
1087
+ "type": "strkfarm_contracts::components::vesu::vesuStruct"
1088
+ }
1089
+ ]
1090
+ },
1091
+ {
1092
+ "type": "event",
1093
+ "name": "openzeppelin_security::reentrancyguard::ReentrancyGuardComponent::Event",
1094
+ "kind": "enum",
1095
+ "variants": []
1096
+ },
1097
+ {
1098
+ "type": "event",
1099
+ "name": "strkfarm_contracts::components::erc4626::ERC4626Component::Deposit",
1100
+ "kind": "struct",
1101
+ "members": [
1102
+ {
1103
+ "name": "sender",
1104
+ "type": "core::starknet::contract_address::ContractAddress",
1105
+ "kind": "key"
1106
+ },
1107
+ {
1108
+ "name": "owner",
1109
+ "type": "core::starknet::contract_address::ContractAddress",
1110
+ "kind": "key"
1111
+ },
1112
+ {
1113
+ "name": "assets",
1114
+ "type": "core::integer::u256",
1115
+ "kind": "data"
1116
+ },
1117
+ {
1118
+ "name": "shares",
1119
+ "type": "core::integer::u256",
1120
+ "kind": "data"
1121
+ }
1122
+ ]
1123
+ },
1124
+ {
1125
+ "type": "event",
1126
+ "name": "strkfarm_contracts::components::erc4626::ERC4626Component::Withdraw",
1127
+ "kind": "struct",
1128
+ "members": [
1129
+ {
1130
+ "name": "sender",
1131
+ "type": "core::starknet::contract_address::ContractAddress",
1132
+ "kind": "key"
1133
+ },
1134
+ {
1135
+ "name": "receiver",
1136
+ "type": "core::starknet::contract_address::ContractAddress",
1137
+ "kind": "key"
1138
+ },
1139
+ {
1140
+ "name": "owner",
1141
+ "type": "core::starknet::contract_address::ContractAddress",
1142
+ "kind": "key"
1143
+ },
1144
+ {
1145
+ "name": "assets",
1146
+ "type": "core::integer::u256",
1147
+ "kind": "data"
1148
+ },
1149
+ {
1150
+ "name": "shares",
1151
+ "type": "core::integer::u256",
1152
+ "kind": "data"
1153
+ }
1154
+ ]
1155
+ },
1156
+ {
1157
+ "type": "event",
1158
+ "name": "strkfarm_contracts::components::erc4626::ERC4626Component::Event",
1159
+ "kind": "enum",
1160
+ "variants": [
1161
+ {
1162
+ "name": "Deposit",
1163
+ "type": "strkfarm_contracts::components::erc4626::ERC4626Component::Deposit",
1164
+ "kind": "nested"
1165
+ },
1166
+ {
1167
+ "name": "Withdraw",
1168
+ "type": "strkfarm_contracts::components::erc4626::ERC4626Component::Withdraw",
1169
+ "kind": "nested"
1170
+ }
1171
+ ]
1172
+ },
1173
+ {
1174
+ "type": "event",
1175
+ "name": "strkfarm_contracts::components::harvester::reward_shares::RewardShareComponent::Rewards",
1176
+ "kind": "struct",
1177
+ "members": [
1178
+ {
1179
+ "name": "index",
1180
+ "type": "core::integer::u32",
1181
+ "kind": "data"
1182
+ },
1183
+ {
1184
+ "name": "info",
1185
+ "type": "strkfarm_contracts::components::harvester::reward_shares::RewardsInfo",
1186
+ "kind": "data"
1187
+ },
1188
+ {
1189
+ "name": "total_reward_shares",
1190
+ "type": "core::integer::u128",
1191
+ "kind": "data"
1192
+ },
1193
+ {
1194
+ "name": "timestamp",
1195
+ "type": "core::integer::u64",
1196
+ "kind": "data"
1197
+ }
1198
+ ]
1199
+ },
1200
+ {
1201
+ "type": "event",
1202
+ "name": "strkfarm_contracts::components::harvester::reward_shares::RewardShareComponent::UserRewards",
1203
+ "kind": "struct",
1204
+ "members": [
1205
+ {
1206
+ "name": "user",
1207
+ "type": "core::starknet::contract_address::ContractAddress",
1208
+ "kind": "key"
1209
+ },
1210
+ {
1211
+ "name": "info",
1212
+ "type": "strkfarm_contracts::components::harvester::reward_shares::UserRewardsInfo",
1213
+ "kind": "data"
1214
+ },
1215
+ {
1216
+ "name": "total_reward_shares",
1217
+ "type": "core::integer::u128",
1218
+ "kind": "data"
1219
+ },
1220
+ {
1221
+ "name": "timestamp",
1222
+ "type": "core::integer::u64",
1223
+ "kind": "data"
1224
+ }
1225
+ ]
1226
+ },
1227
+ {
1228
+ "type": "event",
1229
+ "name": "strkfarm_contracts::components::harvester::reward_shares::RewardShareComponent::Event",
1230
+ "kind": "enum",
1231
+ "variants": [
1232
+ {
1233
+ "name": "Rewards",
1234
+ "type": "strkfarm_contracts::components::harvester::reward_shares::RewardShareComponent::Rewards",
1235
+ "kind": "nested"
1236
+ },
1237
+ {
1238
+ "name": "UserRewards",
1239
+ "type": "strkfarm_contracts::components::harvester::reward_shares::RewardShareComponent::UserRewards",
1240
+ "kind": "nested"
1241
+ }
1242
+ ]
1243
+ },
1244
+ {
1245
+ "type": "event",
1246
+ "name": "openzeppelin_token::erc20::erc20::ERC20Component::Transfer",
1247
+ "kind": "struct",
1248
+ "members": [
1249
+ {
1250
+ "name": "from",
1251
+ "type": "core::starknet::contract_address::ContractAddress",
1252
+ "kind": "key"
1253
+ },
1254
+ {
1255
+ "name": "to",
1256
+ "type": "core::starknet::contract_address::ContractAddress",
1257
+ "kind": "key"
1258
+ },
1259
+ {
1260
+ "name": "value",
1261
+ "type": "core::integer::u256",
1262
+ "kind": "data"
1263
+ }
1264
+ ]
1265
+ },
1266
+ {
1267
+ "type": "event",
1268
+ "name": "openzeppelin_token::erc20::erc20::ERC20Component::Approval",
1269
+ "kind": "struct",
1270
+ "members": [
1271
+ {
1272
+ "name": "owner",
1273
+ "type": "core::starknet::contract_address::ContractAddress",
1274
+ "kind": "key"
1275
+ },
1276
+ {
1277
+ "name": "spender",
1278
+ "type": "core::starknet::contract_address::ContractAddress",
1279
+ "kind": "key"
1280
+ },
1281
+ {
1282
+ "name": "value",
1283
+ "type": "core::integer::u256",
1284
+ "kind": "data"
1285
+ }
1286
+ ]
1287
+ },
1288
+ {
1289
+ "type": "event",
1290
+ "name": "openzeppelin_token::erc20::erc20::ERC20Component::Event",
1291
+ "kind": "enum",
1292
+ "variants": [
1293
+ {
1294
+ "name": "Transfer",
1295
+ "type": "openzeppelin_token::erc20::erc20::ERC20Component::Transfer",
1296
+ "kind": "nested"
1297
+ },
1298
+ {
1299
+ "name": "Approval",
1300
+ "type": "openzeppelin_token::erc20::erc20::ERC20Component::Approval",
1301
+ "kind": "nested"
1302
+ }
1303
+ ]
1304
+ },
1305
+ {
1306
+ "type": "event",
1307
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
1308
+ "kind": "enum",
1309
+ "variants": []
1310
+ },
1311
+ {
1312
+ "type": "event",
1313
+ "name": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Upgraded",
1314
+ "kind": "struct",
1315
+ "members": [
1316
+ {
1317
+ "name": "class_hash",
1318
+ "type": "core::starknet::class_hash::ClassHash",
1319
+ "kind": "data"
1320
+ }
1321
+ ]
1322
+ },
1323
+ {
1324
+ "type": "event",
1325
+ "name": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Event",
1326
+ "kind": "enum",
1327
+ "variants": [
1328
+ {
1329
+ "name": "Upgraded",
1330
+ "type": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Upgraded",
1331
+ "kind": "nested"
1332
+ }
1333
+ ]
1334
+ },
1335
+ {
1336
+ "type": "event",
1337
+ "name": "openzeppelin_security::pausable::PausableComponent::Paused",
1338
+ "kind": "struct",
1339
+ "members": [
1340
+ {
1341
+ "name": "account",
1342
+ "type": "core::starknet::contract_address::ContractAddress",
1343
+ "kind": "data"
1344
+ }
1345
+ ]
1346
+ },
1347
+ {
1348
+ "type": "event",
1349
+ "name": "openzeppelin_security::pausable::PausableComponent::Unpaused",
1350
+ "kind": "struct",
1351
+ "members": [
1352
+ {
1353
+ "name": "account",
1354
+ "type": "core::starknet::contract_address::ContractAddress",
1355
+ "kind": "data"
1356
+ }
1357
+ ]
1358
+ },
1359
+ {
1360
+ "type": "event",
1361
+ "name": "openzeppelin_security::pausable::PausableComponent::Event",
1362
+ "kind": "enum",
1363
+ "variants": [
1364
+ {
1365
+ "name": "Paused",
1366
+ "type": "openzeppelin_security::pausable::PausableComponent::Paused",
1367
+ "kind": "nested"
1368
+ },
1369
+ {
1370
+ "name": "Unpaused",
1371
+ "type": "openzeppelin_security::pausable::PausableComponent::Unpaused",
1372
+ "kind": "nested"
1373
+ }
1374
+ ]
1375
+ },
1376
+ {
1377
+ "type": "event",
1378
+ "name": "strkfarm_contracts::components::common::CommonComp::Event",
1379
+ "kind": "enum",
1380
+ "variants": []
1381
+ },
1382
+ {
1383
+ "type": "event",
1384
+ "name": "strkfarm_contracts::strategies::vesu_rebalance::vesu_rebalance::VesuRebalance::Rebalance",
1385
+ "kind": "struct",
1386
+ "members": [
1387
+ {
1388
+ "name": "yield_before",
1389
+ "type": "core::integer::u128",
1390
+ "kind": "data"
1391
+ },
1392
+ {
1393
+ "name": "yield_after",
1394
+ "type": "core::integer::u128",
1395
+ "kind": "data"
1396
+ }
1397
+ ]
1398
+ },
1399
+ {
1400
+ "type": "event",
1401
+ "name": "strkfarm_contracts::strategies::vesu_rebalance::vesu_rebalance::VesuRebalance::CollectFees",
1402
+ "kind": "struct",
1403
+ "members": [
1404
+ {
1405
+ "name": "fee_collected",
1406
+ "type": "core::integer::u128",
1407
+ "kind": "data"
1408
+ },
1409
+ {
1410
+ "name": "fee_collector",
1411
+ "type": "core::starknet::contract_address::ContractAddress",
1412
+ "kind": "data"
1413
+ }
1414
+ ]
1415
+ },
1416
+ {
1417
+ "type": "event",
1418
+ "name": "strkfarm_contracts::strategies::vesu_rebalance::vesu_rebalance::VesuRebalance::Event",
1419
+ "kind": "enum",
1420
+ "variants": [
1421
+ {
1422
+ "name": "ReentrancyGuardEvent",
1423
+ "type": "openzeppelin_security::reentrancyguard::ReentrancyGuardComponent::Event",
1424
+ "kind": "flat"
1425
+ },
1426
+ {
1427
+ "name": "ERC4626Event",
1428
+ "type": "strkfarm_contracts::components::erc4626::ERC4626Component::Event",
1429
+ "kind": "flat"
1430
+ },
1431
+ {
1432
+ "name": "RewardShareEvent",
1433
+ "type": "strkfarm_contracts::components::harvester::reward_shares::RewardShareComponent::Event",
1434
+ "kind": "flat"
1435
+ },
1436
+ {
1437
+ "name": "ERC20Event",
1438
+ "type": "openzeppelin_token::erc20::erc20::ERC20Component::Event",
1439
+ "kind": "flat"
1440
+ },
1441
+ {
1442
+ "name": "SRC5Event",
1443
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
1444
+ "kind": "flat"
1445
+ },
1446
+ {
1447
+ "name": "UpgradeableEvent",
1448
+ "type": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Event",
1449
+ "kind": "flat"
1450
+ },
1451
+ {
1452
+ "name": "PausableEvent",
1453
+ "type": "openzeppelin_security::pausable::PausableComponent::Event",
1454
+ "kind": "flat"
1455
+ },
1456
+ {
1457
+ "name": "CommonCompEvent",
1458
+ "type": "strkfarm_contracts::components::common::CommonComp::Event",
1459
+ "kind": "flat"
1460
+ },
1461
+ {
1462
+ "name": "Rebalance",
1463
+ "type": "strkfarm_contracts::strategies::vesu_rebalance::vesu_rebalance::VesuRebalance::Rebalance",
1464
+ "kind": "nested"
1465
+ },
1466
+ {
1467
+ "name": "CollectFees",
1468
+ "type": "strkfarm_contracts::strategies::vesu_rebalance::vesu_rebalance::VesuRebalance::CollectFees",
1469
+ "kind": "nested"
1470
+ }
1471
+ ]
1472
+ }
1473
+ ]