@orca-so/whirlpools-core 0.4.0 → 0.4.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.
|
@@ -629,29 +629,6 @@ export interface TransferFee {
|
|
|
629
629
|
maxFee: bigint;
|
|
630
630
|
}
|
|
631
631
|
|
|
632
|
-
export interface PositionRewardInfoFacade {
|
|
633
|
-
growthInsideCheckpoint: bigint;
|
|
634
|
-
amountOwed: bigint;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
export interface PositionFacade {
|
|
638
|
-
liquidity: bigint;
|
|
639
|
-
tickLowerIndex: number;
|
|
640
|
-
tickUpperIndex: number;
|
|
641
|
-
feeGrowthCheckpointA: bigint;
|
|
642
|
-
feeOwedA: bigint;
|
|
643
|
-
feeGrowthCheckpointB: bigint;
|
|
644
|
-
feeOwedB: bigint;
|
|
645
|
-
rewardInfos: PositionRewardInfoFacade[];
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
export type PositionStatus = "priceInRange" | "priceBelowRange" | "priceAboveRange" | "invalid";
|
|
649
|
-
|
|
650
|
-
export interface PositionRatio {
|
|
651
|
-
ratioA: number;
|
|
652
|
-
ratioB: number;
|
|
653
|
-
}
|
|
654
|
-
|
|
655
632
|
export interface TickArrayFacade {
|
|
656
633
|
startTickIndex: number;
|
|
657
634
|
ticks: TickFacade[];
|
|
@@ -679,6 +656,29 @@ export interface CollectRewardsQuote {
|
|
|
679
656
|
rewards: CollectRewardQuote[];
|
|
680
657
|
}
|
|
681
658
|
|
|
659
|
+
export interface PositionRewardInfoFacade {
|
|
660
|
+
growthInsideCheckpoint: bigint;
|
|
661
|
+
amountOwed: bigint;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
export interface PositionFacade {
|
|
665
|
+
liquidity: bigint;
|
|
666
|
+
tickLowerIndex: number;
|
|
667
|
+
tickUpperIndex: number;
|
|
668
|
+
feeGrowthCheckpointA: bigint;
|
|
669
|
+
feeOwedA: bigint;
|
|
670
|
+
feeGrowthCheckpointB: bigint;
|
|
671
|
+
feeOwedB: bigint;
|
|
672
|
+
rewardInfos: PositionRewardInfoFacade[];
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
export type PositionStatus = "priceInRange" | "priceBelowRange" | "priceAboveRange" | "invalid";
|
|
676
|
+
|
|
677
|
+
export interface PositionRatio {
|
|
678
|
+
ratioA: number;
|
|
679
|
+
ratioB: number;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
682
|
export interface WhirlpoolRewardInfoFacade {
|
|
683
683
|
emissionsPerSecondX64: bigint;
|
|
684
684
|
growthGlobalX64: bigint;
|
|
Binary file
|
|
@@ -629,29 +629,6 @@ export interface TransferFee {
|
|
|
629
629
|
maxFee: bigint;
|
|
630
630
|
}
|
|
631
631
|
|
|
632
|
-
export interface PositionRewardInfoFacade {
|
|
633
|
-
growthInsideCheckpoint: bigint;
|
|
634
|
-
amountOwed: bigint;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
export interface PositionFacade {
|
|
638
|
-
liquidity: bigint;
|
|
639
|
-
tickLowerIndex: number;
|
|
640
|
-
tickUpperIndex: number;
|
|
641
|
-
feeGrowthCheckpointA: bigint;
|
|
642
|
-
feeOwedA: bigint;
|
|
643
|
-
feeGrowthCheckpointB: bigint;
|
|
644
|
-
feeOwedB: bigint;
|
|
645
|
-
rewardInfos: PositionRewardInfoFacade[];
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
export type PositionStatus = "priceInRange" | "priceBelowRange" | "priceAboveRange" | "invalid";
|
|
649
|
-
|
|
650
|
-
export interface PositionRatio {
|
|
651
|
-
ratioA: number;
|
|
652
|
-
ratioB: number;
|
|
653
|
-
}
|
|
654
|
-
|
|
655
632
|
export interface TickArrayFacade {
|
|
656
633
|
startTickIndex: number;
|
|
657
634
|
ticks: TickFacade[];
|
|
@@ -679,6 +656,29 @@ export interface CollectRewardsQuote {
|
|
|
679
656
|
rewards: CollectRewardQuote[];
|
|
680
657
|
}
|
|
681
658
|
|
|
659
|
+
export interface PositionRewardInfoFacade {
|
|
660
|
+
growthInsideCheckpoint: bigint;
|
|
661
|
+
amountOwed: bigint;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
export interface PositionFacade {
|
|
665
|
+
liquidity: bigint;
|
|
666
|
+
tickLowerIndex: number;
|
|
667
|
+
tickUpperIndex: number;
|
|
668
|
+
feeGrowthCheckpointA: bigint;
|
|
669
|
+
feeOwedA: bigint;
|
|
670
|
+
feeGrowthCheckpointB: bigint;
|
|
671
|
+
feeOwedB: bigint;
|
|
672
|
+
rewardInfos: PositionRewardInfoFacade[];
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
export type PositionStatus = "priceInRange" | "priceBelowRange" | "priceAboveRange" | "invalid";
|
|
676
|
+
|
|
677
|
+
export interface PositionRatio {
|
|
678
|
+
ratioA: number;
|
|
679
|
+
ratioB: number;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
682
|
export interface WhirlpoolRewardInfoFacade {
|
|
683
683
|
emissionsPerSecondX64: bigint;
|
|
684
684
|
growthGlobalX64: bigint;
|
|
Binary file
|
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.4.
|
|
4
|
+
"version": "0.4.2",
|
|
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",
|