@orca-so/whirlpools-core 0.3.0 → 0.3.2

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.
@@ -610,6 +610,50 @@ export function increaseLiquidityQuoteB(token_amount_b: bigint, slippage_toleran
610
610
  * - `CollectRewardsQuote`: The rewards owed for the 3 reward tokens.
611
611
  */
612
612
  export function collectRewardsQuote(whirlpool: WhirlpoolFacade, position: PositionFacade, tick_lower: TickFacade, tick_upper: TickFacade, current_timestamp: bigint, transfer_fee_1?: TransferFee, transfer_fee_2?: TransferFee, transfer_fee_3?: TransferFee): CollectRewardsQuote;
613
+ export interface PositionRewardInfoFacade {
614
+ growthInsideCheckpoint: bigint;
615
+ amountOwed: bigint;
616
+ }
617
+
618
+ export interface PositionFacade {
619
+ liquidity: bigint;
620
+ tickLowerIndex: number;
621
+ tickUpperIndex: number;
622
+ feeGrowthCheckpointA: bigint;
623
+ feeOwedA: bigint;
624
+ feeGrowthCheckpointB: bigint;
625
+ feeOwedB: bigint;
626
+ rewardInfos: PositionRewardInfoFacade[];
627
+ }
628
+
629
+ export type PositionStatus = "priceInRange" | "priceBelowRange" | "priceAboveRange" | "invalid";
630
+
631
+ export interface PositionRatio {
632
+ ratioA: number;
633
+ ratioB: number;
634
+ }
635
+
636
+ export interface IncreaseLiquidityQuote {
637
+ liquidityDelta: bigint;
638
+ tokenEstA: bigint;
639
+ tokenEstB: bigint;
640
+ tokenMaxA: bigint;
641
+ tokenMaxB: bigint;
642
+ }
643
+
644
+ export interface DecreaseLiquidityQuote {
645
+ liquidityDelta: bigint;
646
+ tokenEstA: bigint;
647
+ tokenEstB: bigint;
648
+ tokenMinA: bigint;
649
+ tokenMinB: bigint;
650
+ }
651
+
652
+ export interface CollectFeesQuote {
653
+ feeOwedA: bigint;
654
+ feeOwedB: bigint;
655
+ }
656
+
613
657
  export interface ExactOutSwapQuote {
614
658
  tokenOut: bigint;
615
659
  tokenEstIn: bigint;
@@ -674,47 +718,3 @@ export interface CollectRewardsQuote {
674
718
  rewards: CollectRewardQuote[];
675
719
  }
676
720
 
677
- export interface PositionRewardInfoFacade {
678
- growthInsideCheckpoint: bigint;
679
- amountOwed: bigint;
680
- }
681
-
682
- export interface PositionFacade {
683
- liquidity: bigint;
684
- tickLowerIndex: number;
685
- tickUpperIndex: number;
686
- feeGrowthCheckpointA: bigint;
687
- feeOwedA: bigint;
688
- feeGrowthCheckpointB: bigint;
689
- feeOwedB: bigint;
690
- rewardInfos: PositionRewardInfoFacade[];
691
- }
692
-
693
- export type PositionStatus = "priceInRange" | "priceBelowRange" | "priceAboveRange" | "invalid";
694
-
695
- export interface PositionRatio {
696
- ratioA: number;
697
- ratioB: number;
698
- }
699
-
700
- export interface IncreaseLiquidityQuote {
701
- liquidityDelta: bigint;
702
- tokenEstA: bigint;
703
- tokenEstB: bigint;
704
- tokenMaxA: bigint;
705
- tokenMaxB: bigint;
706
- }
707
-
708
- export interface DecreaseLiquidityQuote {
709
- liquidityDelta: bigint;
710
- tokenEstA: bigint;
711
- tokenEstB: bigint;
712
- tokenMinA: bigint;
713
- tokenMinB: bigint;
714
- }
715
-
716
- export interface CollectFeesQuote {
717
- feeOwedA: bigint;
718
- feeOwedB: bigint;
719
- }
720
-
@@ -1,5 +1,4 @@
1
1
  import * as wasm from "./orca_whirlpools_core_js_bindings_bg.wasm";
2
2
  export * from "./orca_whirlpools_core_js_bindings_bg.js";
3
3
  import { __wbg_set_wasm } from "./orca_whirlpools_core_js_bindings_bg.js";
4
- __wbg_set_wasm(wasm);
5
- wasm.__wbindgen_start();
4
+ __wbg_set_wasm(wasm);