UNPKG

@kamino-finance/kliquidity-sdk

Version:

Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol

38 lines 3.76 kB
/** * 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 ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { LB_CLMM_PROGRAM_ADDRESS } from '../programs'; export declare const CLOSE_PRESET_PARAMETER_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getClosePresetParameterDiscriminatorBytes(): ReadonlyUint8Array; export type ClosePresetParameterInstruction<TProgram extends string = typeof LB_CLMM_PROGRAM_ADDRESS, TAccountPresetParameter extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TAccountRentReceiver extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountPresetParameter extends string ? WritableAccount<TAccountPresetParameter> : TAccountPresetParameter, TAccountAdmin extends string ? WritableSignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin, TAccountRentReceiver extends string ? WritableAccount<TAccountRentReceiver> : TAccountRentReceiver, ...TRemainingAccounts]>; export type ClosePresetParameterInstructionData = { discriminator: ReadonlyUint8Array; }; export type ClosePresetParameterInstructionDataArgs = {}; export declare function getClosePresetParameterInstructionDataEncoder(): FixedSizeEncoder<ClosePresetParameterInstructionDataArgs>; export declare function getClosePresetParameterInstructionDataDecoder(): FixedSizeDecoder<ClosePresetParameterInstructionData>; export declare function getClosePresetParameterInstructionDataCodec(): FixedSizeCodec<ClosePresetParameterInstructionDataArgs, ClosePresetParameterInstructionData>; export type ClosePresetParameterInput<TAccountPresetParameter extends string = string, TAccountAdmin extends string = string, TAccountRentReceiver extends string = string> = { presetParameter: Address<TAccountPresetParameter>; admin: TransactionSigner<TAccountAdmin>; rentReceiver: Address<TAccountRentReceiver>; }; export declare function getClosePresetParameterInstruction<TAccountPresetParameter extends string, TAccountAdmin extends string, TAccountRentReceiver extends string, TProgramAddress extends Address = typeof LB_CLMM_PROGRAM_ADDRESS>(input: ClosePresetParameterInput<TAccountPresetParameter, TAccountAdmin, TAccountRentReceiver>, config?: { programAddress?: TProgramAddress; }): ClosePresetParameterInstruction<TProgramAddress, TAccountPresetParameter, TAccountAdmin, TAccountRentReceiver>; export type ParsedClosePresetParameterInstruction<TProgram extends string = typeof LB_CLMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { presetParameter: TAccountMetas[0]; admin: TAccountMetas[1]; rentReceiver: TAccountMetas[2]; }; data: ClosePresetParameterInstructionData; }; export declare function parseClosePresetParameterInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClosePresetParameterInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=closePresetParameter.d.ts.map