import { Address, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, SolanaError } from "@solana/kit"; //#region src/generated/errors/splStakePool.d.ts /** AlreadyInUse: AlreadyInUse */ export declare const SPL_STAKE_POOL_ERROR__ALREADY_IN_USE = 0; /** InvalidProgramAddress: InvalidProgramAddress */ export declare const SPL_STAKE_POOL_ERROR__INVALID_PROGRAM_ADDRESS = 1; /** InvalidState: InvalidState */ export declare const SPL_STAKE_POOL_ERROR__INVALID_STATE = 2; /** CalculationFailure: CalculationFailure */ export declare const SPL_STAKE_POOL_ERROR__CALCULATION_FAILURE = 3; /** FeeTooHigh: FeeTooHigh */ export declare const SPL_STAKE_POOL_ERROR__FEE_TOO_HIGH = 4; /** WrongAccountMint: WrongAccountMint */ export declare const SPL_STAKE_POOL_ERROR__WRONG_ACCOUNT_MINT = 5; /** WrongManager: WrongManager */ export declare const SPL_STAKE_POOL_ERROR__WRONG_MANAGER = 6; /** SignatureMissing: SignatureMissing */ export declare const SPL_STAKE_POOL_ERROR__SIGNATURE_MISSING = 7; /** InvalidValidatorStakeList: InvalidValidatorStakeList */ export declare const SPL_STAKE_POOL_ERROR__INVALID_VALIDATOR_STAKE_LIST = 8; /** InvalidFeeAccount: InvalidFeeAccount */ export declare const SPL_STAKE_POOL_ERROR__INVALID_FEE_ACCOUNT = 9; /** WrongPoolMint: WrongPoolMint */ export declare const SPL_STAKE_POOL_ERROR__WRONG_POOL_MINT = 10; /** WrongStakeStake: WrongStakeStake */ export declare const SPL_STAKE_POOL_ERROR__WRONG_STAKE_STAKE = 11; /** UserStakeNotActive: UserStakeNotActive */ export declare const SPL_STAKE_POOL_ERROR__USER_STAKE_NOT_ACTIVE = 12; /** ValidatorAlreadyAdded: ValidatorAlreadyAdded */ export declare const SPL_STAKE_POOL_ERROR__VALIDATOR_ALREADY_ADDED = 13; /** ValidatorNotFound: ValidatorNotFound */ export declare const SPL_STAKE_POOL_ERROR__VALIDATOR_NOT_FOUND = 14; /** InvalidStakeAccountAddress: InvalidStakeAccountAddress */ export declare const SPL_STAKE_POOL_ERROR__INVALID_STAKE_ACCOUNT_ADDRESS = 15; /** StakeListOutOfDate: StakeListOutOfDate */ export declare const SPL_STAKE_POOL_ERROR__STAKE_LIST_OUT_OF_DATE = 16; /** StakeListAndPoolOutOfDate: StakeListAndPoolOutOfDate */ export declare const SPL_STAKE_POOL_ERROR__STAKE_LIST_AND_POOL_OUT_OF_DATE = 17; /** UnknownValidatorStakeAccount: UnknownValidatorStakeAccount */ export declare const SPL_STAKE_POOL_ERROR__UNKNOWN_VALIDATOR_STAKE_ACCOUNT = 18; /** WrongMintingAuthority: WrongMintingAuthority */ export declare const SPL_STAKE_POOL_ERROR__WRONG_MINTING_AUTHORITY = 19; /** UnexpectedValidatorListAccountSize: UnexpectedValidatorListAccountSize */ export declare const SPL_STAKE_POOL_ERROR__UNEXPECTED_VALIDATOR_LIST_ACCOUNT_SIZE = 20; /** WrongStaker: WrongStaker */ export declare const SPL_STAKE_POOL_ERROR__WRONG_STAKER = 21; /** NonZeroPoolTokenSupply: NonZeroPoolTokenSupply */ export declare const SPL_STAKE_POOL_ERROR__NON_ZERO_POOL_TOKEN_SUPPLY = 22; /** StakeLamportsNotEqualToMinimum: StakeLamportsNotEqualToMinimum */ export declare const SPL_STAKE_POOL_ERROR__STAKE_LAMPORTS_NOT_EQUAL_TO_MINIMUM = 23; /** IncorrectDepositVoteAddress: IncorrectDepositVoteAddress */ export declare const SPL_STAKE_POOL_ERROR__INCORRECT_DEPOSIT_VOTE_ADDRESS = 24; /** IncorrectWithdrawVoteAddress: IncorrectWithdrawVoteAddress */ export declare const SPL_STAKE_POOL_ERROR__INCORRECT_WITHDRAW_VOTE_ADDRESS = 25; /** InvalidMintFreezeAuthority: InvalidMintFreezeAuthority */ export declare const SPL_STAKE_POOL_ERROR__INVALID_MINT_FREEZE_AUTHORITY = 26; /** FeeIncreaseTooHigh: FeeIncreaseTooHigh */ export declare const SPL_STAKE_POOL_ERROR__FEE_INCREASE_TOO_HIGH = 27; /** WithdrawalTooSmall: WithdrawalTooSmall */ export declare const SPL_STAKE_POOL_ERROR__WITHDRAWAL_TOO_SMALL = 28; /** DepositTooSmall: DepositTooSmall */ export declare const SPL_STAKE_POOL_ERROR__DEPOSIT_TOO_SMALL = 29; /** InvalidStakeDepositAuthority: InvalidStakeDepositAuthority */ export declare const SPL_STAKE_POOL_ERROR__INVALID_STAKE_DEPOSIT_AUTHORITY = 30; /** InvalidSolDepositAuthority: InvalidSolDepositAuthority */ export declare const SPL_STAKE_POOL_ERROR__INVALID_SOL_DEPOSIT_AUTHORITY = 31; /** InvalidPreferredValidator: InvalidPreferredValidator */ export declare const SPL_STAKE_POOL_ERROR__INVALID_PREFERRED_VALIDATOR = 32; /** TransientAccountInUse: TransientAccountInUse */ export declare const SPL_STAKE_POOL_ERROR__TRANSIENT_ACCOUNT_IN_USE = 33; /** InvalidSolWithdrawAuthority: InvalidSolWithdrawAuthority */ export declare const SPL_STAKE_POOL_ERROR__INVALID_SOL_WITHDRAW_AUTHORITY = 34; /** SolWithdrawalTooLarge: SolWithdrawalTooLarge */ export declare const SPL_STAKE_POOL_ERROR__SOL_WITHDRAWAL_TOO_LARGE = 35; /** InvalidMetadataAccount: InvalidMetadataAccount */ export declare const SPL_STAKE_POOL_ERROR__INVALID_METADATA_ACCOUNT = 36; /** UnsupportedMintExtension: UnsupportedMintExtension */ export declare const SPL_STAKE_POOL_ERROR__UNSUPPORTED_MINT_EXTENSION = 37; /** UnsupportedFeeAccountExtension: UnsupportedFeeAccountExtension */ export declare const SPL_STAKE_POOL_ERROR__UNSUPPORTED_FEE_ACCOUNT_EXTENSION = 38; /** ExceededSlippage: Instruction exceeds desired slippage limit */ export declare const SPL_STAKE_POOL_ERROR__EXCEEDED_SLIPPAGE = 39; /** IncorrectMintDecimals: IncorrectMintDecimals */ export declare const SPL_STAKE_POOL_ERROR__INCORRECT_MINT_DECIMALS = 40; /** ReserveDepleted: ReserveDepleted */ export declare const SPL_STAKE_POOL_ERROR__RESERVE_DEPLETED = 41; /** MissingRequiredSysvar: Missing required sysvar account */ export declare const SPL_STAKE_POOL_ERROR__MISSING_REQUIRED_SYSVAR = 42; export type SplStakePoolError = typeof SPL_STAKE_POOL_ERROR__ALREADY_IN_USE | typeof SPL_STAKE_POOL_ERROR__CALCULATION_FAILURE | typeof SPL_STAKE_POOL_ERROR__DEPOSIT_TOO_SMALL | typeof SPL_STAKE_POOL_ERROR__EXCEEDED_SLIPPAGE | typeof SPL_STAKE_POOL_ERROR__FEE_INCREASE_TOO_HIGH | typeof SPL_STAKE_POOL_ERROR__FEE_TOO_HIGH | typeof SPL_STAKE_POOL_ERROR__INCORRECT_DEPOSIT_VOTE_ADDRESS | typeof SPL_STAKE_POOL_ERROR__INCORRECT_MINT_DECIMALS | typeof SPL_STAKE_POOL_ERROR__INCORRECT_WITHDRAW_VOTE_ADDRESS | typeof SPL_STAKE_POOL_ERROR__INVALID_FEE_ACCOUNT | typeof SPL_STAKE_POOL_ERROR__INVALID_METADATA_ACCOUNT | typeof SPL_STAKE_POOL_ERROR__INVALID_MINT_FREEZE_AUTHORITY | typeof SPL_STAKE_POOL_ERROR__INVALID_PREFERRED_VALIDATOR | typeof SPL_STAKE_POOL_ERROR__INVALID_PROGRAM_ADDRESS | typeof SPL_STAKE_POOL_ERROR__INVALID_SOL_DEPOSIT_AUTHORITY | typeof SPL_STAKE_POOL_ERROR__INVALID_SOL_WITHDRAW_AUTHORITY | typeof SPL_STAKE_POOL_ERROR__INVALID_STAKE_ACCOUNT_ADDRESS | typeof SPL_STAKE_POOL_ERROR__INVALID_STAKE_DEPOSIT_AUTHORITY | typeof SPL_STAKE_POOL_ERROR__INVALID_STATE | typeof SPL_STAKE_POOL_ERROR__INVALID_VALIDATOR_STAKE_LIST | typeof SPL_STAKE_POOL_ERROR__MISSING_REQUIRED_SYSVAR | typeof SPL_STAKE_POOL_ERROR__NON_ZERO_POOL_TOKEN_SUPPLY | typeof SPL_STAKE_POOL_ERROR__RESERVE_DEPLETED | typeof SPL_STAKE_POOL_ERROR__SIGNATURE_MISSING | typeof SPL_STAKE_POOL_ERROR__SOL_WITHDRAWAL_TOO_LARGE | typeof SPL_STAKE_POOL_ERROR__STAKE_LAMPORTS_NOT_EQUAL_TO_MINIMUM | typeof SPL_STAKE_POOL_ERROR__STAKE_LIST_AND_POOL_OUT_OF_DATE | typeof SPL_STAKE_POOL_ERROR__STAKE_LIST_OUT_OF_DATE | typeof SPL_STAKE_POOL_ERROR__TRANSIENT_ACCOUNT_IN_USE | typeof SPL_STAKE_POOL_ERROR__UNEXPECTED_VALIDATOR_LIST_ACCOUNT_SIZE | typeof SPL_STAKE_POOL_ERROR__UNKNOWN_VALIDATOR_STAKE_ACCOUNT | typeof SPL_STAKE_POOL_ERROR__UNSUPPORTED_FEE_ACCOUNT_EXTENSION | typeof SPL_STAKE_POOL_ERROR__UNSUPPORTED_MINT_EXTENSION | typeof SPL_STAKE_POOL_ERROR__USER_STAKE_NOT_ACTIVE | typeof SPL_STAKE_POOL_ERROR__VALIDATOR_ALREADY_ADDED | typeof SPL_STAKE_POOL_ERROR__VALIDATOR_NOT_FOUND | typeof SPL_STAKE_POOL_ERROR__WITHDRAWAL_TOO_SMALL | typeof SPL_STAKE_POOL_ERROR__WRONG_ACCOUNT_MINT | typeof SPL_STAKE_POOL_ERROR__WRONG_MANAGER | typeof SPL_STAKE_POOL_ERROR__WRONG_MINTING_AUTHORITY | typeof SPL_STAKE_POOL_ERROR__WRONG_POOL_MINT | typeof SPL_STAKE_POOL_ERROR__WRONG_STAKER | typeof SPL_STAKE_POOL_ERROR__WRONG_STAKE_STAKE; export declare function getSplStakePoolErrorMessage(code: SplStakePoolError): string; export declare function isSplStakePoolError(error: unknown, transactionMessage: { instructions: Record; }, code?: TProgramErrorCode): error is SolanaError & Readonly<{ context: Readonly<{ code: TProgramErrorCode; }>; }>; //#endregion //# sourceMappingURL=splStakePool.d.ts.map