@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
138 lines • 10.7 kB
TypeScript
/**
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
import { type Address, type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, type SolanaError } from '@solana/kit';
/** InvalidStartBinIndex: Invalid start bin index */
export declare const LB_CLMM_ERROR__INVALID_START_BIN_INDEX = 6000;
/** InvalidBinId: Invalid bin id */
export declare const LB_CLMM_ERROR__INVALID_BIN_ID = 6001;
/** InvalidInput: Invalid input data */
export declare const LB_CLMM_ERROR__INVALID_INPUT = 6002;
/** ExceededAmountSlippageTolerance: Exceeded amount slippage tolerance */
export declare const LB_CLMM_ERROR__EXCEEDED_AMOUNT_SLIPPAGE_TOLERANCE = 6003;
/** ExceededBinSlippageTolerance: Exceeded bin slippage tolerance */
export declare const LB_CLMM_ERROR__EXCEEDED_BIN_SLIPPAGE_TOLERANCE = 6004;
/** CompositionFactorFlawed: Composition factor flawed */
export declare const LB_CLMM_ERROR__COMPOSITION_FACTOR_FLAWED = 6005;
/** NonPresetBinStep: Non preset bin step */
export declare const LB_CLMM_ERROR__NON_PRESET_BIN_STEP = 6006;
/** ZeroLiquidity: Zero liquidity */
export declare const LB_CLMM_ERROR__ZERO_LIQUIDITY = 6007;
/** InvalidPosition: Invalid position */
export declare const LB_CLMM_ERROR__INVALID_POSITION = 6008;
/** BinArrayNotFound: Bin array not found */
export declare const LB_CLMM_ERROR__BIN_ARRAY_NOT_FOUND = 6009;
/** InvalidTokenMint: Invalid token mint */
export declare const LB_CLMM_ERROR__INVALID_TOKEN_MINT = 6010;
/** InvalidAccountForSingleDeposit: Invalid account for single deposit */
export declare const LB_CLMM_ERROR__INVALID_ACCOUNT_FOR_SINGLE_DEPOSIT = 6011;
/** PairInsufficientLiquidity: Pair insufficient liquidity */
export declare const LB_CLMM_ERROR__PAIR_INSUFFICIENT_LIQUIDITY = 6012;
/** InvalidFeeOwner: Invalid fee owner */
export declare const LB_CLMM_ERROR__INVALID_FEE_OWNER = 6013;
/** InvalidFeeWithdrawAmount: Invalid fee withdraw amount */
export declare const LB_CLMM_ERROR__INVALID_FEE_WITHDRAW_AMOUNT = 6014;
/** InvalidAdmin: Invalid admin */
export declare const LB_CLMM_ERROR__INVALID_ADMIN = 6015;
/** IdenticalFeeOwner: Identical fee owner */
export declare const LB_CLMM_ERROR__IDENTICAL_FEE_OWNER = 6016;
/** InvalidBps: Invalid basis point */
export declare const LB_CLMM_ERROR__INVALID_BPS = 6017;
/** MathOverflow: Math operation overflow */
export declare const LB_CLMM_ERROR__MATH_OVERFLOW = 6018;
/** TypeCastFailed: Type cast error */
export declare const LB_CLMM_ERROR__TYPE_CAST_FAILED = 6019;
/** InvalidRewardIndex: Invalid reward index */
export declare const LB_CLMM_ERROR__INVALID_REWARD_INDEX = 6020;
/** InvalidRewardDuration: Invalid reward duration */
export declare const LB_CLMM_ERROR__INVALID_REWARD_DURATION = 6021;
/** RewardInitialized: Reward already initialized */
export declare const LB_CLMM_ERROR__REWARD_INITIALIZED = 6022;
/** RewardUninitialized: Reward not initialized */
export declare const LB_CLMM_ERROR__REWARD_UNINITIALIZED = 6023;
/** IdenticalFunder: Identical funder */
export declare const LB_CLMM_ERROR__IDENTICAL_FUNDER = 6024;
/** RewardCampaignInProgress: Reward campaign in progress */
export declare const LB_CLMM_ERROR__REWARD_CAMPAIGN_IN_PROGRESS = 6025;
/** IdenticalRewardDuration: Reward duration is the same */
export declare const LB_CLMM_ERROR__IDENTICAL_REWARD_DURATION = 6026;
/** InvalidBinArray: Invalid bin array */
export declare const LB_CLMM_ERROR__INVALID_BIN_ARRAY = 6027;
/** NonContinuousBinArrays: Bin arrays must be continuous */
export declare const LB_CLMM_ERROR__NON_CONTINUOUS_BIN_ARRAYS = 6028;
/** InvalidRewardVault: Invalid reward vault */
export declare const LB_CLMM_ERROR__INVALID_REWARD_VAULT = 6029;
/** NonEmptyPosition: Position is not empty */
export declare const LB_CLMM_ERROR__NON_EMPTY_POSITION = 6030;
/** UnauthorizedAccess: Unauthorized access */
export declare const LB_CLMM_ERROR__UNAUTHORIZED_ACCESS = 6031;
/** InvalidFeeParameter: Invalid fee parameter */
export declare const LB_CLMM_ERROR__INVALID_FEE_PARAMETER = 6032;
/** MissingOracle: Missing oracle account */
export declare const LB_CLMM_ERROR__MISSING_ORACLE = 6033;
/** InsufficientSample: Insufficient observation sample */
export declare const LB_CLMM_ERROR__INSUFFICIENT_SAMPLE = 6034;
/** InvalidLookupTimestamp: Invalid lookup timestamp */
export declare const LB_CLMM_ERROR__INVALID_LOOKUP_TIMESTAMP = 6035;
/** BitmapExtensionAccountIsNotProvided: Bitmap extension account is not provided */
export declare const LB_CLMM_ERROR__BITMAP_EXTENSION_ACCOUNT_IS_NOT_PROVIDED = 6036;
/** CannotFindNonZeroLiquidityBinArrayId: Cannot find non-zero liquidity binArrayId */
export declare const LB_CLMM_ERROR__CANNOT_FIND_NON_ZERO_LIQUIDITY_BIN_ARRAY_ID = 6037;
/** BinIdOutOfBound: Bin id out of bound */
export declare const LB_CLMM_ERROR__BIN_ID_OUT_OF_BOUND = 6038;
/** InsufficientOutAmount: Insufficient amount in for minimum out */
export declare const LB_CLMM_ERROR__INSUFFICIENT_OUT_AMOUNT = 6039;
/** InvalidPositionWidth: Invalid position width */
export declare const LB_CLMM_ERROR__INVALID_POSITION_WIDTH = 6040;
/** ExcessiveFeeUpdate: Excessive fee update */
export declare const LB_CLMM_ERROR__EXCESSIVE_FEE_UPDATE = 6041;
/** PoolDisabled: Pool disabled */
export declare const LB_CLMM_ERROR__POOL_DISABLED = 6042;
/** InvalidPoolType: Invalid pool type */
export declare const LB_CLMM_ERROR__INVALID_POOL_TYPE = 6043;
/** ExceedMaxWhitelist: Whitelist for wallet is full */
export declare const LB_CLMM_ERROR__EXCEED_MAX_WHITELIST = 6044;
/** InvalidIndex: Invalid index */
export declare const LB_CLMM_ERROR__INVALID_INDEX = 6045;
/** RewardNotEnded: Reward not ended */
export declare const LB_CLMM_ERROR__REWARD_NOT_ENDED = 6046;
/** MustWithdrawnIneligibleReward: Must withdraw ineligible reward */
export declare const LB_CLMM_ERROR__MUST_WITHDRAWN_INELIGIBLE_REWARD = 6047;
/** UnauthorizedAddress: Unauthorized address */
export declare const LB_CLMM_ERROR__UNAUTHORIZED_ADDRESS = 6048;
/** OperatorsAreTheSame: Cannot update because operators are the same */
export declare const LB_CLMM_ERROR__OPERATORS_ARE_THE_SAME = 6049;
/** WithdrawToWrongTokenAccount: Withdraw to wrong token account */
export declare const LB_CLMM_ERROR__WITHDRAW_TO_WRONG_TOKEN_ACCOUNT = 6050;
/** WrongRentReceiver: Wrong rent receiver */
export declare const LB_CLMM_ERROR__WRONG_RENT_RECEIVER = 6051;
/** AlreadyPassActivationSlot: Already activated */
export declare const LB_CLMM_ERROR__ALREADY_PASS_ACTIVATION_SLOT = 6052;
/** LastSlotCannotBeSmallerThanActivateSlot: Last slot cannot be smaller than activate slot */
export declare const LB_CLMM_ERROR__LAST_SLOT_CANNOT_BE_SMALLER_THAN_ACTIVATE_SLOT = 6053;
/** ExceedMaxSwappedAmount: Swapped amount is exceeded max swapped amount */
export declare const LB_CLMM_ERROR__EXCEED_MAX_SWAPPED_AMOUNT = 6054;
/** InvalidStrategyParameters: Invalid strategy parameters */
export declare const LB_CLMM_ERROR__INVALID_STRATEGY_PARAMETERS = 6055;
/** LiquidityLocked: Liquidity locked */
export declare const LB_CLMM_ERROR__LIQUIDITY_LOCKED = 6056;
/** InvalidLockReleaseSlot: Invalid lock release slot */
export declare const LB_CLMM_ERROR__INVALID_LOCK_RELEASE_SLOT = 6057;
/** BinRangeIsNotEmpty: Bin range is not empty */
export declare const LB_CLMM_ERROR__BIN_RANGE_IS_NOT_EMPTY = 6058;
export type LbClmmError = typeof LB_CLMM_ERROR__ALREADY_PASS_ACTIVATION_SLOT | typeof LB_CLMM_ERROR__BIN_ARRAY_NOT_FOUND | typeof LB_CLMM_ERROR__BIN_ID_OUT_OF_BOUND | typeof LB_CLMM_ERROR__BIN_RANGE_IS_NOT_EMPTY | typeof LB_CLMM_ERROR__BITMAP_EXTENSION_ACCOUNT_IS_NOT_PROVIDED | typeof LB_CLMM_ERROR__CANNOT_FIND_NON_ZERO_LIQUIDITY_BIN_ARRAY_ID | typeof LB_CLMM_ERROR__COMPOSITION_FACTOR_FLAWED | typeof LB_CLMM_ERROR__EXCEEDED_AMOUNT_SLIPPAGE_TOLERANCE | typeof LB_CLMM_ERROR__EXCEEDED_BIN_SLIPPAGE_TOLERANCE | typeof LB_CLMM_ERROR__EXCEED_MAX_SWAPPED_AMOUNT | typeof LB_CLMM_ERROR__EXCEED_MAX_WHITELIST | typeof LB_CLMM_ERROR__EXCESSIVE_FEE_UPDATE | typeof LB_CLMM_ERROR__IDENTICAL_FEE_OWNER | typeof LB_CLMM_ERROR__IDENTICAL_FUNDER | typeof LB_CLMM_ERROR__IDENTICAL_REWARD_DURATION | typeof LB_CLMM_ERROR__INSUFFICIENT_OUT_AMOUNT | typeof LB_CLMM_ERROR__INSUFFICIENT_SAMPLE | typeof LB_CLMM_ERROR__INVALID_ACCOUNT_FOR_SINGLE_DEPOSIT | typeof LB_CLMM_ERROR__INVALID_ADMIN | typeof LB_CLMM_ERROR__INVALID_BIN_ARRAY | typeof LB_CLMM_ERROR__INVALID_BIN_ID | typeof LB_CLMM_ERROR__INVALID_BPS | typeof LB_CLMM_ERROR__INVALID_FEE_OWNER | typeof LB_CLMM_ERROR__INVALID_FEE_PARAMETER | typeof LB_CLMM_ERROR__INVALID_FEE_WITHDRAW_AMOUNT | typeof LB_CLMM_ERROR__INVALID_INDEX | typeof LB_CLMM_ERROR__INVALID_INPUT | typeof LB_CLMM_ERROR__INVALID_LOCK_RELEASE_SLOT | typeof LB_CLMM_ERROR__INVALID_LOOKUP_TIMESTAMP | typeof LB_CLMM_ERROR__INVALID_POOL_TYPE | typeof LB_CLMM_ERROR__INVALID_POSITION | typeof LB_CLMM_ERROR__INVALID_POSITION_WIDTH | typeof LB_CLMM_ERROR__INVALID_REWARD_DURATION | typeof LB_CLMM_ERROR__INVALID_REWARD_INDEX | typeof LB_CLMM_ERROR__INVALID_REWARD_VAULT | typeof LB_CLMM_ERROR__INVALID_START_BIN_INDEX | typeof LB_CLMM_ERROR__INVALID_STRATEGY_PARAMETERS | typeof LB_CLMM_ERROR__INVALID_TOKEN_MINT | typeof LB_CLMM_ERROR__LAST_SLOT_CANNOT_BE_SMALLER_THAN_ACTIVATE_SLOT | typeof LB_CLMM_ERROR__LIQUIDITY_LOCKED | typeof LB_CLMM_ERROR__MATH_OVERFLOW | typeof LB_CLMM_ERROR__MISSING_ORACLE | typeof LB_CLMM_ERROR__MUST_WITHDRAWN_INELIGIBLE_REWARD | typeof LB_CLMM_ERROR__NON_CONTINUOUS_BIN_ARRAYS | typeof LB_CLMM_ERROR__NON_EMPTY_POSITION | typeof LB_CLMM_ERROR__NON_PRESET_BIN_STEP | typeof LB_CLMM_ERROR__OPERATORS_ARE_THE_SAME | typeof LB_CLMM_ERROR__PAIR_INSUFFICIENT_LIQUIDITY | typeof LB_CLMM_ERROR__POOL_DISABLED | typeof LB_CLMM_ERROR__REWARD_CAMPAIGN_IN_PROGRESS | typeof LB_CLMM_ERROR__REWARD_INITIALIZED | typeof LB_CLMM_ERROR__REWARD_NOT_ENDED | typeof LB_CLMM_ERROR__REWARD_UNINITIALIZED | typeof LB_CLMM_ERROR__TYPE_CAST_FAILED | typeof LB_CLMM_ERROR__UNAUTHORIZED_ACCESS | typeof LB_CLMM_ERROR__UNAUTHORIZED_ADDRESS | typeof LB_CLMM_ERROR__WITHDRAW_TO_WRONG_TOKEN_ACCOUNT | typeof LB_CLMM_ERROR__WRONG_RENT_RECEIVER | typeof LB_CLMM_ERROR__ZERO_LIQUIDITY;
export declare function getLbClmmErrorMessage(code: LbClmmError): string;
export declare function isLbClmmError<TProgramErrorCode extends LbClmmError>(error: unknown, transactionMessage: {
instructions: Record<number, {
programAddress: Address;
}>;
}, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
context: Readonly<{
code: TProgramErrorCode;
}>;
}>;
//# sourceMappingURL=lbClmm.d.ts.map