import { FundingType, FundingTypeArgs } from "../types/fundingType.js"; import "../types/index.js"; 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/setFundingAuthority.d.ts export declare const SET_FUNDING_AUTHORITY_DISCRIMINATOR = 15; export declare function getSetFundingAuthorityDiscriminatorBytes(): ReadonlyUint8Array; export type SetFundingAuthorityInstruction = string, TAccountManager extends string | AccountMeta = string, TAccountNewAuthorityPubkey extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[TAccountStakePool extends string ? WritableAccount : TAccountStakePool, TAccountManager extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountManager, TAccountNewAuthorityPubkey extends string ? ReadonlyAccount : TAccountNewAuthorityPubkey, ...TRemainingAccounts]>; export type SetFundingAuthorityInstructionData = { discriminator: number; fundingType: FundingType; }; export type SetFundingAuthorityInstructionDataArgs = { fundingType: FundingTypeArgs; }; export declare function getSetFundingAuthorityInstructionDataEncoder(): FixedSizeEncoder; export declare function getSetFundingAuthorityInstructionDataDecoder(): FixedSizeDecoder; export declare function getSetFundingAuthorityInstructionDataCodec(): FixedSizeCodec; export type SetFundingAuthorityInput = { /** Stake pool */ stakePool: Address; /** Manager */ manager: TransactionSigner; /** New authority pubkey */ newAuthorityPubkey: Address; fundingType: SetFundingAuthorityInstructionDataArgs["fundingType"]; }; /** * (Manager only) Update SOL deposit, stake deposit, or SOL withdrawal * authority. * 0. `[w]` Stake pool * 1. `[s]` Manager * 2. '[]` New authority pubkey or none */ export declare function getSetFundingAuthorityInstruction(input: SetFundingAuthorityInput, config?: { programAddress?: TProgramAddress; }): SetFundingAuthorityInstruction; export type ParsedSetFundingAuthorityInstruction = { programAddress: Address; accounts: { /** Stake pool */ stakePool: TAccountMetas[0]; /** Manager */ manager: TAccountMetas[1]; /** New authority pubkey */ newAuthorityPubkey: TAccountMetas[2]; }; data: SetFundingAuthorityInstructionData; }; export declare function parseSetFundingAuthorityInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetFundingAuthorityInstruction; //#endregion //# sourceMappingURL=setFundingAuthority.d.ts.map