import { FeeType, FeeTypeArgs } from "../types/feeType.js"; import "../types/index.js"; import { SPL_STAKE_POOL_PROGRAM_ADDRESS } from "../programs/splStakePool.js"; import "../programs/index.js"; import { AccountMeta, AccountSignerMeta, Address, Codec, Decoder, Encoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount } from "@solana/kit"; //#region src/generated/instructions/setFee.d.ts export declare const SET_FEE_DISCRIMINATOR = 12; export declare function getSetFeeDiscriminatorBytes(): ReadonlyUint8Array; export type SetFeeInstruction = string, TAccountManager extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[TAccountStakePool extends string ? WritableAccount : TAccountStakePool, TAccountManager extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountManager, ...TRemainingAccounts]>; export type SetFeeInstructionData = { discriminator: number; fee: FeeType; }; export type SetFeeInstructionDataArgs = { fee: FeeTypeArgs; }; export declare function getSetFeeInstructionDataEncoder(): Encoder; export declare function getSetFeeInstructionDataDecoder(): Decoder; export declare function getSetFeeInstructionDataCodec(): Codec; export type SetFeeInput = { /** Stake pool */ stakePool: Address; /** Manager */ manager: TransactionSigner; fee: SetFeeInstructionDataArgs["fee"]; }; /** * (Manager only) Update fee * 0. `[w]` Stake pool * 1. `[s]` Manager */ export declare function getSetFeeInstruction(input: SetFeeInput, config?: { programAddress?: TProgramAddress; }): SetFeeInstruction; export type ParsedSetFeeInstruction = { programAddress: Address; accounts: { /** Stake pool */ stakePool: TAccountMetas[0]; /** Manager */ manager: TAccountMetas[1]; }; data: SetFeeInstructionData; }; export declare function parseSetFeeInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetFeeInstruction; //#endregion //# sourceMappingURL=setFee.d.ts.map