import { SPL_STAKE_POOL_PROGRAM_ADDRESS } from "../programs/splStakePool.js"; import "../programs/index.js"; import { AccountMeta, AccountSignerMeta, Address, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount } from "@solana/kit"; //#region src/generated/instructions/setManager.d.ts export declare const SET_MANAGER_DISCRIMINATOR = 11; export declare function getSetManagerDiscriminatorBytes(): ReadonlyUint8Array; export type SetManagerInstruction = string, TAccountManager extends string | AccountMeta = string, TAccountNewManager extends string | AccountMeta = string, TAccountNewManagerFeeAccount extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[TAccountStakePool extends string ? WritableAccount : TAccountStakePool, TAccountManager extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountManager, TAccountNewManager extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountNewManager, TAccountNewManagerFeeAccount extends string ? ReadonlyAccount : TAccountNewManagerFeeAccount, ...TRemainingAccounts]>; export type SetManagerInstructionData = { discriminator: number; }; export type SetManagerInstructionDataArgs = {}; export declare function getSetManagerInstructionDataEncoder(): FixedSizeEncoder; export declare function getSetManagerInstructionDataDecoder(): FixedSizeDecoder; export declare function getSetManagerInstructionDataCodec(): FixedSizeCodec; export type SetManagerInput = { /** Stake pool */ stakePool: Address; /** Manager */ manager: TransactionSigner; /** New manager */ newManager: TransactionSigner; /** New manager fee account */ newManagerFeeAccount: Address; }; /** * (Manager only) Update manager * 0. `[w]` Stake pool * 1. `[s]` Manager * 2. `[s]` New manager * 3. `[]` New manager fee account */ export declare function getSetManagerInstruction(input: SetManagerInput, config?: { programAddress?: TProgramAddress; }): SetManagerInstruction; export type ParsedSetManagerInstruction = { programAddress: Address; accounts: { /** Stake pool */ stakePool: TAccountMetas[0]; /** Manager */ manager: TAccountMetas[1]; /** New manager */ newManager: TAccountMetas[2]; /** New manager fee account */ newManagerFeeAccount: TAccountMetas[3]; }; data: SetManagerInstructionData; }; export declare function parseSetManagerInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetManagerInstruction; //#endregion //# sourceMappingURL=setManager.d.ts.map