/** * 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"; /** IntegerOverflow: Integer overflow */ export declare const SCOPE_ERROR__INTEGER_OVERFLOW = 6000; /** ConversionFailure: Conversion failure */ export declare const SCOPE_ERROR__CONVERSION_FAILURE = 6001; /** MathOverflow: Mathematical operation with overflow */ export declare const SCOPE_ERROR__MATH_OVERFLOW = 6002; /** OutOfRangeIntegralConversion: Out of range integral conversion attempted */ export declare const SCOPE_ERROR__OUT_OF_RANGE_INTEGRAL_CONVERSION = 6003; /** UnexpectedAccount: Unexpected account in instruction */ export declare const SCOPE_ERROR__UNEXPECTED_ACCOUNT = 6004; /** PriceNotValid: Price is not valid */ export declare const SCOPE_ERROR__PRICE_NOT_VALID = 6005; /** AccountsAndTokenMismatch: The number of tokens is different from the number of received accounts */ export declare const SCOPE_ERROR__ACCOUNTS_AND_TOKEN_MISMATCH = 6006; /** BadTokenNb: The token index received is out of range */ export declare const SCOPE_ERROR__BAD_TOKEN_NB = 6007; /** BadTokenType: The token type received is invalid */ export declare const SCOPE_ERROR__BAD_TOKEN_TYPE = 6008; /** SwitchboardV2Error: There was an error with the Switchboard V2 retrieval */ export declare const SCOPE_ERROR__SWITCHBOARD_V2_ERROR = 6009; /** InvalidAccountDiscriminator: Invalid account discriminator */ export declare const SCOPE_ERROR__INVALID_ACCOUNT_DISCRIMINATOR = 6010; /** UnableToDeserializeAccount: Unable to deserialize account */ export declare const SCOPE_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT = 6011; /** BadScopeChainOrPrices: Error while computing price with ScopeChain */ export declare const SCOPE_ERROR__BAD_SCOPE_CHAIN_OR_PRICES = 6012; /** RefreshInCPI: Refresh price instruction called in a CPI */ export declare const SCOPE_ERROR__REFRESH_IN_C_P_I = 6013; /** RefreshWithUnexpectedIxs: Refresh price instruction preceded by unexpected ixs */ export declare const SCOPE_ERROR__REFRESH_WITH_UNEXPECTED_IXS = 6014; /** InvalidUpdateSequenceOrAccounts: Invalid update sequence or accounts */ export declare const SCOPE_ERROR__INVALID_UPDATE_SEQUENCE_OR_ACCOUNTS = 6015; /** UnableToDerivePDA: Unable to derive PDA address */ export declare const SCOPE_ERROR__UNABLE_TO_DERIVE_P_D_A = 6016; /** BadTimestamp: Invalid timestamp */ export declare const SCOPE_ERROR__BAD_TIMESTAMP = 6017; /** BadSlot: Invalid slot */ export declare const SCOPE_ERROR__BAD_SLOT = 6018; /** PriceAccountNotExpected: Received a price account when none is expected */ export declare const SCOPE_ERROR__PRICE_ACCOUNT_NOT_EXPECTED = 6019; /** TwapSourceIndexOutOfRange: TWAP source index out of range */ export declare const SCOPE_ERROR__TWAP_SOURCE_INDEX_OUT_OF_RANGE = 6020; /** TwapSampleTooFrequent: TWAP sample is too close to the previous one */ export declare const SCOPE_ERROR__TWAP_SAMPLE_TOO_FREQUENT = 6021; /** UnexpectedJlpConfiguration: Unexpected JLP configuration */ export declare const SCOPE_ERROR__UNEXPECTED_JLP_CONFIGURATION = 6022; /** TwapNotEnoughSamplesInPeriod: Not enough price samples in period to compute TWAP */ export declare const SCOPE_ERROR__TWAP_NOT_ENOUGH_SAMPLES_IN_PERIOD = 6023; /** EmptyTokenList: The provided token list to refresh is empty */ export declare const SCOPE_ERROR__EMPTY_TOKEN_LIST = 6024; /** StakeFeeTooHigh: The stake pool fee is higher than the maximum allowed */ export declare const SCOPE_ERROR__STAKE_FEE_TOO_HIGH = 6025; /** KTokenUnderlyingPriceNotValid: Cannot get a valid price for the tokens composing the Ktoken */ export declare const SCOPE_ERROR__K_TOKEN_UNDERLYING_PRICE_NOT_VALID = 6026; /** KTokenHoldingsCalculationError: Error while computing the Ktoken pool holdings */ export declare const SCOPE_ERROR__K_TOKEN_HOLDINGS_CALCULATION_ERROR = 6027; /** CannotResizeAccount: Cannot resize the account we only allow it to grow in size */ export declare const SCOPE_ERROR__CANNOT_RESIZE_ACCOUNT = 6028; /** FixedPriceInvalid: The provided fixed price is invalid */ export declare const SCOPE_ERROR__FIXED_PRICE_INVALID = 6029; /** SwitchboardOnDemandError: Switchboard On Demand price derive error */ export declare const SCOPE_ERROR__SWITCHBOARD_ON_DEMAND_ERROR = 6030; /** ConfidenceIntervalCheckFailed: Confidence interval check failed */ export declare const SCOPE_ERROR__CONFIDENCE_INTERVAL_CHECK_FAILED = 6031; /** InvalidGenericData: Invalid generic data */ export declare const SCOPE_ERROR__INVALID_GENERIC_DATA = 6032; /** NoChainlinkReportData: No valid Chainlink report data found */ export declare const SCOPE_ERROR__NO_CHAINLINK_REPORT_DATA = 6033; /** InvalidChainlinkReportData: Invalid Chainlink report data format */ export declare const SCOPE_ERROR__INVALID_CHAINLINK_REPORT_DATA = 6034; /** OracleConfigInvalidSourceIndices: Oracle config must contain at least one valid source index */ export declare const SCOPE_ERROR__ORACLE_CONFIG_INVALID_SOURCE_INDICES = 6035; /** MostRecentOfInvalidMaxDivergence: Invalid max divergence (bps) for MostRecentOf oracle */ export declare const SCOPE_ERROR__MOST_RECENT_OF_INVALID_MAX_DIVERGENCE = 6036; /** CompositeOracleInvalidMaxAge: Invalid max age (s) for composite oracle */ export declare const SCOPE_ERROR__COMPOSITE_ORACLE_INVALID_MAX_AGE = 6037; /** CompositeOracleMaxAgeViolated: Max age constraint violated for composite oracle */ export declare const SCOPE_ERROR__COMPOSITE_ORACLE_MAX_AGE_VIOLATED = 6038; /** MostRecentOfMaxDivergenceBpsViolated: Max divergence bps constraint violated for MostRecentOf oracle */ export declare const SCOPE_ERROR__MOST_RECENT_OF_MAX_DIVERGENCE_BPS_VIOLATED = 6039; /** PythLazerVerifyIxFailed: The invoked pyth lazer verify instruction failed */ export declare const SCOPE_ERROR__PYTH_LAZER_VERIFY_IX_FAILED = 6040; /** PythLazerInvalidFeedID: Invalid feed id passed in to PythLazer oracle */ export declare const SCOPE_ERROR__PYTH_LAZER_INVALID_FEED_I_D = 6041; /** PythLazerInvalidExponent: Invalid exponent passed in to PythLazer oracle */ export declare const SCOPE_ERROR__PYTH_LAZER_INVALID_EXPONENT = 6042; /** PythLazerInvalidConfidenceFactor: Invalid confidence factor passed in to PythLazer oracle */ export declare const SCOPE_ERROR__PYTH_LAZER_INVALID_CONFIDENCE_FACTOR = 6043; /** PythLazerInvalidMessagePayload: Received an invalid message payload in the PythLazer oracle when refreshing price */ export declare const SCOPE_ERROR__PYTH_LAZER_INVALID_MESSAGE_PAYLOAD = 6044; /** PythLazerInvalidChannel: Received an invalid channel in the PythLazer payload when refreshing price */ export declare const SCOPE_ERROR__PYTH_LAZER_INVALID_CHANNEL = 6045; /** PythLazerInvalidFeedsLength: Payload should have a single feed in the PythLazer payload when refreshing price */ export declare const SCOPE_ERROR__PYTH_LAZER_INVALID_FEEDS_LENGTH = 6046; /** PythLazerInvalidFeedId: Invalid feed id in the PythLazer payload when refreshing price */ export declare const SCOPE_ERROR__PYTH_LAZER_INVALID_FEED_ID = 6047; /** PythLazerPriceNotPresent: Property fields in the feed of the PythLazer payload do not contain a price */ export declare const SCOPE_ERROR__PYTH_LAZER_PRICE_NOT_PRESENT = 6048; /** PythLazerBestBidPriceNotPresent: Property fields in the feed of the PythLazer payload do not contain a best bid price */ export declare const SCOPE_ERROR__PYTH_LAZER_BEST_BID_PRICE_NOT_PRESENT = 6049; /** PythLazerBestAskPriceNotPresent: Property fields in the feed of the PythLazer payload do not contain a best ask price */ export declare const SCOPE_ERROR__PYTH_LAZER_BEST_ASK_PRICE_NOT_PRESENT = 6050; /** PythLazerInvalidAskBidPrices: Invalid ask/bid prices provided in the feed of the PythLazer payload */ export declare const SCOPE_ERROR__PYTH_LAZER_INVALID_ASK_BID_PRICES = 6051; /** ExpectedPriceAccount: Price account expected when updating mapping */ export declare const SCOPE_ERROR__EXPECTED_PRICE_ACCOUNT = 6052; /** WrongAccountOwner: Provided account has a different owner than expected */ export declare const SCOPE_ERROR__WRONG_ACCOUNT_OWNER = 6053; /** CompositeOracleInvalidSourceIndex: Provided source index is invalid */ export declare const SCOPE_ERROR__COMPOSITE_ORACLE_INVALID_SOURCE_INDEX = 6054; /** CappedFlooredBothCapAndFloorAreNone: Can't set both cap and floor to None for CappedFloored oracle */ export declare const SCOPE_ERROR__CAPPED_FLOORED_BOTH_CAP_AND_FLOOR_ARE_NONE = 6055; /** MissingPriceAccount: Missing price account for Oracle Mapping update */ export declare const SCOPE_ERROR__MISSING_PRICE_ACCOUNT = 6056; /** ChainlinkXPriceNotSuspended: Cannot resume a ChainlinkX price that was not suspended */ export declare const SCOPE_ERROR__CHAINLINK_X_PRICE_NOT_SUSPENDED = 6057; /** OutsideMarketHours: Price update rejected as outside of market hours */ export declare const SCOPE_ERROR__OUTSIDE_MARKET_HOURS = 6058; /** PythLazerExponentNotPresent: Property fields in the feed of the PythLazer payload do not contain an exponent */ export declare const SCOPE_ERROR__PYTH_LAZER_EXPONENT_NOT_PRESENT = 6059; /** PythLazerUnexpectedExponent: The exponent provided in the feed of the PythLazer payload is not the expected one */ export declare const SCOPE_ERROR__PYTH_LAZER_UNEXPECTED_EXPONENT = 6060; /** InvalidConversionToEmaTypeForOracleType: Cannot convert oracle type to EMA type */ export declare const SCOPE_ERROR__INVALID_CONVERSION_TO_EMA_TYPE_FOR_ORACLE_TYPE = 6061; /** TwapEnabledBitmaskConversionFailure: Invalid TWAP enabled bitmask value */ export declare const SCOPE_ERROR__TWAP_ENABLED_BITMASK_CONVERSION_FAILURE = 6062; /** OperationNotSupported: This operation is not supported */ export declare const SCOPE_ERROR__OPERATION_NOT_SUPPORTED = 6063; /** TwapSourceIndexNotSet: TWAP source index not set */ export declare const SCOPE_ERROR__TWAP_SOURCE_INDEX_NOT_SET = 6064; /** PythLazerFeedUpdateTimestampNotPresent: Property fields in the feed of the PythLazer payload do not contain a feed update timestamp */ export declare const SCOPE_ERROR__PYTH_LAZER_FEED_UPDATE_TIMESTAMP_NOT_PRESENT = 6065; /** PriceFrozen: Cannot update a frozen price entry */ export declare const SCOPE_ERROR__PRICE_FROZEN = 6066; /** PriceAlreadyFrozen: Price entry is already frozen */ export declare const SCOPE_ERROR__PRICE_ALREADY_FROZEN = 6067; /** PriceNotFrozen: Price entry is not frozen */ export declare const SCOPE_ERROR__PRICE_NOT_FROZEN = 6068; /** UnauthorizedFreeze: Signer is not authorized to freeze/unfreeze */ export declare const SCOPE_ERROR__UNAUTHORIZED_FREEZE = 6069; /** PythLazerEmaPriceNotPresent: Property fields in the feed of the PythLazer payload do not contain an EMA price */ export declare const SCOPE_ERROR__PYTH_LAZER_EMA_PRICE_NOT_PRESENT = 6070; /** PythLazerEmaConfidenceNotPresent: Property fields in the feed of the PythLazer payload do not contain an EMA confidence */ export declare const SCOPE_ERROR__PYTH_LAZER_EMA_CONFIDENCE_NOT_PRESENT = 6071; /** PythLazerEmaNotEnabledOnSource: PythLazerEMA source entry does not have EMA enabled */ export declare const SCOPE_ERROR__PYTH_LAZER_EMA_NOT_ENABLED_ON_SOURCE = 6072; /** UnauthorizedResume: Signer is not authorized to resume */ export declare const SCOPE_ERROR__UNAUTHORIZED_RESUME = 6073; /** PythLazerConfidenceNotPresent: Property fields in the feed of the PythLazer payload do not contain a confidence */ export declare const SCOPE_ERROR__PYTH_LAZER_CONFIDENCE_NOT_PRESENT = 6074; /** KlendCTokenExchangeRateCPIError: Klend cToken exchange rate CPI call failed */ export declare const SCOPE_ERROR__KLEND_C_TOKEN_EXCHANGE_RATE_C_P_I_ERROR = 6075; /** KlendReserveDeprecated: Klend reserve version does not match the expected program version (deprecated reserve) */ export declare const SCOPE_ERROR__KLEND_RESERVE_DEPRECATED = 6076; export type ScopeError = typeof SCOPE_ERROR__ACCOUNTS_AND_TOKEN_MISMATCH | typeof SCOPE_ERROR__BAD_SCOPE_CHAIN_OR_PRICES | typeof SCOPE_ERROR__BAD_SLOT | typeof SCOPE_ERROR__BAD_TIMESTAMP | typeof SCOPE_ERROR__BAD_TOKEN_NB | typeof SCOPE_ERROR__BAD_TOKEN_TYPE | typeof SCOPE_ERROR__CANNOT_RESIZE_ACCOUNT | typeof SCOPE_ERROR__CAPPED_FLOORED_BOTH_CAP_AND_FLOOR_ARE_NONE | typeof SCOPE_ERROR__CHAINLINK_X_PRICE_NOT_SUSPENDED | typeof SCOPE_ERROR__COMPOSITE_ORACLE_INVALID_MAX_AGE | typeof SCOPE_ERROR__COMPOSITE_ORACLE_INVALID_SOURCE_INDEX | typeof SCOPE_ERROR__COMPOSITE_ORACLE_MAX_AGE_VIOLATED | typeof SCOPE_ERROR__CONFIDENCE_INTERVAL_CHECK_FAILED | typeof SCOPE_ERROR__CONVERSION_FAILURE | typeof SCOPE_ERROR__EMPTY_TOKEN_LIST | typeof SCOPE_ERROR__EXPECTED_PRICE_ACCOUNT | typeof SCOPE_ERROR__FIXED_PRICE_INVALID | typeof SCOPE_ERROR__INTEGER_OVERFLOW | typeof SCOPE_ERROR__INVALID_ACCOUNT_DISCRIMINATOR | typeof SCOPE_ERROR__INVALID_CHAINLINK_REPORT_DATA | typeof SCOPE_ERROR__INVALID_CONVERSION_TO_EMA_TYPE_FOR_ORACLE_TYPE | typeof SCOPE_ERROR__INVALID_GENERIC_DATA | typeof SCOPE_ERROR__INVALID_UPDATE_SEQUENCE_OR_ACCOUNTS | typeof SCOPE_ERROR__KLEND_C_TOKEN_EXCHANGE_RATE_C_P_I_ERROR | typeof SCOPE_ERROR__KLEND_RESERVE_DEPRECATED | typeof SCOPE_ERROR__K_TOKEN_HOLDINGS_CALCULATION_ERROR | typeof SCOPE_ERROR__K_TOKEN_UNDERLYING_PRICE_NOT_VALID | typeof SCOPE_ERROR__MATH_OVERFLOW | typeof SCOPE_ERROR__MISSING_PRICE_ACCOUNT | typeof SCOPE_ERROR__MOST_RECENT_OF_INVALID_MAX_DIVERGENCE | typeof SCOPE_ERROR__MOST_RECENT_OF_MAX_DIVERGENCE_BPS_VIOLATED | typeof SCOPE_ERROR__NO_CHAINLINK_REPORT_DATA | typeof SCOPE_ERROR__OPERATION_NOT_SUPPORTED | typeof SCOPE_ERROR__ORACLE_CONFIG_INVALID_SOURCE_INDICES | typeof SCOPE_ERROR__OUT_OF_RANGE_INTEGRAL_CONVERSION | typeof SCOPE_ERROR__OUTSIDE_MARKET_HOURS | typeof SCOPE_ERROR__PRICE_ACCOUNT_NOT_EXPECTED | typeof SCOPE_ERROR__PRICE_ALREADY_FROZEN | typeof SCOPE_ERROR__PRICE_FROZEN | typeof SCOPE_ERROR__PRICE_NOT_FROZEN | typeof SCOPE_ERROR__PRICE_NOT_VALID | typeof SCOPE_ERROR__PYTH_LAZER_BEST_ASK_PRICE_NOT_PRESENT | typeof SCOPE_ERROR__PYTH_LAZER_BEST_BID_PRICE_NOT_PRESENT | typeof SCOPE_ERROR__PYTH_LAZER_CONFIDENCE_NOT_PRESENT | typeof SCOPE_ERROR__PYTH_LAZER_EMA_CONFIDENCE_NOT_PRESENT | typeof SCOPE_ERROR__PYTH_LAZER_EMA_NOT_ENABLED_ON_SOURCE | typeof SCOPE_ERROR__PYTH_LAZER_EMA_PRICE_NOT_PRESENT | typeof SCOPE_ERROR__PYTH_LAZER_EXPONENT_NOT_PRESENT | typeof SCOPE_ERROR__PYTH_LAZER_FEED_UPDATE_TIMESTAMP_NOT_PRESENT | typeof SCOPE_ERROR__PYTH_LAZER_INVALID_ASK_BID_PRICES | typeof SCOPE_ERROR__PYTH_LAZER_INVALID_CHANNEL | typeof SCOPE_ERROR__PYTH_LAZER_INVALID_CONFIDENCE_FACTOR | typeof SCOPE_ERROR__PYTH_LAZER_INVALID_EXPONENT | typeof SCOPE_ERROR__PYTH_LAZER_INVALID_FEED_ID | typeof SCOPE_ERROR__PYTH_LAZER_INVALID_FEED_I_D | typeof SCOPE_ERROR__PYTH_LAZER_INVALID_FEEDS_LENGTH | typeof SCOPE_ERROR__PYTH_LAZER_INVALID_MESSAGE_PAYLOAD | typeof SCOPE_ERROR__PYTH_LAZER_PRICE_NOT_PRESENT | typeof SCOPE_ERROR__PYTH_LAZER_UNEXPECTED_EXPONENT | typeof SCOPE_ERROR__PYTH_LAZER_VERIFY_IX_FAILED | typeof SCOPE_ERROR__REFRESH_IN_C_P_I | typeof SCOPE_ERROR__REFRESH_WITH_UNEXPECTED_IXS | typeof SCOPE_ERROR__STAKE_FEE_TOO_HIGH | typeof SCOPE_ERROR__SWITCHBOARD_ON_DEMAND_ERROR | typeof SCOPE_ERROR__SWITCHBOARD_V2_ERROR | typeof SCOPE_ERROR__TWAP_ENABLED_BITMASK_CONVERSION_FAILURE | typeof SCOPE_ERROR__TWAP_NOT_ENOUGH_SAMPLES_IN_PERIOD | typeof SCOPE_ERROR__TWAP_SAMPLE_TOO_FREQUENT | typeof SCOPE_ERROR__TWAP_SOURCE_INDEX_NOT_SET | typeof SCOPE_ERROR__TWAP_SOURCE_INDEX_OUT_OF_RANGE | typeof SCOPE_ERROR__UNABLE_TO_DERIVE_P_D_A | typeof SCOPE_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT | typeof SCOPE_ERROR__UNAUTHORIZED_FREEZE | typeof SCOPE_ERROR__UNAUTHORIZED_RESUME | typeof SCOPE_ERROR__UNEXPECTED_ACCOUNT | typeof SCOPE_ERROR__UNEXPECTED_JLP_CONFIGURATION | typeof SCOPE_ERROR__WRONG_ACCOUNT_OWNER; export declare function getScopeErrorMessage(code: ScopeError): string; export declare function isScopeError(error: unknown, transactionMessage: { instructions: Record; }, code?: TProgramErrorCode): error is SolanaError & Readonly<{ context: Readonly<{ code: TProgramErrorCode; }>; }>; //# sourceMappingURL=scope.d.ts.map