/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import type { AccountMeta, AccountSignerMeta, Address, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount } from "@solana/kit"; import { WHIRLPOOL_PROGRAM_ADDRESS } from "../programs/index.js"; export declare const SET_REWARD_AUTHORITY_DISCRIMINATOR: ReadonlyUint8Array; export declare function getSetRewardAuthorityDiscriminatorBytes(): ReadonlyUint8Array; export type SetRewardAuthorityInstruction = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountWhirlpool extends string ? WritableAccount : TAccountWhirlpool, TAccountRewardAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountRewardAuthority, TAccountNewRewardAuthority extends string ? ReadonlyAccount : TAccountNewRewardAuthority, ...TRemainingAccounts ]>; export interface SetRewardAuthorityInstructionData { discriminator: ReadonlyUint8Array; rewardIndex: number; } export interface SetRewardAuthorityInstructionDataArgs { rewardIndex: number; } export declare function getSetRewardAuthorityInstructionDataEncoder(): FixedSizeEncoder; export declare function getSetRewardAuthorityInstructionDataDecoder(): FixedSizeDecoder; export declare function getSetRewardAuthorityInstructionDataCodec(): FixedSizeCodec; export interface SetRewardAuthorityInput { whirlpool: Address; rewardAuthority: TransactionSigner; newRewardAuthority: Address; rewardIndex: SetRewardAuthorityInstructionDataArgs["rewardIndex"]; } export declare function getSetRewardAuthorityInstruction(input: SetRewardAuthorityInput, config?: { programAddress?: TProgramAddress; }): SetRewardAuthorityInstruction; export interface ParsedSetRewardAuthorityInstruction { programAddress: Address; accounts: { whirlpool: TAccountMetas[0]; rewardAuthority: TAccountMetas[1]; newRewardAuthority: TAccountMetas[2]; }; data: SetRewardAuthorityInstructionData; } export declare function parseSetRewardAuthorityInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetRewardAuthorityInstruction; //# sourceMappingURL=setRewardAuthority.d.ts.map