@strkfarm/sdk 1.0.18 → 1.0.20

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,1594 @@
1
+ [
2
+ {
3
+ "type": "impl",
4
+ "name": "PositionsHasInterface",
5
+ "interface_name": "ekubo::components::upgradeable::IHasInterface"
6
+ },
7
+ {
8
+ "type": "interface",
9
+ "name": "ekubo::components::upgradeable::IHasInterface",
10
+ "items": [
11
+ {
12
+ "type": "function",
13
+ "name": "get_primary_interface_id",
14
+ "inputs": [],
15
+ "outputs": [
16
+ {
17
+ "type": "core::felt252"
18
+ }
19
+ ],
20
+ "state_mutability": "view"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "type": "impl",
26
+ "name": "ILockerImpl",
27
+ "interface_name": "ekubo::interfaces::core::ILocker"
28
+ },
29
+ {
30
+ "type": "struct",
31
+ "name": "core::array::Span::<core::felt252>",
32
+ "members": [
33
+ {
34
+ "name": "snapshot",
35
+ "type": "@core::array::Array::<core::felt252>"
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ "type": "interface",
41
+ "name": "ekubo::interfaces::core::ILocker",
42
+ "items": [
43
+ {
44
+ "type": "function",
45
+ "name": "locked",
46
+ "inputs": [
47
+ {
48
+ "name": "id",
49
+ "type": "core::integer::u32"
50
+ },
51
+ {
52
+ "name": "data",
53
+ "type": "core::array::Span::<core::felt252>"
54
+ }
55
+ ],
56
+ "outputs": [
57
+ {
58
+ "type": "core::array::Span::<core::felt252>"
59
+ }
60
+ ],
61
+ "state_mutability": "external"
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "type": "impl",
67
+ "name": "PositionsImpl",
68
+ "interface_name": "ekubo::interfaces::positions::IPositions"
69
+ },
70
+ {
71
+ "type": "struct",
72
+ "name": "ekubo::types::keys::PoolKey",
73
+ "members": [
74
+ {
75
+ "name": "token0",
76
+ "type": "core::starknet::contract_address::ContractAddress"
77
+ },
78
+ {
79
+ "name": "token1",
80
+ "type": "core::starknet::contract_address::ContractAddress"
81
+ },
82
+ {
83
+ "name": "fee",
84
+ "type": "core::integer::u128"
85
+ },
86
+ {
87
+ "name": "tick_spacing",
88
+ "type": "core::integer::u128"
89
+ },
90
+ {
91
+ "name": "extension",
92
+ "type": "core::starknet::contract_address::ContractAddress"
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ "type": "enum",
98
+ "name": "core::bool",
99
+ "variants": [
100
+ {
101
+ "name": "False",
102
+ "type": "()"
103
+ },
104
+ {
105
+ "name": "True",
106
+ "type": "()"
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "type": "struct",
112
+ "name": "ekubo::types::i129::i129",
113
+ "members": [
114
+ {
115
+ "name": "mag",
116
+ "type": "core::integer::u128"
117
+ },
118
+ {
119
+ "name": "sign",
120
+ "type": "core::bool"
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "type": "struct",
126
+ "name": "ekubo::types::bounds::Bounds",
127
+ "members": [
128
+ {
129
+ "name": "lower",
130
+ "type": "ekubo::types::i129::i129"
131
+ },
132
+ {
133
+ "name": "upper",
134
+ "type": "ekubo::types::i129::i129"
135
+ }
136
+ ]
137
+ },
138
+ {
139
+ "type": "struct",
140
+ "name": "ekubo::interfaces::positions::GetTokenInfoRequest",
141
+ "members": [
142
+ {
143
+ "name": "id",
144
+ "type": "core::integer::u64"
145
+ },
146
+ {
147
+ "name": "pool_key",
148
+ "type": "ekubo::types::keys::PoolKey"
149
+ },
150
+ {
151
+ "name": "bounds",
152
+ "type": "ekubo::types::bounds::Bounds"
153
+ }
154
+ ]
155
+ },
156
+ {
157
+ "type": "struct",
158
+ "name": "core::array::Span::<ekubo::interfaces::positions::GetTokenInfoRequest>",
159
+ "members": [
160
+ {
161
+ "name": "snapshot",
162
+ "type": "@core::array::Array::<ekubo::interfaces::positions::GetTokenInfoRequest>"
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ "type": "struct",
168
+ "name": "core::integer::u256",
169
+ "members": [
170
+ {
171
+ "name": "low",
172
+ "type": "core::integer::u128"
173
+ },
174
+ {
175
+ "name": "high",
176
+ "type": "core::integer::u128"
177
+ }
178
+ ]
179
+ },
180
+ {
181
+ "type": "struct",
182
+ "name": "ekubo::types::pool_price::PoolPrice",
183
+ "members": [
184
+ {
185
+ "name": "sqrt_ratio",
186
+ "type": "core::integer::u256"
187
+ },
188
+ {
189
+ "name": "tick",
190
+ "type": "ekubo::types::i129::i129"
191
+ }
192
+ ]
193
+ },
194
+ {
195
+ "type": "struct",
196
+ "name": "ekubo::interfaces::positions::GetTokenInfoResult",
197
+ "members": [
198
+ {
199
+ "name": "pool_price",
200
+ "type": "ekubo::types::pool_price::PoolPrice"
201
+ },
202
+ {
203
+ "name": "liquidity",
204
+ "type": "core::integer::u128"
205
+ },
206
+ {
207
+ "name": "amount0",
208
+ "type": "core::integer::u128"
209
+ },
210
+ {
211
+ "name": "amount1",
212
+ "type": "core::integer::u128"
213
+ },
214
+ {
215
+ "name": "fees0",
216
+ "type": "core::integer::u128"
217
+ },
218
+ {
219
+ "name": "fees1",
220
+ "type": "core::integer::u128"
221
+ }
222
+ ]
223
+ },
224
+ {
225
+ "type": "struct",
226
+ "name": "core::array::Span::<ekubo::interfaces::positions::GetTokenInfoResult>",
227
+ "members": [
228
+ {
229
+ "name": "snapshot",
230
+ "type": "@core::array::Array::<ekubo::interfaces::positions::GetTokenInfoResult>"
231
+ }
232
+ ]
233
+ },
234
+ {
235
+ "type": "struct",
236
+ "name": "ekubo::interfaces::extensions::twamm::OrderKey",
237
+ "members": [
238
+ {
239
+ "name": "sell_token",
240
+ "type": "core::starknet::contract_address::ContractAddress"
241
+ },
242
+ {
243
+ "name": "buy_token",
244
+ "type": "core::starknet::contract_address::ContractAddress"
245
+ },
246
+ {
247
+ "name": "fee",
248
+ "type": "core::integer::u128"
249
+ },
250
+ {
251
+ "name": "start_time",
252
+ "type": "core::integer::u64"
253
+ },
254
+ {
255
+ "name": "end_time",
256
+ "type": "core::integer::u64"
257
+ }
258
+ ]
259
+ },
260
+ {
261
+ "type": "struct",
262
+ "name": "core::array::Span::<(core::integer::u64, ekubo::interfaces::extensions::twamm::OrderKey)>",
263
+ "members": [
264
+ {
265
+ "name": "snapshot",
266
+ "type": "@core::array::Array::<(core::integer::u64, ekubo::interfaces::extensions::twamm::OrderKey)>"
267
+ }
268
+ ]
269
+ },
270
+ {
271
+ "type": "struct",
272
+ "name": "ekubo::interfaces::extensions::twamm::OrderInfo",
273
+ "members": [
274
+ {
275
+ "name": "sale_rate",
276
+ "type": "core::integer::u128"
277
+ },
278
+ {
279
+ "name": "remaining_sell_amount",
280
+ "type": "core::integer::u128"
281
+ },
282
+ {
283
+ "name": "purchased_amount",
284
+ "type": "core::integer::u128"
285
+ }
286
+ ]
287
+ },
288
+ {
289
+ "type": "struct",
290
+ "name": "core::array::Span::<ekubo::interfaces::extensions::twamm::OrderInfo>",
291
+ "members": [
292
+ {
293
+ "name": "snapshot",
294
+ "type": "@core::array::Array::<ekubo::interfaces::extensions::twamm::OrderInfo>"
295
+ }
296
+ ]
297
+ },
298
+ {
299
+ "type": "struct",
300
+ "name": "ekubo::interfaces::extensions::limit_orders::OrderKey",
301
+ "members": [
302
+ {
303
+ "name": "token0",
304
+ "type": "core::starknet::contract_address::ContractAddress"
305
+ },
306
+ {
307
+ "name": "token1",
308
+ "type": "core::starknet::contract_address::ContractAddress"
309
+ },
310
+ {
311
+ "name": "tick",
312
+ "type": "ekubo::types::i129::i129"
313
+ }
314
+ ]
315
+ },
316
+ {
317
+ "type": "enum",
318
+ "name": "core::option::Option::<(core::integer::u64, core::integer::u128)>",
319
+ "variants": [
320
+ {
321
+ "name": "Some",
322
+ "type": "(core::integer::u64, core::integer::u128)"
323
+ },
324
+ {
325
+ "name": "None",
326
+ "type": "()"
327
+ }
328
+ ]
329
+ },
330
+ {
331
+ "type": "struct",
332
+ "name": "core::array::Span::<(core::integer::u64, ekubo::interfaces::extensions::limit_orders::OrderKey)>",
333
+ "members": [
334
+ {
335
+ "name": "snapshot",
336
+ "type": "@core::array::Array::<(core::integer::u64, ekubo::interfaces::extensions::limit_orders::OrderKey)>"
337
+ }
338
+ ]
339
+ },
340
+ {
341
+ "type": "struct",
342
+ "name": "ekubo::interfaces::extensions::limit_orders::OrderState",
343
+ "members": [
344
+ {
345
+ "name": "initialized_ticks_crossed_snapshot",
346
+ "type": "core::integer::u64"
347
+ },
348
+ {
349
+ "name": "liquidity",
350
+ "type": "core::integer::u128"
351
+ }
352
+ ]
353
+ },
354
+ {
355
+ "type": "struct",
356
+ "name": "ekubo::interfaces::extensions::limit_orders::GetOrderInfoResult",
357
+ "members": [
358
+ {
359
+ "name": "state",
360
+ "type": "ekubo::interfaces::extensions::limit_orders::OrderState"
361
+ },
362
+ {
363
+ "name": "executed",
364
+ "type": "core::bool"
365
+ },
366
+ {
367
+ "name": "amount0",
368
+ "type": "core::integer::u128"
369
+ },
370
+ {
371
+ "name": "amount1",
372
+ "type": "core::integer::u128"
373
+ }
374
+ ]
375
+ },
376
+ {
377
+ "type": "struct",
378
+ "name": "core::array::Span::<ekubo::interfaces::extensions::limit_orders::GetOrderInfoResult>",
379
+ "members": [
380
+ {
381
+ "name": "snapshot",
382
+ "type": "@core::array::Array::<ekubo::interfaces::extensions::limit_orders::GetOrderInfoResult>"
383
+ }
384
+ ]
385
+ },
386
+ {
387
+ "type": "interface",
388
+ "name": "ekubo::interfaces::positions::IPositions",
389
+ "items": [
390
+ {
391
+ "type": "function",
392
+ "name": "get_nft_address",
393
+ "inputs": [],
394
+ "outputs": [
395
+ {
396
+ "type": "core::starknet::contract_address::ContractAddress"
397
+ }
398
+ ],
399
+ "state_mutability": "view"
400
+ },
401
+ {
402
+ "type": "function",
403
+ "name": "upgrade_nft",
404
+ "inputs": [
405
+ {
406
+ "name": "class_hash",
407
+ "type": "core::starknet::class_hash::ClassHash"
408
+ }
409
+ ],
410
+ "outputs": [],
411
+ "state_mutability": "external"
412
+ },
413
+ {
414
+ "type": "function",
415
+ "name": "set_twamm",
416
+ "inputs": [
417
+ {
418
+ "name": "twamm_address",
419
+ "type": "core::starknet::contract_address::ContractAddress"
420
+ }
421
+ ],
422
+ "outputs": [],
423
+ "state_mutability": "external"
424
+ },
425
+ {
426
+ "type": "function",
427
+ "name": "set_limit_orders",
428
+ "inputs": [
429
+ {
430
+ "name": "limit_orders_address",
431
+ "type": "core::starknet::contract_address::ContractAddress"
432
+ }
433
+ ],
434
+ "outputs": [],
435
+ "state_mutability": "external"
436
+ },
437
+ {
438
+ "type": "function",
439
+ "name": "get_twamm_address",
440
+ "inputs": [],
441
+ "outputs": [
442
+ {
443
+ "type": "core::starknet::contract_address::ContractAddress"
444
+ }
445
+ ],
446
+ "state_mutability": "view"
447
+ },
448
+ {
449
+ "type": "function",
450
+ "name": "get_limit_orders_address",
451
+ "inputs": [],
452
+ "outputs": [
453
+ {
454
+ "type": "core::starknet::contract_address::ContractAddress"
455
+ }
456
+ ],
457
+ "state_mutability": "view"
458
+ },
459
+ {
460
+ "type": "function",
461
+ "name": "get_tokens_info",
462
+ "inputs": [
463
+ {
464
+ "name": "params",
465
+ "type": "core::array::Span::<ekubo::interfaces::positions::GetTokenInfoRequest>"
466
+ }
467
+ ],
468
+ "outputs": [
469
+ {
470
+ "type": "core::array::Span::<ekubo::interfaces::positions::GetTokenInfoResult>"
471
+ }
472
+ ],
473
+ "state_mutability": "view"
474
+ },
475
+ {
476
+ "type": "function",
477
+ "name": "get_token_info",
478
+ "inputs": [
479
+ {
480
+ "name": "id",
481
+ "type": "core::integer::u64"
482
+ },
483
+ {
484
+ "name": "pool_key",
485
+ "type": "ekubo::types::keys::PoolKey"
486
+ },
487
+ {
488
+ "name": "bounds",
489
+ "type": "ekubo::types::bounds::Bounds"
490
+ }
491
+ ],
492
+ "outputs": [
493
+ {
494
+ "type": "ekubo::interfaces::positions::GetTokenInfoResult"
495
+ }
496
+ ],
497
+ "state_mutability": "view"
498
+ },
499
+ {
500
+ "type": "function",
501
+ "name": "get_orders_info_with_block_timestamp",
502
+ "inputs": [
503
+ {
504
+ "name": "params",
505
+ "type": "core::array::Span::<(core::integer::u64, ekubo::interfaces::extensions::twamm::OrderKey)>"
506
+ }
507
+ ],
508
+ "outputs": [
509
+ {
510
+ "type": "(core::integer::u64, core::array::Span::<ekubo::interfaces::extensions::twamm::OrderInfo>)"
511
+ }
512
+ ],
513
+ "state_mutability": "view"
514
+ },
515
+ {
516
+ "type": "function",
517
+ "name": "get_orders_info",
518
+ "inputs": [
519
+ {
520
+ "name": "params",
521
+ "type": "core::array::Span::<(core::integer::u64, ekubo::interfaces::extensions::twamm::OrderKey)>"
522
+ }
523
+ ],
524
+ "outputs": [
525
+ {
526
+ "type": "core::array::Span::<ekubo::interfaces::extensions::twamm::OrderInfo>"
527
+ }
528
+ ],
529
+ "state_mutability": "view"
530
+ },
531
+ {
532
+ "type": "function",
533
+ "name": "get_order_info",
534
+ "inputs": [
535
+ {
536
+ "name": "id",
537
+ "type": "core::integer::u64"
538
+ },
539
+ {
540
+ "name": "order_key",
541
+ "type": "ekubo::interfaces::extensions::twamm::OrderKey"
542
+ }
543
+ ],
544
+ "outputs": [
545
+ {
546
+ "type": "ekubo::interfaces::extensions::twamm::OrderInfo"
547
+ }
548
+ ],
549
+ "state_mutability": "view"
550
+ },
551
+ {
552
+ "type": "function",
553
+ "name": "mint",
554
+ "inputs": [
555
+ {
556
+ "name": "pool_key",
557
+ "type": "ekubo::types::keys::PoolKey"
558
+ },
559
+ {
560
+ "name": "bounds",
561
+ "type": "ekubo::types::bounds::Bounds"
562
+ }
563
+ ],
564
+ "outputs": [
565
+ {
566
+ "type": "core::integer::u64"
567
+ }
568
+ ],
569
+ "state_mutability": "external"
570
+ },
571
+ {
572
+ "type": "function",
573
+ "name": "mint_with_referrer",
574
+ "inputs": [
575
+ {
576
+ "name": "pool_key",
577
+ "type": "ekubo::types::keys::PoolKey"
578
+ },
579
+ {
580
+ "name": "bounds",
581
+ "type": "ekubo::types::bounds::Bounds"
582
+ },
583
+ {
584
+ "name": "referrer",
585
+ "type": "core::starknet::contract_address::ContractAddress"
586
+ }
587
+ ],
588
+ "outputs": [
589
+ {
590
+ "type": "core::integer::u64"
591
+ }
592
+ ],
593
+ "state_mutability": "external"
594
+ },
595
+ {
596
+ "type": "function",
597
+ "name": "mint_v2",
598
+ "inputs": [
599
+ {
600
+ "name": "referrer",
601
+ "type": "core::starknet::contract_address::ContractAddress"
602
+ }
603
+ ],
604
+ "outputs": [
605
+ {
606
+ "type": "core::integer::u64"
607
+ }
608
+ ],
609
+ "state_mutability": "external"
610
+ },
611
+ {
612
+ "type": "function",
613
+ "name": "check_liquidity_is_zero",
614
+ "inputs": [
615
+ {
616
+ "name": "id",
617
+ "type": "core::integer::u64"
618
+ },
619
+ {
620
+ "name": "pool_key",
621
+ "type": "ekubo::types::keys::PoolKey"
622
+ },
623
+ {
624
+ "name": "bounds",
625
+ "type": "ekubo::types::bounds::Bounds"
626
+ }
627
+ ],
628
+ "outputs": [],
629
+ "state_mutability": "view"
630
+ },
631
+ {
632
+ "type": "function",
633
+ "name": "unsafe_burn",
634
+ "inputs": [
635
+ {
636
+ "name": "id",
637
+ "type": "core::integer::u64"
638
+ }
639
+ ],
640
+ "outputs": [],
641
+ "state_mutability": "external"
642
+ },
643
+ {
644
+ "type": "function",
645
+ "name": "deposit_last",
646
+ "inputs": [
647
+ {
648
+ "name": "pool_key",
649
+ "type": "ekubo::types::keys::PoolKey"
650
+ },
651
+ {
652
+ "name": "bounds",
653
+ "type": "ekubo::types::bounds::Bounds"
654
+ },
655
+ {
656
+ "name": "min_liquidity",
657
+ "type": "core::integer::u128"
658
+ }
659
+ ],
660
+ "outputs": [
661
+ {
662
+ "type": "core::integer::u128"
663
+ }
664
+ ],
665
+ "state_mutability": "external"
666
+ },
667
+ {
668
+ "type": "function",
669
+ "name": "deposit_amounts_last",
670
+ "inputs": [
671
+ {
672
+ "name": "pool_key",
673
+ "type": "ekubo::types::keys::PoolKey"
674
+ },
675
+ {
676
+ "name": "bounds",
677
+ "type": "ekubo::types::bounds::Bounds"
678
+ },
679
+ {
680
+ "name": "amount0",
681
+ "type": "core::integer::u128"
682
+ },
683
+ {
684
+ "name": "amount1",
685
+ "type": "core::integer::u128"
686
+ },
687
+ {
688
+ "name": "min_liquidity",
689
+ "type": "core::integer::u128"
690
+ }
691
+ ],
692
+ "outputs": [
693
+ {
694
+ "type": "core::integer::u128"
695
+ }
696
+ ],
697
+ "state_mutability": "external"
698
+ },
699
+ {
700
+ "type": "function",
701
+ "name": "deposit",
702
+ "inputs": [
703
+ {
704
+ "name": "id",
705
+ "type": "core::integer::u64"
706
+ },
707
+ {
708
+ "name": "pool_key",
709
+ "type": "ekubo::types::keys::PoolKey"
710
+ },
711
+ {
712
+ "name": "bounds",
713
+ "type": "ekubo::types::bounds::Bounds"
714
+ },
715
+ {
716
+ "name": "min_liquidity",
717
+ "type": "core::integer::u128"
718
+ }
719
+ ],
720
+ "outputs": [
721
+ {
722
+ "type": "core::integer::u128"
723
+ }
724
+ ],
725
+ "state_mutability": "external"
726
+ },
727
+ {
728
+ "type": "function",
729
+ "name": "deposit_amounts",
730
+ "inputs": [
731
+ {
732
+ "name": "id",
733
+ "type": "core::integer::u64"
734
+ },
735
+ {
736
+ "name": "pool_key",
737
+ "type": "ekubo::types::keys::PoolKey"
738
+ },
739
+ {
740
+ "name": "bounds",
741
+ "type": "ekubo::types::bounds::Bounds"
742
+ },
743
+ {
744
+ "name": "amount0",
745
+ "type": "core::integer::u128"
746
+ },
747
+ {
748
+ "name": "amount1",
749
+ "type": "core::integer::u128"
750
+ },
751
+ {
752
+ "name": "min_liquidity",
753
+ "type": "core::integer::u128"
754
+ }
755
+ ],
756
+ "outputs": [
757
+ {
758
+ "type": "core::integer::u128"
759
+ }
760
+ ],
761
+ "state_mutability": "external"
762
+ },
763
+ {
764
+ "type": "function",
765
+ "name": "mint_and_deposit",
766
+ "inputs": [
767
+ {
768
+ "name": "pool_key",
769
+ "type": "ekubo::types::keys::PoolKey"
770
+ },
771
+ {
772
+ "name": "bounds",
773
+ "type": "ekubo::types::bounds::Bounds"
774
+ },
775
+ {
776
+ "name": "min_liquidity",
777
+ "type": "core::integer::u128"
778
+ }
779
+ ],
780
+ "outputs": [
781
+ {
782
+ "type": "(core::integer::u64, core::integer::u128)"
783
+ }
784
+ ],
785
+ "state_mutability": "external"
786
+ },
787
+ {
788
+ "type": "function",
789
+ "name": "mint_and_deposit_with_referrer",
790
+ "inputs": [
791
+ {
792
+ "name": "pool_key",
793
+ "type": "ekubo::types::keys::PoolKey"
794
+ },
795
+ {
796
+ "name": "bounds",
797
+ "type": "ekubo::types::bounds::Bounds"
798
+ },
799
+ {
800
+ "name": "min_liquidity",
801
+ "type": "core::integer::u128"
802
+ },
803
+ {
804
+ "name": "referrer",
805
+ "type": "core::starknet::contract_address::ContractAddress"
806
+ }
807
+ ],
808
+ "outputs": [
809
+ {
810
+ "type": "(core::integer::u64, core::integer::u128)"
811
+ }
812
+ ],
813
+ "state_mutability": "external"
814
+ },
815
+ {
816
+ "type": "function",
817
+ "name": "mint_and_deposit_and_clear_both",
818
+ "inputs": [
819
+ {
820
+ "name": "pool_key",
821
+ "type": "ekubo::types::keys::PoolKey"
822
+ },
823
+ {
824
+ "name": "bounds",
825
+ "type": "ekubo::types::bounds::Bounds"
826
+ },
827
+ {
828
+ "name": "min_liquidity",
829
+ "type": "core::integer::u128"
830
+ }
831
+ ],
832
+ "outputs": [
833
+ {
834
+ "type": "(core::integer::u64, core::integer::u128, core::integer::u256, core::integer::u256)"
835
+ }
836
+ ],
837
+ "state_mutability": "external"
838
+ },
839
+ {
840
+ "type": "function",
841
+ "name": "collect_fees",
842
+ "inputs": [
843
+ {
844
+ "name": "id",
845
+ "type": "core::integer::u64"
846
+ },
847
+ {
848
+ "name": "pool_key",
849
+ "type": "ekubo::types::keys::PoolKey"
850
+ },
851
+ {
852
+ "name": "bounds",
853
+ "type": "ekubo::types::bounds::Bounds"
854
+ }
855
+ ],
856
+ "outputs": [
857
+ {
858
+ "type": "(core::integer::u128, core::integer::u128)"
859
+ }
860
+ ],
861
+ "state_mutability": "external"
862
+ },
863
+ {
864
+ "type": "function",
865
+ "name": "withdraw",
866
+ "inputs": [
867
+ {
868
+ "name": "id",
869
+ "type": "core::integer::u64"
870
+ },
871
+ {
872
+ "name": "pool_key",
873
+ "type": "ekubo::types::keys::PoolKey"
874
+ },
875
+ {
876
+ "name": "bounds",
877
+ "type": "ekubo::types::bounds::Bounds"
878
+ },
879
+ {
880
+ "name": "liquidity",
881
+ "type": "core::integer::u128"
882
+ },
883
+ {
884
+ "name": "min_token0",
885
+ "type": "core::integer::u128"
886
+ },
887
+ {
888
+ "name": "min_token1",
889
+ "type": "core::integer::u128"
890
+ },
891
+ {
892
+ "name": "collect_fees",
893
+ "type": "core::bool"
894
+ }
895
+ ],
896
+ "outputs": [
897
+ {
898
+ "type": "(core::integer::u128, core::integer::u128)"
899
+ }
900
+ ],
901
+ "state_mutability": "external"
902
+ },
903
+ {
904
+ "type": "function",
905
+ "name": "withdraw_v2",
906
+ "inputs": [
907
+ {
908
+ "name": "id",
909
+ "type": "core::integer::u64"
910
+ },
911
+ {
912
+ "name": "pool_key",
913
+ "type": "ekubo::types::keys::PoolKey"
914
+ },
915
+ {
916
+ "name": "bounds",
917
+ "type": "ekubo::types::bounds::Bounds"
918
+ },
919
+ {
920
+ "name": "liquidity",
921
+ "type": "core::integer::u128"
922
+ },
923
+ {
924
+ "name": "min_token0",
925
+ "type": "core::integer::u128"
926
+ },
927
+ {
928
+ "name": "min_token1",
929
+ "type": "core::integer::u128"
930
+ }
931
+ ],
932
+ "outputs": [
933
+ {
934
+ "type": "(core::integer::u128, core::integer::u128)"
935
+ }
936
+ ],
937
+ "state_mutability": "external"
938
+ },
939
+ {
940
+ "type": "function",
941
+ "name": "get_pool_price",
942
+ "inputs": [
943
+ {
944
+ "name": "pool_key",
945
+ "type": "ekubo::types::keys::PoolKey"
946
+ }
947
+ ],
948
+ "outputs": [
949
+ {
950
+ "type": "ekubo::types::pool_price::PoolPrice"
951
+ }
952
+ ],
953
+ "state_mutability": "view"
954
+ },
955
+ {
956
+ "type": "function",
957
+ "name": "mint_and_increase_sell_amount",
958
+ "inputs": [
959
+ {
960
+ "name": "order_key",
961
+ "type": "ekubo::interfaces::extensions::twamm::OrderKey"
962
+ },
963
+ {
964
+ "name": "amount",
965
+ "type": "core::integer::u128"
966
+ }
967
+ ],
968
+ "outputs": [
969
+ {
970
+ "type": "(core::integer::u64, core::integer::u128)"
971
+ }
972
+ ],
973
+ "state_mutability": "external"
974
+ },
975
+ {
976
+ "type": "function",
977
+ "name": "increase_sell_amount_last",
978
+ "inputs": [
979
+ {
980
+ "name": "order_key",
981
+ "type": "ekubo::interfaces::extensions::twamm::OrderKey"
982
+ },
983
+ {
984
+ "name": "amount",
985
+ "type": "core::integer::u128"
986
+ }
987
+ ],
988
+ "outputs": [
989
+ {
990
+ "type": "core::integer::u128"
991
+ }
992
+ ],
993
+ "state_mutability": "external"
994
+ },
995
+ {
996
+ "type": "function",
997
+ "name": "increase_sell_amount",
998
+ "inputs": [
999
+ {
1000
+ "name": "id",
1001
+ "type": "core::integer::u64"
1002
+ },
1003
+ {
1004
+ "name": "order_key",
1005
+ "type": "ekubo::interfaces::extensions::twamm::OrderKey"
1006
+ },
1007
+ {
1008
+ "name": "amount",
1009
+ "type": "core::integer::u128"
1010
+ }
1011
+ ],
1012
+ "outputs": [
1013
+ {
1014
+ "type": "core::integer::u128"
1015
+ }
1016
+ ],
1017
+ "state_mutability": "external"
1018
+ },
1019
+ {
1020
+ "type": "function",
1021
+ "name": "decrease_sale_rate_to",
1022
+ "inputs": [
1023
+ {
1024
+ "name": "id",
1025
+ "type": "core::integer::u64"
1026
+ },
1027
+ {
1028
+ "name": "order_key",
1029
+ "type": "ekubo::interfaces::extensions::twamm::OrderKey"
1030
+ },
1031
+ {
1032
+ "name": "sale_rate_delta",
1033
+ "type": "core::integer::u128"
1034
+ },
1035
+ {
1036
+ "name": "recipient",
1037
+ "type": "core::starknet::contract_address::ContractAddress"
1038
+ }
1039
+ ],
1040
+ "outputs": [
1041
+ {
1042
+ "type": "core::integer::u128"
1043
+ }
1044
+ ],
1045
+ "state_mutability": "external"
1046
+ },
1047
+ {
1048
+ "type": "function",
1049
+ "name": "decrease_sale_rate_to_self",
1050
+ "inputs": [
1051
+ {
1052
+ "name": "id",
1053
+ "type": "core::integer::u64"
1054
+ },
1055
+ {
1056
+ "name": "order_key",
1057
+ "type": "ekubo::interfaces::extensions::twamm::OrderKey"
1058
+ },
1059
+ {
1060
+ "name": "sale_rate_delta",
1061
+ "type": "core::integer::u128"
1062
+ }
1063
+ ],
1064
+ "outputs": [
1065
+ {
1066
+ "type": "core::integer::u128"
1067
+ }
1068
+ ],
1069
+ "state_mutability": "external"
1070
+ },
1071
+ {
1072
+ "type": "function",
1073
+ "name": "withdraw_proceeds_from_sale_to_self",
1074
+ "inputs": [
1075
+ {
1076
+ "name": "id",
1077
+ "type": "core::integer::u64"
1078
+ },
1079
+ {
1080
+ "name": "order_key",
1081
+ "type": "ekubo::interfaces::extensions::twamm::OrderKey"
1082
+ }
1083
+ ],
1084
+ "outputs": [
1085
+ {
1086
+ "type": "core::integer::u128"
1087
+ }
1088
+ ],
1089
+ "state_mutability": "external"
1090
+ },
1091
+ {
1092
+ "type": "function",
1093
+ "name": "withdraw_proceeds_from_sale_to",
1094
+ "inputs": [
1095
+ {
1096
+ "name": "id",
1097
+ "type": "core::integer::u64"
1098
+ },
1099
+ {
1100
+ "name": "order_key",
1101
+ "type": "ekubo::interfaces::extensions::twamm::OrderKey"
1102
+ },
1103
+ {
1104
+ "name": "recipient",
1105
+ "type": "core::starknet::contract_address::ContractAddress"
1106
+ }
1107
+ ],
1108
+ "outputs": [
1109
+ {
1110
+ "type": "core::integer::u128"
1111
+ }
1112
+ ],
1113
+ "state_mutability": "external"
1114
+ },
1115
+ {
1116
+ "type": "function",
1117
+ "name": "swap_to_limit_order_price",
1118
+ "inputs": [
1119
+ {
1120
+ "name": "order_key",
1121
+ "type": "ekubo::interfaces::extensions::limit_orders::OrderKey"
1122
+ },
1123
+ {
1124
+ "name": "amount",
1125
+ "type": "core::integer::u128"
1126
+ },
1127
+ {
1128
+ "name": "recipient",
1129
+ "type": "core::starknet::contract_address::ContractAddress"
1130
+ }
1131
+ ],
1132
+ "outputs": [
1133
+ {
1134
+ "type": "(core::integer::u128, core::integer::u128)"
1135
+ }
1136
+ ],
1137
+ "state_mutability": "external"
1138
+ },
1139
+ {
1140
+ "type": "function",
1141
+ "name": "swap_to_limit_order_price_and_maybe_mint_and_place_limit_order_to",
1142
+ "inputs": [
1143
+ {
1144
+ "name": "order_key",
1145
+ "type": "ekubo::interfaces::extensions::limit_orders::OrderKey"
1146
+ },
1147
+ {
1148
+ "name": "amount",
1149
+ "type": "core::integer::u128"
1150
+ },
1151
+ {
1152
+ "name": "recipient",
1153
+ "type": "core::starknet::contract_address::ContractAddress"
1154
+ }
1155
+ ],
1156
+ "outputs": [
1157
+ {
1158
+ "type": "(core::integer::u128, core::integer::u128, core::option::Option::<(core::integer::u64, core::integer::u128)>)"
1159
+ }
1160
+ ],
1161
+ "state_mutability": "external"
1162
+ },
1163
+ {
1164
+ "type": "function",
1165
+ "name": "swap_to_limit_order_price_and_maybe_mint_and_place_limit_order",
1166
+ "inputs": [
1167
+ {
1168
+ "name": "order_key",
1169
+ "type": "ekubo::interfaces::extensions::limit_orders::OrderKey"
1170
+ },
1171
+ {
1172
+ "name": "amount",
1173
+ "type": "core::integer::u128"
1174
+ }
1175
+ ],
1176
+ "outputs": [
1177
+ {
1178
+ "type": "(core::integer::u128, core::integer::u128, core::option::Option::<(core::integer::u64, core::integer::u128)>)"
1179
+ }
1180
+ ],
1181
+ "state_mutability": "external"
1182
+ },
1183
+ {
1184
+ "type": "function",
1185
+ "name": "place_limit_order",
1186
+ "inputs": [
1187
+ {
1188
+ "name": "id",
1189
+ "type": "core::integer::u64"
1190
+ },
1191
+ {
1192
+ "name": "order_key",
1193
+ "type": "ekubo::interfaces::extensions::limit_orders::OrderKey"
1194
+ },
1195
+ {
1196
+ "name": "amount",
1197
+ "type": "core::integer::u128"
1198
+ }
1199
+ ],
1200
+ "outputs": [
1201
+ {
1202
+ "type": "core::integer::u128"
1203
+ }
1204
+ ],
1205
+ "state_mutability": "external"
1206
+ },
1207
+ {
1208
+ "type": "function",
1209
+ "name": "maybe_mint_and_place_limit_order",
1210
+ "inputs": [
1211
+ {
1212
+ "name": "order_key",
1213
+ "type": "ekubo::interfaces::extensions::limit_orders::OrderKey"
1214
+ },
1215
+ {
1216
+ "name": "amount",
1217
+ "type": "core::integer::u128"
1218
+ }
1219
+ ],
1220
+ "outputs": [
1221
+ {
1222
+ "type": "core::option::Option::<(core::integer::u64, core::integer::u128)>"
1223
+ }
1224
+ ],
1225
+ "state_mutability": "external"
1226
+ },
1227
+ {
1228
+ "type": "function",
1229
+ "name": "mint_and_place_limit_order",
1230
+ "inputs": [
1231
+ {
1232
+ "name": "order_key",
1233
+ "type": "ekubo::interfaces::extensions::limit_orders::OrderKey"
1234
+ },
1235
+ {
1236
+ "name": "amount",
1237
+ "type": "core::integer::u128"
1238
+ }
1239
+ ],
1240
+ "outputs": [
1241
+ {
1242
+ "type": "(core::integer::u64, core::integer::u128)"
1243
+ }
1244
+ ],
1245
+ "state_mutability": "external"
1246
+ },
1247
+ {
1248
+ "type": "function",
1249
+ "name": "close_limit_order",
1250
+ "inputs": [
1251
+ {
1252
+ "name": "id",
1253
+ "type": "core::integer::u64"
1254
+ },
1255
+ {
1256
+ "name": "order_key",
1257
+ "type": "ekubo::interfaces::extensions::limit_orders::OrderKey"
1258
+ }
1259
+ ],
1260
+ "outputs": [
1261
+ {
1262
+ "type": "(core::integer::u128, core::integer::u128)"
1263
+ }
1264
+ ],
1265
+ "state_mutability": "external"
1266
+ },
1267
+ {
1268
+ "type": "function",
1269
+ "name": "close_limit_order_to",
1270
+ "inputs": [
1271
+ {
1272
+ "name": "id",
1273
+ "type": "core::integer::u64"
1274
+ },
1275
+ {
1276
+ "name": "order_key",
1277
+ "type": "ekubo::interfaces::extensions::limit_orders::OrderKey"
1278
+ },
1279
+ {
1280
+ "name": "recipient",
1281
+ "type": "core::starknet::contract_address::ContractAddress"
1282
+ }
1283
+ ],
1284
+ "outputs": [
1285
+ {
1286
+ "type": "(core::integer::u128, core::integer::u128)"
1287
+ }
1288
+ ],
1289
+ "state_mutability": "external"
1290
+ },
1291
+ {
1292
+ "type": "function",
1293
+ "name": "get_limit_orders_info",
1294
+ "inputs": [
1295
+ {
1296
+ "name": "params",
1297
+ "type": "core::array::Span::<(core::integer::u64, ekubo::interfaces::extensions::limit_orders::OrderKey)>"
1298
+ }
1299
+ ],
1300
+ "outputs": [
1301
+ {
1302
+ "type": "core::array::Span::<ekubo::interfaces::extensions::limit_orders::GetOrderInfoResult>"
1303
+ }
1304
+ ],
1305
+ "state_mutability": "view"
1306
+ }
1307
+ ]
1308
+ },
1309
+ {
1310
+ "type": "impl",
1311
+ "name": "Owned",
1312
+ "interface_name": "ekubo::components::owned::IOwned"
1313
+ },
1314
+ {
1315
+ "type": "interface",
1316
+ "name": "ekubo::components::owned::IOwned",
1317
+ "items": [
1318
+ {
1319
+ "type": "function",
1320
+ "name": "get_owner",
1321
+ "inputs": [],
1322
+ "outputs": [
1323
+ {
1324
+ "type": "core::starknet::contract_address::ContractAddress"
1325
+ }
1326
+ ],
1327
+ "state_mutability": "view"
1328
+ },
1329
+ {
1330
+ "type": "function",
1331
+ "name": "transfer_ownership",
1332
+ "inputs": [
1333
+ {
1334
+ "name": "new_owner",
1335
+ "type": "core::starknet::contract_address::ContractAddress"
1336
+ }
1337
+ ],
1338
+ "outputs": [],
1339
+ "state_mutability": "external"
1340
+ }
1341
+ ]
1342
+ },
1343
+ {
1344
+ "type": "impl",
1345
+ "name": "Upgradeable",
1346
+ "interface_name": "ekubo::interfaces::upgradeable::IUpgradeable"
1347
+ },
1348
+ {
1349
+ "type": "interface",
1350
+ "name": "ekubo::interfaces::upgradeable::IUpgradeable",
1351
+ "items": [
1352
+ {
1353
+ "type": "function",
1354
+ "name": "replace_class_hash",
1355
+ "inputs": [
1356
+ {
1357
+ "name": "class_hash",
1358
+ "type": "core::starknet::class_hash::ClassHash"
1359
+ }
1360
+ ],
1361
+ "outputs": [],
1362
+ "state_mutability": "external"
1363
+ }
1364
+ ]
1365
+ },
1366
+ {
1367
+ "type": "impl",
1368
+ "name": "Clear",
1369
+ "interface_name": "ekubo::components::clear::IClear"
1370
+ },
1371
+ {
1372
+ "type": "struct",
1373
+ "name": "ekubo::interfaces::erc20::IERC20Dispatcher",
1374
+ "members": [
1375
+ {
1376
+ "name": "contract_address",
1377
+ "type": "core::starknet::contract_address::ContractAddress"
1378
+ }
1379
+ ]
1380
+ },
1381
+ {
1382
+ "type": "interface",
1383
+ "name": "ekubo::components::clear::IClear",
1384
+ "items": [
1385
+ {
1386
+ "type": "function",
1387
+ "name": "clear",
1388
+ "inputs": [
1389
+ {
1390
+ "name": "token",
1391
+ "type": "ekubo::interfaces::erc20::IERC20Dispatcher"
1392
+ }
1393
+ ],
1394
+ "outputs": [
1395
+ {
1396
+ "type": "core::integer::u256"
1397
+ }
1398
+ ],
1399
+ "state_mutability": "view"
1400
+ },
1401
+ {
1402
+ "type": "function",
1403
+ "name": "clear_minimum",
1404
+ "inputs": [
1405
+ {
1406
+ "name": "token",
1407
+ "type": "ekubo::interfaces::erc20::IERC20Dispatcher"
1408
+ },
1409
+ {
1410
+ "name": "minimum",
1411
+ "type": "core::integer::u256"
1412
+ }
1413
+ ],
1414
+ "outputs": [
1415
+ {
1416
+ "type": "core::integer::u256"
1417
+ }
1418
+ ],
1419
+ "state_mutability": "view"
1420
+ },
1421
+ {
1422
+ "type": "function",
1423
+ "name": "clear_minimum_to_recipient",
1424
+ "inputs": [
1425
+ {
1426
+ "name": "token",
1427
+ "type": "ekubo::interfaces::erc20::IERC20Dispatcher"
1428
+ },
1429
+ {
1430
+ "name": "minimum",
1431
+ "type": "core::integer::u256"
1432
+ },
1433
+ {
1434
+ "name": "recipient",
1435
+ "type": "core::starknet::contract_address::ContractAddress"
1436
+ }
1437
+ ],
1438
+ "outputs": [
1439
+ {
1440
+ "type": "core::integer::u256"
1441
+ }
1442
+ ],
1443
+ "state_mutability": "view"
1444
+ }
1445
+ ]
1446
+ },
1447
+ {
1448
+ "type": "impl",
1449
+ "name": "Expires",
1450
+ "interface_name": "ekubo::components::expires::IExpires"
1451
+ },
1452
+ {
1453
+ "type": "interface",
1454
+ "name": "ekubo::components::expires::IExpires",
1455
+ "items": [
1456
+ {
1457
+ "type": "function",
1458
+ "name": "expires",
1459
+ "inputs": [
1460
+ {
1461
+ "name": "at",
1462
+ "type": "core::integer::u64"
1463
+ }
1464
+ ],
1465
+ "outputs": [],
1466
+ "state_mutability": "view"
1467
+ }
1468
+ ]
1469
+ },
1470
+ {
1471
+ "type": "struct",
1472
+ "name": "ekubo::interfaces::core::ICoreDispatcher",
1473
+ "members": [
1474
+ {
1475
+ "name": "contract_address",
1476
+ "type": "core::starknet::contract_address::ContractAddress"
1477
+ }
1478
+ ]
1479
+ },
1480
+ {
1481
+ "type": "constructor",
1482
+ "name": "constructor",
1483
+ "inputs": [
1484
+ {
1485
+ "name": "owner",
1486
+ "type": "core::starknet::contract_address::ContractAddress"
1487
+ },
1488
+ {
1489
+ "name": "core",
1490
+ "type": "ekubo::interfaces::core::ICoreDispatcher"
1491
+ },
1492
+ {
1493
+ "name": "nft_class_hash",
1494
+ "type": "core::starknet::class_hash::ClassHash"
1495
+ },
1496
+ {
1497
+ "name": "token_uri_base",
1498
+ "type": "core::felt252"
1499
+ }
1500
+ ]
1501
+ },
1502
+ {
1503
+ "type": "event",
1504
+ "name": "ekubo::components::upgradeable::Upgradeable::ClassHashReplaced",
1505
+ "kind": "struct",
1506
+ "members": [
1507
+ {
1508
+ "name": "new_class_hash",
1509
+ "type": "core::starknet::class_hash::ClassHash",
1510
+ "kind": "data"
1511
+ }
1512
+ ]
1513
+ },
1514
+ {
1515
+ "type": "event",
1516
+ "name": "ekubo::components::upgradeable::Upgradeable::Event",
1517
+ "kind": "enum",
1518
+ "variants": [
1519
+ {
1520
+ "name": "ClassHashReplaced",
1521
+ "type": "ekubo::components::upgradeable::Upgradeable::ClassHashReplaced",
1522
+ "kind": "nested"
1523
+ }
1524
+ ]
1525
+ },
1526
+ {
1527
+ "type": "event",
1528
+ "name": "ekubo::components::owned::Owned::OwnershipTransferred",
1529
+ "kind": "struct",
1530
+ "members": [
1531
+ {
1532
+ "name": "old_owner",
1533
+ "type": "core::starknet::contract_address::ContractAddress",
1534
+ "kind": "data"
1535
+ },
1536
+ {
1537
+ "name": "new_owner",
1538
+ "type": "core::starknet::contract_address::ContractAddress",
1539
+ "kind": "data"
1540
+ }
1541
+ ]
1542
+ },
1543
+ {
1544
+ "type": "event",
1545
+ "name": "ekubo::components::owned::Owned::Event",
1546
+ "kind": "enum",
1547
+ "variants": [
1548
+ {
1549
+ "name": "OwnershipTransferred",
1550
+ "type": "ekubo::components::owned::Owned::OwnershipTransferred",
1551
+ "kind": "nested"
1552
+ }
1553
+ ]
1554
+ },
1555
+ {
1556
+ "type": "event",
1557
+ "name": "ekubo::positions::Positions::PositionMintedWithReferrer",
1558
+ "kind": "struct",
1559
+ "members": [
1560
+ {
1561
+ "name": "id",
1562
+ "type": "core::integer::u64",
1563
+ "kind": "data"
1564
+ },
1565
+ {
1566
+ "name": "referrer",
1567
+ "type": "core::starknet::contract_address::ContractAddress",
1568
+ "kind": "data"
1569
+ }
1570
+ ]
1571
+ },
1572
+ {
1573
+ "type": "event",
1574
+ "name": "ekubo::positions::Positions::Event",
1575
+ "kind": "enum",
1576
+ "variants": [
1577
+ {
1578
+ "name": "UpgradeableEvent",
1579
+ "type": "ekubo::components::upgradeable::Upgradeable::Event",
1580
+ "kind": "flat"
1581
+ },
1582
+ {
1583
+ "name": "OwnedEvent",
1584
+ "type": "ekubo::components::owned::Owned::Event",
1585
+ "kind": "nested"
1586
+ },
1587
+ {
1588
+ "name": "PositionMintedWithReferrer",
1589
+ "type": "ekubo::positions::Positions::PositionMintedWithReferrer",
1590
+ "kind": "nested"
1591
+ }
1592
+ ]
1593
+ }
1594
+ ]