import { StakePool, StakePoolArgs, getStakePoolCodec } from "../accounts/stakePool.js"; import { ValidatorList, ValidatorListArgs, getValidatorListCodec } from "../accounts/validatorList.js"; import "../accounts/index.js"; import { findEphemeralStakePda } from "../pdas/ephemeralStake.js"; import { findStakePda } from "../pdas/stake.js"; import { findTransientStakePda } from "../pdas/transientStake.js"; import { findWithdrawAuthorityPda } from "../pdas/withdrawAuthority.js"; import "../pdas/index.js"; import { AddValidatorToPoolAsyncInput, ParsedAddValidatorToPoolInstruction, getAddValidatorToPoolInstructionAsync } from "../instructions/addValidatorToPool.js"; import { CleanupRemovedValidatorEntriesInput, ParsedCleanupRemovedValidatorEntriesInstruction, getCleanupRemovedValidatorEntriesInstruction } from "../instructions/cleanupRemovedValidatorEntries.js"; import { CreateTokenMetadataAsyncInput, ParsedCreateTokenMetadataInstruction, getCreateTokenMetadataInstructionAsync } from "../instructions/createTokenMetadata.js"; import { DecreaseAdditionalValidatorStakeAsyncInput, ParsedDecreaseAdditionalValidatorStakeInstruction, getDecreaseAdditionalValidatorStakeInstructionAsync } from "../instructions/decreaseAdditionalValidatorStake.js"; import { DecreaseValidatorStakeAsyncInput, ParsedDecreaseValidatorStakeInstruction, getDecreaseValidatorStakeInstructionAsync } from "../instructions/decreaseValidatorStake.js"; import { DecreaseValidatorStakeWithReserveAsyncInput, ParsedDecreaseValidatorStakeWithReserveInstruction, getDecreaseValidatorStakeWithReserveInstructionAsync } from "../instructions/decreaseValidatorStakeWithReserve.js"; import { DepositSolAsyncInput, ParsedDepositSolInstruction, getDepositSolInstructionAsync } from "../instructions/depositSol.js"; import { DepositSolWithSlippageAsyncInput, ParsedDepositSolWithSlippageInstruction, getDepositSolWithSlippageInstructionAsync } from "../instructions/depositSolWithSlippage.js"; import { DepositStakeAsyncInput, ParsedDepositStakeInstruction, getDepositStakeInstructionAsync } from "../instructions/depositStake.js"; import { DepositStakeWithSlippageAsyncInput, ParsedDepositStakeWithSlippageInstruction, getDepositStakeWithSlippageInstructionAsync } from "../instructions/depositStakeWithSlippage.js"; import { IncreaseAdditionalValidatorStakeAsyncInput, ParsedIncreaseAdditionalValidatorStakeInstruction, getIncreaseAdditionalValidatorStakeInstructionAsync } from "../instructions/increaseAdditionalValidatorStake.js"; import { IncreaseValidatorStakeAsyncInput, ParsedIncreaseValidatorStakeInstruction, getIncreaseValidatorStakeInstructionAsync } from "../instructions/increaseValidatorStake.js"; import { InitializeAsyncInput, ParsedInitializeInstruction, getInitializeInstructionAsync } from "../instructions/initialize.js"; import { ParsedRedelegateInstruction, RedelegateAsyncInput, getRedelegateInstructionAsync } from "../instructions/redelegate.js"; import { ParsedRemoveValidatorFromPoolInstruction, RemoveValidatorFromPoolAsyncInput, getRemoveValidatorFromPoolInstructionAsync } from "../instructions/removeValidatorFromPool.js"; import { ParsedSetFeeInstruction, SetFeeInput, getSetFeeInstruction } from "../instructions/setFee.js"; import { ParsedSetFundingAuthorityInstruction, SetFundingAuthorityInput, getSetFundingAuthorityInstruction } from "../instructions/setFundingAuthority.js"; import { ParsedSetManagerInstruction, SetManagerInput, getSetManagerInstruction } from "../instructions/setManager.js"; import { ParsedSetPreferredValidatorInstruction, SetPreferredValidatorInput, getSetPreferredValidatorInstruction } from "../instructions/setPreferredValidator.js"; import { ParsedSetStakerInstruction, SetStakerInput, getSetStakerInstruction } from "../instructions/setStaker.js"; import { ParsedUpdateStakePoolBalanceInstruction, UpdateStakePoolBalanceAsyncInput, getUpdateStakePoolBalanceInstructionAsync } from "../instructions/updateStakePoolBalance.js"; import { ParsedUpdateTokenMetadataInstruction, UpdateTokenMetadataAsyncInput, getUpdateTokenMetadataInstructionAsync } from "../instructions/updateTokenMetadata.js"; import { ParsedUpdateValidatorListBalanceInstruction, UpdateValidatorListBalanceAsyncInput, getUpdateValidatorListBalanceInstructionAsync } from "../instructions/updateValidatorListBalance.js"; import { ParsedWithdrawSolInstruction, WithdrawSolAsyncInput, getWithdrawSolInstructionAsync } from "../instructions/withdrawSol.js"; import { ParsedWithdrawSolWithSlippageInstruction, WithdrawSolWithSlippageAsyncInput, getWithdrawSolWithSlippageInstructionAsync } from "../instructions/withdrawSolWithSlippage.js"; import { ParsedWithdrawStakeInstruction, WithdrawStakeAsyncInput, getWithdrawStakeInstructionAsync } from "../instructions/withdrawStake.js"; import { ParsedWithdrawStakeWithSlippageInstruction, WithdrawStakeWithSlippageAsyncInput, getWithdrawStakeWithSlippageInstructionAsync } from "../instructions/withdrawStakeWithSlippage.js"; import "../instructions/index.js"; import { Address, ClientWithPayer, ClientWithRpc, ClientWithTransactionPlanning, ClientWithTransactionSending, ExtendedClient, GetAccountInfoApi, GetMultipleAccountsApi, Instruction, InstructionWithData, ReadonlyUint8Array } from "@solana/kit"; import { SelfFetchFunctions, SelfPlanAndSendFunctions } from "@solana/program-client-core"; //#region src/generated/programs/splStakePool.d.ts export declare const SPL_STAKE_POOL_PROGRAM_ADDRESS: Address<"SPoo1Ku8WFXoNDMHPsrGSTSG1Y47rzgn41SLUNakuHy">; declare const SplStakePoolAccountLookup: { readonly 0: "StakePool"; readonly 1: "ValidatorList"; readonly StakePool: 0; readonly ValidatorList: 1; }; export declare const SplStakePoolAccount: Omit; export type SplStakePoolAccount = (typeof SplStakePoolAccount)[keyof typeof SplStakePoolAccount]; export declare function identifySplStakePoolAccount(account: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): SplStakePoolAccount; declare const SplStakePoolInstructionLookup: { readonly 0: "Initialize"; readonly 1: "AddValidatorToPool"; readonly 2: "RemoveValidatorFromPool"; readonly 3: "DecreaseValidatorStake"; readonly 4: "IncreaseValidatorStake"; readonly 5: "SetPreferredValidator"; readonly 6: "UpdateValidatorListBalance"; readonly 7: "UpdateStakePoolBalance"; readonly 8: "CleanupRemovedValidatorEntries"; readonly 9: "DepositStake"; readonly 10: "WithdrawStake"; readonly 11: "SetManager"; readonly 12: "SetFee"; readonly 13: "SetStaker"; readonly 14: "DepositSol"; readonly 15: "SetFundingAuthority"; readonly 16: "WithdrawSol"; readonly 17: "CreateTokenMetadata"; readonly 18: "UpdateTokenMetadata"; readonly 19: "IncreaseAdditionalValidatorStake"; readonly 20: "DecreaseAdditionalValidatorStake"; readonly 21: "DecreaseValidatorStakeWithReserve"; readonly 22: "Redelegate"; readonly 23: "DepositStakeWithSlippage"; readonly 24: "WithdrawStakeWithSlippage"; readonly 25: "DepositSolWithSlippage"; readonly 26: "WithdrawSolWithSlippage"; readonly Initialize: 0; readonly AddValidatorToPool: 1; readonly RemoveValidatorFromPool: 2; readonly DecreaseValidatorStake: 3; readonly IncreaseValidatorStake: 4; readonly SetPreferredValidator: 5; readonly UpdateValidatorListBalance: 6; readonly UpdateStakePoolBalance: 7; readonly CleanupRemovedValidatorEntries: 8; readonly DepositStake: 9; readonly WithdrawStake: 10; readonly SetManager: 11; readonly SetFee: 12; readonly SetStaker: 13; readonly DepositSol: 14; readonly SetFundingAuthority: 15; readonly WithdrawSol: 16; readonly CreateTokenMetadata: 17; readonly UpdateTokenMetadata: 18; readonly IncreaseAdditionalValidatorStake: 19; readonly DecreaseAdditionalValidatorStake: 20; readonly DecreaseValidatorStakeWithReserve: 21; readonly Redelegate: 22; readonly DepositStakeWithSlippage: 23; readonly WithdrawStakeWithSlippage: 24; readonly DepositSolWithSlippage: 25; readonly WithdrawSolWithSlippage: 26; }; export declare const SplStakePoolInstruction: Omit; export type SplStakePoolInstruction = (typeof SplStakePoolInstruction)[keyof typeof SplStakePoolInstruction]; export declare function identifySplStakePoolInstruction(instruction: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): SplStakePoolInstruction; export type ParsedSplStakePoolInstruction = ({ instructionType: typeof SplStakePoolInstruction.Initialize; } & ParsedInitializeInstruction) | ({ instructionType: typeof SplStakePoolInstruction.AddValidatorToPool; } & ParsedAddValidatorToPoolInstruction) | ({ instructionType: typeof SplStakePoolInstruction.RemoveValidatorFromPool; } & ParsedRemoveValidatorFromPoolInstruction) | ({ instructionType: typeof SplStakePoolInstruction.DecreaseValidatorStake; } & ParsedDecreaseValidatorStakeInstruction) | ({ instructionType: typeof SplStakePoolInstruction.IncreaseValidatorStake; } & ParsedIncreaseValidatorStakeInstruction) | ({ instructionType: typeof SplStakePoolInstruction.SetPreferredValidator; } & ParsedSetPreferredValidatorInstruction) | ({ instructionType: typeof SplStakePoolInstruction.UpdateValidatorListBalance; } & ParsedUpdateValidatorListBalanceInstruction) | ({ instructionType: typeof SplStakePoolInstruction.UpdateStakePoolBalance; } & ParsedUpdateStakePoolBalanceInstruction) | ({ instructionType: typeof SplStakePoolInstruction.CleanupRemovedValidatorEntries; } & ParsedCleanupRemovedValidatorEntriesInstruction) | ({ instructionType: typeof SplStakePoolInstruction.DepositStake; } & ParsedDepositStakeInstruction) | ({ instructionType: typeof SplStakePoolInstruction.WithdrawStake; } & ParsedWithdrawStakeInstruction) | ({ instructionType: typeof SplStakePoolInstruction.SetManager; } & ParsedSetManagerInstruction) | ({ instructionType: typeof SplStakePoolInstruction.SetFee; } & ParsedSetFeeInstruction) | ({ instructionType: typeof SplStakePoolInstruction.SetStaker; } & ParsedSetStakerInstruction) | ({ instructionType: typeof SplStakePoolInstruction.DepositSol; } & ParsedDepositSolInstruction) | ({ instructionType: typeof SplStakePoolInstruction.SetFundingAuthority; } & ParsedSetFundingAuthorityInstruction) | ({ instructionType: typeof SplStakePoolInstruction.WithdrawSol; } & ParsedWithdrawSolInstruction) | ({ instructionType: typeof SplStakePoolInstruction.CreateTokenMetadata; } & ParsedCreateTokenMetadataInstruction) | ({ instructionType: typeof SplStakePoolInstruction.UpdateTokenMetadata; } & ParsedUpdateTokenMetadataInstruction) | ({ instructionType: typeof SplStakePoolInstruction.IncreaseAdditionalValidatorStake; } & ParsedIncreaseAdditionalValidatorStakeInstruction) | ({ instructionType: typeof SplStakePoolInstruction.DecreaseAdditionalValidatorStake; } & ParsedDecreaseAdditionalValidatorStakeInstruction) | ({ instructionType: typeof SplStakePoolInstruction.DecreaseValidatorStakeWithReserve; } & ParsedDecreaseValidatorStakeWithReserveInstruction) | ({ instructionType: typeof SplStakePoolInstruction.Redelegate; } & ParsedRedelegateInstruction) | ({ instructionType: typeof SplStakePoolInstruction.DepositStakeWithSlippage; } & ParsedDepositStakeWithSlippageInstruction) | ({ instructionType: typeof SplStakePoolInstruction.WithdrawStakeWithSlippage; } & ParsedWithdrawStakeWithSlippageInstruction) | ({ instructionType: typeof SplStakePoolInstruction.DepositSolWithSlippage; } & ParsedDepositSolWithSlippageInstruction) | ({ instructionType: typeof SplStakePoolInstruction.WithdrawSolWithSlippage; } & ParsedWithdrawSolWithSlippageInstruction); export declare function parseSplStakePoolInstruction(instruction: Instruction & InstructionWithData): ParsedSplStakePoolInstruction; export type SplStakePoolPlugin = { accounts: SplStakePoolPluginAccounts; instructions: SplStakePoolPluginInstructions; pdas: SplStakePoolPluginPdas; identifyAccount: typeof identifySplStakePoolAccount; identifyInstruction: typeof identifySplStakePoolInstruction; parseInstruction: typeof parseSplStakePoolInstruction; }; export type SplStakePoolPluginAccounts = { stakePool: ReturnType & SelfFetchFunctions; validatorList: ReturnType & SelfFetchFunctions; }; export type SplStakePoolPluginInstructions = { initialize: (input: InitializeAsyncInput) => ReturnType & SelfPlanAndSendFunctions; addValidatorToPool: (input: AddValidatorToPoolAsyncInput) => ReturnType & SelfPlanAndSendFunctions; removeValidatorFromPool: (input: RemoveValidatorFromPoolAsyncInput) => ReturnType & SelfPlanAndSendFunctions; decreaseValidatorStake: (input: DecreaseValidatorStakeAsyncInput) => ReturnType & SelfPlanAndSendFunctions; increaseValidatorStake: (input: IncreaseValidatorStakeAsyncInput) => ReturnType & SelfPlanAndSendFunctions; setPreferredValidator: (input: SetPreferredValidatorInput) => ReturnType & SelfPlanAndSendFunctions; updateValidatorListBalance: (input: UpdateValidatorListBalanceAsyncInput) => ReturnType & SelfPlanAndSendFunctions; updateStakePoolBalance: (input: UpdateStakePoolBalanceAsyncInput) => ReturnType & SelfPlanAndSendFunctions; cleanupRemovedValidatorEntries: (input: CleanupRemovedValidatorEntriesInput) => ReturnType & SelfPlanAndSendFunctions; depositStake: (input: DepositStakeAsyncInput) => ReturnType & SelfPlanAndSendFunctions; withdrawStake: (input: WithdrawStakeAsyncInput) => ReturnType & SelfPlanAndSendFunctions; setManager: (input: SetManagerInput) => ReturnType & SelfPlanAndSendFunctions; setFee: (input: SetFeeInput) => ReturnType & SelfPlanAndSendFunctions; setStaker: (input: SetStakerInput) => ReturnType & SelfPlanAndSendFunctions; depositSol: (input: MakeOptional) => ReturnType & SelfPlanAndSendFunctions; setFundingAuthority: (input: SetFundingAuthorityInput) => ReturnType & SelfPlanAndSendFunctions; withdrawSol: (input: WithdrawSolAsyncInput) => ReturnType & SelfPlanAndSendFunctions; createTokenMetadata: (input: MakeOptional) => ReturnType & SelfPlanAndSendFunctions; updateTokenMetadata: (input: UpdateTokenMetadataAsyncInput) => ReturnType & SelfPlanAndSendFunctions; increaseAdditionalValidatorStake: (input: IncreaseAdditionalValidatorStakeAsyncInput) => ReturnType & SelfPlanAndSendFunctions; decreaseAdditionalValidatorStake: (input: DecreaseAdditionalValidatorStakeAsyncInput) => ReturnType & SelfPlanAndSendFunctions; decreaseValidatorStakeWithReserve: (input: DecreaseValidatorStakeWithReserveAsyncInput) => ReturnType & SelfPlanAndSendFunctions; redelegate: (input: RedelegateAsyncInput) => ReturnType & SelfPlanAndSendFunctions; depositStakeWithSlippage: (input: DepositStakeWithSlippageAsyncInput) => ReturnType & SelfPlanAndSendFunctions; withdrawStakeWithSlippage: (input: WithdrawStakeWithSlippageAsyncInput) => ReturnType & SelfPlanAndSendFunctions; depositSolWithSlippage: (input: MakeOptional) => ReturnType & SelfPlanAndSendFunctions; withdrawSolWithSlippage: (input: WithdrawSolWithSlippageAsyncInput) => ReturnType & SelfPlanAndSendFunctions; }; export type SplStakePoolPluginPdas = { withdrawAuthority: typeof findWithdrawAuthorityPda; stake: typeof findStakePda; transientStake: typeof findTransientStakePda; ephemeralStake: typeof findEphemeralStakePda; }; export type SplStakePoolPluginRequirements = ClientWithRpc & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending; export declare function splStakePoolProgram(): (client: T) => ExtendedClient; type MakeOptional = Omit & Partial>; //#endregion //# sourceMappingURL=splStakePool.d.ts.map