@lp-ag/meteora-dlmm-solana-client 1.0.3 → 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 +9 -33
- package/dist/index.d.ts +9 -33
- package/dist/index.js +21 -92
- package/dist/index.mjs +16 -86
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -8689,49 +8689,25 @@ declare function findPresetParameterPda(seeds: {
|
|
|
8689
8689
|
|
|
8690
8690
|
declare const MAX_BIN_PER_ARRAY = 70;
|
|
8691
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;
|
|
8692
8696
|
declare const MIN_BIN_ID = -443636;
|
|
8693
8697
|
declare const MAX_BIN_ID = 443636;
|
|
8694
8698
|
declare const ONE_Q64: bigint;
|
|
8695
8699
|
/**
|
|
8696
|
-
*
|
|
8697
|
-
* Returns `null` on overflow (mirrors Rust's `Option<u128>`).
|
|
8700
|
+
* Convert a human-scale price (number) into a bin id.
|
|
8698
8701
|
*/
|
|
8699
|
-
declare function
|
|
8702
|
+
declare function priceToBinId(price: string | number, binStep: number, min: boolean, decimalsX?: number, decimalsY?: number): number;
|
|
8700
8703
|
/**
|
|
8701
|
-
*
|
|
8702
|
-
* Returns the on-chain raw price (lamport_Y / lamport_X) as a Q64.64 u128.
|
|
8703
|
-
* Throws if the (binId, binStep) combination overflows the fixed-point range.
|
|
8704
|
+
* Convert a bin id to a human-scale price (number).
|
|
8704
8705
|
*/
|
|
8705
|
-
declare function
|
|
8706
|
-
/**
|
|
8707
|
-
* Largest bin id whose Q64.64 price is ≤ `priceQ64`. Exact inverse of
|
|
8708
|
-
* `getPriceFromId` via binary search — no on-chain equivalent exists; the
|
|
8709
|
-
* program only ever takes `active_id` as input.
|
|
8710
|
-
*
|
|
8711
|
-
* Saturates to MIN_BIN_ID / MAX_BIN_ID when `priceQ64` is out of representable
|
|
8712
|
-
* range.
|
|
8713
|
-
*/
|
|
8714
|
-
declare function getIdFromPrice(priceQ64: bigint, binStep: number): number;
|
|
8715
|
-
/**
|
|
8716
|
-
* Convert a human-scale price (Number) into a Q64.64 raw lamport-ratio price.
|
|
8717
|
-
*
|
|
8718
|
-
* Lossy: bounded by Number's ~16-digit mantissa. For exact pipelines, work in
|
|
8719
|
-
* Q64.64 directly via {@link getPriceFromId} / {@link getIdFromPrice}.
|
|
8720
|
-
*/
|
|
8721
|
-
declare function priceToPriceQ64(price: number, decimalsX: number, decimalsY: number): bigint;
|
|
8722
|
-
/**
|
|
8723
|
-
* Convert a Q64.64 raw lamport-ratio price into a human-scale Number.
|
|
8724
|
-
*
|
|
8725
|
-
* Lossy by Number precision; use only for display or for round-tripping when
|
|
8726
|
-
* exact equality is not required.
|
|
8727
|
-
*/
|
|
8728
|
-
declare function priceQ64ToPrice(priceQ64: bigint, decimalsX: number, decimalsY: number): number;
|
|
8729
|
-
declare function priceToBinId(price: number, binStep: number, decimalsX: number, decimalsY: number): number;
|
|
8730
|
-
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;
|
|
8731
8707
|
declare function binIdToBinArrayIndex(binId: number): bigint;
|
|
8732
8708
|
declare function binArrayIndexToBinIdRange(index: bigint | number): {
|
|
8733
8709
|
lower: number;
|
|
8734
8710
|
upper: number;
|
|
8735
8711
|
};
|
|
8736
8712
|
|
|
8737
|
-
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, 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, 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, powQ64, priceQ64ToPrice, priceToBinId, priceToPriceQ64 };
|
|
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
|
@@ -8689,49 +8689,25 @@ declare function findPresetParameterPda(seeds: {
|
|
|
8689
8689
|
|
|
8690
8690
|
declare const MAX_BIN_PER_ARRAY = 70;
|
|
8691
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;
|
|
8692
8696
|
declare const MIN_BIN_ID = -443636;
|
|
8693
8697
|
declare const MAX_BIN_ID = 443636;
|
|
8694
8698
|
declare const ONE_Q64: bigint;
|
|
8695
8699
|
/**
|
|
8696
|
-
*
|
|
8697
|
-
* Returns `null` on overflow (mirrors Rust's `Option<u128>`).
|
|
8700
|
+
* Convert a human-scale price (number) into a bin id.
|
|
8698
8701
|
*/
|
|
8699
|
-
declare function
|
|
8702
|
+
declare function priceToBinId(price: string | number, binStep: number, min: boolean, decimalsX?: number, decimalsY?: number): number;
|
|
8700
8703
|
/**
|
|
8701
|
-
*
|
|
8702
|
-
* Returns the on-chain raw price (lamport_Y / lamport_X) as a Q64.64 u128.
|
|
8703
|
-
* Throws if the (binId, binStep) combination overflows the fixed-point range.
|
|
8704
|
+
* Convert a bin id to a human-scale price (number).
|
|
8704
8705
|
*/
|
|
8705
|
-
declare function
|
|
8706
|
-
/**
|
|
8707
|
-
* Largest bin id whose Q64.64 price is ≤ `priceQ64`. Exact inverse of
|
|
8708
|
-
* `getPriceFromId` via binary search — no on-chain equivalent exists; the
|
|
8709
|
-
* program only ever takes `active_id` as input.
|
|
8710
|
-
*
|
|
8711
|
-
* Saturates to MIN_BIN_ID / MAX_BIN_ID when `priceQ64` is out of representable
|
|
8712
|
-
* range.
|
|
8713
|
-
*/
|
|
8714
|
-
declare function getIdFromPrice(priceQ64: bigint, binStep: number): number;
|
|
8715
|
-
/**
|
|
8716
|
-
* Convert a human-scale price (Number) into a Q64.64 raw lamport-ratio price.
|
|
8717
|
-
*
|
|
8718
|
-
* Lossy: bounded by Number's ~16-digit mantissa. For exact pipelines, work in
|
|
8719
|
-
* Q64.64 directly via {@link getPriceFromId} / {@link getIdFromPrice}.
|
|
8720
|
-
*/
|
|
8721
|
-
declare function priceToPriceQ64(price: number, decimalsX: number, decimalsY: number): bigint;
|
|
8722
|
-
/**
|
|
8723
|
-
* Convert a Q64.64 raw lamport-ratio price into a human-scale Number.
|
|
8724
|
-
*
|
|
8725
|
-
* Lossy by Number precision; use only for display or for round-tripping when
|
|
8726
|
-
* exact equality is not required.
|
|
8727
|
-
*/
|
|
8728
|
-
declare function priceQ64ToPrice(priceQ64: bigint, decimalsX: number, decimalsY: number): number;
|
|
8729
|
-
declare function priceToBinId(price: number, binStep: number, decimalsX: number, decimalsY: number): number;
|
|
8730
|
-
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;
|
|
8731
8707
|
declare function binIdToBinArrayIndex(binId: number): bigint;
|
|
8732
8708
|
declare function binArrayIndexToBinIdRange(index: bigint | number): {
|
|
8733
8709
|
lower: number;
|
|
8734
8710
|
upper: number;
|
|
8735
8711
|
};
|
|
8736
8712
|
|
|
8737
|
-
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, 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, 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, powQ64, priceQ64ToPrice, priceToBinId, priceToPriceQ64 };
|
|
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,
|
|
@@ -536,7 +540,6 @@ __export(index_exports, {
|
|
|
536
540
|
getGoToABinInstructionDataCodec: () => getGoToABinInstructionDataCodec,
|
|
537
541
|
getGoToABinInstructionDataDecoder: () => getGoToABinInstructionDataDecoder,
|
|
538
542
|
getGoToABinInstructionDataEncoder: () => getGoToABinInstructionDataEncoder,
|
|
539
|
-
getIdFromPrice: () => getIdFromPrice,
|
|
540
543
|
getIncreaseOracleLengthDiscriminatorBytes: () => getIncreaseOracleLengthDiscriminatorBytes,
|
|
541
544
|
getIncreaseOracleLengthInstruction: () => getIncreaseOracleLengthInstruction,
|
|
542
545
|
getIncreaseOracleLengthInstructionAsync: () => getIncreaseOracleLengthInstructionAsync,
|
|
@@ -704,7 +707,6 @@ __export(index_exports, {
|
|
|
704
707
|
getPresetParameterDiscriminatorBytes: () => getPresetParameterDiscriminatorBytes,
|
|
705
708
|
getPresetParameterEncoder: () => getPresetParameterEncoder,
|
|
706
709
|
getPresetParameterSize: () => getPresetParameterSize,
|
|
707
|
-
getPriceFromId: () => getPriceFromId,
|
|
708
710
|
getProtocolFeeCodec: () => getProtocolFeeCodec,
|
|
709
711
|
getProtocolFeeDecoder: () => getProtocolFeeDecoder,
|
|
710
712
|
getProtocolFeeEncoder: () => getProtocolFeeEncoder,
|
|
@@ -992,10 +994,7 @@ __export(index_exports, {
|
|
|
992
994
|
parseWithdrawIneligibleRewardInstruction: () => parseWithdrawIneligibleRewardInstruction,
|
|
993
995
|
parseWithdrawProtocolFeeInstruction: () => parseWithdrawProtocolFeeInstruction,
|
|
994
996
|
parseZapProtocolFeeInstruction: () => parseZapProtocolFeeInstruction,
|
|
995
|
-
|
|
996
|
-
priceQ64ToPrice: () => priceQ64ToPrice,
|
|
997
|
-
priceToBinId: () => priceToBinId,
|
|
998
|
-
priceToPriceQ64: () => priceToPriceQ64
|
|
997
|
+
priceToBinId: () => priceToBinId
|
|
999
998
|
});
|
|
1000
999
|
module.exports = __toCommonJS(index_exports);
|
|
1001
1000
|
|
|
@@ -15985,91 +15984,22 @@ async function findPresetParameterPda(seeds, config = {}) {
|
|
|
15985
15984
|
// src/math.ts
|
|
15986
15985
|
var MAX_BIN_PER_ARRAY = 70;
|
|
15987
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;
|
|
15988
15991
|
var MIN_BIN_ID = -443636;
|
|
15989
15992
|
var MAX_BIN_ID = 443636;
|
|
15990
15993
|
var ONE_Q64 = 1n << 64n;
|
|
15991
|
-
|
|
15992
|
-
|
|
15993
|
-
|
|
15994
|
-
const
|
|
15995
|
-
|
|
15996
|
-
return product;
|
|
15997
|
-
}
|
|
15998
|
-
function powQ64(base, exp) {
|
|
15999
|
-
let invert = exp < 0;
|
|
16000
|
-
if (exp === 0) return ONE_Q64;
|
|
16001
|
-
const e = invert ? -exp : exp;
|
|
16002
|
-
if (e >= MAX_EXPONENTIAL) return null;
|
|
16003
|
-
let squaredBase = base;
|
|
16004
|
-
let result = ONE_Q64;
|
|
16005
|
-
if (squaredBase >= result) {
|
|
16006
|
-
squaredBase = U128_MAX / squaredBase;
|
|
16007
|
-
invert = !invert;
|
|
16008
|
-
}
|
|
16009
|
-
for (let bit = 0; bit < 19; bit++) {
|
|
16010
|
-
if ((e & 1 << bit) !== 0) {
|
|
16011
|
-
const m = checkedMul(result, squaredBase);
|
|
16012
|
-
if (m === null) return null;
|
|
16013
|
-
result = m >> 64n;
|
|
16014
|
-
}
|
|
16015
|
-
if (bit < 18) {
|
|
16016
|
-
const sq = checkedMul(squaredBase, squaredBase);
|
|
16017
|
-
if (sq === null) return null;
|
|
16018
|
-
squaredBase = sq >> 64n;
|
|
16019
|
-
}
|
|
16020
|
-
}
|
|
16021
|
-
if (result === 0n) return null;
|
|
16022
|
-
if (invert) result = U128_MAX / result;
|
|
16023
|
-
return result;
|
|
16024
|
-
}
|
|
16025
|
-
function getPriceFromId(binId, binStep) {
|
|
16026
|
-
const bps = (BigInt(binStep) << 64n) / BigInt(BASIS_POINT_MAX);
|
|
16027
|
-
const base = ONE_Q64 + bps;
|
|
16028
|
-
const result = powQ64(base, binId);
|
|
16029
|
-
if (result === null) {
|
|
16030
|
-
throw new Error(`getPriceFromId overflow: binId=${binId}, binStep=${binStep}`);
|
|
16031
|
-
}
|
|
16032
|
-
return result;
|
|
16033
|
-
}
|
|
16034
|
-
function getIdFromPrice(priceQ64, binStep) {
|
|
16035
|
-
if (priceQ64 <= 0n) return MIN_BIN_ID;
|
|
16036
|
-
const bps = (BigInt(binStep) << 64n) / BigInt(BASIS_POINT_MAX);
|
|
16037
|
-
const base = ONE_Q64 + bps;
|
|
16038
|
-
let lo = MIN_BIN_ID;
|
|
16039
|
-
let hi = MAX_BIN_ID;
|
|
16040
|
-
while (lo < hi) {
|
|
16041
|
-
const mid = lo + Math.ceil((hi - lo) / 2);
|
|
16042
|
-
const p = powQ64(base, mid);
|
|
16043
|
-
if (p === null) {
|
|
16044
|
-
if (mid > 0) hi = mid - 1;
|
|
16045
|
-
else lo = mid;
|
|
16046
|
-
} else if (p > priceQ64) {
|
|
16047
|
-
hi = mid - 1;
|
|
16048
|
-
} else {
|
|
16049
|
-
lo = mid;
|
|
16050
|
-
}
|
|
16051
|
-
}
|
|
16052
|
-
return lo;
|
|
16053
|
-
}
|
|
16054
|
-
var PRICE_PRECISION = 18;
|
|
16055
|
-
var PRICE_SCALE = 10n ** BigInt(PRICE_PRECISION);
|
|
16056
|
-
function priceToPriceQ64(price, decimalsX, decimalsY) {
|
|
16057
|
-
if (price <= 0) {
|
|
16058
|
-
throw new Error(`priceF64ToQ64 requires a positive price, got ${price}`);
|
|
16059
|
-
}
|
|
16060
|
-
const scaled = BigInt(Math.round(price * Number(PRICE_SCALE)));
|
|
16061
|
-
return scaled * 10n ** BigInt(decimalsX) * ONE_Q64 / (10n ** BigInt(decimalsY) * PRICE_SCALE);
|
|
16062
|
-
}
|
|
16063
|
-
function priceQ64ToPrice(priceQ64, decimalsX, decimalsY) {
|
|
16064
|
-
const numerator = priceQ64 * 10n ** BigInt(decimalsY) * PRICE_SCALE;
|
|
16065
|
-
const denominator = ONE_Q64 * 10n ** BigInt(decimalsX);
|
|
16066
|
-
return Number(numerator / denominator) / Number(PRICE_SCALE);
|
|
16067
|
-
}
|
|
16068
|
-
function priceToBinId(price, binStep, decimalsX, decimalsY) {
|
|
16069
|
-
return getIdFromPrice(priceToPriceQ64(price, 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);
|
|
16070
15999
|
}
|
|
16071
16000
|
function binIdToPrice(binId, binStep, decimalsX, decimalsY) {
|
|
16072
|
-
|
|
16001
|
+
const poolPrice = (1 + binStep / BASIS_POINT_MAX) ** binId;
|
|
16002
|
+
return poolPrice / 10 ** ((decimalsY ?? 0) - (decimalsX ?? 0));
|
|
16073
16003
|
}
|
|
16074
16004
|
function binIdToBinArrayIndex(binId) {
|
|
16075
16005
|
return BigInt(Math.floor(binId / MAX_BIN_PER_ARRAY));
|
|
@@ -16252,11 +16182,15 @@ function binArrayIndexToBinIdRange(index) {
|
|
|
16252
16182
|
LbClmmInstruction,
|
|
16253
16183
|
MAX_BIN_ID,
|
|
16254
16184
|
MAX_BIN_PER_ARRAY,
|
|
16185
|
+
MAX_BIN_STEP,
|
|
16186
|
+
MAX_RESIZE_LENGTH,
|
|
16255
16187
|
MIN_BIN_ID,
|
|
16188
|
+
NUM_REWARDS,
|
|
16256
16189
|
ONE_Q64,
|
|
16257
16190
|
OPERATOR_DISCRIMINATOR,
|
|
16258
16191
|
ORACLE_DISCRIMINATOR,
|
|
16259
16192
|
PLACE_LIMIT_ORDER_DISCRIMINATOR,
|
|
16193
|
+
POSITION_MAX_LENGTH,
|
|
16260
16194
|
POSITION_V2_DISCRIMINATOR,
|
|
16261
16195
|
PRESET_PARAMETER2_DISCRIMINATOR,
|
|
16262
16196
|
PRESET_PARAMETER2_SEED,
|
|
@@ -16598,7 +16532,6 @@ function binArrayIndexToBinIdRange(index) {
|
|
|
16598
16532
|
getGoToABinInstructionDataCodec,
|
|
16599
16533
|
getGoToABinInstructionDataDecoder,
|
|
16600
16534
|
getGoToABinInstructionDataEncoder,
|
|
16601
|
-
getIdFromPrice,
|
|
16602
16535
|
getIncreaseOracleLengthDiscriminatorBytes,
|
|
16603
16536
|
getIncreaseOracleLengthInstruction,
|
|
16604
16537
|
getIncreaseOracleLengthInstructionAsync,
|
|
@@ -16766,7 +16699,6 @@ function binArrayIndexToBinIdRange(index) {
|
|
|
16766
16699
|
getPresetParameterDiscriminatorBytes,
|
|
16767
16700
|
getPresetParameterEncoder,
|
|
16768
16701
|
getPresetParameterSize,
|
|
16769
|
-
getPriceFromId,
|
|
16770
16702
|
getProtocolFeeCodec,
|
|
16771
16703
|
getProtocolFeeDecoder,
|
|
16772
16704
|
getProtocolFeeEncoder,
|
|
@@ -17054,8 +16986,5 @@ function binArrayIndexToBinIdRange(index) {
|
|
|
17054
16986
|
parseWithdrawIneligibleRewardInstruction,
|
|
17055
16987
|
parseWithdrawProtocolFeeInstruction,
|
|
17056
16988
|
parseZapProtocolFeeInstruction,
|
|
17057
|
-
|
|
17058
|
-
priceQ64ToPrice,
|
|
17059
|
-
priceToBinId,
|
|
17060
|
-
priceToPriceQ64
|
|
16989
|
+
priceToBinId
|
|
17061
16990
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -16442,91 +16442,22 @@ async function findPresetParameterPda(seeds, config = {}) {
|
|
|
16442
16442
|
// src/math.ts
|
|
16443
16443
|
var MAX_BIN_PER_ARRAY = 70;
|
|
16444
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;
|
|
16445
16449
|
var MIN_BIN_ID = -443636;
|
|
16446
16450
|
var MAX_BIN_ID = 443636;
|
|
16447
16451
|
var ONE_Q64 = 1n << 64n;
|
|
16448
|
-
|
|
16449
|
-
|
|
16450
|
-
|
|
16451
|
-
const
|
|
16452
|
-
|
|
16453
|
-
return product;
|
|
16454
|
-
}
|
|
16455
|
-
function powQ64(base, exp) {
|
|
16456
|
-
let invert = exp < 0;
|
|
16457
|
-
if (exp === 0) return ONE_Q64;
|
|
16458
|
-
const e = invert ? -exp : exp;
|
|
16459
|
-
if (e >= MAX_EXPONENTIAL) return null;
|
|
16460
|
-
let squaredBase = base;
|
|
16461
|
-
let result = ONE_Q64;
|
|
16462
|
-
if (squaredBase >= result) {
|
|
16463
|
-
squaredBase = U128_MAX / squaredBase;
|
|
16464
|
-
invert = !invert;
|
|
16465
|
-
}
|
|
16466
|
-
for (let bit = 0; bit < 19; bit++) {
|
|
16467
|
-
if ((e & 1 << bit) !== 0) {
|
|
16468
|
-
const m = checkedMul(result, squaredBase);
|
|
16469
|
-
if (m === null) return null;
|
|
16470
|
-
result = m >> 64n;
|
|
16471
|
-
}
|
|
16472
|
-
if (bit < 18) {
|
|
16473
|
-
const sq = checkedMul(squaredBase, squaredBase);
|
|
16474
|
-
if (sq === null) return null;
|
|
16475
|
-
squaredBase = sq >> 64n;
|
|
16476
|
-
}
|
|
16477
|
-
}
|
|
16478
|
-
if (result === 0n) return null;
|
|
16479
|
-
if (invert) result = U128_MAX / result;
|
|
16480
|
-
return result;
|
|
16481
|
-
}
|
|
16482
|
-
function getPriceFromId(binId, binStep) {
|
|
16483
|
-
const bps = (BigInt(binStep) << 64n) / BigInt(BASIS_POINT_MAX);
|
|
16484
|
-
const base = ONE_Q64 + bps;
|
|
16485
|
-
const result = powQ64(base, binId);
|
|
16486
|
-
if (result === null) {
|
|
16487
|
-
throw new Error(`getPriceFromId overflow: binId=${binId}, binStep=${binStep}`);
|
|
16488
|
-
}
|
|
16489
|
-
return result;
|
|
16490
|
-
}
|
|
16491
|
-
function getIdFromPrice(priceQ64, binStep) {
|
|
16492
|
-
if (priceQ64 <= 0n) return MIN_BIN_ID;
|
|
16493
|
-
const bps = (BigInt(binStep) << 64n) / BigInt(BASIS_POINT_MAX);
|
|
16494
|
-
const base = ONE_Q64 + bps;
|
|
16495
|
-
let lo = MIN_BIN_ID;
|
|
16496
|
-
let hi = MAX_BIN_ID;
|
|
16497
|
-
while (lo < hi) {
|
|
16498
|
-
const mid = lo + Math.ceil((hi - lo) / 2);
|
|
16499
|
-
const p = powQ64(base, mid);
|
|
16500
|
-
if (p === null) {
|
|
16501
|
-
if (mid > 0) hi = mid - 1;
|
|
16502
|
-
else lo = mid;
|
|
16503
|
-
} else if (p > priceQ64) {
|
|
16504
|
-
hi = mid - 1;
|
|
16505
|
-
} else {
|
|
16506
|
-
lo = mid;
|
|
16507
|
-
}
|
|
16508
|
-
}
|
|
16509
|
-
return lo;
|
|
16510
|
-
}
|
|
16511
|
-
var PRICE_PRECISION = 18;
|
|
16512
|
-
var PRICE_SCALE = 10n ** BigInt(PRICE_PRECISION);
|
|
16513
|
-
function priceToPriceQ64(price, decimalsX, decimalsY) {
|
|
16514
|
-
if (price <= 0) {
|
|
16515
|
-
throw new Error(`priceF64ToQ64 requires a positive price, got ${price}`);
|
|
16516
|
-
}
|
|
16517
|
-
const scaled = BigInt(Math.round(price * Number(PRICE_SCALE)));
|
|
16518
|
-
return scaled * 10n ** BigInt(decimalsX) * ONE_Q64 / (10n ** BigInt(decimalsY) * PRICE_SCALE);
|
|
16519
|
-
}
|
|
16520
|
-
function priceQ64ToPrice(priceQ64, decimalsX, decimalsY) {
|
|
16521
|
-
const numerator = priceQ64 * 10n ** BigInt(decimalsY) * PRICE_SCALE;
|
|
16522
|
-
const denominator = ONE_Q64 * 10n ** BigInt(decimalsX);
|
|
16523
|
-
return Number(numerator / denominator) / Number(PRICE_SCALE);
|
|
16524
|
-
}
|
|
16525
|
-
function priceToBinId(price, binStep, decimalsX, decimalsY) {
|
|
16526
|
-
return getIdFromPrice(priceToPriceQ64(price, 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);
|
|
16527
16457
|
}
|
|
16528
16458
|
function binIdToPrice(binId, binStep, decimalsX, decimalsY) {
|
|
16529
|
-
|
|
16459
|
+
const poolPrice = (1 + binStep / BASIS_POINT_MAX) ** binId;
|
|
16460
|
+
return poolPrice / 10 ** ((decimalsY ?? 0) - (decimalsX ?? 0));
|
|
16530
16461
|
}
|
|
16531
16462
|
function binIdToBinArrayIndex(binId) {
|
|
16532
16463
|
return BigInt(Math.floor(binId / MAX_BIN_PER_ARRAY));
|
|
@@ -16708,11 +16639,15 @@ export {
|
|
|
16708
16639
|
LbClmmInstruction,
|
|
16709
16640
|
MAX_BIN_ID,
|
|
16710
16641
|
MAX_BIN_PER_ARRAY,
|
|
16642
|
+
MAX_BIN_STEP,
|
|
16643
|
+
MAX_RESIZE_LENGTH,
|
|
16711
16644
|
MIN_BIN_ID,
|
|
16645
|
+
NUM_REWARDS,
|
|
16712
16646
|
ONE_Q64,
|
|
16713
16647
|
OPERATOR_DISCRIMINATOR,
|
|
16714
16648
|
ORACLE_DISCRIMINATOR,
|
|
16715
16649
|
PLACE_LIMIT_ORDER_DISCRIMINATOR,
|
|
16650
|
+
POSITION_MAX_LENGTH,
|
|
16716
16651
|
POSITION_V2_DISCRIMINATOR,
|
|
16717
16652
|
PRESET_PARAMETER2_DISCRIMINATOR,
|
|
16718
16653
|
PRESET_PARAMETER2_SEED,
|
|
@@ -17054,7 +16989,6 @@ export {
|
|
|
17054
16989
|
getGoToABinInstructionDataCodec,
|
|
17055
16990
|
getGoToABinInstructionDataDecoder,
|
|
17056
16991
|
getGoToABinInstructionDataEncoder,
|
|
17057
|
-
getIdFromPrice,
|
|
17058
16992
|
getIncreaseOracleLengthDiscriminatorBytes,
|
|
17059
16993
|
getIncreaseOracleLengthInstruction,
|
|
17060
16994
|
getIncreaseOracleLengthInstructionAsync,
|
|
@@ -17222,7 +17156,6 @@ export {
|
|
|
17222
17156
|
getPresetParameterDiscriminatorBytes,
|
|
17223
17157
|
getPresetParameterEncoder,
|
|
17224
17158
|
getPresetParameterSize,
|
|
17225
|
-
getPriceFromId,
|
|
17226
17159
|
getProtocolFeeCodec,
|
|
17227
17160
|
getProtocolFeeDecoder,
|
|
17228
17161
|
getProtocolFeeEncoder,
|
|
@@ -17510,8 +17443,5 @@ export {
|
|
|
17510
17443
|
parseWithdrawIneligibleRewardInstruction,
|
|
17511
17444
|
parseWithdrawProtocolFeeInstruction,
|
|
17512
17445
|
parseZapProtocolFeeInstruction,
|
|
17513
|
-
|
|
17514
|
-
priceQ64ToPrice,
|
|
17515
|
-
priceToBinId,
|
|
17516
|
-
priceToPriceQ64
|
|
17446
|
+
priceToBinId
|
|
17517
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.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
7
|
"main": "./dist/index.js",
|