import { Address, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, SolanaError } from "@solana/kit"; //#region src/generated/errors/cpAmm.d.ts /** MathOverflow: Math operation overflow */ declare const CP_AMM_ERROR__MATH_OVERFLOW = 6e3; /** InvalidFee: Invalid fee setup */ declare const CP_AMM_ERROR__INVALID_FEE = 6001; /** ExceededSlippage: Exceeded slippage tolerance */ declare const CP_AMM_ERROR__EXCEEDED_SLIPPAGE = 6002; /** PoolDisabled: Pool disabled */ declare const CP_AMM_ERROR__POOL_DISABLED = 6003; /** ExceedMaxFeeBps: Exceeded max fee bps */ declare const CP_AMM_ERROR__EXCEED_MAX_FEE_BPS = 6004; /** InvalidAdmin: Invalid admin */ declare const CP_AMM_ERROR__INVALID_ADMIN = 6005; /** AmountIsZero: Amount is zero */ declare const CP_AMM_ERROR__AMOUNT_IS_ZERO = 6006; /** TypeCastFailed: Type cast error */ declare const CP_AMM_ERROR__TYPE_CAST_FAILED = 6007; /** UnableToModifyActivationPoint: Unable to modify activation point */ declare const CP_AMM_ERROR__UNABLE_TO_MODIFY_ACTIVATION_POINT = 6008; /** InvalidAuthorityToCreateThePool: Invalid authority to create the pool */ declare const CP_AMM_ERROR__INVALID_AUTHORITY_TO_CREATE_THE_POOL = 6009; /** InvalidActivationType: Invalid activation type */ declare const CP_AMM_ERROR__INVALID_ACTIVATION_TYPE = 6010; /** InvalidActivationPoint: Invalid activation point */ declare const CP_AMM_ERROR__INVALID_ACTIVATION_POINT = 6011; /** InvalidQuoteMint: Quote token must be SOL,USDC */ declare const CP_AMM_ERROR__INVALID_QUOTE_MINT = 6012; /** InvalidFeeCurve: Invalid fee curve */ declare const CP_AMM_ERROR__INVALID_FEE_CURVE = 6013; /** InvalidPriceRange: Invalid Price Range */ declare const CP_AMM_ERROR__INVALID_PRICE_RANGE = 6014; /** PriceRangeViolation: Trade is over price range */ declare const CP_AMM_ERROR__PRICE_RANGE_VIOLATION = 6015; /** InvalidParameters: Invalid parameters */ declare const CP_AMM_ERROR__INVALID_PARAMETERS = 6016; /** InvalidCollectFeeMode: Invalid collect fee mode */ declare const CP_AMM_ERROR__INVALID_COLLECT_FEE_MODE = 6017; /** InvalidInput: Invalid input */ declare const CP_AMM_ERROR__INVALID_INPUT = 6018; /** CannotCreateTokenBadgeOnSupportedMint: Cannot create token badge on supported mint */ declare const CP_AMM_ERROR__CANNOT_CREATE_TOKEN_BADGE_ON_SUPPORTED_MINT = 6019; /** InvalidTokenBadge: Invalid token badge */ declare const CP_AMM_ERROR__INVALID_TOKEN_BADGE = 6020; /** InvalidMinimumLiquidity: Invalid minimum liquidity */ declare const CP_AMM_ERROR__INVALID_MINIMUM_LIQUIDITY = 6021; /** InvalidVestingInfo: Invalid vesting information */ declare const CP_AMM_ERROR__INVALID_VESTING_INFO = 6022; /** InsufficientLiquidity: Insufficient liquidity */ declare const CP_AMM_ERROR__INSUFFICIENT_LIQUIDITY = 6023; /** InvalidVestingAccount: Invalid vesting account */ declare const CP_AMM_ERROR__INVALID_VESTING_ACCOUNT = 6024; /** InvalidPoolStatus: Invalid pool status */ declare const CP_AMM_ERROR__INVALID_POOL_STATUS = 6025; /** UnsupportNativeMintToken2022: Unsupported native mint token2022 */ declare const CP_AMM_ERROR__UNSUPPORT_NATIVE_MINT_TOKEN2022 = 6026; /** InvalidRewardIndex: Invalid reward index */ declare const CP_AMM_ERROR__INVALID_REWARD_INDEX = 6027; /** InvalidRewardDuration: Invalid reward duration */ declare const CP_AMM_ERROR__INVALID_REWARD_DURATION = 6028; /** RewardInitialized: Reward already initialized */ declare const CP_AMM_ERROR__REWARD_INITIALIZED = 6029; /** RewardUninitialized: Reward not initialized */ declare const CP_AMM_ERROR__REWARD_UNINITIALIZED = 6030; /** InvalidRewardVault: Invalid reward vault */ declare const CP_AMM_ERROR__INVALID_REWARD_VAULT = 6031; /** MustWithdrawnIneligibleReward: Must withdraw ineligible reward */ declare const CP_AMM_ERROR__MUST_WITHDRAWN_INELIGIBLE_REWARD = 6032; /** IdenticalRewardDuration: Reward duration is the same */ declare const CP_AMM_ERROR__IDENTICAL_REWARD_DURATION = 6033; /** RewardCampaignInProgress: Reward campaign in progress */ declare const CP_AMM_ERROR__REWARD_CAMPAIGN_IN_PROGRESS = 6034; /** IdenticalFunder: Identical funder */ declare const CP_AMM_ERROR__IDENTICAL_FUNDER = 6035; /** InvalidFunder: Invalid funder */ declare const CP_AMM_ERROR__INVALID_FUNDER = 6036; /** RewardNotEnded: Reward not ended */ declare const CP_AMM_ERROR__REWARD_NOT_ENDED = 6037; /** FeeInverseIsIncorrect: Fee inverse is incorrect */ declare const CP_AMM_ERROR__FEE_INVERSE_IS_INCORRECT = 6038; /** PositionIsNotEmpty: Position is not empty */ declare const CP_AMM_ERROR__POSITION_IS_NOT_EMPTY = 6039; /** InvalidPoolCreatorAuthority: Invalid pool creator authority */ declare const CP_AMM_ERROR__INVALID_POOL_CREATOR_AUTHORITY = 6040; /** InvalidConfigType: Invalid config type */ declare const CP_AMM_ERROR__INVALID_CONFIG_TYPE = 6041; /** InvalidPoolCreator: Invalid pool creator */ declare const CP_AMM_ERROR__INVALID_POOL_CREATOR = 6042; /** RewardVaultFrozenSkipRequired: Reward vault is frozen, must skip reward to proceed */ declare const CP_AMM_ERROR__REWARD_VAULT_FROZEN_SKIP_REQUIRED = 6043; /** InvalidSplitPositionParameters: Invalid parameters for split position */ declare const CP_AMM_ERROR__INVALID_SPLIT_POSITION_PARAMETERS = 6044; /** UnsupportPositionHasVestingLock: Unsupported split position has vesting lock */ declare const CP_AMM_ERROR__UNSUPPORT_POSITION_HAS_VESTING_LOCK = 6045; /** SamePosition: Same position */ declare const CP_AMM_ERROR__SAME_POSITION = 6046; /** InvalidBaseFeeMode: Invalid base fee mode */ declare const CP_AMM_ERROR__INVALID_BASE_FEE_MODE = 6047; /** InvalidFeeRateLimiter: Invalid fee rate limiter */ declare const CP_AMM_ERROR__INVALID_FEE_RATE_LIMITER = 6048; /** FailToValidateSingleSwapInstruction: Fail to validate single swap instruction in rate limiter */ declare const CP_AMM_ERROR__FAIL_TO_VALIDATE_SINGLE_SWAP_INSTRUCTION = 6049; /** InvalidFeeScheduler: Invalid fee scheduler */ declare const CP_AMM_ERROR__INVALID_FEE_SCHEDULER = 6050; /** UndeterminedError: Undetermined error */ declare const CP_AMM_ERROR__UNDETERMINED_ERROR = 6051; /** InvalidPoolVersion: Invalid pool version */ declare const CP_AMM_ERROR__INVALID_POOL_VERSION = 6052; type CpAmmError = typeof CP_AMM_ERROR__AMOUNT_IS_ZERO | typeof CP_AMM_ERROR__CANNOT_CREATE_TOKEN_BADGE_ON_SUPPORTED_MINT | typeof CP_AMM_ERROR__EXCEEDED_SLIPPAGE | typeof CP_AMM_ERROR__EXCEED_MAX_FEE_BPS | typeof CP_AMM_ERROR__FAIL_TO_VALIDATE_SINGLE_SWAP_INSTRUCTION | typeof CP_AMM_ERROR__FEE_INVERSE_IS_INCORRECT | typeof CP_AMM_ERROR__IDENTICAL_FUNDER | typeof CP_AMM_ERROR__IDENTICAL_REWARD_DURATION | typeof CP_AMM_ERROR__INSUFFICIENT_LIQUIDITY | typeof CP_AMM_ERROR__INVALID_ACTIVATION_POINT | typeof CP_AMM_ERROR__INVALID_ACTIVATION_TYPE | typeof CP_AMM_ERROR__INVALID_ADMIN | typeof CP_AMM_ERROR__INVALID_AUTHORITY_TO_CREATE_THE_POOL | typeof CP_AMM_ERROR__INVALID_BASE_FEE_MODE | typeof CP_AMM_ERROR__INVALID_COLLECT_FEE_MODE | typeof CP_AMM_ERROR__INVALID_CONFIG_TYPE | typeof CP_AMM_ERROR__INVALID_FEE | typeof CP_AMM_ERROR__INVALID_FEE_CURVE | typeof CP_AMM_ERROR__INVALID_FEE_RATE_LIMITER | typeof CP_AMM_ERROR__INVALID_FEE_SCHEDULER | typeof CP_AMM_ERROR__INVALID_FUNDER | typeof CP_AMM_ERROR__INVALID_INPUT | typeof CP_AMM_ERROR__INVALID_MINIMUM_LIQUIDITY | typeof CP_AMM_ERROR__INVALID_PARAMETERS | typeof CP_AMM_ERROR__INVALID_POOL_CREATOR | typeof CP_AMM_ERROR__INVALID_POOL_CREATOR_AUTHORITY | typeof CP_AMM_ERROR__INVALID_POOL_STATUS | typeof CP_AMM_ERROR__INVALID_POOL_VERSION | typeof CP_AMM_ERROR__INVALID_PRICE_RANGE | typeof CP_AMM_ERROR__INVALID_QUOTE_MINT | typeof CP_AMM_ERROR__INVALID_REWARD_DURATION | typeof CP_AMM_ERROR__INVALID_REWARD_INDEX | typeof CP_AMM_ERROR__INVALID_REWARD_VAULT | typeof CP_AMM_ERROR__INVALID_SPLIT_POSITION_PARAMETERS | typeof CP_AMM_ERROR__INVALID_TOKEN_BADGE | typeof CP_AMM_ERROR__INVALID_VESTING_ACCOUNT | typeof CP_AMM_ERROR__INVALID_VESTING_INFO | typeof CP_AMM_ERROR__MATH_OVERFLOW | typeof CP_AMM_ERROR__MUST_WITHDRAWN_INELIGIBLE_REWARD | typeof CP_AMM_ERROR__POOL_DISABLED | typeof CP_AMM_ERROR__POSITION_IS_NOT_EMPTY | typeof CP_AMM_ERROR__PRICE_RANGE_VIOLATION | typeof CP_AMM_ERROR__REWARD_CAMPAIGN_IN_PROGRESS | typeof CP_AMM_ERROR__REWARD_INITIALIZED | typeof CP_AMM_ERROR__REWARD_NOT_ENDED | typeof CP_AMM_ERROR__REWARD_UNINITIALIZED | typeof CP_AMM_ERROR__REWARD_VAULT_FROZEN_SKIP_REQUIRED | typeof CP_AMM_ERROR__SAME_POSITION | typeof CP_AMM_ERROR__TYPE_CAST_FAILED | typeof CP_AMM_ERROR__UNABLE_TO_MODIFY_ACTIVATION_POINT | typeof CP_AMM_ERROR__UNDETERMINED_ERROR | typeof CP_AMM_ERROR__UNSUPPORT_NATIVE_MINT_TOKEN2022 | typeof CP_AMM_ERROR__UNSUPPORT_POSITION_HAS_VESTING_LOCK; declare function getCpAmmErrorMessage(code: CpAmmError): string; declare function isCpAmmError(error: unknown, transactionMessage: { instructions: Record; }, code?: TProgramErrorCode): error is SolanaError & Readonly<{ context: Readonly<{ code: TProgramErrorCode; }>; }>; //#endregion export { CP_AMM_ERROR__AMOUNT_IS_ZERO, CP_AMM_ERROR__CANNOT_CREATE_TOKEN_BADGE_ON_SUPPORTED_MINT, CP_AMM_ERROR__EXCEEDED_SLIPPAGE, CP_AMM_ERROR__EXCEED_MAX_FEE_BPS, CP_AMM_ERROR__FAIL_TO_VALIDATE_SINGLE_SWAP_INSTRUCTION, CP_AMM_ERROR__FEE_INVERSE_IS_INCORRECT, CP_AMM_ERROR__IDENTICAL_FUNDER, CP_AMM_ERROR__IDENTICAL_REWARD_DURATION, CP_AMM_ERROR__INSUFFICIENT_LIQUIDITY, CP_AMM_ERROR__INVALID_ACTIVATION_POINT, CP_AMM_ERROR__INVALID_ACTIVATION_TYPE, CP_AMM_ERROR__INVALID_ADMIN, CP_AMM_ERROR__INVALID_AUTHORITY_TO_CREATE_THE_POOL, CP_AMM_ERROR__INVALID_BASE_FEE_MODE, CP_AMM_ERROR__INVALID_COLLECT_FEE_MODE, CP_AMM_ERROR__INVALID_CONFIG_TYPE, CP_AMM_ERROR__INVALID_FEE, CP_AMM_ERROR__INVALID_FEE_CURVE, CP_AMM_ERROR__INVALID_FEE_RATE_LIMITER, CP_AMM_ERROR__INVALID_FEE_SCHEDULER, CP_AMM_ERROR__INVALID_FUNDER, CP_AMM_ERROR__INVALID_INPUT, CP_AMM_ERROR__INVALID_MINIMUM_LIQUIDITY, CP_AMM_ERROR__INVALID_PARAMETERS, CP_AMM_ERROR__INVALID_POOL_CREATOR, CP_AMM_ERROR__INVALID_POOL_CREATOR_AUTHORITY, CP_AMM_ERROR__INVALID_POOL_STATUS, CP_AMM_ERROR__INVALID_POOL_VERSION, CP_AMM_ERROR__INVALID_PRICE_RANGE, CP_AMM_ERROR__INVALID_QUOTE_MINT, CP_AMM_ERROR__INVALID_REWARD_DURATION, CP_AMM_ERROR__INVALID_REWARD_INDEX, CP_AMM_ERROR__INVALID_REWARD_VAULT, CP_AMM_ERROR__INVALID_SPLIT_POSITION_PARAMETERS, CP_AMM_ERROR__INVALID_TOKEN_BADGE, CP_AMM_ERROR__INVALID_VESTING_ACCOUNT, CP_AMM_ERROR__INVALID_VESTING_INFO, CP_AMM_ERROR__MATH_OVERFLOW, CP_AMM_ERROR__MUST_WITHDRAWN_INELIGIBLE_REWARD, CP_AMM_ERROR__POOL_DISABLED, CP_AMM_ERROR__POSITION_IS_NOT_EMPTY, CP_AMM_ERROR__PRICE_RANGE_VIOLATION, CP_AMM_ERROR__REWARD_CAMPAIGN_IN_PROGRESS, CP_AMM_ERROR__REWARD_INITIALIZED, CP_AMM_ERROR__REWARD_NOT_ENDED, CP_AMM_ERROR__REWARD_UNINITIALIZED, CP_AMM_ERROR__REWARD_VAULT_FROZEN_SKIP_REQUIRED, CP_AMM_ERROR__SAME_POSITION, CP_AMM_ERROR__TYPE_CAST_FAILED, CP_AMM_ERROR__UNABLE_TO_MODIFY_ACTIVATION_POINT, CP_AMM_ERROR__UNDETERMINED_ERROR, CP_AMM_ERROR__UNSUPPORT_NATIVE_MINT_TOKEN2022, CP_AMM_ERROR__UNSUPPORT_POSITION_HAS_VESTING_LOCK, CpAmmError, getCpAmmErrorMessage, isCpAmmError }; //# sourceMappingURL=cpAmm.d.ts.map