@lp-ag/meteora-dlmm-solana-client 1.0.2 → 1.0.4

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
@@ -8688,51 +8688,26 @@ declare function findPresetParameterPda(seeds: {
8688
8688
  }): Promise<ProgramDerivedAddress>;
8689
8689
 
8690
8690
  declare const MAX_BIN_PER_ARRAY = 70;
8691
- declare const SCALE_OFFSET = 64;
8692
8691
  declare const BASIS_POINT_MAX = 10000;
8692
+ declare const MAX_RESIZE_LENGTH = 70;
8693
+ declare const POSITION_MAX_LENGTH = 1400;
8694
+ declare const NUM_REWARDS = 2;
8695
+ declare const MAX_BIN_STEP = 400;
8693
8696
  declare const MIN_BIN_ID = -443636;
8694
8697
  declare const MAX_BIN_ID = 443636;
8695
8698
  declare const ONE_Q64: bigint;
8696
8699
  /**
8697
- * Exact Q64.64 exponentiation. Ports `u64x64_math::pow`.
8698
- * Returns `null` on overflow (mirrors Rust's `Option<u128>`).
8700
+ * Convert a human-scale price (number) into a bin id.
8699
8701
  */
8700
- declare function q64Pow(base: bigint, exp: number): bigint | null;
8702
+ declare function priceToBinId(price: string | number, binStep: number, min: boolean, decimalsX?: number, decimalsY?: number): number;
8701
8703
  /**
8702
- * Exact Q64.64 price of a bin. Ports `price_math::get_price_from_id`.
8703
- * Returns the on-chain raw price (lamport_Y / lamport_X) as a Q64.64 u128.
8704
- * Throws if the (binId, binStep) combination overflows the fixed-point range.
8704
+ * Convert a bin id to a human-scale price (number).
8705
8705
  */
8706
- declare function getPriceFromId(binId: number, binStep: number): bigint;
8707
- /**
8708
- * Largest bin id whose Q64.64 price is ≤ `priceQ64`. Exact inverse of
8709
- * `getPriceFromId` via binary search — no on-chain equivalent exists; the
8710
- * program only ever takes `active_id` as input.
8711
- *
8712
- * Saturates to MIN_BIN_ID / MAX_BIN_ID when `priceQ64` is out of representable
8713
- * range.
8714
- */
8715
- declare function getIdFromPrice(priceQ64: bigint, binStep: number): number;
8716
- /**
8717
- * Convert a human-scale price (Number) into a Q64.64 raw lamport-ratio price.
8718
- *
8719
- * Lossy: bounded by Number's ~16-digit mantissa. For exact pipelines, work in
8720
- * Q64.64 directly via {@link getPriceFromId} / {@link getIdFromPrice}.
8721
- */
8722
- declare function humanPriceToQ64(humanPrice: number, decimalsX: number, decimalsY: number): bigint;
8723
- /**
8724
- * Convert a Q64.64 raw lamport-ratio price into a human-scale Number.
8725
- *
8726
- * Lossy by Number precision; use only for display or for round-tripping when
8727
- * exact equality is not required.
8728
- */
8729
- declare function q64ToHumanPrice(priceQ64: bigint, decimalsX: number, decimalsY: number): number;
8730
- declare function priceToBinId(humanPrice: number, binStep: number, decimalsX: number, decimalsY: number): number;
8731
- declare function binIdToPrice(binId: number, binStep: number, decimalsX: number, decimalsY: number): number;
8706
+ declare function binIdToPrice(binId: number, binStep: number, decimalsX?: number, decimalsY?: number): number;
8732
8707
  declare function binIdToBinArrayIndex(binId: number): bigint;
8733
8708
  declare function binArrayIndexToBinIdRange(index: bigint | number): {
8734
8709
  lower: number;
8735
8710
  upper: number;
8736
8711
  };
8737
8712
 
8738
- export { ADD_LIQUIDITY2_DISCRIMINATOR, ADD_LIQUIDITY_BY_STRATEGY2_DISCRIMINATOR, ADD_LIQUIDITY_BY_STRATEGY_DISCRIMINATOR, ADD_LIQUIDITY_BY_STRATEGY_ONE_SIDE_DISCRIMINATOR, ADD_LIQUIDITY_BY_WEIGHT2_DISCRIMINATOR, ADD_LIQUIDITY_BY_WEIGHT_DISCRIMINATOR, ADD_LIQUIDITY_DISCRIMINATOR, ADD_LIQUIDITY_ONE_SIDE_DISCRIMINATOR, ADD_LIQUIDITY_ONE_SIDE_PRECISE2_DISCRIMINATOR, ADD_LIQUIDITY_ONE_SIDE_PRECISE_DISCRIMINATOR, type AccountsType, type AccountsTypeArgs, ActivationType, type ActivationTypeArgs, type AddLiquidity2AsyncInput, type AddLiquidity2Input, type AddLiquidity2Instruction, type AddLiquidity2InstructionData, type AddLiquidity2InstructionDataArgs, type AddLiquidityAsyncInput, type AddLiquidityByStrategy2AsyncInput, type AddLiquidityByStrategy2Input, type AddLiquidityByStrategy2Instruction, type AddLiquidityByStrategy2InstructionData, type AddLiquidityByStrategy2InstructionDataArgs, type AddLiquidityByStrategyAsyncInput, type AddLiquidityByStrategyInput, type AddLiquidityByStrategyInstruction, type AddLiquidityByStrategyInstructionData, type AddLiquidityByStrategyInstructionDataArgs, type AddLiquidityByStrategyOneSideAsyncInput, type AddLiquidityByStrategyOneSideInput, type AddLiquidityByStrategyOneSideInstruction, type AddLiquidityByStrategyOneSideInstructionData, type AddLiquidityByStrategyOneSideInstructionDataArgs, type AddLiquidityByWeight2AsyncInput, type AddLiquidityByWeight2Input, type AddLiquidityByWeight2Instruction, type AddLiquidityByWeight2InstructionData, type AddLiquidityByWeight2InstructionDataArgs, type AddLiquidityByWeightAsyncInput, type AddLiquidityByWeightInput, type AddLiquidityByWeightInstruction, type AddLiquidityByWeightInstructionData, type AddLiquidityByWeightInstructionDataArgs, type AddLiquidityInput, type AddLiquidityInstruction, type AddLiquidityInstructionData, type AddLiquidityInstructionDataArgs, type AddLiquidityOneSideAsyncInput, type AddLiquidityOneSideInput, type AddLiquidityOneSideInstruction, type AddLiquidityOneSideInstructionData, type AddLiquidityOneSideInstructionDataArgs, type AddLiquidityOneSidePrecise2AsyncInput, type AddLiquidityOneSidePrecise2Input, type AddLiquidityOneSidePrecise2Instruction, type AddLiquidityOneSidePrecise2InstructionData, type AddLiquidityOneSidePrecise2InstructionDataArgs, type AddLiquidityOneSidePreciseAsyncInput, type AddLiquidityOneSidePreciseInput, type AddLiquidityOneSidePreciseInstruction, type AddLiquidityOneSidePreciseInstructionData, type AddLiquidityOneSidePreciseInstructionDataArgs, type AddLiquidityParams, type AddLiquidityParamsArgs, BASIS_POINT_MAX, BIN_ARRAY_BITMAP_EXTENSION_DISCRIMINATOR, BIN_ARRAY_DISCRIMINATOR, type Bin, type BinArgs, type BinArray, type BinArrayArgs, type BinArrayBitmapExtension, type BinArrayBitmapExtensionArgs, type BinArrayBitmapExtensionSeeds, type BinArraySeeds, type BinLimitOrderAmount, type BinLimitOrderAmountArgs, type BinLiquidityDistribution, type BinLiquidityDistributionArgs, type BinLiquidityDistributionByWeight, type BinLiquidityDistributionByWeightArgs, type BinLiquidityReduction, type BinLiquidityReductionArgs, CANCEL_LIMIT_ORDER_DISCRIMINATOR, CLAIM_FEE2_DISCRIMINATOR, CLAIM_FEE_DISCRIMINATOR, CLAIM_FEE_OPERATOR_DISCRIMINATOR, CLAIM_REWARD2_DISCRIMINATOR, CLAIM_REWARD_DISCRIMINATOR, CLOSE_BIN_ARRAY_DISCRIMINATOR, CLOSE_CLAIM_FEE_OPERATOR_ACCOUNT_DISCRIMINATOR, CLOSE_LIMIT_ORDER_IF_EMPTY_DISCRIMINATOR, CLOSE_OPERATOR_ACCOUNT_DISCRIMINATOR, CLOSE_POSITION2_DISCRIMINATOR, CLOSE_POSITION_DISCRIMINATOR, CLOSE_POSITION_IF_EMPTY_DISCRIMINATOR, CLOSE_PRESET_PARAMETER2_DISCRIMINATOR, CLOSE_PRESET_PARAMETER_DISCRIMINATOR, CLOSE_TOKEN_BADGE_DISCRIMINATOR, CREATE_OPERATOR_ACCOUNT_DISCRIMINATOR, type CancelLimitOrderAsyncInput, type CancelLimitOrderInput, type CancelLimitOrderInstruction, type CancelLimitOrderInstructionData, type CancelLimitOrderInstructionDataArgs, type ClaimFee2AsyncInput, type ClaimFee2Input, type ClaimFee2Instruction, type ClaimFee2InstructionData, type ClaimFee2InstructionDataArgs, type ClaimFeeAsyncInput, type ClaimFeeInput, type ClaimFeeInstruction, type ClaimFeeInstructionData, type ClaimFeeInstructionDataArgs, type ClaimFeeOperator, type ClaimFeeOperatorArgs, type ClaimReward2AsyncInput, type ClaimReward2Input, type ClaimReward2Instruction, type ClaimReward2InstructionData, type ClaimReward2InstructionDataArgs, type ClaimRewardAsyncInput, type ClaimRewardInput, type ClaimRewardInstruction, type ClaimRewardInstructionData, type ClaimRewardInstructionDataArgs, type CloseBinArrayInput, type CloseBinArrayInstruction, type CloseBinArrayInstructionData, type CloseBinArrayInstructionDataArgs, type CloseClaimFeeOperatorAccountInput, type CloseClaimFeeOperatorAccountInstruction, type CloseClaimFeeOperatorAccountInstructionData, type CloseClaimFeeOperatorAccountInstructionDataArgs, type CloseLimitOrderIfEmptyAsyncInput, type CloseLimitOrderIfEmptyInput, type CloseLimitOrderIfEmptyInstruction, type CloseLimitOrderIfEmptyInstructionData, type CloseLimitOrderIfEmptyInstructionDataArgs, type CloseOperatorAccountInput, type CloseOperatorAccountInstruction, type CloseOperatorAccountInstructionData, type CloseOperatorAccountInstructionDataArgs, type ClosePosition2AsyncInput, type ClosePosition2Input, type ClosePosition2Instruction, type ClosePosition2InstructionData, type ClosePosition2InstructionDataArgs, type ClosePositionAsyncInput, type ClosePositionIfEmptyAsyncInput, type ClosePositionIfEmptyInput, type ClosePositionIfEmptyInstruction, type ClosePositionIfEmptyInstructionData, type ClosePositionIfEmptyInstructionDataArgs, type ClosePositionInput, type ClosePositionInstruction, type ClosePositionInstructionData, type ClosePositionInstructionDataArgs, type ClosePresetParameter2Input, type ClosePresetParameter2Instruction, type ClosePresetParameter2InstructionData, type ClosePresetParameter2InstructionDataArgs, type ClosePresetParameterInput, type ClosePresetParameterInstruction, type ClosePresetParameterInstructionData, type ClosePresetParameterInstructionDataArgs, type CloseTokenBadgeInput, type CloseTokenBadgeInstruction, type CloseTokenBadgeInstructionData, type CloseTokenBadgeInstructionDataArgs, type CompressedBinDepositAmount, type CompressedBinDepositAmountArgs, type CreateOperatorAccountAsyncInput, type CreateOperatorAccountInput, type CreateOperatorAccountInstruction, type CreateOperatorAccountInstructionData, type CreateOperatorAccountInstructionDataArgs, type CustomizableParams, type CustomizableParamsArgs, DECREASE_POSITION_LENGTH_DISCRIMINATOR, DUMMY_ZC_ACCOUNT_DISCRIMINATOR, type DecreasePositionLengthAsyncInput, type DecreasePositionLengthInput, type DecreasePositionLengthInstruction, type DecreasePositionLengthInstructionData, type DecreasePositionLengthInstructionDataArgs, type DummyZcAccount, type DummyZcAccountArgs, FOR_IDL_TYPE_GENERATION_DO_NOT_CALL_DISCRIMINATOR, FUND_REWARD_DISCRIMINATOR, type FeeInfo, type FeeInfoArgs, type ForIdlTypeGenerationDoNotCallInput, type ForIdlTypeGenerationDoNotCallInstruction, type ForIdlTypeGenerationDoNotCallInstructionData, type ForIdlTypeGenerationDoNotCallInstructionDataArgs, type FundRewardAsyncInput, type FundRewardInput, type FundRewardInstruction, type FundRewardInstructionData, type FundRewardInstructionDataArgs, GO_TO_A_BIN_DISCRIMINATOR, type GoToABinAsyncInput, type GoToABinInput, type GoToABinInstruction, type GoToABinInstructionData, type GoToABinInstructionDataArgs, INCREASE_ORACLE_LENGTH_DISCRIMINATOR, INCREASE_POSITION_LENGTH2_DISCRIMINATOR, INCREASE_POSITION_LENGTH_DISCRIMINATOR, INITIALIZE_BIN_ARRAY_BITMAP_EXTENSION_DISCRIMINATOR, INITIALIZE_BIN_ARRAY_DISCRIMINATOR, INITIALIZE_CUSTOMIZABLE_PERMISSIONLESS_LB_PAIR2_DISCRIMINATOR, INITIALIZE_CUSTOMIZABLE_PERMISSIONLESS_LB_PAIR_DISCRIMINATOR, INITIALIZE_LB_PAIR2_DISCRIMINATOR, INITIALIZE_LB_PAIR_DISCRIMINATOR, INITIALIZE_PERMISSION_LB_PAIR_DISCRIMINATOR, INITIALIZE_POSITION2_DISCRIMINATOR, INITIALIZE_POSITION_BY_OPERATOR_DISCRIMINATOR, INITIALIZE_POSITION_DISCRIMINATOR, INITIALIZE_POSITION_PDA_DISCRIMINATOR, INITIALIZE_PRESET_PARAMETER_DISCRIMINATOR, INITIALIZE_REWARD_DISCRIMINATOR, INITIALIZE_TOKEN_BADGE_DISCRIMINATOR, type IncreaseOracleLengthAsyncInput, type IncreaseOracleLengthInput, type IncreaseOracleLengthInstruction, type IncreaseOracleLengthInstructionData, type IncreaseOracleLengthInstructionDataArgs, type IncreasePositionLength2AsyncInput, type IncreasePositionLength2Input, type IncreasePositionLength2Instruction, type IncreasePositionLength2InstructionData, type IncreasePositionLength2InstructionDataArgs, type IncreasePositionLengthAsyncInput, type IncreasePositionLengthInput, type IncreasePositionLengthInstruction, type IncreasePositionLengthInstructionData, type IncreasePositionLengthInstructionDataArgs, type InitializeBinArrayAsyncInput, type InitializeBinArrayBitmapExtensionAsyncInput, type InitializeBinArrayBitmapExtensionInput, type InitializeBinArrayBitmapExtensionInstruction, type InitializeBinArrayBitmapExtensionInstructionData, type InitializeBinArrayBitmapExtensionInstructionDataArgs, type InitializeBinArrayInput, type InitializeBinArrayInstruction, type InitializeBinArrayInstructionData, type InitializeBinArrayInstructionDataArgs, type InitializeCustomizablePermissionlessLbPair2AsyncInput, type InitializeCustomizablePermissionlessLbPair2Input, type InitializeCustomizablePermissionlessLbPair2Instruction, type InitializeCustomizablePermissionlessLbPair2InstructionData, type InitializeCustomizablePermissionlessLbPair2InstructionDataArgs, type InitializeCustomizablePermissionlessLbPairAsyncInput, type InitializeCustomizablePermissionlessLbPairInput, type InitializeCustomizablePermissionlessLbPairInstruction, type InitializeCustomizablePermissionlessLbPairInstructionData, type InitializeCustomizablePermissionlessLbPairInstructionDataArgs, type InitializeLbPair2AsyncInput, type InitializeLbPair2Input, type InitializeLbPair2Instruction, type InitializeLbPair2InstructionData, type InitializeLbPair2InstructionDataArgs, type InitializeLbPairAsyncInput, type InitializeLbPairInput, type InitializeLbPairInstruction, type InitializeLbPairInstructionData, type InitializeLbPairInstructionDataArgs, type InitializePermissionLbPairAsyncInput, type InitializePermissionLbPairInput, type InitializePermissionLbPairInstruction, type InitializePermissionLbPairInstructionData, type InitializePermissionLbPairInstructionDataArgs, type InitializePosition2AsyncInput, type InitializePosition2Input, type InitializePosition2Instruction, type InitializePosition2InstructionData, type InitializePosition2InstructionDataArgs, type InitializePositionAsyncInput, type InitializePositionByOperatorAsyncInput, type InitializePositionByOperatorInput, type InitializePositionByOperatorInstruction, type InitializePositionByOperatorInstructionData, type InitializePositionByOperatorInstructionDataArgs, type InitializePositionInput, type InitializePositionInstruction, type InitializePositionInstructionData, type InitializePositionInstructionDataArgs, type InitializePositionPdaAsyncInput, type InitializePositionPdaInput, type InitializePositionPdaInstruction, type InitializePositionPdaInstructionData, type InitializePositionPdaInstructionDataArgs, type InitializePresetParameterInput, type InitializePresetParameterInstruction, type InitializePresetParameterInstructionData, type InitializePresetParameterInstructionDataArgs, type InitializeRewardAsyncInput, type InitializeRewardInput, type InitializeRewardInstruction, type InitializeRewardInstructionData, type InitializeRewardInstructionDataArgs, type InitializeTokenBadgeAsyncInput, type InitializeTokenBadgeInput, type InitializeTokenBadgeInstruction, type InitializeTokenBadgeInstructionData, type InitializeTokenBadgeInstructionDataArgs, LB_CLMM_ERROR__ALREADY_PASS_ACTIVATION_POINT, LB_CLMM_ERROR__ALREADY_PASS_PRE_ACTIVATION_SWAP_POINT, LB_CLMM_ERROR__AMOUNT_X_IS_NEGATIVE, LB_CLMM_ERROR__AMOUNT_Y_IS_NEGATIVE, LB_CLMM_ERROR__BIN_ARRAY_NOT_FOUND, LB_CLMM_ERROR__BIN_ID_OUT_OF_BOUND, LB_CLMM_ERROR__BIN_RANGE_IS_NOT_EMPTY, LB_CLMM_ERROR__BITMAP_EXTENSION_ACCOUNT_IS_NOT_PROVIDED, LB_CLMM_ERROR__CANCEL_NON_EMPTY_LIMIT_ORDER, LB_CLMM_ERROR__CANNOT_FIND_LIMIT_ORDER_BY_BIN_ID, LB_CLMM_ERROR__CANNOT_FIND_NON_ZERO_LIQUIDITY_BIN_ARRAY_ID, LB_CLMM_ERROR__COMPOSITION_FACTOR_FLAWED, LB_CLMM_ERROR__CPI_DISABLED, LB_CLMM_ERROR__DUPLICATED_REMAINING_ACCOUNT_TYPES, LB_CLMM_ERROR__EXCEEDED_AMOUNT_SLIPPAGE_TOLERANCE, LB_CLMM_ERROR__EXCEEDED_BIN_SLIPPAGE_TOLERANCE, LB_CLMM_ERROR__EXCEEDED_MAX_ORACLE_LENGTH, LB_CLMM_ERROR__EXCEED_MAX_SWAPPED_AMOUNT, LB_CLMM_ERROR__EXCEED_MAX_WHITELIST, LB_CLMM_ERROR__EXCESSIVE_FEE_UPDATE, LB_CLMM_ERROR__IDENTICAL_FEE_OWNER, LB_CLMM_ERROR__IDENTICAL_FUNDER, LB_CLMM_ERROR__IDENTICAL_REWARD_DURATION, LB_CLMM_ERROR__INCORRECT_A_T_A, LB_CLMM_ERROR__INSUFFICIENT_IN_AMOUNT, LB_CLMM_ERROR__INSUFFICIENT_OUT_AMOUNT, LB_CLMM_ERROR__INSUFFICIENT_REMAINING_ACCOUNTS, LB_CLMM_ERROR__INSUFFICIENT_SAMPLE, LB_CLMM_ERROR__INVALID_ACCOUNT_FOR_SINGLE_DEPOSIT, LB_CLMM_ERROR__INVALID_ACTIVATION_DURATION, LB_CLMM_ERROR__INVALID_ACTIVATION_TYPE, LB_CLMM_ERROR__INVALID_ADMIN, LB_CLMM_ERROR__INVALID_BASE_FEE, LB_CLMM_ERROR__INVALID_BASE_FEE_MANTISSA, LB_CLMM_ERROR__INVALID_BIN_ARRAY, LB_CLMM_ERROR__INVALID_BIN_ID, LB_CLMM_ERROR__INVALID_BIN_STEP, LB_CLMM_ERROR__INVALID_BPS, LB_CLMM_ERROR__INVALID_CANCEL_LIMIT_ORDER_PARAMETERS, LB_CLMM_ERROR__INVALID_COLLECT_FEE_MODE, LB_CLMM_ERROR__INVALID_FEE_OWNER, LB_CLMM_ERROR__INVALID_FEE_PARAMETER, LB_CLMM_ERROR__INVALID_FEE_WITHDRAW_AMOUNT, LB_CLMM_ERROR__INVALID_FUNCTION_TYPE, LB_CLMM_ERROR__INVALID_INDEX, LB_CLMM_ERROR__INVALID_INPUT, LB_CLMM_ERROR__INVALID_LIMIT_ORDER_OWNER, LB_CLMM_ERROR__INVALID_LOOKUP_TIMESTAMP, LB_CLMM_ERROR__INVALID_MINIMUM_LIQUIDITY, LB_CLMM_ERROR__INVALID_PERMISSION, LB_CLMM_ERROR__INVALID_PLACE_LIMIT_ORDER_PARAMETERS, LB_CLMM_ERROR__INVALID_POOL_ADDRESS, LB_CLMM_ERROR__INVALID_POOL_CREATOR, LB_CLMM_ERROR__INVALID_POOL_TYPE, LB_CLMM_ERROR__INVALID_POSITION, LB_CLMM_ERROR__INVALID_POSITION_OWNER, LB_CLMM_ERROR__INVALID_POSITION_WIDTH, LB_CLMM_ERROR__INVALID_PRE_ACTIVATION_DURATION, LB_CLMM_ERROR__INVALID_QUOTE_TOKEN, LB_CLMM_ERROR__INVALID_REBALANCE_PARAMETERS, LB_CLMM_ERROR__INVALID_REMAINING_ACCOUNT_SLICE, LB_CLMM_ERROR__INVALID_RESIZE_LENGTH, LB_CLMM_ERROR__INVALID_REWARD_ACCOUNTS, LB_CLMM_ERROR__INVALID_REWARD_DURATION, LB_CLMM_ERROR__INVALID_REWARD_INDEX, LB_CLMM_ERROR__INVALID_REWARD_VAULT, LB_CLMM_ERROR__INVALID_SIDE, LB_CLMM_ERROR__INVALID_START_BIN_INDEX, LB_CLMM_ERROR__INVALID_STATUS, LB_CLMM_ERROR__INVALID_STRATEGY_PARAMETERS, LB_CLMM_ERROR__INVALID_TOKEN_BADGE_TYPE, LB_CLMM_ERROR__INVALID_TOKEN_MINT, LB_CLMM_ERROR__INVALID_TRANSFER_HOOK_AUTHORITY, LB_CLMM_ERROR__INVALID_WITHDRAW_PROTOCOL_FEE_ZAP_ACCOUNTS, LB_CLMM_ERROR__INVALID_ZAP_ACCOUNTS, LB_CLMM_ERROR__INVALID_ZAP_OUT_PARAMETERS, LB_CLMM_ERROR__LIQUIDITY_LOCKED, LB_CLMM_ERROR__MATH_OVERFLOW, LB_CLMM_ERROR__MINT_RESTRICTED_FROM_ZAP, LB_CLMM_ERROR__MISSING_ORACLE, LB_CLMM_ERROR__MISSING_REMAINING_ACCOUNT_FOR_TRANSFER_HOOK, LB_CLMM_ERROR__MISSING_TOKEN_AMOUNT_AS_TOKEN_LAUNCH_PROOF, LB_CLMM_ERROR__MISSING_ZAP_OUT_INSTRUCTION, LB_CLMM_ERROR__MUST_WITHDRAWN_INELIGIBLE_REWARD, LB_CLMM_ERROR__NON_CONTINUOUS_BIN_ARRAYS, LB_CLMM_ERROR__NON_EMPTY_POSITION, LB_CLMM_ERROR__NON_PRESET_BIN_STEP, LB_CLMM_ERROR__NOT_EXACT_AMOUNT_OUT, LB_CLMM_ERROR__NOT_SUPPORT_AT_THE_MOMENT, LB_CLMM_ERROR__NOT_SUPPORT_MINT, LB_CLMM_ERROR__NO_TRANSFER_HOOK_PROGRAM, LB_CLMM_ERROR__OPERATORS_ARE_THE_SAME, LB_CLMM_ERROR__PAIR_INSUFFICIENT_LIQUIDITY, LB_CLMM_ERROR__POOL_DISABLED, LB_CLMM_ERROR__REALLOC_EXCEED_MAX_LENGTH_PER_INSTRUCTION, LB_CLMM_ERROR__REWARD_CAMPAIGN_IN_PROGRESS, LB_CLMM_ERROR__REWARD_INITIALIZED, LB_CLMM_ERROR__REWARD_NOT_ENDED, LB_CLMM_ERROR__REWARD_UNINITIALIZED, LB_CLMM_ERROR__TYPE_CAST_FAILED, LB_CLMM_ERROR__UNAUTHORIZED_ACCESS, LB_CLMM_ERROR__UNAUTHORIZED_ADDRESS, LB_CLMM_ERROR__UNDETERMINED_ERROR, LB_CLMM_ERROR__UNMATCH_TOKEN_MINT, LB_CLMM_ERROR__UNSUPPORTED_MINT_EXTENSION, LB_CLMM_ERROR__UNSUPPORTED_TOKEN_MINT, LB_CLMM_ERROR__UNSUPPORT_NATIVE_MINT_TOKEN2022, LB_CLMM_ERROR__WITHDRAW_TO_WRONG_TOKEN_ACCOUNT, LB_CLMM_ERROR__WRONG_RENT_RECEIVER, LB_CLMM_ERROR__ZERO_FUNDED_AMOUNT, LB_CLMM_ERROR__ZERO_LIQUIDITY, LB_CLMM_PROGRAM_ADDRESS, LB_PAIR_DISCRIMINATOR, LIMIT_ORDER_DISCRIMINATOR, LbClmmAccount, type LbClmmError, LbClmmInstruction, type LbPair, type LbPairArgs, type LimitOrder, type LimitOrderArgs, type LimitOrderBinData, type LimitOrderBinDataArgs, type LiquidityParameter, type LiquidityParameterArgs, type LiquidityParameterByStrategy, type LiquidityParameterByStrategyArgs, type LiquidityParameterByWeight, type LiquidityParameterByWeightArgs, MAX_BIN_ID, MAX_BIN_PER_ARRAY, MIN_BIN_ID, ONE_Q64, OPERATOR_DISCRIMINATOR, ORACLE_DISCRIMINATOR, type Operator, type OperatorArgs, type OperatorSeeds, type Oracle, type OracleArgs, type OracleSeeds, PLACE_LIMIT_ORDER_DISCRIMINATOR, POSITION_V2_DISCRIMINATOR, PRESET_PARAMETER2_DISCRIMINATOR, PRESET_PARAMETER2_SEED, PRESET_PARAMETER_DISCRIMINATOR, PairStatus, type PairStatusArgs, PairType, type PairTypeArgs, type ParsedAddLiquidity2Instruction, type ParsedAddLiquidityByStrategy2Instruction, type ParsedAddLiquidityByStrategyInstruction, type ParsedAddLiquidityByStrategyOneSideInstruction, type ParsedAddLiquidityByWeight2Instruction, type ParsedAddLiquidityByWeightInstruction, type ParsedAddLiquidityInstruction, type ParsedAddLiquidityOneSideInstruction, type ParsedAddLiquidityOneSidePrecise2Instruction, type ParsedAddLiquidityOneSidePreciseInstruction, type ParsedCancelLimitOrderInstruction, type ParsedClaimFee2Instruction, type ParsedClaimFeeInstruction, type ParsedClaimReward2Instruction, type ParsedClaimRewardInstruction, type ParsedCloseBinArrayInstruction, type ParsedCloseClaimFeeOperatorAccountInstruction, type ParsedCloseLimitOrderIfEmptyInstruction, type ParsedCloseOperatorAccountInstruction, type ParsedClosePosition2Instruction, type ParsedClosePositionIfEmptyInstruction, type ParsedClosePositionInstruction, type ParsedClosePresetParameter2Instruction, type ParsedClosePresetParameterInstruction, type ParsedCloseTokenBadgeInstruction, type ParsedCreateOperatorAccountInstruction, type ParsedDecreasePositionLengthInstruction, type ParsedForIdlTypeGenerationDoNotCallInstruction, type ParsedFundRewardInstruction, type ParsedGoToABinInstruction, type ParsedIncreaseOracleLengthInstruction, type ParsedIncreasePositionLength2Instruction, type ParsedIncreasePositionLengthInstruction, type ParsedInitializeBinArrayBitmapExtensionInstruction, type ParsedInitializeBinArrayInstruction, type ParsedInitializeCustomizablePermissionlessLbPair2Instruction, type ParsedInitializeCustomizablePermissionlessLbPairInstruction, type ParsedInitializeLbPair2Instruction, type ParsedInitializeLbPairInstruction, type ParsedInitializePermissionLbPairInstruction, type ParsedInitializePosition2Instruction, type ParsedInitializePositionByOperatorInstruction, type ParsedInitializePositionInstruction, type ParsedInitializePositionPdaInstruction, type ParsedInitializePresetParameterInstruction, type ParsedInitializeRewardInstruction, type ParsedInitializeTokenBadgeInstruction, type ParsedLbClmmInstruction, type ParsedPlaceLimitOrderInstruction, type ParsedRebalanceLiquidityInstruction, type ParsedRemoveAllLiquidityInstruction, type ParsedRemoveLiquidity2Instruction, type ParsedRemoveLiquidityByRange2Instruction, type ParsedRemoveLiquidityByRangeInstruction, type ParsedRemoveLiquidityInstruction, type ParsedSetActivationPointInstruction, type ParsedSetPairStatusInstruction, type ParsedSetPairStatusPermissionlessInstruction, type ParsedSetPermissionlessOperationBitsInstruction, type ParsedSetPreActivationDurationInstruction, type ParsedSetPreActivationSwapAddressInstruction, type ParsedSwap2Instruction, type ParsedSwapExactOut2Instruction, type ParsedSwapExactOutInstruction, type ParsedSwapInstruction, type ParsedSwapWithPriceImpact2Instruction, type ParsedSwapWithPriceImpactInstruction, type ParsedUpdateBaseFeeParametersInstruction, type ParsedUpdateDynamicFeeParametersInstruction, type ParsedUpdateFeesAndReward2Instruction, type ParsedUpdateFeesAndRewardsInstruction, type ParsedUpdatePositionOperatorInstruction, type ParsedUpdateRewardDurationInstruction, type ParsedUpdateRewardFunderInstruction, type ParsedWithdrawIneligibleRewardInstruction, type ParsedWithdrawProtocolFeeInstruction, type ParsedZapProtocolFeeInstruction, type PlaceLimitOrderAsyncInput, type PlaceLimitOrderInput, type PlaceLimitOrderInstruction, type PlaceLimitOrderInstructionData, type PlaceLimitOrderInstructionDataArgs, type PlaceLimitOrderParams, type PlaceLimitOrderParamsArgs, type PositionBinData, type PositionBinDataArgs, type PositionSeeds, type PositionV2, type PositionV2Args, type PresetParameter, type PresetParameter2, type PresetParameter2Args, type PresetParameterArgs, type ProtocolFee, type ProtocolFeeArgs, REBALANCE_LIQUIDITY_DISCRIMINATOR, REMOVE_ALL_LIQUIDITY_DISCRIMINATOR, REMOVE_LIQUIDITY2_DISCRIMINATOR, REMOVE_LIQUIDITY_BY_RANGE2_DISCRIMINATOR, REMOVE_LIQUIDITY_BY_RANGE_DISCRIMINATOR, REMOVE_LIQUIDITY_DISCRIMINATOR, type RebalanceLiquidityAsyncInput, type RebalanceLiquidityInput, type RebalanceLiquidityInstruction, type RebalanceLiquidityInstructionData, type RebalanceLiquidityInstructionDataArgs, type RelativeBin, type RelativeBinArgs, type RemainingAccountsInfo, type RemainingAccountsInfoArgs, type RemainingAccountsSlice, type RemainingAccountsSliceArgs, type RemoveAllLiquidityAsyncInput, type RemoveAllLiquidityInput, type RemoveAllLiquidityInstruction, type RemoveAllLiquidityInstructionData, type RemoveAllLiquidityInstructionDataArgs, type RemoveLiquidity2AsyncInput, type RemoveLiquidity2Input, type RemoveLiquidity2Instruction, type RemoveLiquidity2InstructionData, type RemoveLiquidity2InstructionDataArgs, type RemoveLiquidityAsyncInput, type RemoveLiquidityByRange2AsyncInput, type RemoveLiquidityByRange2Input, type RemoveLiquidityByRange2Instruction, type RemoveLiquidityByRange2InstructionData, type RemoveLiquidityByRange2InstructionDataArgs, type RemoveLiquidityByRangeAsyncInput, type RemoveLiquidityByRangeInput, type RemoveLiquidityByRangeInstruction, type RemoveLiquidityByRangeInstructionData, type RemoveLiquidityByRangeInstructionDataArgs, type RemoveLiquidityInput, type RemoveLiquidityInstruction, type RemoveLiquidityInstructionData, type RemoveLiquidityInstructionDataArgs, type RemoveLiquidityParams, type RemoveLiquidityParamsArgs, type ReserveXSeeds, type ReserveYSeeds, ResizeSide, type ResizeSideArgs, type RewardInfo, type RewardInfoArgs, type RewardVaultSeeds, Rounding, type RoundingArgs, SCALE_OFFSET, SET_ACTIVATION_POINT_DISCRIMINATOR, SET_PAIR_STATUS_DISCRIMINATOR, SET_PAIR_STATUS_PERMISSIONLESS_DISCRIMINATOR, SET_PERMISSIONLESS_OPERATION_BITS_DISCRIMINATOR, SET_PRE_ACTIVATION_DURATION_DISCRIMINATOR, SET_PRE_ACTIVATION_SWAP_ADDRESS_DISCRIMINATOR, SWAP2_DISCRIMINATOR, SWAP_DISCRIMINATOR, SWAP_EXACT_OUT2_DISCRIMINATOR, SWAP_EXACT_OUT_DISCRIMINATOR, SWAP_WITH_PRICE_IMPACT2_DISCRIMINATOR, SWAP_WITH_PRICE_IMPACT_DISCRIMINATOR, type SetActivationPointInput, type SetActivationPointInstruction, type SetActivationPointInstructionData, type SetActivationPointInstructionDataArgs, type SetPairStatusInput, type SetPairStatusInstruction, type SetPairStatusInstructionData, type SetPairStatusInstructionDataArgs, type SetPairStatusPermissionlessInput, type SetPairStatusPermissionlessInstruction, type SetPairStatusPermissionlessInstructionData, type SetPairStatusPermissionlessInstructionDataArgs, type SetPermissionlessOperationBitsAsyncInput, type SetPermissionlessOperationBitsInput, type SetPermissionlessOperationBitsInstruction, type SetPermissionlessOperationBitsInstructionData, type SetPermissionlessOperationBitsInstructionDataArgs, type SetPreActivationDurationInput, type SetPreActivationDurationInstruction, type SetPreActivationDurationInstructionData, type SetPreActivationDurationInstructionDataArgs, type SetPreActivationSwapAddressInput, type SetPreActivationSwapAddressInstruction, type SetPreActivationSwapAddressInstructionData, type SetPreActivationSwapAddressInstructionDataArgs, type StaticParameters, type StaticParametersArgs, type StrategyParameters, type StrategyParametersArgs, StrategyType, type StrategyTypeArgs, type Swap2AsyncInput, type Swap2Input, type Swap2Instruction, type Swap2InstructionData, type Swap2InstructionDataArgs, type SwapAsyncInput, type SwapExactOut2AsyncInput, type SwapExactOut2Input, type SwapExactOut2Instruction, type SwapExactOut2InstructionData, type SwapExactOut2InstructionDataArgs, type SwapExactOutAsyncInput, type SwapExactOutInput, type SwapExactOutInstruction, type SwapExactOutInstructionData, type SwapExactOutInstructionDataArgs, type SwapInput, type SwapInstruction, type SwapInstructionData, type SwapInstructionDataArgs, type SwapWithPriceImpact2AsyncInput, type SwapWithPriceImpact2Input, type SwapWithPriceImpact2Instruction, type SwapWithPriceImpact2InstructionData, type SwapWithPriceImpact2InstructionDataArgs, type SwapWithPriceImpactAsyncInput, type SwapWithPriceImpactInput, type SwapWithPriceImpactInstruction, type SwapWithPriceImpactInstructionData, type SwapWithPriceImpactInstructionDataArgs, TOKEN_BADGE_DISCRIMINATOR, type TokenBadge, type TokenBadgeArgs, type TokenBadgeSeeds, TokenProgramFlags, type TokenProgramFlagsArgs, UPDATE_BASE_FEE_PARAMETERS_DISCRIMINATOR, UPDATE_DYNAMIC_FEE_PARAMETERS_DISCRIMINATOR, UPDATE_FEES_AND_REWARD2_DISCRIMINATOR, UPDATE_FEES_AND_REWARDS_DISCRIMINATOR, UPDATE_POSITION_OPERATOR_DISCRIMINATOR, UPDATE_REWARD_DURATION_DISCRIMINATOR, UPDATE_REWARD_FUNDER_DISCRIMINATOR, type UpdateBaseFeeParametersAsyncInput, type UpdateBaseFeeParametersInput, type UpdateBaseFeeParametersInstruction, type UpdateBaseFeeParametersInstructionData, type UpdateBaseFeeParametersInstructionDataArgs, type UpdateDynamicFeeParametersAsyncInput, type UpdateDynamicFeeParametersInput, type UpdateDynamicFeeParametersInstruction, type UpdateDynamicFeeParametersInstructionData, type UpdateDynamicFeeParametersInstructionDataArgs, type UpdateFeesAndReward2Input, type UpdateFeesAndReward2Instruction, type UpdateFeesAndReward2InstructionData, type UpdateFeesAndReward2InstructionDataArgs, type UpdateFeesAndRewardsInput, type UpdateFeesAndRewardsInstruction, type UpdateFeesAndRewardsInstructionData, type UpdateFeesAndRewardsInstructionDataArgs, type UpdatePositionOperatorAsyncInput, type UpdatePositionOperatorInput, type UpdatePositionOperatorInstruction, type UpdatePositionOperatorInstructionData, type UpdatePositionOperatorInstructionDataArgs, type UpdateRewardDurationAsyncInput, type UpdateRewardDurationInput, type UpdateRewardDurationInstruction, type UpdateRewardDurationInstructionData, type UpdateRewardDurationInstructionDataArgs, type UpdateRewardFunderAsyncInput, type UpdateRewardFunderInput, type UpdateRewardFunderInstruction, type UpdateRewardFunderInstructionData, type UpdateRewardFunderInstructionDataArgs, type UserRewardInfo, type UserRewardInfoArgs, type VariableParameters, type VariableParametersArgs, WITHDRAW_INELIGIBLE_REWARD_DISCRIMINATOR, WITHDRAW_PROTOCOL_FEE_DISCRIMINATOR, type WithdrawIneligibleRewardAsyncInput, type WithdrawIneligibleRewardInput, type WithdrawIneligibleRewardInstruction, type WithdrawIneligibleRewardInstructionData, type WithdrawIneligibleRewardInstructionDataArgs, type WithdrawProtocolFeeInput, type WithdrawProtocolFeeInstruction, type WithdrawProtocolFeeInstructionData, type WithdrawProtocolFeeInstructionDataArgs, ZAP_PROTOCOL_FEE_DISCRIMINATOR, type ZapProtocolFeeInput, type ZapProtocolFeeInstruction, type ZapProtocolFeeInstructionData, type ZapProtocolFeeInstructionDataArgs, accountsType, binArrayIndexToBinIdRange, binIdToBinArrayIndex, binIdToPrice, decodeBinArray, decodeBinArrayBitmapExtension, decodeClaimFeeOperator, decodeDummyZcAccount, decodeLbPair, decodeLimitOrder, decodeOperator, decodeOracle, decodePositionV2, decodePresetParameter, decodePresetParameter2, decodeTokenBadge, fetchAllBinArray, fetchAllBinArrayBitmapExtension, fetchAllClaimFeeOperator, fetchAllDummyZcAccount, fetchAllLbPair, fetchAllLimitOrder, fetchAllMaybeBinArray, fetchAllMaybeBinArrayBitmapExtension, fetchAllMaybeClaimFeeOperator, fetchAllMaybeDummyZcAccount, fetchAllMaybeLbPair, fetchAllMaybeLimitOrder, fetchAllMaybeOperator, fetchAllMaybeOracle, fetchAllMaybePositionV2, fetchAllMaybePresetParameter, fetchAllMaybePresetParameter2, fetchAllMaybeTokenBadge, fetchAllOperator, fetchAllOracle, fetchAllPositionV2, fetchAllPresetParameter, fetchAllPresetParameter2, fetchAllTokenBadge, fetchBinArray, fetchBinArrayBitmapExtension, fetchClaimFeeOperator, fetchDummyZcAccount, fetchLbPair, fetchLimitOrder, fetchMaybeBinArray, fetchMaybeBinArrayBitmapExtension, fetchMaybeClaimFeeOperator, fetchMaybeDummyZcAccount, fetchMaybeLbPair, fetchMaybeLimitOrder, fetchMaybeOperator, fetchMaybeOracle, fetchMaybePositionV2, fetchMaybePresetParameter, fetchMaybePresetParameter2, fetchMaybeTokenBadge, fetchOperator, fetchOracle, fetchPositionV2, fetchPresetParameter, fetchPresetParameter2, fetchTokenBadge, findBinArrayBitmapExtensionPda, findBinArrayPda, findEventAuthorityPda, findLbPairPda, findOperatorPda, findOraclePda, findPositionPda, findPresetParameterPda, findReserveXPda, findReserveYPda, findRewardVaultPda, findTokenBadgePda, getAccountsTypeCodec, getAccountsTypeDecoder, getAccountsTypeEncoder, getActivationTypeCodec, getActivationTypeDecoder, getActivationTypeEncoder, getAddLiquidity2DiscriminatorBytes, getAddLiquidity2Instruction, getAddLiquidity2InstructionAsync, getAddLiquidity2InstructionDataCodec, getAddLiquidity2InstructionDataDecoder, getAddLiquidity2InstructionDataEncoder, getAddLiquidityByStrategy2DiscriminatorBytes, getAddLiquidityByStrategy2Instruction, getAddLiquidityByStrategy2InstructionAsync, getAddLiquidityByStrategy2InstructionDataCodec, getAddLiquidityByStrategy2InstructionDataDecoder, getAddLiquidityByStrategy2InstructionDataEncoder, getAddLiquidityByStrategyDiscriminatorBytes, getAddLiquidityByStrategyInstruction, getAddLiquidityByStrategyInstructionAsync, getAddLiquidityByStrategyInstructionDataCodec, getAddLiquidityByStrategyInstructionDataDecoder, getAddLiquidityByStrategyInstructionDataEncoder, getAddLiquidityByStrategyOneSideDiscriminatorBytes, getAddLiquidityByStrategyOneSideInstruction, getAddLiquidityByStrategyOneSideInstructionAsync, getAddLiquidityByStrategyOneSideInstructionDataCodec, getAddLiquidityByStrategyOneSideInstructionDataDecoder, getAddLiquidityByStrategyOneSideInstructionDataEncoder, getAddLiquidityByWeight2DiscriminatorBytes, getAddLiquidityByWeight2Instruction, getAddLiquidityByWeight2InstructionAsync, getAddLiquidityByWeight2InstructionDataCodec, getAddLiquidityByWeight2InstructionDataDecoder, getAddLiquidityByWeight2InstructionDataEncoder, getAddLiquidityByWeightDiscriminatorBytes, getAddLiquidityByWeightInstruction, getAddLiquidityByWeightInstructionAsync, getAddLiquidityByWeightInstructionDataCodec, getAddLiquidityByWeightInstructionDataDecoder, getAddLiquidityByWeightInstructionDataEncoder, getAddLiquidityDiscriminatorBytes, getAddLiquidityInstruction, getAddLiquidityInstructionAsync, getAddLiquidityInstructionDataCodec, getAddLiquidityInstructionDataDecoder, getAddLiquidityInstructionDataEncoder, getAddLiquidityOneSideDiscriminatorBytes, getAddLiquidityOneSideInstruction, getAddLiquidityOneSideInstructionAsync, getAddLiquidityOneSideInstructionDataCodec, getAddLiquidityOneSideInstructionDataDecoder, getAddLiquidityOneSideInstructionDataEncoder, getAddLiquidityOneSidePrecise2DiscriminatorBytes, getAddLiquidityOneSidePrecise2Instruction, getAddLiquidityOneSidePrecise2InstructionAsync, getAddLiquidityOneSidePrecise2InstructionDataCodec, getAddLiquidityOneSidePrecise2InstructionDataDecoder, getAddLiquidityOneSidePrecise2InstructionDataEncoder, getAddLiquidityOneSidePreciseDiscriminatorBytes, getAddLiquidityOneSidePreciseInstruction, getAddLiquidityOneSidePreciseInstructionAsync, getAddLiquidityOneSidePreciseInstructionDataCodec, getAddLiquidityOneSidePreciseInstructionDataDecoder, getAddLiquidityOneSidePreciseInstructionDataEncoder, getAddLiquidityParamsCodec, getAddLiquidityParamsDecoder, getAddLiquidityParamsEncoder, getBinArrayBitmapExtensionCodec, getBinArrayBitmapExtensionDecoder, getBinArrayBitmapExtensionDiscriminatorBytes, getBinArrayBitmapExtensionEncoder, getBinArrayBitmapExtensionSize, getBinArrayCodec, getBinArrayDecoder, getBinArrayDiscriminatorBytes, getBinArrayEncoder, getBinArraySize, getBinCodec, getBinDecoder, getBinEncoder, getBinLimitOrderAmountCodec, getBinLimitOrderAmountDecoder, getBinLimitOrderAmountEncoder, getBinLiquidityDistributionByWeightCodec, getBinLiquidityDistributionByWeightDecoder, getBinLiquidityDistributionByWeightEncoder, getBinLiquidityDistributionCodec, getBinLiquidityDistributionDecoder, getBinLiquidityDistributionEncoder, getBinLiquidityReductionCodec, getBinLiquidityReductionDecoder, getBinLiquidityReductionEncoder, getCancelLimitOrderDiscriminatorBytes, getCancelLimitOrderInstruction, getCancelLimitOrderInstructionAsync, getCancelLimitOrderInstructionDataCodec, getCancelLimitOrderInstructionDataDecoder, getCancelLimitOrderInstructionDataEncoder, getClaimFee2DiscriminatorBytes, getClaimFee2Instruction, getClaimFee2InstructionAsync, getClaimFee2InstructionDataCodec, getClaimFee2InstructionDataDecoder, getClaimFee2InstructionDataEncoder, getClaimFeeDiscriminatorBytes, getClaimFeeInstruction, getClaimFeeInstructionAsync, getClaimFeeInstructionDataCodec, getClaimFeeInstructionDataDecoder, getClaimFeeInstructionDataEncoder, getClaimFeeOperatorCodec, getClaimFeeOperatorDecoder, getClaimFeeOperatorDiscriminatorBytes, getClaimFeeOperatorEncoder, getClaimFeeOperatorSize, getClaimReward2DiscriminatorBytes, getClaimReward2Instruction, getClaimReward2InstructionAsync, getClaimReward2InstructionDataCodec, getClaimReward2InstructionDataDecoder, getClaimReward2InstructionDataEncoder, getClaimRewardDiscriminatorBytes, getClaimRewardInstruction, getClaimRewardInstructionAsync, getClaimRewardInstructionDataCodec, getClaimRewardInstructionDataDecoder, getClaimRewardInstructionDataEncoder, getCloseBinArrayDiscriminatorBytes, getCloseBinArrayInstruction, getCloseBinArrayInstructionDataCodec, getCloseBinArrayInstructionDataDecoder, getCloseBinArrayInstructionDataEncoder, getCloseClaimFeeOperatorAccountDiscriminatorBytes, getCloseClaimFeeOperatorAccountInstruction, getCloseClaimFeeOperatorAccountInstructionDataCodec, getCloseClaimFeeOperatorAccountInstructionDataDecoder, getCloseClaimFeeOperatorAccountInstructionDataEncoder, getCloseLimitOrderIfEmptyDiscriminatorBytes, getCloseLimitOrderIfEmptyInstruction, getCloseLimitOrderIfEmptyInstructionAsync, getCloseLimitOrderIfEmptyInstructionDataCodec, getCloseLimitOrderIfEmptyInstructionDataDecoder, getCloseLimitOrderIfEmptyInstructionDataEncoder, getCloseOperatorAccountDiscriminatorBytes, getCloseOperatorAccountInstruction, getCloseOperatorAccountInstructionDataCodec, getCloseOperatorAccountInstructionDataDecoder, getCloseOperatorAccountInstructionDataEncoder, getClosePosition2DiscriminatorBytes, getClosePosition2Instruction, getClosePosition2InstructionAsync, getClosePosition2InstructionDataCodec, getClosePosition2InstructionDataDecoder, getClosePosition2InstructionDataEncoder, getClosePositionDiscriminatorBytes, getClosePositionIfEmptyDiscriminatorBytes, getClosePositionIfEmptyInstruction, getClosePositionIfEmptyInstructionAsync, getClosePositionIfEmptyInstructionDataCodec, getClosePositionIfEmptyInstructionDataDecoder, getClosePositionIfEmptyInstructionDataEncoder, getClosePositionInstruction, getClosePositionInstructionAsync, getClosePositionInstructionDataCodec, getClosePositionInstructionDataDecoder, getClosePositionInstructionDataEncoder, getClosePresetParameter2DiscriminatorBytes, getClosePresetParameter2Instruction, getClosePresetParameter2InstructionDataCodec, getClosePresetParameter2InstructionDataDecoder, getClosePresetParameter2InstructionDataEncoder, getClosePresetParameterDiscriminatorBytes, getClosePresetParameterInstruction, getClosePresetParameterInstructionDataCodec, getClosePresetParameterInstructionDataDecoder, getClosePresetParameterInstructionDataEncoder, getCloseTokenBadgeDiscriminatorBytes, getCloseTokenBadgeInstruction, getCloseTokenBadgeInstructionDataCodec, getCloseTokenBadgeInstructionDataDecoder, getCloseTokenBadgeInstructionDataEncoder, getCompressedBinDepositAmountCodec, getCompressedBinDepositAmountDecoder, getCompressedBinDepositAmountEncoder, getCreateOperatorAccountDiscriminatorBytes, getCreateOperatorAccountInstruction, getCreateOperatorAccountInstructionAsync, getCreateOperatorAccountInstructionDataCodec, getCreateOperatorAccountInstructionDataDecoder, getCreateOperatorAccountInstructionDataEncoder, getCustomizableParamsCodec, getCustomizableParamsDecoder, getCustomizableParamsEncoder, getDecreasePositionLengthDiscriminatorBytes, getDecreasePositionLengthInstruction, getDecreasePositionLengthInstructionAsync, getDecreasePositionLengthInstructionDataCodec, getDecreasePositionLengthInstructionDataDecoder, getDecreasePositionLengthInstructionDataEncoder, getDummyZcAccountCodec, getDummyZcAccountDecoder, getDummyZcAccountDiscriminatorBytes, getDummyZcAccountEncoder, getDummyZcAccountSize, getFeeInfoCodec, getFeeInfoDecoder, getFeeInfoEncoder, getForIdlTypeGenerationDoNotCallDiscriminatorBytes, getForIdlTypeGenerationDoNotCallInstruction, getForIdlTypeGenerationDoNotCallInstructionDataCodec, getForIdlTypeGenerationDoNotCallInstructionDataDecoder, getForIdlTypeGenerationDoNotCallInstructionDataEncoder, getFundRewardDiscriminatorBytes, getFundRewardInstruction, getFundRewardInstructionAsync, getFundRewardInstructionDataCodec, getFundRewardInstructionDataDecoder, getFundRewardInstructionDataEncoder, getGoToABinDiscriminatorBytes, getGoToABinInstruction, getGoToABinInstructionAsync, getGoToABinInstructionDataCodec, getGoToABinInstructionDataDecoder, getGoToABinInstructionDataEncoder, getIdFromPrice, getIncreaseOracleLengthDiscriminatorBytes, getIncreaseOracleLengthInstruction, getIncreaseOracleLengthInstructionAsync, getIncreaseOracleLengthInstructionDataCodec, getIncreaseOracleLengthInstructionDataDecoder, getIncreaseOracleLengthInstructionDataEncoder, getIncreasePositionLength2DiscriminatorBytes, getIncreasePositionLength2Instruction, getIncreasePositionLength2InstructionAsync, getIncreasePositionLength2InstructionDataCodec, getIncreasePositionLength2InstructionDataDecoder, getIncreasePositionLength2InstructionDataEncoder, getIncreasePositionLengthDiscriminatorBytes, getIncreasePositionLengthInstruction, getIncreasePositionLengthInstructionAsync, getIncreasePositionLengthInstructionDataCodec, getIncreasePositionLengthInstructionDataDecoder, getIncreasePositionLengthInstructionDataEncoder, getInitializeBinArrayBitmapExtensionDiscriminatorBytes, getInitializeBinArrayBitmapExtensionInstruction, getInitializeBinArrayBitmapExtensionInstructionAsync, getInitializeBinArrayBitmapExtensionInstructionDataCodec, getInitializeBinArrayBitmapExtensionInstructionDataDecoder, getInitializeBinArrayBitmapExtensionInstructionDataEncoder, getInitializeBinArrayDiscriminatorBytes, getInitializeBinArrayInstruction, getInitializeBinArrayInstructionAsync, getInitializeBinArrayInstructionDataCodec, getInitializeBinArrayInstructionDataDecoder, getInitializeBinArrayInstructionDataEncoder, getInitializeCustomizablePermissionlessLbPair2DiscriminatorBytes, getInitializeCustomizablePermissionlessLbPair2Instruction, getInitializeCustomizablePermissionlessLbPair2InstructionAsync, getInitializeCustomizablePermissionlessLbPair2InstructionDataCodec, getInitializeCustomizablePermissionlessLbPair2InstructionDataDecoder, getInitializeCustomizablePermissionlessLbPair2InstructionDataEncoder, getInitializeCustomizablePermissionlessLbPairDiscriminatorBytes, getInitializeCustomizablePermissionlessLbPairInstruction, getInitializeCustomizablePermissionlessLbPairInstructionAsync, getInitializeCustomizablePermissionlessLbPairInstructionDataCodec, getInitializeCustomizablePermissionlessLbPairInstructionDataDecoder, getInitializeCustomizablePermissionlessLbPairInstructionDataEncoder, getInitializeLbPair2DiscriminatorBytes, getInitializeLbPair2Instruction, getInitializeLbPair2InstructionAsync, getInitializeLbPair2InstructionDataCodec, getInitializeLbPair2InstructionDataDecoder, getInitializeLbPair2InstructionDataEncoder, getInitializeLbPairDiscriminatorBytes, getInitializeLbPairInstruction, getInitializeLbPairInstructionAsync, getInitializeLbPairInstructionDataCodec, getInitializeLbPairInstructionDataDecoder, getInitializeLbPairInstructionDataEncoder, getInitializePermissionLbPairDiscriminatorBytes, getInitializePermissionLbPairInstruction, getInitializePermissionLbPairInstructionAsync, getInitializePermissionLbPairInstructionDataCodec, getInitializePermissionLbPairInstructionDataDecoder, getInitializePermissionLbPairInstructionDataEncoder, getInitializePosition2DiscriminatorBytes, getInitializePosition2Instruction, getInitializePosition2InstructionAsync, getInitializePosition2InstructionDataCodec, getInitializePosition2InstructionDataDecoder, getInitializePosition2InstructionDataEncoder, getInitializePositionByOperatorDiscriminatorBytes, getInitializePositionByOperatorInstruction, getInitializePositionByOperatorInstructionAsync, getInitializePositionByOperatorInstructionDataCodec, getInitializePositionByOperatorInstructionDataDecoder, getInitializePositionByOperatorInstructionDataEncoder, getInitializePositionDiscriminatorBytes, getInitializePositionInstruction, getInitializePositionInstructionAsync, getInitializePositionInstructionDataCodec, getInitializePositionInstructionDataDecoder, getInitializePositionInstructionDataEncoder, getInitializePositionPdaDiscriminatorBytes, getInitializePositionPdaInstruction, getInitializePositionPdaInstructionAsync, getInitializePositionPdaInstructionDataCodec, getInitializePositionPdaInstructionDataDecoder, getInitializePositionPdaInstructionDataEncoder, getInitializePresetParameterDiscriminatorBytes, getInitializePresetParameterInstruction, getInitializePresetParameterInstructionDataCodec, getInitializePresetParameterInstructionDataDecoder, getInitializePresetParameterInstructionDataEncoder, getInitializeRewardDiscriminatorBytes, getInitializeRewardInstruction, getInitializeRewardInstructionAsync, getInitializeRewardInstructionDataCodec, getInitializeRewardInstructionDataDecoder, getInitializeRewardInstructionDataEncoder, getInitializeTokenBadgeDiscriminatorBytes, getInitializeTokenBadgeInstruction, getInitializeTokenBadgeInstructionAsync, getInitializeTokenBadgeInstructionDataCodec, getInitializeTokenBadgeInstructionDataDecoder, getInitializeTokenBadgeInstructionDataEncoder, getLbClmmErrorMessage, getLbPairCodec, getLbPairDecoder, getLbPairDiscriminatorBytes, getLbPairEncoder, getLbPairSize, getLimitOrderBinDataCodec, getLimitOrderBinDataDecoder, getLimitOrderBinDataEncoder, getLimitOrderCodec, getLimitOrderDecoder, getLimitOrderDiscriminatorBytes, getLimitOrderEncoder, getLimitOrderSize, getLiquidityParameterByStrategyCodec, getLiquidityParameterByStrategyDecoder, getLiquidityParameterByStrategyEncoder, getLiquidityParameterByWeightCodec, getLiquidityParameterByWeightDecoder, getLiquidityParameterByWeightEncoder, getLiquidityParameterCodec, getLiquidityParameterDecoder, getLiquidityParameterEncoder, getOperatorCodec, getOperatorDecoder, getOperatorDiscriminatorBytes, getOperatorEncoder, getOperatorSize, getOracleCodec, getOracleDecoder, getOracleDiscriminatorBytes, getOracleEncoder, getOracleSize, getPairStatusCodec, getPairStatusDecoder, getPairStatusEncoder, getPairTypeCodec, getPairTypeDecoder, getPairTypeEncoder, getPlaceLimitOrderDiscriminatorBytes, getPlaceLimitOrderInstruction, getPlaceLimitOrderInstructionAsync, getPlaceLimitOrderInstructionDataCodec, getPlaceLimitOrderInstructionDataDecoder, getPlaceLimitOrderInstructionDataEncoder, getPlaceLimitOrderParamsCodec, getPlaceLimitOrderParamsDecoder, getPlaceLimitOrderParamsEncoder, getPositionBinDataCodec, getPositionBinDataDecoder, getPositionBinDataEncoder, getPositionV2Codec, getPositionV2Decoder, getPositionV2DiscriminatorBytes, getPositionV2Encoder, getPositionV2Size, getPresetParameter2Codec, getPresetParameter2Decoder, getPresetParameter2DiscriminatorBytes, getPresetParameter2Encoder, getPresetParameter2Size, getPresetParameterCodec, getPresetParameterDecoder, getPresetParameterDiscriminatorBytes, getPresetParameterEncoder, getPresetParameterSize, getPriceFromId, getProtocolFeeCodec, getProtocolFeeDecoder, getProtocolFeeEncoder, getRebalanceLiquidityDiscriminatorBytes, getRebalanceLiquidityInstruction, getRebalanceLiquidityInstructionAsync, getRebalanceLiquidityInstructionDataCodec, getRebalanceLiquidityInstructionDataDecoder, getRebalanceLiquidityInstructionDataEncoder, getRelativeBinCodec, getRelativeBinDecoder, getRelativeBinEncoder, getRemainingAccountsInfoCodec, getRemainingAccountsInfoDecoder, getRemainingAccountsInfoEncoder, getRemainingAccountsSliceCodec, getRemainingAccountsSliceDecoder, getRemainingAccountsSliceEncoder, getRemoveAllLiquidityDiscriminatorBytes, getRemoveAllLiquidityInstruction, getRemoveAllLiquidityInstructionAsync, getRemoveAllLiquidityInstructionDataCodec, getRemoveAllLiquidityInstructionDataDecoder, getRemoveAllLiquidityInstructionDataEncoder, getRemoveLiquidity2DiscriminatorBytes, getRemoveLiquidity2Instruction, getRemoveLiquidity2InstructionAsync, getRemoveLiquidity2InstructionDataCodec, getRemoveLiquidity2InstructionDataDecoder, getRemoveLiquidity2InstructionDataEncoder, getRemoveLiquidityByRange2DiscriminatorBytes, getRemoveLiquidityByRange2Instruction, getRemoveLiquidityByRange2InstructionAsync, getRemoveLiquidityByRange2InstructionDataCodec, getRemoveLiquidityByRange2InstructionDataDecoder, getRemoveLiquidityByRange2InstructionDataEncoder, getRemoveLiquidityByRangeDiscriminatorBytes, getRemoveLiquidityByRangeInstruction, getRemoveLiquidityByRangeInstructionAsync, getRemoveLiquidityByRangeInstructionDataCodec, getRemoveLiquidityByRangeInstructionDataDecoder, getRemoveLiquidityByRangeInstructionDataEncoder, getRemoveLiquidityDiscriminatorBytes, getRemoveLiquidityInstruction, getRemoveLiquidityInstructionAsync, getRemoveLiquidityInstructionDataCodec, getRemoveLiquidityInstructionDataDecoder, getRemoveLiquidityInstructionDataEncoder, getRemoveLiquidityParamsCodec, getRemoveLiquidityParamsDecoder, getRemoveLiquidityParamsEncoder, getResizeSideCodec, getResizeSideDecoder, getResizeSideEncoder, getRewardInfoCodec, getRewardInfoDecoder, getRewardInfoEncoder, getRoundingCodec, getRoundingDecoder, getRoundingEncoder, getSetActivationPointDiscriminatorBytes, getSetActivationPointInstruction, getSetActivationPointInstructionDataCodec, getSetActivationPointInstructionDataDecoder, getSetActivationPointInstructionDataEncoder, getSetPairStatusDiscriminatorBytes, getSetPairStatusInstruction, getSetPairStatusInstructionDataCodec, getSetPairStatusInstructionDataDecoder, getSetPairStatusInstructionDataEncoder, getSetPairStatusPermissionlessDiscriminatorBytes, getSetPairStatusPermissionlessInstruction, getSetPairStatusPermissionlessInstructionDataCodec, getSetPairStatusPermissionlessInstructionDataDecoder, getSetPairStatusPermissionlessInstructionDataEncoder, getSetPermissionlessOperationBitsDiscriminatorBytes, getSetPermissionlessOperationBitsInstruction, getSetPermissionlessOperationBitsInstructionAsync, getSetPermissionlessOperationBitsInstructionDataCodec, getSetPermissionlessOperationBitsInstructionDataDecoder, getSetPermissionlessOperationBitsInstructionDataEncoder, getSetPreActivationDurationDiscriminatorBytes, getSetPreActivationDurationInstruction, getSetPreActivationDurationInstructionDataCodec, getSetPreActivationDurationInstructionDataDecoder, getSetPreActivationDurationInstructionDataEncoder, getSetPreActivationSwapAddressDiscriminatorBytes, getSetPreActivationSwapAddressInstruction, getSetPreActivationSwapAddressInstructionDataCodec, getSetPreActivationSwapAddressInstructionDataDecoder, getSetPreActivationSwapAddressInstructionDataEncoder, getStaticParametersCodec, getStaticParametersDecoder, getStaticParametersEncoder, getStrategyParametersCodec, getStrategyParametersDecoder, getStrategyParametersEncoder, getStrategyTypeCodec, getStrategyTypeDecoder, getStrategyTypeEncoder, getSwap2DiscriminatorBytes, getSwap2Instruction, getSwap2InstructionAsync, getSwap2InstructionDataCodec, getSwap2InstructionDataDecoder, getSwap2InstructionDataEncoder, getSwapDiscriminatorBytes, getSwapExactOut2DiscriminatorBytes, getSwapExactOut2Instruction, getSwapExactOut2InstructionAsync, getSwapExactOut2InstructionDataCodec, getSwapExactOut2InstructionDataDecoder, getSwapExactOut2InstructionDataEncoder, getSwapExactOutDiscriminatorBytes, getSwapExactOutInstruction, getSwapExactOutInstructionAsync, getSwapExactOutInstructionDataCodec, getSwapExactOutInstructionDataDecoder, getSwapExactOutInstructionDataEncoder, getSwapInstruction, getSwapInstructionAsync, getSwapInstructionDataCodec, getSwapInstructionDataDecoder, getSwapInstructionDataEncoder, getSwapWithPriceImpact2DiscriminatorBytes, getSwapWithPriceImpact2Instruction, getSwapWithPriceImpact2InstructionAsync, getSwapWithPriceImpact2InstructionDataCodec, getSwapWithPriceImpact2InstructionDataDecoder, getSwapWithPriceImpact2InstructionDataEncoder, getSwapWithPriceImpactDiscriminatorBytes, getSwapWithPriceImpactInstruction, getSwapWithPriceImpactInstructionAsync, getSwapWithPriceImpactInstructionDataCodec, getSwapWithPriceImpactInstructionDataDecoder, getSwapWithPriceImpactInstructionDataEncoder, getTokenBadgeCodec, getTokenBadgeDecoder, getTokenBadgeDiscriminatorBytes, getTokenBadgeEncoder, getTokenBadgeSize, getTokenProgramFlagsCodec, getTokenProgramFlagsDecoder, getTokenProgramFlagsEncoder, getUpdateBaseFeeParametersDiscriminatorBytes, getUpdateBaseFeeParametersInstruction, getUpdateBaseFeeParametersInstructionAsync, getUpdateBaseFeeParametersInstructionDataCodec, getUpdateBaseFeeParametersInstructionDataDecoder, getUpdateBaseFeeParametersInstructionDataEncoder, getUpdateDynamicFeeParametersDiscriminatorBytes, getUpdateDynamicFeeParametersInstruction, getUpdateDynamicFeeParametersInstructionAsync, getUpdateDynamicFeeParametersInstructionDataCodec, getUpdateDynamicFeeParametersInstructionDataDecoder, getUpdateDynamicFeeParametersInstructionDataEncoder, getUpdateFeesAndReward2DiscriminatorBytes, getUpdateFeesAndReward2Instruction, getUpdateFeesAndReward2InstructionDataCodec, getUpdateFeesAndReward2InstructionDataDecoder, getUpdateFeesAndReward2InstructionDataEncoder, getUpdateFeesAndRewardsDiscriminatorBytes, getUpdateFeesAndRewardsInstruction, getUpdateFeesAndRewardsInstructionDataCodec, getUpdateFeesAndRewardsInstructionDataDecoder, getUpdateFeesAndRewardsInstructionDataEncoder, getUpdatePositionOperatorDiscriminatorBytes, getUpdatePositionOperatorInstruction, getUpdatePositionOperatorInstructionAsync, getUpdatePositionOperatorInstructionDataCodec, getUpdatePositionOperatorInstructionDataDecoder, getUpdatePositionOperatorInstructionDataEncoder, getUpdateRewardDurationDiscriminatorBytes, getUpdateRewardDurationInstruction, getUpdateRewardDurationInstructionAsync, getUpdateRewardDurationInstructionDataCodec, getUpdateRewardDurationInstructionDataDecoder, getUpdateRewardDurationInstructionDataEncoder, getUpdateRewardFunderDiscriminatorBytes, getUpdateRewardFunderInstruction, getUpdateRewardFunderInstructionAsync, getUpdateRewardFunderInstructionDataCodec, getUpdateRewardFunderInstructionDataDecoder, getUpdateRewardFunderInstructionDataEncoder, getUserRewardInfoCodec, getUserRewardInfoDecoder, getUserRewardInfoEncoder, getVariableParametersCodec, getVariableParametersDecoder, getVariableParametersEncoder, getWithdrawIneligibleRewardDiscriminatorBytes, getWithdrawIneligibleRewardInstruction, getWithdrawIneligibleRewardInstructionAsync, getWithdrawIneligibleRewardInstructionDataCodec, getWithdrawIneligibleRewardInstructionDataDecoder, getWithdrawIneligibleRewardInstructionDataEncoder, getWithdrawProtocolFeeDiscriminatorBytes, getWithdrawProtocolFeeInstruction, getWithdrawProtocolFeeInstructionDataCodec, getWithdrawProtocolFeeInstructionDataDecoder, getWithdrawProtocolFeeInstructionDataEncoder, getZapProtocolFeeDiscriminatorBytes, getZapProtocolFeeInstruction, getZapProtocolFeeInstructionDataCodec, getZapProtocolFeeInstructionDataDecoder, getZapProtocolFeeInstructionDataEncoder, humanPriceToQ64, identifyLbClmmAccount, identifyLbClmmInstruction, isAccountsType, isLbClmmError, parseAddLiquidity2Instruction, parseAddLiquidityByStrategy2Instruction, parseAddLiquidityByStrategyInstruction, parseAddLiquidityByStrategyOneSideInstruction, parseAddLiquidityByWeight2Instruction, parseAddLiquidityByWeightInstruction, parseAddLiquidityInstruction, parseAddLiquidityOneSideInstruction, parseAddLiquidityOneSidePrecise2Instruction, parseAddLiquidityOneSidePreciseInstruction, parseCancelLimitOrderInstruction, parseClaimFee2Instruction, parseClaimFeeInstruction, parseClaimReward2Instruction, parseClaimRewardInstruction, parseCloseBinArrayInstruction, parseCloseClaimFeeOperatorAccountInstruction, parseCloseLimitOrderIfEmptyInstruction, parseCloseOperatorAccountInstruction, parseClosePosition2Instruction, parseClosePositionIfEmptyInstruction, parseClosePositionInstruction, parseClosePresetParameter2Instruction, parseClosePresetParameterInstruction, parseCloseTokenBadgeInstruction, parseCreateOperatorAccountInstruction, parseDecreasePositionLengthInstruction, parseForIdlTypeGenerationDoNotCallInstruction, parseFundRewardInstruction, parseGoToABinInstruction, parseIncreaseOracleLengthInstruction, parseIncreasePositionLength2Instruction, parseIncreasePositionLengthInstruction, parseInitializeBinArrayBitmapExtensionInstruction, parseInitializeBinArrayInstruction, parseInitializeCustomizablePermissionlessLbPair2Instruction, parseInitializeCustomizablePermissionlessLbPairInstruction, parseInitializeLbPair2Instruction, parseInitializeLbPairInstruction, parseInitializePermissionLbPairInstruction, parseInitializePosition2Instruction, parseInitializePositionByOperatorInstruction, parseInitializePositionInstruction, parseInitializePositionPdaInstruction, parseInitializePresetParameterInstruction, parseInitializeRewardInstruction, parseInitializeTokenBadgeInstruction, parseLbClmmInstruction, parsePlaceLimitOrderInstruction, parseRebalanceLiquidityInstruction, parseRemoveAllLiquidityInstruction, parseRemoveLiquidity2Instruction, parseRemoveLiquidityByRange2Instruction, parseRemoveLiquidityByRangeInstruction, parseRemoveLiquidityInstruction, parseSetActivationPointInstruction, parseSetPairStatusInstruction, parseSetPairStatusPermissionlessInstruction, parseSetPermissionlessOperationBitsInstruction, parseSetPreActivationDurationInstruction, parseSetPreActivationSwapAddressInstruction, parseSwap2Instruction, parseSwapExactOut2Instruction, parseSwapExactOutInstruction, parseSwapInstruction, parseSwapWithPriceImpact2Instruction, parseSwapWithPriceImpactInstruction, parseUpdateBaseFeeParametersInstruction, parseUpdateDynamicFeeParametersInstruction, parseUpdateFeesAndReward2Instruction, parseUpdateFeesAndRewardsInstruction, parseUpdatePositionOperatorInstruction, parseUpdateRewardDurationInstruction, parseUpdateRewardFunderInstruction, parseWithdrawIneligibleRewardInstruction, parseWithdrawProtocolFeeInstruction, parseZapProtocolFeeInstruction, priceToBinId, q64Pow, q64ToHumanPrice };
8713
+ export { ADD_LIQUIDITY2_DISCRIMINATOR, ADD_LIQUIDITY_BY_STRATEGY2_DISCRIMINATOR, ADD_LIQUIDITY_BY_STRATEGY_DISCRIMINATOR, ADD_LIQUIDITY_BY_STRATEGY_ONE_SIDE_DISCRIMINATOR, ADD_LIQUIDITY_BY_WEIGHT2_DISCRIMINATOR, ADD_LIQUIDITY_BY_WEIGHT_DISCRIMINATOR, ADD_LIQUIDITY_DISCRIMINATOR, ADD_LIQUIDITY_ONE_SIDE_DISCRIMINATOR, ADD_LIQUIDITY_ONE_SIDE_PRECISE2_DISCRIMINATOR, ADD_LIQUIDITY_ONE_SIDE_PRECISE_DISCRIMINATOR, type AccountsType, type AccountsTypeArgs, ActivationType, type ActivationTypeArgs, type AddLiquidity2AsyncInput, type AddLiquidity2Input, type AddLiquidity2Instruction, type AddLiquidity2InstructionData, type AddLiquidity2InstructionDataArgs, type AddLiquidityAsyncInput, type AddLiquidityByStrategy2AsyncInput, type AddLiquidityByStrategy2Input, type AddLiquidityByStrategy2Instruction, type AddLiquidityByStrategy2InstructionData, type AddLiquidityByStrategy2InstructionDataArgs, type AddLiquidityByStrategyAsyncInput, type AddLiquidityByStrategyInput, type AddLiquidityByStrategyInstruction, type AddLiquidityByStrategyInstructionData, type AddLiquidityByStrategyInstructionDataArgs, type AddLiquidityByStrategyOneSideAsyncInput, type AddLiquidityByStrategyOneSideInput, type AddLiquidityByStrategyOneSideInstruction, type AddLiquidityByStrategyOneSideInstructionData, type AddLiquidityByStrategyOneSideInstructionDataArgs, type AddLiquidityByWeight2AsyncInput, type AddLiquidityByWeight2Input, type AddLiquidityByWeight2Instruction, type AddLiquidityByWeight2InstructionData, type AddLiquidityByWeight2InstructionDataArgs, type AddLiquidityByWeightAsyncInput, type AddLiquidityByWeightInput, type AddLiquidityByWeightInstruction, type AddLiquidityByWeightInstructionData, type AddLiquidityByWeightInstructionDataArgs, type AddLiquidityInput, type AddLiquidityInstruction, type AddLiquidityInstructionData, type AddLiquidityInstructionDataArgs, type AddLiquidityOneSideAsyncInput, type AddLiquidityOneSideInput, type AddLiquidityOneSideInstruction, type AddLiquidityOneSideInstructionData, type AddLiquidityOneSideInstructionDataArgs, type AddLiquidityOneSidePrecise2AsyncInput, type AddLiquidityOneSidePrecise2Input, type AddLiquidityOneSidePrecise2Instruction, type AddLiquidityOneSidePrecise2InstructionData, type AddLiquidityOneSidePrecise2InstructionDataArgs, type AddLiquidityOneSidePreciseAsyncInput, type AddLiquidityOneSidePreciseInput, type AddLiquidityOneSidePreciseInstruction, type AddLiquidityOneSidePreciseInstructionData, type AddLiquidityOneSidePreciseInstructionDataArgs, type AddLiquidityParams, type AddLiquidityParamsArgs, BASIS_POINT_MAX, BIN_ARRAY_BITMAP_EXTENSION_DISCRIMINATOR, BIN_ARRAY_DISCRIMINATOR, type Bin, type BinArgs, type BinArray, type BinArrayArgs, type BinArrayBitmapExtension, type BinArrayBitmapExtensionArgs, type BinArrayBitmapExtensionSeeds, type BinArraySeeds, type BinLimitOrderAmount, type BinLimitOrderAmountArgs, type BinLiquidityDistribution, type BinLiquidityDistributionArgs, type BinLiquidityDistributionByWeight, type BinLiquidityDistributionByWeightArgs, type BinLiquidityReduction, type BinLiquidityReductionArgs, CANCEL_LIMIT_ORDER_DISCRIMINATOR, CLAIM_FEE2_DISCRIMINATOR, CLAIM_FEE_DISCRIMINATOR, CLAIM_FEE_OPERATOR_DISCRIMINATOR, CLAIM_REWARD2_DISCRIMINATOR, CLAIM_REWARD_DISCRIMINATOR, CLOSE_BIN_ARRAY_DISCRIMINATOR, CLOSE_CLAIM_FEE_OPERATOR_ACCOUNT_DISCRIMINATOR, CLOSE_LIMIT_ORDER_IF_EMPTY_DISCRIMINATOR, CLOSE_OPERATOR_ACCOUNT_DISCRIMINATOR, CLOSE_POSITION2_DISCRIMINATOR, CLOSE_POSITION_DISCRIMINATOR, CLOSE_POSITION_IF_EMPTY_DISCRIMINATOR, CLOSE_PRESET_PARAMETER2_DISCRIMINATOR, CLOSE_PRESET_PARAMETER_DISCRIMINATOR, CLOSE_TOKEN_BADGE_DISCRIMINATOR, CREATE_OPERATOR_ACCOUNT_DISCRIMINATOR, type CancelLimitOrderAsyncInput, type CancelLimitOrderInput, type CancelLimitOrderInstruction, type CancelLimitOrderInstructionData, type CancelLimitOrderInstructionDataArgs, type ClaimFee2AsyncInput, type ClaimFee2Input, type ClaimFee2Instruction, type ClaimFee2InstructionData, type ClaimFee2InstructionDataArgs, type ClaimFeeAsyncInput, type ClaimFeeInput, type ClaimFeeInstruction, type ClaimFeeInstructionData, type ClaimFeeInstructionDataArgs, type ClaimFeeOperator, type ClaimFeeOperatorArgs, type ClaimReward2AsyncInput, type ClaimReward2Input, type ClaimReward2Instruction, type ClaimReward2InstructionData, type ClaimReward2InstructionDataArgs, type ClaimRewardAsyncInput, type ClaimRewardInput, type ClaimRewardInstruction, type ClaimRewardInstructionData, type ClaimRewardInstructionDataArgs, type CloseBinArrayInput, type CloseBinArrayInstruction, type CloseBinArrayInstructionData, type CloseBinArrayInstructionDataArgs, type CloseClaimFeeOperatorAccountInput, type CloseClaimFeeOperatorAccountInstruction, type CloseClaimFeeOperatorAccountInstructionData, type CloseClaimFeeOperatorAccountInstructionDataArgs, type CloseLimitOrderIfEmptyAsyncInput, type CloseLimitOrderIfEmptyInput, type CloseLimitOrderIfEmptyInstruction, type CloseLimitOrderIfEmptyInstructionData, type CloseLimitOrderIfEmptyInstructionDataArgs, type CloseOperatorAccountInput, type CloseOperatorAccountInstruction, type CloseOperatorAccountInstructionData, type CloseOperatorAccountInstructionDataArgs, type ClosePosition2AsyncInput, type ClosePosition2Input, type ClosePosition2Instruction, type ClosePosition2InstructionData, type ClosePosition2InstructionDataArgs, type ClosePositionAsyncInput, type ClosePositionIfEmptyAsyncInput, type ClosePositionIfEmptyInput, type ClosePositionIfEmptyInstruction, type ClosePositionIfEmptyInstructionData, type ClosePositionIfEmptyInstructionDataArgs, type ClosePositionInput, type ClosePositionInstruction, type ClosePositionInstructionData, type ClosePositionInstructionDataArgs, type ClosePresetParameter2Input, type ClosePresetParameter2Instruction, type ClosePresetParameter2InstructionData, type ClosePresetParameter2InstructionDataArgs, type ClosePresetParameterInput, type ClosePresetParameterInstruction, type ClosePresetParameterInstructionData, type ClosePresetParameterInstructionDataArgs, type CloseTokenBadgeInput, type CloseTokenBadgeInstruction, type CloseTokenBadgeInstructionData, type CloseTokenBadgeInstructionDataArgs, type CompressedBinDepositAmount, type CompressedBinDepositAmountArgs, type CreateOperatorAccountAsyncInput, type CreateOperatorAccountInput, type CreateOperatorAccountInstruction, type CreateOperatorAccountInstructionData, type CreateOperatorAccountInstructionDataArgs, type CustomizableParams, type CustomizableParamsArgs, DECREASE_POSITION_LENGTH_DISCRIMINATOR, DUMMY_ZC_ACCOUNT_DISCRIMINATOR, type DecreasePositionLengthAsyncInput, type DecreasePositionLengthInput, type DecreasePositionLengthInstruction, type DecreasePositionLengthInstructionData, type DecreasePositionLengthInstructionDataArgs, type DummyZcAccount, type DummyZcAccountArgs, FOR_IDL_TYPE_GENERATION_DO_NOT_CALL_DISCRIMINATOR, FUND_REWARD_DISCRIMINATOR, type FeeInfo, type FeeInfoArgs, type ForIdlTypeGenerationDoNotCallInput, type ForIdlTypeGenerationDoNotCallInstruction, type ForIdlTypeGenerationDoNotCallInstructionData, type ForIdlTypeGenerationDoNotCallInstructionDataArgs, type FundRewardAsyncInput, type FundRewardInput, type FundRewardInstruction, type FundRewardInstructionData, type FundRewardInstructionDataArgs, GO_TO_A_BIN_DISCRIMINATOR, type GoToABinAsyncInput, type GoToABinInput, type GoToABinInstruction, type GoToABinInstructionData, type GoToABinInstructionDataArgs, INCREASE_ORACLE_LENGTH_DISCRIMINATOR, INCREASE_POSITION_LENGTH2_DISCRIMINATOR, INCREASE_POSITION_LENGTH_DISCRIMINATOR, INITIALIZE_BIN_ARRAY_BITMAP_EXTENSION_DISCRIMINATOR, INITIALIZE_BIN_ARRAY_DISCRIMINATOR, INITIALIZE_CUSTOMIZABLE_PERMISSIONLESS_LB_PAIR2_DISCRIMINATOR, INITIALIZE_CUSTOMIZABLE_PERMISSIONLESS_LB_PAIR_DISCRIMINATOR, INITIALIZE_LB_PAIR2_DISCRIMINATOR, INITIALIZE_LB_PAIR_DISCRIMINATOR, INITIALIZE_PERMISSION_LB_PAIR_DISCRIMINATOR, INITIALIZE_POSITION2_DISCRIMINATOR, INITIALIZE_POSITION_BY_OPERATOR_DISCRIMINATOR, INITIALIZE_POSITION_DISCRIMINATOR, INITIALIZE_POSITION_PDA_DISCRIMINATOR, INITIALIZE_PRESET_PARAMETER_DISCRIMINATOR, INITIALIZE_REWARD_DISCRIMINATOR, INITIALIZE_TOKEN_BADGE_DISCRIMINATOR, type IncreaseOracleLengthAsyncInput, type IncreaseOracleLengthInput, type IncreaseOracleLengthInstruction, type IncreaseOracleLengthInstructionData, type IncreaseOracleLengthInstructionDataArgs, type IncreasePositionLength2AsyncInput, type IncreasePositionLength2Input, type IncreasePositionLength2Instruction, type IncreasePositionLength2InstructionData, type IncreasePositionLength2InstructionDataArgs, type IncreasePositionLengthAsyncInput, type IncreasePositionLengthInput, type IncreasePositionLengthInstruction, type IncreasePositionLengthInstructionData, type IncreasePositionLengthInstructionDataArgs, type InitializeBinArrayAsyncInput, type InitializeBinArrayBitmapExtensionAsyncInput, type InitializeBinArrayBitmapExtensionInput, type InitializeBinArrayBitmapExtensionInstruction, type InitializeBinArrayBitmapExtensionInstructionData, type InitializeBinArrayBitmapExtensionInstructionDataArgs, type InitializeBinArrayInput, type InitializeBinArrayInstruction, type InitializeBinArrayInstructionData, type InitializeBinArrayInstructionDataArgs, type InitializeCustomizablePermissionlessLbPair2AsyncInput, type InitializeCustomizablePermissionlessLbPair2Input, type InitializeCustomizablePermissionlessLbPair2Instruction, type InitializeCustomizablePermissionlessLbPair2InstructionData, type InitializeCustomizablePermissionlessLbPair2InstructionDataArgs, type InitializeCustomizablePermissionlessLbPairAsyncInput, type InitializeCustomizablePermissionlessLbPairInput, type InitializeCustomizablePermissionlessLbPairInstruction, type InitializeCustomizablePermissionlessLbPairInstructionData, type InitializeCustomizablePermissionlessLbPairInstructionDataArgs, type InitializeLbPair2AsyncInput, type InitializeLbPair2Input, type InitializeLbPair2Instruction, type InitializeLbPair2InstructionData, type InitializeLbPair2InstructionDataArgs, type InitializeLbPairAsyncInput, type InitializeLbPairInput, type InitializeLbPairInstruction, type InitializeLbPairInstructionData, type InitializeLbPairInstructionDataArgs, type InitializePermissionLbPairAsyncInput, type InitializePermissionLbPairInput, type InitializePermissionLbPairInstruction, type InitializePermissionLbPairInstructionData, type InitializePermissionLbPairInstructionDataArgs, type InitializePosition2AsyncInput, type InitializePosition2Input, type InitializePosition2Instruction, type InitializePosition2InstructionData, type InitializePosition2InstructionDataArgs, type InitializePositionAsyncInput, type InitializePositionByOperatorAsyncInput, type InitializePositionByOperatorInput, type InitializePositionByOperatorInstruction, type InitializePositionByOperatorInstructionData, type InitializePositionByOperatorInstructionDataArgs, type InitializePositionInput, type InitializePositionInstruction, type InitializePositionInstructionData, type InitializePositionInstructionDataArgs, type InitializePositionPdaAsyncInput, type InitializePositionPdaInput, type InitializePositionPdaInstruction, type InitializePositionPdaInstructionData, type InitializePositionPdaInstructionDataArgs, type InitializePresetParameterInput, type InitializePresetParameterInstruction, type InitializePresetParameterInstructionData, type InitializePresetParameterInstructionDataArgs, type InitializeRewardAsyncInput, type InitializeRewardInput, type InitializeRewardInstruction, type InitializeRewardInstructionData, type InitializeRewardInstructionDataArgs, type InitializeTokenBadgeAsyncInput, type InitializeTokenBadgeInput, type InitializeTokenBadgeInstruction, type InitializeTokenBadgeInstructionData, type InitializeTokenBadgeInstructionDataArgs, LB_CLMM_ERROR__ALREADY_PASS_ACTIVATION_POINT, LB_CLMM_ERROR__ALREADY_PASS_PRE_ACTIVATION_SWAP_POINT, LB_CLMM_ERROR__AMOUNT_X_IS_NEGATIVE, LB_CLMM_ERROR__AMOUNT_Y_IS_NEGATIVE, LB_CLMM_ERROR__BIN_ARRAY_NOT_FOUND, LB_CLMM_ERROR__BIN_ID_OUT_OF_BOUND, LB_CLMM_ERROR__BIN_RANGE_IS_NOT_EMPTY, LB_CLMM_ERROR__BITMAP_EXTENSION_ACCOUNT_IS_NOT_PROVIDED, LB_CLMM_ERROR__CANCEL_NON_EMPTY_LIMIT_ORDER, LB_CLMM_ERROR__CANNOT_FIND_LIMIT_ORDER_BY_BIN_ID, LB_CLMM_ERROR__CANNOT_FIND_NON_ZERO_LIQUIDITY_BIN_ARRAY_ID, LB_CLMM_ERROR__COMPOSITION_FACTOR_FLAWED, LB_CLMM_ERROR__CPI_DISABLED, LB_CLMM_ERROR__DUPLICATED_REMAINING_ACCOUNT_TYPES, LB_CLMM_ERROR__EXCEEDED_AMOUNT_SLIPPAGE_TOLERANCE, LB_CLMM_ERROR__EXCEEDED_BIN_SLIPPAGE_TOLERANCE, LB_CLMM_ERROR__EXCEEDED_MAX_ORACLE_LENGTH, LB_CLMM_ERROR__EXCEED_MAX_SWAPPED_AMOUNT, LB_CLMM_ERROR__EXCEED_MAX_WHITELIST, LB_CLMM_ERROR__EXCESSIVE_FEE_UPDATE, LB_CLMM_ERROR__IDENTICAL_FEE_OWNER, LB_CLMM_ERROR__IDENTICAL_FUNDER, LB_CLMM_ERROR__IDENTICAL_REWARD_DURATION, LB_CLMM_ERROR__INCORRECT_A_T_A, LB_CLMM_ERROR__INSUFFICIENT_IN_AMOUNT, LB_CLMM_ERROR__INSUFFICIENT_OUT_AMOUNT, LB_CLMM_ERROR__INSUFFICIENT_REMAINING_ACCOUNTS, LB_CLMM_ERROR__INSUFFICIENT_SAMPLE, LB_CLMM_ERROR__INVALID_ACCOUNT_FOR_SINGLE_DEPOSIT, LB_CLMM_ERROR__INVALID_ACTIVATION_DURATION, LB_CLMM_ERROR__INVALID_ACTIVATION_TYPE, LB_CLMM_ERROR__INVALID_ADMIN, LB_CLMM_ERROR__INVALID_BASE_FEE, LB_CLMM_ERROR__INVALID_BASE_FEE_MANTISSA, LB_CLMM_ERROR__INVALID_BIN_ARRAY, LB_CLMM_ERROR__INVALID_BIN_ID, LB_CLMM_ERROR__INVALID_BIN_STEP, LB_CLMM_ERROR__INVALID_BPS, LB_CLMM_ERROR__INVALID_CANCEL_LIMIT_ORDER_PARAMETERS, LB_CLMM_ERROR__INVALID_COLLECT_FEE_MODE, LB_CLMM_ERROR__INVALID_FEE_OWNER, LB_CLMM_ERROR__INVALID_FEE_PARAMETER, LB_CLMM_ERROR__INVALID_FEE_WITHDRAW_AMOUNT, LB_CLMM_ERROR__INVALID_FUNCTION_TYPE, LB_CLMM_ERROR__INVALID_INDEX, LB_CLMM_ERROR__INVALID_INPUT, LB_CLMM_ERROR__INVALID_LIMIT_ORDER_OWNER, LB_CLMM_ERROR__INVALID_LOOKUP_TIMESTAMP, LB_CLMM_ERROR__INVALID_MINIMUM_LIQUIDITY, LB_CLMM_ERROR__INVALID_PERMISSION, LB_CLMM_ERROR__INVALID_PLACE_LIMIT_ORDER_PARAMETERS, LB_CLMM_ERROR__INVALID_POOL_ADDRESS, LB_CLMM_ERROR__INVALID_POOL_CREATOR, LB_CLMM_ERROR__INVALID_POOL_TYPE, LB_CLMM_ERROR__INVALID_POSITION, LB_CLMM_ERROR__INVALID_POSITION_OWNER, LB_CLMM_ERROR__INVALID_POSITION_WIDTH, LB_CLMM_ERROR__INVALID_PRE_ACTIVATION_DURATION, LB_CLMM_ERROR__INVALID_QUOTE_TOKEN, LB_CLMM_ERROR__INVALID_REBALANCE_PARAMETERS, LB_CLMM_ERROR__INVALID_REMAINING_ACCOUNT_SLICE, LB_CLMM_ERROR__INVALID_RESIZE_LENGTH, LB_CLMM_ERROR__INVALID_REWARD_ACCOUNTS, LB_CLMM_ERROR__INVALID_REWARD_DURATION, LB_CLMM_ERROR__INVALID_REWARD_INDEX, LB_CLMM_ERROR__INVALID_REWARD_VAULT, LB_CLMM_ERROR__INVALID_SIDE, LB_CLMM_ERROR__INVALID_START_BIN_INDEX, LB_CLMM_ERROR__INVALID_STATUS, LB_CLMM_ERROR__INVALID_STRATEGY_PARAMETERS, LB_CLMM_ERROR__INVALID_TOKEN_BADGE_TYPE, LB_CLMM_ERROR__INVALID_TOKEN_MINT, LB_CLMM_ERROR__INVALID_TRANSFER_HOOK_AUTHORITY, LB_CLMM_ERROR__INVALID_WITHDRAW_PROTOCOL_FEE_ZAP_ACCOUNTS, LB_CLMM_ERROR__INVALID_ZAP_ACCOUNTS, LB_CLMM_ERROR__INVALID_ZAP_OUT_PARAMETERS, LB_CLMM_ERROR__LIQUIDITY_LOCKED, LB_CLMM_ERROR__MATH_OVERFLOW, LB_CLMM_ERROR__MINT_RESTRICTED_FROM_ZAP, LB_CLMM_ERROR__MISSING_ORACLE, LB_CLMM_ERROR__MISSING_REMAINING_ACCOUNT_FOR_TRANSFER_HOOK, LB_CLMM_ERROR__MISSING_TOKEN_AMOUNT_AS_TOKEN_LAUNCH_PROOF, LB_CLMM_ERROR__MISSING_ZAP_OUT_INSTRUCTION, LB_CLMM_ERROR__MUST_WITHDRAWN_INELIGIBLE_REWARD, LB_CLMM_ERROR__NON_CONTINUOUS_BIN_ARRAYS, LB_CLMM_ERROR__NON_EMPTY_POSITION, LB_CLMM_ERROR__NON_PRESET_BIN_STEP, LB_CLMM_ERROR__NOT_EXACT_AMOUNT_OUT, LB_CLMM_ERROR__NOT_SUPPORT_AT_THE_MOMENT, LB_CLMM_ERROR__NOT_SUPPORT_MINT, LB_CLMM_ERROR__NO_TRANSFER_HOOK_PROGRAM, LB_CLMM_ERROR__OPERATORS_ARE_THE_SAME, LB_CLMM_ERROR__PAIR_INSUFFICIENT_LIQUIDITY, LB_CLMM_ERROR__POOL_DISABLED, LB_CLMM_ERROR__REALLOC_EXCEED_MAX_LENGTH_PER_INSTRUCTION, LB_CLMM_ERROR__REWARD_CAMPAIGN_IN_PROGRESS, LB_CLMM_ERROR__REWARD_INITIALIZED, LB_CLMM_ERROR__REWARD_NOT_ENDED, LB_CLMM_ERROR__REWARD_UNINITIALIZED, LB_CLMM_ERROR__TYPE_CAST_FAILED, LB_CLMM_ERROR__UNAUTHORIZED_ACCESS, LB_CLMM_ERROR__UNAUTHORIZED_ADDRESS, LB_CLMM_ERROR__UNDETERMINED_ERROR, LB_CLMM_ERROR__UNMATCH_TOKEN_MINT, LB_CLMM_ERROR__UNSUPPORTED_MINT_EXTENSION, LB_CLMM_ERROR__UNSUPPORTED_TOKEN_MINT, LB_CLMM_ERROR__UNSUPPORT_NATIVE_MINT_TOKEN2022, LB_CLMM_ERROR__WITHDRAW_TO_WRONG_TOKEN_ACCOUNT, LB_CLMM_ERROR__WRONG_RENT_RECEIVER, LB_CLMM_ERROR__ZERO_FUNDED_AMOUNT, LB_CLMM_ERROR__ZERO_LIQUIDITY, LB_CLMM_PROGRAM_ADDRESS, LB_PAIR_DISCRIMINATOR, LIMIT_ORDER_DISCRIMINATOR, LbClmmAccount, type LbClmmError, LbClmmInstruction, type LbPair, type LbPairArgs, type LimitOrder, type LimitOrderArgs, type LimitOrderBinData, type LimitOrderBinDataArgs, type LiquidityParameter, type LiquidityParameterArgs, type LiquidityParameterByStrategy, type LiquidityParameterByStrategyArgs, type LiquidityParameterByWeight, type LiquidityParameterByWeightArgs, MAX_BIN_ID, MAX_BIN_PER_ARRAY, MAX_BIN_STEP, MAX_RESIZE_LENGTH, MIN_BIN_ID, NUM_REWARDS, ONE_Q64, OPERATOR_DISCRIMINATOR, ORACLE_DISCRIMINATOR, type Operator, type OperatorArgs, type OperatorSeeds, type Oracle, type OracleArgs, type OracleSeeds, PLACE_LIMIT_ORDER_DISCRIMINATOR, POSITION_MAX_LENGTH, POSITION_V2_DISCRIMINATOR, PRESET_PARAMETER2_DISCRIMINATOR, PRESET_PARAMETER2_SEED, PRESET_PARAMETER_DISCRIMINATOR, PairStatus, type PairStatusArgs, PairType, type PairTypeArgs, type ParsedAddLiquidity2Instruction, type ParsedAddLiquidityByStrategy2Instruction, type ParsedAddLiquidityByStrategyInstruction, type ParsedAddLiquidityByStrategyOneSideInstruction, type ParsedAddLiquidityByWeight2Instruction, type ParsedAddLiquidityByWeightInstruction, type ParsedAddLiquidityInstruction, type ParsedAddLiquidityOneSideInstruction, type ParsedAddLiquidityOneSidePrecise2Instruction, type ParsedAddLiquidityOneSidePreciseInstruction, type ParsedCancelLimitOrderInstruction, type ParsedClaimFee2Instruction, type ParsedClaimFeeInstruction, type ParsedClaimReward2Instruction, type ParsedClaimRewardInstruction, type ParsedCloseBinArrayInstruction, type ParsedCloseClaimFeeOperatorAccountInstruction, type ParsedCloseLimitOrderIfEmptyInstruction, type ParsedCloseOperatorAccountInstruction, type ParsedClosePosition2Instruction, type ParsedClosePositionIfEmptyInstruction, type ParsedClosePositionInstruction, type ParsedClosePresetParameter2Instruction, type ParsedClosePresetParameterInstruction, type ParsedCloseTokenBadgeInstruction, type ParsedCreateOperatorAccountInstruction, type ParsedDecreasePositionLengthInstruction, type ParsedForIdlTypeGenerationDoNotCallInstruction, type ParsedFundRewardInstruction, type ParsedGoToABinInstruction, type ParsedIncreaseOracleLengthInstruction, type ParsedIncreasePositionLength2Instruction, type ParsedIncreasePositionLengthInstruction, type ParsedInitializeBinArrayBitmapExtensionInstruction, type ParsedInitializeBinArrayInstruction, type ParsedInitializeCustomizablePermissionlessLbPair2Instruction, type ParsedInitializeCustomizablePermissionlessLbPairInstruction, type ParsedInitializeLbPair2Instruction, type ParsedInitializeLbPairInstruction, type ParsedInitializePermissionLbPairInstruction, type ParsedInitializePosition2Instruction, type ParsedInitializePositionByOperatorInstruction, type ParsedInitializePositionInstruction, type ParsedInitializePositionPdaInstruction, type ParsedInitializePresetParameterInstruction, type ParsedInitializeRewardInstruction, type ParsedInitializeTokenBadgeInstruction, type ParsedLbClmmInstruction, type ParsedPlaceLimitOrderInstruction, type ParsedRebalanceLiquidityInstruction, type ParsedRemoveAllLiquidityInstruction, type ParsedRemoveLiquidity2Instruction, type ParsedRemoveLiquidityByRange2Instruction, type ParsedRemoveLiquidityByRangeInstruction, type ParsedRemoveLiquidityInstruction, type ParsedSetActivationPointInstruction, type ParsedSetPairStatusInstruction, type ParsedSetPairStatusPermissionlessInstruction, type ParsedSetPermissionlessOperationBitsInstruction, type ParsedSetPreActivationDurationInstruction, type ParsedSetPreActivationSwapAddressInstruction, type ParsedSwap2Instruction, type ParsedSwapExactOut2Instruction, type ParsedSwapExactOutInstruction, type ParsedSwapInstruction, type ParsedSwapWithPriceImpact2Instruction, type ParsedSwapWithPriceImpactInstruction, type ParsedUpdateBaseFeeParametersInstruction, type ParsedUpdateDynamicFeeParametersInstruction, type ParsedUpdateFeesAndReward2Instruction, type ParsedUpdateFeesAndRewardsInstruction, type ParsedUpdatePositionOperatorInstruction, type ParsedUpdateRewardDurationInstruction, type ParsedUpdateRewardFunderInstruction, type ParsedWithdrawIneligibleRewardInstruction, type ParsedWithdrawProtocolFeeInstruction, type ParsedZapProtocolFeeInstruction, type PlaceLimitOrderAsyncInput, type PlaceLimitOrderInput, type PlaceLimitOrderInstruction, type PlaceLimitOrderInstructionData, type PlaceLimitOrderInstructionDataArgs, type PlaceLimitOrderParams, type PlaceLimitOrderParamsArgs, type PositionBinData, type PositionBinDataArgs, type PositionSeeds, type PositionV2, type PositionV2Args, type PresetParameter, type PresetParameter2, type PresetParameter2Args, type PresetParameterArgs, type ProtocolFee, type ProtocolFeeArgs, REBALANCE_LIQUIDITY_DISCRIMINATOR, REMOVE_ALL_LIQUIDITY_DISCRIMINATOR, REMOVE_LIQUIDITY2_DISCRIMINATOR, REMOVE_LIQUIDITY_BY_RANGE2_DISCRIMINATOR, REMOVE_LIQUIDITY_BY_RANGE_DISCRIMINATOR, REMOVE_LIQUIDITY_DISCRIMINATOR, type RebalanceLiquidityAsyncInput, type RebalanceLiquidityInput, type RebalanceLiquidityInstruction, type RebalanceLiquidityInstructionData, type RebalanceLiquidityInstructionDataArgs, type RelativeBin, type RelativeBinArgs, type RemainingAccountsInfo, type RemainingAccountsInfoArgs, type RemainingAccountsSlice, type RemainingAccountsSliceArgs, type RemoveAllLiquidityAsyncInput, type RemoveAllLiquidityInput, type RemoveAllLiquidityInstruction, type RemoveAllLiquidityInstructionData, type RemoveAllLiquidityInstructionDataArgs, type RemoveLiquidity2AsyncInput, type RemoveLiquidity2Input, type RemoveLiquidity2Instruction, type RemoveLiquidity2InstructionData, type RemoveLiquidity2InstructionDataArgs, type RemoveLiquidityAsyncInput, type RemoveLiquidityByRange2AsyncInput, type RemoveLiquidityByRange2Input, type RemoveLiquidityByRange2Instruction, type RemoveLiquidityByRange2InstructionData, type RemoveLiquidityByRange2InstructionDataArgs, type RemoveLiquidityByRangeAsyncInput, type RemoveLiquidityByRangeInput, type RemoveLiquidityByRangeInstruction, type RemoveLiquidityByRangeInstructionData, type RemoveLiquidityByRangeInstructionDataArgs, type RemoveLiquidityInput, type RemoveLiquidityInstruction, type RemoveLiquidityInstructionData, type RemoveLiquidityInstructionDataArgs, type RemoveLiquidityParams, type RemoveLiquidityParamsArgs, type ReserveXSeeds, type ReserveYSeeds, ResizeSide, type ResizeSideArgs, type RewardInfo, type RewardInfoArgs, type RewardVaultSeeds, Rounding, type RoundingArgs, SET_ACTIVATION_POINT_DISCRIMINATOR, SET_PAIR_STATUS_DISCRIMINATOR, SET_PAIR_STATUS_PERMISSIONLESS_DISCRIMINATOR, SET_PERMISSIONLESS_OPERATION_BITS_DISCRIMINATOR, SET_PRE_ACTIVATION_DURATION_DISCRIMINATOR, SET_PRE_ACTIVATION_SWAP_ADDRESS_DISCRIMINATOR, SWAP2_DISCRIMINATOR, SWAP_DISCRIMINATOR, SWAP_EXACT_OUT2_DISCRIMINATOR, SWAP_EXACT_OUT_DISCRIMINATOR, SWAP_WITH_PRICE_IMPACT2_DISCRIMINATOR, SWAP_WITH_PRICE_IMPACT_DISCRIMINATOR, type SetActivationPointInput, type SetActivationPointInstruction, type SetActivationPointInstructionData, type SetActivationPointInstructionDataArgs, type SetPairStatusInput, type SetPairStatusInstruction, type SetPairStatusInstructionData, type SetPairStatusInstructionDataArgs, type SetPairStatusPermissionlessInput, type SetPairStatusPermissionlessInstruction, type SetPairStatusPermissionlessInstructionData, type SetPairStatusPermissionlessInstructionDataArgs, type SetPermissionlessOperationBitsAsyncInput, type SetPermissionlessOperationBitsInput, type SetPermissionlessOperationBitsInstruction, type SetPermissionlessOperationBitsInstructionData, type SetPermissionlessOperationBitsInstructionDataArgs, type SetPreActivationDurationInput, type SetPreActivationDurationInstruction, type SetPreActivationDurationInstructionData, type SetPreActivationDurationInstructionDataArgs, type SetPreActivationSwapAddressInput, type SetPreActivationSwapAddressInstruction, type SetPreActivationSwapAddressInstructionData, type SetPreActivationSwapAddressInstructionDataArgs, type StaticParameters, type StaticParametersArgs, type StrategyParameters, type StrategyParametersArgs, StrategyType, type StrategyTypeArgs, type Swap2AsyncInput, type Swap2Input, type Swap2Instruction, type Swap2InstructionData, type Swap2InstructionDataArgs, type SwapAsyncInput, type SwapExactOut2AsyncInput, type SwapExactOut2Input, type SwapExactOut2Instruction, type SwapExactOut2InstructionData, type SwapExactOut2InstructionDataArgs, type SwapExactOutAsyncInput, type SwapExactOutInput, type SwapExactOutInstruction, type SwapExactOutInstructionData, type SwapExactOutInstructionDataArgs, type SwapInput, type SwapInstruction, type SwapInstructionData, type SwapInstructionDataArgs, type SwapWithPriceImpact2AsyncInput, type SwapWithPriceImpact2Input, type SwapWithPriceImpact2Instruction, type SwapWithPriceImpact2InstructionData, type SwapWithPriceImpact2InstructionDataArgs, type SwapWithPriceImpactAsyncInput, type SwapWithPriceImpactInput, type SwapWithPriceImpactInstruction, type SwapWithPriceImpactInstructionData, type SwapWithPriceImpactInstructionDataArgs, TOKEN_BADGE_DISCRIMINATOR, type TokenBadge, type TokenBadgeArgs, type TokenBadgeSeeds, TokenProgramFlags, type TokenProgramFlagsArgs, UPDATE_BASE_FEE_PARAMETERS_DISCRIMINATOR, UPDATE_DYNAMIC_FEE_PARAMETERS_DISCRIMINATOR, UPDATE_FEES_AND_REWARD2_DISCRIMINATOR, UPDATE_FEES_AND_REWARDS_DISCRIMINATOR, UPDATE_POSITION_OPERATOR_DISCRIMINATOR, UPDATE_REWARD_DURATION_DISCRIMINATOR, UPDATE_REWARD_FUNDER_DISCRIMINATOR, type UpdateBaseFeeParametersAsyncInput, type UpdateBaseFeeParametersInput, type UpdateBaseFeeParametersInstruction, type UpdateBaseFeeParametersInstructionData, type UpdateBaseFeeParametersInstructionDataArgs, type UpdateDynamicFeeParametersAsyncInput, type UpdateDynamicFeeParametersInput, type UpdateDynamicFeeParametersInstruction, type UpdateDynamicFeeParametersInstructionData, type UpdateDynamicFeeParametersInstructionDataArgs, type UpdateFeesAndReward2Input, type UpdateFeesAndReward2Instruction, type UpdateFeesAndReward2InstructionData, type UpdateFeesAndReward2InstructionDataArgs, type UpdateFeesAndRewardsInput, type UpdateFeesAndRewardsInstruction, type UpdateFeesAndRewardsInstructionData, type UpdateFeesAndRewardsInstructionDataArgs, type UpdatePositionOperatorAsyncInput, type UpdatePositionOperatorInput, type UpdatePositionOperatorInstruction, type UpdatePositionOperatorInstructionData, type UpdatePositionOperatorInstructionDataArgs, type UpdateRewardDurationAsyncInput, type UpdateRewardDurationInput, type UpdateRewardDurationInstruction, type UpdateRewardDurationInstructionData, type UpdateRewardDurationInstructionDataArgs, type UpdateRewardFunderAsyncInput, type UpdateRewardFunderInput, type UpdateRewardFunderInstruction, type UpdateRewardFunderInstructionData, type UpdateRewardFunderInstructionDataArgs, type UserRewardInfo, type UserRewardInfoArgs, type VariableParameters, type VariableParametersArgs, WITHDRAW_INELIGIBLE_REWARD_DISCRIMINATOR, WITHDRAW_PROTOCOL_FEE_DISCRIMINATOR, type WithdrawIneligibleRewardAsyncInput, type WithdrawIneligibleRewardInput, type WithdrawIneligibleRewardInstruction, type WithdrawIneligibleRewardInstructionData, type WithdrawIneligibleRewardInstructionDataArgs, type WithdrawProtocolFeeInput, type WithdrawProtocolFeeInstruction, type WithdrawProtocolFeeInstructionData, type WithdrawProtocolFeeInstructionDataArgs, ZAP_PROTOCOL_FEE_DISCRIMINATOR, type ZapProtocolFeeInput, type ZapProtocolFeeInstruction, type ZapProtocolFeeInstructionData, type ZapProtocolFeeInstructionDataArgs, accountsType, binArrayIndexToBinIdRange, binIdToBinArrayIndex, binIdToPrice, decodeBinArray, decodeBinArrayBitmapExtension, decodeClaimFeeOperator, decodeDummyZcAccount, decodeLbPair, decodeLimitOrder, decodeOperator, decodeOracle, decodePositionV2, decodePresetParameter, decodePresetParameter2, decodeTokenBadge, fetchAllBinArray, fetchAllBinArrayBitmapExtension, fetchAllClaimFeeOperator, fetchAllDummyZcAccount, fetchAllLbPair, fetchAllLimitOrder, fetchAllMaybeBinArray, fetchAllMaybeBinArrayBitmapExtension, fetchAllMaybeClaimFeeOperator, fetchAllMaybeDummyZcAccount, fetchAllMaybeLbPair, fetchAllMaybeLimitOrder, fetchAllMaybeOperator, fetchAllMaybeOracle, fetchAllMaybePositionV2, fetchAllMaybePresetParameter, fetchAllMaybePresetParameter2, fetchAllMaybeTokenBadge, fetchAllOperator, fetchAllOracle, fetchAllPositionV2, fetchAllPresetParameter, fetchAllPresetParameter2, fetchAllTokenBadge, fetchBinArray, fetchBinArrayBitmapExtension, fetchClaimFeeOperator, fetchDummyZcAccount, fetchLbPair, fetchLimitOrder, fetchMaybeBinArray, fetchMaybeBinArrayBitmapExtension, fetchMaybeClaimFeeOperator, fetchMaybeDummyZcAccount, fetchMaybeLbPair, fetchMaybeLimitOrder, fetchMaybeOperator, fetchMaybeOracle, fetchMaybePositionV2, fetchMaybePresetParameter, fetchMaybePresetParameter2, fetchMaybeTokenBadge, fetchOperator, fetchOracle, fetchPositionV2, fetchPresetParameter, fetchPresetParameter2, fetchTokenBadge, findBinArrayBitmapExtensionPda, findBinArrayPda, findEventAuthorityPda, findLbPairPda, findOperatorPda, findOraclePda, findPositionPda, findPresetParameterPda, findReserveXPda, findReserveYPda, findRewardVaultPda, findTokenBadgePda, getAccountsTypeCodec, getAccountsTypeDecoder, getAccountsTypeEncoder, getActivationTypeCodec, getActivationTypeDecoder, getActivationTypeEncoder, getAddLiquidity2DiscriminatorBytes, getAddLiquidity2Instruction, getAddLiquidity2InstructionAsync, getAddLiquidity2InstructionDataCodec, getAddLiquidity2InstructionDataDecoder, getAddLiquidity2InstructionDataEncoder, getAddLiquidityByStrategy2DiscriminatorBytes, getAddLiquidityByStrategy2Instruction, getAddLiquidityByStrategy2InstructionAsync, getAddLiquidityByStrategy2InstructionDataCodec, getAddLiquidityByStrategy2InstructionDataDecoder, getAddLiquidityByStrategy2InstructionDataEncoder, getAddLiquidityByStrategyDiscriminatorBytes, getAddLiquidityByStrategyInstruction, getAddLiquidityByStrategyInstructionAsync, getAddLiquidityByStrategyInstructionDataCodec, getAddLiquidityByStrategyInstructionDataDecoder, getAddLiquidityByStrategyInstructionDataEncoder, getAddLiquidityByStrategyOneSideDiscriminatorBytes, getAddLiquidityByStrategyOneSideInstruction, getAddLiquidityByStrategyOneSideInstructionAsync, getAddLiquidityByStrategyOneSideInstructionDataCodec, getAddLiquidityByStrategyOneSideInstructionDataDecoder, getAddLiquidityByStrategyOneSideInstructionDataEncoder, getAddLiquidityByWeight2DiscriminatorBytes, getAddLiquidityByWeight2Instruction, getAddLiquidityByWeight2InstructionAsync, getAddLiquidityByWeight2InstructionDataCodec, getAddLiquidityByWeight2InstructionDataDecoder, getAddLiquidityByWeight2InstructionDataEncoder, getAddLiquidityByWeightDiscriminatorBytes, getAddLiquidityByWeightInstruction, getAddLiquidityByWeightInstructionAsync, getAddLiquidityByWeightInstructionDataCodec, getAddLiquidityByWeightInstructionDataDecoder, getAddLiquidityByWeightInstructionDataEncoder, getAddLiquidityDiscriminatorBytes, getAddLiquidityInstruction, getAddLiquidityInstructionAsync, getAddLiquidityInstructionDataCodec, getAddLiquidityInstructionDataDecoder, getAddLiquidityInstructionDataEncoder, getAddLiquidityOneSideDiscriminatorBytes, getAddLiquidityOneSideInstruction, getAddLiquidityOneSideInstructionAsync, getAddLiquidityOneSideInstructionDataCodec, getAddLiquidityOneSideInstructionDataDecoder, getAddLiquidityOneSideInstructionDataEncoder, getAddLiquidityOneSidePrecise2DiscriminatorBytes, getAddLiquidityOneSidePrecise2Instruction, getAddLiquidityOneSidePrecise2InstructionAsync, getAddLiquidityOneSidePrecise2InstructionDataCodec, getAddLiquidityOneSidePrecise2InstructionDataDecoder, getAddLiquidityOneSidePrecise2InstructionDataEncoder, getAddLiquidityOneSidePreciseDiscriminatorBytes, getAddLiquidityOneSidePreciseInstruction, getAddLiquidityOneSidePreciseInstructionAsync, getAddLiquidityOneSidePreciseInstructionDataCodec, getAddLiquidityOneSidePreciseInstructionDataDecoder, getAddLiquidityOneSidePreciseInstructionDataEncoder, getAddLiquidityParamsCodec, getAddLiquidityParamsDecoder, getAddLiquidityParamsEncoder, getBinArrayBitmapExtensionCodec, getBinArrayBitmapExtensionDecoder, getBinArrayBitmapExtensionDiscriminatorBytes, getBinArrayBitmapExtensionEncoder, getBinArrayBitmapExtensionSize, getBinArrayCodec, getBinArrayDecoder, getBinArrayDiscriminatorBytes, getBinArrayEncoder, getBinArraySize, getBinCodec, getBinDecoder, getBinEncoder, getBinLimitOrderAmountCodec, getBinLimitOrderAmountDecoder, getBinLimitOrderAmountEncoder, getBinLiquidityDistributionByWeightCodec, getBinLiquidityDistributionByWeightDecoder, getBinLiquidityDistributionByWeightEncoder, getBinLiquidityDistributionCodec, getBinLiquidityDistributionDecoder, getBinLiquidityDistributionEncoder, getBinLiquidityReductionCodec, getBinLiquidityReductionDecoder, getBinLiquidityReductionEncoder, getCancelLimitOrderDiscriminatorBytes, getCancelLimitOrderInstruction, getCancelLimitOrderInstructionAsync, getCancelLimitOrderInstructionDataCodec, getCancelLimitOrderInstructionDataDecoder, getCancelLimitOrderInstructionDataEncoder, getClaimFee2DiscriminatorBytes, getClaimFee2Instruction, getClaimFee2InstructionAsync, getClaimFee2InstructionDataCodec, getClaimFee2InstructionDataDecoder, getClaimFee2InstructionDataEncoder, getClaimFeeDiscriminatorBytes, getClaimFeeInstruction, getClaimFeeInstructionAsync, getClaimFeeInstructionDataCodec, getClaimFeeInstructionDataDecoder, getClaimFeeInstructionDataEncoder, getClaimFeeOperatorCodec, getClaimFeeOperatorDecoder, getClaimFeeOperatorDiscriminatorBytes, getClaimFeeOperatorEncoder, getClaimFeeOperatorSize, getClaimReward2DiscriminatorBytes, getClaimReward2Instruction, getClaimReward2InstructionAsync, getClaimReward2InstructionDataCodec, getClaimReward2InstructionDataDecoder, getClaimReward2InstructionDataEncoder, getClaimRewardDiscriminatorBytes, getClaimRewardInstruction, getClaimRewardInstructionAsync, getClaimRewardInstructionDataCodec, getClaimRewardInstructionDataDecoder, getClaimRewardInstructionDataEncoder, getCloseBinArrayDiscriminatorBytes, getCloseBinArrayInstruction, getCloseBinArrayInstructionDataCodec, getCloseBinArrayInstructionDataDecoder, getCloseBinArrayInstructionDataEncoder, getCloseClaimFeeOperatorAccountDiscriminatorBytes, getCloseClaimFeeOperatorAccountInstruction, getCloseClaimFeeOperatorAccountInstructionDataCodec, getCloseClaimFeeOperatorAccountInstructionDataDecoder, getCloseClaimFeeOperatorAccountInstructionDataEncoder, getCloseLimitOrderIfEmptyDiscriminatorBytes, getCloseLimitOrderIfEmptyInstruction, getCloseLimitOrderIfEmptyInstructionAsync, getCloseLimitOrderIfEmptyInstructionDataCodec, getCloseLimitOrderIfEmptyInstructionDataDecoder, getCloseLimitOrderIfEmptyInstructionDataEncoder, getCloseOperatorAccountDiscriminatorBytes, getCloseOperatorAccountInstruction, getCloseOperatorAccountInstructionDataCodec, getCloseOperatorAccountInstructionDataDecoder, getCloseOperatorAccountInstructionDataEncoder, getClosePosition2DiscriminatorBytes, getClosePosition2Instruction, getClosePosition2InstructionAsync, getClosePosition2InstructionDataCodec, getClosePosition2InstructionDataDecoder, getClosePosition2InstructionDataEncoder, getClosePositionDiscriminatorBytes, getClosePositionIfEmptyDiscriminatorBytes, getClosePositionIfEmptyInstruction, getClosePositionIfEmptyInstructionAsync, getClosePositionIfEmptyInstructionDataCodec, getClosePositionIfEmptyInstructionDataDecoder, getClosePositionIfEmptyInstructionDataEncoder, getClosePositionInstruction, getClosePositionInstructionAsync, getClosePositionInstructionDataCodec, getClosePositionInstructionDataDecoder, getClosePositionInstructionDataEncoder, getClosePresetParameter2DiscriminatorBytes, getClosePresetParameter2Instruction, getClosePresetParameter2InstructionDataCodec, getClosePresetParameter2InstructionDataDecoder, getClosePresetParameter2InstructionDataEncoder, getClosePresetParameterDiscriminatorBytes, getClosePresetParameterInstruction, getClosePresetParameterInstructionDataCodec, getClosePresetParameterInstructionDataDecoder, getClosePresetParameterInstructionDataEncoder, getCloseTokenBadgeDiscriminatorBytes, getCloseTokenBadgeInstruction, getCloseTokenBadgeInstructionDataCodec, getCloseTokenBadgeInstructionDataDecoder, getCloseTokenBadgeInstructionDataEncoder, getCompressedBinDepositAmountCodec, getCompressedBinDepositAmountDecoder, getCompressedBinDepositAmountEncoder, getCreateOperatorAccountDiscriminatorBytes, getCreateOperatorAccountInstruction, getCreateOperatorAccountInstructionAsync, getCreateOperatorAccountInstructionDataCodec, getCreateOperatorAccountInstructionDataDecoder, getCreateOperatorAccountInstructionDataEncoder, getCustomizableParamsCodec, getCustomizableParamsDecoder, getCustomizableParamsEncoder, getDecreasePositionLengthDiscriminatorBytes, getDecreasePositionLengthInstruction, getDecreasePositionLengthInstructionAsync, getDecreasePositionLengthInstructionDataCodec, getDecreasePositionLengthInstructionDataDecoder, getDecreasePositionLengthInstructionDataEncoder, getDummyZcAccountCodec, getDummyZcAccountDecoder, getDummyZcAccountDiscriminatorBytes, getDummyZcAccountEncoder, getDummyZcAccountSize, getFeeInfoCodec, getFeeInfoDecoder, getFeeInfoEncoder, getForIdlTypeGenerationDoNotCallDiscriminatorBytes, getForIdlTypeGenerationDoNotCallInstruction, getForIdlTypeGenerationDoNotCallInstructionDataCodec, getForIdlTypeGenerationDoNotCallInstructionDataDecoder, getForIdlTypeGenerationDoNotCallInstructionDataEncoder, getFundRewardDiscriminatorBytes, getFundRewardInstruction, getFundRewardInstructionAsync, getFundRewardInstructionDataCodec, getFundRewardInstructionDataDecoder, getFundRewardInstructionDataEncoder, getGoToABinDiscriminatorBytes, getGoToABinInstruction, getGoToABinInstructionAsync, getGoToABinInstructionDataCodec, getGoToABinInstructionDataDecoder, getGoToABinInstructionDataEncoder, getIncreaseOracleLengthDiscriminatorBytes, getIncreaseOracleLengthInstruction, getIncreaseOracleLengthInstructionAsync, getIncreaseOracleLengthInstructionDataCodec, getIncreaseOracleLengthInstructionDataDecoder, getIncreaseOracleLengthInstructionDataEncoder, getIncreasePositionLength2DiscriminatorBytes, getIncreasePositionLength2Instruction, getIncreasePositionLength2InstructionAsync, getIncreasePositionLength2InstructionDataCodec, getIncreasePositionLength2InstructionDataDecoder, getIncreasePositionLength2InstructionDataEncoder, getIncreasePositionLengthDiscriminatorBytes, getIncreasePositionLengthInstruction, getIncreasePositionLengthInstructionAsync, getIncreasePositionLengthInstructionDataCodec, getIncreasePositionLengthInstructionDataDecoder, getIncreasePositionLengthInstructionDataEncoder, getInitializeBinArrayBitmapExtensionDiscriminatorBytes, getInitializeBinArrayBitmapExtensionInstruction, getInitializeBinArrayBitmapExtensionInstructionAsync, getInitializeBinArrayBitmapExtensionInstructionDataCodec, getInitializeBinArrayBitmapExtensionInstructionDataDecoder, getInitializeBinArrayBitmapExtensionInstructionDataEncoder, getInitializeBinArrayDiscriminatorBytes, getInitializeBinArrayInstruction, getInitializeBinArrayInstructionAsync, getInitializeBinArrayInstructionDataCodec, getInitializeBinArrayInstructionDataDecoder, getInitializeBinArrayInstructionDataEncoder, getInitializeCustomizablePermissionlessLbPair2DiscriminatorBytes, getInitializeCustomizablePermissionlessLbPair2Instruction, getInitializeCustomizablePermissionlessLbPair2InstructionAsync, getInitializeCustomizablePermissionlessLbPair2InstructionDataCodec, getInitializeCustomizablePermissionlessLbPair2InstructionDataDecoder, getInitializeCustomizablePermissionlessLbPair2InstructionDataEncoder, getInitializeCustomizablePermissionlessLbPairDiscriminatorBytes, getInitializeCustomizablePermissionlessLbPairInstruction, getInitializeCustomizablePermissionlessLbPairInstructionAsync, getInitializeCustomizablePermissionlessLbPairInstructionDataCodec, getInitializeCustomizablePermissionlessLbPairInstructionDataDecoder, getInitializeCustomizablePermissionlessLbPairInstructionDataEncoder, getInitializeLbPair2DiscriminatorBytes, getInitializeLbPair2Instruction, getInitializeLbPair2InstructionAsync, getInitializeLbPair2InstructionDataCodec, getInitializeLbPair2InstructionDataDecoder, getInitializeLbPair2InstructionDataEncoder, getInitializeLbPairDiscriminatorBytes, getInitializeLbPairInstruction, getInitializeLbPairInstructionAsync, getInitializeLbPairInstructionDataCodec, getInitializeLbPairInstructionDataDecoder, getInitializeLbPairInstructionDataEncoder, getInitializePermissionLbPairDiscriminatorBytes, getInitializePermissionLbPairInstruction, getInitializePermissionLbPairInstructionAsync, getInitializePermissionLbPairInstructionDataCodec, getInitializePermissionLbPairInstructionDataDecoder, getInitializePermissionLbPairInstructionDataEncoder, getInitializePosition2DiscriminatorBytes, getInitializePosition2Instruction, getInitializePosition2InstructionAsync, getInitializePosition2InstructionDataCodec, getInitializePosition2InstructionDataDecoder, getInitializePosition2InstructionDataEncoder, getInitializePositionByOperatorDiscriminatorBytes, getInitializePositionByOperatorInstruction, getInitializePositionByOperatorInstructionAsync, getInitializePositionByOperatorInstructionDataCodec, getInitializePositionByOperatorInstructionDataDecoder, getInitializePositionByOperatorInstructionDataEncoder, getInitializePositionDiscriminatorBytes, getInitializePositionInstruction, getInitializePositionInstructionAsync, getInitializePositionInstructionDataCodec, getInitializePositionInstructionDataDecoder, getInitializePositionInstructionDataEncoder, getInitializePositionPdaDiscriminatorBytes, getInitializePositionPdaInstruction, getInitializePositionPdaInstructionAsync, getInitializePositionPdaInstructionDataCodec, getInitializePositionPdaInstructionDataDecoder, getInitializePositionPdaInstructionDataEncoder, getInitializePresetParameterDiscriminatorBytes, getInitializePresetParameterInstruction, getInitializePresetParameterInstructionDataCodec, getInitializePresetParameterInstructionDataDecoder, getInitializePresetParameterInstructionDataEncoder, getInitializeRewardDiscriminatorBytes, getInitializeRewardInstruction, getInitializeRewardInstructionAsync, getInitializeRewardInstructionDataCodec, getInitializeRewardInstructionDataDecoder, getInitializeRewardInstructionDataEncoder, getInitializeTokenBadgeDiscriminatorBytes, getInitializeTokenBadgeInstruction, getInitializeTokenBadgeInstructionAsync, getInitializeTokenBadgeInstructionDataCodec, getInitializeTokenBadgeInstructionDataDecoder, getInitializeTokenBadgeInstructionDataEncoder, getLbClmmErrorMessage, getLbPairCodec, getLbPairDecoder, getLbPairDiscriminatorBytes, getLbPairEncoder, getLbPairSize, getLimitOrderBinDataCodec, getLimitOrderBinDataDecoder, getLimitOrderBinDataEncoder, getLimitOrderCodec, getLimitOrderDecoder, getLimitOrderDiscriminatorBytes, getLimitOrderEncoder, getLimitOrderSize, getLiquidityParameterByStrategyCodec, getLiquidityParameterByStrategyDecoder, getLiquidityParameterByStrategyEncoder, getLiquidityParameterByWeightCodec, getLiquidityParameterByWeightDecoder, getLiquidityParameterByWeightEncoder, getLiquidityParameterCodec, getLiquidityParameterDecoder, getLiquidityParameterEncoder, getOperatorCodec, getOperatorDecoder, getOperatorDiscriminatorBytes, getOperatorEncoder, getOperatorSize, getOracleCodec, getOracleDecoder, getOracleDiscriminatorBytes, getOracleEncoder, getOracleSize, getPairStatusCodec, getPairStatusDecoder, getPairStatusEncoder, getPairTypeCodec, getPairTypeDecoder, getPairTypeEncoder, getPlaceLimitOrderDiscriminatorBytes, getPlaceLimitOrderInstruction, getPlaceLimitOrderInstructionAsync, getPlaceLimitOrderInstructionDataCodec, getPlaceLimitOrderInstructionDataDecoder, getPlaceLimitOrderInstructionDataEncoder, getPlaceLimitOrderParamsCodec, getPlaceLimitOrderParamsDecoder, getPlaceLimitOrderParamsEncoder, getPositionBinDataCodec, getPositionBinDataDecoder, getPositionBinDataEncoder, getPositionV2Codec, getPositionV2Decoder, getPositionV2DiscriminatorBytes, getPositionV2Encoder, getPositionV2Size, getPresetParameter2Codec, getPresetParameter2Decoder, getPresetParameter2DiscriminatorBytes, getPresetParameter2Encoder, getPresetParameter2Size, getPresetParameterCodec, getPresetParameterDecoder, getPresetParameterDiscriminatorBytes, getPresetParameterEncoder, getPresetParameterSize, getProtocolFeeCodec, getProtocolFeeDecoder, getProtocolFeeEncoder, getRebalanceLiquidityDiscriminatorBytes, getRebalanceLiquidityInstruction, getRebalanceLiquidityInstructionAsync, getRebalanceLiquidityInstructionDataCodec, getRebalanceLiquidityInstructionDataDecoder, getRebalanceLiquidityInstructionDataEncoder, getRelativeBinCodec, getRelativeBinDecoder, getRelativeBinEncoder, getRemainingAccountsInfoCodec, getRemainingAccountsInfoDecoder, getRemainingAccountsInfoEncoder, getRemainingAccountsSliceCodec, getRemainingAccountsSliceDecoder, getRemainingAccountsSliceEncoder, getRemoveAllLiquidityDiscriminatorBytes, getRemoveAllLiquidityInstruction, getRemoveAllLiquidityInstructionAsync, getRemoveAllLiquidityInstructionDataCodec, getRemoveAllLiquidityInstructionDataDecoder, getRemoveAllLiquidityInstructionDataEncoder, getRemoveLiquidity2DiscriminatorBytes, getRemoveLiquidity2Instruction, getRemoveLiquidity2InstructionAsync, getRemoveLiquidity2InstructionDataCodec, getRemoveLiquidity2InstructionDataDecoder, getRemoveLiquidity2InstructionDataEncoder, getRemoveLiquidityByRange2DiscriminatorBytes, getRemoveLiquidityByRange2Instruction, getRemoveLiquidityByRange2InstructionAsync, getRemoveLiquidityByRange2InstructionDataCodec, getRemoveLiquidityByRange2InstructionDataDecoder, getRemoveLiquidityByRange2InstructionDataEncoder, getRemoveLiquidityByRangeDiscriminatorBytes, getRemoveLiquidityByRangeInstruction, getRemoveLiquidityByRangeInstructionAsync, getRemoveLiquidityByRangeInstructionDataCodec, getRemoveLiquidityByRangeInstructionDataDecoder, getRemoveLiquidityByRangeInstructionDataEncoder, getRemoveLiquidityDiscriminatorBytes, getRemoveLiquidityInstruction, getRemoveLiquidityInstructionAsync, getRemoveLiquidityInstructionDataCodec, getRemoveLiquidityInstructionDataDecoder, getRemoveLiquidityInstructionDataEncoder, getRemoveLiquidityParamsCodec, getRemoveLiquidityParamsDecoder, getRemoveLiquidityParamsEncoder, getResizeSideCodec, getResizeSideDecoder, getResizeSideEncoder, getRewardInfoCodec, getRewardInfoDecoder, getRewardInfoEncoder, getRoundingCodec, getRoundingDecoder, getRoundingEncoder, getSetActivationPointDiscriminatorBytes, getSetActivationPointInstruction, getSetActivationPointInstructionDataCodec, getSetActivationPointInstructionDataDecoder, getSetActivationPointInstructionDataEncoder, getSetPairStatusDiscriminatorBytes, getSetPairStatusInstruction, getSetPairStatusInstructionDataCodec, getSetPairStatusInstructionDataDecoder, getSetPairStatusInstructionDataEncoder, getSetPairStatusPermissionlessDiscriminatorBytes, getSetPairStatusPermissionlessInstruction, getSetPairStatusPermissionlessInstructionDataCodec, getSetPairStatusPermissionlessInstructionDataDecoder, getSetPairStatusPermissionlessInstructionDataEncoder, getSetPermissionlessOperationBitsDiscriminatorBytes, getSetPermissionlessOperationBitsInstruction, getSetPermissionlessOperationBitsInstructionAsync, getSetPermissionlessOperationBitsInstructionDataCodec, getSetPermissionlessOperationBitsInstructionDataDecoder, getSetPermissionlessOperationBitsInstructionDataEncoder, getSetPreActivationDurationDiscriminatorBytes, getSetPreActivationDurationInstruction, getSetPreActivationDurationInstructionDataCodec, getSetPreActivationDurationInstructionDataDecoder, getSetPreActivationDurationInstructionDataEncoder, getSetPreActivationSwapAddressDiscriminatorBytes, getSetPreActivationSwapAddressInstruction, getSetPreActivationSwapAddressInstructionDataCodec, getSetPreActivationSwapAddressInstructionDataDecoder, getSetPreActivationSwapAddressInstructionDataEncoder, getStaticParametersCodec, getStaticParametersDecoder, getStaticParametersEncoder, getStrategyParametersCodec, getStrategyParametersDecoder, getStrategyParametersEncoder, getStrategyTypeCodec, getStrategyTypeDecoder, getStrategyTypeEncoder, getSwap2DiscriminatorBytes, getSwap2Instruction, getSwap2InstructionAsync, getSwap2InstructionDataCodec, getSwap2InstructionDataDecoder, getSwap2InstructionDataEncoder, getSwapDiscriminatorBytes, getSwapExactOut2DiscriminatorBytes, getSwapExactOut2Instruction, getSwapExactOut2InstructionAsync, getSwapExactOut2InstructionDataCodec, getSwapExactOut2InstructionDataDecoder, getSwapExactOut2InstructionDataEncoder, getSwapExactOutDiscriminatorBytes, getSwapExactOutInstruction, getSwapExactOutInstructionAsync, getSwapExactOutInstructionDataCodec, getSwapExactOutInstructionDataDecoder, getSwapExactOutInstructionDataEncoder, getSwapInstruction, getSwapInstructionAsync, getSwapInstructionDataCodec, getSwapInstructionDataDecoder, getSwapInstructionDataEncoder, getSwapWithPriceImpact2DiscriminatorBytes, getSwapWithPriceImpact2Instruction, getSwapWithPriceImpact2InstructionAsync, getSwapWithPriceImpact2InstructionDataCodec, getSwapWithPriceImpact2InstructionDataDecoder, getSwapWithPriceImpact2InstructionDataEncoder, getSwapWithPriceImpactDiscriminatorBytes, getSwapWithPriceImpactInstruction, getSwapWithPriceImpactInstructionAsync, getSwapWithPriceImpactInstructionDataCodec, getSwapWithPriceImpactInstructionDataDecoder, getSwapWithPriceImpactInstructionDataEncoder, getTokenBadgeCodec, getTokenBadgeDecoder, getTokenBadgeDiscriminatorBytes, getTokenBadgeEncoder, getTokenBadgeSize, getTokenProgramFlagsCodec, getTokenProgramFlagsDecoder, getTokenProgramFlagsEncoder, getUpdateBaseFeeParametersDiscriminatorBytes, getUpdateBaseFeeParametersInstruction, getUpdateBaseFeeParametersInstructionAsync, getUpdateBaseFeeParametersInstructionDataCodec, getUpdateBaseFeeParametersInstructionDataDecoder, getUpdateBaseFeeParametersInstructionDataEncoder, getUpdateDynamicFeeParametersDiscriminatorBytes, getUpdateDynamicFeeParametersInstruction, getUpdateDynamicFeeParametersInstructionAsync, getUpdateDynamicFeeParametersInstructionDataCodec, getUpdateDynamicFeeParametersInstructionDataDecoder, getUpdateDynamicFeeParametersInstructionDataEncoder, getUpdateFeesAndReward2DiscriminatorBytes, getUpdateFeesAndReward2Instruction, getUpdateFeesAndReward2InstructionDataCodec, getUpdateFeesAndReward2InstructionDataDecoder, getUpdateFeesAndReward2InstructionDataEncoder, getUpdateFeesAndRewardsDiscriminatorBytes, getUpdateFeesAndRewardsInstruction, getUpdateFeesAndRewardsInstructionDataCodec, getUpdateFeesAndRewardsInstructionDataDecoder, getUpdateFeesAndRewardsInstructionDataEncoder, getUpdatePositionOperatorDiscriminatorBytes, getUpdatePositionOperatorInstruction, getUpdatePositionOperatorInstructionAsync, getUpdatePositionOperatorInstructionDataCodec, getUpdatePositionOperatorInstructionDataDecoder, getUpdatePositionOperatorInstructionDataEncoder, getUpdateRewardDurationDiscriminatorBytes, getUpdateRewardDurationInstruction, getUpdateRewardDurationInstructionAsync, getUpdateRewardDurationInstructionDataCodec, getUpdateRewardDurationInstructionDataDecoder, getUpdateRewardDurationInstructionDataEncoder, getUpdateRewardFunderDiscriminatorBytes, getUpdateRewardFunderInstruction, getUpdateRewardFunderInstructionAsync, getUpdateRewardFunderInstructionDataCodec, getUpdateRewardFunderInstructionDataDecoder, getUpdateRewardFunderInstructionDataEncoder, getUserRewardInfoCodec, getUserRewardInfoDecoder, getUserRewardInfoEncoder, getVariableParametersCodec, getVariableParametersDecoder, getVariableParametersEncoder, getWithdrawIneligibleRewardDiscriminatorBytes, getWithdrawIneligibleRewardInstruction, getWithdrawIneligibleRewardInstructionAsync, getWithdrawIneligibleRewardInstructionDataCodec, getWithdrawIneligibleRewardInstructionDataDecoder, getWithdrawIneligibleRewardInstructionDataEncoder, getWithdrawProtocolFeeDiscriminatorBytes, getWithdrawProtocolFeeInstruction, getWithdrawProtocolFeeInstructionDataCodec, getWithdrawProtocolFeeInstructionDataDecoder, getWithdrawProtocolFeeInstructionDataEncoder, getZapProtocolFeeDiscriminatorBytes, getZapProtocolFeeInstruction, getZapProtocolFeeInstructionDataCodec, getZapProtocolFeeInstructionDataDecoder, getZapProtocolFeeInstructionDataEncoder, identifyLbClmmAccount, identifyLbClmmInstruction, isAccountsType, isLbClmmError, parseAddLiquidity2Instruction, parseAddLiquidityByStrategy2Instruction, parseAddLiquidityByStrategyInstruction, parseAddLiquidityByStrategyOneSideInstruction, parseAddLiquidityByWeight2Instruction, parseAddLiquidityByWeightInstruction, parseAddLiquidityInstruction, parseAddLiquidityOneSideInstruction, parseAddLiquidityOneSidePrecise2Instruction, parseAddLiquidityOneSidePreciseInstruction, parseCancelLimitOrderInstruction, parseClaimFee2Instruction, parseClaimFeeInstruction, parseClaimReward2Instruction, parseClaimRewardInstruction, parseCloseBinArrayInstruction, parseCloseClaimFeeOperatorAccountInstruction, parseCloseLimitOrderIfEmptyInstruction, parseCloseOperatorAccountInstruction, parseClosePosition2Instruction, parseClosePositionIfEmptyInstruction, parseClosePositionInstruction, parseClosePresetParameter2Instruction, parseClosePresetParameterInstruction, parseCloseTokenBadgeInstruction, parseCreateOperatorAccountInstruction, parseDecreasePositionLengthInstruction, parseForIdlTypeGenerationDoNotCallInstruction, parseFundRewardInstruction, parseGoToABinInstruction, parseIncreaseOracleLengthInstruction, parseIncreasePositionLength2Instruction, parseIncreasePositionLengthInstruction, parseInitializeBinArrayBitmapExtensionInstruction, parseInitializeBinArrayInstruction, parseInitializeCustomizablePermissionlessLbPair2Instruction, parseInitializeCustomizablePermissionlessLbPairInstruction, parseInitializeLbPair2Instruction, parseInitializeLbPairInstruction, parseInitializePermissionLbPairInstruction, parseInitializePosition2Instruction, parseInitializePositionByOperatorInstruction, parseInitializePositionInstruction, parseInitializePositionPdaInstruction, parseInitializePresetParameterInstruction, parseInitializeRewardInstruction, parseInitializeTokenBadgeInstruction, parseLbClmmInstruction, parsePlaceLimitOrderInstruction, parseRebalanceLiquidityInstruction, parseRemoveAllLiquidityInstruction, parseRemoveLiquidity2Instruction, parseRemoveLiquidityByRange2Instruction, parseRemoveLiquidityByRangeInstruction, parseRemoveLiquidityInstruction, parseSetActivationPointInstruction, parseSetPairStatusInstruction, parseSetPairStatusPermissionlessInstruction, parseSetPermissionlessOperationBitsInstruction, parseSetPreActivationDurationInstruction, parseSetPreActivationSwapAddressInstruction, parseSwap2Instruction, parseSwapExactOut2Instruction, parseSwapExactOutInstruction, parseSwapInstruction, parseSwapWithPriceImpact2Instruction, parseSwapWithPriceImpactInstruction, parseUpdateBaseFeeParametersInstruction, parseUpdateDynamicFeeParametersInstruction, parseUpdateFeesAndReward2Instruction, parseUpdateFeesAndRewardsInstruction, parseUpdatePositionOperatorInstruction, parseUpdateRewardDurationInstruction, parseUpdateRewardFunderInstruction, parseWithdrawIneligibleRewardInstruction, parseWithdrawProtocolFeeInstruction, parseZapProtocolFeeInstruction, priceToBinId };
package/dist/index.d.ts CHANGED
@@ -8688,51 +8688,26 @@ declare function findPresetParameterPda(seeds: {
8688
8688
  }): Promise<ProgramDerivedAddress>;
8689
8689
 
8690
8690
  declare const MAX_BIN_PER_ARRAY = 70;
8691
- declare const SCALE_OFFSET = 64;
8692
8691
  declare const BASIS_POINT_MAX = 10000;
8692
+ declare const MAX_RESIZE_LENGTH = 70;
8693
+ declare const POSITION_MAX_LENGTH = 1400;
8694
+ declare const NUM_REWARDS = 2;
8695
+ declare const MAX_BIN_STEP = 400;
8693
8696
  declare const MIN_BIN_ID = -443636;
8694
8697
  declare const MAX_BIN_ID = 443636;
8695
8698
  declare const ONE_Q64: bigint;
8696
8699
  /**
8697
- * Exact Q64.64 exponentiation. Ports `u64x64_math::pow`.
8698
- * Returns `null` on overflow (mirrors Rust's `Option<u128>`).
8700
+ * Convert a human-scale price (number) into a bin id.
8699
8701
  */
8700
- declare function q64Pow(base: bigint, exp: number): bigint | null;
8702
+ declare function priceToBinId(price: string | number, binStep: number, min: boolean, decimalsX?: number, decimalsY?: number): number;
8701
8703
  /**
8702
- * Exact Q64.64 price of a bin. Ports `price_math::get_price_from_id`.
8703
- * Returns the on-chain raw price (lamport_Y / lamport_X) as a Q64.64 u128.
8704
- * Throws if the (binId, binStep) combination overflows the fixed-point range.
8704
+ * Convert a bin id to a human-scale price (number).
8705
8705
  */
8706
- declare function getPriceFromId(binId: number, binStep: number): bigint;
8707
- /**
8708
- * Largest bin id whose Q64.64 price is ≤ `priceQ64`. Exact inverse of
8709
- * `getPriceFromId` via binary search — no on-chain equivalent exists; the
8710
- * program only ever takes `active_id` as input.
8711
- *
8712
- * Saturates to MIN_BIN_ID / MAX_BIN_ID when `priceQ64` is out of representable
8713
- * range.
8714
- */
8715
- declare function getIdFromPrice(priceQ64: bigint, binStep: number): number;
8716
- /**
8717
- * Convert a human-scale price (Number) into a Q64.64 raw lamport-ratio price.
8718
- *
8719
- * Lossy: bounded by Number's ~16-digit mantissa. For exact pipelines, work in
8720
- * Q64.64 directly via {@link getPriceFromId} / {@link getIdFromPrice}.
8721
- */
8722
- declare function humanPriceToQ64(humanPrice: number, decimalsX: number, decimalsY: number): bigint;
8723
- /**
8724
- * Convert a Q64.64 raw lamport-ratio price into a human-scale Number.
8725
- *
8726
- * Lossy by Number precision; use only for display or for round-tripping when
8727
- * exact equality is not required.
8728
- */
8729
- declare function q64ToHumanPrice(priceQ64: bigint, decimalsX: number, decimalsY: number): number;
8730
- declare function priceToBinId(humanPrice: number, binStep: number, decimalsX: number, decimalsY: number): number;
8731
- declare function binIdToPrice(binId: number, binStep: number, decimalsX: number, decimalsY: number): number;
8706
+ declare function binIdToPrice(binId: number, binStep: number, decimalsX?: number, decimalsY?: number): number;
8732
8707
  declare function binIdToBinArrayIndex(binId: number): bigint;
8733
8708
  declare function binArrayIndexToBinIdRange(index: bigint | number): {
8734
8709
  lower: number;
8735
8710
  upper: number;
8736
8711
  };
8737
8712
 
8738
- export { ADD_LIQUIDITY2_DISCRIMINATOR, ADD_LIQUIDITY_BY_STRATEGY2_DISCRIMINATOR, ADD_LIQUIDITY_BY_STRATEGY_DISCRIMINATOR, ADD_LIQUIDITY_BY_STRATEGY_ONE_SIDE_DISCRIMINATOR, ADD_LIQUIDITY_BY_WEIGHT2_DISCRIMINATOR, ADD_LIQUIDITY_BY_WEIGHT_DISCRIMINATOR, ADD_LIQUIDITY_DISCRIMINATOR, ADD_LIQUIDITY_ONE_SIDE_DISCRIMINATOR, ADD_LIQUIDITY_ONE_SIDE_PRECISE2_DISCRIMINATOR, ADD_LIQUIDITY_ONE_SIDE_PRECISE_DISCRIMINATOR, type AccountsType, type AccountsTypeArgs, ActivationType, type ActivationTypeArgs, type AddLiquidity2AsyncInput, type AddLiquidity2Input, type AddLiquidity2Instruction, type AddLiquidity2InstructionData, type AddLiquidity2InstructionDataArgs, type AddLiquidityAsyncInput, type AddLiquidityByStrategy2AsyncInput, type AddLiquidityByStrategy2Input, type AddLiquidityByStrategy2Instruction, type AddLiquidityByStrategy2InstructionData, type AddLiquidityByStrategy2InstructionDataArgs, type AddLiquidityByStrategyAsyncInput, type AddLiquidityByStrategyInput, type AddLiquidityByStrategyInstruction, type AddLiquidityByStrategyInstructionData, type AddLiquidityByStrategyInstructionDataArgs, type AddLiquidityByStrategyOneSideAsyncInput, type AddLiquidityByStrategyOneSideInput, type AddLiquidityByStrategyOneSideInstruction, type AddLiquidityByStrategyOneSideInstructionData, type AddLiquidityByStrategyOneSideInstructionDataArgs, type AddLiquidityByWeight2AsyncInput, type AddLiquidityByWeight2Input, type AddLiquidityByWeight2Instruction, type AddLiquidityByWeight2InstructionData, type AddLiquidityByWeight2InstructionDataArgs, type AddLiquidityByWeightAsyncInput, type AddLiquidityByWeightInput, type AddLiquidityByWeightInstruction, type AddLiquidityByWeightInstructionData, type AddLiquidityByWeightInstructionDataArgs, type AddLiquidityInput, type AddLiquidityInstruction, type AddLiquidityInstructionData, type AddLiquidityInstructionDataArgs, type AddLiquidityOneSideAsyncInput, type AddLiquidityOneSideInput, type AddLiquidityOneSideInstruction, type AddLiquidityOneSideInstructionData, type AddLiquidityOneSideInstructionDataArgs, type AddLiquidityOneSidePrecise2AsyncInput, type AddLiquidityOneSidePrecise2Input, type AddLiquidityOneSidePrecise2Instruction, type AddLiquidityOneSidePrecise2InstructionData, type AddLiquidityOneSidePrecise2InstructionDataArgs, type AddLiquidityOneSidePreciseAsyncInput, type AddLiquidityOneSidePreciseInput, type AddLiquidityOneSidePreciseInstruction, type AddLiquidityOneSidePreciseInstructionData, type AddLiquidityOneSidePreciseInstructionDataArgs, type AddLiquidityParams, type AddLiquidityParamsArgs, BASIS_POINT_MAX, BIN_ARRAY_BITMAP_EXTENSION_DISCRIMINATOR, BIN_ARRAY_DISCRIMINATOR, type Bin, type BinArgs, type BinArray, type BinArrayArgs, type BinArrayBitmapExtension, type BinArrayBitmapExtensionArgs, type BinArrayBitmapExtensionSeeds, type BinArraySeeds, type BinLimitOrderAmount, type BinLimitOrderAmountArgs, type BinLiquidityDistribution, type BinLiquidityDistributionArgs, type BinLiquidityDistributionByWeight, type BinLiquidityDistributionByWeightArgs, type BinLiquidityReduction, type BinLiquidityReductionArgs, CANCEL_LIMIT_ORDER_DISCRIMINATOR, CLAIM_FEE2_DISCRIMINATOR, CLAIM_FEE_DISCRIMINATOR, CLAIM_FEE_OPERATOR_DISCRIMINATOR, CLAIM_REWARD2_DISCRIMINATOR, CLAIM_REWARD_DISCRIMINATOR, CLOSE_BIN_ARRAY_DISCRIMINATOR, CLOSE_CLAIM_FEE_OPERATOR_ACCOUNT_DISCRIMINATOR, CLOSE_LIMIT_ORDER_IF_EMPTY_DISCRIMINATOR, CLOSE_OPERATOR_ACCOUNT_DISCRIMINATOR, CLOSE_POSITION2_DISCRIMINATOR, CLOSE_POSITION_DISCRIMINATOR, CLOSE_POSITION_IF_EMPTY_DISCRIMINATOR, CLOSE_PRESET_PARAMETER2_DISCRIMINATOR, CLOSE_PRESET_PARAMETER_DISCRIMINATOR, CLOSE_TOKEN_BADGE_DISCRIMINATOR, CREATE_OPERATOR_ACCOUNT_DISCRIMINATOR, type CancelLimitOrderAsyncInput, type CancelLimitOrderInput, type CancelLimitOrderInstruction, type CancelLimitOrderInstructionData, type CancelLimitOrderInstructionDataArgs, type ClaimFee2AsyncInput, type ClaimFee2Input, type ClaimFee2Instruction, type ClaimFee2InstructionData, type ClaimFee2InstructionDataArgs, type ClaimFeeAsyncInput, type ClaimFeeInput, type ClaimFeeInstruction, type ClaimFeeInstructionData, type ClaimFeeInstructionDataArgs, type ClaimFeeOperator, type ClaimFeeOperatorArgs, type ClaimReward2AsyncInput, type ClaimReward2Input, type ClaimReward2Instruction, type ClaimReward2InstructionData, type ClaimReward2InstructionDataArgs, type ClaimRewardAsyncInput, type ClaimRewardInput, type ClaimRewardInstruction, type ClaimRewardInstructionData, type ClaimRewardInstructionDataArgs, type CloseBinArrayInput, type CloseBinArrayInstruction, type CloseBinArrayInstructionData, type CloseBinArrayInstructionDataArgs, type CloseClaimFeeOperatorAccountInput, type CloseClaimFeeOperatorAccountInstruction, type CloseClaimFeeOperatorAccountInstructionData, type CloseClaimFeeOperatorAccountInstructionDataArgs, type CloseLimitOrderIfEmptyAsyncInput, type CloseLimitOrderIfEmptyInput, type CloseLimitOrderIfEmptyInstruction, type CloseLimitOrderIfEmptyInstructionData, type CloseLimitOrderIfEmptyInstructionDataArgs, type CloseOperatorAccountInput, type CloseOperatorAccountInstruction, type CloseOperatorAccountInstructionData, type CloseOperatorAccountInstructionDataArgs, type ClosePosition2AsyncInput, type ClosePosition2Input, type ClosePosition2Instruction, type ClosePosition2InstructionData, type ClosePosition2InstructionDataArgs, type ClosePositionAsyncInput, type ClosePositionIfEmptyAsyncInput, type ClosePositionIfEmptyInput, type ClosePositionIfEmptyInstruction, type ClosePositionIfEmptyInstructionData, type ClosePositionIfEmptyInstructionDataArgs, type ClosePositionInput, type ClosePositionInstruction, type ClosePositionInstructionData, type ClosePositionInstructionDataArgs, type ClosePresetParameter2Input, type ClosePresetParameter2Instruction, type ClosePresetParameter2InstructionData, type ClosePresetParameter2InstructionDataArgs, type ClosePresetParameterInput, type ClosePresetParameterInstruction, type ClosePresetParameterInstructionData, type ClosePresetParameterInstructionDataArgs, type CloseTokenBadgeInput, type CloseTokenBadgeInstruction, type CloseTokenBadgeInstructionData, type CloseTokenBadgeInstructionDataArgs, type CompressedBinDepositAmount, type CompressedBinDepositAmountArgs, type CreateOperatorAccountAsyncInput, type CreateOperatorAccountInput, type CreateOperatorAccountInstruction, type CreateOperatorAccountInstructionData, type CreateOperatorAccountInstructionDataArgs, type CustomizableParams, type CustomizableParamsArgs, DECREASE_POSITION_LENGTH_DISCRIMINATOR, DUMMY_ZC_ACCOUNT_DISCRIMINATOR, type DecreasePositionLengthAsyncInput, type DecreasePositionLengthInput, type DecreasePositionLengthInstruction, type DecreasePositionLengthInstructionData, type DecreasePositionLengthInstructionDataArgs, type DummyZcAccount, type DummyZcAccountArgs, FOR_IDL_TYPE_GENERATION_DO_NOT_CALL_DISCRIMINATOR, FUND_REWARD_DISCRIMINATOR, type FeeInfo, type FeeInfoArgs, type ForIdlTypeGenerationDoNotCallInput, type ForIdlTypeGenerationDoNotCallInstruction, type ForIdlTypeGenerationDoNotCallInstructionData, type ForIdlTypeGenerationDoNotCallInstructionDataArgs, type FundRewardAsyncInput, type FundRewardInput, type FundRewardInstruction, type FundRewardInstructionData, type FundRewardInstructionDataArgs, GO_TO_A_BIN_DISCRIMINATOR, type GoToABinAsyncInput, type GoToABinInput, type GoToABinInstruction, type GoToABinInstructionData, type GoToABinInstructionDataArgs, INCREASE_ORACLE_LENGTH_DISCRIMINATOR, INCREASE_POSITION_LENGTH2_DISCRIMINATOR, INCREASE_POSITION_LENGTH_DISCRIMINATOR, INITIALIZE_BIN_ARRAY_BITMAP_EXTENSION_DISCRIMINATOR, INITIALIZE_BIN_ARRAY_DISCRIMINATOR, INITIALIZE_CUSTOMIZABLE_PERMISSIONLESS_LB_PAIR2_DISCRIMINATOR, INITIALIZE_CUSTOMIZABLE_PERMISSIONLESS_LB_PAIR_DISCRIMINATOR, INITIALIZE_LB_PAIR2_DISCRIMINATOR, INITIALIZE_LB_PAIR_DISCRIMINATOR, INITIALIZE_PERMISSION_LB_PAIR_DISCRIMINATOR, INITIALIZE_POSITION2_DISCRIMINATOR, INITIALIZE_POSITION_BY_OPERATOR_DISCRIMINATOR, INITIALIZE_POSITION_DISCRIMINATOR, INITIALIZE_POSITION_PDA_DISCRIMINATOR, INITIALIZE_PRESET_PARAMETER_DISCRIMINATOR, INITIALIZE_REWARD_DISCRIMINATOR, INITIALIZE_TOKEN_BADGE_DISCRIMINATOR, type IncreaseOracleLengthAsyncInput, type IncreaseOracleLengthInput, type IncreaseOracleLengthInstruction, type IncreaseOracleLengthInstructionData, type IncreaseOracleLengthInstructionDataArgs, type IncreasePositionLength2AsyncInput, type IncreasePositionLength2Input, type IncreasePositionLength2Instruction, type IncreasePositionLength2InstructionData, type IncreasePositionLength2InstructionDataArgs, type IncreasePositionLengthAsyncInput, type IncreasePositionLengthInput, type IncreasePositionLengthInstruction, type IncreasePositionLengthInstructionData, type IncreasePositionLengthInstructionDataArgs, type InitializeBinArrayAsyncInput, type InitializeBinArrayBitmapExtensionAsyncInput, type InitializeBinArrayBitmapExtensionInput, type InitializeBinArrayBitmapExtensionInstruction, type InitializeBinArrayBitmapExtensionInstructionData, type InitializeBinArrayBitmapExtensionInstructionDataArgs, type InitializeBinArrayInput, type InitializeBinArrayInstruction, type InitializeBinArrayInstructionData, type InitializeBinArrayInstructionDataArgs, type InitializeCustomizablePermissionlessLbPair2AsyncInput, type InitializeCustomizablePermissionlessLbPair2Input, type InitializeCustomizablePermissionlessLbPair2Instruction, type InitializeCustomizablePermissionlessLbPair2InstructionData, type InitializeCustomizablePermissionlessLbPair2InstructionDataArgs, type InitializeCustomizablePermissionlessLbPairAsyncInput, type InitializeCustomizablePermissionlessLbPairInput, type InitializeCustomizablePermissionlessLbPairInstruction, type InitializeCustomizablePermissionlessLbPairInstructionData, type InitializeCustomizablePermissionlessLbPairInstructionDataArgs, type InitializeLbPair2AsyncInput, type InitializeLbPair2Input, type InitializeLbPair2Instruction, type InitializeLbPair2InstructionData, type InitializeLbPair2InstructionDataArgs, type InitializeLbPairAsyncInput, type InitializeLbPairInput, type InitializeLbPairInstruction, type InitializeLbPairInstructionData, type InitializeLbPairInstructionDataArgs, type InitializePermissionLbPairAsyncInput, type InitializePermissionLbPairInput, type InitializePermissionLbPairInstruction, type InitializePermissionLbPairInstructionData, type InitializePermissionLbPairInstructionDataArgs, type InitializePosition2AsyncInput, type InitializePosition2Input, type InitializePosition2Instruction, type InitializePosition2InstructionData, type InitializePosition2InstructionDataArgs, type InitializePositionAsyncInput, type InitializePositionByOperatorAsyncInput, type InitializePositionByOperatorInput, type InitializePositionByOperatorInstruction, type InitializePositionByOperatorInstructionData, type InitializePositionByOperatorInstructionDataArgs, type InitializePositionInput, type InitializePositionInstruction, type InitializePositionInstructionData, type InitializePositionInstructionDataArgs, type InitializePositionPdaAsyncInput, type InitializePositionPdaInput, type InitializePositionPdaInstruction, type InitializePositionPdaInstructionData, type InitializePositionPdaInstructionDataArgs, type InitializePresetParameterInput, type InitializePresetParameterInstruction, type InitializePresetParameterInstructionData, type InitializePresetParameterInstructionDataArgs, type InitializeRewardAsyncInput, type InitializeRewardInput, type InitializeRewardInstruction, type InitializeRewardInstructionData, type InitializeRewardInstructionDataArgs, type InitializeTokenBadgeAsyncInput, type InitializeTokenBadgeInput, type InitializeTokenBadgeInstruction, type InitializeTokenBadgeInstructionData, type InitializeTokenBadgeInstructionDataArgs, LB_CLMM_ERROR__ALREADY_PASS_ACTIVATION_POINT, LB_CLMM_ERROR__ALREADY_PASS_PRE_ACTIVATION_SWAP_POINT, LB_CLMM_ERROR__AMOUNT_X_IS_NEGATIVE, LB_CLMM_ERROR__AMOUNT_Y_IS_NEGATIVE, LB_CLMM_ERROR__BIN_ARRAY_NOT_FOUND, LB_CLMM_ERROR__BIN_ID_OUT_OF_BOUND, LB_CLMM_ERROR__BIN_RANGE_IS_NOT_EMPTY, LB_CLMM_ERROR__BITMAP_EXTENSION_ACCOUNT_IS_NOT_PROVIDED, LB_CLMM_ERROR__CANCEL_NON_EMPTY_LIMIT_ORDER, LB_CLMM_ERROR__CANNOT_FIND_LIMIT_ORDER_BY_BIN_ID, LB_CLMM_ERROR__CANNOT_FIND_NON_ZERO_LIQUIDITY_BIN_ARRAY_ID, LB_CLMM_ERROR__COMPOSITION_FACTOR_FLAWED, LB_CLMM_ERROR__CPI_DISABLED, LB_CLMM_ERROR__DUPLICATED_REMAINING_ACCOUNT_TYPES, LB_CLMM_ERROR__EXCEEDED_AMOUNT_SLIPPAGE_TOLERANCE, LB_CLMM_ERROR__EXCEEDED_BIN_SLIPPAGE_TOLERANCE, LB_CLMM_ERROR__EXCEEDED_MAX_ORACLE_LENGTH, LB_CLMM_ERROR__EXCEED_MAX_SWAPPED_AMOUNT, LB_CLMM_ERROR__EXCEED_MAX_WHITELIST, LB_CLMM_ERROR__EXCESSIVE_FEE_UPDATE, LB_CLMM_ERROR__IDENTICAL_FEE_OWNER, LB_CLMM_ERROR__IDENTICAL_FUNDER, LB_CLMM_ERROR__IDENTICAL_REWARD_DURATION, LB_CLMM_ERROR__INCORRECT_A_T_A, LB_CLMM_ERROR__INSUFFICIENT_IN_AMOUNT, LB_CLMM_ERROR__INSUFFICIENT_OUT_AMOUNT, LB_CLMM_ERROR__INSUFFICIENT_REMAINING_ACCOUNTS, LB_CLMM_ERROR__INSUFFICIENT_SAMPLE, LB_CLMM_ERROR__INVALID_ACCOUNT_FOR_SINGLE_DEPOSIT, LB_CLMM_ERROR__INVALID_ACTIVATION_DURATION, LB_CLMM_ERROR__INVALID_ACTIVATION_TYPE, LB_CLMM_ERROR__INVALID_ADMIN, LB_CLMM_ERROR__INVALID_BASE_FEE, LB_CLMM_ERROR__INVALID_BASE_FEE_MANTISSA, LB_CLMM_ERROR__INVALID_BIN_ARRAY, LB_CLMM_ERROR__INVALID_BIN_ID, LB_CLMM_ERROR__INVALID_BIN_STEP, LB_CLMM_ERROR__INVALID_BPS, LB_CLMM_ERROR__INVALID_CANCEL_LIMIT_ORDER_PARAMETERS, LB_CLMM_ERROR__INVALID_COLLECT_FEE_MODE, LB_CLMM_ERROR__INVALID_FEE_OWNER, LB_CLMM_ERROR__INVALID_FEE_PARAMETER, LB_CLMM_ERROR__INVALID_FEE_WITHDRAW_AMOUNT, LB_CLMM_ERROR__INVALID_FUNCTION_TYPE, LB_CLMM_ERROR__INVALID_INDEX, LB_CLMM_ERROR__INVALID_INPUT, LB_CLMM_ERROR__INVALID_LIMIT_ORDER_OWNER, LB_CLMM_ERROR__INVALID_LOOKUP_TIMESTAMP, LB_CLMM_ERROR__INVALID_MINIMUM_LIQUIDITY, LB_CLMM_ERROR__INVALID_PERMISSION, LB_CLMM_ERROR__INVALID_PLACE_LIMIT_ORDER_PARAMETERS, LB_CLMM_ERROR__INVALID_POOL_ADDRESS, LB_CLMM_ERROR__INVALID_POOL_CREATOR, LB_CLMM_ERROR__INVALID_POOL_TYPE, LB_CLMM_ERROR__INVALID_POSITION, LB_CLMM_ERROR__INVALID_POSITION_OWNER, LB_CLMM_ERROR__INVALID_POSITION_WIDTH, LB_CLMM_ERROR__INVALID_PRE_ACTIVATION_DURATION, LB_CLMM_ERROR__INVALID_QUOTE_TOKEN, LB_CLMM_ERROR__INVALID_REBALANCE_PARAMETERS, LB_CLMM_ERROR__INVALID_REMAINING_ACCOUNT_SLICE, LB_CLMM_ERROR__INVALID_RESIZE_LENGTH, LB_CLMM_ERROR__INVALID_REWARD_ACCOUNTS, LB_CLMM_ERROR__INVALID_REWARD_DURATION, LB_CLMM_ERROR__INVALID_REWARD_INDEX, LB_CLMM_ERROR__INVALID_REWARD_VAULT, LB_CLMM_ERROR__INVALID_SIDE, LB_CLMM_ERROR__INVALID_START_BIN_INDEX, LB_CLMM_ERROR__INVALID_STATUS, LB_CLMM_ERROR__INVALID_STRATEGY_PARAMETERS, LB_CLMM_ERROR__INVALID_TOKEN_BADGE_TYPE, LB_CLMM_ERROR__INVALID_TOKEN_MINT, LB_CLMM_ERROR__INVALID_TRANSFER_HOOK_AUTHORITY, LB_CLMM_ERROR__INVALID_WITHDRAW_PROTOCOL_FEE_ZAP_ACCOUNTS, LB_CLMM_ERROR__INVALID_ZAP_ACCOUNTS, LB_CLMM_ERROR__INVALID_ZAP_OUT_PARAMETERS, LB_CLMM_ERROR__LIQUIDITY_LOCKED, LB_CLMM_ERROR__MATH_OVERFLOW, LB_CLMM_ERROR__MINT_RESTRICTED_FROM_ZAP, LB_CLMM_ERROR__MISSING_ORACLE, LB_CLMM_ERROR__MISSING_REMAINING_ACCOUNT_FOR_TRANSFER_HOOK, LB_CLMM_ERROR__MISSING_TOKEN_AMOUNT_AS_TOKEN_LAUNCH_PROOF, LB_CLMM_ERROR__MISSING_ZAP_OUT_INSTRUCTION, LB_CLMM_ERROR__MUST_WITHDRAWN_INELIGIBLE_REWARD, LB_CLMM_ERROR__NON_CONTINUOUS_BIN_ARRAYS, LB_CLMM_ERROR__NON_EMPTY_POSITION, LB_CLMM_ERROR__NON_PRESET_BIN_STEP, LB_CLMM_ERROR__NOT_EXACT_AMOUNT_OUT, LB_CLMM_ERROR__NOT_SUPPORT_AT_THE_MOMENT, LB_CLMM_ERROR__NOT_SUPPORT_MINT, LB_CLMM_ERROR__NO_TRANSFER_HOOK_PROGRAM, LB_CLMM_ERROR__OPERATORS_ARE_THE_SAME, LB_CLMM_ERROR__PAIR_INSUFFICIENT_LIQUIDITY, LB_CLMM_ERROR__POOL_DISABLED, LB_CLMM_ERROR__REALLOC_EXCEED_MAX_LENGTH_PER_INSTRUCTION, LB_CLMM_ERROR__REWARD_CAMPAIGN_IN_PROGRESS, LB_CLMM_ERROR__REWARD_INITIALIZED, LB_CLMM_ERROR__REWARD_NOT_ENDED, LB_CLMM_ERROR__REWARD_UNINITIALIZED, LB_CLMM_ERROR__TYPE_CAST_FAILED, LB_CLMM_ERROR__UNAUTHORIZED_ACCESS, LB_CLMM_ERROR__UNAUTHORIZED_ADDRESS, LB_CLMM_ERROR__UNDETERMINED_ERROR, LB_CLMM_ERROR__UNMATCH_TOKEN_MINT, LB_CLMM_ERROR__UNSUPPORTED_MINT_EXTENSION, LB_CLMM_ERROR__UNSUPPORTED_TOKEN_MINT, LB_CLMM_ERROR__UNSUPPORT_NATIVE_MINT_TOKEN2022, LB_CLMM_ERROR__WITHDRAW_TO_WRONG_TOKEN_ACCOUNT, LB_CLMM_ERROR__WRONG_RENT_RECEIVER, LB_CLMM_ERROR__ZERO_FUNDED_AMOUNT, LB_CLMM_ERROR__ZERO_LIQUIDITY, LB_CLMM_PROGRAM_ADDRESS, LB_PAIR_DISCRIMINATOR, LIMIT_ORDER_DISCRIMINATOR, LbClmmAccount, type LbClmmError, LbClmmInstruction, type LbPair, type LbPairArgs, type LimitOrder, type LimitOrderArgs, type LimitOrderBinData, type LimitOrderBinDataArgs, type LiquidityParameter, type LiquidityParameterArgs, type LiquidityParameterByStrategy, type LiquidityParameterByStrategyArgs, type LiquidityParameterByWeight, type LiquidityParameterByWeightArgs, MAX_BIN_ID, MAX_BIN_PER_ARRAY, MIN_BIN_ID, ONE_Q64, OPERATOR_DISCRIMINATOR, ORACLE_DISCRIMINATOR, type Operator, type OperatorArgs, type OperatorSeeds, type Oracle, type OracleArgs, type OracleSeeds, PLACE_LIMIT_ORDER_DISCRIMINATOR, POSITION_V2_DISCRIMINATOR, PRESET_PARAMETER2_DISCRIMINATOR, PRESET_PARAMETER2_SEED, PRESET_PARAMETER_DISCRIMINATOR, PairStatus, type PairStatusArgs, PairType, type PairTypeArgs, type ParsedAddLiquidity2Instruction, type ParsedAddLiquidityByStrategy2Instruction, type ParsedAddLiquidityByStrategyInstruction, type ParsedAddLiquidityByStrategyOneSideInstruction, type ParsedAddLiquidityByWeight2Instruction, type ParsedAddLiquidityByWeightInstruction, type ParsedAddLiquidityInstruction, type ParsedAddLiquidityOneSideInstruction, type ParsedAddLiquidityOneSidePrecise2Instruction, type ParsedAddLiquidityOneSidePreciseInstruction, type ParsedCancelLimitOrderInstruction, type ParsedClaimFee2Instruction, type ParsedClaimFeeInstruction, type ParsedClaimReward2Instruction, type ParsedClaimRewardInstruction, type ParsedCloseBinArrayInstruction, type ParsedCloseClaimFeeOperatorAccountInstruction, type ParsedCloseLimitOrderIfEmptyInstruction, type ParsedCloseOperatorAccountInstruction, type ParsedClosePosition2Instruction, type ParsedClosePositionIfEmptyInstruction, type ParsedClosePositionInstruction, type ParsedClosePresetParameter2Instruction, type ParsedClosePresetParameterInstruction, type ParsedCloseTokenBadgeInstruction, type ParsedCreateOperatorAccountInstruction, type ParsedDecreasePositionLengthInstruction, type ParsedForIdlTypeGenerationDoNotCallInstruction, type ParsedFundRewardInstruction, type ParsedGoToABinInstruction, type ParsedIncreaseOracleLengthInstruction, type ParsedIncreasePositionLength2Instruction, type ParsedIncreasePositionLengthInstruction, type ParsedInitializeBinArrayBitmapExtensionInstruction, type ParsedInitializeBinArrayInstruction, type ParsedInitializeCustomizablePermissionlessLbPair2Instruction, type ParsedInitializeCustomizablePermissionlessLbPairInstruction, type ParsedInitializeLbPair2Instruction, type ParsedInitializeLbPairInstruction, type ParsedInitializePermissionLbPairInstruction, type ParsedInitializePosition2Instruction, type ParsedInitializePositionByOperatorInstruction, type ParsedInitializePositionInstruction, type ParsedInitializePositionPdaInstruction, type ParsedInitializePresetParameterInstruction, type ParsedInitializeRewardInstruction, type ParsedInitializeTokenBadgeInstruction, type ParsedLbClmmInstruction, type ParsedPlaceLimitOrderInstruction, type ParsedRebalanceLiquidityInstruction, type ParsedRemoveAllLiquidityInstruction, type ParsedRemoveLiquidity2Instruction, type ParsedRemoveLiquidityByRange2Instruction, type ParsedRemoveLiquidityByRangeInstruction, type ParsedRemoveLiquidityInstruction, type ParsedSetActivationPointInstruction, type ParsedSetPairStatusInstruction, type ParsedSetPairStatusPermissionlessInstruction, type ParsedSetPermissionlessOperationBitsInstruction, type ParsedSetPreActivationDurationInstruction, type ParsedSetPreActivationSwapAddressInstruction, type ParsedSwap2Instruction, type ParsedSwapExactOut2Instruction, type ParsedSwapExactOutInstruction, type ParsedSwapInstruction, type ParsedSwapWithPriceImpact2Instruction, type ParsedSwapWithPriceImpactInstruction, type ParsedUpdateBaseFeeParametersInstruction, type ParsedUpdateDynamicFeeParametersInstruction, type ParsedUpdateFeesAndReward2Instruction, type ParsedUpdateFeesAndRewardsInstruction, type ParsedUpdatePositionOperatorInstruction, type ParsedUpdateRewardDurationInstruction, type ParsedUpdateRewardFunderInstruction, type ParsedWithdrawIneligibleRewardInstruction, type ParsedWithdrawProtocolFeeInstruction, type ParsedZapProtocolFeeInstruction, type PlaceLimitOrderAsyncInput, type PlaceLimitOrderInput, type PlaceLimitOrderInstruction, type PlaceLimitOrderInstructionData, type PlaceLimitOrderInstructionDataArgs, type PlaceLimitOrderParams, type PlaceLimitOrderParamsArgs, type PositionBinData, type PositionBinDataArgs, type PositionSeeds, type PositionV2, type PositionV2Args, type PresetParameter, type PresetParameter2, type PresetParameter2Args, type PresetParameterArgs, type ProtocolFee, type ProtocolFeeArgs, REBALANCE_LIQUIDITY_DISCRIMINATOR, REMOVE_ALL_LIQUIDITY_DISCRIMINATOR, REMOVE_LIQUIDITY2_DISCRIMINATOR, REMOVE_LIQUIDITY_BY_RANGE2_DISCRIMINATOR, REMOVE_LIQUIDITY_BY_RANGE_DISCRIMINATOR, REMOVE_LIQUIDITY_DISCRIMINATOR, type RebalanceLiquidityAsyncInput, type RebalanceLiquidityInput, type RebalanceLiquidityInstruction, type RebalanceLiquidityInstructionData, type RebalanceLiquidityInstructionDataArgs, type RelativeBin, type RelativeBinArgs, type RemainingAccountsInfo, type RemainingAccountsInfoArgs, type RemainingAccountsSlice, type RemainingAccountsSliceArgs, type RemoveAllLiquidityAsyncInput, type RemoveAllLiquidityInput, type RemoveAllLiquidityInstruction, type RemoveAllLiquidityInstructionData, type RemoveAllLiquidityInstructionDataArgs, type RemoveLiquidity2AsyncInput, type RemoveLiquidity2Input, type RemoveLiquidity2Instruction, type RemoveLiquidity2InstructionData, type RemoveLiquidity2InstructionDataArgs, type RemoveLiquidityAsyncInput, type RemoveLiquidityByRange2AsyncInput, type RemoveLiquidityByRange2Input, type RemoveLiquidityByRange2Instruction, type RemoveLiquidityByRange2InstructionData, type RemoveLiquidityByRange2InstructionDataArgs, type RemoveLiquidityByRangeAsyncInput, type RemoveLiquidityByRangeInput, type RemoveLiquidityByRangeInstruction, type RemoveLiquidityByRangeInstructionData, type RemoveLiquidityByRangeInstructionDataArgs, type RemoveLiquidityInput, type RemoveLiquidityInstruction, type RemoveLiquidityInstructionData, type RemoveLiquidityInstructionDataArgs, type RemoveLiquidityParams, type RemoveLiquidityParamsArgs, type ReserveXSeeds, type ReserveYSeeds, ResizeSide, type ResizeSideArgs, type RewardInfo, type RewardInfoArgs, type RewardVaultSeeds, Rounding, type RoundingArgs, SCALE_OFFSET, SET_ACTIVATION_POINT_DISCRIMINATOR, SET_PAIR_STATUS_DISCRIMINATOR, SET_PAIR_STATUS_PERMISSIONLESS_DISCRIMINATOR, SET_PERMISSIONLESS_OPERATION_BITS_DISCRIMINATOR, SET_PRE_ACTIVATION_DURATION_DISCRIMINATOR, SET_PRE_ACTIVATION_SWAP_ADDRESS_DISCRIMINATOR, SWAP2_DISCRIMINATOR, SWAP_DISCRIMINATOR, SWAP_EXACT_OUT2_DISCRIMINATOR, SWAP_EXACT_OUT_DISCRIMINATOR, SWAP_WITH_PRICE_IMPACT2_DISCRIMINATOR, SWAP_WITH_PRICE_IMPACT_DISCRIMINATOR, type SetActivationPointInput, type SetActivationPointInstruction, type SetActivationPointInstructionData, type SetActivationPointInstructionDataArgs, type SetPairStatusInput, type SetPairStatusInstruction, type SetPairStatusInstructionData, type SetPairStatusInstructionDataArgs, type SetPairStatusPermissionlessInput, type SetPairStatusPermissionlessInstruction, type SetPairStatusPermissionlessInstructionData, type SetPairStatusPermissionlessInstructionDataArgs, type SetPermissionlessOperationBitsAsyncInput, type SetPermissionlessOperationBitsInput, type SetPermissionlessOperationBitsInstruction, type SetPermissionlessOperationBitsInstructionData, type SetPermissionlessOperationBitsInstructionDataArgs, type SetPreActivationDurationInput, type SetPreActivationDurationInstruction, type SetPreActivationDurationInstructionData, type SetPreActivationDurationInstructionDataArgs, type SetPreActivationSwapAddressInput, type SetPreActivationSwapAddressInstruction, type SetPreActivationSwapAddressInstructionData, type SetPreActivationSwapAddressInstructionDataArgs, type StaticParameters, type StaticParametersArgs, type StrategyParameters, type StrategyParametersArgs, StrategyType, type StrategyTypeArgs, type Swap2AsyncInput, type Swap2Input, type Swap2Instruction, type Swap2InstructionData, type Swap2InstructionDataArgs, type SwapAsyncInput, type SwapExactOut2AsyncInput, type SwapExactOut2Input, type SwapExactOut2Instruction, type SwapExactOut2InstructionData, type SwapExactOut2InstructionDataArgs, type SwapExactOutAsyncInput, type SwapExactOutInput, type SwapExactOutInstruction, type SwapExactOutInstructionData, type SwapExactOutInstructionDataArgs, type SwapInput, type SwapInstruction, type SwapInstructionData, type SwapInstructionDataArgs, type SwapWithPriceImpact2AsyncInput, type SwapWithPriceImpact2Input, type SwapWithPriceImpact2Instruction, type SwapWithPriceImpact2InstructionData, type SwapWithPriceImpact2InstructionDataArgs, type SwapWithPriceImpactAsyncInput, type SwapWithPriceImpactInput, type SwapWithPriceImpactInstruction, type SwapWithPriceImpactInstructionData, type SwapWithPriceImpactInstructionDataArgs, TOKEN_BADGE_DISCRIMINATOR, type TokenBadge, type TokenBadgeArgs, type TokenBadgeSeeds, TokenProgramFlags, type TokenProgramFlagsArgs, UPDATE_BASE_FEE_PARAMETERS_DISCRIMINATOR, UPDATE_DYNAMIC_FEE_PARAMETERS_DISCRIMINATOR, UPDATE_FEES_AND_REWARD2_DISCRIMINATOR, UPDATE_FEES_AND_REWARDS_DISCRIMINATOR, UPDATE_POSITION_OPERATOR_DISCRIMINATOR, UPDATE_REWARD_DURATION_DISCRIMINATOR, UPDATE_REWARD_FUNDER_DISCRIMINATOR, type UpdateBaseFeeParametersAsyncInput, type UpdateBaseFeeParametersInput, type UpdateBaseFeeParametersInstruction, type UpdateBaseFeeParametersInstructionData, type UpdateBaseFeeParametersInstructionDataArgs, type UpdateDynamicFeeParametersAsyncInput, type UpdateDynamicFeeParametersInput, type UpdateDynamicFeeParametersInstruction, type UpdateDynamicFeeParametersInstructionData, type UpdateDynamicFeeParametersInstructionDataArgs, type UpdateFeesAndReward2Input, type UpdateFeesAndReward2Instruction, type UpdateFeesAndReward2InstructionData, type UpdateFeesAndReward2InstructionDataArgs, type UpdateFeesAndRewardsInput, type UpdateFeesAndRewardsInstruction, type UpdateFeesAndRewardsInstructionData, type UpdateFeesAndRewardsInstructionDataArgs, type UpdatePositionOperatorAsyncInput, type UpdatePositionOperatorInput, type UpdatePositionOperatorInstruction, type UpdatePositionOperatorInstructionData, type UpdatePositionOperatorInstructionDataArgs, type UpdateRewardDurationAsyncInput, type UpdateRewardDurationInput, type UpdateRewardDurationInstruction, type UpdateRewardDurationInstructionData, type UpdateRewardDurationInstructionDataArgs, type UpdateRewardFunderAsyncInput, type UpdateRewardFunderInput, type UpdateRewardFunderInstruction, type UpdateRewardFunderInstructionData, type UpdateRewardFunderInstructionDataArgs, type UserRewardInfo, type UserRewardInfoArgs, type VariableParameters, type VariableParametersArgs, WITHDRAW_INELIGIBLE_REWARD_DISCRIMINATOR, WITHDRAW_PROTOCOL_FEE_DISCRIMINATOR, type WithdrawIneligibleRewardAsyncInput, type WithdrawIneligibleRewardInput, type WithdrawIneligibleRewardInstruction, type WithdrawIneligibleRewardInstructionData, type WithdrawIneligibleRewardInstructionDataArgs, type WithdrawProtocolFeeInput, type WithdrawProtocolFeeInstruction, type WithdrawProtocolFeeInstructionData, type WithdrawProtocolFeeInstructionDataArgs, ZAP_PROTOCOL_FEE_DISCRIMINATOR, type ZapProtocolFeeInput, type ZapProtocolFeeInstruction, type ZapProtocolFeeInstructionData, type ZapProtocolFeeInstructionDataArgs, accountsType, binArrayIndexToBinIdRange, binIdToBinArrayIndex, binIdToPrice, decodeBinArray, decodeBinArrayBitmapExtension, decodeClaimFeeOperator, decodeDummyZcAccount, decodeLbPair, decodeLimitOrder, decodeOperator, decodeOracle, decodePositionV2, decodePresetParameter, decodePresetParameter2, decodeTokenBadge, fetchAllBinArray, fetchAllBinArrayBitmapExtension, fetchAllClaimFeeOperator, fetchAllDummyZcAccount, fetchAllLbPair, fetchAllLimitOrder, fetchAllMaybeBinArray, fetchAllMaybeBinArrayBitmapExtension, fetchAllMaybeClaimFeeOperator, fetchAllMaybeDummyZcAccount, fetchAllMaybeLbPair, fetchAllMaybeLimitOrder, fetchAllMaybeOperator, fetchAllMaybeOracle, fetchAllMaybePositionV2, fetchAllMaybePresetParameter, fetchAllMaybePresetParameter2, fetchAllMaybeTokenBadge, fetchAllOperator, fetchAllOracle, fetchAllPositionV2, fetchAllPresetParameter, fetchAllPresetParameter2, fetchAllTokenBadge, fetchBinArray, fetchBinArrayBitmapExtension, fetchClaimFeeOperator, fetchDummyZcAccount, fetchLbPair, fetchLimitOrder, fetchMaybeBinArray, fetchMaybeBinArrayBitmapExtension, fetchMaybeClaimFeeOperator, fetchMaybeDummyZcAccount, fetchMaybeLbPair, fetchMaybeLimitOrder, fetchMaybeOperator, fetchMaybeOracle, fetchMaybePositionV2, fetchMaybePresetParameter, fetchMaybePresetParameter2, fetchMaybeTokenBadge, fetchOperator, fetchOracle, fetchPositionV2, fetchPresetParameter, fetchPresetParameter2, fetchTokenBadge, findBinArrayBitmapExtensionPda, findBinArrayPda, findEventAuthorityPda, findLbPairPda, findOperatorPda, findOraclePda, findPositionPda, findPresetParameterPda, findReserveXPda, findReserveYPda, findRewardVaultPda, findTokenBadgePda, getAccountsTypeCodec, getAccountsTypeDecoder, getAccountsTypeEncoder, getActivationTypeCodec, getActivationTypeDecoder, getActivationTypeEncoder, getAddLiquidity2DiscriminatorBytes, getAddLiquidity2Instruction, getAddLiquidity2InstructionAsync, getAddLiquidity2InstructionDataCodec, getAddLiquidity2InstructionDataDecoder, getAddLiquidity2InstructionDataEncoder, getAddLiquidityByStrategy2DiscriminatorBytes, getAddLiquidityByStrategy2Instruction, getAddLiquidityByStrategy2InstructionAsync, getAddLiquidityByStrategy2InstructionDataCodec, getAddLiquidityByStrategy2InstructionDataDecoder, getAddLiquidityByStrategy2InstructionDataEncoder, getAddLiquidityByStrategyDiscriminatorBytes, getAddLiquidityByStrategyInstruction, getAddLiquidityByStrategyInstructionAsync, getAddLiquidityByStrategyInstructionDataCodec, getAddLiquidityByStrategyInstructionDataDecoder, getAddLiquidityByStrategyInstructionDataEncoder, getAddLiquidityByStrategyOneSideDiscriminatorBytes, getAddLiquidityByStrategyOneSideInstruction, getAddLiquidityByStrategyOneSideInstructionAsync, getAddLiquidityByStrategyOneSideInstructionDataCodec, getAddLiquidityByStrategyOneSideInstructionDataDecoder, getAddLiquidityByStrategyOneSideInstructionDataEncoder, getAddLiquidityByWeight2DiscriminatorBytes, getAddLiquidityByWeight2Instruction, getAddLiquidityByWeight2InstructionAsync, getAddLiquidityByWeight2InstructionDataCodec, getAddLiquidityByWeight2InstructionDataDecoder, getAddLiquidityByWeight2InstructionDataEncoder, getAddLiquidityByWeightDiscriminatorBytes, getAddLiquidityByWeightInstruction, getAddLiquidityByWeightInstructionAsync, getAddLiquidityByWeightInstructionDataCodec, getAddLiquidityByWeightInstructionDataDecoder, getAddLiquidityByWeightInstructionDataEncoder, getAddLiquidityDiscriminatorBytes, getAddLiquidityInstruction, getAddLiquidityInstructionAsync, getAddLiquidityInstructionDataCodec, getAddLiquidityInstructionDataDecoder, getAddLiquidityInstructionDataEncoder, getAddLiquidityOneSideDiscriminatorBytes, getAddLiquidityOneSideInstruction, getAddLiquidityOneSideInstructionAsync, getAddLiquidityOneSideInstructionDataCodec, getAddLiquidityOneSideInstructionDataDecoder, getAddLiquidityOneSideInstructionDataEncoder, getAddLiquidityOneSidePrecise2DiscriminatorBytes, getAddLiquidityOneSidePrecise2Instruction, getAddLiquidityOneSidePrecise2InstructionAsync, getAddLiquidityOneSidePrecise2InstructionDataCodec, getAddLiquidityOneSidePrecise2InstructionDataDecoder, getAddLiquidityOneSidePrecise2InstructionDataEncoder, getAddLiquidityOneSidePreciseDiscriminatorBytes, getAddLiquidityOneSidePreciseInstruction, getAddLiquidityOneSidePreciseInstructionAsync, getAddLiquidityOneSidePreciseInstructionDataCodec, getAddLiquidityOneSidePreciseInstructionDataDecoder, getAddLiquidityOneSidePreciseInstructionDataEncoder, getAddLiquidityParamsCodec, getAddLiquidityParamsDecoder, getAddLiquidityParamsEncoder, getBinArrayBitmapExtensionCodec, getBinArrayBitmapExtensionDecoder, getBinArrayBitmapExtensionDiscriminatorBytes, getBinArrayBitmapExtensionEncoder, getBinArrayBitmapExtensionSize, getBinArrayCodec, getBinArrayDecoder, getBinArrayDiscriminatorBytes, getBinArrayEncoder, getBinArraySize, getBinCodec, getBinDecoder, getBinEncoder, getBinLimitOrderAmountCodec, getBinLimitOrderAmountDecoder, getBinLimitOrderAmountEncoder, getBinLiquidityDistributionByWeightCodec, getBinLiquidityDistributionByWeightDecoder, getBinLiquidityDistributionByWeightEncoder, getBinLiquidityDistributionCodec, getBinLiquidityDistributionDecoder, getBinLiquidityDistributionEncoder, getBinLiquidityReductionCodec, getBinLiquidityReductionDecoder, getBinLiquidityReductionEncoder, getCancelLimitOrderDiscriminatorBytes, getCancelLimitOrderInstruction, getCancelLimitOrderInstructionAsync, getCancelLimitOrderInstructionDataCodec, getCancelLimitOrderInstructionDataDecoder, getCancelLimitOrderInstructionDataEncoder, getClaimFee2DiscriminatorBytes, getClaimFee2Instruction, getClaimFee2InstructionAsync, getClaimFee2InstructionDataCodec, getClaimFee2InstructionDataDecoder, getClaimFee2InstructionDataEncoder, getClaimFeeDiscriminatorBytes, getClaimFeeInstruction, getClaimFeeInstructionAsync, getClaimFeeInstructionDataCodec, getClaimFeeInstructionDataDecoder, getClaimFeeInstructionDataEncoder, getClaimFeeOperatorCodec, getClaimFeeOperatorDecoder, getClaimFeeOperatorDiscriminatorBytes, getClaimFeeOperatorEncoder, getClaimFeeOperatorSize, getClaimReward2DiscriminatorBytes, getClaimReward2Instruction, getClaimReward2InstructionAsync, getClaimReward2InstructionDataCodec, getClaimReward2InstructionDataDecoder, getClaimReward2InstructionDataEncoder, getClaimRewardDiscriminatorBytes, getClaimRewardInstruction, getClaimRewardInstructionAsync, getClaimRewardInstructionDataCodec, getClaimRewardInstructionDataDecoder, getClaimRewardInstructionDataEncoder, getCloseBinArrayDiscriminatorBytes, getCloseBinArrayInstruction, getCloseBinArrayInstructionDataCodec, getCloseBinArrayInstructionDataDecoder, getCloseBinArrayInstructionDataEncoder, getCloseClaimFeeOperatorAccountDiscriminatorBytes, getCloseClaimFeeOperatorAccountInstruction, getCloseClaimFeeOperatorAccountInstructionDataCodec, getCloseClaimFeeOperatorAccountInstructionDataDecoder, getCloseClaimFeeOperatorAccountInstructionDataEncoder, getCloseLimitOrderIfEmptyDiscriminatorBytes, getCloseLimitOrderIfEmptyInstruction, getCloseLimitOrderIfEmptyInstructionAsync, getCloseLimitOrderIfEmptyInstructionDataCodec, getCloseLimitOrderIfEmptyInstructionDataDecoder, getCloseLimitOrderIfEmptyInstructionDataEncoder, getCloseOperatorAccountDiscriminatorBytes, getCloseOperatorAccountInstruction, getCloseOperatorAccountInstructionDataCodec, getCloseOperatorAccountInstructionDataDecoder, getCloseOperatorAccountInstructionDataEncoder, getClosePosition2DiscriminatorBytes, getClosePosition2Instruction, getClosePosition2InstructionAsync, getClosePosition2InstructionDataCodec, getClosePosition2InstructionDataDecoder, getClosePosition2InstructionDataEncoder, getClosePositionDiscriminatorBytes, getClosePositionIfEmptyDiscriminatorBytes, getClosePositionIfEmptyInstruction, getClosePositionIfEmptyInstructionAsync, getClosePositionIfEmptyInstructionDataCodec, getClosePositionIfEmptyInstructionDataDecoder, getClosePositionIfEmptyInstructionDataEncoder, getClosePositionInstruction, getClosePositionInstructionAsync, getClosePositionInstructionDataCodec, getClosePositionInstructionDataDecoder, getClosePositionInstructionDataEncoder, getClosePresetParameter2DiscriminatorBytes, getClosePresetParameter2Instruction, getClosePresetParameter2InstructionDataCodec, getClosePresetParameter2InstructionDataDecoder, getClosePresetParameter2InstructionDataEncoder, getClosePresetParameterDiscriminatorBytes, getClosePresetParameterInstruction, getClosePresetParameterInstructionDataCodec, getClosePresetParameterInstructionDataDecoder, getClosePresetParameterInstructionDataEncoder, getCloseTokenBadgeDiscriminatorBytes, getCloseTokenBadgeInstruction, getCloseTokenBadgeInstructionDataCodec, getCloseTokenBadgeInstructionDataDecoder, getCloseTokenBadgeInstructionDataEncoder, getCompressedBinDepositAmountCodec, getCompressedBinDepositAmountDecoder, getCompressedBinDepositAmountEncoder, getCreateOperatorAccountDiscriminatorBytes, getCreateOperatorAccountInstruction, getCreateOperatorAccountInstructionAsync, getCreateOperatorAccountInstructionDataCodec, getCreateOperatorAccountInstructionDataDecoder, getCreateOperatorAccountInstructionDataEncoder, getCustomizableParamsCodec, getCustomizableParamsDecoder, getCustomizableParamsEncoder, getDecreasePositionLengthDiscriminatorBytes, getDecreasePositionLengthInstruction, getDecreasePositionLengthInstructionAsync, getDecreasePositionLengthInstructionDataCodec, getDecreasePositionLengthInstructionDataDecoder, getDecreasePositionLengthInstructionDataEncoder, getDummyZcAccountCodec, getDummyZcAccountDecoder, getDummyZcAccountDiscriminatorBytes, getDummyZcAccountEncoder, getDummyZcAccountSize, getFeeInfoCodec, getFeeInfoDecoder, getFeeInfoEncoder, getForIdlTypeGenerationDoNotCallDiscriminatorBytes, getForIdlTypeGenerationDoNotCallInstruction, getForIdlTypeGenerationDoNotCallInstructionDataCodec, getForIdlTypeGenerationDoNotCallInstructionDataDecoder, getForIdlTypeGenerationDoNotCallInstructionDataEncoder, getFundRewardDiscriminatorBytes, getFundRewardInstruction, getFundRewardInstructionAsync, getFundRewardInstructionDataCodec, getFundRewardInstructionDataDecoder, getFundRewardInstructionDataEncoder, getGoToABinDiscriminatorBytes, getGoToABinInstruction, getGoToABinInstructionAsync, getGoToABinInstructionDataCodec, getGoToABinInstructionDataDecoder, getGoToABinInstructionDataEncoder, getIdFromPrice, getIncreaseOracleLengthDiscriminatorBytes, getIncreaseOracleLengthInstruction, getIncreaseOracleLengthInstructionAsync, getIncreaseOracleLengthInstructionDataCodec, getIncreaseOracleLengthInstructionDataDecoder, getIncreaseOracleLengthInstructionDataEncoder, getIncreasePositionLength2DiscriminatorBytes, getIncreasePositionLength2Instruction, getIncreasePositionLength2InstructionAsync, getIncreasePositionLength2InstructionDataCodec, getIncreasePositionLength2InstructionDataDecoder, getIncreasePositionLength2InstructionDataEncoder, getIncreasePositionLengthDiscriminatorBytes, getIncreasePositionLengthInstruction, getIncreasePositionLengthInstructionAsync, getIncreasePositionLengthInstructionDataCodec, getIncreasePositionLengthInstructionDataDecoder, getIncreasePositionLengthInstructionDataEncoder, getInitializeBinArrayBitmapExtensionDiscriminatorBytes, getInitializeBinArrayBitmapExtensionInstruction, getInitializeBinArrayBitmapExtensionInstructionAsync, getInitializeBinArrayBitmapExtensionInstructionDataCodec, getInitializeBinArrayBitmapExtensionInstructionDataDecoder, getInitializeBinArrayBitmapExtensionInstructionDataEncoder, getInitializeBinArrayDiscriminatorBytes, getInitializeBinArrayInstruction, getInitializeBinArrayInstructionAsync, getInitializeBinArrayInstructionDataCodec, getInitializeBinArrayInstructionDataDecoder, getInitializeBinArrayInstructionDataEncoder, getInitializeCustomizablePermissionlessLbPair2DiscriminatorBytes, getInitializeCustomizablePermissionlessLbPair2Instruction, getInitializeCustomizablePermissionlessLbPair2InstructionAsync, getInitializeCustomizablePermissionlessLbPair2InstructionDataCodec, getInitializeCustomizablePermissionlessLbPair2InstructionDataDecoder, getInitializeCustomizablePermissionlessLbPair2InstructionDataEncoder, getInitializeCustomizablePermissionlessLbPairDiscriminatorBytes, getInitializeCustomizablePermissionlessLbPairInstruction, getInitializeCustomizablePermissionlessLbPairInstructionAsync, getInitializeCustomizablePermissionlessLbPairInstructionDataCodec, getInitializeCustomizablePermissionlessLbPairInstructionDataDecoder, getInitializeCustomizablePermissionlessLbPairInstructionDataEncoder, getInitializeLbPair2DiscriminatorBytes, getInitializeLbPair2Instruction, getInitializeLbPair2InstructionAsync, getInitializeLbPair2InstructionDataCodec, getInitializeLbPair2InstructionDataDecoder, getInitializeLbPair2InstructionDataEncoder, getInitializeLbPairDiscriminatorBytes, getInitializeLbPairInstruction, getInitializeLbPairInstructionAsync, getInitializeLbPairInstructionDataCodec, getInitializeLbPairInstructionDataDecoder, getInitializeLbPairInstructionDataEncoder, getInitializePermissionLbPairDiscriminatorBytes, getInitializePermissionLbPairInstruction, getInitializePermissionLbPairInstructionAsync, getInitializePermissionLbPairInstructionDataCodec, getInitializePermissionLbPairInstructionDataDecoder, getInitializePermissionLbPairInstructionDataEncoder, getInitializePosition2DiscriminatorBytes, getInitializePosition2Instruction, getInitializePosition2InstructionAsync, getInitializePosition2InstructionDataCodec, getInitializePosition2InstructionDataDecoder, getInitializePosition2InstructionDataEncoder, getInitializePositionByOperatorDiscriminatorBytes, getInitializePositionByOperatorInstruction, getInitializePositionByOperatorInstructionAsync, getInitializePositionByOperatorInstructionDataCodec, getInitializePositionByOperatorInstructionDataDecoder, getInitializePositionByOperatorInstructionDataEncoder, getInitializePositionDiscriminatorBytes, getInitializePositionInstruction, getInitializePositionInstructionAsync, getInitializePositionInstructionDataCodec, getInitializePositionInstructionDataDecoder, getInitializePositionInstructionDataEncoder, getInitializePositionPdaDiscriminatorBytes, getInitializePositionPdaInstruction, getInitializePositionPdaInstructionAsync, getInitializePositionPdaInstructionDataCodec, getInitializePositionPdaInstructionDataDecoder, getInitializePositionPdaInstructionDataEncoder, getInitializePresetParameterDiscriminatorBytes, getInitializePresetParameterInstruction, getInitializePresetParameterInstructionDataCodec, getInitializePresetParameterInstructionDataDecoder, getInitializePresetParameterInstructionDataEncoder, getInitializeRewardDiscriminatorBytes, getInitializeRewardInstruction, getInitializeRewardInstructionAsync, getInitializeRewardInstructionDataCodec, getInitializeRewardInstructionDataDecoder, getInitializeRewardInstructionDataEncoder, getInitializeTokenBadgeDiscriminatorBytes, getInitializeTokenBadgeInstruction, getInitializeTokenBadgeInstructionAsync, getInitializeTokenBadgeInstructionDataCodec, getInitializeTokenBadgeInstructionDataDecoder, getInitializeTokenBadgeInstructionDataEncoder, getLbClmmErrorMessage, getLbPairCodec, getLbPairDecoder, getLbPairDiscriminatorBytes, getLbPairEncoder, getLbPairSize, getLimitOrderBinDataCodec, getLimitOrderBinDataDecoder, getLimitOrderBinDataEncoder, getLimitOrderCodec, getLimitOrderDecoder, getLimitOrderDiscriminatorBytes, getLimitOrderEncoder, getLimitOrderSize, getLiquidityParameterByStrategyCodec, getLiquidityParameterByStrategyDecoder, getLiquidityParameterByStrategyEncoder, getLiquidityParameterByWeightCodec, getLiquidityParameterByWeightDecoder, getLiquidityParameterByWeightEncoder, getLiquidityParameterCodec, getLiquidityParameterDecoder, getLiquidityParameterEncoder, getOperatorCodec, getOperatorDecoder, getOperatorDiscriminatorBytes, getOperatorEncoder, getOperatorSize, getOracleCodec, getOracleDecoder, getOracleDiscriminatorBytes, getOracleEncoder, getOracleSize, getPairStatusCodec, getPairStatusDecoder, getPairStatusEncoder, getPairTypeCodec, getPairTypeDecoder, getPairTypeEncoder, getPlaceLimitOrderDiscriminatorBytes, getPlaceLimitOrderInstruction, getPlaceLimitOrderInstructionAsync, getPlaceLimitOrderInstructionDataCodec, getPlaceLimitOrderInstructionDataDecoder, getPlaceLimitOrderInstructionDataEncoder, getPlaceLimitOrderParamsCodec, getPlaceLimitOrderParamsDecoder, getPlaceLimitOrderParamsEncoder, getPositionBinDataCodec, getPositionBinDataDecoder, getPositionBinDataEncoder, getPositionV2Codec, getPositionV2Decoder, getPositionV2DiscriminatorBytes, getPositionV2Encoder, getPositionV2Size, getPresetParameter2Codec, getPresetParameter2Decoder, getPresetParameter2DiscriminatorBytes, getPresetParameter2Encoder, getPresetParameter2Size, getPresetParameterCodec, getPresetParameterDecoder, getPresetParameterDiscriminatorBytes, getPresetParameterEncoder, getPresetParameterSize, getPriceFromId, getProtocolFeeCodec, getProtocolFeeDecoder, getProtocolFeeEncoder, getRebalanceLiquidityDiscriminatorBytes, getRebalanceLiquidityInstruction, getRebalanceLiquidityInstructionAsync, getRebalanceLiquidityInstructionDataCodec, getRebalanceLiquidityInstructionDataDecoder, getRebalanceLiquidityInstructionDataEncoder, getRelativeBinCodec, getRelativeBinDecoder, getRelativeBinEncoder, getRemainingAccountsInfoCodec, getRemainingAccountsInfoDecoder, getRemainingAccountsInfoEncoder, getRemainingAccountsSliceCodec, getRemainingAccountsSliceDecoder, getRemainingAccountsSliceEncoder, getRemoveAllLiquidityDiscriminatorBytes, getRemoveAllLiquidityInstruction, getRemoveAllLiquidityInstructionAsync, getRemoveAllLiquidityInstructionDataCodec, getRemoveAllLiquidityInstructionDataDecoder, getRemoveAllLiquidityInstructionDataEncoder, getRemoveLiquidity2DiscriminatorBytes, getRemoveLiquidity2Instruction, getRemoveLiquidity2InstructionAsync, getRemoveLiquidity2InstructionDataCodec, getRemoveLiquidity2InstructionDataDecoder, getRemoveLiquidity2InstructionDataEncoder, getRemoveLiquidityByRange2DiscriminatorBytes, getRemoveLiquidityByRange2Instruction, getRemoveLiquidityByRange2InstructionAsync, getRemoveLiquidityByRange2InstructionDataCodec, getRemoveLiquidityByRange2InstructionDataDecoder, getRemoveLiquidityByRange2InstructionDataEncoder, getRemoveLiquidityByRangeDiscriminatorBytes, getRemoveLiquidityByRangeInstruction, getRemoveLiquidityByRangeInstructionAsync, getRemoveLiquidityByRangeInstructionDataCodec, getRemoveLiquidityByRangeInstructionDataDecoder, getRemoveLiquidityByRangeInstructionDataEncoder, getRemoveLiquidityDiscriminatorBytes, getRemoveLiquidityInstruction, getRemoveLiquidityInstructionAsync, getRemoveLiquidityInstructionDataCodec, getRemoveLiquidityInstructionDataDecoder, getRemoveLiquidityInstructionDataEncoder, getRemoveLiquidityParamsCodec, getRemoveLiquidityParamsDecoder, getRemoveLiquidityParamsEncoder, getResizeSideCodec, getResizeSideDecoder, getResizeSideEncoder, getRewardInfoCodec, getRewardInfoDecoder, getRewardInfoEncoder, getRoundingCodec, getRoundingDecoder, getRoundingEncoder, getSetActivationPointDiscriminatorBytes, getSetActivationPointInstruction, getSetActivationPointInstructionDataCodec, getSetActivationPointInstructionDataDecoder, getSetActivationPointInstructionDataEncoder, getSetPairStatusDiscriminatorBytes, getSetPairStatusInstruction, getSetPairStatusInstructionDataCodec, getSetPairStatusInstructionDataDecoder, getSetPairStatusInstructionDataEncoder, getSetPairStatusPermissionlessDiscriminatorBytes, getSetPairStatusPermissionlessInstruction, getSetPairStatusPermissionlessInstructionDataCodec, getSetPairStatusPermissionlessInstructionDataDecoder, getSetPairStatusPermissionlessInstructionDataEncoder, getSetPermissionlessOperationBitsDiscriminatorBytes, getSetPermissionlessOperationBitsInstruction, getSetPermissionlessOperationBitsInstructionAsync, getSetPermissionlessOperationBitsInstructionDataCodec, getSetPermissionlessOperationBitsInstructionDataDecoder, getSetPermissionlessOperationBitsInstructionDataEncoder, getSetPreActivationDurationDiscriminatorBytes, getSetPreActivationDurationInstruction, getSetPreActivationDurationInstructionDataCodec, getSetPreActivationDurationInstructionDataDecoder, getSetPreActivationDurationInstructionDataEncoder, getSetPreActivationSwapAddressDiscriminatorBytes, getSetPreActivationSwapAddressInstruction, getSetPreActivationSwapAddressInstructionDataCodec, getSetPreActivationSwapAddressInstructionDataDecoder, getSetPreActivationSwapAddressInstructionDataEncoder, getStaticParametersCodec, getStaticParametersDecoder, getStaticParametersEncoder, getStrategyParametersCodec, getStrategyParametersDecoder, getStrategyParametersEncoder, getStrategyTypeCodec, getStrategyTypeDecoder, getStrategyTypeEncoder, getSwap2DiscriminatorBytes, getSwap2Instruction, getSwap2InstructionAsync, getSwap2InstructionDataCodec, getSwap2InstructionDataDecoder, getSwap2InstructionDataEncoder, getSwapDiscriminatorBytes, getSwapExactOut2DiscriminatorBytes, getSwapExactOut2Instruction, getSwapExactOut2InstructionAsync, getSwapExactOut2InstructionDataCodec, getSwapExactOut2InstructionDataDecoder, getSwapExactOut2InstructionDataEncoder, getSwapExactOutDiscriminatorBytes, getSwapExactOutInstruction, getSwapExactOutInstructionAsync, getSwapExactOutInstructionDataCodec, getSwapExactOutInstructionDataDecoder, getSwapExactOutInstructionDataEncoder, getSwapInstruction, getSwapInstructionAsync, getSwapInstructionDataCodec, getSwapInstructionDataDecoder, getSwapInstructionDataEncoder, getSwapWithPriceImpact2DiscriminatorBytes, getSwapWithPriceImpact2Instruction, getSwapWithPriceImpact2InstructionAsync, getSwapWithPriceImpact2InstructionDataCodec, getSwapWithPriceImpact2InstructionDataDecoder, getSwapWithPriceImpact2InstructionDataEncoder, getSwapWithPriceImpactDiscriminatorBytes, getSwapWithPriceImpactInstruction, getSwapWithPriceImpactInstructionAsync, getSwapWithPriceImpactInstructionDataCodec, getSwapWithPriceImpactInstructionDataDecoder, getSwapWithPriceImpactInstructionDataEncoder, getTokenBadgeCodec, getTokenBadgeDecoder, getTokenBadgeDiscriminatorBytes, getTokenBadgeEncoder, getTokenBadgeSize, getTokenProgramFlagsCodec, getTokenProgramFlagsDecoder, getTokenProgramFlagsEncoder, getUpdateBaseFeeParametersDiscriminatorBytes, getUpdateBaseFeeParametersInstruction, getUpdateBaseFeeParametersInstructionAsync, getUpdateBaseFeeParametersInstructionDataCodec, getUpdateBaseFeeParametersInstructionDataDecoder, getUpdateBaseFeeParametersInstructionDataEncoder, getUpdateDynamicFeeParametersDiscriminatorBytes, getUpdateDynamicFeeParametersInstruction, getUpdateDynamicFeeParametersInstructionAsync, getUpdateDynamicFeeParametersInstructionDataCodec, getUpdateDynamicFeeParametersInstructionDataDecoder, getUpdateDynamicFeeParametersInstructionDataEncoder, getUpdateFeesAndReward2DiscriminatorBytes, getUpdateFeesAndReward2Instruction, getUpdateFeesAndReward2InstructionDataCodec, getUpdateFeesAndReward2InstructionDataDecoder, getUpdateFeesAndReward2InstructionDataEncoder, getUpdateFeesAndRewardsDiscriminatorBytes, getUpdateFeesAndRewardsInstruction, getUpdateFeesAndRewardsInstructionDataCodec, getUpdateFeesAndRewardsInstructionDataDecoder, getUpdateFeesAndRewardsInstructionDataEncoder, getUpdatePositionOperatorDiscriminatorBytes, getUpdatePositionOperatorInstruction, getUpdatePositionOperatorInstructionAsync, getUpdatePositionOperatorInstructionDataCodec, getUpdatePositionOperatorInstructionDataDecoder, getUpdatePositionOperatorInstructionDataEncoder, getUpdateRewardDurationDiscriminatorBytes, getUpdateRewardDurationInstruction, getUpdateRewardDurationInstructionAsync, getUpdateRewardDurationInstructionDataCodec, getUpdateRewardDurationInstructionDataDecoder, getUpdateRewardDurationInstructionDataEncoder, getUpdateRewardFunderDiscriminatorBytes, getUpdateRewardFunderInstruction, getUpdateRewardFunderInstructionAsync, getUpdateRewardFunderInstructionDataCodec, getUpdateRewardFunderInstructionDataDecoder, getUpdateRewardFunderInstructionDataEncoder, getUserRewardInfoCodec, getUserRewardInfoDecoder, getUserRewardInfoEncoder, getVariableParametersCodec, getVariableParametersDecoder, getVariableParametersEncoder, getWithdrawIneligibleRewardDiscriminatorBytes, getWithdrawIneligibleRewardInstruction, getWithdrawIneligibleRewardInstructionAsync, getWithdrawIneligibleRewardInstructionDataCodec, getWithdrawIneligibleRewardInstructionDataDecoder, getWithdrawIneligibleRewardInstructionDataEncoder, getWithdrawProtocolFeeDiscriminatorBytes, getWithdrawProtocolFeeInstruction, getWithdrawProtocolFeeInstructionDataCodec, getWithdrawProtocolFeeInstructionDataDecoder, getWithdrawProtocolFeeInstructionDataEncoder, getZapProtocolFeeDiscriminatorBytes, getZapProtocolFeeInstruction, getZapProtocolFeeInstructionDataCodec, getZapProtocolFeeInstructionDataDecoder, getZapProtocolFeeInstructionDataEncoder, humanPriceToQ64, identifyLbClmmAccount, identifyLbClmmInstruction, isAccountsType, isLbClmmError, parseAddLiquidity2Instruction, parseAddLiquidityByStrategy2Instruction, parseAddLiquidityByStrategyInstruction, parseAddLiquidityByStrategyOneSideInstruction, parseAddLiquidityByWeight2Instruction, parseAddLiquidityByWeightInstruction, parseAddLiquidityInstruction, parseAddLiquidityOneSideInstruction, parseAddLiquidityOneSidePrecise2Instruction, parseAddLiquidityOneSidePreciseInstruction, parseCancelLimitOrderInstruction, parseClaimFee2Instruction, parseClaimFeeInstruction, parseClaimReward2Instruction, parseClaimRewardInstruction, parseCloseBinArrayInstruction, parseCloseClaimFeeOperatorAccountInstruction, parseCloseLimitOrderIfEmptyInstruction, parseCloseOperatorAccountInstruction, parseClosePosition2Instruction, parseClosePositionIfEmptyInstruction, parseClosePositionInstruction, parseClosePresetParameter2Instruction, parseClosePresetParameterInstruction, parseCloseTokenBadgeInstruction, parseCreateOperatorAccountInstruction, parseDecreasePositionLengthInstruction, parseForIdlTypeGenerationDoNotCallInstruction, parseFundRewardInstruction, parseGoToABinInstruction, parseIncreaseOracleLengthInstruction, parseIncreasePositionLength2Instruction, parseIncreasePositionLengthInstruction, parseInitializeBinArrayBitmapExtensionInstruction, parseInitializeBinArrayInstruction, parseInitializeCustomizablePermissionlessLbPair2Instruction, parseInitializeCustomizablePermissionlessLbPairInstruction, parseInitializeLbPair2Instruction, parseInitializeLbPairInstruction, parseInitializePermissionLbPairInstruction, parseInitializePosition2Instruction, parseInitializePositionByOperatorInstruction, parseInitializePositionInstruction, parseInitializePositionPdaInstruction, parseInitializePresetParameterInstruction, parseInitializeRewardInstruction, parseInitializeTokenBadgeInstruction, parseLbClmmInstruction, parsePlaceLimitOrderInstruction, parseRebalanceLiquidityInstruction, parseRemoveAllLiquidityInstruction, parseRemoveLiquidity2Instruction, parseRemoveLiquidityByRange2Instruction, parseRemoveLiquidityByRangeInstruction, parseRemoveLiquidityInstruction, parseSetActivationPointInstruction, parseSetPairStatusInstruction, parseSetPairStatusPermissionlessInstruction, parseSetPermissionlessOperationBitsInstruction, parseSetPreActivationDurationInstruction, parseSetPreActivationSwapAddressInstruction, parseSwap2Instruction, parseSwapExactOut2Instruction, parseSwapExactOutInstruction, parseSwapInstruction, parseSwapWithPriceImpact2Instruction, parseSwapWithPriceImpactInstruction, parseUpdateBaseFeeParametersInstruction, parseUpdateDynamicFeeParametersInstruction, parseUpdateFeesAndReward2Instruction, parseUpdateFeesAndRewardsInstruction, parseUpdatePositionOperatorInstruction, parseUpdateRewardDurationInstruction, parseUpdateRewardFunderInstruction, parseWithdrawIneligibleRewardInstruction, parseWithdrawProtocolFeeInstruction, parseZapProtocolFeeInstruction, priceToBinId, q64Pow, q64ToHumanPrice };
8713
+ export { ADD_LIQUIDITY2_DISCRIMINATOR, ADD_LIQUIDITY_BY_STRATEGY2_DISCRIMINATOR, ADD_LIQUIDITY_BY_STRATEGY_DISCRIMINATOR, ADD_LIQUIDITY_BY_STRATEGY_ONE_SIDE_DISCRIMINATOR, ADD_LIQUIDITY_BY_WEIGHT2_DISCRIMINATOR, ADD_LIQUIDITY_BY_WEIGHT_DISCRIMINATOR, ADD_LIQUIDITY_DISCRIMINATOR, ADD_LIQUIDITY_ONE_SIDE_DISCRIMINATOR, ADD_LIQUIDITY_ONE_SIDE_PRECISE2_DISCRIMINATOR, ADD_LIQUIDITY_ONE_SIDE_PRECISE_DISCRIMINATOR, type AccountsType, type AccountsTypeArgs, ActivationType, type ActivationTypeArgs, type AddLiquidity2AsyncInput, type AddLiquidity2Input, type AddLiquidity2Instruction, type AddLiquidity2InstructionData, type AddLiquidity2InstructionDataArgs, type AddLiquidityAsyncInput, type AddLiquidityByStrategy2AsyncInput, type AddLiquidityByStrategy2Input, type AddLiquidityByStrategy2Instruction, type AddLiquidityByStrategy2InstructionData, type AddLiquidityByStrategy2InstructionDataArgs, type AddLiquidityByStrategyAsyncInput, type AddLiquidityByStrategyInput, type AddLiquidityByStrategyInstruction, type AddLiquidityByStrategyInstructionData, type AddLiquidityByStrategyInstructionDataArgs, type AddLiquidityByStrategyOneSideAsyncInput, type AddLiquidityByStrategyOneSideInput, type AddLiquidityByStrategyOneSideInstruction, type AddLiquidityByStrategyOneSideInstructionData, type AddLiquidityByStrategyOneSideInstructionDataArgs, type AddLiquidityByWeight2AsyncInput, type AddLiquidityByWeight2Input, type AddLiquidityByWeight2Instruction, type AddLiquidityByWeight2InstructionData, type AddLiquidityByWeight2InstructionDataArgs, type AddLiquidityByWeightAsyncInput, type AddLiquidityByWeightInput, type AddLiquidityByWeightInstruction, type AddLiquidityByWeightInstructionData, type AddLiquidityByWeightInstructionDataArgs, type AddLiquidityInput, type AddLiquidityInstruction, type AddLiquidityInstructionData, type AddLiquidityInstructionDataArgs, type AddLiquidityOneSideAsyncInput, type AddLiquidityOneSideInput, type AddLiquidityOneSideInstruction, type AddLiquidityOneSideInstructionData, type AddLiquidityOneSideInstructionDataArgs, type AddLiquidityOneSidePrecise2AsyncInput, type AddLiquidityOneSidePrecise2Input, type AddLiquidityOneSidePrecise2Instruction, type AddLiquidityOneSidePrecise2InstructionData, type AddLiquidityOneSidePrecise2InstructionDataArgs, type AddLiquidityOneSidePreciseAsyncInput, type AddLiquidityOneSidePreciseInput, type AddLiquidityOneSidePreciseInstruction, type AddLiquidityOneSidePreciseInstructionData, type AddLiquidityOneSidePreciseInstructionDataArgs, type AddLiquidityParams, type AddLiquidityParamsArgs, BASIS_POINT_MAX, BIN_ARRAY_BITMAP_EXTENSION_DISCRIMINATOR, BIN_ARRAY_DISCRIMINATOR, type Bin, type BinArgs, type BinArray, type BinArrayArgs, type BinArrayBitmapExtension, type BinArrayBitmapExtensionArgs, type BinArrayBitmapExtensionSeeds, type BinArraySeeds, type BinLimitOrderAmount, type BinLimitOrderAmountArgs, type BinLiquidityDistribution, type BinLiquidityDistributionArgs, type BinLiquidityDistributionByWeight, type BinLiquidityDistributionByWeightArgs, type BinLiquidityReduction, type BinLiquidityReductionArgs, CANCEL_LIMIT_ORDER_DISCRIMINATOR, CLAIM_FEE2_DISCRIMINATOR, CLAIM_FEE_DISCRIMINATOR, CLAIM_FEE_OPERATOR_DISCRIMINATOR, CLAIM_REWARD2_DISCRIMINATOR, CLAIM_REWARD_DISCRIMINATOR, CLOSE_BIN_ARRAY_DISCRIMINATOR, CLOSE_CLAIM_FEE_OPERATOR_ACCOUNT_DISCRIMINATOR, CLOSE_LIMIT_ORDER_IF_EMPTY_DISCRIMINATOR, CLOSE_OPERATOR_ACCOUNT_DISCRIMINATOR, CLOSE_POSITION2_DISCRIMINATOR, CLOSE_POSITION_DISCRIMINATOR, CLOSE_POSITION_IF_EMPTY_DISCRIMINATOR, CLOSE_PRESET_PARAMETER2_DISCRIMINATOR, CLOSE_PRESET_PARAMETER_DISCRIMINATOR, CLOSE_TOKEN_BADGE_DISCRIMINATOR, CREATE_OPERATOR_ACCOUNT_DISCRIMINATOR, type CancelLimitOrderAsyncInput, type CancelLimitOrderInput, type CancelLimitOrderInstruction, type CancelLimitOrderInstructionData, type CancelLimitOrderInstructionDataArgs, type ClaimFee2AsyncInput, type ClaimFee2Input, type ClaimFee2Instruction, type ClaimFee2InstructionData, type ClaimFee2InstructionDataArgs, type ClaimFeeAsyncInput, type ClaimFeeInput, type ClaimFeeInstruction, type ClaimFeeInstructionData, type ClaimFeeInstructionDataArgs, type ClaimFeeOperator, type ClaimFeeOperatorArgs, type ClaimReward2AsyncInput, type ClaimReward2Input, type ClaimReward2Instruction, type ClaimReward2InstructionData, type ClaimReward2InstructionDataArgs, type ClaimRewardAsyncInput, type ClaimRewardInput, type ClaimRewardInstruction, type ClaimRewardInstructionData, type ClaimRewardInstructionDataArgs, type CloseBinArrayInput, type CloseBinArrayInstruction, type CloseBinArrayInstructionData, type CloseBinArrayInstructionDataArgs, type CloseClaimFeeOperatorAccountInput, type CloseClaimFeeOperatorAccountInstruction, type CloseClaimFeeOperatorAccountInstructionData, type CloseClaimFeeOperatorAccountInstructionDataArgs, type CloseLimitOrderIfEmptyAsyncInput, type CloseLimitOrderIfEmptyInput, type CloseLimitOrderIfEmptyInstruction, type CloseLimitOrderIfEmptyInstructionData, type CloseLimitOrderIfEmptyInstructionDataArgs, type CloseOperatorAccountInput, type CloseOperatorAccountInstruction, type CloseOperatorAccountInstructionData, type CloseOperatorAccountInstructionDataArgs, type ClosePosition2AsyncInput, type ClosePosition2Input, type ClosePosition2Instruction, type ClosePosition2InstructionData, type ClosePosition2InstructionDataArgs, type ClosePositionAsyncInput, type ClosePositionIfEmptyAsyncInput, type ClosePositionIfEmptyInput, type ClosePositionIfEmptyInstruction, type ClosePositionIfEmptyInstructionData, type ClosePositionIfEmptyInstructionDataArgs, type ClosePositionInput, type ClosePositionInstruction, type ClosePositionInstructionData, type ClosePositionInstructionDataArgs, type ClosePresetParameter2Input, type ClosePresetParameter2Instruction, type ClosePresetParameter2InstructionData, type ClosePresetParameter2InstructionDataArgs, type ClosePresetParameterInput, type ClosePresetParameterInstruction, type ClosePresetParameterInstructionData, type ClosePresetParameterInstructionDataArgs, type CloseTokenBadgeInput, type CloseTokenBadgeInstruction, type CloseTokenBadgeInstructionData, type CloseTokenBadgeInstructionDataArgs, type CompressedBinDepositAmount, type CompressedBinDepositAmountArgs, type CreateOperatorAccountAsyncInput, type CreateOperatorAccountInput, type CreateOperatorAccountInstruction, type CreateOperatorAccountInstructionData, type CreateOperatorAccountInstructionDataArgs, type CustomizableParams, type CustomizableParamsArgs, DECREASE_POSITION_LENGTH_DISCRIMINATOR, DUMMY_ZC_ACCOUNT_DISCRIMINATOR, type DecreasePositionLengthAsyncInput, type DecreasePositionLengthInput, type DecreasePositionLengthInstruction, type DecreasePositionLengthInstructionData, type DecreasePositionLengthInstructionDataArgs, type DummyZcAccount, type DummyZcAccountArgs, FOR_IDL_TYPE_GENERATION_DO_NOT_CALL_DISCRIMINATOR, FUND_REWARD_DISCRIMINATOR, type FeeInfo, type FeeInfoArgs, type ForIdlTypeGenerationDoNotCallInput, type ForIdlTypeGenerationDoNotCallInstruction, type ForIdlTypeGenerationDoNotCallInstructionData, type ForIdlTypeGenerationDoNotCallInstructionDataArgs, type FundRewardAsyncInput, type FundRewardInput, type FundRewardInstruction, type FundRewardInstructionData, type FundRewardInstructionDataArgs, GO_TO_A_BIN_DISCRIMINATOR, type GoToABinAsyncInput, type GoToABinInput, type GoToABinInstruction, type GoToABinInstructionData, type GoToABinInstructionDataArgs, INCREASE_ORACLE_LENGTH_DISCRIMINATOR, INCREASE_POSITION_LENGTH2_DISCRIMINATOR, INCREASE_POSITION_LENGTH_DISCRIMINATOR, INITIALIZE_BIN_ARRAY_BITMAP_EXTENSION_DISCRIMINATOR, INITIALIZE_BIN_ARRAY_DISCRIMINATOR, INITIALIZE_CUSTOMIZABLE_PERMISSIONLESS_LB_PAIR2_DISCRIMINATOR, INITIALIZE_CUSTOMIZABLE_PERMISSIONLESS_LB_PAIR_DISCRIMINATOR, INITIALIZE_LB_PAIR2_DISCRIMINATOR, INITIALIZE_LB_PAIR_DISCRIMINATOR, INITIALIZE_PERMISSION_LB_PAIR_DISCRIMINATOR, INITIALIZE_POSITION2_DISCRIMINATOR, INITIALIZE_POSITION_BY_OPERATOR_DISCRIMINATOR, INITIALIZE_POSITION_DISCRIMINATOR, INITIALIZE_POSITION_PDA_DISCRIMINATOR, INITIALIZE_PRESET_PARAMETER_DISCRIMINATOR, INITIALIZE_REWARD_DISCRIMINATOR, INITIALIZE_TOKEN_BADGE_DISCRIMINATOR, type IncreaseOracleLengthAsyncInput, type IncreaseOracleLengthInput, type IncreaseOracleLengthInstruction, type IncreaseOracleLengthInstructionData, type IncreaseOracleLengthInstructionDataArgs, type IncreasePositionLength2AsyncInput, type IncreasePositionLength2Input, type IncreasePositionLength2Instruction, type IncreasePositionLength2InstructionData, type IncreasePositionLength2InstructionDataArgs, type IncreasePositionLengthAsyncInput, type IncreasePositionLengthInput, type IncreasePositionLengthInstruction, type IncreasePositionLengthInstructionData, type IncreasePositionLengthInstructionDataArgs, type InitializeBinArrayAsyncInput, type InitializeBinArrayBitmapExtensionAsyncInput, type InitializeBinArrayBitmapExtensionInput, type InitializeBinArrayBitmapExtensionInstruction, type InitializeBinArrayBitmapExtensionInstructionData, type InitializeBinArrayBitmapExtensionInstructionDataArgs, type InitializeBinArrayInput, type InitializeBinArrayInstruction, type InitializeBinArrayInstructionData, type InitializeBinArrayInstructionDataArgs, type InitializeCustomizablePermissionlessLbPair2AsyncInput, type InitializeCustomizablePermissionlessLbPair2Input, type InitializeCustomizablePermissionlessLbPair2Instruction, type InitializeCustomizablePermissionlessLbPair2InstructionData, type InitializeCustomizablePermissionlessLbPair2InstructionDataArgs, type InitializeCustomizablePermissionlessLbPairAsyncInput, type InitializeCustomizablePermissionlessLbPairInput, type InitializeCustomizablePermissionlessLbPairInstruction, type InitializeCustomizablePermissionlessLbPairInstructionData, type InitializeCustomizablePermissionlessLbPairInstructionDataArgs, type InitializeLbPair2AsyncInput, type InitializeLbPair2Input, type InitializeLbPair2Instruction, type InitializeLbPair2InstructionData, type InitializeLbPair2InstructionDataArgs, type InitializeLbPairAsyncInput, type InitializeLbPairInput, type InitializeLbPairInstruction, type InitializeLbPairInstructionData, type InitializeLbPairInstructionDataArgs, type InitializePermissionLbPairAsyncInput, type InitializePermissionLbPairInput, type InitializePermissionLbPairInstruction, type InitializePermissionLbPairInstructionData, type InitializePermissionLbPairInstructionDataArgs, type InitializePosition2AsyncInput, type InitializePosition2Input, type InitializePosition2Instruction, type InitializePosition2InstructionData, type InitializePosition2InstructionDataArgs, type InitializePositionAsyncInput, type InitializePositionByOperatorAsyncInput, type InitializePositionByOperatorInput, type InitializePositionByOperatorInstruction, type InitializePositionByOperatorInstructionData, type InitializePositionByOperatorInstructionDataArgs, type InitializePositionInput, type InitializePositionInstruction, type InitializePositionInstructionData, type InitializePositionInstructionDataArgs, type InitializePositionPdaAsyncInput, type InitializePositionPdaInput, type InitializePositionPdaInstruction, type InitializePositionPdaInstructionData, type InitializePositionPdaInstructionDataArgs, type InitializePresetParameterInput, type InitializePresetParameterInstruction, type InitializePresetParameterInstructionData, type InitializePresetParameterInstructionDataArgs, type InitializeRewardAsyncInput, type InitializeRewardInput, type InitializeRewardInstruction, type InitializeRewardInstructionData, type InitializeRewardInstructionDataArgs, type InitializeTokenBadgeAsyncInput, type InitializeTokenBadgeInput, type InitializeTokenBadgeInstruction, type InitializeTokenBadgeInstructionData, type InitializeTokenBadgeInstructionDataArgs, LB_CLMM_ERROR__ALREADY_PASS_ACTIVATION_POINT, LB_CLMM_ERROR__ALREADY_PASS_PRE_ACTIVATION_SWAP_POINT, LB_CLMM_ERROR__AMOUNT_X_IS_NEGATIVE, LB_CLMM_ERROR__AMOUNT_Y_IS_NEGATIVE, LB_CLMM_ERROR__BIN_ARRAY_NOT_FOUND, LB_CLMM_ERROR__BIN_ID_OUT_OF_BOUND, LB_CLMM_ERROR__BIN_RANGE_IS_NOT_EMPTY, LB_CLMM_ERROR__BITMAP_EXTENSION_ACCOUNT_IS_NOT_PROVIDED, LB_CLMM_ERROR__CANCEL_NON_EMPTY_LIMIT_ORDER, LB_CLMM_ERROR__CANNOT_FIND_LIMIT_ORDER_BY_BIN_ID, LB_CLMM_ERROR__CANNOT_FIND_NON_ZERO_LIQUIDITY_BIN_ARRAY_ID, LB_CLMM_ERROR__COMPOSITION_FACTOR_FLAWED, LB_CLMM_ERROR__CPI_DISABLED, LB_CLMM_ERROR__DUPLICATED_REMAINING_ACCOUNT_TYPES, LB_CLMM_ERROR__EXCEEDED_AMOUNT_SLIPPAGE_TOLERANCE, LB_CLMM_ERROR__EXCEEDED_BIN_SLIPPAGE_TOLERANCE, LB_CLMM_ERROR__EXCEEDED_MAX_ORACLE_LENGTH, LB_CLMM_ERROR__EXCEED_MAX_SWAPPED_AMOUNT, LB_CLMM_ERROR__EXCEED_MAX_WHITELIST, LB_CLMM_ERROR__EXCESSIVE_FEE_UPDATE, LB_CLMM_ERROR__IDENTICAL_FEE_OWNER, LB_CLMM_ERROR__IDENTICAL_FUNDER, LB_CLMM_ERROR__IDENTICAL_REWARD_DURATION, LB_CLMM_ERROR__INCORRECT_A_T_A, LB_CLMM_ERROR__INSUFFICIENT_IN_AMOUNT, LB_CLMM_ERROR__INSUFFICIENT_OUT_AMOUNT, LB_CLMM_ERROR__INSUFFICIENT_REMAINING_ACCOUNTS, LB_CLMM_ERROR__INSUFFICIENT_SAMPLE, LB_CLMM_ERROR__INVALID_ACCOUNT_FOR_SINGLE_DEPOSIT, LB_CLMM_ERROR__INVALID_ACTIVATION_DURATION, LB_CLMM_ERROR__INVALID_ACTIVATION_TYPE, LB_CLMM_ERROR__INVALID_ADMIN, LB_CLMM_ERROR__INVALID_BASE_FEE, LB_CLMM_ERROR__INVALID_BASE_FEE_MANTISSA, LB_CLMM_ERROR__INVALID_BIN_ARRAY, LB_CLMM_ERROR__INVALID_BIN_ID, LB_CLMM_ERROR__INVALID_BIN_STEP, LB_CLMM_ERROR__INVALID_BPS, LB_CLMM_ERROR__INVALID_CANCEL_LIMIT_ORDER_PARAMETERS, LB_CLMM_ERROR__INVALID_COLLECT_FEE_MODE, LB_CLMM_ERROR__INVALID_FEE_OWNER, LB_CLMM_ERROR__INVALID_FEE_PARAMETER, LB_CLMM_ERROR__INVALID_FEE_WITHDRAW_AMOUNT, LB_CLMM_ERROR__INVALID_FUNCTION_TYPE, LB_CLMM_ERROR__INVALID_INDEX, LB_CLMM_ERROR__INVALID_INPUT, LB_CLMM_ERROR__INVALID_LIMIT_ORDER_OWNER, LB_CLMM_ERROR__INVALID_LOOKUP_TIMESTAMP, LB_CLMM_ERROR__INVALID_MINIMUM_LIQUIDITY, LB_CLMM_ERROR__INVALID_PERMISSION, LB_CLMM_ERROR__INVALID_PLACE_LIMIT_ORDER_PARAMETERS, LB_CLMM_ERROR__INVALID_POOL_ADDRESS, LB_CLMM_ERROR__INVALID_POOL_CREATOR, LB_CLMM_ERROR__INVALID_POOL_TYPE, LB_CLMM_ERROR__INVALID_POSITION, LB_CLMM_ERROR__INVALID_POSITION_OWNER, LB_CLMM_ERROR__INVALID_POSITION_WIDTH, LB_CLMM_ERROR__INVALID_PRE_ACTIVATION_DURATION, LB_CLMM_ERROR__INVALID_QUOTE_TOKEN, LB_CLMM_ERROR__INVALID_REBALANCE_PARAMETERS, LB_CLMM_ERROR__INVALID_REMAINING_ACCOUNT_SLICE, LB_CLMM_ERROR__INVALID_RESIZE_LENGTH, LB_CLMM_ERROR__INVALID_REWARD_ACCOUNTS, LB_CLMM_ERROR__INVALID_REWARD_DURATION, LB_CLMM_ERROR__INVALID_REWARD_INDEX, LB_CLMM_ERROR__INVALID_REWARD_VAULT, LB_CLMM_ERROR__INVALID_SIDE, LB_CLMM_ERROR__INVALID_START_BIN_INDEX, LB_CLMM_ERROR__INVALID_STATUS, LB_CLMM_ERROR__INVALID_STRATEGY_PARAMETERS, LB_CLMM_ERROR__INVALID_TOKEN_BADGE_TYPE, LB_CLMM_ERROR__INVALID_TOKEN_MINT, LB_CLMM_ERROR__INVALID_TRANSFER_HOOK_AUTHORITY, LB_CLMM_ERROR__INVALID_WITHDRAW_PROTOCOL_FEE_ZAP_ACCOUNTS, LB_CLMM_ERROR__INVALID_ZAP_ACCOUNTS, LB_CLMM_ERROR__INVALID_ZAP_OUT_PARAMETERS, LB_CLMM_ERROR__LIQUIDITY_LOCKED, LB_CLMM_ERROR__MATH_OVERFLOW, LB_CLMM_ERROR__MINT_RESTRICTED_FROM_ZAP, LB_CLMM_ERROR__MISSING_ORACLE, LB_CLMM_ERROR__MISSING_REMAINING_ACCOUNT_FOR_TRANSFER_HOOK, LB_CLMM_ERROR__MISSING_TOKEN_AMOUNT_AS_TOKEN_LAUNCH_PROOF, LB_CLMM_ERROR__MISSING_ZAP_OUT_INSTRUCTION, LB_CLMM_ERROR__MUST_WITHDRAWN_INELIGIBLE_REWARD, LB_CLMM_ERROR__NON_CONTINUOUS_BIN_ARRAYS, LB_CLMM_ERROR__NON_EMPTY_POSITION, LB_CLMM_ERROR__NON_PRESET_BIN_STEP, LB_CLMM_ERROR__NOT_EXACT_AMOUNT_OUT, LB_CLMM_ERROR__NOT_SUPPORT_AT_THE_MOMENT, LB_CLMM_ERROR__NOT_SUPPORT_MINT, LB_CLMM_ERROR__NO_TRANSFER_HOOK_PROGRAM, LB_CLMM_ERROR__OPERATORS_ARE_THE_SAME, LB_CLMM_ERROR__PAIR_INSUFFICIENT_LIQUIDITY, LB_CLMM_ERROR__POOL_DISABLED, LB_CLMM_ERROR__REALLOC_EXCEED_MAX_LENGTH_PER_INSTRUCTION, LB_CLMM_ERROR__REWARD_CAMPAIGN_IN_PROGRESS, LB_CLMM_ERROR__REWARD_INITIALIZED, LB_CLMM_ERROR__REWARD_NOT_ENDED, LB_CLMM_ERROR__REWARD_UNINITIALIZED, LB_CLMM_ERROR__TYPE_CAST_FAILED, LB_CLMM_ERROR__UNAUTHORIZED_ACCESS, LB_CLMM_ERROR__UNAUTHORIZED_ADDRESS, LB_CLMM_ERROR__UNDETERMINED_ERROR, LB_CLMM_ERROR__UNMATCH_TOKEN_MINT, LB_CLMM_ERROR__UNSUPPORTED_MINT_EXTENSION, LB_CLMM_ERROR__UNSUPPORTED_TOKEN_MINT, LB_CLMM_ERROR__UNSUPPORT_NATIVE_MINT_TOKEN2022, LB_CLMM_ERROR__WITHDRAW_TO_WRONG_TOKEN_ACCOUNT, LB_CLMM_ERROR__WRONG_RENT_RECEIVER, LB_CLMM_ERROR__ZERO_FUNDED_AMOUNT, LB_CLMM_ERROR__ZERO_LIQUIDITY, LB_CLMM_PROGRAM_ADDRESS, LB_PAIR_DISCRIMINATOR, LIMIT_ORDER_DISCRIMINATOR, LbClmmAccount, type LbClmmError, LbClmmInstruction, type LbPair, type LbPairArgs, type LimitOrder, type LimitOrderArgs, type LimitOrderBinData, type LimitOrderBinDataArgs, type LiquidityParameter, type LiquidityParameterArgs, type LiquidityParameterByStrategy, type LiquidityParameterByStrategyArgs, type LiquidityParameterByWeight, type LiquidityParameterByWeightArgs, MAX_BIN_ID, MAX_BIN_PER_ARRAY, MAX_BIN_STEP, MAX_RESIZE_LENGTH, MIN_BIN_ID, NUM_REWARDS, ONE_Q64, OPERATOR_DISCRIMINATOR, ORACLE_DISCRIMINATOR, type Operator, type OperatorArgs, type OperatorSeeds, type Oracle, type OracleArgs, type OracleSeeds, PLACE_LIMIT_ORDER_DISCRIMINATOR, POSITION_MAX_LENGTH, POSITION_V2_DISCRIMINATOR, PRESET_PARAMETER2_DISCRIMINATOR, PRESET_PARAMETER2_SEED, PRESET_PARAMETER_DISCRIMINATOR, PairStatus, type PairStatusArgs, PairType, type PairTypeArgs, type ParsedAddLiquidity2Instruction, type ParsedAddLiquidityByStrategy2Instruction, type ParsedAddLiquidityByStrategyInstruction, type ParsedAddLiquidityByStrategyOneSideInstruction, type ParsedAddLiquidityByWeight2Instruction, type ParsedAddLiquidityByWeightInstruction, type ParsedAddLiquidityInstruction, type ParsedAddLiquidityOneSideInstruction, type ParsedAddLiquidityOneSidePrecise2Instruction, type ParsedAddLiquidityOneSidePreciseInstruction, type ParsedCancelLimitOrderInstruction, type ParsedClaimFee2Instruction, type ParsedClaimFeeInstruction, type ParsedClaimReward2Instruction, type ParsedClaimRewardInstruction, type ParsedCloseBinArrayInstruction, type ParsedCloseClaimFeeOperatorAccountInstruction, type ParsedCloseLimitOrderIfEmptyInstruction, type ParsedCloseOperatorAccountInstruction, type ParsedClosePosition2Instruction, type ParsedClosePositionIfEmptyInstruction, type ParsedClosePositionInstruction, type ParsedClosePresetParameter2Instruction, type ParsedClosePresetParameterInstruction, type ParsedCloseTokenBadgeInstruction, type ParsedCreateOperatorAccountInstruction, type ParsedDecreasePositionLengthInstruction, type ParsedForIdlTypeGenerationDoNotCallInstruction, type ParsedFundRewardInstruction, type ParsedGoToABinInstruction, type ParsedIncreaseOracleLengthInstruction, type ParsedIncreasePositionLength2Instruction, type ParsedIncreasePositionLengthInstruction, type ParsedInitializeBinArrayBitmapExtensionInstruction, type ParsedInitializeBinArrayInstruction, type ParsedInitializeCustomizablePermissionlessLbPair2Instruction, type ParsedInitializeCustomizablePermissionlessLbPairInstruction, type ParsedInitializeLbPair2Instruction, type ParsedInitializeLbPairInstruction, type ParsedInitializePermissionLbPairInstruction, type ParsedInitializePosition2Instruction, type ParsedInitializePositionByOperatorInstruction, type ParsedInitializePositionInstruction, type ParsedInitializePositionPdaInstruction, type ParsedInitializePresetParameterInstruction, type ParsedInitializeRewardInstruction, type ParsedInitializeTokenBadgeInstruction, type ParsedLbClmmInstruction, type ParsedPlaceLimitOrderInstruction, type ParsedRebalanceLiquidityInstruction, type ParsedRemoveAllLiquidityInstruction, type ParsedRemoveLiquidity2Instruction, type ParsedRemoveLiquidityByRange2Instruction, type ParsedRemoveLiquidityByRangeInstruction, type ParsedRemoveLiquidityInstruction, type ParsedSetActivationPointInstruction, type ParsedSetPairStatusInstruction, type ParsedSetPairStatusPermissionlessInstruction, type ParsedSetPermissionlessOperationBitsInstruction, type ParsedSetPreActivationDurationInstruction, type ParsedSetPreActivationSwapAddressInstruction, type ParsedSwap2Instruction, type ParsedSwapExactOut2Instruction, type ParsedSwapExactOutInstruction, type ParsedSwapInstruction, type ParsedSwapWithPriceImpact2Instruction, type ParsedSwapWithPriceImpactInstruction, type ParsedUpdateBaseFeeParametersInstruction, type ParsedUpdateDynamicFeeParametersInstruction, type ParsedUpdateFeesAndReward2Instruction, type ParsedUpdateFeesAndRewardsInstruction, type ParsedUpdatePositionOperatorInstruction, type ParsedUpdateRewardDurationInstruction, type ParsedUpdateRewardFunderInstruction, type ParsedWithdrawIneligibleRewardInstruction, type ParsedWithdrawProtocolFeeInstruction, type ParsedZapProtocolFeeInstruction, type PlaceLimitOrderAsyncInput, type PlaceLimitOrderInput, type PlaceLimitOrderInstruction, type PlaceLimitOrderInstructionData, type PlaceLimitOrderInstructionDataArgs, type PlaceLimitOrderParams, type PlaceLimitOrderParamsArgs, type PositionBinData, type PositionBinDataArgs, type PositionSeeds, type PositionV2, type PositionV2Args, type PresetParameter, type PresetParameter2, type PresetParameter2Args, type PresetParameterArgs, type ProtocolFee, type ProtocolFeeArgs, REBALANCE_LIQUIDITY_DISCRIMINATOR, REMOVE_ALL_LIQUIDITY_DISCRIMINATOR, REMOVE_LIQUIDITY2_DISCRIMINATOR, REMOVE_LIQUIDITY_BY_RANGE2_DISCRIMINATOR, REMOVE_LIQUIDITY_BY_RANGE_DISCRIMINATOR, REMOVE_LIQUIDITY_DISCRIMINATOR, type RebalanceLiquidityAsyncInput, type RebalanceLiquidityInput, type RebalanceLiquidityInstruction, type RebalanceLiquidityInstructionData, type RebalanceLiquidityInstructionDataArgs, type RelativeBin, type RelativeBinArgs, type RemainingAccountsInfo, type RemainingAccountsInfoArgs, type RemainingAccountsSlice, type RemainingAccountsSliceArgs, type RemoveAllLiquidityAsyncInput, type RemoveAllLiquidityInput, type RemoveAllLiquidityInstruction, type RemoveAllLiquidityInstructionData, type RemoveAllLiquidityInstructionDataArgs, type RemoveLiquidity2AsyncInput, type RemoveLiquidity2Input, type RemoveLiquidity2Instruction, type RemoveLiquidity2InstructionData, type RemoveLiquidity2InstructionDataArgs, type RemoveLiquidityAsyncInput, type RemoveLiquidityByRange2AsyncInput, type RemoveLiquidityByRange2Input, type RemoveLiquidityByRange2Instruction, type RemoveLiquidityByRange2InstructionData, type RemoveLiquidityByRange2InstructionDataArgs, type RemoveLiquidityByRangeAsyncInput, type RemoveLiquidityByRangeInput, type RemoveLiquidityByRangeInstruction, type RemoveLiquidityByRangeInstructionData, type RemoveLiquidityByRangeInstructionDataArgs, type RemoveLiquidityInput, type RemoveLiquidityInstruction, type RemoveLiquidityInstructionData, type RemoveLiquidityInstructionDataArgs, type RemoveLiquidityParams, type RemoveLiquidityParamsArgs, type ReserveXSeeds, type ReserveYSeeds, ResizeSide, type ResizeSideArgs, type RewardInfo, type RewardInfoArgs, type RewardVaultSeeds, Rounding, type RoundingArgs, SET_ACTIVATION_POINT_DISCRIMINATOR, SET_PAIR_STATUS_DISCRIMINATOR, SET_PAIR_STATUS_PERMISSIONLESS_DISCRIMINATOR, SET_PERMISSIONLESS_OPERATION_BITS_DISCRIMINATOR, SET_PRE_ACTIVATION_DURATION_DISCRIMINATOR, SET_PRE_ACTIVATION_SWAP_ADDRESS_DISCRIMINATOR, SWAP2_DISCRIMINATOR, SWAP_DISCRIMINATOR, SWAP_EXACT_OUT2_DISCRIMINATOR, SWAP_EXACT_OUT_DISCRIMINATOR, SWAP_WITH_PRICE_IMPACT2_DISCRIMINATOR, SWAP_WITH_PRICE_IMPACT_DISCRIMINATOR, type SetActivationPointInput, type SetActivationPointInstruction, type SetActivationPointInstructionData, type SetActivationPointInstructionDataArgs, type SetPairStatusInput, type SetPairStatusInstruction, type SetPairStatusInstructionData, type SetPairStatusInstructionDataArgs, type SetPairStatusPermissionlessInput, type SetPairStatusPermissionlessInstruction, type SetPairStatusPermissionlessInstructionData, type SetPairStatusPermissionlessInstructionDataArgs, type SetPermissionlessOperationBitsAsyncInput, type SetPermissionlessOperationBitsInput, type SetPermissionlessOperationBitsInstruction, type SetPermissionlessOperationBitsInstructionData, type SetPermissionlessOperationBitsInstructionDataArgs, type SetPreActivationDurationInput, type SetPreActivationDurationInstruction, type SetPreActivationDurationInstructionData, type SetPreActivationDurationInstructionDataArgs, type SetPreActivationSwapAddressInput, type SetPreActivationSwapAddressInstruction, type SetPreActivationSwapAddressInstructionData, type SetPreActivationSwapAddressInstructionDataArgs, type StaticParameters, type StaticParametersArgs, type StrategyParameters, type StrategyParametersArgs, StrategyType, type StrategyTypeArgs, type Swap2AsyncInput, type Swap2Input, type Swap2Instruction, type Swap2InstructionData, type Swap2InstructionDataArgs, type SwapAsyncInput, type SwapExactOut2AsyncInput, type SwapExactOut2Input, type SwapExactOut2Instruction, type SwapExactOut2InstructionData, type SwapExactOut2InstructionDataArgs, type SwapExactOutAsyncInput, type SwapExactOutInput, type SwapExactOutInstruction, type SwapExactOutInstructionData, type SwapExactOutInstructionDataArgs, type SwapInput, type SwapInstruction, type SwapInstructionData, type SwapInstructionDataArgs, type SwapWithPriceImpact2AsyncInput, type SwapWithPriceImpact2Input, type SwapWithPriceImpact2Instruction, type SwapWithPriceImpact2InstructionData, type SwapWithPriceImpact2InstructionDataArgs, type SwapWithPriceImpactAsyncInput, type SwapWithPriceImpactInput, type SwapWithPriceImpactInstruction, type SwapWithPriceImpactInstructionData, type SwapWithPriceImpactInstructionDataArgs, TOKEN_BADGE_DISCRIMINATOR, type TokenBadge, type TokenBadgeArgs, type TokenBadgeSeeds, TokenProgramFlags, type TokenProgramFlagsArgs, UPDATE_BASE_FEE_PARAMETERS_DISCRIMINATOR, UPDATE_DYNAMIC_FEE_PARAMETERS_DISCRIMINATOR, UPDATE_FEES_AND_REWARD2_DISCRIMINATOR, UPDATE_FEES_AND_REWARDS_DISCRIMINATOR, UPDATE_POSITION_OPERATOR_DISCRIMINATOR, UPDATE_REWARD_DURATION_DISCRIMINATOR, UPDATE_REWARD_FUNDER_DISCRIMINATOR, type UpdateBaseFeeParametersAsyncInput, type UpdateBaseFeeParametersInput, type UpdateBaseFeeParametersInstruction, type UpdateBaseFeeParametersInstructionData, type UpdateBaseFeeParametersInstructionDataArgs, type UpdateDynamicFeeParametersAsyncInput, type UpdateDynamicFeeParametersInput, type UpdateDynamicFeeParametersInstruction, type UpdateDynamicFeeParametersInstructionData, type UpdateDynamicFeeParametersInstructionDataArgs, type UpdateFeesAndReward2Input, type UpdateFeesAndReward2Instruction, type UpdateFeesAndReward2InstructionData, type UpdateFeesAndReward2InstructionDataArgs, type UpdateFeesAndRewardsInput, type UpdateFeesAndRewardsInstruction, type UpdateFeesAndRewardsInstructionData, type UpdateFeesAndRewardsInstructionDataArgs, type UpdatePositionOperatorAsyncInput, type UpdatePositionOperatorInput, type UpdatePositionOperatorInstruction, type UpdatePositionOperatorInstructionData, type UpdatePositionOperatorInstructionDataArgs, type UpdateRewardDurationAsyncInput, type UpdateRewardDurationInput, type UpdateRewardDurationInstruction, type UpdateRewardDurationInstructionData, type UpdateRewardDurationInstructionDataArgs, type UpdateRewardFunderAsyncInput, type UpdateRewardFunderInput, type UpdateRewardFunderInstruction, type UpdateRewardFunderInstructionData, type UpdateRewardFunderInstructionDataArgs, type UserRewardInfo, type UserRewardInfoArgs, type VariableParameters, type VariableParametersArgs, WITHDRAW_INELIGIBLE_REWARD_DISCRIMINATOR, WITHDRAW_PROTOCOL_FEE_DISCRIMINATOR, type WithdrawIneligibleRewardAsyncInput, type WithdrawIneligibleRewardInput, type WithdrawIneligibleRewardInstruction, type WithdrawIneligibleRewardInstructionData, type WithdrawIneligibleRewardInstructionDataArgs, type WithdrawProtocolFeeInput, type WithdrawProtocolFeeInstruction, type WithdrawProtocolFeeInstructionData, type WithdrawProtocolFeeInstructionDataArgs, ZAP_PROTOCOL_FEE_DISCRIMINATOR, type ZapProtocolFeeInput, type ZapProtocolFeeInstruction, type ZapProtocolFeeInstructionData, type ZapProtocolFeeInstructionDataArgs, accountsType, binArrayIndexToBinIdRange, binIdToBinArrayIndex, binIdToPrice, decodeBinArray, decodeBinArrayBitmapExtension, decodeClaimFeeOperator, decodeDummyZcAccount, decodeLbPair, decodeLimitOrder, decodeOperator, decodeOracle, decodePositionV2, decodePresetParameter, decodePresetParameter2, decodeTokenBadge, fetchAllBinArray, fetchAllBinArrayBitmapExtension, fetchAllClaimFeeOperator, fetchAllDummyZcAccount, fetchAllLbPair, fetchAllLimitOrder, fetchAllMaybeBinArray, fetchAllMaybeBinArrayBitmapExtension, fetchAllMaybeClaimFeeOperator, fetchAllMaybeDummyZcAccount, fetchAllMaybeLbPair, fetchAllMaybeLimitOrder, fetchAllMaybeOperator, fetchAllMaybeOracle, fetchAllMaybePositionV2, fetchAllMaybePresetParameter, fetchAllMaybePresetParameter2, fetchAllMaybeTokenBadge, fetchAllOperator, fetchAllOracle, fetchAllPositionV2, fetchAllPresetParameter, fetchAllPresetParameter2, fetchAllTokenBadge, fetchBinArray, fetchBinArrayBitmapExtension, fetchClaimFeeOperator, fetchDummyZcAccount, fetchLbPair, fetchLimitOrder, fetchMaybeBinArray, fetchMaybeBinArrayBitmapExtension, fetchMaybeClaimFeeOperator, fetchMaybeDummyZcAccount, fetchMaybeLbPair, fetchMaybeLimitOrder, fetchMaybeOperator, fetchMaybeOracle, fetchMaybePositionV2, fetchMaybePresetParameter, fetchMaybePresetParameter2, fetchMaybeTokenBadge, fetchOperator, fetchOracle, fetchPositionV2, fetchPresetParameter, fetchPresetParameter2, fetchTokenBadge, findBinArrayBitmapExtensionPda, findBinArrayPda, findEventAuthorityPda, findLbPairPda, findOperatorPda, findOraclePda, findPositionPda, findPresetParameterPda, findReserveXPda, findReserveYPda, findRewardVaultPda, findTokenBadgePda, getAccountsTypeCodec, getAccountsTypeDecoder, getAccountsTypeEncoder, getActivationTypeCodec, getActivationTypeDecoder, getActivationTypeEncoder, getAddLiquidity2DiscriminatorBytes, getAddLiquidity2Instruction, getAddLiquidity2InstructionAsync, getAddLiquidity2InstructionDataCodec, getAddLiquidity2InstructionDataDecoder, getAddLiquidity2InstructionDataEncoder, getAddLiquidityByStrategy2DiscriminatorBytes, getAddLiquidityByStrategy2Instruction, getAddLiquidityByStrategy2InstructionAsync, getAddLiquidityByStrategy2InstructionDataCodec, getAddLiquidityByStrategy2InstructionDataDecoder, getAddLiquidityByStrategy2InstructionDataEncoder, getAddLiquidityByStrategyDiscriminatorBytes, getAddLiquidityByStrategyInstruction, getAddLiquidityByStrategyInstructionAsync, getAddLiquidityByStrategyInstructionDataCodec, getAddLiquidityByStrategyInstructionDataDecoder, getAddLiquidityByStrategyInstructionDataEncoder, getAddLiquidityByStrategyOneSideDiscriminatorBytes, getAddLiquidityByStrategyOneSideInstruction, getAddLiquidityByStrategyOneSideInstructionAsync, getAddLiquidityByStrategyOneSideInstructionDataCodec, getAddLiquidityByStrategyOneSideInstructionDataDecoder, getAddLiquidityByStrategyOneSideInstructionDataEncoder, getAddLiquidityByWeight2DiscriminatorBytes, getAddLiquidityByWeight2Instruction, getAddLiquidityByWeight2InstructionAsync, getAddLiquidityByWeight2InstructionDataCodec, getAddLiquidityByWeight2InstructionDataDecoder, getAddLiquidityByWeight2InstructionDataEncoder, getAddLiquidityByWeightDiscriminatorBytes, getAddLiquidityByWeightInstruction, getAddLiquidityByWeightInstructionAsync, getAddLiquidityByWeightInstructionDataCodec, getAddLiquidityByWeightInstructionDataDecoder, getAddLiquidityByWeightInstructionDataEncoder, getAddLiquidityDiscriminatorBytes, getAddLiquidityInstruction, getAddLiquidityInstructionAsync, getAddLiquidityInstructionDataCodec, getAddLiquidityInstructionDataDecoder, getAddLiquidityInstructionDataEncoder, getAddLiquidityOneSideDiscriminatorBytes, getAddLiquidityOneSideInstruction, getAddLiquidityOneSideInstructionAsync, getAddLiquidityOneSideInstructionDataCodec, getAddLiquidityOneSideInstructionDataDecoder, getAddLiquidityOneSideInstructionDataEncoder, getAddLiquidityOneSidePrecise2DiscriminatorBytes, getAddLiquidityOneSidePrecise2Instruction, getAddLiquidityOneSidePrecise2InstructionAsync, getAddLiquidityOneSidePrecise2InstructionDataCodec, getAddLiquidityOneSidePrecise2InstructionDataDecoder, getAddLiquidityOneSidePrecise2InstructionDataEncoder, getAddLiquidityOneSidePreciseDiscriminatorBytes, getAddLiquidityOneSidePreciseInstruction, getAddLiquidityOneSidePreciseInstructionAsync, getAddLiquidityOneSidePreciseInstructionDataCodec, getAddLiquidityOneSidePreciseInstructionDataDecoder, getAddLiquidityOneSidePreciseInstructionDataEncoder, getAddLiquidityParamsCodec, getAddLiquidityParamsDecoder, getAddLiquidityParamsEncoder, getBinArrayBitmapExtensionCodec, getBinArrayBitmapExtensionDecoder, getBinArrayBitmapExtensionDiscriminatorBytes, getBinArrayBitmapExtensionEncoder, getBinArrayBitmapExtensionSize, getBinArrayCodec, getBinArrayDecoder, getBinArrayDiscriminatorBytes, getBinArrayEncoder, getBinArraySize, getBinCodec, getBinDecoder, getBinEncoder, getBinLimitOrderAmountCodec, getBinLimitOrderAmountDecoder, getBinLimitOrderAmountEncoder, getBinLiquidityDistributionByWeightCodec, getBinLiquidityDistributionByWeightDecoder, getBinLiquidityDistributionByWeightEncoder, getBinLiquidityDistributionCodec, getBinLiquidityDistributionDecoder, getBinLiquidityDistributionEncoder, getBinLiquidityReductionCodec, getBinLiquidityReductionDecoder, getBinLiquidityReductionEncoder, getCancelLimitOrderDiscriminatorBytes, getCancelLimitOrderInstruction, getCancelLimitOrderInstructionAsync, getCancelLimitOrderInstructionDataCodec, getCancelLimitOrderInstructionDataDecoder, getCancelLimitOrderInstructionDataEncoder, getClaimFee2DiscriminatorBytes, getClaimFee2Instruction, getClaimFee2InstructionAsync, getClaimFee2InstructionDataCodec, getClaimFee2InstructionDataDecoder, getClaimFee2InstructionDataEncoder, getClaimFeeDiscriminatorBytes, getClaimFeeInstruction, getClaimFeeInstructionAsync, getClaimFeeInstructionDataCodec, getClaimFeeInstructionDataDecoder, getClaimFeeInstructionDataEncoder, getClaimFeeOperatorCodec, getClaimFeeOperatorDecoder, getClaimFeeOperatorDiscriminatorBytes, getClaimFeeOperatorEncoder, getClaimFeeOperatorSize, getClaimReward2DiscriminatorBytes, getClaimReward2Instruction, getClaimReward2InstructionAsync, getClaimReward2InstructionDataCodec, getClaimReward2InstructionDataDecoder, getClaimReward2InstructionDataEncoder, getClaimRewardDiscriminatorBytes, getClaimRewardInstruction, getClaimRewardInstructionAsync, getClaimRewardInstructionDataCodec, getClaimRewardInstructionDataDecoder, getClaimRewardInstructionDataEncoder, getCloseBinArrayDiscriminatorBytes, getCloseBinArrayInstruction, getCloseBinArrayInstructionDataCodec, getCloseBinArrayInstructionDataDecoder, getCloseBinArrayInstructionDataEncoder, getCloseClaimFeeOperatorAccountDiscriminatorBytes, getCloseClaimFeeOperatorAccountInstruction, getCloseClaimFeeOperatorAccountInstructionDataCodec, getCloseClaimFeeOperatorAccountInstructionDataDecoder, getCloseClaimFeeOperatorAccountInstructionDataEncoder, getCloseLimitOrderIfEmptyDiscriminatorBytes, getCloseLimitOrderIfEmptyInstruction, getCloseLimitOrderIfEmptyInstructionAsync, getCloseLimitOrderIfEmptyInstructionDataCodec, getCloseLimitOrderIfEmptyInstructionDataDecoder, getCloseLimitOrderIfEmptyInstructionDataEncoder, getCloseOperatorAccountDiscriminatorBytes, getCloseOperatorAccountInstruction, getCloseOperatorAccountInstructionDataCodec, getCloseOperatorAccountInstructionDataDecoder, getCloseOperatorAccountInstructionDataEncoder, getClosePosition2DiscriminatorBytes, getClosePosition2Instruction, getClosePosition2InstructionAsync, getClosePosition2InstructionDataCodec, getClosePosition2InstructionDataDecoder, getClosePosition2InstructionDataEncoder, getClosePositionDiscriminatorBytes, getClosePositionIfEmptyDiscriminatorBytes, getClosePositionIfEmptyInstruction, getClosePositionIfEmptyInstructionAsync, getClosePositionIfEmptyInstructionDataCodec, getClosePositionIfEmptyInstructionDataDecoder, getClosePositionIfEmptyInstructionDataEncoder, getClosePositionInstruction, getClosePositionInstructionAsync, getClosePositionInstructionDataCodec, getClosePositionInstructionDataDecoder, getClosePositionInstructionDataEncoder, getClosePresetParameter2DiscriminatorBytes, getClosePresetParameter2Instruction, getClosePresetParameter2InstructionDataCodec, getClosePresetParameter2InstructionDataDecoder, getClosePresetParameter2InstructionDataEncoder, getClosePresetParameterDiscriminatorBytes, getClosePresetParameterInstruction, getClosePresetParameterInstructionDataCodec, getClosePresetParameterInstructionDataDecoder, getClosePresetParameterInstructionDataEncoder, getCloseTokenBadgeDiscriminatorBytes, getCloseTokenBadgeInstruction, getCloseTokenBadgeInstructionDataCodec, getCloseTokenBadgeInstructionDataDecoder, getCloseTokenBadgeInstructionDataEncoder, getCompressedBinDepositAmountCodec, getCompressedBinDepositAmountDecoder, getCompressedBinDepositAmountEncoder, getCreateOperatorAccountDiscriminatorBytes, getCreateOperatorAccountInstruction, getCreateOperatorAccountInstructionAsync, getCreateOperatorAccountInstructionDataCodec, getCreateOperatorAccountInstructionDataDecoder, getCreateOperatorAccountInstructionDataEncoder, getCustomizableParamsCodec, getCustomizableParamsDecoder, getCustomizableParamsEncoder, getDecreasePositionLengthDiscriminatorBytes, getDecreasePositionLengthInstruction, getDecreasePositionLengthInstructionAsync, getDecreasePositionLengthInstructionDataCodec, getDecreasePositionLengthInstructionDataDecoder, getDecreasePositionLengthInstructionDataEncoder, getDummyZcAccountCodec, getDummyZcAccountDecoder, getDummyZcAccountDiscriminatorBytes, getDummyZcAccountEncoder, getDummyZcAccountSize, getFeeInfoCodec, getFeeInfoDecoder, getFeeInfoEncoder, getForIdlTypeGenerationDoNotCallDiscriminatorBytes, getForIdlTypeGenerationDoNotCallInstruction, getForIdlTypeGenerationDoNotCallInstructionDataCodec, getForIdlTypeGenerationDoNotCallInstructionDataDecoder, getForIdlTypeGenerationDoNotCallInstructionDataEncoder, getFundRewardDiscriminatorBytes, getFundRewardInstruction, getFundRewardInstructionAsync, getFundRewardInstructionDataCodec, getFundRewardInstructionDataDecoder, getFundRewardInstructionDataEncoder, getGoToABinDiscriminatorBytes, getGoToABinInstruction, getGoToABinInstructionAsync, getGoToABinInstructionDataCodec, getGoToABinInstructionDataDecoder, getGoToABinInstructionDataEncoder, getIncreaseOracleLengthDiscriminatorBytes, getIncreaseOracleLengthInstruction, getIncreaseOracleLengthInstructionAsync, getIncreaseOracleLengthInstructionDataCodec, getIncreaseOracleLengthInstructionDataDecoder, getIncreaseOracleLengthInstructionDataEncoder, getIncreasePositionLength2DiscriminatorBytes, getIncreasePositionLength2Instruction, getIncreasePositionLength2InstructionAsync, getIncreasePositionLength2InstructionDataCodec, getIncreasePositionLength2InstructionDataDecoder, getIncreasePositionLength2InstructionDataEncoder, getIncreasePositionLengthDiscriminatorBytes, getIncreasePositionLengthInstruction, getIncreasePositionLengthInstructionAsync, getIncreasePositionLengthInstructionDataCodec, getIncreasePositionLengthInstructionDataDecoder, getIncreasePositionLengthInstructionDataEncoder, getInitializeBinArrayBitmapExtensionDiscriminatorBytes, getInitializeBinArrayBitmapExtensionInstruction, getInitializeBinArrayBitmapExtensionInstructionAsync, getInitializeBinArrayBitmapExtensionInstructionDataCodec, getInitializeBinArrayBitmapExtensionInstructionDataDecoder, getInitializeBinArrayBitmapExtensionInstructionDataEncoder, getInitializeBinArrayDiscriminatorBytes, getInitializeBinArrayInstruction, getInitializeBinArrayInstructionAsync, getInitializeBinArrayInstructionDataCodec, getInitializeBinArrayInstructionDataDecoder, getInitializeBinArrayInstructionDataEncoder, getInitializeCustomizablePermissionlessLbPair2DiscriminatorBytes, getInitializeCustomizablePermissionlessLbPair2Instruction, getInitializeCustomizablePermissionlessLbPair2InstructionAsync, getInitializeCustomizablePermissionlessLbPair2InstructionDataCodec, getInitializeCustomizablePermissionlessLbPair2InstructionDataDecoder, getInitializeCustomizablePermissionlessLbPair2InstructionDataEncoder, getInitializeCustomizablePermissionlessLbPairDiscriminatorBytes, getInitializeCustomizablePermissionlessLbPairInstruction, getInitializeCustomizablePermissionlessLbPairInstructionAsync, getInitializeCustomizablePermissionlessLbPairInstructionDataCodec, getInitializeCustomizablePermissionlessLbPairInstructionDataDecoder, getInitializeCustomizablePermissionlessLbPairInstructionDataEncoder, getInitializeLbPair2DiscriminatorBytes, getInitializeLbPair2Instruction, getInitializeLbPair2InstructionAsync, getInitializeLbPair2InstructionDataCodec, getInitializeLbPair2InstructionDataDecoder, getInitializeLbPair2InstructionDataEncoder, getInitializeLbPairDiscriminatorBytes, getInitializeLbPairInstruction, getInitializeLbPairInstructionAsync, getInitializeLbPairInstructionDataCodec, getInitializeLbPairInstructionDataDecoder, getInitializeLbPairInstructionDataEncoder, getInitializePermissionLbPairDiscriminatorBytes, getInitializePermissionLbPairInstruction, getInitializePermissionLbPairInstructionAsync, getInitializePermissionLbPairInstructionDataCodec, getInitializePermissionLbPairInstructionDataDecoder, getInitializePermissionLbPairInstructionDataEncoder, getInitializePosition2DiscriminatorBytes, getInitializePosition2Instruction, getInitializePosition2InstructionAsync, getInitializePosition2InstructionDataCodec, getInitializePosition2InstructionDataDecoder, getInitializePosition2InstructionDataEncoder, getInitializePositionByOperatorDiscriminatorBytes, getInitializePositionByOperatorInstruction, getInitializePositionByOperatorInstructionAsync, getInitializePositionByOperatorInstructionDataCodec, getInitializePositionByOperatorInstructionDataDecoder, getInitializePositionByOperatorInstructionDataEncoder, getInitializePositionDiscriminatorBytes, getInitializePositionInstruction, getInitializePositionInstructionAsync, getInitializePositionInstructionDataCodec, getInitializePositionInstructionDataDecoder, getInitializePositionInstructionDataEncoder, getInitializePositionPdaDiscriminatorBytes, getInitializePositionPdaInstruction, getInitializePositionPdaInstructionAsync, getInitializePositionPdaInstructionDataCodec, getInitializePositionPdaInstructionDataDecoder, getInitializePositionPdaInstructionDataEncoder, getInitializePresetParameterDiscriminatorBytes, getInitializePresetParameterInstruction, getInitializePresetParameterInstructionDataCodec, getInitializePresetParameterInstructionDataDecoder, getInitializePresetParameterInstructionDataEncoder, getInitializeRewardDiscriminatorBytes, getInitializeRewardInstruction, getInitializeRewardInstructionAsync, getInitializeRewardInstructionDataCodec, getInitializeRewardInstructionDataDecoder, getInitializeRewardInstructionDataEncoder, getInitializeTokenBadgeDiscriminatorBytes, getInitializeTokenBadgeInstruction, getInitializeTokenBadgeInstructionAsync, getInitializeTokenBadgeInstructionDataCodec, getInitializeTokenBadgeInstructionDataDecoder, getInitializeTokenBadgeInstructionDataEncoder, getLbClmmErrorMessage, getLbPairCodec, getLbPairDecoder, getLbPairDiscriminatorBytes, getLbPairEncoder, getLbPairSize, getLimitOrderBinDataCodec, getLimitOrderBinDataDecoder, getLimitOrderBinDataEncoder, getLimitOrderCodec, getLimitOrderDecoder, getLimitOrderDiscriminatorBytes, getLimitOrderEncoder, getLimitOrderSize, getLiquidityParameterByStrategyCodec, getLiquidityParameterByStrategyDecoder, getLiquidityParameterByStrategyEncoder, getLiquidityParameterByWeightCodec, getLiquidityParameterByWeightDecoder, getLiquidityParameterByWeightEncoder, getLiquidityParameterCodec, getLiquidityParameterDecoder, getLiquidityParameterEncoder, getOperatorCodec, getOperatorDecoder, getOperatorDiscriminatorBytes, getOperatorEncoder, getOperatorSize, getOracleCodec, getOracleDecoder, getOracleDiscriminatorBytes, getOracleEncoder, getOracleSize, getPairStatusCodec, getPairStatusDecoder, getPairStatusEncoder, getPairTypeCodec, getPairTypeDecoder, getPairTypeEncoder, getPlaceLimitOrderDiscriminatorBytes, getPlaceLimitOrderInstruction, getPlaceLimitOrderInstructionAsync, getPlaceLimitOrderInstructionDataCodec, getPlaceLimitOrderInstructionDataDecoder, getPlaceLimitOrderInstructionDataEncoder, getPlaceLimitOrderParamsCodec, getPlaceLimitOrderParamsDecoder, getPlaceLimitOrderParamsEncoder, getPositionBinDataCodec, getPositionBinDataDecoder, getPositionBinDataEncoder, getPositionV2Codec, getPositionV2Decoder, getPositionV2DiscriminatorBytes, getPositionV2Encoder, getPositionV2Size, getPresetParameter2Codec, getPresetParameter2Decoder, getPresetParameter2DiscriminatorBytes, getPresetParameter2Encoder, getPresetParameter2Size, getPresetParameterCodec, getPresetParameterDecoder, getPresetParameterDiscriminatorBytes, getPresetParameterEncoder, getPresetParameterSize, getProtocolFeeCodec, getProtocolFeeDecoder, getProtocolFeeEncoder, getRebalanceLiquidityDiscriminatorBytes, getRebalanceLiquidityInstruction, getRebalanceLiquidityInstructionAsync, getRebalanceLiquidityInstructionDataCodec, getRebalanceLiquidityInstructionDataDecoder, getRebalanceLiquidityInstructionDataEncoder, getRelativeBinCodec, getRelativeBinDecoder, getRelativeBinEncoder, getRemainingAccountsInfoCodec, getRemainingAccountsInfoDecoder, getRemainingAccountsInfoEncoder, getRemainingAccountsSliceCodec, getRemainingAccountsSliceDecoder, getRemainingAccountsSliceEncoder, getRemoveAllLiquidityDiscriminatorBytes, getRemoveAllLiquidityInstruction, getRemoveAllLiquidityInstructionAsync, getRemoveAllLiquidityInstructionDataCodec, getRemoveAllLiquidityInstructionDataDecoder, getRemoveAllLiquidityInstructionDataEncoder, getRemoveLiquidity2DiscriminatorBytes, getRemoveLiquidity2Instruction, getRemoveLiquidity2InstructionAsync, getRemoveLiquidity2InstructionDataCodec, getRemoveLiquidity2InstructionDataDecoder, getRemoveLiquidity2InstructionDataEncoder, getRemoveLiquidityByRange2DiscriminatorBytes, getRemoveLiquidityByRange2Instruction, getRemoveLiquidityByRange2InstructionAsync, getRemoveLiquidityByRange2InstructionDataCodec, getRemoveLiquidityByRange2InstructionDataDecoder, getRemoveLiquidityByRange2InstructionDataEncoder, getRemoveLiquidityByRangeDiscriminatorBytes, getRemoveLiquidityByRangeInstruction, getRemoveLiquidityByRangeInstructionAsync, getRemoveLiquidityByRangeInstructionDataCodec, getRemoveLiquidityByRangeInstructionDataDecoder, getRemoveLiquidityByRangeInstructionDataEncoder, getRemoveLiquidityDiscriminatorBytes, getRemoveLiquidityInstruction, getRemoveLiquidityInstructionAsync, getRemoveLiquidityInstructionDataCodec, getRemoveLiquidityInstructionDataDecoder, getRemoveLiquidityInstructionDataEncoder, getRemoveLiquidityParamsCodec, getRemoveLiquidityParamsDecoder, getRemoveLiquidityParamsEncoder, getResizeSideCodec, getResizeSideDecoder, getResizeSideEncoder, getRewardInfoCodec, getRewardInfoDecoder, getRewardInfoEncoder, getRoundingCodec, getRoundingDecoder, getRoundingEncoder, getSetActivationPointDiscriminatorBytes, getSetActivationPointInstruction, getSetActivationPointInstructionDataCodec, getSetActivationPointInstructionDataDecoder, getSetActivationPointInstructionDataEncoder, getSetPairStatusDiscriminatorBytes, getSetPairStatusInstruction, getSetPairStatusInstructionDataCodec, getSetPairStatusInstructionDataDecoder, getSetPairStatusInstructionDataEncoder, getSetPairStatusPermissionlessDiscriminatorBytes, getSetPairStatusPermissionlessInstruction, getSetPairStatusPermissionlessInstructionDataCodec, getSetPairStatusPermissionlessInstructionDataDecoder, getSetPairStatusPermissionlessInstructionDataEncoder, getSetPermissionlessOperationBitsDiscriminatorBytes, getSetPermissionlessOperationBitsInstruction, getSetPermissionlessOperationBitsInstructionAsync, getSetPermissionlessOperationBitsInstructionDataCodec, getSetPermissionlessOperationBitsInstructionDataDecoder, getSetPermissionlessOperationBitsInstructionDataEncoder, getSetPreActivationDurationDiscriminatorBytes, getSetPreActivationDurationInstruction, getSetPreActivationDurationInstructionDataCodec, getSetPreActivationDurationInstructionDataDecoder, getSetPreActivationDurationInstructionDataEncoder, getSetPreActivationSwapAddressDiscriminatorBytes, getSetPreActivationSwapAddressInstruction, getSetPreActivationSwapAddressInstructionDataCodec, getSetPreActivationSwapAddressInstructionDataDecoder, getSetPreActivationSwapAddressInstructionDataEncoder, getStaticParametersCodec, getStaticParametersDecoder, getStaticParametersEncoder, getStrategyParametersCodec, getStrategyParametersDecoder, getStrategyParametersEncoder, getStrategyTypeCodec, getStrategyTypeDecoder, getStrategyTypeEncoder, getSwap2DiscriminatorBytes, getSwap2Instruction, getSwap2InstructionAsync, getSwap2InstructionDataCodec, getSwap2InstructionDataDecoder, getSwap2InstructionDataEncoder, getSwapDiscriminatorBytes, getSwapExactOut2DiscriminatorBytes, getSwapExactOut2Instruction, getSwapExactOut2InstructionAsync, getSwapExactOut2InstructionDataCodec, getSwapExactOut2InstructionDataDecoder, getSwapExactOut2InstructionDataEncoder, getSwapExactOutDiscriminatorBytes, getSwapExactOutInstruction, getSwapExactOutInstructionAsync, getSwapExactOutInstructionDataCodec, getSwapExactOutInstructionDataDecoder, getSwapExactOutInstructionDataEncoder, getSwapInstruction, getSwapInstructionAsync, getSwapInstructionDataCodec, getSwapInstructionDataDecoder, getSwapInstructionDataEncoder, getSwapWithPriceImpact2DiscriminatorBytes, getSwapWithPriceImpact2Instruction, getSwapWithPriceImpact2InstructionAsync, getSwapWithPriceImpact2InstructionDataCodec, getSwapWithPriceImpact2InstructionDataDecoder, getSwapWithPriceImpact2InstructionDataEncoder, getSwapWithPriceImpactDiscriminatorBytes, getSwapWithPriceImpactInstruction, getSwapWithPriceImpactInstructionAsync, getSwapWithPriceImpactInstructionDataCodec, getSwapWithPriceImpactInstructionDataDecoder, getSwapWithPriceImpactInstructionDataEncoder, getTokenBadgeCodec, getTokenBadgeDecoder, getTokenBadgeDiscriminatorBytes, getTokenBadgeEncoder, getTokenBadgeSize, getTokenProgramFlagsCodec, getTokenProgramFlagsDecoder, getTokenProgramFlagsEncoder, getUpdateBaseFeeParametersDiscriminatorBytes, getUpdateBaseFeeParametersInstruction, getUpdateBaseFeeParametersInstructionAsync, getUpdateBaseFeeParametersInstructionDataCodec, getUpdateBaseFeeParametersInstructionDataDecoder, getUpdateBaseFeeParametersInstructionDataEncoder, getUpdateDynamicFeeParametersDiscriminatorBytes, getUpdateDynamicFeeParametersInstruction, getUpdateDynamicFeeParametersInstructionAsync, getUpdateDynamicFeeParametersInstructionDataCodec, getUpdateDynamicFeeParametersInstructionDataDecoder, getUpdateDynamicFeeParametersInstructionDataEncoder, getUpdateFeesAndReward2DiscriminatorBytes, getUpdateFeesAndReward2Instruction, getUpdateFeesAndReward2InstructionDataCodec, getUpdateFeesAndReward2InstructionDataDecoder, getUpdateFeesAndReward2InstructionDataEncoder, getUpdateFeesAndRewardsDiscriminatorBytes, getUpdateFeesAndRewardsInstruction, getUpdateFeesAndRewardsInstructionDataCodec, getUpdateFeesAndRewardsInstructionDataDecoder, getUpdateFeesAndRewardsInstructionDataEncoder, getUpdatePositionOperatorDiscriminatorBytes, getUpdatePositionOperatorInstruction, getUpdatePositionOperatorInstructionAsync, getUpdatePositionOperatorInstructionDataCodec, getUpdatePositionOperatorInstructionDataDecoder, getUpdatePositionOperatorInstructionDataEncoder, getUpdateRewardDurationDiscriminatorBytes, getUpdateRewardDurationInstruction, getUpdateRewardDurationInstructionAsync, getUpdateRewardDurationInstructionDataCodec, getUpdateRewardDurationInstructionDataDecoder, getUpdateRewardDurationInstructionDataEncoder, getUpdateRewardFunderDiscriminatorBytes, getUpdateRewardFunderInstruction, getUpdateRewardFunderInstructionAsync, getUpdateRewardFunderInstructionDataCodec, getUpdateRewardFunderInstructionDataDecoder, getUpdateRewardFunderInstructionDataEncoder, getUserRewardInfoCodec, getUserRewardInfoDecoder, getUserRewardInfoEncoder, getVariableParametersCodec, getVariableParametersDecoder, getVariableParametersEncoder, getWithdrawIneligibleRewardDiscriminatorBytes, getWithdrawIneligibleRewardInstruction, getWithdrawIneligibleRewardInstructionAsync, getWithdrawIneligibleRewardInstructionDataCodec, getWithdrawIneligibleRewardInstructionDataDecoder, getWithdrawIneligibleRewardInstructionDataEncoder, getWithdrawProtocolFeeDiscriminatorBytes, getWithdrawProtocolFeeInstruction, getWithdrawProtocolFeeInstructionDataCodec, getWithdrawProtocolFeeInstructionDataDecoder, getWithdrawProtocolFeeInstructionDataEncoder, getZapProtocolFeeDiscriminatorBytes, getZapProtocolFeeInstruction, getZapProtocolFeeInstructionDataCodec, getZapProtocolFeeInstructionDataDecoder, getZapProtocolFeeInstructionDataEncoder, identifyLbClmmAccount, identifyLbClmmInstruction, isAccountsType, isLbClmmError, parseAddLiquidity2Instruction, parseAddLiquidityByStrategy2Instruction, parseAddLiquidityByStrategyInstruction, parseAddLiquidityByStrategyOneSideInstruction, parseAddLiquidityByWeight2Instruction, parseAddLiquidityByWeightInstruction, parseAddLiquidityInstruction, parseAddLiquidityOneSideInstruction, parseAddLiquidityOneSidePrecise2Instruction, parseAddLiquidityOneSidePreciseInstruction, parseCancelLimitOrderInstruction, parseClaimFee2Instruction, parseClaimFeeInstruction, parseClaimReward2Instruction, parseClaimRewardInstruction, parseCloseBinArrayInstruction, parseCloseClaimFeeOperatorAccountInstruction, parseCloseLimitOrderIfEmptyInstruction, parseCloseOperatorAccountInstruction, parseClosePosition2Instruction, parseClosePositionIfEmptyInstruction, parseClosePositionInstruction, parseClosePresetParameter2Instruction, parseClosePresetParameterInstruction, parseCloseTokenBadgeInstruction, parseCreateOperatorAccountInstruction, parseDecreasePositionLengthInstruction, parseForIdlTypeGenerationDoNotCallInstruction, parseFundRewardInstruction, parseGoToABinInstruction, parseIncreaseOracleLengthInstruction, parseIncreasePositionLength2Instruction, parseIncreasePositionLengthInstruction, parseInitializeBinArrayBitmapExtensionInstruction, parseInitializeBinArrayInstruction, parseInitializeCustomizablePermissionlessLbPair2Instruction, parseInitializeCustomizablePermissionlessLbPairInstruction, parseInitializeLbPair2Instruction, parseInitializeLbPairInstruction, parseInitializePermissionLbPairInstruction, parseInitializePosition2Instruction, parseInitializePositionByOperatorInstruction, parseInitializePositionInstruction, parseInitializePositionPdaInstruction, parseInitializePresetParameterInstruction, parseInitializeRewardInstruction, parseInitializeTokenBadgeInstruction, parseLbClmmInstruction, parsePlaceLimitOrderInstruction, parseRebalanceLiquidityInstruction, parseRemoveAllLiquidityInstruction, parseRemoveLiquidity2Instruction, parseRemoveLiquidityByRange2Instruction, parseRemoveLiquidityByRangeInstruction, parseRemoveLiquidityInstruction, parseSetActivationPointInstruction, parseSetPairStatusInstruction, parseSetPairStatusPermissionlessInstruction, parseSetPermissionlessOperationBitsInstruction, parseSetPreActivationDurationInstruction, parseSetPreActivationSwapAddressInstruction, parseSwap2Instruction, parseSwapExactOut2Instruction, parseSwapExactOutInstruction, parseSwapInstruction, parseSwapWithPriceImpact2Instruction, parseSwapWithPriceImpactInstruction, parseUpdateBaseFeeParametersInstruction, parseUpdateDynamicFeeParametersInstruction, parseUpdateFeesAndReward2Instruction, parseUpdateFeesAndRewardsInstruction, parseUpdatePositionOperatorInstruction, parseUpdateRewardDurationInstruction, parseUpdateRewardFunderInstruction, parseWithdrawIneligibleRewardInstruction, parseWithdrawProtocolFeeInstruction, parseZapProtocolFeeInstruction, priceToBinId };
package/dist/index.js CHANGED
@@ -190,11 +190,15 @@ __export(index_exports, {
190
190
  LbClmmInstruction: () => LbClmmInstruction,
191
191
  MAX_BIN_ID: () => MAX_BIN_ID,
192
192
  MAX_BIN_PER_ARRAY: () => MAX_BIN_PER_ARRAY,
193
+ MAX_BIN_STEP: () => MAX_BIN_STEP,
194
+ MAX_RESIZE_LENGTH: () => MAX_RESIZE_LENGTH,
193
195
  MIN_BIN_ID: () => MIN_BIN_ID,
196
+ NUM_REWARDS: () => NUM_REWARDS,
194
197
  ONE_Q64: () => ONE_Q64,
195
198
  OPERATOR_DISCRIMINATOR: () => OPERATOR_DISCRIMINATOR,
196
199
  ORACLE_DISCRIMINATOR: () => ORACLE_DISCRIMINATOR,
197
200
  PLACE_LIMIT_ORDER_DISCRIMINATOR: () => PLACE_LIMIT_ORDER_DISCRIMINATOR,
201
+ POSITION_MAX_LENGTH: () => POSITION_MAX_LENGTH,
198
202
  POSITION_V2_DISCRIMINATOR: () => POSITION_V2_DISCRIMINATOR,
199
203
  PRESET_PARAMETER2_DISCRIMINATOR: () => PRESET_PARAMETER2_DISCRIMINATOR,
200
204
  PRESET_PARAMETER2_SEED: () => PRESET_PARAMETER2_SEED,
@@ -209,7 +213,6 @@ __export(index_exports, {
209
213
  REMOVE_LIQUIDITY_DISCRIMINATOR: () => REMOVE_LIQUIDITY_DISCRIMINATOR,
210
214
  ResizeSide: () => ResizeSide,
211
215
  Rounding: () => Rounding,
212
- SCALE_OFFSET: () => SCALE_OFFSET,
213
216
  SET_ACTIVATION_POINT_DISCRIMINATOR: () => SET_ACTIVATION_POINT_DISCRIMINATOR,
214
217
  SET_PAIR_STATUS_DISCRIMINATOR: () => SET_PAIR_STATUS_DISCRIMINATOR,
215
218
  SET_PAIR_STATUS_PERMISSIONLESS_DISCRIMINATOR: () => SET_PAIR_STATUS_PERMISSIONLESS_DISCRIMINATOR,
@@ -537,7 +540,6 @@ __export(index_exports, {
537
540
  getGoToABinInstructionDataCodec: () => getGoToABinInstructionDataCodec,
538
541
  getGoToABinInstructionDataDecoder: () => getGoToABinInstructionDataDecoder,
539
542
  getGoToABinInstructionDataEncoder: () => getGoToABinInstructionDataEncoder,
540
- getIdFromPrice: () => getIdFromPrice,
541
543
  getIncreaseOracleLengthDiscriminatorBytes: () => getIncreaseOracleLengthDiscriminatorBytes,
542
544
  getIncreaseOracleLengthInstruction: () => getIncreaseOracleLengthInstruction,
543
545
  getIncreaseOracleLengthInstructionAsync: () => getIncreaseOracleLengthInstructionAsync,
@@ -705,7 +707,6 @@ __export(index_exports, {
705
707
  getPresetParameterDiscriminatorBytes: () => getPresetParameterDiscriminatorBytes,
706
708
  getPresetParameterEncoder: () => getPresetParameterEncoder,
707
709
  getPresetParameterSize: () => getPresetParameterSize,
708
- getPriceFromId: () => getPriceFromId,
709
710
  getProtocolFeeCodec: () => getProtocolFeeCodec,
710
711
  getProtocolFeeDecoder: () => getProtocolFeeDecoder,
711
712
  getProtocolFeeEncoder: () => getProtocolFeeEncoder,
@@ -912,7 +913,6 @@ __export(index_exports, {
912
913
  getZapProtocolFeeInstructionDataCodec: () => getZapProtocolFeeInstructionDataCodec,
913
914
  getZapProtocolFeeInstructionDataDecoder: () => getZapProtocolFeeInstructionDataDecoder,
914
915
  getZapProtocolFeeInstructionDataEncoder: () => getZapProtocolFeeInstructionDataEncoder,
915
- humanPriceToQ64: () => humanPriceToQ64,
916
916
  identifyLbClmmAccount: () => identifyLbClmmAccount,
917
917
  identifyLbClmmInstruction: () => identifyLbClmmInstruction,
918
918
  isAccountsType: () => isAccountsType,
@@ -994,9 +994,7 @@ __export(index_exports, {
994
994
  parseWithdrawIneligibleRewardInstruction: () => parseWithdrawIneligibleRewardInstruction,
995
995
  parseWithdrawProtocolFeeInstruction: () => parseWithdrawProtocolFeeInstruction,
996
996
  parseZapProtocolFeeInstruction: () => parseZapProtocolFeeInstruction,
997
- priceToBinId: () => priceToBinId,
998
- q64Pow: () => q64Pow,
999
- q64ToHumanPrice: () => q64ToHumanPrice
997
+ priceToBinId: () => priceToBinId
1000
998
  });
1001
999
  module.exports = __toCommonJS(index_exports);
1002
1000
 
@@ -15985,96 +15983,23 @@ async function findPresetParameterPda(seeds, config = {}) {
15985
15983
 
15986
15984
  // src/math.ts
15987
15985
  var MAX_BIN_PER_ARRAY = 70;
15988
- var SCALE_OFFSET = 64;
15989
15986
  var BASIS_POINT_MAX = 1e4;
15987
+ var MAX_RESIZE_LENGTH = 70;
15988
+ var POSITION_MAX_LENGTH = 1400;
15989
+ var NUM_REWARDS = 2;
15990
+ var MAX_BIN_STEP = 400;
15990
15991
  var MIN_BIN_ID = -443636;
15991
15992
  var MAX_BIN_ID = 443636;
15992
15993
  var ONE_Q64 = 1n << 64n;
15993
- var U128_MAX = (1n << 128n) - 1n;
15994
- var MAX_EXPONENTIAL = 524288;
15995
- function checkedMul(a, b) {
15996
- const product = a * b;
15997
- if (product > U128_MAX) return null;
15998
- return product;
15999
- }
16000
- function q64Pow(base, exp) {
16001
- let invert = exp < 0;
16002
- if (exp === 0) return ONE_Q64;
16003
- const e = invert ? -exp : exp;
16004
- if (e >= MAX_EXPONENTIAL) return null;
16005
- let squaredBase = base;
16006
- let result = ONE_Q64;
16007
- if (squaredBase >= result) {
16008
- squaredBase = U128_MAX / squaredBase;
16009
- invert = !invert;
16010
- }
16011
- for (let bit = 0; bit < 19; bit++) {
16012
- if ((e & 1 << bit) !== 0) {
16013
- const m = checkedMul(result, squaredBase);
16014
- if (m === null) return null;
16015
- result = m >> 64n;
16016
- }
16017
- if (bit < 18) {
16018
- const sq = checkedMul(squaredBase, squaredBase);
16019
- if (sq === null) return null;
16020
- squaredBase = sq >> 64n;
16021
- }
16022
- }
16023
- if (result === 0n) return null;
16024
- if (invert) result = U128_MAX / result;
16025
- return result;
16026
- }
16027
- function getPriceFromId(binId, binStep) {
16028
- const bps = (BigInt(binStep) << 64n) / BigInt(BASIS_POINT_MAX);
16029
- const base = ONE_Q64 + bps;
16030
- const result = q64Pow(base, binId);
16031
- if (result === null) {
16032
- throw new Error(`getPriceFromId overflow: binId=${binId}, binStep=${binStep}`);
16033
- }
16034
- return result;
16035
- }
16036
- function getIdFromPrice(priceQ64, binStep) {
16037
- if (priceQ64 <= 0n) return MIN_BIN_ID;
16038
- const bps = (BigInt(binStep) << 64n) / BigInt(BASIS_POINT_MAX);
16039
- const base = ONE_Q64 + bps;
16040
- let lo = MIN_BIN_ID;
16041
- let hi = MAX_BIN_ID;
16042
- while (lo < hi) {
16043
- const mid = lo + Math.ceil((hi - lo) / 2);
16044
- const p = q64Pow(base, mid);
16045
- if (p === null) {
16046
- if (mid > 0) hi = mid - 1;
16047
- else lo = mid;
16048
- } else if (p > priceQ64) {
16049
- hi = mid - 1;
16050
- } else {
16051
- lo = mid;
16052
- }
16053
- }
16054
- return lo;
16055
- }
16056
- var HUMAN_PRICE_PRECISION = 18;
16057
- var HUMAN_PRICE_SCALE = 10n ** BigInt(HUMAN_PRICE_PRECISION);
16058
- function pow10(n) {
16059
- return 10n ** BigInt(n);
16060
- }
16061
- function humanPriceToQ64(humanPrice, decimalsX, decimalsY) {
16062
- if (humanPrice <= 0) {
16063
- throw new Error(`humanPriceToQ64 requires a positive price, got ${humanPrice}`);
16064
- }
16065
- const scaled = BigInt(Math.round(humanPrice * Number(HUMAN_PRICE_SCALE)));
16066
- return scaled * pow10(decimalsX) * ONE_Q64 / (pow10(decimalsY) * HUMAN_PRICE_SCALE);
16067
- }
16068
- function q64ToHumanPrice(priceQ64, decimalsX, decimalsY) {
16069
- const numerator = priceQ64 * pow10(decimalsY) * HUMAN_PRICE_SCALE;
16070
- const denominator = ONE_Q64 * pow10(decimalsX);
16071
- return Number(numerator / denominator) / Number(HUMAN_PRICE_SCALE);
16072
- }
16073
- function priceToBinId(humanPrice, binStep, decimalsX, decimalsY) {
16074
- return getIdFromPrice(humanPriceToQ64(humanPrice, decimalsX, decimalsY), binStep);
15994
+ function priceToBinId(price, binStep, min, decimalsX, decimalsY) {
15995
+ const poolPrice = Number(price) * 10 ** ((decimalsY ?? 0) - (decimalsX ?? 0));
15996
+ const step = binStep / BASIS_POINT_MAX;
15997
+ const binId = Math.log(poolPrice) / Math.log(1 + step);
15998
+ return min ? Math.floor(binId) : Math.ceil(binId);
16075
15999
  }
16076
16000
  function binIdToPrice(binId, binStep, decimalsX, decimalsY) {
16077
- return q64ToHumanPrice(getPriceFromId(binId, binStep), decimalsX, decimalsY);
16001
+ const poolPrice = (1 + binStep / BASIS_POINT_MAX) ** binId;
16002
+ return poolPrice / 10 ** ((decimalsY ?? 0) - (decimalsX ?? 0));
16078
16003
  }
16079
16004
  function binIdToBinArrayIndex(binId) {
16080
16005
  return BigInt(Math.floor(binId / MAX_BIN_PER_ARRAY));
@@ -16257,11 +16182,15 @@ function binArrayIndexToBinIdRange(index) {
16257
16182
  LbClmmInstruction,
16258
16183
  MAX_BIN_ID,
16259
16184
  MAX_BIN_PER_ARRAY,
16185
+ MAX_BIN_STEP,
16186
+ MAX_RESIZE_LENGTH,
16260
16187
  MIN_BIN_ID,
16188
+ NUM_REWARDS,
16261
16189
  ONE_Q64,
16262
16190
  OPERATOR_DISCRIMINATOR,
16263
16191
  ORACLE_DISCRIMINATOR,
16264
16192
  PLACE_LIMIT_ORDER_DISCRIMINATOR,
16193
+ POSITION_MAX_LENGTH,
16265
16194
  POSITION_V2_DISCRIMINATOR,
16266
16195
  PRESET_PARAMETER2_DISCRIMINATOR,
16267
16196
  PRESET_PARAMETER2_SEED,
@@ -16276,7 +16205,6 @@ function binArrayIndexToBinIdRange(index) {
16276
16205
  REMOVE_LIQUIDITY_DISCRIMINATOR,
16277
16206
  ResizeSide,
16278
16207
  Rounding,
16279
- SCALE_OFFSET,
16280
16208
  SET_ACTIVATION_POINT_DISCRIMINATOR,
16281
16209
  SET_PAIR_STATUS_DISCRIMINATOR,
16282
16210
  SET_PAIR_STATUS_PERMISSIONLESS_DISCRIMINATOR,
@@ -16604,7 +16532,6 @@ function binArrayIndexToBinIdRange(index) {
16604
16532
  getGoToABinInstructionDataCodec,
16605
16533
  getGoToABinInstructionDataDecoder,
16606
16534
  getGoToABinInstructionDataEncoder,
16607
- getIdFromPrice,
16608
16535
  getIncreaseOracleLengthDiscriminatorBytes,
16609
16536
  getIncreaseOracleLengthInstruction,
16610
16537
  getIncreaseOracleLengthInstructionAsync,
@@ -16772,7 +16699,6 @@ function binArrayIndexToBinIdRange(index) {
16772
16699
  getPresetParameterDiscriminatorBytes,
16773
16700
  getPresetParameterEncoder,
16774
16701
  getPresetParameterSize,
16775
- getPriceFromId,
16776
16702
  getProtocolFeeCodec,
16777
16703
  getProtocolFeeDecoder,
16778
16704
  getProtocolFeeEncoder,
@@ -16979,7 +16905,6 @@ function binArrayIndexToBinIdRange(index) {
16979
16905
  getZapProtocolFeeInstructionDataCodec,
16980
16906
  getZapProtocolFeeInstructionDataDecoder,
16981
16907
  getZapProtocolFeeInstructionDataEncoder,
16982
- humanPriceToQ64,
16983
16908
  identifyLbClmmAccount,
16984
16909
  identifyLbClmmInstruction,
16985
16910
  isAccountsType,
@@ -17061,7 +16986,5 @@ function binArrayIndexToBinIdRange(index) {
17061
16986
  parseWithdrawIneligibleRewardInstruction,
17062
16987
  parseWithdrawProtocolFeeInstruction,
17063
16988
  parseZapProtocolFeeInstruction,
17064
- priceToBinId,
17065
- q64Pow,
17066
- q64ToHumanPrice
16989
+ priceToBinId
17067
16990
  });
package/dist/index.mjs CHANGED
@@ -16441,96 +16441,23 @@ async function findPresetParameterPda(seeds, config = {}) {
16441
16441
 
16442
16442
  // src/math.ts
16443
16443
  var MAX_BIN_PER_ARRAY = 70;
16444
- var SCALE_OFFSET = 64;
16445
16444
  var BASIS_POINT_MAX = 1e4;
16445
+ var MAX_RESIZE_LENGTH = 70;
16446
+ var POSITION_MAX_LENGTH = 1400;
16447
+ var NUM_REWARDS = 2;
16448
+ var MAX_BIN_STEP = 400;
16446
16449
  var MIN_BIN_ID = -443636;
16447
16450
  var MAX_BIN_ID = 443636;
16448
16451
  var ONE_Q64 = 1n << 64n;
16449
- var U128_MAX = (1n << 128n) - 1n;
16450
- var MAX_EXPONENTIAL = 524288;
16451
- function checkedMul(a, b) {
16452
- const product = a * b;
16453
- if (product > U128_MAX) return null;
16454
- return product;
16455
- }
16456
- function q64Pow(base, exp) {
16457
- let invert = exp < 0;
16458
- if (exp === 0) return ONE_Q64;
16459
- const e = invert ? -exp : exp;
16460
- if (e >= MAX_EXPONENTIAL) return null;
16461
- let squaredBase = base;
16462
- let result = ONE_Q64;
16463
- if (squaredBase >= result) {
16464
- squaredBase = U128_MAX / squaredBase;
16465
- invert = !invert;
16466
- }
16467
- for (let bit = 0; bit < 19; bit++) {
16468
- if ((e & 1 << bit) !== 0) {
16469
- const m = checkedMul(result, squaredBase);
16470
- if (m === null) return null;
16471
- result = m >> 64n;
16472
- }
16473
- if (bit < 18) {
16474
- const sq = checkedMul(squaredBase, squaredBase);
16475
- if (sq === null) return null;
16476
- squaredBase = sq >> 64n;
16477
- }
16478
- }
16479
- if (result === 0n) return null;
16480
- if (invert) result = U128_MAX / result;
16481
- return result;
16482
- }
16483
- function getPriceFromId(binId, binStep) {
16484
- const bps = (BigInt(binStep) << 64n) / BigInt(BASIS_POINT_MAX);
16485
- const base = ONE_Q64 + bps;
16486
- const result = q64Pow(base, binId);
16487
- if (result === null) {
16488
- throw new Error(`getPriceFromId overflow: binId=${binId}, binStep=${binStep}`);
16489
- }
16490
- return result;
16491
- }
16492
- function getIdFromPrice(priceQ64, binStep) {
16493
- if (priceQ64 <= 0n) return MIN_BIN_ID;
16494
- const bps = (BigInt(binStep) << 64n) / BigInt(BASIS_POINT_MAX);
16495
- const base = ONE_Q64 + bps;
16496
- let lo = MIN_BIN_ID;
16497
- let hi = MAX_BIN_ID;
16498
- while (lo < hi) {
16499
- const mid = lo + Math.ceil((hi - lo) / 2);
16500
- const p = q64Pow(base, mid);
16501
- if (p === null) {
16502
- if (mid > 0) hi = mid - 1;
16503
- else lo = mid;
16504
- } else if (p > priceQ64) {
16505
- hi = mid - 1;
16506
- } else {
16507
- lo = mid;
16508
- }
16509
- }
16510
- return lo;
16511
- }
16512
- var HUMAN_PRICE_PRECISION = 18;
16513
- var HUMAN_PRICE_SCALE = 10n ** BigInt(HUMAN_PRICE_PRECISION);
16514
- function pow10(n) {
16515
- return 10n ** BigInt(n);
16516
- }
16517
- function humanPriceToQ64(humanPrice, decimalsX, decimalsY) {
16518
- if (humanPrice <= 0) {
16519
- throw new Error(`humanPriceToQ64 requires a positive price, got ${humanPrice}`);
16520
- }
16521
- const scaled = BigInt(Math.round(humanPrice * Number(HUMAN_PRICE_SCALE)));
16522
- return scaled * pow10(decimalsX) * ONE_Q64 / (pow10(decimalsY) * HUMAN_PRICE_SCALE);
16523
- }
16524
- function q64ToHumanPrice(priceQ64, decimalsX, decimalsY) {
16525
- const numerator = priceQ64 * pow10(decimalsY) * HUMAN_PRICE_SCALE;
16526
- const denominator = ONE_Q64 * pow10(decimalsX);
16527
- return Number(numerator / denominator) / Number(HUMAN_PRICE_SCALE);
16528
- }
16529
- function priceToBinId(humanPrice, binStep, decimalsX, decimalsY) {
16530
- return getIdFromPrice(humanPriceToQ64(humanPrice, decimalsX, decimalsY), binStep);
16452
+ function priceToBinId(price, binStep, min, decimalsX, decimalsY) {
16453
+ const poolPrice = Number(price) * 10 ** ((decimalsY ?? 0) - (decimalsX ?? 0));
16454
+ const step = binStep / BASIS_POINT_MAX;
16455
+ const binId = Math.log(poolPrice) / Math.log(1 + step);
16456
+ return min ? Math.floor(binId) : Math.ceil(binId);
16531
16457
  }
16532
16458
  function binIdToPrice(binId, binStep, decimalsX, decimalsY) {
16533
- return q64ToHumanPrice(getPriceFromId(binId, binStep), decimalsX, decimalsY);
16459
+ const poolPrice = (1 + binStep / BASIS_POINT_MAX) ** binId;
16460
+ return poolPrice / 10 ** ((decimalsY ?? 0) - (decimalsX ?? 0));
16534
16461
  }
16535
16462
  function binIdToBinArrayIndex(binId) {
16536
16463
  return BigInt(Math.floor(binId / MAX_BIN_PER_ARRAY));
@@ -16712,11 +16639,15 @@ export {
16712
16639
  LbClmmInstruction,
16713
16640
  MAX_BIN_ID,
16714
16641
  MAX_BIN_PER_ARRAY,
16642
+ MAX_BIN_STEP,
16643
+ MAX_RESIZE_LENGTH,
16715
16644
  MIN_BIN_ID,
16645
+ NUM_REWARDS,
16716
16646
  ONE_Q64,
16717
16647
  OPERATOR_DISCRIMINATOR,
16718
16648
  ORACLE_DISCRIMINATOR,
16719
16649
  PLACE_LIMIT_ORDER_DISCRIMINATOR,
16650
+ POSITION_MAX_LENGTH,
16720
16651
  POSITION_V2_DISCRIMINATOR,
16721
16652
  PRESET_PARAMETER2_DISCRIMINATOR,
16722
16653
  PRESET_PARAMETER2_SEED,
@@ -16731,7 +16662,6 @@ export {
16731
16662
  REMOVE_LIQUIDITY_DISCRIMINATOR,
16732
16663
  ResizeSide,
16733
16664
  Rounding,
16734
- SCALE_OFFSET,
16735
16665
  SET_ACTIVATION_POINT_DISCRIMINATOR,
16736
16666
  SET_PAIR_STATUS_DISCRIMINATOR,
16737
16667
  SET_PAIR_STATUS_PERMISSIONLESS_DISCRIMINATOR,
@@ -17059,7 +16989,6 @@ export {
17059
16989
  getGoToABinInstructionDataCodec,
17060
16990
  getGoToABinInstructionDataDecoder,
17061
16991
  getGoToABinInstructionDataEncoder,
17062
- getIdFromPrice,
17063
16992
  getIncreaseOracleLengthDiscriminatorBytes,
17064
16993
  getIncreaseOracleLengthInstruction,
17065
16994
  getIncreaseOracleLengthInstructionAsync,
@@ -17227,7 +17156,6 @@ export {
17227
17156
  getPresetParameterDiscriminatorBytes,
17228
17157
  getPresetParameterEncoder,
17229
17158
  getPresetParameterSize,
17230
- getPriceFromId,
17231
17159
  getProtocolFeeCodec,
17232
17160
  getProtocolFeeDecoder,
17233
17161
  getProtocolFeeEncoder,
@@ -17434,7 +17362,6 @@ export {
17434
17362
  getZapProtocolFeeInstructionDataCodec,
17435
17363
  getZapProtocolFeeInstructionDataDecoder,
17436
17364
  getZapProtocolFeeInstructionDataEncoder,
17437
- humanPriceToQ64,
17438
17365
  identifyLbClmmAccount,
17439
17366
  identifyLbClmmInstruction,
17440
17367
  isAccountsType,
@@ -17516,7 +17443,5 @@ export {
17516
17443
  parseWithdrawIneligibleRewardInstruction,
17517
17444
  parseWithdrawProtocolFeeInstruction,
17518
17445
  parseZapProtocolFeeInstruction,
17519
- priceToBinId,
17520
- q64Pow,
17521
- q64ToHumanPrice
17446
+ priceToBinId
17522
17447
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lp-ag/meteora-dlmm-solana-client",
3
3
  "description": "Typescript client to interact with Meteora DLMM on-chain program.",
4
- "version": "1.0.2",
4
+ "version": "1.0.4",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "main": "./dist/index.js",