@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
34 lines • 2.81 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 Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit';
import { AMM_V3_PROGRAM_ADDRESS } from '../programs';
export declare const UPDATE_REWARD_INFOS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getUpdateRewardInfosDiscriminatorBytes(): ReadonlyUint8Array;
export type UpdateRewardInfosInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountPoolState extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountPoolState extends string ? WritableAccount<TAccountPoolState> : TAccountPoolState, ...TRemainingAccounts]>;
export type UpdateRewardInfosInstructionData = {
discriminator: ReadonlyUint8Array;
};
export type UpdateRewardInfosInstructionDataArgs = {};
export declare function getUpdateRewardInfosInstructionDataEncoder(): FixedSizeEncoder<UpdateRewardInfosInstructionDataArgs>;
export declare function getUpdateRewardInfosInstructionDataDecoder(): FixedSizeDecoder<UpdateRewardInfosInstructionData>;
export declare function getUpdateRewardInfosInstructionDataCodec(): FixedSizeCodec<UpdateRewardInfosInstructionDataArgs, UpdateRewardInfosInstructionData>;
export type UpdateRewardInfosInput<TAccountPoolState extends string = string> = {
poolState: Address<TAccountPoolState>;
};
export declare function getUpdateRewardInfosInstruction<TAccountPoolState extends string, TProgramAddress extends Address = typeof AMM_V3_PROGRAM_ADDRESS>(input: UpdateRewardInfosInput<TAccountPoolState>, config?: {
programAddress?: TProgramAddress;
}): UpdateRewardInfosInstruction<TProgramAddress, TAccountPoolState>;
export type ParsedUpdateRewardInfosInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
poolState: TAccountMetas[0];
};
data: UpdateRewardInfosInstructionData;
};
export declare function parseUpdateRewardInfosInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdateRewardInfosInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=updateRewardInfos.d.ts.map