@orca-so/whirlpools-core 0.3.2 → 0.3.3

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,50 +610,6 @@ 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
-
657
613
  export interface ExactOutSwapQuote {
658
614
  tokenOut: bigint;
659
615
  tokenEstIn: bigint;
@@ -718,3 +674,47 @@ export interface CollectRewardsQuote {
718
674
  rewards: CollectRewardQuote[];
719
675
  }
720
676
 
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
+
@@ -1537,9 +1537,12 @@ export function __wbindgen_boolean_get(arg0) {
1537
1537
  return ret;
1538
1538
  };
1539
1539
 
1540
- export function __wbindgen_as_number(arg0) {
1541
- const ret = +getObject(arg0);
1542
- return ret;
1540
+ export function __wbg_String_88810dfeb4021902(arg0, arg1) {
1541
+ const ret = String(getObject(arg1));
1542
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1543
+ const len1 = WASM_VECTOR_LEN;
1544
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1545
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1543
1546
  };
1544
1547
 
1545
1548
  export function __wbindgen_error_new(arg0, arg1) {
@@ -1552,26 +1555,23 @@ export function __wbindgen_bigint_from_u128(arg0, arg1) {
1552
1555
  return addHeapObject(ret);
1553
1556
  };
1554
1557
 
1555
- export function __wbg_getwithrefkey_edc2c8960f0f1191(arg0, arg1) {
1558
+ export function __wbg_getwithrefkey_5e6d9547403deab8(arg0, arg1) {
1556
1559
  const ret = getObject(arg0)[getObject(arg1)];
1557
1560
  return addHeapObject(ret);
1558
1561
  };
1559
1562
 
1560
- export function __wbg_String_88810dfeb4021902(arg0, arg1) {
1561
- const ret = String(getObject(arg1));
1562
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1563
- const len1 = WASM_VECTOR_LEN;
1564
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1565
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1563
+ export function __wbg_set_841ac57cff3d672b(arg0, arg1, arg2) {
1564
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1566
1565
  };
1567
1566
 
1568
- export function __wbg_getwithrefkey_5e6d9547403deab8(arg0, arg1) {
1569
- const ret = getObject(arg0)[getObject(arg1)];
1570
- return addHeapObject(ret);
1567
+ export function __wbindgen_as_number(arg0) {
1568
+ const ret = +getObject(arg0);
1569
+ return ret;
1571
1570
  };
1572
1571
 
1573
- export function __wbg_set_841ac57cff3d672b(arg0, arg1, arg2) {
1574
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1572
+ export function __wbg_getwithrefkey_edc2c8960f0f1191(arg0, arg1) {
1573
+ const ret = getObject(arg0)[getObject(arg1)];
1574
+ return addHeapObject(ret);
1575
1575
  };
1576
1576
 
1577
1577
  export function __wbindgen_in(arg0, arg1) {
@@ -610,50 +610,6 @@ 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
-
657
613
  export interface ExactOutSwapQuote {
658
614
  tokenOut: bigint;
659
615
  tokenEstIn: bigint;
@@ -718,3 +674,47 @@ export interface CollectRewardsQuote {
718
674
  rewards: CollectRewardQuote[];
719
675
  }
720
676
 
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
+
@@ -1533,9 +1533,12 @@ module.exports.__wbindgen_boolean_get = function(arg0) {
1533
1533
  return ret;
1534
1534
  };
1535
1535
 
1536
- module.exports.__wbindgen_as_number = function(arg0) {
1537
- const ret = +getObject(arg0);
1538
- return ret;
1536
+ module.exports.__wbg_String_88810dfeb4021902 = function(arg0, arg1) {
1537
+ const ret = String(getObject(arg1));
1538
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1539
+ const len1 = WASM_VECTOR_LEN;
1540
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1541
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1539
1542
  };
1540
1543
 
1541
1544
  module.exports.__wbindgen_error_new = function(arg0, arg1) {
@@ -1548,26 +1551,23 @@ module.exports.__wbindgen_bigint_from_u128 = function(arg0, arg1) {
1548
1551
  return addHeapObject(ret);
1549
1552
  };
1550
1553
 
1551
- module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
1554
+ module.exports.__wbg_getwithrefkey_5e6d9547403deab8 = function(arg0, arg1) {
1552
1555
  const ret = getObject(arg0)[getObject(arg1)];
1553
1556
  return addHeapObject(ret);
1554
1557
  };
1555
1558
 
1556
- module.exports.__wbg_String_88810dfeb4021902 = function(arg0, arg1) {
1557
- const ret = String(getObject(arg1));
1558
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1559
- const len1 = WASM_VECTOR_LEN;
1560
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1561
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1559
+ module.exports.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
1560
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1562
1561
  };
1563
1562
 
1564
- module.exports.__wbg_getwithrefkey_5e6d9547403deab8 = function(arg0, arg1) {
1565
- const ret = getObject(arg0)[getObject(arg1)];
1566
- return addHeapObject(ret);
1563
+ module.exports.__wbindgen_as_number = function(arg0) {
1564
+ const ret = +getObject(arg0);
1565
+ return ret;
1567
1566
  };
1568
1567
 
1569
- module.exports.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
1570
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1568
+ module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
1569
+ const ret = getObject(arg0)[getObject(arg1)];
1570
+ return addHeapObject(ret);
1571
1571
  };
1572
1572
 
1573
1573
  module.exports.__wbindgen_in = function(arg0, arg1) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orca-so/whirlpools-core",
3
3
  "description": "Orca's core typescript package.",
4
- "version": "0.3.2",
4
+ "version": "0.3.3",
5
5
  "main": "./dist/nodejs/orca_whirlpools_core_js_bindings.js",
6
6
  "types": "./dist/nodejs/orca_whirlpools_core_js_bindings.d.ts",
7
7
  "browser": "./dist/browser/orca_whirlpools_core_js_bindings.js",