@meteora-ag/cp-amm-sdk 1.0.1-rc.32 → 1.0.1-rc.34

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
@@ -5232,8 +5232,6 @@ type PreparePoolCreationParams = {
5232
5232
  tokenBAmount: BN;
5233
5233
  minSqrtPrice: BN;
5234
5234
  maxSqrtPrice: BN;
5235
- tokenADecimal: number;
5236
- tokenBDecimal: number;
5237
5235
  tokenAInfo?: {
5238
5236
  mint: Mint;
5239
5237
  currentEpoch: number;
@@ -5324,6 +5322,11 @@ type RemoveLiquidityParams = {
5324
5322
  tokenBVault: PublicKey;
5325
5323
  tokenAProgram: PublicKey;
5326
5324
  tokenBProgram: PublicKey;
5325
+ vestings: Array<{
5326
+ account: PublicKey;
5327
+ vestingState: VestingState;
5328
+ }>;
5329
+ currentPoint: BN;
5327
5330
  };
5328
5331
  type RemoveAllLiquidityParams = Omit<RemoveLiquidityParams, "liquidityDelta">;
5329
5332
  type BuildAddLiquidityParams = {
@@ -5375,6 +5378,11 @@ type RemoveAllLiquidityAndClosePositionParams = {
5375
5378
  positionState: PositionState;
5376
5379
  tokenAAmountThreshold: BN;
5377
5380
  tokenBAmountThreshold: BN;
5381
+ vestings: Array<{
5382
+ account: PublicKey;
5383
+ vestingState: VestingState;
5384
+ }>;
5385
+ currentPoint: BN;
5378
5386
  };
5379
5387
  type MergePositionParams = {
5380
5388
  owner: PublicKey;
@@ -5388,6 +5396,11 @@ type MergePositionParams = {
5388
5396
  tokenBAmountAddLiquidityThreshold: BN;
5389
5397
  tokenAAmountRemoveLiquidityThreshold: BN;
5390
5398
  tokenBAmountRemoveLiquidityThreshold: BN;
5399
+ positionBVestings: Array<{
5400
+ account: PublicKey;
5401
+ vestingState: VestingState;
5402
+ }>;
5403
+ currentPoint: BN;
5391
5404
  };
5392
5405
  type GetQuoteParams = {
5393
5406
  inAmount: BN;
@@ -5523,7 +5536,7 @@ type RefreshVestingParams = {
5523
5536
  position: PublicKey;
5524
5537
  positionNftAccount: PublicKey;
5525
5538
  pool: PublicKey;
5526
- vestings: PublicKey[];
5539
+ vestingAccounts: PublicKey[];
5527
5540
  };
5528
5541
  type PermanentLockParams = {
5529
5542
  owner: PublicKey;
@@ -5632,6 +5645,12 @@ declare class CpAmm {
5632
5645
  * @returns {Promise<TransactionInstruction>} Instruction to close the position
5633
5646
  */
5634
5647
  private buildClosePositionInstruction;
5648
+ /**
5649
+ * Builds an instruction to refresh vesting for a position
5650
+ * @param params Parameters required for the refresh vesting instruction
5651
+ * @returns Transaction instruction or null if no vestings to refresh
5652
+ */
5653
+ private buildRefreshVestingInstruction;
5635
5654
  /**
5636
5655
  * Fetches the Config state of the program.
5637
5656
  * @param config - Public key of the config account.
@@ -5709,6 +5728,30 @@ declare class CpAmm {
5709
5728
  account: VestingState;
5710
5729
  }>>;
5711
5730
  isLockedPosition(position: PositionState): boolean;
5731
+ isPermanentLockedPosition(positionState: PositionState): boolean;
5732
+ /**
5733
+ * Checks if a position can be unlocked based on its locking state and vesting schedules.
5734
+ *
5735
+ * This method evaluates whether a position is eligible for operations that require
5736
+ * unlocked liquidity, such as removing all liquidity or closing the position. It checks both
5737
+ * permanent locks and time-based vesting schedules.
5738
+ *
5739
+ * @private
5740
+ * @param {PositionState} positionState - The current state of the position
5741
+ * @param {Array<{account: PublicKey; vestingState: VestingState}>} vestings - Array of vesting accounts and their states
5742
+ * @param {BN} currentPoint - Current timestamp or slot number (depending on activation type of pool)
5743
+ *
5744
+ * @returns {Object} Result object containing unlock status and reason
5745
+ * @returns {boolean} result.canUnlock - Whether the position can be unlocked
5746
+ * @returns {string|undefined} result.reason - Reason why position cannot be unlocked (if applicable)
5747
+ */
5748
+ canUnlockPosition(positionState: PositionState, vestings: Array<{
5749
+ account: PublicKey;
5750
+ vestingState: VestingState;
5751
+ }>, currentPoint: BN): {
5752
+ canUnlock: boolean;
5753
+ reason?: string;
5754
+ };
5712
5755
  isPoolExist(pool: PublicKey): Promise<boolean>;
5713
5756
  /**
5714
5757
  * Calculates swap quote based on input amount and pool state.
@@ -5985,16 +6028,14 @@ declare function getSwapAmount(inAmount: BN, sqrtPrice: BN, liquidity: BN, trade
5985
6028
  };
5986
6029
 
5987
6030
  declare function getNextSqrtPrice(amount: BN, sqrtPrice: BN, liquidity: BN, aToB: boolean): BN;
5988
- declare function getDeltaAmountA(lowerSqrtPrice: BN, upperSqrtPrice: BN, liquidity: BN, rounding: Rounding): BN;
5989
- declare function getDeltaAmountB(lowerSqrtPrice: BN, upperSqrtPrice: BN, liquidity: BN, rounding: Rounding): BN;
5990
- declare function getLiquidityDeltaFromAmountA(maxAmountA: BN, lowerSqrtPrice: BN, // current sqrt price
6031
+ declare function getLiquidityDeltaFromAmountA(amountA: BN, lowerSqrtPrice: BN, // current sqrt price
5991
6032
  upperSqrtPrice: BN): BN;
5992
- declare function getLiquidityDeltaFromAmountB(maxAmountB: BN, lowerSqrtPrice: BN, // min sqrt price
6033
+ declare function getLiquidityDeltaFromAmountB(amountB: BN, lowerSqrtPrice: BN, // min sqrt price
5993
6034
  upperSqrtPrice: BN): BN;
5994
6035
  declare function getAmountAFromLiquidityDelta(liquidity: BN, currentSqrtPrice: BN, // current sqrt price
5995
- maxSqrtPrice: BN, rounding: Rounding): string;
6036
+ maxSqrtPrice: BN, rounding: Rounding): BN;
5996
6037
  declare function getAmountBFromLiquidityDelta(liquidity: BN, currentSqrtPrice: BN, // current sqrt price,
5997
- minSqrtPrice: BN, rounding: Rounding): string;
6038
+ minSqrtPrice: BN, rounding: Rounding): BN;
5998
6039
 
5999
6040
  declare const getSimulationComputeUnits: (connection: Connection, instructions: Array<TransactionInstruction>, payer: PublicKey, lookupTables: Array<AddressLookupTableAccount> | [], commitment?: Commitment) => Promise<number | null>;
6000
6041
  /**
@@ -6065,11 +6106,31 @@ interface TransferFeeExcludedAmount {
6065
6106
  }
6066
6107
  declare function calculateTransferFeeExcludedAmount(transferFeeIncludedAmount: BN, mint: Mint, currentEpoch: number): TransferFeeExcludedAmount;
6067
6108
 
6109
+ /**
6110
+ * Checks if a vesting schedule is ready for full release
6111
+ * @param vestingData The vesting account data
6112
+ * @param currentPoint Current timestamp or slot
6113
+ * @returns True if the vesting is complete and all liquidity can be released
6114
+ */
6115
+ declare function isVestingComplete(vestingData: VestingState, currentPoint: BN): boolean;
6116
+ /**
6117
+ * Gets the total amount of liquidity in the vesting schedule
6118
+ * @param vestingData The vesting account data
6119
+ * @returns The total locked liquidity amount
6120
+ */
6121
+ declare function getTotalLockedLiquidity(vestingData: VestingState): BN;
6122
+ /**
6123
+ * Calculates the available liquidity to withdraw based on vesting schedule
6124
+ * @param vestingData The vesting account data
6125
+ * @param positionData The position account data
6126
+ * @param currentPoint Current timestamp or slot
6127
+ * @returns The amount of liquidity available to withdraw
6128
+ */
6129
+ declare function getAvailableVestingLiquidity(vestingData: VestingState, currentPoint: BN): BN;
6130
+
6068
6131
  declare const ONE: BN;
6069
6132
  declare function pow(base: BN, exp: BN): BN;
6070
6133
 
6071
- declare function mulShr(x: BN, y: BN, offset: number, rounding: Rounding): BN;
6072
- declare function shlDiv(x: BN, y: BN, offset: number, rounding: Rounding): BN;
6073
6134
  declare function mulDiv(x: BN, y: BN, denominator: BN, rounding: Rounding): BN;
6074
6135
  declare function divCeil(a: BN, b: BN): BN;
6075
6136
  declare function q64ToDecimal(num: BN, decimalPlaces?: number): Decimal;
@@ -12414,4 +12475,4 @@ var CpAmmIDL = {
12414
12475
  types: types
12415
12476
  };
12416
12477
 
12417
- export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, BASIS_POINT_MAX, type BaseFee, type BuildAddLiquidityParams, 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, 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, getBaseFeeNumerator, getDeltaAmountA, getDeltaAmountB, getDynamicFeeNumerator, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getFeeNumerator, getFirstKey, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountB, getMaxAmountWithSlippage, getMinAmountWithSlippage, getNextSqrtPrice, getNftOwner, getOrCreateATAInstruction, getPriceFromSqrtPrice, getPriceImpact, getSecondKey, getSimulationComputeUnits, getSqrtPriceFromPrice, getSwapAmount, getTokenDecimals, getTokenProgram, getUnClaimReward, mulDiv, mulShr, positionByPoolFilter, pow, q64ToDecimal, shlDiv, unwrapSOLInstruction, vestingByPositionFilter, wrapSOLInstruction };
12478
+ export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, BASIS_POINT_MAX, type BaseFee, type BuildAddLiquidityParams, 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, 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 };
package/dist/index.d.ts CHANGED
@@ -5232,8 +5232,6 @@ type PreparePoolCreationParams = {
5232
5232
  tokenBAmount: BN;
5233
5233
  minSqrtPrice: BN;
5234
5234
  maxSqrtPrice: BN;
5235
- tokenADecimal: number;
5236
- tokenBDecimal: number;
5237
5235
  tokenAInfo?: {
5238
5236
  mint: Mint;
5239
5237
  currentEpoch: number;
@@ -5324,6 +5322,11 @@ type RemoveLiquidityParams = {
5324
5322
  tokenBVault: PublicKey;
5325
5323
  tokenAProgram: PublicKey;
5326
5324
  tokenBProgram: PublicKey;
5325
+ vestings: Array<{
5326
+ account: PublicKey;
5327
+ vestingState: VestingState;
5328
+ }>;
5329
+ currentPoint: BN;
5327
5330
  };
5328
5331
  type RemoveAllLiquidityParams = Omit<RemoveLiquidityParams, "liquidityDelta">;
5329
5332
  type BuildAddLiquidityParams = {
@@ -5375,6 +5378,11 @@ type RemoveAllLiquidityAndClosePositionParams = {
5375
5378
  positionState: PositionState;
5376
5379
  tokenAAmountThreshold: BN;
5377
5380
  tokenBAmountThreshold: BN;
5381
+ vestings: Array<{
5382
+ account: PublicKey;
5383
+ vestingState: VestingState;
5384
+ }>;
5385
+ currentPoint: BN;
5378
5386
  };
5379
5387
  type MergePositionParams = {
5380
5388
  owner: PublicKey;
@@ -5388,6 +5396,11 @@ type MergePositionParams = {
5388
5396
  tokenBAmountAddLiquidityThreshold: BN;
5389
5397
  tokenAAmountRemoveLiquidityThreshold: BN;
5390
5398
  tokenBAmountRemoveLiquidityThreshold: BN;
5399
+ positionBVestings: Array<{
5400
+ account: PublicKey;
5401
+ vestingState: VestingState;
5402
+ }>;
5403
+ currentPoint: BN;
5391
5404
  };
5392
5405
  type GetQuoteParams = {
5393
5406
  inAmount: BN;
@@ -5523,7 +5536,7 @@ type RefreshVestingParams = {
5523
5536
  position: PublicKey;
5524
5537
  positionNftAccount: PublicKey;
5525
5538
  pool: PublicKey;
5526
- vestings: PublicKey[];
5539
+ vestingAccounts: PublicKey[];
5527
5540
  };
5528
5541
  type PermanentLockParams = {
5529
5542
  owner: PublicKey;
@@ -5632,6 +5645,12 @@ declare class CpAmm {
5632
5645
  * @returns {Promise<TransactionInstruction>} Instruction to close the position
5633
5646
  */
5634
5647
  private buildClosePositionInstruction;
5648
+ /**
5649
+ * Builds an instruction to refresh vesting for a position
5650
+ * @param params Parameters required for the refresh vesting instruction
5651
+ * @returns Transaction instruction or null if no vestings to refresh
5652
+ */
5653
+ private buildRefreshVestingInstruction;
5635
5654
  /**
5636
5655
  * Fetches the Config state of the program.
5637
5656
  * @param config - Public key of the config account.
@@ -5709,6 +5728,30 @@ declare class CpAmm {
5709
5728
  account: VestingState;
5710
5729
  }>>;
5711
5730
  isLockedPosition(position: PositionState): boolean;
5731
+ isPermanentLockedPosition(positionState: PositionState): boolean;
5732
+ /**
5733
+ * Checks if a position can be unlocked based on its locking state and vesting schedules.
5734
+ *
5735
+ * This method evaluates whether a position is eligible for operations that require
5736
+ * unlocked liquidity, such as removing all liquidity or closing the position. It checks both
5737
+ * permanent locks and time-based vesting schedules.
5738
+ *
5739
+ * @private
5740
+ * @param {PositionState} positionState - The current state of the position
5741
+ * @param {Array<{account: PublicKey; vestingState: VestingState}>} vestings - Array of vesting accounts and their states
5742
+ * @param {BN} currentPoint - Current timestamp or slot number (depending on activation type of pool)
5743
+ *
5744
+ * @returns {Object} Result object containing unlock status and reason
5745
+ * @returns {boolean} result.canUnlock - Whether the position can be unlocked
5746
+ * @returns {string|undefined} result.reason - Reason why position cannot be unlocked (if applicable)
5747
+ */
5748
+ canUnlockPosition(positionState: PositionState, vestings: Array<{
5749
+ account: PublicKey;
5750
+ vestingState: VestingState;
5751
+ }>, currentPoint: BN): {
5752
+ canUnlock: boolean;
5753
+ reason?: string;
5754
+ };
5712
5755
  isPoolExist(pool: PublicKey): Promise<boolean>;
5713
5756
  /**
5714
5757
  * Calculates swap quote based on input amount and pool state.
@@ -5985,16 +6028,14 @@ declare function getSwapAmount(inAmount: BN, sqrtPrice: BN, liquidity: BN, trade
5985
6028
  };
5986
6029
 
5987
6030
  declare function getNextSqrtPrice(amount: BN, sqrtPrice: BN, liquidity: BN, aToB: boolean): BN;
5988
- declare function getDeltaAmountA(lowerSqrtPrice: BN, upperSqrtPrice: BN, liquidity: BN, rounding: Rounding): BN;
5989
- declare function getDeltaAmountB(lowerSqrtPrice: BN, upperSqrtPrice: BN, liquidity: BN, rounding: Rounding): BN;
5990
- declare function getLiquidityDeltaFromAmountA(maxAmountA: BN, lowerSqrtPrice: BN, // current sqrt price
6031
+ declare function getLiquidityDeltaFromAmountA(amountA: BN, lowerSqrtPrice: BN, // current sqrt price
5991
6032
  upperSqrtPrice: BN): BN;
5992
- declare function getLiquidityDeltaFromAmountB(maxAmountB: BN, lowerSqrtPrice: BN, // min sqrt price
6033
+ declare function getLiquidityDeltaFromAmountB(amountB: BN, lowerSqrtPrice: BN, // min sqrt price
5993
6034
  upperSqrtPrice: BN): BN;
5994
6035
  declare function getAmountAFromLiquidityDelta(liquidity: BN, currentSqrtPrice: BN, // current sqrt price
5995
- maxSqrtPrice: BN, rounding: Rounding): string;
6036
+ maxSqrtPrice: BN, rounding: Rounding): BN;
5996
6037
  declare function getAmountBFromLiquidityDelta(liquidity: BN, currentSqrtPrice: BN, // current sqrt price,
5997
- minSqrtPrice: BN, rounding: Rounding): string;
6038
+ minSqrtPrice: BN, rounding: Rounding): BN;
5998
6039
 
5999
6040
  declare const getSimulationComputeUnits: (connection: Connection, instructions: Array<TransactionInstruction>, payer: PublicKey, lookupTables: Array<AddressLookupTableAccount> | [], commitment?: Commitment) => Promise<number | null>;
6000
6041
  /**
@@ -6065,11 +6106,31 @@ interface TransferFeeExcludedAmount {
6065
6106
  }
6066
6107
  declare function calculateTransferFeeExcludedAmount(transferFeeIncludedAmount: BN, mint: Mint, currentEpoch: number): TransferFeeExcludedAmount;
6067
6108
 
6109
+ /**
6110
+ * Checks if a vesting schedule is ready for full release
6111
+ * @param vestingData The vesting account data
6112
+ * @param currentPoint Current timestamp or slot
6113
+ * @returns True if the vesting is complete and all liquidity can be released
6114
+ */
6115
+ declare function isVestingComplete(vestingData: VestingState, currentPoint: BN): boolean;
6116
+ /**
6117
+ * Gets the total amount of liquidity in the vesting schedule
6118
+ * @param vestingData The vesting account data
6119
+ * @returns The total locked liquidity amount
6120
+ */
6121
+ declare function getTotalLockedLiquidity(vestingData: VestingState): BN;
6122
+ /**
6123
+ * Calculates the available liquidity to withdraw based on vesting schedule
6124
+ * @param vestingData The vesting account data
6125
+ * @param positionData The position account data
6126
+ * @param currentPoint Current timestamp or slot
6127
+ * @returns The amount of liquidity available to withdraw
6128
+ */
6129
+ declare function getAvailableVestingLiquidity(vestingData: VestingState, currentPoint: BN): BN;
6130
+
6068
6131
  declare const ONE: BN;
6069
6132
  declare function pow(base: BN, exp: BN): BN;
6070
6133
 
6071
- declare function mulShr(x: BN, y: BN, offset: number, rounding: Rounding): BN;
6072
- declare function shlDiv(x: BN, y: BN, offset: number, rounding: Rounding): BN;
6073
6134
  declare function mulDiv(x: BN, y: BN, denominator: BN, rounding: Rounding): BN;
6074
6135
  declare function divCeil(a: BN, b: BN): BN;
6075
6136
  declare function q64ToDecimal(num: BN, decimalPlaces?: number): Decimal;
@@ -12414,4 +12475,4 @@ var CpAmmIDL = {
12414
12475
  types: types
12415
12476
  };
12416
12477
 
12417
- export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, BASIS_POINT_MAX, type BaseFee, type BuildAddLiquidityParams, 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, 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, getBaseFeeNumerator, getDeltaAmountA, getDeltaAmountB, getDynamicFeeNumerator, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getFeeNumerator, getFirstKey, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountB, getMaxAmountWithSlippage, getMinAmountWithSlippage, getNextSqrtPrice, getNftOwner, getOrCreateATAInstruction, getPriceFromSqrtPrice, getPriceImpact, getSecondKey, getSimulationComputeUnits, getSqrtPriceFromPrice, getSwapAmount, getTokenDecimals, getTokenProgram, getUnClaimReward, mulDiv, mulShr, positionByPoolFilter, pow, q64ToDecimal, shlDiv, unwrapSOLInstruction, vestingByPositionFilter, wrapSOLInstruction };
12478
+ export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, BASIS_POINT_MAX, type BaseFee, type BuildAddLiquidityParams, 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, 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 };