/** * 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, AccountSignerMeta, Address, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount, WritableSignerAccount } from "@solana/kit"; import { WHIRLPOOL_PROGRAM_ADDRESS } from "../programs/index.js"; export declare const OPEN_BUNDLED_POSITION_DISCRIMINATOR: ReadonlyUint8Array; export declare function getOpenBundledPositionDiscriminatorBytes(): ReadonlyUint8Array; export type OpenBundledPositionInstruction = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountBundledPosition extends string ? WritableAccount : TAccountBundledPosition, TAccountPositionBundle extends string ? WritableAccount : TAccountPositionBundle, TAccountPositionBundleTokenAccount extends string ? ReadonlyAccount : TAccountPositionBundleTokenAccount, TAccountPositionBundleAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountPositionBundleAuthority, TAccountWhirlpool extends string ? ReadonlyAccount : TAccountWhirlpool, TAccountFunder extends string ? WritableSignerAccount & AccountSignerMeta : TAccountFunder, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountRent extends string ? ReadonlyAccount : TAccountRent, ...TRemainingAccounts ]>; export interface OpenBundledPositionInstructionData { discriminator: ReadonlyUint8Array; bundleIndex: number; tickLowerIndex: number; tickUpperIndex: number; } export interface OpenBundledPositionInstructionDataArgs { bundleIndex: number; tickLowerIndex: number; tickUpperIndex: number; } export declare function getOpenBundledPositionInstructionDataEncoder(): FixedSizeEncoder; export declare function getOpenBundledPositionInstructionDataDecoder(): FixedSizeDecoder; export declare function getOpenBundledPositionInstructionDataCodec(): FixedSizeCodec; export interface OpenBundledPositionInput { bundledPosition: Address; positionBundle: Address; positionBundleTokenAccount: Address; positionBundleAuthority: TransactionSigner; whirlpool: Address; funder: TransactionSigner; systemProgram?: Address; rent?: Address; bundleIndex: OpenBundledPositionInstructionDataArgs["bundleIndex"]; tickLowerIndex: OpenBundledPositionInstructionDataArgs["tickLowerIndex"]; tickUpperIndex: OpenBundledPositionInstructionDataArgs["tickUpperIndex"]; } export declare function getOpenBundledPositionInstruction(input: OpenBundledPositionInput, config?: { programAddress?: TProgramAddress; }): OpenBundledPositionInstruction; export interface ParsedOpenBundledPositionInstruction { programAddress: Address; 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(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedOpenBundledPositionInstruction; //# sourceMappingURL=openBundledPosition.d.ts.map