@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
42 lines • 4 kB
TypeScript
/**
* 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, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
import { WHIRLPOOL_PROGRAM_ADDRESS } from '../programs';
export declare const SET_REWARD_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getSetRewardAuthorityDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
export type SetRewardAuthorityInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountWhirlpool extends string | AccountMeta<string> = string, TAccountRewardAuthority extends string | AccountMeta<string> = string, TAccountNewRewardAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool, TAccountRewardAuthority extends string ? ReadonlySignerAccount<TAccountRewardAuthority> & AccountSignerMeta<TAccountRewardAuthority> : TAccountRewardAuthority, TAccountNewRewardAuthority extends string ? ReadonlyAccount<TAccountNewRewardAuthority> : TAccountNewRewardAuthority, ...TRemainingAccounts]>;
export type SetRewardAuthorityInstructionData = {
discriminator: ReadonlyUint8Array;
rewardIndex: number;
};
export type SetRewardAuthorityInstructionDataArgs = {
rewardIndex: number;
};
export declare function getSetRewardAuthorityInstructionDataEncoder(): FixedSizeEncoder<SetRewardAuthorityInstructionDataArgs>;
export declare function getSetRewardAuthorityInstructionDataDecoder(): FixedSizeDecoder<SetRewardAuthorityInstructionData>;
export declare function getSetRewardAuthorityInstructionDataCodec(): FixedSizeCodec<SetRewardAuthorityInstructionDataArgs, SetRewardAuthorityInstructionData>;
export type SetRewardAuthorityInput<TAccountWhirlpool extends string = string, TAccountRewardAuthority extends string = string, TAccountNewRewardAuthority extends string = string> = {
whirlpool: Address<TAccountWhirlpool>;
rewardAuthority: TransactionSigner<TAccountRewardAuthority>;
newRewardAuthority: Address<TAccountNewRewardAuthority>;
rewardIndex: SetRewardAuthorityInstructionDataArgs["rewardIndex"];
};
export declare function getSetRewardAuthorityInstruction<TAccountWhirlpool extends string, TAccountRewardAuthority extends string, TAccountNewRewardAuthority extends string, TProgramAddress extends Address = typeof WHIRLPOOL_PROGRAM_ADDRESS>(input: SetRewardAuthorityInput<TAccountWhirlpool, TAccountRewardAuthority, TAccountNewRewardAuthority>, config?: {
programAddress?: TProgramAddress;
}): SetRewardAuthorityInstruction<TProgramAddress, TAccountWhirlpool, TAccountRewardAuthority, TAccountNewRewardAuthority>;
export type ParsedSetRewardAuthorityInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
whirlpool: TAccountMetas[0];
rewardAuthority: TAccountMetas[1];
newRewardAuthority: TAccountMetas[2];
};
data: SetRewardAuthorityInstructionData;
};
export declare function parseSetRewardAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetRewardAuthorityInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=setRewardAuthority.d.ts.map