UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

46 lines 5.03 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 ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { WHIRLPOOL_PROGRAM_ADDRESS } from '../programs'; export declare const CLOSE_BUNDLED_POSITION_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getCloseBundledPositionDiscriminatorBytes(): ReadonlyUint8Array; export type CloseBundledPositionInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountBundledPosition extends string | AccountMeta<string> = string, TAccountPositionBundle extends string | AccountMeta<string> = string, TAccountPositionBundleTokenAccount extends string | AccountMeta<string> = string, TAccountPositionBundleAuthority extends string | AccountMeta<string> = string, TAccountReceiver extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountBundledPosition extends string ? WritableAccount<TAccountBundledPosition> : TAccountBundledPosition, TAccountPositionBundle extends string ? WritableAccount<TAccountPositionBundle> : TAccountPositionBundle, TAccountPositionBundleTokenAccount extends string ? ReadonlyAccount<TAccountPositionBundleTokenAccount> : TAccountPositionBundleTokenAccount, TAccountPositionBundleAuthority extends string ? ReadonlySignerAccount<TAccountPositionBundleAuthority> & AccountSignerMeta<TAccountPositionBundleAuthority> : TAccountPositionBundleAuthority, TAccountReceiver extends string ? WritableAccount<TAccountReceiver> : TAccountReceiver, ...TRemainingAccounts]>; export type CloseBundledPositionInstructionData = { discriminator: ReadonlyUint8Array; bundleIndex: number; }; export type CloseBundledPositionInstructionDataArgs = { bundleIndex: number; }; export declare function getCloseBundledPositionInstructionDataEncoder(): FixedSizeEncoder<CloseBundledPositionInstructionDataArgs>; export declare function getCloseBundledPositionInstructionDataDecoder(): FixedSizeDecoder<CloseBundledPositionInstructionData>; export declare function getCloseBundledPositionInstructionDataCodec(): FixedSizeCodec<CloseBundledPositionInstructionDataArgs, CloseBundledPositionInstructionData>; export type CloseBundledPositionInput<TAccountBundledPosition extends string = string, TAccountPositionBundle extends string = string, TAccountPositionBundleTokenAccount extends string = string, TAccountPositionBundleAuthority extends string = string, TAccountReceiver extends string = string> = { bundledPosition: Address<TAccountBundledPosition>; positionBundle: Address<TAccountPositionBundle>; positionBundleTokenAccount: Address<TAccountPositionBundleTokenAccount>; positionBundleAuthority: TransactionSigner<TAccountPositionBundleAuthority>; receiver: Address<TAccountReceiver>; bundleIndex: CloseBundledPositionInstructionDataArgs["bundleIndex"]; }; export declare function getCloseBundledPositionInstruction<TAccountBundledPosition extends string, TAccountPositionBundle extends string, TAccountPositionBundleTokenAccount extends string, TAccountPositionBundleAuthority extends string, TAccountReceiver extends string, TProgramAddress extends Address = typeof WHIRLPOOL_PROGRAM_ADDRESS>(input: CloseBundledPositionInput<TAccountBundledPosition, TAccountPositionBundle, TAccountPositionBundleTokenAccount, TAccountPositionBundleAuthority, TAccountReceiver>, config?: { programAddress?: TProgramAddress; }): CloseBundledPositionInstruction<TProgramAddress, TAccountBundledPosition, TAccountPositionBundle, TAccountPositionBundleTokenAccount, TAccountPositionBundleAuthority, TAccountReceiver>; export type ParsedCloseBundledPositionInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { bundledPosition: TAccountMetas[0]; positionBundle: TAccountMetas[1]; positionBundleTokenAccount: TAccountMetas[2]; positionBundleAuthority: TAccountMetas[3]; receiver: TAccountMetas[4]; }; data: CloseBundledPositionInstructionData; }; export declare function parseCloseBundledPositionInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseBundledPositionInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=closeBundledPosition.d.ts.map