@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
58 lines • 6.46 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, type WritableSignerAccount } from '@solana/kit';
import { WHIRLPOOL_PROGRAM_ADDRESS } from '../programs';
export declare const OPEN_BUNDLED_POSITION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getOpenBundledPositionDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
export type OpenBundledPositionInstruction<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, TAccountWhirlpool extends string | AccountMeta<string> = string, TAccountFunder extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountRent extends string | AccountMeta<string> = "SysvarRent111111111111111111111111111111111", 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, TAccountWhirlpool extends string ? ReadonlyAccount<TAccountWhirlpool> : TAccountWhirlpool, TAccountFunder extends string ? WritableSignerAccount<TAccountFunder> & AccountSignerMeta<TAccountFunder> : TAccountFunder, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent, ...TRemainingAccounts]>;
export type OpenBundledPositionInstructionData = {
discriminator: ReadonlyUint8Array;
bundleIndex: number;
tickLowerIndex: number;
tickUpperIndex: number;
};
export type OpenBundledPositionInstructionDataArgs = {
bundleIndex: number;
tickLowerIndex: number;
tickUpperIndex: number;
};
export declare function getOpenBundledPositionInstructionDataEncoder(): FixedSizeEncoder<OpenBundledPositionInstructionDataArgs>;
export declare function getOpenBundledPositionInstructionDataDecoder(): FixedSizeDecoder<OpenBundledPositionInstructionData>;
export declare function getOpenBundledPositionInstructionDataCodec(): FixedSizeCodec<OpenBundledPositionInstructionDataArgs, OpenBundledPositionInstructionData>;
export type OpenBundledPositionInput<TAccountBundledPosition extends string = string, TAccountPositionBundle extends string = string, TAccountPositionBundleTokenAccount extends string = string, TAccountPositionBundleAuthority extends string = string, TAccountWhirlpool extends string = string, TAccountFunder extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string> = {
bundledPosition: Address<TAccountBundledPosition>;
positionBundle: Address<TAccountPositionBundle>;
positionBundleTokenAccount: Address<TAccountPositionBundleTokenAccount>;
positionBundleAuthority: TransactionSigner<TAccountPositionBundleAuthority>;
whirlpool: Address<TAccountWhirlpool>;
funder: TransactionSigner<TAccountFunder>;
systemProgram?: Address<TAccountSystemProgram>;
rent?: Address<TAccountRent>;
bundleIndex: OpenBundledPositionInstructionDataArgs["bundleIndex"];
tickLowerIndex: OpenBundledPositionInstructionDataArgs["tickLowerIndex"];
tickUpperIndex: OpenBundledPositionInstructionDataArgs["tickUpperIndex"];
};
export declare function getOpenBundledPositionInstruction<TAccountBundledPosition extends string, TAccountPositionBundle extends string, TAccountPositionBundleTokenAccount extends string, TAccountPositionBundleAuthority extends string, TAccountWhirlpool extends string, TAccountFunder extends string, TAccountSystemProgram extends string, TAccountRent extends string, TProgramAddress extends Address = typeof WHIRLPOOL_PROGRAM_ADDRESS>(input: OpenBundledPositionInput<TAccountBundledPosition, TAccountPositionBundle, TAccountPositionBundleTokenAccount, TAccountPositionBundleAuthority, TAccountWhirlpool, TAccountFunder, TAccountSystemProgram, TAccountRent>, config?: {
programAddress?: TProgramAddress;
}): OpenBundledPositionInstruction<TProgramAddress, TAccountBundledPosition, TAccountPositionBundle, TAccountPositionBundleTokenAccount, TAccountPositionBundleAuthority, TAccountWhirlpool, TAccountFunder, TAccountSystemProgram, TAccountRent>;
export type ParsedOpenBundledPositionInstruction<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];
whirlpool: TAccountMetas[4];
funder: TAccountMetas[5];
systemProgram: TAccountMetas[6];
rent: TAccountMetas[7];
};
data: OpenBundledPositionInstructionData;
};
export declare function parseOpenBundledPositionInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedOpenBundledPositionInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=openBundledPosition.d.ts.map