@meteora-ag/cp-amm-sdk 1.3.7 → 1.3.9
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 +30 -3
- package/dist/index.d.ts +30 -3
- package/dist/index.js +47 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +46 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -7404,6 +7404,11 @@ declare class CpAmm {
|
|
|
7404
7404
|
publicKey: PublicKey;
|
|
7405
7405
|
account: ConfigState;
|
|
7406
7406
|
}>>;
|
|
7407
|
+
/**
|
|
7408
|
+
* Retrieves static config public keys where vault and creator authority are default.
|
|
7409
|
+
* @returns Array of static config public keys.
|
|
7410
|
+
*/
|
|
7411
|
+
getStaticConfigs(): Promise<PublicKey[]>;
|
|
7407
7412
|
/**
|
|
7408
7413
|
* Retrieves all pool accounts.
|
|
7409
7414
|
* @returns Array of pool public keys and their states.
|
|
@@ -8461,7 +8466,28 @@ declare function fromDecimalToBN(value: Decimal): BN$1;
|
|
|
8461
8466
|
* @returns The fee scheduler parameters
|
|
8462
8467
|
*/
|
|
8463
8468
|
declare function getFeeTimeSchedulerParams(startingBaseFeeBps: number, endingBaseFeeBps: number, baseFeeMode: BaseFeeMode, numberOfPeriod: number, totalDuration: number): BaseFee;
|
|
8464
|
-
|
|
8469
|
+
/**
|
|
8470
|
+
* Computes the sqrtPriceStepBps needed so that the fee schedule is fully
|
|
8471
|
+
* exhausted when spot price reaches a given multiple of the initial price.
|
|
8472
|
+
* @param priceMultiple - Target spot-price multiple (e.g. 1000 for 1000x)
|
|
8473
|
+
* @param numberOfPeriod - Number of fee reduction periods
|
|
8474
|
+
* @returns The sqrtPriceStepBps value to use on-chain
|
|
8475
|
+
*/
|
|
8476
|
+
declare function computeSqrtPriceStepBps(priceMultiple: number, numberOfPeriod: number): number;
|
|
8477
|
+
/**
|
|
8478
|
+
* Gets the fee market cap scheduler parameters. Derives sqrtPriceStepBps
|
|
8479
|
+
* automatically from starting/ending market cap so the fee schedule is
|
|
8480
|
+
* fully exhausted when the token grows from startingMarketCap to endingMarketCap.
|
|
8481
|
+
* @param startingBaseFeeBps - Starting (max) fee in basis points
|
|
8482
|
+
* @param endingBaseFeeBps - Ending (min) fee in basis points
|
|
8483
|
+
* @param baseFeeMode - Linear or exponential decay
|
|
8484
|
+
* @param numberOfPeriod - Number of fee reduction periods
|
|
8485
|
+
* @param startingMarketCap - Initial market cap (e.g. 20_000 for $20k)
|
|
8486
|
+
* @param endingMarketCap - Target market cap (e.g. 20_000_000 for $20M)
|
|
8487
|
+
* @param schedulerExpirationDuration - Seconds after which the schedule expires to the ending fee regardless of price
|
|
8488
|
+
* @returns BaseFee with the computed sqrtPriceStepBps encoded
|
|
8489
|
+
*/
|
|
8490
|
+
declare function getFeeMarketCapSchedulerParams(startingBaseFeeBps: number, endingBaseFeeBps: number, baseFeeMode: BaseFeeMode, numberOfPeriod: number, startingMarketCap: number, endingMarketCap: number, schedulerExpirationDuration: number): BaseFee;
|
|
8465
8491
|
/**
|
|
8466
8492
|
* Gets the rate limiter parameters
|
|
8467
8493
|
* @param baseFeeBps - The base fee in basis points
|
|
@@ -8502,7 +8528,8 @@ declare function getBaseFeeParams(baseFeeParams: {
|
|
|
8502
8528
|
startingFeeBps: number;
|
|
8503
8529
|
endingFeeBps: number;
|
|
8504
8530
|
numberOfPeriod: number;
|
|
8505
|
-
|
|
8531
|
+
startingMarketCap: number;
|
|
8532
|
+
endingMarketCap: number;
|
|
8506
8533
|
schedulerExpirationDuration: number;
|
|
8507
8534
|
};
|
|
8508
8535
|
}, tokenBDecimal: number, activationType: ActivationType): BaseFee;
|
|
@@ -17489,4 +17516,4 @@ var cp_amm = {
|
|
|
17489
17516
|
constants: constants
|
|
17490
17517
|
};
|
|
17491
17518
|
|
|
17492
|
-
export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, AmountIsZeroError, BASIS_POINT_MAX, BIN_STEP_BPS_DEFAULT, BIN_STEP_BPS_U128_DEFAULT, type BaseFee, type BaseFeeHandler, BaseFeeMode, type BorshFeeMarketCapScheduler, type BorshFeeRateLimiter, type BorshFeeTimeScheduler, type BuildAddLiquidityParams, type BuildLiquidatePositionInstructionParams, type BuildRemoveAllLiquidityInstructionParams, CP_AMM_PROGRAM_ID, CURRENT_POOL_VERSION, type ClaimPositionFeeInstructionParams, type ClaimPositionFeeParams, type ClaimPositionFeeParams2, type ClaimRewardParams, type ClosePositionInstructionParams, type ClosePositionParams, CollectFeeMode, CompoundingLiquidityHandler, ConcentratedLiquidityHandler, type ConfigState, CpAmm, cp_amm as CpAmmIdl, type CpAmm$1 as CpAmmTypes, type CreatePoolParams, type CreatePositionAndAddLiquidity, type CreatePositionParams, DEAD_LIQUIDITY, DYNAMIC_FEE_DECAY_PERIOD_DEFAULT, DYNAMIC_FEE_FILTER_PERIOD_DEFAULT, DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT, DYNAMIC_FEE_ROUNDING_OFFSET, DYNAMIC_FEE_SCALING_FACTOR, type DecodedPoolFees, type DepositQuote, DepositTokenNotAcceptedError, type DynamicFee, type DynamicFeeParams, type DynamicFeeStruct, ExceedMaxFeeBpsError, FEE_DENOMINATOR, FeeMarketCapScheduler, type FeeMode, type FeeOnAmountResult, FeeRateLimiter, FeeTimeScheduler, type FundRewardParams, type GetDepositQuoteParams, type GetQuote2Params, type GetQuoteParams, type GetWithdrawQuoteParams, type InitialPoolInformation, type InitializeAndFundReward, type InitializeCustomizeablePoolParams, type InitializeCustomizeablePoolWithDynamicConfigParams, type InitializeRewardParams, type InnerVesting, InsufficientLiquidityError, InvalidActivationTypeError, InvalidBaseFeeModeError, InvalidCollectFeeModeError, InvalidCompoundingFeeBpsError, InvalidDynamicFeeParametersError, InvalidFeeError, InvalidFeeMarketCapSchedulerError, InvalidFeeRateLimiterError, InvalidFeeTimeSchedulerError, InvalidInputError, InvalidMinimumLiquidityError, InvalidParametersError, InvalidPoolVersionError, InvalidPriceRangeError, InvalidRewardDurationError, InvalidRewardIndexError, InvalidSplitPositionParametersError, InvalidVestingInfoError, LIQUIDITY_SCALE, LayoutVersion, type LiquidityDeltaParams, type LiquidityHandler, type LockPositionParams, MAX, MAX_CU_BUFFER, MAX_EXPONENTIAL, MAX_FEE_BPS_V0, MAX_FEE_BPS_V1, MAX_FEE_NUMERATOR_V0, MAX_FEE_NUMERATOR_V1, MAX_PRICE_CHANGE_BPS_DEFAULT, MAX_RATE_LIMITER_DURATION_IN_SECONDS, MAX_RATE_LIMITER_DURATION_IN_SLOTS, MAX_REWARD_DURATION, MAX_SQRT_PRICE, MIN_CU_BUFFER, MIN_FEE_BPS, MIN_FEE_NUMERATOR, MIN_REWARD_DURATION, MIN_SQRT_PRICE, MathOverflowError, type MergePositionParams, NUM_REWARDS, ONE_Q64, type PermanentLockParams, type PodAlignedFeeMarketCapScheduler, type PodAlignedFeeRateLimiter, type PodAlignedFeeTimeScheduler, type PoolFeesParams, type PoolFeesStruct, type PoolState, PoolStatus, type PositionState, type PrepareCustomizablePoolParams, type PreparePoolCreationParams, type PreparePoolCreationSingleSide, type PrepareTokenAccountParams, type PreparedPoolCreation, PriceRangeViolationError, type Quote2Result, type RefreshVestingParams, type RemoveAllLiquidityAndClosePositionParams, type RemoveAllLiquidityParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, SPLIT_POSITION_DENOMINATOR, SameTokenMintsError, type SetupFeeClaimAccountsParams, type SplitFees, type SplitPosition2Params, type SplitPositionParams, type Swap2Params, type SwapAmount, type SwapAmountFromInput, type SwapAmountFromOutput, SwapDisabledError, SwapMode, type SwapParams, type SwapResult2, type TokenBadgeState, TradeDirection, type TransferHookState, type TxBuilder, U128_MAX, U16_MAX, U24_MAX, U64_MAX, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type UserRewardInfo, type VestingState, type WithdrawIneligibleRewardParams, type WithdrawQuote, applySwapResult, bpsToFeeNumerator, calculateAtoBFromAmountInForCompoundingLiquidity, calculateAtoBFromAmountInForConcentratedLiquidity, calculateAtoBFromAmountOutForCompoundingLiquidity, calculateAtoBFromAmountOutForConcentratedLiquidity, calculateAtoBFromPartialAmountInForCompoundingLiquidity, calculateAtoBFromPartialAmountInForConcentratedLiquidity, calculateBtoAFromAmountInForCompoundingLiquidity, calculateBtoAFromAmountInForConcentratedLiquidity, calculateBtoAFromAmountOutForCompoundingLiquidity, calculateBtoAFromAmountOutForConcentratedLiquidity, calculateBtoAFromPartialAmountInForCompoundingLiquidity, calculateBtoAFromPartialAmountInForConcentratedLiquidity, calculateInitSqrtPrice, calculateTransferFeeExcludedAmount, calculateTransferFeeIncludedAmount, convertToFeeSchedulerSecondFactor, convertToLamports, convertToRateLimiterSecondFactor, cpAmmCoder, decimalToQ64, decodeFeeMarketCapSchedulerParams, decodeFeeRateLimiterParams, decodeFeeTimeSchedulerParams, decodePodAlignedFeeMarketCapScheduler, decodePodAlignedFeeRateLimiter, decodePodAlignedFeeTimeScheduler, deriveClaimFeeOperatorAddress, deriveConfigAddress, deriveCustomizablePoolAddress, deriveOperatorAddress, derivePoolAddress, derivePoolAuthority, derivePositionAddress, derivePositionNftAccount, deriveRewardVaultAddress, deriveTokenBadgeAddress, deriveTokenVaultAddress, encodeFeeMarketCapSchedulerParams, encodeFeeRateLimiterParams, encodeFeeTimeSchedulerParams, feeNumeratorToBps, fromDecimalToBN, getAllPositionNftAccountByOwner, getAllUserPositionNftAccount, getAmountAFromLiquidityDelta, getAmountAFromLiquidityDeltaForCompoundingLiquidity, getAmountAFromLiquidityDeltaForConcentratedLiquidity, getAmountBFromLiquidityDelta, getAmountBFromLiquidityDeltaForCompoundingLiquidity, getAmountBFromLiquidityDeltaForConcentratedLiquidity, getAmountWithSlippage, getAmountsForModifyForCompoundingLiquidity, getAmountsForModifyForConcentratedLiquidity, getAvailableVestingLiquidity, getBaseFeeHandlerFromBorshData, getBaseFeeHandlerFromPodAlignedData, getBaseFeeParams, getCheckedAmounts, getCurrentPoint, getDynamicFeeNumerator, getDynamicFeeParams, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getExcludedFeeAmount, getExcludedFeeAmountFromIncludedFeeAmount, getFeeInPeriod, getFeeMarketCapBaseFeeNumerator, getFeeMarketCapBaseFeeNumeratorByPeriod, getFeeMarketCapMinBaseFeeNumerator, getFeeMarketCapSchedulerParams, getFeeMode, getFeeNumeratorFromExcludedFeeAmount, getFeeNumeratorFromIncludedFeeAmount, getFeeNumeratorOnExponentialFeeScheduler, getFeeNumeratorOnLinearFeeScheduler, getFeeOnAmount, getFeeTimeBaseFeeNumerator, getFeeTimeBaseFeeNumeratorByPeriod, getFeeTimeMinBaseFeeNumerator, getFeeTimeSchedulerParams, getFirstKey, getIncludedFeeAmount, getInitialCompoundingPoolInformation, getInitialConcentratedLiquidityPoolInformation, getInitialPoolInformation, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountAForCompoundingLiquidity, getLiquidityDeltaFromAmountAForConcentratedLiquidity, getLiquidityDeltaFromAmountB, getLiquidityDeltaFromAmountBForCompoundingLiquidity, getLiquidityDeltaFromAmountBForConcentratedLiquidity, getLiquidityHandler, getMaxAmountWithSlippage, getMaxBaseFeeNumerator, getMaxFeeBps, getMaxFeeNumerator, getMaxIndex, getNextSqrtPriceForCompoundingLiquidity, getNextSqrtPriceFromAmountInARoundingUp, getNextSqrtPriceFromAmountInBRoundingDown, getNextSqrtPriceFromAmountOutARoundingUp, getNextSqrtPriceFromAmountOutBRoundingDown, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getOrCreateATAInstruction, getPoolCreationAmountAFromLiquidityDeltaForCompoundingLiquidity, getPoolCreationAmountBFromLiquidityDeltaForCompoundingLiquidity, getPoolCreationLiquidityDeltaFromAmountAForCompoundingLiquidity, getPoolCreationLiquidityDeltaFromAmountBForCompoundingLiquidity, getPriceChange, getPriceFromSqrtPrice, getPriceImpact, getRateLimiterMaxBaseFeeNumerator, getRateLimiterMinBaseFeeNumerator, getRateLimiterParams, getReservesAmountForCompoundingLiquidity, getReservesAmountForConcentratedLiquidity, getRewardInfo, getSecondKey, getSimulationComputeUnits, getSqrtPriceFromAmountsForCompoundingLiquidity, getSqrtPriceFromPrice, getSwapResultFromExactInput, getSwapResultFromExactOutput, getSwapResultFromPartialInput, getTokenDecimals, getTokenProgram, getTotalFeeNumerator, getTotalLockedLiquidity, getTotalTradingFeeFromExcludedFeeAmount, getTotalTradingFeeFromIncludedFeeAmount, getUnClaimLpFee, getUserRewardPending, hasTransferHookExtension, isDynamicFeeEnabled, isNonZeroRateLimiter, isRateLimiterApplied, isSwapEnabled, isVestingComplete, isZeroRateLimiter, mulDiv, offsetBasedFilter, parseFeeSchedulerSecondFactor, parseRateLimiterSecondFactor, positionByPoolFilter, pow, q64ToDecimal, splitFees, sqrt, swapQuoteExactInput, swapQuoteExactOutput, swapQuotePartialInput, toNumerator, unwrapSOLInstruction, validateActivationType, validateAddLiquidityParams, validateCollectFeeMode, validateCompoundingFee, validateCreatePoolParams, validateCustomizablePoolParams, validateDynamicFee, validateFeeFraction, validateFeeMarketCapBaseFeeIsStatic, validateFeeMarketCapScheduler, validateFeeRateLimiter, validateFeeRateLimiterBaseFeeIsStatic, validateFeeTimeScheduler, validateFeeTimeSchedulerBaseFeeIsStatic, validateInitialSqrtPrice, validateLockPositionParams, validateNoTransferHook, validatePoolFees, validatePriceRange, validateRemoveLiquidityParams, validateRewardDuration, validateRewardIndex, validateSplitPosition2Params, validateSplitPositionParams, validateTokenMints, vestingByPositionFilter, wrapSOLInstruction };
|
|
17519
|
+
export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, AmountIsZeroError, BASIS_POINT_MAX, BIN_STEP_BPS_DEFAULT, BIN_STEP_BPS_U128_DEFAULT, type BaseFee, type BaseFeeHandler, BaseFeeMode, type BorshFeeMarketCapScheduler, type BorshFeeRateLimiter, type BorshFeeTimeScheduler, type BuildAddLiquidityParams, type BuildLiquidatePositionInstructionParams, type BuildRemoveAllLiquidityInstructionParams, CP_AMM_PROGRAM_ID, CURRENT_POOL_VERSION, type ClaimPositionFeeInstructionParams, type ClaimPositionFeeParams, type ClaimPositionFeeParams2, type ClaimRewardParams, type ClosePositionInstructionParams, type ClosePositionParams, CollectFeeMode, CompoundingLiquidityHandler, ConcentratedLiquidityHandler, type ConfigState, CpAmm, cp_amm as CpAmmIdl, type CpAmm$1 as CpAmmTypes, type CreatePoolParams, type CreatePositionAndAddLiquidity, type CreatePositionParams, DEAD_LIQUIDITY, DYNAMIC_FEE_DECAY_PERIOD_DEFAULT, DYNAMIC_FEE_FILTER_PERIOD_DEFAULT, DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT, DYNAMIC_FEE_ROUNDING_OFFSET, DYNAMIC_FEE_SCALING_FACTOR, type DecodedPoolFees, type DepositQuote, DepositTokenNotAcceptedError, type DynamicFee, type DynamicFeeParams, type DynamicFeeStruct, ExceedMaxFeeBpsError, FEE_DENOMINATOR, FeeMarketCapScheduler, type FeeMode, type FeeOnAmountResult, FeeRateLimiter, FeeTimeScheduler, type FundRewardParams, type GetDepositQuoteParams, type GetQuote2Params, type GetQuoteParams, type GetWithdrawQuoteParams, type InitialPoolInformation, type InitializeAndFundReward, type InitializeCustomizeablePoolParams, type InitializeCustomizeablePoolWithDynamicConfigParams, type InitializeRewardParams, type InnerVesting, InsufficientLiquidityError, InvalidActivationTypeError, InvalidBaseFeeModeError, InvalidCollectFeeModeError, InvalidCompoundingFeeBpsError, InvalidDynamicFeeParametersError, InvalidFeeError, InvalidFeeMarketCapSchedulerError, InvalidFeeRateLimiterError, InvalidFeeTimeSchedulerError, InvalidInputError, InvalidMinimumLiquidityError, InvalidParametersError, InvalidPoolVersionError, InvalidPriceRangeError, InvalidRewardDurationError, InvalidRewardIndexError, InvalidSplitPositionParametersError, InvalidVestingInfoError, LIQUIDITY_SCALE, LayoutVersion, type LiquidityDeltaParams, type LiquidityHandler, type LockPositionParams, MAX, MAX_CU_BUFFER, MAX_EXPONENTIAL, MAX_FEE_BPS_V0, MAX_FEE_BPS_V1, MAX_FEE_NUMERATOR_V0, MAX_FEE_NUMERATOR_V1, MAX_PRICE_CHANGE_BPS_DEFAULT, MAX_RATE_LIMITER_DURATION_IN_SECONDS, MAX_RATE_LIMITER_DURATION_IN_SLOTS, MAX_REWARD_DURATION, MAX_SQRT_PRICE, MIN_CU_BUFFER, MIN_FEE_BPS, MIN_FEE_NUMERATOR, MIN_REWARD_DURATION, MIN_SQRT_PRICE, MathOverflowError, type MergePositionParams, NUM_REWARDS, ONE_Q64, type PermanentLockParams, type PodAlignedFeeMarketCapScheduler, type PodAlignedFeeRateLimiter, type PodAlignedFeeTimeScheduler, type PoolFeesParams, type PoolFeesStruct, type PoolState, PoolStatus, type PositionState, type PrepareCustomizablePoolParams, type PreparePoolCreationParams, type PreparePoolCreationSingleSide, type PrepareTokenAccountParams, type PreparedPoolCreation, PriceRangeViolationError, type Quote2Result, type RefreshVestingParams, type RemoveAllLiquidityAndClosePositionParams, type RemoveAllLiquidityParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, SPLIT_POSITION_DENOMINATOR, SameTokenMintsError, type SetupFeeClaimAccountsParams, type SplitFees, type SplitPosition2Params, type SplitPositionParams, type Swap2Params, type SwapAmount, type SwapAmountFromInput, type SwapAmountFromOutput, SwapDisabledError, SwapMode, type SwapParams, type SwapResult2, type TokenBadgeState, TradeDirection, type TransferHookState, type TxBuilder, U128_MAX, U16_MAX, U24_MAX, U64_MAX, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type UserRewardInfo, type VestingState, type WithdrawIneligibleRewardParams, type WithdrawQuote, applySwapResult, bpsToFeeNumerator, calculateAtoBFromAmountInForCompoundingLiquidity, calculateAtoBFromAmountInForConcentratedLiquidity, calculateAtoBFromAmountOutForCompoundingLiquidity, calculateAtoBFromAmountOutForConcentratedLiquidity, calculateAtoBFromPartialAmountInForCompoundingLiquidity, calculateAtoBFromPartialAmountInForConcentratedLiquidity, calculateBtoAFromAmountInForCompoundingLiquidity, calculateBtoAFromAmountInForConcentratedLiquidity, calculateBtoAFromAmountOutForCompoundingLiquidity, calculateBtoAFromAmountOutForConcentratedLiquidity, calculateBtoAFromPartialAmountInForCompoundingLiquidity, calculateBtoAFromPartialAmountInForConcentratedLiquidity, calculateInitSqrtPrice, calculateTransferFeeExcludedAmount, calculateTransferFeeIncludedAmount, computeSqrtPriceStepBps, convertToFeeSchedulerSecondFactor, convertToLamports, convertToRateLimiterSecondFactor, cpAmmCoder, decimalToQ64, decodeFeeMarketCapSchedulerParams, decodeFeeRateLimiterParams, decodeFeeTimeSchedulerParams, decodePodAlignedFeeMarketCapScheduler, decodePodAlignedFeeRateLimiter, decodePodAlignedFeeTimeScheduler, deriveClaimFeeOperatorAddress, deriveConfigAddress, deriveCustomizablePoolAddress, deriveOperatorAddress, derivePoolAddress, derivePoolAuthority, derivePositionAddress, derivePositionNftAccount, deriveRewardVaultAddress, deriveTokenBadgeAddress, deriveTokenVaultAddress, encodeFeeMarketCapSchedulerParams, encodeFeeRateLimiterParams, encodeFeeTimeSchedulerParams, feeNumeratorToBps, fromDecimalToBN, getAllPositionNftAccountByOwner, getAllUserPositionNftAccount, getAmountAFromLiquidityDelta, getAmountAFromLiquidityDeltaForCompoundingLiquidity, getAmountAFromLiquidityDeltaForConcentratedLiquidity, getAmountBFromLiquidityDelta, getAmountBFromLiquidityDeltaForCompoundingLiquidity, getAmountBFromLiquidityDeltaForConcentratedLiquidity, getAmountWithSlippage, getAmountsForModifyForCompoundingLiquidity, getAmountsForModifyForConcentratedLiquidity, getAvailableVestingLiquidity, getBaseFeeHandlerFromBorshData, getBaseFeeHandlerFromPodAlignedData, getBaseFeeParams, getCheckedAmounts, getCurrentPoint, getDynamicFeeNumerator, getDynamicFeeParams, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getExcludedFeeAmount, getExcludedFeeAmountFromIncludedFeeAmount, getFeeInPeriod, getFeeMarketCapBaseFeeNumerator, getFeeMarketCapBaseFeeNumeratorByPeriod, getFeeMarketCapMinBaseFeeNumerator, getFeeMarketCapSchedulerParams, getFeeMode, getFeeNumeratorFromExcludedFeeAmount, getFeeNumeratorFromIncludedFeeAmount, getFeeNumeratorOnExponentialFeeScheduler, getFeeNumeratorOnLinearFeeScheduler, getFeeOnAmount, getFeeTimeBaseFeeNumerator, getFeeTimeBaseFeeNumeratorByPeriod, getFeeTimeMinBaseFeeNumerator, getFeeTimeSchedulerParams, getFirstKey, getIncludedFeeAmount, getInitialCompoundingPoolInformation, getInitialConcentratedLiquidityPoolInformation, getInitialPoolInformation, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountAForCompoundingLiquidity, getLiquidityDeltaFromAmountAForConcentratedLiquidity, getLiquidityDeltaFromAmountB, getLiquidityDeltaFromAmountBForCompoundingLiquidity, getLiquidityDeltaFromAmountBForConcentratedLiquidity, getLiquidityHandler, getMaxAmountWithSlippage, getMaxBaseFeeNumerator, getMaxFeeBps, getMaxFeeNumerator, getMaxIndex, getNextSqrtPriceForCompoundingLiquidity, getNextSqrtPriceFromAmountInARoundingUp, getNextSqrtPriceFromAmountInBRoundingDown, getNextSqrtPriceFromAmountOutARoundingUp, getNextSqrtPriceFromAmountOutBRoundingDown, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getOrCreateATAInstruction, getPoolCreationAmountAFromLiquidityDeltaForCompoundingLiquidity, getPoolCreationAmountBFromLiquidityDeltaForCompoundingLiquidity, getPoolCreationLiquidityDeltaFromAmountAForCompoundingLiquidity, getPoolCreationLiquidityDeltaFromAmountBForCompoundingLiquidity, getPriceChange, getPriceFromSqrtPrice, getPriceImpact, getRateLimiterMaxBaseFeeNumerator, getRateLimiterMinBaseFeeNumerator, getRateLimiterParams, getReservesAmountForCompoundingLiquidity, getReservesAmountForConcentratedLiquidity, getRewardInfo, getSecondKey, getSimulationComputeUnits, getSqrtPriceFromAmountsForCompoundingLiquidity, getSqrtPriceFromPrice, getSwapResultFromExactInput, getSwapResultFromExactOutput, getSwapResultFromPartialInput, getTokenDecimals, getTokenProgram, getTotalFeeNumerator, getTotalLockedLiquidity, getTotalTradingFeeFromExcludedFeeAmount, getTotalTradingFeeFromIncludedFeeAmount, getUnClaimLpFee, getUserRewardPending, hasTransferHookExtension, isDynamicFeeEnabled, isNonZeroRateLimiter, isRateLimiterApplied, isSwapEnabled, isVestingComplete, isZeroRateLimiter, mulDiv, offsetBasedFilter, parseFeeSchedulerSecondFactor, parseRateLimiterSecondFactor, positionByPoolFilter, pow, q64ToDecimal, splitFees, sqrt, swapQuoteExactInput, swapQuoteExactOutput, swapQuotePartialInput, toNumerator, unwrapSOLInstruction, validateActivationType, validateAddLiquidityParams, validateCollectFeeMode, validateCompoundingFee, validateCreatePoolParams, validateCustomizablePoolParams, validateDynamicFee, validateFeeFraction, validateFeeMarketCapBaseFeeIsStatic, validateFeeMarketCapScheduler, validateFeeRateLimiter, validateFeeRateLimiterBaseFeeIsStatic, validateFeeTimeScheduler, validateFeeTimeSchedulerBaseFeeIsStatic, validateInitialSqrtPrice, validateLockPositionParams, validateNoTransferHook, validatePoolFees, validatePriceRange, validateRemoveLiquidityParams, validateRewardDuration, validateRewardIndex, validateSplitPosition2Params, validateSplitPositionParams, validateTokenMints, vestingByPositionFilter, wrapSOLInstruction };
|
package/dist/index.d.ts
CHANGED
|
@@ -7404,6 +7404,11 @@ declare class CpAmm {
|
|
|
7404
7404
|
publicKey: PublicKey;
|
|
7405
7405
|
account: ConfigState;
|
|
7406
7406
|
}>>;
|
|
7407
|
+
/**
|
|
7408
|
+
* Retrieves static config public keys where vault and creator authority are default.
|
|
7409
|
+
* @returns Array of static config public keys.
|
|
7410
|
+
*/
|
|
7411
|
+
getStaticConfigs(): Promise<PublicKey[]>;
|
|
7407
7412
|
/**
|
|
7408
7413
|
* Retrieves all pool accounts.
|
|
7409
7414
|
* @returns Array of pool public keys and their states.
|
|
@@ -8461,7 +8466,28 @@ declare function fromDecimalToBN(value: Decimal): BN$1;
|
|
|
8461
8466
|
* @returns The fee scheduler parameters
|
|
8462
8467
|
*/
|
|
8463
8468
|
declare function getFeeTimeSchedulerParams(startingBaseFeeBps: number, endingBaseFeeBps: number, baseFeeMode: BaseFeeMode, numberOfPeriod: number, totalDuration: number): BaseFee;
|
|
8464
|
-
|
|
8469
|
+
/**
|
|
8470
|
+
* Computes the sqrtPriceStepBps needed so that the fee schedule is fully
|
|
8471
|
+
* exhausted when spot price reaches a given multiple of the initial price.
|
|
8472
|
+
* @param priceMultiple - Target spot-price multiple (e.g. 1000 for 1000x)
|
|
8473
|
+
* @param numberOfPeriod - Number of fee reduction periods
|
|
8474
|
+
* @returns The sqrtPriceStepBps value to use on-chain
|
|
8475
|
+
*/
|
|
8476
|
+
declare function computeSqrtPriceStepBps(priceMultiple: number, numberOfPeriod: number): number;
|
|
8477
|
+
/**
|
|
8478
|
+
* Gets the fee market cap scheduler parameters. Derives sqrtPriceStepBps
|
|
8479
|
+
* automatically from starting/ending market cap so the fee schedule is
|
|
8480
|
+
* fully exhausted when the token grows from startingMarketCap to endingMarketCap.
|
|
8481
|
+
* @param startingBaseFeeBps - Starting (max) fee in basis points
|
|
8482
|
+
* @param endingBaseFeeBps - Ending (min) fee in basis points
|
|
8483
|
+
* @param baseFeeMode - Linear or exponential decay
|
|
8484
|
+
* @param numberOfPeriod - Number of fee reduction periods
|
|
8485
|
+
* @param startingMarketCap - Initial market cap (e.g. 20_000 for $20k)
|
|
8486
|
+
* @param endingMarketCap - Target market cap (e.g. 20_000_000 for $20M)
|
|
8487
|
+
* @param schedulerExpirationDuration - Seconds after which the schedule expires to the ending fee regardless of price
|
|
8488
|
+
* @returns BaseFee with the computed sqrtPriceStepBps encoded
|
|
8489
|
+
*/
|
|
8490
|
+
declare function getFeeMarketCapSchedulerParams(startingBaseFeeBps: number, endingBaseFeeBps: number, baseFeeMode: BaseFeeMode, numberOfPeriod: number, startingMarketCap: number, endingMarketCap: number, schedulerExpirationDuration: number): BaseFee;
|
|
8465
8491
|
/**
|
|
8466
8492
|
* Gets the rate limiter parameters
|
|
8467
8493
|
* @param baseFeeBps - The base fee in basis points
|
|
@@ -8502,7 +8528,8 @@ declare function getBaseFeeParams(baseFeeParams: {
|
|
|
8502
8528
|
startingFeeBps: number;
|
|
8503
8529
|
endingFeeBps: number;
|
|
8504
8530
|
numberOfPeriod: number;
|
|
8505
|
-
|
|
8531
|
+
startingMarketCap: number;
|
|
8532
|
+
endingMarketCap: number;
|
|
8506
8533
|
schedulerExpirationDuration: number;
|
|
8507
8534
|
};
|
|
8508
8535
|
}, tokenBDecimal: number, activationType: ActivationType): BaseFee;
|
|
@@ -17489,4 +17516,4 @@ var cp_amm = {
|
|
|
17489
17516
|
constants: constants
|
|
17490
17517
|
};
|
|
17491
17518
|
|
|
17492
|
-
export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, AmountIsZeroError, BASIS_POINT_MAX, BIN_STEP_BPS_DEFAULT, BIN_STEP_BPS_U128_DEFAULT, type BaseFee, type BaseFeeHandler, BaseFeeMode, type BorshFeeMarketCapScheduler, type BorshFeeRateLimiter, type BorshFeeTimeScheduler, type BuildAddLiquidityParams, type BuildLiquidatePositionInstructionParams, type BuildRemoveAllLiquidityInstructionParams, CP_AMM_PROGRAM_ID, CURRENT_POOL_VERSION, type ClaimPositionFeeInstructionParams, type ClaimPositionFeeParams, type ClaimPositionFeeParams2, type ClaimRewardParams, type ClosePositionInstructionParams, type ClosePositionParams, CollectFeeMode, CompoundingLiquidityHandler, ConcentratedLiquidityHandler, type ConfigState, CpAmm, cp_amm as CpAmmIdl, type CpAmm$1 as CpAmmTypes, type CreatePoolParams, type CreatePositionAndAddLiquidity, type CreatePositionParams, DEAD_LIQUIDITY, DYNAMIC_FEE_DECAY_PERIOD_DEFAULT, DYNAMIC_FEE_FILTER_PERIOD_DEFAULT, DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT, DYNAMIC_FEE_ROUNDING_OFFSET, DYNAMIC_FEE_SCALING_FACTOR, type DecodedPoolFees, type DepositQuote, DepositTokenNotAcceptedError, type DynamicFee, type DynamicFeeParams, type DynamicFeeStruct, ExceedMaxFeeBpsError, FEE_DENOMINATOR, FeeMarketCapScheduler, type FeeMode, type FeeOnAmountResult, FeeRateLimiter, FeeTimeScheduler, type FundRewardParams, type GetDepositQuoteParams, type GetQuote2Params, type GetQuoteParams, type GetWithdrawQuoteParams, type InitialPoolInformation, type InitializeAndFundReward, type InitializeCustomizeablePoolParams, type InitializeCustomizeablePoolWithDynamicConfigParams, type InitializeRewardParams, type InnerVesting, InsufficientLiquidityError, InvalidActivationTypeError, InvalidBaseFeeModeError, InvalidCollectFeeModeError, InvalidCompoundingFeeBpsError, InvalidDynamicFeeParametersError, InvalidFeeError, InvalidFeeMarketCapSchedulerError, InvalidFeeRateLimiterError, InvalidFeeTimeSchedulerError, InvalidInputError, InvalidMinimumLiquidityError, InvalidParametersError, InvalidPoolVersionError, InvalidPriceRangeError, InvalidRewardDurationError, InvalidRewardIndexError, InvalidSplitPositionParametersError, InvalidVestingInfoError, LIQUIDITY_SCALE, LayoutVersion, type LiquidityDeltaParams, type LiquidityHandler, type LockPositionParams, MAX, MAX_CU_BUFFER, MAX_EXPONENTIAL, MAX_FEE_BPS_V0, MAX_FEE_BPS_V1, MAX_FEE_NUMERATOR_V0, MAX_FEE_NUMERATOR_V1, MAX_PRICE_CHANGE_BPS_DEFAULT, MAX_RATE_LIMITER_DURATION_IN_SECONDS, MAX_RATE_LIMITER_DURATION_IN_SLOTS, MAX_REWARD_DURATION, MAX_SQRT_PRICE, MIN_CU_BUFFER, MIN_FEE_BPS, MIN_FEE_NUMERATOR, MIN_REWARD_DURATION, MIN_SQRT_PRICE, MathOverflowError, type MergePositionParams, NUM_REWARDS, ONE_Q64, type PermanentLockParams, type PodAlignedFeeMarketCapScheduler, type PodAlignedFeeRateLimiter, type PodAlignedFeeTimeScheduler, type PoolFeesParams, type PoolFeesStruct, type PoolState, PoolStatus, type PositionState, type PrepareCustomizablePoolParams, type PreparePoolCreationParams, type PreparePoolCreationSingleSide, type PrepareTokenAccountParams, type PreparedPoolCreation, PriceRangeViolationError, type Quote2Result, type RefreshVestingParams, type RemoveAllLiquidityAndClosePositionParams, type RemoveAllLiquidityParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, SPLIT_POSITION_DENOMINATOR, SameTokenMintsError, type SetupFeeClaimAccountsParams, type SplitFees, type SplitPosition2Params, type SplitPositionParams, type Swap2Params, type SwapAmount, type SwapAmountFromInput, type SwapAmountFromOutput, SwapDisabledError, SwapMode, type SwapParams, type SwapResult2, type TokenBadgeState, TradeDirection, type TransferHookState, type TxBuilder, U128_MAX, U16_MAX, U24_MAX, U64_MAX, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type UserRewardInfo, type VestingState, type WithdrawIneligibleRewardParams, type WithdrawQuote, applySwapResult, bpsToFeeNumerator, calculateAtoBFromAmountInForCompoundingLiquidity, calculateAtoBFromAmountInForConcentratedLiquidity, calculateAtoBFromAmountOutForCompoundingLiquidity, calculateAtoBFromAmountOutForConcentratedLiquidity, calculateAtoBFromPartialAmountInForCompoundingLiquidity, calculateAtoBFromPartialAmountInForConcentratedLiquidity, calculateBtoAFromAmountInForCompoundingLiquidity, calculateBtoAFromAmountInForConcentratedLiquidity, calculateBtoAFromAmountOutForCompoundingLiquidity, calculateBtoAFromAmountOutForConcentratedLiquidity, calculateBtoAFromPartialAmountInForCompoundingLiquidity, calculateBtoAFromPartialAmountInForConcentratedLiquidity, calculateInitSqrtPrice, calculateTransferFeeExcludedAmount, calculateTransferFeeIncludedAmount, convertToFeeSchedulerSecondFactor, convertToLamports, convertToRateLimiterSecondFactor, cpAmmCoder, decimalToQ64, decodeFeeMarketCapSchedulerParams, decodeFeeRateLimiterParams, decodeFeeTimeSchedulerParams, decodePodAlignedFeeMarketCapScheduler, decodePodAlignedFeeRateLimiter, decodePodAlignedFeeTimeScheduler, deriveClaimFeeOperatorAddress, deriveConfigAddress, deriveCustomizablePoolAddress, deriveOperatorAddress, derivePoolAddress, derivePoolAuthority, derivePositionAddress, derivePositionNftAccount, deriveRewardVaultAddress, deriveTokenBadgeAddress, deriveTokenVaultAddress, encodeFeeMarketCapSchedulerParams, encodeFeeRateLimiterParams, encodeFeeTimeSchedulerParams, feeNumeratorToBps, fromDecimalToBN, getAllPositionNftAccountByOwner, getAllUserPositionNftAccount, getAmountAFromLiquidityDelta, getAmountAFromLiquidityDeltaForCompoundingLiquidity, getAmountAFromLiquidityDeltaForConcentratedLiquidity, getAmountBFromLiquidityDelta, getAmountBFromLiquidityDeltaForCompoundingLiquidity, getAmountBFromLiquidityDeltaForConcentratedLiquidity, getAmountWithSlippage, getAmountsForModifyForCompoundingLiquidity, getAmountsForModifyForConcentratedLiquidity, getAvailableVestingLiquidity, getBaseFeeHandlerFromBorshData, getBaseFeeHandlerFromPodAlignedData, getBaseFeeParams, getCheckedAmounts, getCurrentPoint, getDynamicFeeNumerator, getDynamicFeeParams, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getExcludedFeeAmount, getExcludedFeeAmountFromIncludedFeeAmount, getFeeInPeriod, getFeeMarketCapBaseFeeNumerator, getFeeMarketCapBaseFeeNumeratorByPeriod, getFeeMarketCapMinBaseFeeNumerator, getFeeMarketCapSchedulerParams, getFeeMode, getFeeNumeratorFromExcludedFeeAmount, getFeeNumeratorFromIncludedFeeAmount, getFeeNumeratorOnExponentialFeeScheduler, getFeeNumeratorOnLinearFeeScheduler, getFeeOnAmount, getFeeTimeBaseFeeNumerator, getFeeTimeBaseFeeNumeratorByPeriod, getFeeTimeMinBaseFeeNumerator, getFeeTimeSchedulerParams, getFirstKey, getIncludedFeeAmount, getInitialCompoundingPoolInformation, getInitialConcentratedLiquidityPoolInformation, getInitialPoolInformation, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountAForCompoundingLiquidity, getLiquidityDeltaFromAmountAForConcentratedLiquidity, getLiquidityDeltaFromAmountB, getLiquidityDeltaFromAmountBForCompoundingLiquidity, getLiquidityDeltaFromAmountBForConcentratedLiquidity, getLiquidityHandler, getMaxAmountWithSlippage, getMaxBaseFeeNumerator, getMaxFeeBps, getMaxFeeNumerator, getMaxIndex, getNextSqrtPriceForCompoundingLiquidity, getNextSqrtPriceFromAmountInARoundingUp, getNextSqrtPriceFromAmountInBRoundingDown, getNextSqrtPriceFromAmountOutARoundingUp, getNextSqrtPriceFromAmountOutBRoundingDown, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getOrCreateATAInstruction, getPoolCreationAmountAFromLiquidityDeltaForCompoundingLiquidity, getPoolCreationAmountBFromLiquidityDeltaForCompoundingLiquidity, getPoolCreationLiquidityDeltaFromAmountAForCompoundingLiquidity, getPoolCreationLiquidityDeltaFromAmountBForCompoundingLiquidity, getPriceChange, getPriceFromSqrtPrice, getPriceImpact, getRateLimiterMaxBaseFeeNumerator, getRateLimiterMinBaseFeeNumerator, getRateLimiterParams, getReservesAmountForCompoundingLiquidity, getReservesAmountForConcentratedLiquidity, getRewardInfo, getSecondKey, getSimulationComputeUnits, getSqrtPriceFromAmountsForCompoundingLiquidity, getSqrtPriceFromPrice, getSwapResultFromExactInput, getSwapResultFromExactOutput, getSwapResultFromPartialInput, getTokenDecimals, getTokenProgram, getTotalFeeNumerator, getTotalLockedLiquidity, getTotalTradingFeeFromExcludedFeeAmount, getTotalTradingFeeFromIncludedFeeAmount, getUnClaimLpFee, getUserRewardPending, hasTransferHookExtension, isDynamicFeeEnabled, isNonZeroRateLimiter, isRateLimiterApplied, isSwapEnabled, isVestingComplete, isZeroRateLimiter, mulDiv, offsetBasedFilter, parseFeeSchedulerSecondFactor, parseRateLimiterSecondFactor, positionByPoolFilter, pow, q64ToDecimal, splitFees, sqrt, swapQuoteExactInput, swapQuoteExactOutput, swapQuotePartialInput, toNumerator, unwrapSOLInstruction, validateActivationType, validateAddLiquidityParams, validateCollectFeeMode, validateCompoundingFee, validateCreatePoolParams, validateCustomizablePoolParams, validateDynamicFee, validateFeeFraction, validateFeeMarketCapBaseFeeIsStatic, validateFeeMarketCapScheduler, validateFeeRateLimiter, validateFeeRateLimiterBaseFeeIsStatic, validateFeeTimeScheduler, validateFeeTimeSchedulerBaseFeeIsStatic, validateInitialSqrtPrice, validateLockPositionParams, validateNoTransferHook, validatePoolFees, validatePriceRange, validateRemoveLiquidityParams, validateRewardDuration, validateRewardIndex, validateSplitPosition2Params, validateSplitPositionParams, validateTokenMints, vestingByPositionFilter, wrapSOLInstruction };
|
|
17519
|
+
export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, AmountIsZeroError, BASIS_POINT_MAX, BIN_STEP_BPS_DEFAULT, BIN_STEP_BPS_U128_DEFAULT, type BaseFee, type BaseFeeHandler, BaseFeeMode, type BorshFeeMarketCapScheduler, type BorshFeeRateLimiter, type BorshFeeTimeScheduler, type BuildAddLiquidityParams, type BuildLiquidatePositionInstructionParams, type BuildRemoveAllLiquidityInstructionParams, CP_AMM_PROGRAM_ID, CURRENT_POOL_VERSION, type ClaimPositionFeeInstructionParams, type ClaimPositionFeeParams, type ClaimPositionFeeParams2, type ClaimRewardParams, type ClosePositionInstructionParams, type ClosePositionParams, CollectFeeMode, CompoundingLiquidityHandler, ConcentratedLiquidityHandler, type ConfigState, CpAmm, cp_amm as CpAmmIdl, type CpAmm$1 as CpAmmTypes, type CreatePoolParams, type CreatePositionAndAddLiquidity, type CreatePositionParams, DEAD_LIQUIDITY, DYNAMIC_FEE_DECAY_PERIOD_DEFAULT, DYNAMIC_FEE_FILTER_PERIOD_DEFAULT, DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT, DYNAMIC_FEE_ROUNDING_OFFSET, DYNAMIC_FEE_SCALING_FACTOR, type DecodedPoolFees, type DepositQuote, DepositTokenNotAcceptedError, type DynamicFee, type DynamicFeeParams, type DynamicFeeStruct, ExceedMaxFeeBpsError, FEE_DENOMINATOR, FeeMarketCapScheduler, type FeeMode, type FeeOnAmountResult, FeeRateLimiter, FeeTimeScheduler, type FundRewardParams, type GetDepositQuoteParams, type GetQuote2Params, type GetQuoteParams, type GetWithdrawQuoteParams, type InitialPoolInformation, type InitializeAndFundReward, type InitializeCustomizeablePoolParams, type InitializeCustomizeablePoolWithDynamicConfigParams, type InitializeRewardParams, type InnerVesting, InsufficientLiquidityError, InvalidActivationTypeError, InvalidBaseFeeModeError, InvalidCollectFeeModeError, InvalidCompoundingFeeBpsError, InvalidDynamicFeeParametersError, InvalidFeeError, InvalidFeeMarketCapSchedulerError, InvalidFeeRateLimiterError, InvalidFeeTimeSchedulerError, InvalidInputError, InvalidMinimumLiquidityError, InvalidParametersError, InvalidPoolVersionError, InvalidPriceRangeError, InvalidRewardDurationError, InvalidRewardIndexError, InvalidSplitPositionParametersError, InvalidVestingInfoError, LIQUIDITY_SCALE, LayoutVersion, type LiquidityDeltaParams, type LiquidityHandler, type LockPositionParams, MAX, MAX_CU_BUFFER, MAX_EXPONENTIAL, MAX_FEE_BPS_V0, MAX_FEE_BPS_V1, MAX_FEE_NUMERATOR_V0, MAX_FEE_NUMERATOR_V1, MAX_PRICE_CHANGE_BPS_DEFAULT, MAX_RATE_LIMITER_DURATION_IN_SECONDS, MAX_RATE_LIMITER_DURATION_IN_SLOTS, MAX_REWARD_DURATION, MAX_SQRT_PRICE, MIN_CU_BUFFER, MIN_FEE_BPS, MIN_FEE_NUMERATOR, MIN_REWARD_DURATION, MIN_SQRT_PRICE, MathOverflowError, type MergePositionParams, NUM_REWARDS, ONE_Q64, type PermanentLockParams, type PodAlignedFeeMarketCapScheduler, type PodAlignedFeeRateLimiter, type PodAlignedFeeTimeScheduler, type PoolFeesParams, type PoolFeesStruct, type PoolState, PoolStatus, type PositionState, type PrepareCustomizablePoolParams, type PreparePoolCreationParams, type PreparePoolCreationSingleSide, type PrepareTokenAccountParams, type PreparedPoolCreation, PriceRangeViolationError, type Quote2Result, type RefreshVestingParams, type RemoveAllLiquidityAndClosePositionParams, type RemoveAllLiquidityParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, SPLIT_POSITION_DENOMINATOR, SameTokenMintsError, type SetupFeeClaimAccountsParams, type SplitFees, type SplitPosition2Params, type SplitPositionParams, type Swap2Params, type SwapAmount, type SwapAmountFromInput, type SwapAmountFromOutput, SwapDisabledError, SwapMode, type SwapParams, type SwapResult2, type TokenBadgeState, TradeDirection, type TransferHookState, type TxBuilder, U128_MAX, U16_MAX, U24_MAX, U64_MAX, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type UserRewardInfo, type VestingState, type WithdrawIneligibleRewardParams, type WithdrawQuote, applySwapResult, bpsToFeeNumerator, calculateAtoBFromAmountInForCompoundingLiquidity, calculateAtoBFromAmountInForConcentratedLiquidity, calculateAtoBFromAmountOutForCompoundingLiquidity, calculateAtoBFromAmountOutForConcentratedLiquidity, calculateAtoBFromPartialAmountInForCompoundingLiquidity, calculateAtoBFromPartialAmountInForConcentratedLiquidity, calculateBtoAFromAmountInForCompoundingLiquidity, calculateBtoAFromAmountInForConcentratedLiquidity, calculateBtoAFromAmountOutForCompoundingLiquidity, calculateBtoAFromAmountOutForConcentratedLiquidity, calculateBtoAFromPartialAmountInForCompoundingLiquidity, calculateBtoAFromPartialAmountInForConcentratedLiquidity, calculateInitSqrtPrice, calculateTransferFeeExcludedAmount, calculateTransferFeeIncludedAmount, computeSqrtPriceStepBps, convertToFeeSchedulerSecondFactor, convertToLamports, convertToRateLimiterSecondFactor, cpAmmCoder, decimalToQ64, decodeFeeMarketCapSchedulerParams, decodeFeeRateLimiterParams, decodeFeeTimeSchedulerParams, decodePodAlignedFeeMarketCapScheduler, decodePodAlignedFeeRateLimiter, decodePodAlignedFeeTimeScheduler, deriveClaimFeeOperatorAddress, deriveConfigAddress, deriveCustomizablePoolAddress, deriveOperatorAddress, derivePoolAddress, derivePoolAuthority, derivePositionAddress, derivePositionNftAccount, deriveRewardVaultAddress, deriveTokenBadgeAddress, deriveTokenVaultAddress, encodeFeeMarketCapSchedulerParams, encodeFeeRateLimiterParams, encodeFeeTimeSchedulerParams, feeNumeratorToBps, fromDecimalToBN, getAllPositionNftAccountByOwner, getAllUserPositionNftAccount, getAmountAFromLiquidityDelta, getAmountAFromLiquidityDeltaForCompoundingLiquidity, getAmountAFromLiquidityDeltaForConcentratedLiquidity, getAmountBFromLiquidityDelta, getAmountBFromLiquidityDeltaForCompoundingLiquidity, getAmountBFromLiquidityDeltaForConcentratedLiquidity, getAmountWithSlippage, getAmountsForModifyForCompoundingLiquidity, getAmountsForModifyForConcentratedLiquidity, getAvailableVestingLiquidity, getBaseFeeHandlerFromBorshData, getBaseFeeHandlerFromPodAlignedData, getBaseFeeParams, getCheckedAmounts, getCurrentPoint, getDynamicFeeNumerator, getDynamicFeeParams, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getExcludedFeeAmount, getExcludedFeeAmountFromIncludedFeeAmount, getFeeInPeriod, getFeeMarketCapBaseFeeNumerator, getFeeMarketCapBaseFeeNumeratorByPeriod, getFeeMarketCapMinBaseFeeNumerator, getFeeMarketCapSchedulerParams, getFeeMode, getFeeNumeratorFromExcludedFeeAmount, getFeeNumeratorFromIncludedFeeAmount, getFeeNumeratorOnExponentialFeeScheduler, getFeeNumeratorOnLinearFeeScheduler, getFeeOnAmount, getFeeTimeBaseFeeNumerator, getFeeTimeBaseFeeNumeratorByPeriod, getFeeTimeMinBaseFeeNumerator, getFeeTimeSchedulerParams, getFirstKey, getIncludedFeeAmount, getInitialCompoundingPoolInformation, getInitialConcentratedLiquidityPoolInformation, getInitialPoolInformation, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountAForCompoundingLiquidity, getLiquidityDeltaFromAmountAForConcentratedLiquidity, getLiquidityDeltaFromAmountB, getLiquidityDeltaFromAmountBForCompoundingLiquidity, getLiquidityDeltaFromAmountBForConcentratedLiquidity, getLiquidityHandler, getMaxAmountWithSlippage, getMaxBaseFeeNumerator, getMaxFeeBps, getMaxFeeNumerator, getMaxIndex, getNextSqrtPriceForCompoundingLiquidity, getNextSqrtPriceFromAmountInARoundingUp, getNextSqrtPriceFromAmountInBRoundingDown, getNextSqrtPriceFromAmountOutARoundingUp, getNextSqrtPriceFromAmountOutBRoundingDown, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getOrCreateATAInstruction, getPoolCreationAmountAFromLiquidityDeltaForCompoundingLiquidity, getPoolCreationAmountBFromLiquidityDeltaForCompoundingLiquidity, getPoolCreationLiquidityDeltaFromAmountAForCompoundingLiquidity, getPoolCreationLiquidityDeltaFromAmountBForCompoundingLiquidity, getPriceChange, getPriceFromSqrtPrice, getPriceImpact, getRateLimiterMaxBaseFeeNumerator, getRateLimiterMinBaseFeeNumerator, getRateLimiterParams, getReservesAmountForCompoundingLiquidity, getReservesAmountForConcentratedLiquidity, getRewardInfo, getSecondKey, getSimulationComputeUnits, getSqrtPriceFromAmountsForCompoundingLiquidity, getSqrtPriceFromPrice, getSwapResultFromExactInput, getSwapResultFromExactOutput, getSwapResultFromPartialInput, getTokenDecimals, getTokenProgram, getTotalFeeNumerator, getTotalLockedLiquidity, getTotalTradingFeeFromExcludedFeeAmount, getTotalTradingFeeFromIncludedFeeAmount, getUnClaimLpFee, getUserRewardPending, hasTransferHookExtension, isDynamicFeeEnabled, isNonZeroRateLimiter, isRateLimiterApplied, isSwapEnabled, isVestingComplete, isZeroRateLimiter, mulDiv, offsetBasedFilter, parseFeeSchedulerSecondFactor, parseRateLimiterSecondFactor, positionByPoolFilter, pow, q64ToDecimal, splitFees, sqrt, swapQuoteExactInput, swapQuoteExactOutput, swapQuotePartialInput, toNumerator, unwrapSOLInstruction, validateActivationType, validateAddLiquidityParams, validateCollectFeeMode, validateCompoundingFee, validateCreatePoolParams, validateCustomizablePoolParams, validateDynamicFee, validateFeeFraction, validateFeeMarketCapBaseFeeIsStatic, validateFeeMarketCapScheduler, validateFeeRateLimiter, validateFeeRateLimiterBaseFeeIsStatic, validateFeeTimeScheduler, validateFeeTimeSchedulerBaseFeeIsStatic, validateInitialSqrtPrice, validateLockPositionParams, validateNoTransferHook, validatePoolFees, validatePriceRange, validateRemoveLiquidityParams, validateRewardDuration, validateRewardIndex, validateSplitPosition2Params, validateSplitPositionParams, validateTokenMints, vestingByPositionFilter, wrapSOLInstruction };
|
package/dist/index.js
CHANGED
|
@@ -8168,6 +8168,7 @@ var InvalidRewardDurationError = class extends Error {
|
|
|
8168
8168
|
|
|
8169
8169
|
|
|
8170
8170
|
|
|
8171
|
+
|
|
8171
8172
|
var _web3js = require('@solana/web3.js');
|
|
8172
8173
|
|
|
8173
8174
|
// src/types.ts
|
|
@@ -11830,10 +11831,30 @@ function getFeeTimeSchedulerParams(startingBaseFeeBps, endingBaseFeeBps, baseFee
|
|
|
11830
11831
|
data: Array.from(data)
|
|
11831
11832
|
};
|
|
11832
11833
|
}
|
|
11833
|
-
function
|
|
11834
|
+
function computeSqrtPriceStepBps(priceMultiple, numberOfPeriod) {
|
|
11835
|
+
if (priceMultiple <= 1) {
|
|
11836
|
+
throw new Error("priceMultiple must be greater than 1");
|
|
11837
|
+
}
|
|
11838
|
+
if (numberOfPeriod <= 0) {
|
|
11839
|
+
throw new Error("numberOfPeriod must be greater than 0");
|
|
11840
|
+
}
|
|
11841
|
+
const sqrtPriceStepBps = Math.floor(
|
|
11842
|
+
(Math.sqrt(priceMultiple) - 1) * BASIS_POINT_MAX / numberOfPeriod
|
|
11843
|
+
);
|
|
11844
|
+
if (sqrtPriceStepBps <= 0) {
|
|
11845
|
+
throw new Error(
|
|
11846
|
+
"Computed sqrtPriceStepBps is 0 \u2014 increase priceMultiple or decrease numberOfPeriod"
|
|
11847
|
+
);
|
|
11848
|
+
}
|
|
11849
|
+
return sqrtPriceStepBps;
|
|
11850
|
+
}
|
|
11851
|
+
function getFeeMarketCapSchedulerParams(startingBaseFeeBps, endingBaseFeeBps, baseFeeMode, numberOfPeriod, startingMarketCap, endingMarketCap, schedulerExpirationDuration) {
|
|
11834
11852
|
if (numberOfPeriod <= 0) {
|
|
11835
11853
|
throw new Error("Total periods must be greater than zero");
|
|
11836
11854
|
}
|
|
11855
|
+
if (endingMarketCap <= startingMarketCap) {
|
|
11856
|
+
throw new Error("endingMarketCap must be greater than startingMarketCap");
|
|
11857
|
+
}
|
|
11837
11858
|
const poolMaxFeeBps = getMaxFeeBps(CURRENT_POOL_VERSION);
|
|
11838
11859
|
if (startingBaseFeeBps <= endingBaseFeeBps) {
|
|
11839
11860
|
throw new Error(
|
|
@@ -11845,11 +11866,14 @@ function getFeeMarketCapSchedulerParams(startingBaseFeeBps, endingBaseFeeBps, ba
|
|
|
11845
11866
|
`startingBaseFeeBps (${startingBaseFeeBps} bps) exceeds maximum allowed value of ${poolMaxFeeBps} bps`
|
|
11846
11867
|
);
|
|
11847
11868
|
}
|
|
11848
|
-
if (
|
|
11849
|
-
throw new Error(
|
|
11850
|
-
"numberOfPeriod, sqrtPriceStepBps, and schedulerExpirationDuration must be greater than zero"
|
|
11851
|
-
);
|
|
11869
|
+
if (schedulerExpirationDuration == 0) {
|
|
11870
|
+
throw new Error("schedulerExpirationDuration must be greater than zero");
|
|
11852
11871
|
}
|
|
11872
|
+
const priceMultiple = endingMarketCap / startingMarketCap;
|
|
11873
|
+
const sqrtPriceStepBps = computeSqrtPriceStepBps(
|
|
11874
|
+
priceMultiple,
|
|
11875
|
+
numberOfPeriod
|
|
11876
|
+
);
|
|
11853
11877
|
const maxBaseFeeNumerator = bpsToFeeNumerator(startingBaseFeeBps);
|
|
11854
11878
|
const minBaseFeeNumerator = bpsToFeeNumerator(endingBaseFeeBps);
|
|
11855
11879
|
let reductionFactor;
|
|
@@ -11982,7 +12006,8 @@ function getBaseFeeParams(baseFeeParams, tokenBDecimal, activationType) {
|
|
|
11982
12006
|
startingFeeBps,
|
|
11983
12007
|
endingFeeBps,
|
|
11984
12008
|
numberOfPeriod,
|
|
11985
|
-
|
|
12009
|
+
startingMarketCap,
|
|
12010
|
+
endingMarketCap,
|
|
11986
12011
|
schedulerExpirationDuration
|
|
11987
12012
|
} = baseFeeParams.feeMarketCapSchedulerParam;
|
|
11988
12013
|
return getFeeMarketCapSchedulerParams(
|
|
@@ -11990,7 +12015,8 @@ function getBaseFeeParams(baseFeeParams, tokenBDecimal, activationType) {
|
|
|
11990
12015
|
endingFeeBps,
|
|
11991
12016
|
baseFeeParams.baseFeeMode,
|
|
11992
12017
|
numberOfPeriod,
|
|
11993
|
-
|
|
12018
|
+
startingMarketCap,
|
|
12019
|
+
endingMarketCap,
|
|
11994
12020
|
schedulerExpirationDuration
|
|
11995
12021
|
);
|
|
11996
12022
|
}
|
|
@@ -12643,6 +12669,18 @@ var CpAmm = class {
|
|
|
12643
12669
|
return configAccounts;
|
|
12644
12670
|
});
|
|
12645
12671
|
}
|
|
12672
|
+
/**
|
|
12673
|
+
* Retrieves static config public keys where vault and creator authority are default.
|
|
12674
|
+
* @returns Array of static config public keys.
|
|
12675
|
+
*/
|
|
12676
|
+
getStaticConfigs() {
|
|
12677
|
+
return __async(this, null, function* () {
|
|
12678
|
+
const configAccounts = yield this._program.account.config.all();
|
|
12679
|
+
return configAccounts.filter(
|
|
12680
|
+
(config) => config.account.configType === 0 && config.account.vaultConfigKey.equals(_web3js.PublicKey.default) && config.account.poolCreatorAuthority.equals(_web3js.PublicKey.default)
|
|
12681
|
+
).map((config) => config.publicKey);
|
|
12682
|
+
});
|
|
12683
|
+
}
|
|
12646
12684
|
/**
|
|
12647
12685
|
* Retrieves all pool accounts.
|
|
12648
12686
|
* @returns Array of pool public keys and their states.
|
|
@@ -15150,5 +15188,6 @@ var CpAmm = class {
|
|
|
15150
15188
|
|
|
15151
15189
|
|
|
15152
15190
|
|
|
15153
|
-
exports.ActivationPoint = ActivationPoint; exports.ActivationType = ActivationType; exports.AmountIsZeroError = AmountIsZeroError; exports.BASIS_POINT_MAX = BASIS_POINT_MAX; exports.BIN_STEP_BPS_DEFAULT = BIN_STEP_BPS_DEFAULT; exports.BIN_STEP_BPS_U128_DEFAULT = BIN_STEP_BPS_U128_DEFAULT; exports.BaseFeeMode = BaseFeeMode; exports.CP_AMM_PROGRAM_ID = CP_AMM_PROGRAM_ID; exports.CURRENT_POOL_VERSION = CURRENT_POOL_VERSION; exports.CollectFeeMode = CollectFeeMode; exports.CompoundingLiquidityHandler = CompoundingLiquidityHandler; exports.ConcentratedLiquidityHandler = ConcentratedLiquidityHandler; exports.CpAmm = CpAmm; exports.CpAmmIdl = cp_amm_default; exports.DEAD_LIQUIDITY = DEAD_LIQUIDITY; exports.DYNAMIC_FEE_DECAY_PERIOD_DEFAULT = DYNAMIC_FEE_DECAY_PERIOD_DEFAULT; exports.DYNAMIC_FEE_FILTER_PERIOD_DEFAULT = DYNAMIC_FEE_FILTER_PERIOD_DEFAULT; exports.DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT = DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT; exports.DYNAMIC_FEE_ROUNDING_OFFSET = DYNAMIC_FEE_ROUNDING_OFFSET; exports.DYNAMIC_FEE_SCALING_FACTOR = DYNAMIC_FEE_SCALING_FACTOR; exports.DepositTokenNotAcceptedError = DepositTokenNotAcceptedError; exports.ExceedMaxFeeBpsError = ExceedMaxFeeBpsError; exports.FEE_DENOMINATOR = FEE_DENOMINATOR; exports.FeeMarketCapScheduler = FeeMarketCapScheduler; exports.FeeRateLimiter = FeeRateLimiter; exports.FeeTimeScheduler = FeeTimeScheduler; exports.InsufficientLiquidityError = InsufficientLiquidityError; exports.InvalidActivationTypeError = InvalidActivationTypeError; exports.InvalidBaseFeeModeError = InvalidBaseFeeModeError; exports.InvalidCollectFeeModeError = InvalidCollectFeeModeError; exports.InvalidCompoundingFeeBpsError = InvalidCompoundingFeeBpsError; exports.InvalidDynamicFeeParametersError = InvalidDynamicFeeParametersError; exports.InvalidFeeError = InvalidFeeError; exports.InvalidFeeMarketCapSchedulerError = InvalidFeeMarketCapSchedulerError; exports.InvalidFeeRateLimiterError = InvalidFeeRateLimiterError; exports.InvalidFeeTimeSchedulerError = InvalidFeeTimeSchedulerError; exports.InvalidInputError = InvalidInputError; exports.InvalidMinimumLiquidityError = InvalidMinimumLiquidityError; exports.InvalidParametersError = InvalidParametersError; exports.InvalidPoolVersionError = InvalidPoolVersionError; exports.InvalidPriceRangeError = InvalidPriceRangeError; exports.InvalidRewardDurationError = InvalidRewardDurationError; exports.InvalidRewardIndexError = InvalidRewardIndexError; exports.InvalidSplitPositionParametersError = InvalidSplitPositionParametersError; exports.InvalidVestingInfoError = InvalidVestingInfoError; exports.LIQUIDITY_SCALE = LIQUIDITY_SCALE; exports.LayoutVersion = LayoutVersion; exports.MAX = MAX; exports.MAX_CU_BUFFER = MAX_CU_BUFFER; exports.MAX_EXPONENTIAL = MAX_EXPONENTIAL; exports.MAX_FEE_BPS_V0 = MAX_FEE_BPS_V0; exports.MAX_FEE_BPS_V1 = MAX_FEE_BPS_V1; exports.MAX_FEE_NUMERATOR_V0 = MAX_FEE_NUMERATOR_V0; exports.MAX_FEE_NUMERATOR_V1 = MAX_FEE_NUMERATOR_V1; exports.MAX_PRICE_CHANGE_BPS_DEFAULT = MAX_PRICE_CHANGE_BPS_DEFAULT; exports.MAX_RATE_LIMITER_DURATION_IN_SECONDS = MAX_RATE_LIMITER_DURATION_IN_SECONDS; exports.MAX_RATE_LIMITER_DURATION_IN_SLOTS = MAX_RATE_LIMITER_DURATION_IN_SLOTS; exports.MAX_REWARD_DURATION = MAX_REWARD_DURATION; exports.MAX_SQRT_PRICE = MAX_SQRT_PRICE; exports.MIN_CU_BUFFER = MIN_CU_BUFFER; exports.MIN_FEE_BPS = MIN_FEE_BPS; exports.MIN_FEE_NUMERATOR = MIN_FEE_NUMERATOR; exports.MIN_REWARD_DURATION = MIN_REWARD_DURATION; exports.MIN_SQRT_PRICE = MIN_SQRT_PRICE; exports.MathOverflowError = MathOverflowError; exports.NUM_REWARDS = NUM_REWARDS; exports.ONE_Q64 = ONE_Q64; exports.PoolStatus = PoolStatus; exports.PriceRangeViolationError = PriceRangeViolationError; exports.Rounding = Rounding; exports.SCALE_OFFSET = SCALE_OFFSET; exports.SPLIT_POSITION_DENOMINATOR = SPLIT_POSITION_DENOMINATOR; exports.SameTokenMintsError = SameTokenMintsError; exports.SwapDisabledError = SwapDisabledError; exports.SwapMode = SwapMode; exports.TradeDirection = TradeDirection; exports.U128_MAX = U128_MAX; exports.U16_MAX = U16_MAX; exports.U24_MAX = U24_MAX; exports.U64_MAX = U64_MAX; exports.applySwapResult = applySwapResult; exports.bpsToFeeNumerator = bpsToFeeNumerator; exports.calculateAtoBFromAmountInForCompoundingLiquidity = calculateAtoBFromAmountInForCompoundingLiquidity; exports.calculateAtoBFromAmountInForConcentratedLiquidity = calculateAtoBFromAmountInForConcentratedLiquidity; exports.calculateAtoBFromAmountOutForCompoundingLiquidity = calculateAtoBFromAmountOutForCompoundingLiquidity; exports.calculateAtoBFromAmountOutForConcentratedLiquidity = calculateAtoBFromAmountOutForConcentratedLiquidity; exports.calculateAtoBFromPartialAmountInForCompoundingLiquidity = calculateAtoBFromPartialAmountInForCompoundingLiquidity; exports.calculateAtoBFromPartialAmountInForConcentratedLiquidity = calculateAtoBFromPartialAmountInForConcentratedLiquidity; exports.calculateBtoAFromAmountInForCompoundingLiquidity = calculateBtoAFromAmountInForCompoundingLiquidity; exports.calculateBtoAFromAmountInForConcentratedLiquidity = calculateBtoAFromAmountInForConcentratedLiquidity; exports.calculateBtoAFromAmountOutForCompoundingLiquidity = calculateBtoAFromAmountOutForCompoundingLiquidity; exports.calculateBtoAFromAmountOutForConcentratedLiquidity = calculateBtoAFromAmountOutForConcentratedLiquidity; exports.calculateBtoAFromPartialAmountInForCompoundingLiquidity = calculateBtoAFromPartialAmountInForCompoundingLiquidity; exports.calculateBtoAFromPartialAmountInForConcentratedLiquidity = calculateBtoAFromPartialAmountInForConcentratedLiquidity; exports.calculateInitSqrtPrice = calculateInitSqrtPrice; exports.calculateTransferFeeExcludedAmount = calculateTransferFeeExcludedAmount; exports.calculateTransferFeeIncludedAmount = calculateTransferFeeIncludedAmount; exports.convertToFeeSchedulerSecondFactor = convertToFeeSchedulerSecondFactor; exports.convertToLamports = convertToLamports; exports.convertToRateLimiterSecondFactor = convertToRateLimiterSecondFactor; exports.cpAmmCoder = cpAmmCoder; exports.decimalToQ64 = decimalToQ64; exports.decodeFeeMarketCapSchedulerParams = decodeFeeMarketCapSchedulerParams; exports.decodeFeeRateLimiterParams = decodeFeeRateLimiterParams; exports.decodeFeeTimeSchedulerParams = decodeFeeTimeSchedulerParams; exports.decodePodAlignedFeeMarketCapScheduler = decodePodAlignedFeeMarketCapScheduler; exports.decodePodAlignedFeeRateLimiter = decodePodAlignedFeeRateLimiter; exports.decodePodAlignedFeeTimeScheduler = decodePodAlignedFeeTimeScheduler; exports.deriveClaimFeeOperatorAddress = deriveClaimFeeOperatorAddress; exports.deriveConfigAddress = deriveConfigAddress; exports.deriveCustomizablePoolAddress = deriveCustomizablePoolAddress; exports.deriveOperatorAddress = deriveOperatorAddress; exports.derivePoolAddress = derivePoolAddress; exports.derivePoolAuthority = derivePoolAuthority; exports.derivePositionAddress = derivePositionAddress; exports.derivePositionNftAccount = derivePositionNftAccount; exports.deriveRewardVaultAddress = deriveRewardVaultAddress; exports.deriveTokenBadgeAddress = deriveTokenBadgeAddress; exports.deriveTokenVaultAddress = deriveTokenVaultAddress; exports.encodeFeeMarketCapSchedulerParams = encodeFeeMarketCapSchedulerParams; exports.encodeFeeRateLimiterParams = encodeFeeRateLimiterParams; exports.encodeFeeTimeSchedulerParams = encodeFeeTimeSchedulerParams; exports.feeNumeratorToBps = feeNumeratorToBps; exports.fromDecimalToBN = fromDecimalToBN; exports.getAllPositionNftAccountByOwner = getAllPositionNftAccountByOwner; exports.getAllUserPositionNftAccount = getAllUserPositionNftAccount; exports.getAmountAFromLiquidityDelta = getAmountAFromLiquidityDelta; exports.getAmountAFromLiquidityDeltaForCompoundingLiquidity = getAmountAFromLiquidityDeltaForCompoundingLiquidity; exports.getAmountAFromLiquidityDeltaForConcentratedLiquidity = getAmountAFromLiquidityDeltaForConcentratedLiquidity; exports.getAmountBFromLiquidityDelta = getAmountBFromLiquidityDelta; exports.getAmountBFromLiquidityDeltaForCompoundingLiquidity = getAmountBFromLiquidityDeltaForCompoundingLiquidity; exports.getAmountBFromLiquidityDeltaForConcentratedLiquidity = getAmountBFromLiquidityDeltaForConcentratedLiquidity; exports.getAmountWithSlippage = getAmountWithSlippage; exports.getAmountsForModifyForCompoundingLiquidity = getAmountsForModifyForCompoundingLiquidity; exports.getAmountsForModifyForConcentratedLiquidity = getAmountsForModifyForConcentratedLiquidity; exports.getAvailableVestingLiquidity = getAvailableVestingLiquidity; exports.getBaseFeeHandlerFromBorshData = getBaseFeeHandlerFromBorshData; exports.getBaseFeeHandlerFromPodAlignedData = getBaseFeeHandlerFromPodAlignedData; exports.getBaseFeeParams = getBaseFeeParams; exports.getCheckedAmounts = getCheckedAmounts; exports.getCurrentPoint = getCurrentPoint; exports.getDynamicFeeNumerator = getDynamicFeeNumerator; exports.getDynamicFeeParams = getDynamicFeeParams; exports.getEstimatedComputeUnitIxWithBuffer = getEstimatedComputeUnitIxWithBuffer; exports.getEstimatedComputeUnitUsageWithBuffer = getEstimatedComputeUnitUsageWithBuffer; exports.getExcludedFeeAmount = getExcludedFeeAmount; exports.getExcludedFeeAmountFromIncludedFeeAmount = getExcludedFeeAmountFromIncludedFeeAmount; exports.getFeeInPeriod = getFeeInPeriod; exports.getFeeMarketCapBaseFeeNumerator = getFeeMarketCapBaseFeeNumerator; exports.getFeeMarketCapBaseFeeNumeratorByPeriod = getFeeMarketCapBaseFeeNumeratorByPeriod; exports.getFeeMarketCapMinBaseFeeNumerator = getFeeMarketCapMinBaseFeeNumerator; exports.getFeeMarketCapSchedulerParams = getFeeMarketCapSchedulerParams; exports.getFeeMode = getFeeMode; exports.getFeeNumeratorFromExcludedFeeAmount = getFeeNumeratorFromExcludedFeeAmount; exports.getFeeNumeratorFromIncludedFeeAmount = getFeeNumeratorFromIncludedFeeAmount; exports.getFeeNumeratorOnExponentialFeeScheduler = getFeeNumeratorOnExponentialFeeScheduler; exports.getFeeNumeratorOnLinearFeeScheduler = getFeeNumeratorOnLinearFeeScheduler; exports.getFeeOnAmount = getFeeOnAmount; exports.getFeeTimeBaseFeeNumerator = getFeeTimeBaseFeeNumerator; exports.getFeeTimeBaseFeeNumeratorByPeriod = getFeeTimeBaseFeeNumeratorByPeriod; exports.getFeeTimeMinBaseFeeNumerator = getFeeTimeMinBaseFeeNumerator; exports.getFeeTimeSchedulerParams = getFeeTimeSchedulerParams; exports.getFirstKey = getFirstKey; exports.getIncludedFeeAmount = getIncludedFeeAmount; exports.getInitialCompoundingPoolInformation = getInitialCompoundingPoolInformation; exports.getInitialConcentratedLiquidityPoolInformation = getInitialConcentratedLiquidityPoolInformation; exports.getInitialPoolInformation = getInitialPoolInformation; exports.getLiquidityDeltaFromAmountA = getLiquidityDeltaFromAmountA; exports.getLiquidityDeltaFromAmountAForCompoundingLiquidity = getLiquidityDeltaFromAmountAForCompoundingLiquidity; exports.getLiquidityDeltaFromAmountAForConcentratedLiquidity = getLiquidityDeltaFromAmountAForConcentratedLiquidity; exports.getLiquidityDeltaFromAmountB = getLiquidityDeltaFromAmountB; exports.getLiquidityDeltaFromAmountBForCompoundingLiquidity = getLiquidityDeltaFromAmountBForCompoundingLiquidity; exports.getLiquidityDeltaFromAmountBForConcentratedLiquidity = getLiquidityDeltaFromAmountBForConcentratedLiquidity; exports.getLiquidityHandler = getLiquidityHandler; exports.getMaxAmountWithSlippage = getMaxAmountWithSlippage; exports.getMaxBaseFeeNumerator = getMaxBaseFeeNumerator; exports.getMaxFeeBps = getMaxFeeBps; exports.getMaxFeeNumerator = getMaxFeeNumerator; exports.getMaxIndex = getMaxIndex; exports.getNextSqrtPriceForCompoundingLiquidity = getNextSqrtPriceForCompoundingLiquidity; exports.getNextSqrtPriceFromAmountInARoundingUp = getNextSqrtPriceFromAmountInARoundingUp; exports.getNextSqrtPriceFromAmountInBRoundingDown = getNextSqrtPriceFromAmountInBRoundingDown; exports.getNextSqrtPriceFromAmountOutARoundingUp = getNextSqrtPriceFromAmountOutARoundingUp; exports.getNextSqrtPriceFromAmountOutBRoundingDown = getNextSqrtPriceFromAmountOutBRoundingDown; exports.getNextSqrtPriceFromInput = getNextSqrtPriceFromInput; exports.getNextSqrtPriceFromOutput = getNextSqrtPriceFromOutput; exports.getOrCreateATAInstruction = getOrCreateATAInstruction; exports.getPoolCreationAmountAFromLiquidityDeltaForCompoundingLiquidity = getPoolCreationAmountAFromLiquidityDeltaForCompoundingLiquidity; exports.getPoolCreationAmountBFromLiquidityDeltaForCompoundingLiquidity = getPoolCreationAmountBFromLiquidityDeltaForCompoundingLiquidity; exports.getPoolCreationLiquidityDeltaFromAmountAForCompoundingLiquidity = getPoolCreationLiquidityDeltaFromAmountAForCompoundingLiquidity; exports.getPoolCreationLiquidityDeltaFromAmountBForCompoundingLiquidity = getPoolCreationLiquidityDeltaFromAmountBForCompoundingLiquidity; exports.getPriceChange = getPriceChange; exports.getPriceFromSqrtPrice = getPriceFromSqrtPrice; exports.getPriceImpact = getPriceImpact; exports.getRateLimiterMaxBaseFeeNumerator = getRateLimiterMaxBaseFeeNumerator; exports.getRateLimiterMinBaseFeeNumerator = getRateLimiterMinBaseFeeNumerator; exports.getRateLimiterParams = getRateLimiterParams; exports.getReservesAmountForCompoundingLiquidity = getReservesAmountForCompoundingLiquidity; exports.getReservesAmountForConcentratedLiquidity = getReservesAmountForConcentratedLiquidity; exports.getRewardInfo = getRewardInfo; exports.getSecondKey = getSecondKey; exports.getSimulationComputeUnits = getSimulationComputeUnits; exports.getSqrtPriceFromAmountsForCompoundingLiquidity = getSqrtPriceFromAmountsForCompoundingLiquidity; exports.getSqrtPriceFromPrice = getSqrtPriceFromPrice; exports.getSwapResultFromExactInput = getSwapResultFromExactInput; exports.getSwapResultFromExactOutput = getSwapResultFromExactOutput; exports.getSwapResultFromPartialInput = getSwapResultFromPartialInput; exports.getTokenDecimals = getTokenDecimals; exports.getTokenProgram = getTokenProgram; exports.getTotalFeeNumerator = getTotalFeeNumerator; exports.getTotalLockedLiquidity = getTotalLockedLiquidity; exports.getTotalTradingFeeFromExcludedFeeAmount = getTotalTradingFeeFromExcludedFeeAmount; exports.getTotalTradingFeeFromIncludedFeeAmount = getTotalTradingFeeFromIncludedFeeAmount; exports.getUnClaimLpFee = getUnClaimLpFee; exports.getUserRewardPending = getUserRewardPending; exports.hasTransferHookExtension = hasTransferHookExtension; exports.isDynamicFeeEnabled = isDynamicFeeEnabled; exports.isNonZeroRateLimiter = isNonZeroRateLimiter; exports.isRateLimiterApplied = isRateLimiterApplied; exports.isSwapEnabled = isSwapEnabled; exports.isVestingComplete = isVestingComplete; exports.isZeroRateLimiter = isZeroRateLimiter; exports.mulDiv = mulDiv; exports.offsetBasedFilter = offsetBasedFilter; exports.parseFeeSchedulerSecondFactor = parseFeeSchedulerSecondFactor; exports.parseRateLimiterSecondFactor = parseRateLimiterSecondFactor; exports.positionByPoolFilter = positionByPoolFilter; exports.pow = pow; exports.q64ToDecimal = q64ToDecimal; exports.splitFees = splitFees; exports.sqrt = sqrt; exports.swapQuoteExactInput = swapQuoteExactInput; exports.swapQuoteExactOutput = swapQuoteExactOutput; exports.swapQuotePartialInput = swapQuotePartialInput; exports.toNumerator = toNumerator; exports.unwrapSOLInstruction = unwrapSOLInstruction; exports.validateActivationType = validateActivationType; exports.validateAddLiquidityParams = validateAddLiquidityParams; exports.validateCollectFeeMode = validateCollectFeeMode; exports.validateCompoundingFee = validateCompoundingFee; exports.validateCreatePoolParams = validateCreatePoolParams; exports.validateCustomizablePoolParams = validateCustomizablePoolParams; exports.validateDynamicFee = validateDynamicFee; exports.validateFeeFraction = validateFeeFraction; exports.validateFeeMarketCapBaseFeeIsStatic = validateFeeMarketCapBaseFeeIsStatic; exports.validateFeeMarketCapScheduler = validateFeeMarketCapScheduler; exports.validateFeeRateLimiter = validateFeeRateLimiter; exports.validateFeeRateLimiterBaseFeeIsStatic = validateFeeRateLimiterBaseFeeIsStatic; exports.validateFeeTimeScheduler = validateFeeTimeScheduler; exports.validateFeeTimeSchedulerBaseFeeIsStatic = validateFeeTimeSchedulerBaseFeeIsStatic; exports.validateInitialSqrtPrice = validateInitialSqrtPrice; exports.validateLockPositionParams = validateLockPositionParams; exports.validateNoTransferHook = validateNoTransferHook; exports.validatePoolFees = validatePoolFees; exports.validatePriceRange = validatePriceRange; exports.validateRemoveLiquidityParams = validateRemoveLiquidityParams; exports.validateRewardDuration = validateRewardDuration; exports.validateRewardIndex = validateRewardIndex; exports.validateSplitPosition2Params = validateSplitPosition2Params; exports.validateSplitPositionParams = validateSplitPositionParams; exports.validateTokenMints = validateTokenMints; exports.vestingByPositionFilter = vestingByPositionFilter; exports.wrapSOLInstruction = wrapSOLInstruction;
|
|
15191
|
+
|
|
15192
|
+
exports.ActivationPoint = ActivationPoint; exports.ActivationType = ActivationType; exports.AmountIsZeroError = AmountIsZeroError; exports.BASIS_POINT_MAX = BASIS_POINT_MAX; exports.BIN_STEP_BPS_DEFAULT = BIN_STEP_BPS_DEFAULT; exports.BIN_STEP_BPS_U128_DEFAULT = BIN_STEP_BPS_U128_DEFAULT; exports.BaseFeeMode = BaseFeeMode; exports.CP_AMM_PROGRAM_ID = CP_AMM_PROGRAM_ID; exports.CURRENT_POOL_VERSION = CURRENT_POOL_VERSION; exports.CollectFeeMode = CollectFeeMode; exports.CompoundingLiquidityHandler = CompoundingLiquidityHandler; exports.ConcentratedLiquidityHandler = ConcentratedLiquidityHandler; exports.CpAmm = CpAmm; exports.CpAmmIdl = cp_amm_default; exports.DEAD_LIQUIDITY = DEAD_LIQUIDITY; exports.DYNAMIC_FEE_DECAY_PERIOD_DEFAULT = DYNAMIC_FEE_DECAY_PERIOD_DEFAULT; exports.DYNAMIC_FEE_FILTER_PERIOD_DEFAULT = DYNAMIC_FEE_FILTER_PERIOD_DEFAULT; exports.DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT = DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT; exports.DYNAMIC_FEE_ROUNDING_OFFSET = DYNAMIC_FEE_ROUNDING_OFFSET; exports.DYNAMIC_FEE_SCALING_FACTOR = DYNAMIC_FEE_SCALING_FACTOR; exports.DepositTokenNotAcceptedError = DepositTokenNotAcceptedError; exports.ExceedMaxFeeBpsError = ExceedMaxFeeBpsError; exports.FEE_DENOMINATOR = FEE_DENOMINATOR; exports.FeeMarketCapScheduler = FeeMarketCapScheduler; exports.FeeRateLimiter = FeeRateLimiter; exports.FeeTimeScheduler = FeeTimeScheduler; exports.InsufficientLiquidityError = InsufficientLiquidityError; exports.InvalidActivationTypeError = InvalidActivationTypeError; exports.InvalidBaseFeeModeError = InvalidBaseFeeModeError; exports.InvalidCollectFeeModeError = InvalidCollectFeeModeError; exports.InvalidCompoundingFeeBpsError = InvalidCompoundingFeeBpsError; exports.InvalidDynamicFeeParametersError = InvalidDynamicFeeParametersError; exports.InvalidFeeError = InvalidFeeError; exports.InvalidFeeMarketCapSchedulerError = InvalidFeeMarketCapSchedulerError; exports.InvalidFeeRateLimiterError = InvalidFeeRateLimiterError; exports.InvalidFeeTimeSchedulerError = InvalidFeeTimeSchedulerError; exports.InvalidInputError = InvalidInputError; exports.InvalidMinimumLiquidityError = InvalidMinimumLiquidityError; exports.InvalidParametersError = InvalidParametersError; exports.InvalidPoolVersionError = InvalidPoolVersionError; exports.InvalidPriceRangeError = InvalidPriceRangeError; exports.InvalidRewardDurationError = InvalidRewardDurationError; exports.InvalidRewardIndexError = InvalidRewardIndexError; exports.InvalidSplitPositionParametersError = InvalidSplitPositionParametersError; exports.InvalidVestingInfoError = InvalidVestingInfoError; exports.LIQUIDITY_SCALE = LIQUIDITY_SCALE; exports.LayoutVersion = LayoutVersion; exports.MAX = MAX; exports.MAX_CU_BUFFER = MAX_CU_BUFFER; exports.MAX_EXPONENTIAL = MAX_EXPONENTIAL; exports.MAX_FEE_BPS_V0 = MAX_FEE_BPS_V0; exports.MAX_FEE_BPS_V1 = MAX_FEE_BPS_V1; exports.MAX_FEE_NUMERATOR_V0 = MAX_FEE_NUMERATOR_V0; exports.MAX_FEE_NUMERATOR_V1 = MAX_FEE_NUMERATOR_V1; exports.MAX_PRICE_CHANGE_BPS_DEFAULT = MAX_PRICE_CHANGE_BPS_DEFAULT; exports.MAX_RATE_LIMITER_DURATION_IN_SECONDS = MAX_RATE_LIMITER_DURATION_IN_SECONDS; exports.MAX_RATE_LIMITER_DURATION_IN_SLOTS = MAX_RATE_LIMITER_DURATION_IN_SLOTS; exports.MAX_REWARD_DURATION = MAX_REWARD_DURATION; exports.MAX_SQRT_PRICE = MAX_SQRT_PRICE; exports.MIN_CU_BUFFER = MIN_CU_BUFFER; exports.MIN_FEE_BPS = MIN_FEE_BPS; exports.MIN_FEE_NUMERATOR = MIN_FEE_NUMERATOR; exports.MIN_REWARD_DURATION = MIN_REWARD_DURATION; exports.MIN_SQRT_PRICE = MIN_SQRT_PRICE; exports.MathOverflowError = MathOverflowError; exports.NUM_REWARDS = NUM_REWARDS; exports.ONE_Q64 = ONE_Q64; exports.PoolStatus = PoolStatus; exports.PriceRangeViolationError = PriceRangeViolationError; exports.Rounding = Rounding; exports.SCALE_OFFSET = SCALE_OFFSET; exports.SPLIT_POSITION_DENOMINATOR = SPLIT_POSITION_DENOMINATOR; exports.SameTokenMintsError = SameTokenMintsError; exports.SwapDisabledError = SwapDisabledError; exports.SwapMode = SwapMode; exports.TradeDirection = TradeDirection; exports.U128_MAX = U128_MAX; exports.U16_MAX = U16_MAX; exports.U24_MAX = U24_MAX; exports.U64_MAX = U64_MAX; exports.applySwapResult = applySwapResult; exports.bpsToFeeNumerator = bpsToFeeNumerator; exports.calculateAtoBFromAmountInForCompoundingLiquidity = calculateAtoBFromAmountInForCompoundingLiquidity; exports.calculateAtoBFromAmountInForConcentratedLiquidity = calculateAtoBFromAmountInForConcentratedLiquidity; exports.calculateAtoBFromAmountOutForCompoundingLiquidity = calculateAtoBFromAmountOutForCompoundingLiquidity; exports.calculateAtoBFromAmountOutForConcentratedLiquidity = calculateAtoBFromAmountOutForConcentratedLiquidity; exports.calculateAtoBFromPartialAmountInForCompoundingLiquidity = calculateAtoBFromPartialAmountInForCompoundingLiquidity; exports.calculateAtoBFromPartialAmountInForConcentratedLiquidity = calculateAtoBFromPartialAmountInForConcentratedLiquidity; exports.calculateBtoAFromAmountInForCompoundingLiquidity = calculateBtoAFromAmountInForCompoundingLiquidity; exports.calculateBtoAFromAmountInForConcentratedLiquidity = calculateBtoAFromAmountInForConcentratedLiquidity; exports.calculateBtoAFromAmountOutForCompoundingLiquidity = calculateBtoAFromAmountOutForCompoundingLiquidity; exports.calculateBtoAFromAmountOutForConcentratedLiquidity = calculateBtoAFromAmountOutForConcentratedLiquidity; exports.calculateBtoAFromPartialAmountInForCompoundingLiquidity = calculateBtoAFromPartialAmountInForCompoundingLiquidity; exports.calculateBtoAFromPartialAmountInForConcentratedLiquidity = calculateBtoAFromPartialAmountInForConcentratedLiquidity; exports.calculateInitSqrtPrice = calculateInitSqrtPrice; exports.calculateTransferFeeExcludedAmount = calculateTransferFeeExcludedAmount; exports.calculateTransferFeeIncludedAmount = calculateTransferFeeIncludedAmount; exports.computeSqrtPriceStepBps = computeSqrtPriceStepBps; exports.convertToFeeSchedulerSecondFactor = convertToFeeSchedulerSecondFactor; exports.convertToLamports = convertToLamports; exports.convertToRateLimiterSecondFactor = convertToRateLimiterSecondFactor; exports.cpAmmCoder = cpAmmCoder; exports.decimalToQ64 = decimalToQ64; exports.decodeFeeMarketCapSchedulerParams = decodeFeeMarketCapSchedulerParams; exports.decodeFeeRateLimiterParams = decodeFeeRateLimiterParams; exports.decodeFeeTimeSchedulerParams = decodeFeeTimeSchedulerParams; exports.decodePodAlignedFeeMarketCapScheduler = decodePodAlignedFeeMarketCapScheduler; exports.decodePodAlignedFeeRateLimiter = decodePodAlignedFeeRateLimiter; exports.decodePodAlignedFeeTimeScheduler = decodePodAlignedFeeTimeScheduler; exports.deriveClaimFeeOperatorAddress = deriveClaimFeeOperatorAddress; exports.deriveConfigAddress = deriveConfigAddress; exports.deriveCustomizablePoolAddress = deriveCustomizablePoolAddress; exports.deriveOperatorAddress = deriveOperatorAddress; exports.derivePoolAddress = derivePoolAddress; exports.derivePoolAuthority = derivePoolAuthority; exports.derivePositionAddress = derivePositionAddress; exports.derivePositionNftAccount = derivePositionNftAccount; exports.deriveRewardVaultAddress = deriveRewardVaultAddress; exports.deriveTokenBadgeAddress = deriveTokenBadgeAddress; exports.deriveTokenVaultAddress = deriveTokenVaultAddress; exports.encodeFeeMarketCapSchedulerParams = encodeFeeMarketCapSchedulerParams; exports.encodeFeeRateLimiterParams = encodeFeeRateLimiterParams; exports.encodeFeeTimeSchedulerParams = encodeFeeTimeSchedulerParams; exports.feeNumeratorToBps = feeNumeratorToBps; exports.fromDecimalToBN = fromDecimalToBN; exports.getAllPositionNftAccountByOwner = getAllPositionNftAccountByOwner; exports.getAllUserPositionNftAccount = getAllUserPositionNftAccount; exports.getAmountAFromLiquidityDelta = getAmountAFromLiquidityDelta; exports.getAmountAFromLiquidityDeltaForCompoundingLiquidity = getAmountAFromLiquidityDeltaForCompoundingLiquidity; exports.getAmountAFromLiquidityDeltaForConcentratedLiquidity = getAmountAFromLiquidityDeltaForConcentratedLiquidity; exports.getAmountBFromLiquidityDelta = getAmountBFromLiquidityDelta; exports.getAmountBFromLiquidityDeltaForCompoundingLiquidity = getAmountBFromLiquidityDeltaForCompoundingLiquidity; exports.getAmountBFromLiquidityDeltaForConcentratedLiquidity = getAmountBFromLiquidityDeltaForConcentratedLiquidity; exports.getAmountWithSlippage = getAmountWithSlippage; exports.getAmountsForModifyForCompoundingLiquidity = getAmountsForModifyForCompoundingLiquidity; exports.getAmountsForModifyForConcentratedLiquidity = getAmountsForModifyForConcentratedLiquidity; exports.getAvailableVestingLiquidity = getAvailableVestingLiquidity; exports.getBaseFeeHandlerFromBorshData = getBaseFeeHandlerFromBorshData; exports.getBaseFeeHandlerFromPodAlignedData = getBaseFeeHandlerFromPodAlignedData; exports.getBaseFeeParams = getBaseFeeParams; exports.getCheckedAmounts = getCheckedAmounts; exports.getCurrentPoint = getCurrentPoint; exports.getDynamicFeeNumerator = getDynamicFeeNumerator; exports.getDynamicFeeParams = getDynamicFeeParams; exports.getEstimatedComputeUnitIxWithBuffer = getEstimatedComputeUnitIxWithBuffer; exports.getEstimatedComputeUnitUsageWithBuffer = getEstimatedComputeUnitUsageWithBuffer; exports.getExcludedFeeAmount = getExcludedFeeAmount; exports.getExcludedFeeAmountFromIncludedFeeAmount = getExcludedFeeAmountFromIncludedFeeAmount; exports.getFeeInPeriod = getFeeInPeriod; exports.getFeeMarketCapBaseFeeNumerator = getFeeMarketCapBaseFeeNumerator; exports.getFeeMarketCapBaseFeeNumeratorByPeriod = getFeeMarketCapBaseFeeNumeratorByPeriod; exports.getFeeMarketCapMinBaseFeeNumerator = getFeeMarketCapMinBaseFeeNumerator; exports.getFeeMarketCapSchedulerParams = getFeeMarketCapSchedulerParams; exports.getFeeMode = getFeeMode; exports.getFeeNumeratorFromExcludedFeeAmount = getFeeNumeratorFromExcludedFeeAmount; exports.getFeeNumeratorFromIncludedFeeAmount = getFeeNumeratorFromIncludedFeeAmount; exports.getFeeNumeratorOnExponentialFeeScheduler = getFeeNumeratorOnExponentialFeeScheduler; exports.getFeeNumeratorOnLinearFeeScheduler = getFeeNumeratorOnLinearFeeScheduler; exports.getFeeOnAmount = getFeeOnAmount; exports.getFeeTimeBaseFeeNumerator = getFeeTimeBaseFeeNumerator; exports.getFeeTimeBaseFeeNumeratorByPeriod = getFeeTimeBaseFeeNumeratorByPeriod; exports.getFeeTimeMinBaseFeeNumerator = getFeeTimeMinBaseFeeNumerator; exports.getFeeTimeSchedulerParams = getFeeTimeSchedulerParams; exports.getFirstKey = getFirstKey; exports.getIncludedFeeAmount = getIncludedFeeAmount; exports.getInitialCompoundingPoolInformation = getInitialCompoundingPoolInformation; exports.getInitialConcentratedLiquidityPoolInformation = getInitialConcentratedLiquidityPoolInformation; exports.getInitialPoolInformation = getInitialPoolInformation; exports.getLiquidityDeltaFromAmountA = getLiquidityDeltaFromAmountA; exports.getLiquidityDeltaFromAmountAForCompoundingLiquidity = getLiquidityDeltaFromAmountAForCompoundingLiquidity; exports.getLiquidityDeltaFromAmountAForConcentratedLiquidity = getLiquidityDeltaFromAmountAForConcentratedLiquidity; exports.getLiquidityDeltaFromAmountB = getLiquidityDeltaFromAmountB; exports.getLiquidityDeltaFromAmountBForCompoundingLiquidity = getLiquidityDeltaFromAmountBForCompoundingLiquidity; exports.getLiquidityDeltaFromAmountBForConcentratedLiquidity = getLiquidityDeltaFromAmountBForConcentratedLiquidity; exports.getLiquidityHandler = getLiquidityHandler; exports.getMaxAmountWithSlippage = getMaxAmountWithSlippage; exports.getMaxBaseFeeNumerator = getMaxBaseFeeNumerator; exports.getMaxFeeBps = getMaxFeeBps; exports.getMaxFeeNumerator = getMaxFeeNumerator; exports.getMaxIndex = getMaxIndex; exports.getNextSqrtPriceForCompoundingLiquidity = getNextSqrtPriceForCompoundingLiquidity; exports.getNextSqrtPriceFromAmountInARoundingUp = getNextSqrtPriceFromAmountInARoundingUp; exports.getNextSqrtPriceFromAmountInBRoundingDown = getNextSqrtPriceFromAmountInBRoundingDown; exports.getNextSqrtPriceFromAmountOutARoundingUp = getNextSqrtPriceFromAmountOutARoundingUp; exports.getNextSqrtPriceFromAmountOutBRoundingDown = getNextSqrtPriceFromAmountOutBRoundingDown; exports.getNextSqrtPriceFromInput = getNextSqrtPriceFromInput; exports.getNextSqrtPriceFromOutput = getNextSqrtPriceFromOutput; exports.getOrCreateATAInstruction = getOrCreateATAInstruction; exports.getPoolCreationAmountAFromLiquidityDeltaForCompoundingLiquidity = getPoolCreationAmountAFromLiquidityDeltaForCompoundingLiquidity; exports.getPoolCreationAmountBFromLiquidityDeltaForCompoundingLiquidity = getPoolCreationAmountBFromLiquidityDeltaForCompoundingLiquidity; exports.getPoolCreationLiquidityDeltaFromAmountAForCompoundingLiquidity = getPoolCreationLiquidityDeltaFromAmountAForCompoundingLiquidity; exports.getPoolCreationLiquidityDeltaFromAmountBForCompoundingLiquidity = getPoolCreationLiquidityDeltaFromAmountBForCompoundingLiquidity; exports.getPriceChange = getPriceChange; exports.getPriceFromSqrtPrice = getPriceFromSqrtPrice; exports.getPriceImpact = getPriceImpact; exports.getRateLimiterMaxBaseFeeNumerator = getRateLimiterMaxBaseFeeNumerator; exports.getRateLimiterMinBaseFeeNumerator = getRateLimiterMinBaseFeeNumerator; exports.getRateLimiterParams = getRateLimiterParams; exports.getReservesAmountForCompoundingLiquidity = getReservesAmountForCompoundingLiquidity; exports.getReservesAmountForConcentratedLiquidity = getReservesAmountForConcentratedLiquidity; exports.getRewardInfo = getRewardInfo; exports.getSecondKey = getSecondKey; exports.getSimulationComputeUnits = getSimulationComputeUnits; exports.getSqrtPriceFromAmountsForCompoundingLiquidity = getSqrtPriceFromAmountsForCompoundingLiquidity; exports.getSqrtPriceFromPrice = getSqrtPriceFromPrice; exports.getSwapResultFromExactInput = getSwapResultFromExactInput; exports.getSwapResultFromExactOutput = getSwapResultFromExactOutput; exports.getSwapResultFromPartialInput = getSwapResultFromPartialInput; exports.getTokenDecimals = getTokenDecimals; exports.getTokenProgram = getTokenProgram; exports.getTotalFeeNumerator = getTotalFeeNumerator; exports.getTotalLockedLiquidity = getTotalLockedLiquidity; exports.getTotalTradingFeeFromExcludedFeeAmount = getTotalTradingFeeFromExcludedFeeAmount; exports.getTotalTradingFeeFromIncludedFeeAmount = getTotalTradingFeeFromIncludedFeeAmount; exports.getUnClaimLpFee = getUnClaimLpFee; exports.getUserRewardPending = getUserRewardPending; exports.hasTransferHookExtension = hasTransferHookExtension; exports.isDynamicFeeEnabled = isDynamicFeeEnabled; exports.isNonZeroRateLimiter = isNonZeroRateLimiter; exports.isRateLimiterApplied = isRateLimiterApplied; exports.isSwapEnabled = isSwapEnabled; exports.isVestingComplete = isVestingComplete; exports.isZeroRateLimiter = isZeroRateLimiter; exports.mulDiv = mulDiv; exports.offsetBasedFilter = offsetBasedFilter; exports.parseFeeSchedulerSecondFactor = parseFeeSchedulerSecondFactor; exports.parseRateLimiterSecondFactor = parseRateLimiterSecondFactor; exports.positionByPoolFilter = positionByPoolFilter; exports.pow = pow; exports.q64ToDecimal = q64ToDecimal; exports.splitFees = splitFees; exports.sqrt = sqrt; exports.swapQuoteExactInput = swapQuoteExactInput; exports.swapQuoteExactOutput = swapQuoteExactOutput; exports.swapQuotePartialInput = swapQuotePartialInput; exports.toNumerator = toNumerator; exports.unwrapSOLInstruction = unwrapSOLInstruction; exports.validateActivationType = validateActivationType; exports.validateAddLiquidityParams = validateAddLiquidityParams; exports.validateCollectFeeMode = validateCollectFeeMode; exports.validateCompoundingFee = validateCompoundingFee; exports.validateCreatePoolParams = validateCreatePoolParams; exports.validateCustomizablePoolParams = validateCustomizablePoolParams; exports.validateDynamicFee = validateDynamicFee; exports.validateFeeFraction = validateFeeFraction; exports.validateFeeMarketCapBaseFeeIsStatic = validateFeeMarketCapBaseFeeIsStatic; exports.validateFeeMarketCapScheduler = validateFeeMarketCapScheduler; exports.validateFeeRateLimiter = validateFeeRateLimiter; exports.validateFeeRateLimiterBaseFeeIsStatic = validateFeeRateLimiterBaseFeeIsStatic; exports.validateFeeTimeScheduler = validateFeeTimeScheduler; exports.validateFeeTimeSchedulerBaseFeeIsStatic = validateFeeTimeSchedulerBaseFeeIsStatic; exports.validateInitialSqrtPrice = validateInitialSqrtPrice; exports.validateLockPositionParams = validateLockPositionParams; exports.validateNoTransferHook = validateNoTransferHook; exports.validatePoolFees = validatePoolFees; exports.validatePriceRange = validatePriceRange; exports.validateRemoveLiquidityParams = validateRemoveLiquidityParams; exports.validateRewardDuration = validateRewardDuration; exports.validateRewardIndex = validateRewardIndex; exports.validateSplitPosition2Params = validateSplitPosition2Params; exports.validateSplitPositionParams = validateSplitPositionParams; exports.validateTokenMints = validateTokenMints; exports.vestingByPositionFilter = vestingByPositionFilter; exports.wrapSOLInstruction = wrapSOLInstruction;
|
|
15154
15193
|
//# sourceMappingURL=index.js.map
|