@kasarlabs/vesu-mcp 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/build/index.js +86 -6
  2. package/build/index.js.map +1 -1
  3. package/build/interfaces/index.d.ts +661 -8
  4. package/build/interfaces/index.js +57 -1
  5. package/build/interfaces/index.js.map +1 -1
  6. package/build/lib/abis/ekuboCore.d.ts +92 -0
  7. package/build/lib/abis/ekuboCore.js +1341 -0
  8. package/build/lib/abis/ekuboCore.js.map +1 -0
  9. package/build/lib/abis/multiplyAbi.d.ts +245 -0
  10. package/build/lib/abis/multiplyAbi.js +341 -0
  11. package/build/lib/abis/multiplyAbi.js.map +1 -0
  12. package/build/lib/abis/poolAbi.d.ts +289 -0
  13. package/build/lib/abis/poolAbi.js +402 -0
  14. package/build/lib/abis/poolAbi.js.map +1 -0
  15. package/build/lib/abis/routerAbi.d.ts +88 -0
  16. package/build/lib/abis/routerAbi.js +86 -0
  17. package/build/lib/abis/routerAbi.js.map +1 -0
  18. package/build/lib/constants/index.d.ts +9 -3
  19. package/build/lib/constants/index.js +8 -3
  20. package/build/lib/constants/index.js.map +1 -1
  21. package/build/lib/utils/contracts.d.ts +535 -89
  22. package/build/lib/utils/contracts.js +39 -5
  23. package/build/lib/utils/contracts.js.map +1 -1
  24. package/build/lib/utils/ekubo.d.ts +55 -0
  25. package/build/lib/utils/ekubo.js +81 -0
  26. package/build/lib/utils/ekubo.js.map +1 -0
  27. package/build/lib/utils/getEkuboQuote.d.ts +4 -0
  28. package/build/lib/utils/getEkuboQuote.js +116 -0
  29. package/build/lib/utils/getEkuboQuote.js.map +1 -0
  30. package/build/lib/utils/math.d.ts +8 -0
  31. package/build/lib/utils/math.js +22 -0
  32. package/build/lib/utils/math.js.map +1 -0
  33. package/build/lib/utils/multiplyCalls.d.ts +10 -0
  34. package/build/lib/utils/multiplyCalls.js +248 -0
  35. package/build/lib/utils/multiplyCalls.js.map +1 -0
  36. package/build/lib/utils/pools.d.ts +8 -0
  37. package/build/lib/utils/pools.js +72 -0
  38. package/build/lib/utils/pools.js.map +1 -0
  39. package/build/lib/utils/tokens.d.ts +6 -0
  40. package/build/lib/utils/tokens.js +23 -0
  41. package/build/lib/utils/tokens.js.map +1 -0
  42. package/build/schemas/index.d.ts +176 -0
  43. package/build/schemas/index.js +201 -1
  44. package/build/schemas/index.js.map +1 -1
  45. package/build/tools/read/getPools.d.ts +3 -0
  46. package/build/tools/read/getPools.js +57 -0
  47. package/build/tools/read/getPools.js.map +1 -0
  48. package/build/tools/read/getPositions.d.ts +3 -0
  49. package/build/tools/read/getPositions.js +43 -0
  50. package/build/tools/read/getPositions.js.map +1 -0
  51. package/build/tools/read/getTokens.d.ts +3 -0
  52. package/build/tools/read/getTokens.js +50 -0
  53. package/build/tools/read/getTokens.js.map +1 -0
  54. package/build/tools/write/deposit_borrow.d.ts +10 -0
  55. package/build/tools/write/deposit_borrow.js +312 -0
  56. package/build/tools/write/deposit_borrow.js.map +1 -0
  57. package/build/tools/write/deposit_earn.d.ts +10 -0
  58. package/build/tools/write/deposit_earn.js +82 -0
  59. package/build/tools/write/deposit_earn.js.map +1 -0
  60. package/build/tools/write/deposit_multiply.d.ts +10 -0
  61. package/build/tools/write/deposit_multiply.js +140 -0
  62. package/build/tools/write/deposit_multiply.js.map +1 -0
  63. package/build/tools/write/repay_borrow.d.ts +10 -0
  64. package/build/tools/write/repay_borrow.js +358 -0
  65. package/build/tools/write/repay_borrow.js.map +1 -0
  66. package/build/tools/write/update_multiply.d.ts +10 -0
  67. package/build/tools/write/update_multiply.js +264 -0
  68. package/build/tools/write/update_multiply.js.map +1 -0
  69. package/build/tools/write/withdraw_earn.d.ts +10 -0
  70. package/build/tools/write/withdraw_earn.js +116 -0
  71. package/build/tools/write/withdraw_earn.js.map +1 -0
  72. package/build/tools/write/withdraw_multiply.d.ts +9 -0
  73. package/build/tools/write/withdraw_multiply.js +187 -0
  74. package/build/tools/write/withdraw_multiply.js.map +1 -0
  75. package/package.json +6 -5
  76. package/build/lib/abis/erc20Abi.d.ts +0 -89
  77. package/build/lib/abis/erc20Abi.js +0 -128
  78. package/build/lib/abis/erc20Abi.js.map +0 -1
  79. package/build/tools/depositService.d.ts +0 -19
  80. package/build/tools/depositService.js +0 -117
  81. package/build/tools/depositService.js.map +0 -1
  82. package/build/tools/withdrawService.d.ts +0 -20
  83. package/build/tools/withdrawService.js +0 -122
  84. package/build/tools/withdrawService.js.map +0 -1
@@ -0,0 +1,1341 @@
1
+ export const EKUBO_CORE_ABI = [
2
+ {
3
+ type: 'impl',
4
+ name: 'CoreHasInterface',
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: 'Core',
27
+ interface_name: 'ekubo::interfaces::core::ICore',
28
+ },
29
+ {
30
+ type: 'struct',
31
+ name: 'ekubo::interfaces::core::LockerState',
32
+ members: [
33
+ {
34
+ name: 'address',
35
+ type: 'core::starknet::contract_address::ContractAddress',
36
+ },
37
+ {
38
+ name: 'nonzero_delta_count',
39
+ type: 'core::integer::u32',
40
+ },
41
+ ],
42
+ },
43
+ {
44
+ type: 'enum',
45
+ name: 'core::bool',
46
+ variants: [
47
+ {
48
+ name: 'False',
49
+ type: '()',
50
+ },
51
+ {
52
+ name: 'True',
53
+ type: '()',
54
+ },
55
+ ],
56
+ },
57
+ {
58
+ type: 'struct',
59
+ name: 'ekubo::types::i129::i129',
60
+ members: [
61
+ {
62
+ name: 'mag',
63
+ type: 'core::integer::u128',
64
+ },
65
+ {
66
+ name: 'sign',
67
+ type: 'core::bool',
68
+ },
69
+ ],
70
+ },
71
+ {
72
+ type: 'struct',
73
+ name: 'ekubo::types::keys::PoolKey',
74
+ members: [
75
+ {
76
+ name: 'token0',
77
+ type: 'core::starknet::contract_address::ContractAddress',
78
+ },
79
+ {
80
+ name: 'token1',
81
+ type: 'core::starknet::contract_address::ContractAddress',
82
+ },
83
+ {
84
+ name: 'fee',
85
+ type: 'core::integer::u128',
86
+ },
87
+ {
88
+ name: 'tick_spacing',
89
+ type: 'core::integer::u128',
90
+ },
91
+ {
92
+ name: 'extension',
93
+ type: 'core::starknet::contract_address::ContractAddress',
94
+ },
95
+ ],
96
+ },
97
+ {
98
+ type: 'struct',
99
+ name: 'core::integer::u256',
100
+ members: [
101
+ {
102
+ name: 'low',
103
+ type: 'core::integer::u128',
104
+ },
105
+ {
106
+ name: 'high',
107
+ type: 'core::integer::u128',
108
+ },
109
+ ],
110
+ },
111
+ {
112
+ type: 'struct',
113
+ name: 'ekubo::types::pool_price::PoolPrice',
114
+ members: [
115
+ {
116
+ name: 'sqrt_ratio',
117
+ type: 'core::integer::u256',
118
+ },
119
+ {
120
+ name: 'tick',
121
+ type: 'ekubo::types::i129::i129',
122
+ },
123
+ ],
124
+ },
125
+ {
126
+ type: 'struct',
127
+ name: 'ekubo::types::fees_per_liquidity::FeesPerLiquidity',
128
+ members: [
129
+ {
130
+ name: 'value0',
131
+ type: 'core::felt252',
132
+ },
133
+ {
134
+ name: 'value1',
135
+ type: 'core::felt252',
136
+ },
137
+ ],
138
+ },
139
+ {
140
+ type: 'struct',
141
+ name: 'ekubo::types::bounds::Bounds',
142
+ members: [
143
+ {
144
+ name: 'lower',
145
+ type: 'ekubo::types::i129::i129',
146
+ },
147
+ {
148
+ name: 'upper',
149
+ type: 'ekubo::types::i129::i129',
150
+ },
151
+ ],
152
+ },
153
+ {
154
+ type: 'struct',
155
+ name: 'ekubo::types::keys::PositionKey',
156
+ members: [
157
+ {
158
+ name: 'salt',
159
+ type: 'core::felt252',
160
+ },
161
+ {
162
+ name: 'owner',
163
+ type: 'core::starknet::contract_address::ContractAddress',
164
+ },
165
+ {
166
+ name: 'bounds',
167
+ type: 'ekubo::types::bounds::Bounds',
168
+ },
169
+ ],
170
+ },
171
+ {
172
+ type: 'struct',
173
+ name: 'ekubo::types::position::Position',
174
+ members: [
175
+ {
176
+ name: 'liquidity',
177
+ type: 'core::integer::u128',
178
+ },
179
+ {
180
+ name: 'fees_per_liquidity_inside_last',
181
+ type: 'ekubo::types::fees_per_liquidity::FeesPerLiquidity',
182
+ },
183
+ ],
184
+ },
185
+ {
186
+ type: 'struct',
187
+ name: 'ekubo::interfaces::core::GetPositionWithFeesResult',
188
+ members: [
189
+ {
190
+ name: 'position',
191
+ type: 'ekubo::types::position::Position',
192
+ },
193
+ {
194
+ name: 'fees0',
195
+ type: 'core::integer::u128',
196
+ },
197
+ {
198
+ name: 'fees1',
199
+ type: 'core::integer::u128',
200
+ },
201
+ {
202
+ name: 'fees_per_liquidity_inside_current',
203
+ type: 'ekubo::types::fees_per_liquidity::FeesPerLiquidity',
204
+ },
205
+ ],
206
+ },
207
+ {
208
+ type: 'struct',
209
+ name: 'ekubo::types::keys::SavedBalanceKey',
210
+ members: [
211
+ {
212
+ name: 'owner',
213
+ type: 'core::starknet::contract_address::ContractAddress',
214
+ },
215
+ {
216
+ name: 'token',
217
+ type: 'core::starknet::contract_address::ContractAddress',
218
+ },
219
+ {
220
+ name: 'salt',
221
+ type: 'core::felt252',
222
+ },
223
+ ],
224
+ },
225
+ {
226
+ type: 'struct',
227
+ name: 'core::array::Span::<core::felt252>',
228
+ members: [
229
+ {
230
+ name: 'snapshot',
231
+ type: '@core::array::Array::<core::felt252>',
232
+ },
233
+ ],
234
+ },
235
+ {
236
+ type: 'struct',
237
+ name: 'ekubo::interfaces::core::IForwardeeDispatcher',
238
+ members: [
239
+ {
240
+ name: 'contract_address',
241
+ type: 'core::starknet::contract_address::ContractAddress',
242
+ },
243
+ ],
244
+ },
245
+ {
246
+ type: 'enum',
247
+ name: 'core::option::Option::<core::integer::u256>',
248
+ variants: [
249
+ {
250
+ name: 'Some',
251
+ type: 'core::integer::u256',
252
+ },
253
+ {
254
+ name: 'None',
255
+ type: '()',
256
+ },
257
+ ],
258
+ },
259
+ {
260
+ type: 'struct',
261
+ name: 'ekubo::interfaces::core::UpdatePositionParameters',
262
+ members: [
263
+ {
264
+ name: 'salt',
265
+ type: 'core::felt252',
266
+ },
267
+ {
268
+ name: 'bounds',
269
+ type: 'ekubo::types::bounds::Bounds',
270
+ },
271
+ {
272
+ name: 'liquidity_delta',
273
+ type: 'ekubo::types::i129::i129',
274
+ },
275
+ ],
276
+ },
277
+ {
278
+ type: 'struct',
279
+ name: 'ekubo::types::delta::Delta',
280
+ members: [
281
+ {
282
+ name: 'amount0',
283
+ type: 'ekubo::types::i129::i129',
284
+ },
285
+ {
286
+ name: 'amount1',
287
+ type: 'ekubo::types::i129::i129',
288
+ },
289
+ ],
290
+ },
291
+ {
292
+ type: 'struct',
293
+ name: 'ekubo::interfaces::core::SwapParameters',
294
+ members: [
295
+ {
296
+ name: 'amount',
297
+ type: 'ekubo::types::i129::i129',
298
+ },
299
+ {
300
+ name: 'is_token1',
301
+ type: 'core::bool',
302
+ },
303
+ {
304
+ name: 'sqrt_ratio_limit',
305
+ type: 'core::integer::u256',
306
+ },
307
+ {
308
+ name: 'skip_ahead',
309
+ type: 'core::integer::u128',
310
+ },
311
+ ],
312
+ },
313
+ {
314
+ type: 'struct',
315
+ name: 'ekubo::types::call_points::CallPoints',
316
+ members: [
317
+ {
318
+ name: 'before_initialize_pool',
319
+ type: 'core::bool',
320
+ },
321
+ {
322
+ name: 'after_initialize_pool',
323
+ type: 'core::bool',
324
+ },
325
+ {
326
+ name: 'before_swap',
327
+ type: 'core::bool',
328
+ },
329
+ {
330
+ name: 'after_swap',
331
+ type: 'core::bool',
332
+ },
333
+ {
334
+ name: 'before_update_position',
335
+ type: 'core::bool',
336
+ },
337
+ {
338
+ name: 'after_update_position',
339
+ type: 'core::bool',
340
+ },
341
+ {
342
+ name: 'before_collect_fees',
343
+ type: 'core::bool',
344
+ },
345
+ {
346
+ name: 'after_collect_fees',
347
+ type: 'core::bool',
348
+ },
349
+ ],
350
+ },
351
+ {
352
+ type: 'interface',
353
+ name: 'ekubo::interfaces::core::ICore',
354
+ items: [
355
+ {
356
+ type: 'function',
357
+ name: 'get_protocol_fees_collected',
358
+ inputs: [
359
+ {
360
+ name: 'token',
361
+ type: 'core::starknet::contract_address::ContractAddress',
362
+ },
363
+ ],
364
+ outputs: [
365
+ {
366
+ type: 'core::integer::u128',
367
+ },
368
+ ],
369
+ state_mutability: 'view',
370
+ },
371
+ {
372
+ type: 'function',
373
+ name: 'get_locker_state',
374
+ inputs: [
375
+ {
376
+ name: 'id',
377
+ type: 'core::integer::u32',
378
+ },
379
+ ],
380
+ outputs: [
381
+ {
382
+ type: 'ekubo::interfaces::core::LockerState',
383
+ },
384
+ ],
385
+ state_mutability: 'view',
386
+ },
387
+ {
388
+ type: 'function',
389
+ name: 'get_locker_delta',
390
+ inputs: [
391
+ {
392
+ name: 'id',
393
+ type: 'core::integer::u32',
394
+ },
395
+ {
396
+ name: 'token_address',
397
+ type: 'core::starknet::contract_address::ContractAddress',
398
+ },
399
+ ],
400
+ outputs: [
401
+ {
402
+ type: 'ekubo::types::i129::i129',
403
+ },
404
+ ],
405
+ state_mutability: 'view',
406
+ },
407
+ {
408
+ type: 'function',
409
+ name: 'get_pool_price',
410
+ inputs: [
411
+ {
412
+ name: 'pool_key',
413
+ type: 'ekubo::types::keys::PoolKey',
414
+ },
415
+ ],
416
+ outputs: [
417
+ {
418
+ type: 'ekubo::types::pool_price::PoolPrice',
419
+ },
420
+ ],
421
+ state_mutability: 'view',
422
+ },
423
+ {
424
+ type: 'function',
425
+ name: 'get_pool_liquidity',
426
+ inputs: [
427
+ {
428
+ name: 'pool_key',
429
+ type: 'ekubo::types::keys::PoolKey',
430
+ },
431
+ ],
432
+ outputs: [
433
+ {
434
+ type: 'core::integer::u128',
435
+ },
436
+ ],
437
+ state_mutability: 'view',
438
+ },
439
+ {
440
+ type: 'function',
441
+ name: 'get_pool_fees_per_liquidity',
442
+ inputs: [
443
+ {
444
+ name: 'pool_key',
445
+ type: 'ekubo::types::keys::PoolKey',
446
+ },
447
+ ],
448
+ outputs: [
449
+ {
450
+ type: 'ekubo::types::fees_per_liquidity::FeesPerLiquidity',
451
+ },
452
+ ],
453
+ state_mutability: 'view',
454
+ },
455
+ {
456
+ type: 'function',
457
+ name: 'get_pool_fees_per_liquidity_inside',
458
+ inputs: [
459
+ {
460
+ name: 'pool_key',
461
+ type: 'ekubo::types::keys::PoolKey',
462
+ },
463
+ {
464
+ name: 'bounds',
465
+ type: 'ekubo::types::bounds::Bounds',
466
+ },
467
+ ],
468
+ outputs: [
469
+ {
470
+ type: 'ekubo::types::fees_per_liquidity::FeesPerLiquidity',
471
+ },
472
+ ],
473
+ state_mutability: 'view',
474
+ },
475
+ {
476
+ type: 'function',
477
+ name: 'get_pool_tick_liquidity_delta',
478
+ inputs: [
479
+ {
480
+ name: 'pool_key',
481
+ type: 'ekubo::types::keys::PoolKey',
482
+ },
483
+ {
484
+ name: 'index',
485
+ type: 'ekubo::types::i129::i129',
486
+ },
487
+ ],
488
+ outputs: [
489
+ {
490
+ type: 'ekubo::types::i129::i129',
491
+ },
492
+ ],
493
+ state_mutability: 'view',
494
+ },
495
+ {
496
+ type: 'function',
497
+ name: 'get_pool_tick_liquidity_net',
498
+ inputs: [
499
+ {
500
+ name: 'pool_key',
501
+ type: 'ekubo::types::keys::PoolKey',
502
+ },
503
+ {
504
+ name: 'index',
505
+ type: 'ekubo::types::i129::i129',
506
+ },
507
+ ],
508
+ outputs: [
509
+ {
510
+ type: 'core::integer::u128',
511
+ },
512
+ ],
513
+ state_mutability: 'view',
514
+ },
515
+ {
516
+ type: 'function',
517
+ name: 'get_pool_tick_fees_outside',
518
+ inputs: [
519
+ {
520
+ name: 'pool_key',
521
+ type: 'ekubo::types::keys::PoolKey',
522
+ },
523
+ {
524
+ name: 'index',
525
+ type: 'ekubo::types::i129::i129',
526
+ },
527
+ ],
528
+ outputs: [
529
+ {
530
+ type: 'ekubo::types::fees_per_liquidity::FeesPerLiquidity',
531
+ },
532
+ ],
533
+ state_mutability: 'view',
534
+ },
535
+ {
536
+ type: 'function',
537
+ name: 'get_position',
538
+ inputs: [
539
+ {
540
+ name: 'pool_key',
541
+ type: 'ekubo::types::keys::PoolKey',
542
+ },
543
+ {
544
+ name: 'position_key',
545
+ type: 'ekubo::types::keys::PositionKey',
546
+ },
547
+ ],
548
+ outputs: [
549
+ {
550
+ type: 'ekubo::types::position::Position',
551
+ },
552
+ ],
553
+ state_mutability: 'view',
554
+ },
555
+ {
556
+ type: 'function',
557
+ name: 'get_position_with_fees',
558
+ inputs: [
559
+ {
560
+ name: 'pool_key',
561
+ type: 'ekubo::types::keys::PoolKey',
562
+ },
563
+ {
564
+ name: 'position_key',
565
+ type: 'ekubo::types::keys::PositionKey',
566
+ },
567
+ ],
568
+ outputs: [
569
+ {
570
+ type: 'ekubo::interfaces::core::GetPositionWithFeesResult',
571
+ },
572
+ ],
573
+ state_mutability: 'view',
574
+ },
575
+ {
576
+ type: 'function',
577
+ name: 'get_saved_balance',
578
+ inputs: [
579
+ {
580
+ name: 'key',
581
+ type: 'ekubo::types::keys::SavedBalanceKey',
582
+ },
583
+ ],
584
+ outputs: [
585
+ {
586
+ type: 'core::integer::u128',
587
+ },
588
+ ],
589
+ state_mutability: 'view',
590
+ },
591
+ {
592
+ type: 'function',
593
+ name: 'next_initialized_tick',
594
+ inputs: [
595
+ {
596
+ name: 'pool_key',
597
+ type: 'ekubo::types::keys::PoolKey',
598
+ },
599
+ {
600
+ name: 'from',
601
+ type: 'ekubo::types::i129::i129',
602
+ },
603
+ {
604
+ name: 'skip_ahead',
605
+ type: 'core::integer::u128',
606
+ },
607
+ ],
608
+ outputs: [
609
+ {
610
+ type: '(ekubo::types::i129::i129, core::bool)',
611
+ },
612
+ ],
613
+ state_mutability: 'view',
614
+ },
615
+ {
616
+ type: 'function',
617
+ name: 'prev_initialized_tick',
618
+ inputs: [
619
+ {
620
+ name: 'pool_key',
621
+ type: 'ekubo::types::keys::PoolKey',
622
+ },
623
+ {
624
+ name: 'from',
625
+ type: 'ekubo::types::i129::i129',
626
+ },
627
+ {
628
+ name: 'skip_ahead',
629
+ type: 'core::integer::u128',
630
+ },
631
+ ],
632
+ outputs: [
633
+ {
634
+ type: '(ekubo::types::i129::i129, core::bool)',
635
+ },
636
+ ],
637
+ state_mutability: 'view',
638
+ },
639
+ {
640
+ type: 'function',
641
+ name: 'withdraw_all_protocol_fees',
642
+ inputs: [
643
+ {
644
+ name: 'recipient',
645
+ type: 'core::starknet::contract_address::ContractAddress',
646
+ },
647
+ {
648
+ name: 'token',
649
+ type: 'core::starknet::contract_address::ContractAddress',
650
+ },
651
+ ],
652
+ outputs: [
653
+ {
654
+ type: 'core::integer::u128',
655
+ },
656
+ ],
657
+ state_mutability: 'external',
658
+ },
659
+ {
660
+ type: 'function',
661
+ name: 'withdraw_protocol_fees',
662
+ inputs: [
663
+ {
664
+ name: 'recipient',
665
+ type: 'core::starknet::contract_address::ContractAddress',
666
+ },
667
+ {
668
+ name: 'token',
669
+ type: 'core::starknet::contract_address::ContractAddress',
670
+ },
671
+ {
672
+ name: 'amount',
673
+ type: 'core::integer::u128',
674
+ },
675
+ ],
676
+ outputs: [],
677
+ state_mutability: 'external',
678
+ },
679
+ {
680
+ type: 'function',
681
+ name: 'lock',
682
+ inputs: [
683
+ {
684
+ name: 'data',
685
+ type: 'core::array::Span::<core::felt252>',
686
+ },
687
+ ],
688
+ outputs: [
689
+ {
690
+ type: 'core::array::Span::<core::felt252>',
691
+ },
692
+ ],
693
+ state_mutability: 'external',
694
+ },
695
+ {
696
+ type: 'function',
697
+ name: 'forward',
698
+ inputs: [
699
+ {
700
+ name: 'to',
701
+ type: 'ekubo::interfaces::core::IForwardeeDispatcher',
702
+ },
703
+ {
704
+ name: 'data',
705
+ type: 'core::array::Span::<core::felt252>',
706
+ },
707
+ ],
708
+ outputs: [
709
+ {
710
+ type: 'core::array::Span::<core::felt252>',
711
+ },
712
+ ],
713
+ state_mutability: 'external',
714
+ },
715
+ {
716
+ type: 'function',
717
+ name: 'withdraw',
718
+ inputs: [
719
+ {
720
+ name: 'token_address',
721
+ type: 'core::starknet::contract_address::ContractAddress',
722
+ },
723
+ {
724
+ name: 'recipient',
725
+ type: 'core::starknet::contract_address::ContractAddress',
726
+ },
727
+ {
728
+ name: 'amount',
729
+ type: 'core::integer::u128',
730
+ },
731
+ ],
732
+ outputs: [],
733
+ state_mutability: 'external',
734
+ },
735
+ {
736
+ type: 'function',
737
+ name: 'save',
738
+ inputs: [
739
+ {
740
+ name: 'key',
741
+ type: 'ekubo::types::keys::SavedBalanceKey',
742
+ },
743
+ {
744
+ name: 'amount',
745
+ type: 'core::integer::u128',
746
+ },
747
+ ],
748
+ outputs: [
749
+ {
750
+ type: 'core::integer::u128',
751
+ },
752
+ ],
753
+ state_mutability: 'external',
754
+ },
755
+ {
756
+ type: 'function',
757
+ name: 'pay',
758
+ inputs: [
759
+ {
760
+ name: 'token_address',
761
+ type: 'core::starknet::contract_address::ContractAddress',
762
+ },
763
+ ],
764
+ outputs: [],
765
+ state_mutability: 'external',
766
+ },
767
+ {
768
+ type: 'function',
769
+ name: 'load',
770
+ inputs: [
771
+ {
772
+ name: 'token',
773
+ type: 'core::starknet::contract_address::ContractAddress',
774
+ },
775
+ {
776
+ name: 'salt',
777
+ type: 'core::felt252',
778
+ },
779
+ {
780
+ name: 'amount',
781
+ type: 'core::integer::u128',
782
+ },
783
+ ],
784
+ outputs: [
785
+ {
786
+ type: 'core::integer::u128',
787
+ },
788
+ ],
789
+ state_mutability: 'external',
790
+ },
791
+ {
792
+ type: 'function',
793
+ name: 'initialize_pool',
794
+ inputs: [
795
+ {
796
+ name: 'pool_key',
797
+ type: 'ekubo::types::keys::PoolKey',
798
+ },
799
+ {
800
+ name: 'initial_tick',
801
+ type: 'ekubo::types::i129::i129',
802
+ },
803
+ ],
804
+ outputs: [
805
+ {
806
+ type: 'core::integer::u256',
807
+ },
808
+ ],
809
+ state_mutability: 'external',
810
+ },
811
+ {
812
+ type: 'function',
813
+ name: 'maybe_initialize_pool',
814
+ inputs: [
815
+ {
816
+ name: 'pool_key',
817
+ type: 'ekubo::types::keys::PoolKey',
818
+ },
819
+ {
820
+ name: 'initial_tick',
821
+ type: 'ekubo::types::i129::i129',
822
+ },
823
+ ],
824
+ outputs: [
825
+ {
826
+ type: 'core::option::Option::<core::integer::u256>',
827
+ },
828
+ ],
829
+ state_mutability: 'external',
830
+ },
831
+ {
832
+ type: 'function',
833
+ name: 'update_position',
834
+ inputs: [
835
+ {
836
+ name: 'pool_key',
837
+ type: 'ekubo::types::keys::PoolKey',
838
+ },
839
+ {
840
+ name: 'params',
841
+ type: 'ekubo::interfaces::core::UpdatePositionParameters',
842
+ },
843
+ ],
844
+ outputs: [
845
+ {
846
+ type: 'ekubo::types::delta::Delta',
847
+ },
848
+ ],
849
+ state_mutability: 'external',
850
+ },
851
+ {
852
+ type: 'function',
853
+ name: 'collect_fees',
854
+ inputs: [
855
+ {
856
+ name: 'pool_key',
857
+ type: 'ekubo::types::keys::PoolKey',
858
+ },
859
+ {
860
+ name: 'salt',
861
+ type: 'core::felt252',
862
+ },
863
+ {
864
+ name: 'bounds',
865
+ type: 'ekubo::types::bounds::Bounds',
866
+ },
867
+ ],
868
+ outputs: [
869
+ {
870
+ type: 'ekubo::types::delta::Delta',
871
+ },
872
+ ],
873
+ state_mutability: 'external',
874
+ },
875
+ {
876
+ type: 'function',
877
+ name: 'swap',
878
+ inputs: [
879
+ {
880
+ name: 'pool_key',
881
+ type: 'ekubo::types::keys::PoolKey',
882
+ },
883
+ {
884
+ name: 'params',
885
+ type: 'ekubo::interfaces::core::SwapParameters',
886
+ },
887
+ ],
888
+ outputs: [
889
+ {
890
+ type: 'ekubo::types::delta::Delta',
891
+ },
892
+ ],
893
+ state_mutability: 'external',
894
+ },
895
+ {
896
+ type: 'function',
897
+ name: 'accumulate_as_fees',
898
+ inputs: [
899
+ {
900
+ name: 'pool_key',
901
+ type: 'ekubo::types::keys::PoolKey',
902
+ },
903
+ {
904
+ name: 'amount0',
905
+ type: 'core::integer::u128',
906
+ },
907
+ {
908
+ name: 'amount1',
909
+ type: 'core::integer::u128',
910
+ },
911
+ ],
912
+ outputs: [],
913
+ state_mutability: 'external',
914
+ },
915
+ {
916
+ type: 'function',
917
+ name: 'set_call_points',
918
+ inputs: [
919
+ {
920
+ name: 'call_points',
921
+ type: 'ekubo::types::call_points::CallPoints',
922
+ },
923
+ ],
924
+ outputs: [],
925
+ state_mutability: 'external',
926
+ },
927
+ {
928
+ type: 'function',
929
+ name: 'get_call_points',
930
+ inputs: [
931
+ {
932
+ name: 'extension',
933
+ type: 'core::starknet::contract_address::ContractAddress',
934
+ },
935
+ ],
936
+ outputs: [
937
+ {
938
+ type: 'ekubo::types::call_points::CallPoints',
939
+ },
940
+ ],
941
+ state_mutability: 'view',
942
+ },
943
+ ],
944
+ },
945
+ {
946
+ type: 'impl',
947
+ name: 'Owned',
948
+ interface_name: 'ekubo::components::owned::IOwned',
949
+ },
950
+ {
951
+ type: 'interface',
952
+ name: 'ekubo::components::owned::IOwned',
953
+ items: [
954
+ {
955
+ type: 'function',
956
+ name: 'get_owner',
957
+ inputs: [],
958
+ outputs: [
959
+ {
960
+ type: 'core::starknet::contract_address::ContractAddress',
961
+ },
962
+ ],
963
+ state_mutability: 'view',
964
+ },
965
+ {
966
+ type: 'function',
967
+ name: 'transfer_ownership',
968
+ inputs: [
969
+ {
970
+ name: 'new_owner',
971
+ type: 'core::starknet::contract_address::ContractAddress',
972
+ },
973
+ ],
974
+ outputs: [],
975
+ state_mutability: 'external',
976
+ },
977
+ ],
978
+ },
979
+ {
980
+ type: 'impl',
981
+ name: 'Upgradeable',
982
+ interface_name: 'ekubo::interfaces::upgradeable::IUpgradeable',
983
+ },
984
+ {
985
+ type: 'interface',
986
+ name: 'ekubo::interfaces::upgradeable::IUpgradeable',
987
+ items: [
988
+ {
989
+ type: 'function',
990
+ name: 'replace_class_hash',
991
+ inputs: [
992
+ {
993
+ name: 'class_hash',
994
+ type: 'core::starknet::class_hash::ClassHash',
995
+ },
996
+ ],
997
+ outputs: [],
998
+ state_mutability: 'external',
999
+ },
1000
+ ],
1001
+ },
1002
+ {
1003
+ type: 'constructor',
1004
+ name: 'constructor',
1005
+ inputs: [
1006
+ {
1007
+ name: 'owner',
1008
+ type: 'core::starknet::contract_address::ContractAddress',
1009
+ },
1010
+ ],
1011
+ },
1012
+ {
1013
+ type: 'event',
1014
+ name: 'ekubo::components::upgradeable::Upgradeable::ClassHashReplaced',
1015
+ kind: 'struct',
1016
+ members: [
1017
+ {
1018
+ name: 'new_class_hash',
1019
+ type: 'core::starknet::class_hash::ClassHash',
1020
+ kind: 'data',
1021
+ },
1022
+ ],
1023
+ },
1024
+ {
1025
+ type: 'event',
1026
+ name: 'ekubo::components::upgradeable::Upgradeable::Event',
1027
+ kind: 'enum',
1028
+ variants: [
1029
+ {
1030
+ name: 'ClassHashReplaced',
1031
+ type: 'ekubo::components::upgradeable::Upgradeable::ClassHashReplaced',
1032
+ kind: 'nested',
1033
+ },
1034
+ ],
1035
+ },
1036
+ {
1037
+ type: 'event',
1038
+ name: 'ekubo::components::owned::Owned::OwnershipTransferred',
1039
+ kind: 'struct',
1040
+ members: [
1041
+ {
1042
+ name: 'old_owner',
1043
+ type: 'core::starknet::contract_address::ContractAddress',
1044
+ kind: 'data',
1045
+ },
1046
+ {
1047
+ name: 'new_owner',
1048
+ type: 'core::starknet::contract_address::ContractAddress',
1049
+ kind: 'data',
1050
+ },
1051
+ ],
1052
+ },
1053
+ {
1054
+ type: 'event',
1055
+ name: 'ekubo::components::owned::Owned::Event',
1056
+ kind: 'enum',
1057
+ variants: [
1058
+ {
1059
+ name: 'OwnershipTransferred',
1060
+ type: 'ekubo::components::owned::Owned::OwnershipTransferred',
1061
+ kind: 'nested',
1062
+ },
1063
+ ],
1064
+ },
1065
+ {
1066
+ type: 'event',
1067
+ name: 'ekubo::core::Core::ProtocolFeesPaid',
1068
+ kind: 'struct',
1069
+ members: [
1070
+ {
1071
+ name: 'pool_key',
1072
+ type: 'ekubo::types::keys::PoolKey',
1073
+ kind: 'data',
1074
+ },
1075
+ {
1076
+ name: 'position_key',
1077
+ type: 'ekubo::types::keys::PositionKey',
1078
+ kind: 'data',
1079
+ },
1080
+ {
1081
+ name: 'delta',
1082
+ type: 'ekubo::types::delta::Delta',
1083
+ kind: 'data',
1084
+ },
1085
+ ],
1086
+ },
1087
+ {
1088
+ type: 'event',
1089
+ name: 'ekubo::core::Core::ProtocolFeesWithdrawn',
1090
+ kind: 'struct',
1091
+ members: [
1092
+ {
1093
+ name: 'recipient',
1094
+ type: 'core::starknet::contract_address::ContractAddress',
1095
+ kind: 'data',
1096
+ },
1097
+ {
1098
+ name: 'token',
1099
+ type: 'core::starknet::contract_address::ContractAddress',
1100
+ kind: 'data',
1101
+ },
1102
+ {
1103
+ name: 'amount',
1104
+ type: 'core::integer::u128',
1105
+ kind: 'data',
1106
+ },
1107
+ ],
1108
+ },
1109
+ {
1110
+ type: 'event',
1111
+ name: 'ekubo::core::Core::PoolInitialized',
1112
+ kind: 'struct',
1113
+ members: [
1114
+ {
1115
+ name: 'pool_key',
1116
+ type: 'ekubo::types::keys::PoolKey',
1117
+ kind: 'data',
1118
+ },
1119
+ {
1120
+ name: 'initial_tick',
1121
+ type: 'ekubo::types::i129::i129',
1122
+ kind: 'data',
1123
+ },
1124
+ {
1125
+ name: 'sqrt_ratio',
1126
+ type: 'core::integer::u256',
1127
+ kind: 'data',
1128
+ },
1129
+ ],
1130
+ },
1131
+ {
1132
+ type: 'event',
1133
+ name: 'ekubo::core::Core::PositionUpdated',
1134
+ kind: 'struct',
1135
+ members: [
1136
+ {
1137
+ name: 'locker',
1138
+ type: 'core::starknet::contract_address::ContractAddress',
1139
+ kind: 'data',
1140
+ },
1141
+ {
1142
+ name: 'pool_key',
1143
+ type: 'ekubo::types::keys::PoolKey',
1144
+ kind: 'data',
1145
+ },
1146
+ {
1147
+ name: 'params',
1148
+ type: 'ekubo::interfaces::core::UpdatePositionParameters',
1149
+ kind: 'data',
1150
+ },
1151
+ {
1152
+ name: 'delta',
1153
+ type: 'ekubo::types::delta::Delta',
1154
+ kind: 'data',
1155
+ },
1156
+ ],
1157
+ },
1158
+ {
1159
+ type: 'event',
1160
+ name: 'ekubo::core::Core::PositionFeesCollected',
1161
+ kind: 'struct',
1162
+ members: [
1163
+ {
1164
+ name: 'pool_key',
1165
+ type: 'ekubo::types::keys::PoolKey',
1166
+ kind: 'data',
1167
+ },
1168
+ {
1169
+ name: 'position_key',
1170
+ type: 'ekubo::types::keys::PositionKey',
1171
+ kind: 'data',
1172
+ },
1173
+ {
1174
+ name: 'delta',
1175
+ type: 'ekubo::types::delta::Delta',
1176
+ kind: 'data',
1177
+ },
1178
+ ],
1179
+ },
1180
+ {
1181
+ type: 'event',
1182
+ name: 'ekubo::core::Core::Swapped',
1183
+ kind: 'struct',
1184
+ members: [
1185
+ {
1186
+ name: 'locker',
1187
+ type: 'core::starknet::contract_address::ContractAddress',
1188
+ kind: 'data',
1189
+ },
1190
+ {
1191
+ name: 'pool_key',
1192
+ type: 'ekubo::types::keys::PoolKey',
1193
+ kind: 'data',
1194
+ },
1195
+ {
1196
+ name: 'params',
1197
+ type: 'ekubo::interfaces::core::SwapParameters',
1198
+ kind: 'data',
1199
+ },
1200
+ {
1201
+ name: 'delta',
1202
+ type: 'ekubo::types::delta::Delta',
1203
+ kind: 'data',
1204
+ },
1205
+ {
1206
+ name: 'sqrt_ratio_after',
1207
+ type: 'core::integer::u256',
1208
+ kind: 'data',
1209
+ },
1210
+ {
1211
+ name: 'tick_after',
1212
+ type: 'ekubo::types::i129::i129',
1213
+ kind: 'data',
1214
+ },
1215
+ {
1216
+ name: 'liquidity_after',
1217
+ type: 'core::integer::u128',
1218
+ kind: 'data',
1219
+ },
1220
+ ],
1221
+ },
1222
+ {
1223
+ type: 'event',
1224
+ name: 'ekubo::core::Core::SavedBalance',
1225
+ kind: 'struct',
1226
+ members: [
1227
+ {
1228
+ name: 'key',
1229
+ type: 'ekubo::types::keys::SavedBalanceKey',
1230
+ kind: 'data',
1231
+ },
1232
+ {
1233
+ name: 'amount',
1234
+ type: 'core::integer::u128',
1235
+ kind: 'data',
1236
+ },
1237
+ ],
1238
+ },
1239
+ {
1240
+ type: 'event',
1241
+ name: 'ekubo::core::Core::LoadedBalance',
1242
+ kind: 'struct',
1243
+ members: [
1244
+ {
1245
+ name: 'key',
1246
+ type: 'ekubo::types::keys::SavedBalanceKey',
1247
+ kind: 'data',
1248
+ },
1249
+ {
1250
+ name: 'amount',
1251
+ type: 'core::integer::u128',
1252
+ kind: 'data',
1253
+ },
1254
+ ],
1255
+ },
1256
+ {
1257
+ type: 'event',
1258
+ name: 'ekubo::core::Core::FeesAccumulated',
1259
+ kind: 'struct',
1260
+ members: [
1261
+ {
1262
+ name: 'pool_key',
1263
+ type: 'ekubo::types::keys::PoolKey',
1264
+ kind: 'data',
1265
+ },
1266
+ {
1267
+ name: 'amount0',
1268
+ type: 'core::integer::u128',
1269
+ kind: 'data',
1270
+ },
1271
+ {
1272
+ name: 'amount1',
1273
+ type: 'core::integer::u128',
1274
+ kind: 'data',
1275
+ },
1276
+ ],
1277
+ },
1278
+ {
1279
+ type: 'event',
1280
+ name: 'ekubo::core::Core::Event',
1281
+ kind: 'enum',
1282
+ variants: [
1283
+ {
1284
+ name: 'UpgradeableEvent',
1285
+ type: 'ekubo::components::upgradeable::Upgradeable::Event',
1286
+ kind: 'flat',
1287
+ },
1288
+ {
1289
+ name: 'OwnedEvent',
1290
+ type: 'ekubo::components::owned::Owned::Event',
1291
+ kind: 'nested',
1292
+ },
1293
+ {
1294
+ name: 'ProtocolFeesPaid',
1295
+ type: 'ekubo::core::Core::ProtocolFeesPaid',
1296
+ kind: 'nested',
1297
+ },
1298
+ {
1299
+ name: 'ProtocolFeesWithdrawn',
1300
+ type: 'ekubo::core::Core::ProtocolFeesWithdrawn',
1301
+ kind: 'nested',
1302
+ },
1303
+ {
1304
+ name: 'PoolInitialized',
1305
+ type: 'ekubo::core::Core::PoolInitialized',
1306
+ kind: 'nested',
1307
+ },
1308
+ {
1309
+ name: 'PositionUpdated',
1310
+ type: 'ekubo::core::Core::PositionUpdated',
1311
+ kind: 'nested',
1312
+ },
1313
+ {
1314
+ name: 'PositionFeesCollected',
1315
+ type: 'ekubo::core::Core::PositionFeesCollected',
1316
+ kind: 'nested',
1317
+ },
1318
+ {
1319
+ name: 'Swapped',
1320
+ type: 'ekubo::core::Core::Swapped',
1321
+ kind: 'nested',
1322
+ },
1323
+ {
1324
+ name: 'SavedBalance',
1325
+ type: 'ekubo::core::Core::SavedBalance',
1326
+ kind: 'nested',
1327
+ },
1328
+ {
1329
+ name: 'LoadedBalance',
1330
+ type: 'ekubo::core::Core::LoadedBalance',
1331
+ kind: 'nested',
1332
+ },
1333
+ {
1334
+ name: 'FeesAccumulated',
1335
+ type: 'ekubo::core::Core::FeesAccumulated',
1336
+ kind: 'nested',
1337
+ },
1338
+ ],
1339
+ },
1340
+ ];
1341
+ //# sourceMappingURL=ekuboCore.js.map