@meteora-ag/cp-amm-sdk 1.0.0-rc.3 → 1.0.0-rc.5

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.
package/dist/index.d.mts CHANGED
@@ -5293,6 +5293,22 @@ type AddLiquidityParams = {
5293
5293
  tokenAProgram: PublicKey;
5294
5294
  tokenBProgram: PublicKey;
5295
5295
  };
5296
+ type CreatePositionAndAddLiquidity = {
5297
+ owner: PublicKey;
5298
+ pool: PublicKey;
5299
+ positionNft: PublicKey;
5300
+ liquidityDelta: BN;
5301
+ maxAmountTokenA: BN;
5302
+ maxAmountTokenB: BN;
5303
+ tokenAAmountThreshold: BN;
5304
+ tokenBAmountThreshold: BN;
5305
+ tokenAMint: PublicKey;
5306
+ tokenBMint: PublicKey;
5307
+ tokenAVault: PublicKey;
5308
+ tokenBVault: PublicKey;
5309
+ tokenAProgram: PublicKey;
5310
+ tokenBProgram: PublicKey;
5311
+ };
5296
5312
  type LiquidityDeltaParams = {
5297
5313
  maxAmountTokenA: BN;
5298
5314
  maxAmountTokenB: BN;
@@ -5674,6 +5690,12 @@ declare class CpAmm {
5674
5690
  * @private
5675
5691
  */
5676
5692
  private buildLiquidatePositionInstruction;
5693
+ /**
5694
+ * Builds a instruction to create a position.
5695
+ * @param {CreatePositionParams} params - Parameters for position creation.
5696
+ * @returns Transaction instruction.
5697
+ */
5698
+ private buildCreatePositionInstruction;
5677
5699
  /**
5678
5700
  * Fetches the Config state of the program.
5679
5701
  * @param config - Public key of the config account.
@@ -5776,19 +5798,26 @@ declare class CpAmm {
5776
5798
  reason?: string;
5777
5799
  };
5778
5800
  isPoolExist(pool: PublicKey): Promise<boolean>;
5801
+ /**
5802
+ * Computes the liquidity delta based on the provided token amounts and sqrt price
5803
+ *
5804
+ * @param {LiquidityDeltaParams} params - The parameters for liquidity calculation
5805
+ * @returns {Promise<BN>} - The computed liquidity delta in Q64 value.
5806
+ */
5807
+ getLiquidityDelta(params: LiquidityDeltaParams): BN;
5779
5808
  /**
5780
5809
  * Calculates swap quote based on input amount and pool state.
5781
5810
  * @param params - Swap parameters including input amount, pool state, slippage, etc.
5782
5811
  * @returns Swap quote including expected output amount, fee, and price impact.
5783
5812
  */
5784
- getQuote(params: GetQuoteParams): Promise<{
5813
+ getQuote(params: GetQuoteParams): {
5785
5814
  swapInAmount: BN;
5786
5815
  consumedInAmount: BN;
5787
5816
  swapOutAmount: BN;
5788
5817
  minSwapOutAmount: BN;
5789
5818
  totalFee: BN;
5790
5819
  priceImpact: number;
5791
- }>;
5820
+ };
5792
5821
  /**
5793
5822
  * Calculates the deposit quote for liquidity pool.
5794
5823
  *
@@ -5799,7 +5828,7 @@ declare class CpAmm {
5799
5828
  * @returns {BN} returns.outputAmount - The calculated corresponding amount of the other token.
5800
5829
  * @returns {BN} returns.liquidityDelta - The amount of liquidity that will be added to the pool.
5801
5830
  */
5802
- getDepositQuote(params: GetDepositQuoteParams): Promise<DepositQuote>;
5831
+ getDepositQuote(params: GetDepositQuoteParams): DepositQuote;
5803
5832
  /**
5804
5833
  * Calculates the withdrawal quote for removing liquidity from a concentrated liquidity pool.
5805
5834
  *
@@ -5813,7 +5842,7 @@ declare class CpAmm {
5813
5842
  * @returns {BN} returns.outAmountA - The calculated amount of token A to be received (after deducting transfer fees)
5814
5843
  * @returns {BN} returns.outAmountB - The calculated amount of token B to be received (after deducting transfer fees)
5815
5844
  */
5816
- getWithdrawQuote(params: GetWithdrawQuoteParams): Promise<WithdrawQuote>;
5845
+ getWithdrawQuote(params: GetWithdrawQuoteParams): WithdrawQuote;
5817
5846
  /**
5818
5847
  * Calculates liquidity and corresponding token amounts for token A single-sided pool creation
5819
5848
  * Only supports initialization where initial price equals min sqrt price
@@ -5856,6 +5885,16 @@ declare class CpAmm {
5856
5885
  * @returns Transaction builder.
5857
5886
  */
5858
5887
  addLiquidity(params: AddLiquidityParams): TxBuilder;
5888
+ /**
5889
+ * Creates a new position and add liquidity to position it in a single transaction.
5890
+ * Handles both native SOL and other tokens, automatically wrapping/unwrapping SOL as needed.
5891
+ *
5892
+ * @param {CreatePositionAndAddLiquidity} params - Parameters for creating position and adding liquidity
5893
+ *
5894
+ * @returns {Transaction} A transaction that creates a position and adds liquidity
5895
+ *
5896
+ **/
5897
+ createPositionAndAddLiquidity(params: CreatePositionAndAddLiquidity): TxBuilder;
5859
5898
  /**
5860
5899
  * Builds a transaction to remove liquidity from a position.
5861
5900
  * @param {RemoveLiquidityParams} params - Parameters for removing liquidity.
@@ -5974,7 +6013,6 @@ declare function deriveCustomizablePoolAddress(tokenAMint: PublicKey, tokenBMint
5974
6013
  declare function deriveTokenBadgeAddress(tokenMint: PublicKey): PublicKey;
5975
6014
  declare function deriveClaimFeeOperatorAddress(operator: PublicKey): PublicKey;
5976
6015
  declare function derivePositionNftAccount(positionNftMint: PublicKey): PublicKey;
5977
- declare function deriveTokenBadge(tokenMint: PublicKey): PublicKey;
5978
6016
 
5979
6017
  declare const CP_AMM_PROGRAM_ID: PublicKey;
5980
6018
  declare const LIQUIDITY_SCALE = 128;
@@ -5982,7 +6020,6 @@ declare const SCALE_OFFSET = 64;
5982
6020
  declare const BASIS_POINT_MAX = 10000;
5983
6021
  declare const MAX_FEE_NUMERATOR = 500000000;
5984
6022
  declare const FEE_DENOMINATOR = 1000000000;
5985
- declare const PRECISION = 1000000;
5986
6023
  declare const MIN_SQRT_PRICE: BN;
5987
6024
  declare const MAX_SQRT_PRICE: BN;
5988
6025
  declare const MIN_CU_BUFFER = 50000;
@@ -5996,11 +6033,14 @@ declare const getOrCreateATAInstruction: (connection: Connection, tokenMint: Pub
5996
6033
  }>;
5997
6034
  declare const wrapSOLInstruction: (from: PublicKey, to: PublicKey, amount: bigint) => TransactionInstruction[];
5998
6035
  declare const unwrapSOLInstruction: (owner: PublicKey, allowOwnerOffCurve?: boolean) => Promise<TransactionInstruction>;
5999
- declare function getNftOwner(connection: Connection, nftMint: PublicKey): Promise<PublicKey>;
6000
6036
  declare function getAllUserPositionNftAccount(connection: Connection, user: PublicKey): Promise<Array<{
6001
6037
  positionNft: PublicKey;
6002
6038
  positionNftAccount: PublicKey;
6003
6039
  }>>;
6040
+ declare function getAllPositionNftAccountByOwner(connection: Connection, user: PublicKey): Promise<Array<{
6041
+ positionNft: PublicKey;
6042
+ positionNftAccount: PublicKey;
6043
+ }>>;
6004
6044
 
6005
6045
  declare function getBaseFeeNumerator(feeSchedulerMode: FeeSchedulerMode, cliffFeeNumerator: BN, period: BN, reductionFactor: BN): BN;
6006
6046
  /**
@@ -6155,7 +6195,6 @@ declare const ONE: BN;
6155
6195
  declare function pow(base: BN, exp: BN): BN;
6156
6196
 
6157
6197
  declare function mulDiv(x: BN, y: BN, denominator: BN, rounding: Rounding): BN;
6158
- declare function divCeil(a: BN, b: BN): BN;
6159
6198
  declare function q64ToDecimal(num: BN, decimalPlaces?: number): Decimal;
6160
6199
  declare function decimalToQ64(num: Decimal): BN;
6161
6200
 
@@ -12498,4 +12537,4 @@ var CpAmmIDL = {
12498
12537
  types: types
12499
12538
  };
12500
12539
 
12501
- export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, BASIS_POINT_MAX, type BaseFee, type BuildAddLiquidityParams, type BuildLiquidatePositionInstructionParams, type BuildRemoveAllLiquidityInstructionParams, CP_AMM_PROGRAM_ID, type ClaimPartnerFeeParams, type ClaimPositionFeeInstructionParams, type ClaimPositionFeeParams, type ClaimRewardParams, type ClosePositionInstructionParams, type ClosePositionParams, CollectFeeMode, type ConfigState, CpAmm, type CpAmm$1 as CpAmmTypes, type CreatePoolParams, type CreatePositionParams, type DepositQuote, type DynamicFee, type DynamicFeeParams, FEE_DENOMINATOR, type FeeMode, FeeSchedulerMode, type FundRewardParams, type GetDepositQuoteParams, type GetQuoteParams, type GetWithdrawQuoteParams, type InitializeCustomizeablePoolParams, type InitializeRewardParams, LIQUIDITY_SCALE, type LiquidityDeltaParams, type LockPositionParams, MAX_CU_BUFFER, MAX_FEE_NUMERATOR, MAX_SQRT_PRICE, MIN_CU_BUFFER, MIN_SQRT_PRICE, type MergePositionParams, ONE, PRECISION, type PermanentLockParams, type PoolFeesParams, type PoolState, type PositionState, type PreparePoolCreationParams, type PreparePoolCreationSingleSide, type PreparedPoolCreation, type RefreshVestingParams, type RemoveAllLiquidityAndClosePositionParams, type RemoveAllLiquidityParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, type SwapParams, type SwapQuotes, type TokenBadgeState, TradeDirection, type TxBuilder, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type VestingState, type WithdrawIneligibleRewardParams, type WithdrawQuote, calculateInitSqrtPrice, calculateTransferFeeExcludedAmount, calculateTransferFeeIncludedAmount, decimalToQ64, CpAmmIDL as default, deriveClaimFeeOperatorAddress, deriveConfigAddress, deriveCustomizablePoolAddress, derivePoolAddress, derivePoolAuthority, derivePositionAddress, derivePositionNftAccount, deriveRewardVaultAddress, deriveTokenBadge, deriveTokenBadgeAddress, deriveTokenVaultAddress, divCeil, getAllUserPositionNftAccount, getAmountAFromLiquidityDelta, getAmountBFromLiquidityDelta, getAvailableVestingLiquidity, getBaseFeeNumerator, getDynamicFeeNumerator, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getFeeNumerator, getFirstKey, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountB, getMaxAmountWithSlippage, getMinAmountWithSlippage, getNextSqrtPrice, getNftOwner, getOrCreateATAInstruction, getPriceFromSqrtPrice, getPriceImpact, getSecondKey, getSimulationComputeUnits, getSqrtPriceFromPrice, getSwapAmount, getTokenDecimals, getTokenProgram, getTotalLockedLiquidity, getUnClaimReward, isVestingComplete, mulDiv, positionByPoolFilter, pow, q64ToDecimal, unwrapSOLInstruction, vestingByPositionFilter, wrapSOLInstruction };
12540
+ export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, BASIS_POINT_MAX, type BaseFee, type BuildAddLiquidityParams, type BuildLiquidatePositionInstructionParams, type BuildRemoveAllLiquidityInstructionParams, CP_AMM_PROGRAM_ID, type ClaimPartnerFeeParams, type ClaimPositionFeeInstructionParams, type ClaimPositionFeeParams, type ClaimRewardParams, type ClosePositionInstructionParams, type ClosePositionParams, CollectFeeMode, type ConfigState, CpAmm, type CpAmm$1 as CpAmmTypes, type CreatePoolParams, type CreatePositionAndAddLiquidity, type CreatePositionParams, type DepositQuote, type DynamicFee, type DynamicFeeParams, FEE_DENOMINATOR, type FeeMode, FeeSchedulerMode, type FundRewardParams, type GetDepositQuoteParams, type GetQuoteParams, type GetWithdrawQuoteParams, type InitializeCustomizeablePoolParams, type InitializeRewardParams, LIQUIDITY_SCALE, type LiquidityDeltaParams, type LockPositionParams, MAX_CU_BUFFER, MAX_FEE_NUMERATOR, MAX_SQRT_PRICE, MIN_CU_BUFFER, MIN_SQRT_PRICE, type MergePositionParams, ONE, type PermanentLockParams, type PoolFeesParams, type PoolState, type PositionState, type PreparePoolCreationParams, type PreparePoolCreationSingleSide, type PreparedPoolCreation, type RefreshVestingParams, type RemoveAllLiquidityAndClosePositionParams, type RemoveAllLiquidityParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, type SwapParams, type SwapQuotes, type TokenBadgeState, TradeDirection, type TxBuilder, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type VestingState, type WithdrawIneligibleRewardParams, type WithdrawQuote, calculateInitSqrtPrice, calculateTransferFeeExcludedAmount, calculateTransferFeeIncludedAmount, decimalToQ64, CpAmmIDL as default, deriveClaimFeeOperatorAddress, deriveConfigAddress, deriveCustomizablePoolAddress, derivePoolAddress, derivePoolAuthority, derivePositionAddress, derivePositionNftAccount, deriveRewardVaultAddress, deriveTokenBadgeAddress, deriveTokenVaultAddress, getAllPositionNftAccountByOwner, getAllUserPositionNftAccount, getAmountAFromLiquidityDelta, getAmountBFromLiquidityDelta, getAvailableVestingLiquidity, getBaseFeeNumerator, getDynamicFeeNumerator, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getFeeNumerator, getFirstKey, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountB, getMaxAmountWithSlippage, getMinAmountWithSlippage, getNextSqrtPrice, getOrCreateATAInstruction, getPriceFromSqrtPrice, getPriceImpact, getSecondKey, getSimulationComputeUnits, getSqrtPriceFromPrice, getSwapAmount, getTokenDecimals, getTokenProgram, getTotalLockedLiquidity, getUnClaimReward, isVestingComplete, mulDiv, positionByPoolFilter, pow, q64ToDecimal, unwrapSOLInstruction, vestingByPositionFilter, wrapSOLInstruction };
package/dist/index.d.ts CHANGED
@@ -5293,6 +5293,22 @@ type AddLiquidityParams = {
5293
5293
  tokenAProgram: PublicKey;
5294
5294
  tokenBProgram: PublicKey;
5295
5295
  };
5296
+ type CreatePositionAndAddLiquidity = {
5297
+ owner: PublicKey;
5298
+ pool: PublicKey;
5299
+ positionNft: PublicKey;
5300
+ liquidityDelta: BN;
5301
+ maxAmountTokenA: BN;
5302
+ maxAmountTokenB: BN;
5303
+ tokenAAmountThreshold: BN;
5304
+ tokenBAmountThreshold: BN;
5305
+ tokenAMint: PublicKey;
5306
+ tokenBMint: PublicKey;
5307
+ tokenAVault: PublicKey;
5308
+ tokenBVault: PublicKey;
5309
+ tokenAProgram: PublicKey;
5310
+ tokenBProgram: PublicKey;
5311
+ };
5296
5312
  type LiquidityDeltaParams = {
5297
5313
  maxAmountTokenA: BN;
5298
5314
  maxAmountTokenB: BN;
@@ -5674,6 +5690,12 @@ declare class CpAmm {
5674
5690
  * @private
5675
5691
  */
5676
5692
  private buildLiquidatePositionInstruction;
5693
+ /**
5694
+ * Builds a instruction to create a position.
5695
+ * @param {CreatePositionParams} params - Parameters for position creation.
5696
+ * @returns Transaction instruction.
5697
+ */
5698
+ private buildCreatePositionInstruction;
5677
5699
  /**
5678
5700
  * Fetches the Config state of the program.
5679
5701
  * @param config - Public key of the config account.
@@ -5776,19 +5798,26 @@ declare class CpAmm {
5776
5798
  reason?: string;
5777
5799
  };
5778
5800
  isPoolExist(pool: PublicKey): Promise<boolean>;
5801
+ /**
5802
+ * Computes the liquidity delta based on the provided token amounts and sqrt price
5803
+ *
5804
+ * @param {LiquidityDeltaParams} params - The parameters for liquidity calculation
5805
+ * @returns {Promise<BN>} - The computed liquidity delta in Q64 value.
5806
+ */
5807
+ getLiquidityDelta(params: LiquidityDeltaParams): BN;
5779
5808
  /**
5780
5809
  * Calculates swap quote based on input amount and pool state.
5781
5810
  * @param params - Swap parameters including input amount, pool state, slippage, etc.
5782
5811
  * @returns Swap quote including expected output amount, fee, and price impact.
5783
5812
  */
5784
- getQuote(params: GetQuoteParams): Promise<{
5813
+ getQuote(params: GetQuoteParams): {
5785
5814
  swapInAmount: BN;
5786
5815
  consumedInAmount: BN;
5787
5816
  swapOutAmount: BN;
5788
5817
  minSwapOutAmount: BN;
5789
5818
  totalFee: BN;
5790
5819
  priceImpact: number;
5791
- }>;
5820
+ };
5792
5821
  /**
5793
5822
  * Calculates the deposit quote for liquidity pool.
5794
5823
  *
@@ -5799,7 +5828,7 @@ declare class CpAmm {
5799
5828
  * @returns {BN} returns.outputAmount - The calculated corresponding amount of the other token.
5800
5829
  * @returns {BN} returns.liquidityDelta - The amount of liquidity that will be added to the pool.
5801
5830
  */
5802
- getDepositQuote(params: GetDepositQuoteParams): Promise<DepositQuote>;
5831
+ getDepositQuote(params: GetDepositQuoteParams): DepositQuote;
5803
5832
  /**
5804
5833
  * Calculates the withdrawal quote for removing liquidity from a concentrated liquidity pool.
5805
5834
  *
@@ -5813,7 +5842,7 @@ declare class CpAmm {
5813
5842
  * @returns {BN} returns.outAmountA - The calculated amount of token A to be received (after deducting transfer fees)
5814
5843
  * @returns {BN} returns.outAmountB - The calculated amount of token B to be received (after deducting transfer fees)
5815
5844
  */
5816
- getWithdrawQuote(params: GetWithdrawQuoteParams): Promise<WithdrawQuote>;
5845
+ getWithdrawQuote(params: GetWithdrawQuoteParams): WithdrawQuote;
5817
5846
  /**
5818
5847
  * Calculates liquidity and corresponding token amounts for token A single-sided pool creation
5819
5848
  * Only supports initialization where initial price equals min sqrt price
@@ -5856,6 +5885,16 @@ declare class CpAmm {
5856
5885
  * @returns Transaction builder.
5857
5886
  */
5858
5887
  addLiquidity(params: AddLiquidityParams): TxBuilder;
5888
+ /**
5889
+ * Creates a new position and add liquidity to position it in a single transaction.
5890
+ * Handles both native SOL and other tokens, automatically wrapping/unwrapping SOL as needed.
5891
+ *
5892
+ * @param {CreatePositionAndAddLiquidity} params - Parameters for creating position and adding liquidity
5893
+ *
5894
+ * @returns {Transaction} A transaction that creates a position and adds liquidity
5895
+ *
5896
+ **/
5897
+ createPositionAndAddLiquidity(params: CreatePositionAndAddLiquidity): TxBuilder;
5859
5898
  /**
5860
5899
  * Builds a transaction to remove liquidity from a position.
5861
5900
  * @param {RemoveLiquidityParams} params - Parameters for removing liquidity.
@@ -5974,7 +6013,6 @@ declare function deriveCustomizablePoolAddress(tokenAMint: PublicKey, tokenBMint
5974
6013
  declare function deriveTokenBadgeAddress(tokenMint: PublicKey): PublicKey;
5975
6014
  declare function deriveClaimFeeOperatorAddress(operator: PublicKey): PublicKey;
5976
6015
  declare function derivePositionNftAccount(positionNftMint: PublicKey): PublicKey;
5977
- declare function deriveTokenBadge(tokenMint: PublicKey): PublicKey;
5978
6016
 
5979
6017
  declare const CP_AMM_PROGRAM_ID: PublicKey;
5980
6018
  declare const LIQUIDITY_SCALE = 128;
@@ -5982,7 +6020,6 @@ declare const SCALE_OFFSET = 64;
5982
6020
  declare const BASIS_POINT_MAX = 10000;
5983
6021
  declare const MAX_FEE_NUMERATOR = 500000000;
5984
6022
  declare const FEE_DENOMINATOR = 1000000000;
5985
- declare const PRECISION = 1000000;
5986
6023
  declare const MIN_SQRT_PRICE: BN;
5987
6024
  declare const MAX_SQRT_PRICE: BN;
5988
6025
  declare const MIN_CU_BUFFER = 50000;
@@ -5996,11 +6033,14 @@ declare const getOrCreateATAInstruction: (connection: Connection, tokenMint: Pub
5996
6033
  }>;
5997
6034
  declare const wrapSOLInstruction: (from: PublicKey, to: PublicKey, amount: bigint) => TransactionInstruction[];
5998
6035
  declare const unwrapSOLInstruction: (owner: PublicKey, allowOwnerOffCurve?: boolean) => Promise<TransactionInstruction>;
5999
- declare function getNftOwner(connection: Connection, nftMint: PublicKey): Promise<PublicKey>;
6000
6036
  declare function getAllUserPositionNftAccount(connection: Connection, user: PublicKey): Promise<Array<{
6001
6037
  positionNft: PublicKey;
6002
6038
  positionNftAccount: PublicKey;
6003
6039
  }>>;
6040
+ declare function getAllPositionNftAccountByOwner(connection: Connection, user: PublicKey): Promise<Array<{
6041
+ positionNft: PublicKey;
6042
+ positionNftAccount: PublicKey;
6043
+ }>>;
6004
6044
 
6005
6045
  declare function getBaseFeeNumerator(feeSchedulerMode: FeeSchedulerMode, cliffFeeNumerator: BN, period: BN, reductionFactor: BN): BN;
6006
6046
  /**
@@ -6155,7 +6195,6 @@ declare const ONE: BN;
6155
6195
  declare function pow(base: BN, exp: BN): BN;
6156
6196
 
6157
6197
  declare function mulDiv(x: BN, y: BN, denominator: BN, rounding: Rounding): BN;
6158
- declare function divCeil(a: BN, b: BN): BN;
6159
6198
  declare function q64ToDecimal(num: BN, decimalPlaces?: number): Decimal;
6160
6199
  declare function decimalToQ64(num: Decimal): BN;
6161
6200
 
@@ -12498,4 +12537,4 @@ var CpAmmIDL = {
12498
12537
  types: types
12499
12538
  };
12500
12539
 
12501
- export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, BASIS_POINT_MAX, type BaseFee, type BuildAddLiquidityParams, type BuildLiquidatePositionInstructionParams, type BuildRemoveAllLiquidityInstructionParams, CP_AMM_PROGRAM_ID, type ClaimPartnerFeeParams, type ClaimPositionFeeInstructionParams, type ClaimPositionFeeParams, type ClaimRewardParams, type ClosePositionInstructionParams, type ClosePositionParams, CollectFeeMode, type ConfigState, CpAmm, type CpAmm$1 as CpAmmTypes, type CreatePoolParams, type CreatePositionParams, type DepositQuote, type DynamicFee, type DynamicFeeParams, FEE_DENOMINATOR, type FeeMode, FeeSchedulerMode, type FundRewardParams, type GetDepositQuoteParams, type GetQuoteParams, type GetWithdrawQuoteParams, type InitializeCustomizeablePoolParams, type InitializeRewardParams, LIQUIDITY_SCALE, type LiquidityDeltaParams, type LockPositionParams, MAX_CU_BUFFER, MAX_FEE_NUMERATOR, MAX_SQRT_PRICE, MIN_CU_BUFFER, MIN_SQRT_PRICE, type MergePositionParams, ONE, PRECISION, type PermanentLockParams, type PoolFeesParams, type PoolState, type PositionState, type PreparePoolCreationParams, type PreparePoolCreationSingleSide, type PreparedPoolCreation, type RefreshVestingParams, type RemoveAllLiquidityAndClosePositionParams, type RemoveAllLiquidityParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, type SwapParams, type SwapQuotes, type TokenBadgeState, TradeDirection, type TxBuilder, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type VestingState, type WithdrawIneligibleRewardParams, type WithdrawQuote, calculateInitSqrtPrice, calculateTransferFeeExcludedAmount, calculateTransferFeeIncludedAmount, decimalToQ64, CpAmmIDL as default, deriveClaimFeeOperatorAddress, deriveConfigAddress, deriveCustomizablePoolAddress, derivePoolAddress, derivePoolAuthority, derivePositionAddress, derivePositionNftAccount, deriveRewardVaultAddress, deriveTokenBadge, deriveTokenBadgeAddress, deriveTokenVaultAddress, divCeil, getAllUserPositionNftAccount, getAmountAFromLiquidityDelta, getAmountBFromLiquidityDelta, getAvailableVestingLiquidity, getBaseFeeNumerator, getDynamicFeeNumerator, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getFeeNumerator, getFirstKey, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountB, getMaxAmountWithSlippage, getMinAmountWithSlippage, getNextSqrtPrice, getNftOwner, getOrCreateATAInstruction, getPriceFromSqrtPrice, getPriceImpact, getSecondKey, getSimulationComputeUnits, getSqrtPriceFromPrice, getSwapAmount, getTokenDecimals, getTokenProgram, getTotalLockedLiquidity, getUnClaimReward, isVestingComplete, mulDiv, positionByPoolFilter, pow, q64ToDecimal, unwrapSOLInstruction, vestingByPositionFilter, wrapSOLInstruction };
12540
+ export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, BASIS_POINT_MAX, type BaseFee, type BuildAddLiquidityParams, type BuildLiquidatePositionInstructionParams, type BuildRemoveAllLiquidityInstructionParams, CP_AMM_PROGRAM_ID, type ClaimPartnerFeeParams, type ClaimPositionFeeInstructionParams, type ClaimPositionFeeParams, type ClaimRewardParams, type ClosePositionInstructionParams, type ClosePositionParams, CollectFeeMode, type ConfigState, CpAmm, type CpAmm$1 as CpAmmTypes, type CreatePoolParams, type CreatePositionAndAddLiquidity, type CreatePositionParams, type DepositQuote, type DynamicFee, type DynamicFeeParams, FEE_DENOMINATOR, type FeeMode, FeeSchedulerMode, type FundRewardParams, type GetDepositQuoteParams, type GetQuoteParams, type GetWithdrawQuoteParams, type InitializeCustomizeablePoolParams, type InitializeRewardParams, LIQUIDITY_SCALE, type LiquidityDeltaParams, type LockPositionParams, MAX_CU_BUFFER, MAX_FEE_NUMERATOR, MAX_SQRT_PRICE, MIN_CU_BUFFER, MIN_SQRT_PRICE, type MergePositionParams, ONE, type PermanentLockParams, type PoolFeesParams, type PoolState, type PositionState, type PreparePoolCreationParams, type PreparePoolCreationSingleSide, type PreparedPoolCreation, type RefreshVestingParams, type RemoveAllLiquidityAndClosePositionParams, type RemoveAllLiquidityParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, type SwapParams, type SwapQuotes, type TokenBadgeState, TradeDirection, type TxBuilder, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type VestingState, type WithdrawIneligibleRewardParams, type WithdrawQuote, calculateInitSqrtPrice, calculateTransferFeeExcludedAmount, calculateTransferFeeIncludedAmount, decimalToQ64, CpAmmIDL as default, deriveClaimFeeOperatorAddress, deriveConfigAddress, deriveCustomizablePoolAddress, derivePoolAddress, derivePoolAuthority, derivePositionAddress, derivePositionNftAccount, deriveRewardVaultAddress, deriveTokenBadgeAddress, deriveTokenVaultAddress, getAllPositionNftAccountByOwner, getAllUserPositionNftAccount, getAmountAFromLiquidityDelta, getAmountBFromLiquidityDelta, getAvailableVestingLiquidity, getBaseFeeNumerator, getDynamicFeeNumerator, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getFeeNumerator, getFirstKey, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountB, getMaxAmountWithSlippage, getMinAmountWithSlippage, getNextSqrtPrice, getOrCreateATAInstruction, getPriceFromSqrtPrice, getPriceImpact, getSecondKey, getSimulationComputeUnits, getSqrtPriceFromPrice, getSwapAmount, getTokenDecimals, getTokenProgram, getTotalLockedLiquidity, getUnClaimReward, isVestingComplete, mulDiv, positionByPoolFilter, pow, q64ToDecimal, unwrapSOLInstruction, vestingByPositionFilter, wrapSOLInstruction };