@strkfarm/sdk 2.0.0-staging.49 → 2.0.0-staging.50

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.
@@ -1,1141 +0,0 @@
1
- [
2
- {
3
- "type": "impl",
4
- "name": "YoloERC20Impl",
5
- "interface_name": "openzeppelin_token::erc20::interface::IERC20Mixin"
6
- },
7
- {
8
- "type": "struct",
9
- "name": "core::integer::u256",
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
- "type": "enum",
23
- "name": "core::bool",
24
- "variants": [
25
- {
26
- "name": "False",
27
- "type": "()"
28
- },
29
- {
30
- "name": "True",
31
- "type": "()"
32
- }
33
- ]
34
- },
35
- {
36
- "type": "struct",
37
- "name": "core::byte_array::ByteArray",
38
- "members": [
39
- {
40
- "name": "data",
41
- "type": "core::array::Array::<core::bytes_31::bytes31>"
42
- },
43
- {
44
- "name": "pending_word",
45
- "type": "core::felt252"
46
- },
47
- {
48
- "name": "pending_word_len",
49
- "type": "core::integer::u32"
50
- }
51
- ]
52
- },
53
- {
54
- "type": "interface",
55
- "name": "openzeppelin_token::erc20::interface::IERC20Mixin",
56
- "items": [
57
- {
58
- "type": "function",
59
- "name": "total_supply",
60
- "inputs": [],
61
- "outputs": [
62
- {
63
- "type": "core::integer::u256"
64
- }
65
- ],
66
- "state_mutability": "view"
67
- },
68
- {
69
- "type": "function",
70
- "name": "balance_of",
71
- "inputs": [
72
- {
73
- "name": "account",
74
- "type": "core::starknet::contract_address::ContractAddress"
75
- }
76
- ],
77
- "outputs": [
78
- {
79
- "type": "core::integer::u256"
80
- }
81
- ],
82
- "state_mutability": "view"
83
- },
84
- {
85
- "type": "function",
86
- "name": "allowance",
87
- "inputs": [
88
- {
89
- "name": "owner",
90
- "type": "core::starknet::contract_address::ContractAddress"
91
- },
92
- {
93
- "name": "spender",
94
- "type": "core::starknet::contract_address::ContractAddress"
95
- }
96
- ],
97
- "outputs": [
98
- {
99
- "type": "core::integer::u256"
100
- }
101
- ],
102
- "state_mutability": "view"
103
- },
104
- {
105
- "type": "function",
106
- "name": "transfer",
107
- "inputs": [
108
- {
109
- "name": "recipient",
110
- "type": "core::starknet::contract_address::ContractAddress"
111
- },
112
- {
113
- "name": "amount",
114
- "type": "core::integer::u256"
115
- }
116
- ],
117
- "outputs": [
118
- {
119
- "type": "core::bool"
120
- }
121
- ],
122
- "state_mutability": "external"
123
- },
124
- {
125
- "type": "function",
126
- "name": "transfer_from",
127
- "inputs": [
128
- {
129
- "name": "sender",
130
- "type": "core::starknet::contract_address::ContractAddress"
131
- },
132
- {
133
- "name": "recipient",
134
- "type": "core::starknet::contract_address::ContractAddress"
135
- },
136
- {
137
- "name": "amount",
138
- "type": "core::integer::u256"
139
- }
140
- ],
141
- "outputs": [
142
- {
143
- "type": "core::bool"
144
- }
145
- ],
146
- "state_mutability": "external"
147
- },
148
- {
149
- "type": "function",
150
- "name": "approve",
151
- "inputs": [
152
- {
153
- "name": "spender",
154
- "type": "core::starknet::contract_address::ContractAddress"
155
- },
156
- {
157
- "name": "amount",
158
- "type": "core::integer::u256"
159
- }
160
- ],
161
- "outputs": [
162
- {
163
- "type": "core::bool"
164
- }
165
- ],
166
- "state_mutability": "external"
167
- },
168
- {
169
- "type": "function",
170
- "name": "name",
171
- "inputs": [],
172
- "outputs": [
173
- {
174
- "type": "core::byte_array::ByteArray"
175
- }
176
- ],
177
- "state_mutability": "view"
178
- },
179
- {
180
- "type": "function",
181
- "name": "symbol",
182
- "inputs": [],
183
- "outputs": [
184
- {
185
- "type": "core::byte_array::ByteArray"
186
- }
187
- ],
188
- "state_mutability": "view"
189
- },
190
- {
191
- "type": "function",
192
- "name": "decimals",
193
- "inputs": [],
194
- "outputs": [
195
- {
196
- "type": "core::integer::u8"
197
- }
198
- ],
199
- "state_mutability": "view"
200
- },
201
- {
202
- "type": "function",
203
- "name": "totalSupply",
204
- "inputs": [],
205
- "outputs": [
206
- {
207
- "type": "core::integer::u256"
208
- }
209
- ],
210
- "state_mutability": "view"
211
- },
212
- {
213
- "type": "function",
214
- "name": "balanceOf",
215
- "inputs": [
216
- {
217
- "name": "account",
218
- "type": "core::starknet::contract_address::ContractAddress"
219
- }
220
- ],
221
- "outputs": [
222
- {
223
- "type": "core::integer::u256"
224
- }
225
- ],
226
- "state_mutability": "view"
227
- },
228
- {
229
- "type": "function",
230
- "name": "transferFrom",
231
- "inputs": [
232
- {
233
- "name": "sender",
234
- "type": "core::starknet::contract_address::ContractAddress"
235
- },
236
- {
237
- "name": "recipient",
238
- "type": "core::starknet::contract_address::ContractAddress"
239
- },
240
- {
241
- "name": "amount",
242
- "type": "core::integer::u256"
243
- }
244
- ],
245
- "outputs": [
246
- {
247
- "type": "core::bool"
248
- }
249
- ],
250
- "state_mutability": "external"
251
- }
252
- ]
253
- },
254
- {
255
- "type": "impl",
256
- "name": "YoloVaultImpl",
257
- "interface_name": "contracts_private::strategies::yolo_vault::interface::IYoloVault"
258
- },
259
- {
260
- "type": "struct",
261
- "name": "strkfarm_contracts::components::swap::Route",
262
- "members": [
263
- {
264
- "name": "token_from",
265
- "type": "core::starknet::contract_address::ContractAddress"
266
- },
267
- {
268
- "name": "token_to",
269
- "type": "core::starknet::contract_address::ContractAddress"
270
- },
271
- {
272
- "name": "exchange_address",
273
- "type": "core::starknet::contract_address::ContractAddress"
274
- },
275
- {
276
- "name": "percent",
277
- "type": "core::integer::u128"
278
- },
279
- {
280
- "name": "additional_swap_params",
281
- "type": "core::array::Array::<core::felt252>"
282
- }
283
- ]
284
- },
285
- {
286
- "type": "struct",
287
- "name": "strkfarm_contracts::components::swap::AvnuMultiRouteSwap",
288
- "members": [
289
- {
290
- "name": "token_from_address",
291
- "type": "core::starknet::contract_address::ContractAddress"
292
- },
293
- {
294
- "name": "token_from_amount",
295
- "type": "core::integer::u256"
296
- },
297
- {
298
- "name": "token_to_address",
299
- "type": "core::starknet::contract_address::ContractAddress"
300
- },
301
- {
302
- "name": "token_to_amount",
303
- "type": "core::integer::u256"
304
- },
305
- {
306
- "name": "token_to_min_amount",
307
- "type": "core::integer::u256"
308
- },
309
- {
310
- "name": "beneficiary",
311
- "type": "core::starknet::contract_address::ContractAddress"
312
- },
313
- {
314
- "name": "integrator_fee_amount_bps",
315
- "type": "core::integer::u128"
316
- },
317
- {
318
- "name": "integrator_fee_recipient",
319
- "type": "core::starknet::contract_address::ContractAddress"
320
- },
321
- {
322
- "name": "routes",
323
- "type": "core::array::Array::<strkfarm_contracts::components::swap::Route>"
324
- }
325
- ]
326
- },
327
- {
328
- "type": "struct",
329
- "name": "contracts_private::strategies::yolo_vault::interface::YoloFeeSettings",
330
- "members": [
331
- {
332
- "name": "swap_fee_bps",
333
- "type": "core::integer::u256"
334
- },
335
- {
336
- "name": "performance_fee_bps",
337
- "type": "core::integer::u256"
338
- },
339
- {
340
- "name": "fee_receiver",
341
- "type": "core::starknet::contract_address::ContractAddress"
342
- }
343
- ]
344
- },
345
- {
346
- "type": "struct",
347
- "name": "contracts_private::strategies::yolo_vault::interface::YoloVaultStatus",
348
- "members": [
349
- {
350
- "name": "current_epoch",
351
- "type": "core::integer::u256"
352
- },
353
- {
354
- "name": "total_epochs",
355
- "type": "core::integer::u256"
356
- },
357
- {
358
- "name": "remaining_base",
359
- "type": "core::integer::u256"
360
- },
361
- {
362
- "name": "total_second_tokens",
363
- "type": "core::integer::u256"
364
- },
365
- {
366
- "name": "global_second_token_index",
367
- "type": "core::integer::u256"
368
- },
369
- {
370
- "name": "cumulative_spend_index",
371
- "type": "core::integer::u256"
372
- },
373
- {
374
- "name": "total_shares",
375
- "type": "core::integer::u256"
376
- },
377
- {
378
- "name": "base_token_assets_per_share",
379
- "type": "core::integer::u256"
380
- }
381
- ]
382
- },
383
- {
384
- "type": "struct",
385
- "name": "contracts_private::strategies::yolo_vault::interface::UserYoloInfo",
386
- "members": [
387
- {
388
- "name": "shares",
389
- "type": "core::integer::u256"
390
- },
391
- {
392
- "name": "claimable_second_tokens",
393
- "type": "core::integer::u256"
394
- },
395
- {
396
- "name": "base_token_balance",
397
- "type": "core::integer::u256"
398
- },
399
- {
400
- "name": "base_token_consumed",
401
- "type": "core::integer::u256"
402
- },
403
- {
404
- "name": "base_consumed_last_index",
405
- "type": "core::integer::u256"
406
- },
407
- {
408
- "name": "second_token_last_index",
409
- "type": "core::integer::u256"
410
- },
411
- {
412
- "name": "second_token_balance",
413
- "type": "core::integer::u256"
414
- }
415
- ]
416
- },
417
- {
418
- "type": "struct",
419
- "name": "contracts_private::strategies::yolo_vault::interface::YoloSettings",
420
- "members": [
421
- {
422
- "name": "base_token",
423
- "type": "core::starknet::contract_address::ContractAddress"
424
- },
425
- {
426
- "name": "second_token",
427
- "type": "core::starknet::contract_address::ContractAddress"
428
- },
429
- {
430
- "name": "total_epochs",
431
- "type": "core::integer::u256"
432
- },
433
- {
434
- "name": "min_time_per_epoch",
435
- "type": "core::integer::u64"
436
- },
437
- {
438
- "name": "max_spend_units_per_epoch",
439
- "type": "core::integer::u256"
440
- },
441
- {
442
- "name": "base_token_assets_per_share",
443
- "type": "core::integer::u256"
444
- },
445
- {
446
- "name": "oracle",
447
- "type": "core::starknet::contract_address::ContractAddress"
448
- }
449
- ]
450
- },
451
- {
452
- "type": "interface",
453
- "name": "contracts_private::strategies::yolo_vault::interface::IYoloVault",
454
- "items": [
455
- {
456
- "type": "function",
457
- "name": "deposit",
458
- "inputs": [
459
- {
460
- "name": "base_token_amount",
461
- "type": "core::integer::u256"
462
- },
463
- {
464
- "name": "receiver",
465
- "type": "core::starknet::contract_address::ContractAddress"
466
- }
467
- ],
468
- "outputs": [],
469
- "state_mutability": "external"
470
- },
471
- {
472
- "type": "function",
473
- "name": "redeem",
474
- "inputs": [
475
- {
476
- "name": "shares",
477
- "type": "core::integer::u256"
478
- },
479
- {
480
- "name": "receiver",
481
- "type": "core::starknet::contract_address::ContractAddress"
482
- }
483
- ],
484
- "outputs": [],
485
- "state_mutability": "external"
486
- },
487
- {
488
- "type": "function",
489
- "name": "deposit_combined",
490
- "inputs": [
491
- {
492
- "name": "underlying_amount",
493
- "type": "core::integer::u256"
494
- },
495
- {
496
- "name": "receiver",
497
- "type": "core::starknet::contract_address::ContractAddress"
498
- }
499
- ],
500
- "outputs": [],
501
- "state_mutability": "external"
502
- },
503
- {
504
- "type": "function",
505
- "name": "redeem_combined",
506
- "inputs": [
507
- {
508
- "name": "shares",
509
- "type": "core::integer::u256"
510
- },
511
- {
512
- "name": "receiver",
513
- "type": "core::starknet::contract_address::ContractAddress"
514
- }
515
- ],
516
- "outputs": [],
517
- "state_mutability": "external"
518
- },
519
- {
520
- "type": "function",
521
- "name": "execute_swap",
522
- "inputs": [
523
- {
524
- "name": "spend_units",
525
- "type": "core::integer::u256"
526
- },
527
- {
528
- "name": "swap_params",
529
- "type": "strkfarm_contracts::components::swap::AvnuMultiRouteSwap"
530
- }
531
- ],
532
- "outputs": [],
533
- "state_mutability": "external"
534
- },
535
- {
536
- "type": "function",
537
- "name": "update_fee_settings",
538
- "inputs": [
539
- {
540
- "name": "new_settings",
541
- "type": "contracts_private::strategies::yolo_vault::interface::YoloFeeSettings"
542
- }
543
- ],
544
- "outputs": [],
545
- "state_mutability": "external"
546
- },
547
- {
548
- "type": "function",
549
- "name": "update_max_spend_units",
550
- "inputs": [
551
- {
552
- "name": "new_max",
553
- "type": "core::integer::u256"
554
- }
555
- ],
556
- "outputs": [],
557
- "state_mutability": "external"
558
- },
559
- {
560
- "type": "function",
561
- "name": "get_swap_amounts",
562
- "inputs": [
563
- {
564
- "name": "spend_units",
565
- "type": "core::integer::u256"
566
- }
567
- ],
568
- "outputs": [
569
- {
570
- "type": "(core::integer::u256, core::integer::u256, core::bool)"
571
- }
572
- ],
573
- "state_mutability": "view"
574
- },
575
- {
576
- "type": "function",
577
- "name": "get_user_claimable_second_tokens",
578
- "inputs": [
579
- {
580
- "name": "user",
581
- "type": "core::starknet::contract_address::ContractAddress"
582
- }
583
- ],
584
- "outputs": [
585
- {
586
- "type": "core::integer::u256"
587
- }
588
- ],
589
- "state_mutability": "view"
590
- },
591
- {
592
- "type": "function",
593
- "name": "get_user_base_token_consumed",
594
- "inputs": [
595
- {
596
- "name": "user",
597
- "type": "core::starknet::contract_address::ContractAddress"
598
- }
599
- ],
600
- "outputs": [
601
- {
602
- "type": "core::integer::u256"
603
- }
604
- ],
605
- "state_mutability": "view"
606
- },
607
- {
608
- "type": "function",
609
- "name": "get_user_base_token_balance",
610
- "inputs": [
611
- {
612
- "name": "user",
613
- "type": "core::starknet::contract_address::ContractAddress"
614
- }
615
- ],
616
- "outputs": [
617
- {
618
- "type": "core::integer::u256"
619
- }
620
- ],
621
- "state_mutability": "view"
622
- },
623
- {
624
- "type": "function",
625
- "name": "get_vault_status",
626
- "inputs": [],
627
- "outputs": [
628
- {
629
- "type": "contracts_private::strategies::yolo_vault::interface::YoloVaultStatus"
630
- }
631
- ],
632
- "state_mutability": "view"
633
- },
634
- {
635
- "type": "function",
636
- "name": "get_user_info",
637
- "inputs": [
638
- {
639
- "name": "user",
640
- "type": "core::starknet::contract_address::ContractAddress"
641
- }
642
- ],
643
- "outputs": [
644
- {
645
- "type": "contracts_private::strategies::yolo_vault::interface::UserYoloInfo"
646
- }
647
- ],
648
- "state_mutability": "view"
649
- },
650
- {
651
- "type": "function",
652
- "name": "get_settings",
653
- "inputs": [],
654
- "outputs": [
655
- {
656
- "type": "contracts_private::strategies::yolo_vault::interface::YoloSettings"
657
- }
658
- ],
659
- "state_mutability": "view"
660
- },
661
- {
662
- "type": "function",
663
- "name": "get_fee_settings",
664
- "inputs": [],
665
- "outputs": [
666
- {
667
- "type": "contracts_private::strategies::yolo_vault::interface::YoloFeeSettings"
668
- }
669
- ],
670
- "state_mutability": "view"
671
- },
672
- {
673
- "type": "function",
674
- "name": "get_shares_on_deposit",
675
- "inputs": [
676
- {
677
- "name": "base_token_amount",
678
- "type": "core::integer::u256"
679
- }
680
- ],
681
- "outputs": [
682
- {
683
- "type": "core::integer::u256"
684
- }
685
- ],
686
- "state_mutability": "view"
687
- }
688
- ]
689
- },
690
- {
691
- "type": "impl",
692
- "name": "CommonCompImpl",
693
- "interface_name": "strkfarm_contracts::interfaces::common::ICommon"
694
- },
695
- {
696
- "type": "interface",
697
- "name": "strkfarm_contracts::interfaces::common::ICommon",
698
- "items": [
699
- {
700
- "type": "function",
701
- "name": "upgrade",
702
- "inputs": [
703
- {
704
- "name": "new_class",
705
- "type": "core::starknet::class_hash::ClassHash"
706
- }
707
- ],
708
- "outputs": [],
709
- "state_mutability": "external"
710
- },
711
- {
712
- "type": "function",
713
- "name": "pause",
714
- "inputs": [],
715
- "outputs": [],
716
- "state_mutability": "external"
717
- },
718
- {
719
- "type": "function",
720
- "name": "unpause",
721
- "inputs": [],
722
- "outputs": [],
723
- "state_mutability": "external"
724
- },
725
- {
726
- "type": "function",
727
- "name": "is_paused",
728
- "inputs": [],
729
- "outputs": [
730
- {
731
- "type": "core::bool"
732
- }
733
- ],
734
- "state_mutability": "view"
735
- },
736
- {
737
- "type": "function",
738
- "name": "access_control",
739
- "inputs": [],
740
- "outputs": [
741
- {
742
- "type": "core::starknet::contract_address::ContractAddress"
743
- }
744
- ],
745
- "state_mutability": "view"
746
- }
747
- ]
748
- },
749
- {
750
- "type": "constructor",
751
- "name": "constructor",
752
- "inputs": [
753
- {
754
- "name": "name",
755
- "type": "core::byte_array::ByteArray"
756
- },
757
- {
758
- "name": "symbol",
759
- "type": "core::byte_array::ByteArray"
760
- },
761
- {
762
- "name": "access_control",
763
- "type": "core::starknet::contract_address::ContractAddress"
764
- },
765
- {
766
- "name": "base_token",
767
- "type": "core::starknet::contract_address::ContractAddress"
768
- },
769
- {
770
- "name": "second_token",
771
- "type": "core::starknet::contract_address::ContractAddress"
772
- },
773
- {
774
- "name": "total_epochs",
775
- "type": "core::integer::u256"
776
- },
777
- {
778
- "name": "min_time_per_epoch",
779
- "type": "core::integer::u64"
780
- },
781
- {
782
- "name": "max_spend_units_per_epoch",
783
- "type": "core::integer::u256"
784
- },
785
- {
786
- "name": "base_token_assets_per_share",
787
- "type": "core::integer::u256"
788
- },
789
- {
790
- "name": "oracle",
791
- "type": "core::starknet::contract_address::ContractAddress"
792
- },
793
- {
794
- "name": "swap_fee_bps",
795
- "type": "core::integer::u256"
796
- },
797
- {
798
- "name": "performance_fee_bps",
799
- "type": "core::integer::u256"
800
- },
801
- {
802
- "name": "fee_receiver",
803
- "type": "core::starknet::contract_address::ContractAddress"
804
- }
805
- ]
806
- },
807
- {
808
- "type": "event",
809
- "name": "openzeppelin_security::reentrancyguard::ReentrancyGuardComponent::Event",
810
- "kind": "enum",
811
- "variants": []
812
- },
813
- {
814
- "type": "event",
815
- "name": "openzeppelin_token::erc20::erc20::ERC20Component::Transfer",
816
- "kind": "struct",
817
- "members": [
818
- {
819
- "name": "from",
820
- "type": "core::starknet::contract_address::ContractAddress",
821
- "kind": "key"
822
- },
823
- {
824
- "name": "to",
825
- "type": "core::starknet::contract_address::ContractAddress",
826
- "kind": "key"
827
- },
828
- {
829
- "name": "value",
830
- "type": "core::integer::u256",
831
- "kind": "data"
832
- }
833
- ]
834
- },
835
- {
836
- "type": "event",
837
- "name": "openzeppelin_token::erc20::erc20::ERC20Component::Approval",
838
- "kind": "struct",
839
- "members": [
840
- {
841
- "name": "owner",
842
- "type": "core::starknet::contract_address::ContractAddress",
843
- "kind": "key"
844
- },
845
- {
846
- "name": "spender",
847
- "type": "core::starknet::contract_address::ContractAddress",
848
- "kind": "key"
849
- },
850
- {
851
- "name": "value",
852
- "type": "core::integer::u256",
853
- "kind": "data"
854
- }
855
- ]
856
- },
857
- {
858
- "type": "event",
859
- "name": "openzeppelin_token::erc20::erc20::ERC20Component::Event",
860
- "kind": "enum",
861
- "variants": [
862
- {
863
- "name": "Transfer",
864
- "type": "openzeppelin_token::erc20::erc20::ERC20Component::Transfer",
865
- "kind": "nested"
866
- },
867
- {
868
- "name": "Approval",
869
- "type": "openzeppelin_token::erc20::erc20::ERC20Component::Approval",
870
- "kind": "nested"
871
- }
872
- ]
873
- },
874
- {
875
- "type": "event",
876
- "name": "openzeppelin_introspection::src5::SRC5Component::Event",
877
- "kind": "enum",
878
- "variants": []
879
- },
880
- {
881
- "type": "event",
882
- "name": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Upgraded",
883
- "kind": "struct",
884
- "members": [
885
- {
886
- "name": "class_hash",
887
- "type": "core::starknet::class_hash::ClassHash",
888
- "kind": "data"
889
- }
890
- ]
891
- },
892
- {
893
- "type": "event",
894
- "name": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Event",
895
- "kind": "enum",
896
- "variants": [
897
- {
898
- "name": "Upgraded",
899
- "type": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Upgraded",
900
- "kind": "nested"
901
- }
902
- ]
903
- },
904
- {
905
- "type": "event",
906
- "name": "openzeppelin_security::pausable::PausableComponent::Paused",
907
- "kind": "struct",
908
- "members": [
909
- {
910
- "name": "account",
911
- "type": "core::starknet::contract_address::ContractAddress",
912
- "kind": "data"
913
- }
914
- ]
915
- },
916
- {
917
- "type": "event",
918
- "name": "openzeppelin_security::pausable::PausableComponent::Unpaused",
919
- "kind": "struct",
920
- "members": [
921
- {
922
- "name": "account",
923
- "type": "core::starknet::contract_address::ContractAddress",
924
- "kind": "data"
925
- }
926
- ]
927
- },
928
- {
929
- "type": "event",
930
- "name": "openzeppelin_security::pausable::PausableComponent::Event",
931
- "kind": "enum",
932
- "variants": [
933
- {
934
- "name": "Paused",
935
- "type": "openzeppelin_security::pausable::PausableComponent::Paused",
936
- "kind": "nested"
937
- },
938
- {
939
- "name": "Unpaused",
940
- "type": "openzeppelin_security::pausable::PausableComponent::Unpaused",
941
- "kind": "nested"
942
- }
943
- ]
944
- },
945
- {
946
- "type": "event",
947
- "name": "strkfarm_contracts::components::common::CommonComp::Event",
948
- "kind": "enum",
949
- "variants": []
950
- },
951
- {
952
- "type": "event",
953
- "name": "contracts_private::strategies::yolo_vault::interface::Deposit",
954
- "kind": "struct",
955
- "members": [
956
- {
957
- "name": "user",
958
- "type": "core::starknet::contract_address::ContractAddress",
959
- "kind": "key"
960
- },
961
- {
962
- "name": "receiver",
963
- "type": "core::starknet::contract_address::ContractAddress",
964
- "kind": "data"
965
- },
966
- {
967
- "name": "base_amount",
968
- "type": "core::integer::u256",
969
- "kind": "data"
970
- },
971
- {
972
- "name": "shares",
973
- "type": "core::integer::u256",
974
- "kind": "data"
975
- }
976
- ]
977
- },
978
- {
979
- "type": "event",
980
- "name": "contracts_private::strategies::yolo_vault::interface::Redeem",
981
- "kind": "struct",
982
- "members": [
983
- {
984
- "name": "user",
985
- "type": "core::starknet::contract_address::ContractAddress",
986
- "kind": "key"
987
- },
988
- {
989
- "name": "receiver",
990
- "type": "core::starknet::contract_address::ContractAddress",
991
- "kind": "data"
992
- },
993
- {
994
- "name": "shares",
995
- "type": "core::integer::u256",
996
- "kind": "data"
997
- },
998
- {
999
- "name": "base_out",
1000
- "type": "core::integer::u256",
1001
- "kind": "data"
1002
- },
1003
- {
1004
- "name": "second_out",
1005
- "type": "core::integer::u256",
1006
- "kind": "data"
1007
- },
1008
- {
1009
- "name": "performance_fee",
1010
- "type": "core::integer::u256",
1011
- "kind": "data"
1012
- }
1013
- ]
1014
- },
1015
- {
1016
- "type": "event",
1017
- "name": "contracts_private::strategies::yolo_vault::interface::SwapExecuted",
1018
- "kind": "struct",
1019
- "members": [
1020
- {
1021
- "name": "epoch",
1022
- "type": "core::integer::u256",
1023
- "kind": "data"
1024
- },
1025
- {
1026
- "name": "spend_units",
1027
- "type": "core::integer::u256",
1028
- "kind": "data"
1029
- },
1030
- {
1031
- "name": "gross_spend",
1032
- "type": "core::integer::u256",
1033
- "kind": "data"
1034
- },
1035
- {
1036
- "name": "swap_fee",
1037
- "type": "core::integer::u256",
1038
- "kind": "data"
1039
- },
1040
- {
1041
- "name": "net_spend",
1042
- "type": "core::integer::u256",
1043
- "kind": "data"
1044
- },
1045
- {
1046
- "name": "second_tokens_acquired",
1047
- "type": "core::integer::u256",
1048
- "kind": "data"
1049
- },
1050
- {
1051
- "name": "new_global_index",
1052
- "type": "core::integer::u256",
1053
- "kind": "data"
1054
- },
1055
- {
1056
- "name": "cumulative_spend_index",
1057
- "type": "core::integer::u256",
1058
- "kind": "data"
1059
- }
1060
- ]
1061
- },
1062
- {
1063
- "type": "event",
1064
- "name": "contracts_private::strategies::yolo_vault::interface::FeeSettingsUpdated",
1065
- "kind": "struct",
1066
- "members": [
1067
- {
1068
- "name": "swap_fee_bps",
1069
- "type": "core::integer::u256",
1070
- "kind": "data"
1071
- },
1072
- {
1073
- "name": "performance_fee_bps",
1074
- "type": "core::integer::u256",
1075
- "kind": "data"
1076
- },
1077
- {
1078
- "name": "fee_receiver",
1079
- "type": "core::starknet::contract_address::ContractAddress",
1080
- "kind": "data"
1081
- }
1082
- ]
1083
- },
1084
- {
1085
- "type": "event",
1086
- "name": "contracts_private::strategies::yolo_vault::yolo_vault::YoloVault::Event",
1087
- "kind": "enum",
1088
- "variants": [
1089
- {
1090
- "name": "ReentrancyGuardEvent",
1091
- "type": "openzeppelin_security::reentrancyguard::ReentrancyGuardComponent::Event",
1092
- "kind": "flat"
1093
- },
1094
- {
1095
- "name": "ERC20Event",
1096
- "type": "openzeppelin_token::erc20::erc20::ERC20Component::Event",
1097
- "kind": "flat"
1098
- },
1099
- {
1100
- "name": "SRC5Event",
1101
- "type": "openzeppelin_introspection::src5::SRC5Component::Event",
1102
- "kind": "flat"
1103
- },
1104
- {
1105
- "name": "UpgradeableEvent",
1106
- "type": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Event",
1107
- "kind": "flat"
1108
- },
1109
- {
1110
- "name": "PausableEvent",
1111
- "type": "openzeppelin_security::pausable::PausableComponent::Event",
1112
- "kind": "flat"
1113
- },
1114
- {
1115
- "name": "CommonCompEvent",
1116
- "type": "strkfarm_contracts::components::common::CommonComp::Event",
1117
- "kind": "flat"
1118
- },
1119
- {
1120
- "name": "Deposit",
1121
- "type": "contracts_private::strategies::yolo_vault::interface::Deposit",
1122
- "kind": "nested"
1123
- },
1124
- {
1125
- "name": "Redeem",
1126
- "type": "contracts_private::strategies::yolo_vault::interface::Redeem",
1127
- "kind": "nested"
1128
- },
1129
- {
1130
- "name": "SwapExecuted",
1131
- "type": "contracts_private::strategies::yolo_vault::interface::SwapExecuted",
1132
- "kind": "nested"
1133
- },
1134
- {
1135
- "name": "FeeSettingsUpdated",
1136
- "type": "contracts_private::strategies::yolo_vault::interface::FeeSettingsUpdated",
1137
- "kind": "nested"
1138
- }
1139
- ]
1140
- }
1141
- ]