/** * 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, ReadonlyUint8Array, TransactionSigner, WritableAccount, WritableSignerAccount } from "@solana/kit"; import type { OpenPositionWithMetadataBumps, OpenPositionWithMetadataBumpsArgs } from "../types/index.js"; import { WHIRLPOOL_PROGRAM_ADDRESS } from "../programs/index.js"; export declare const OPEN_POSITION_WITH_METADATA_DISCRIMINATOR: ReadonlyUint8Array; export declare function getOpenPositionWithMetadataDiscriminatorBytes(): ReadonlyUint8Array; export type OpenPositionWithMetadataInstruction = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountFunder extends string ? WritableSignerAccount & AccountSignerMeta : TAccountFunder, TAccountOwner extends string ? ReadonlyAccount : TAccountOwner, TAccountPosition extends string ? WritableAccount : TAccountPosition, TAccountPositionMint extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPositionMint, TAccountPositionMetadataAccount extends string ? WritableAccount : TAccountPositionMetadataAccount, TAccountPositionTokenAccount extends string ? WritableAccount : TAccountPositionTokenAccount, TAccountWhirlpool extends string ? ReadonlyAccount : TAccountWhirlpool, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountRent extends string ? ReadonlyAccount : TAccountRent, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount : TAccountAssociatedTokenProgram, TAccountMetadataProgram extends string ? ReadonlyAccount : TAccountMetadataProgram, TAccountMetadataUpdateAuth extends string ? ReadonlyAccount : TAccountMetadataUpdateAuth, ...TRemainingAccounts ]>; export interface OpenPositionWithMetadataInstructionData { discriminator: ReadonlyUint8Array; bumps: OpenPositionWithMetadataBumps; tickLowerIndex: number; tickUpperIndex: number; } export interface OpenPositionWithMetadataInstructionDataArgs { bumps: OpenPositionWithMetadataBumpsArgs; tickLowerIndex: number; tickUpperIndex: number; } export declare function getOpenPositionWithMetadataInstructionDataEncoder(): FixedSizeEncoder; export declare function getOpenPositionWithMetadataInstructionDataDecoder(): FixedSizeDecoder; export declare function getOpenPositionWithMetadataInstructionDataCodec(): FixedSizeCodec; export interface OpenPositionWithMetadataInput { funder: TransactionSigner; owner: Address; position: Address; positionMint: TransactionSigner; positionMetadataAccount: Address; positionTokenAccount: Address; whirlpool: Address; tokenProgram?: Address; systemProgram?: Address; rent?: Address; associatedTokenProgram?: Address; metadataProgram?: Address; metadataUpdateAuth: Address; bumps: OpenPositionWithMetadataInstructionDataArgs["bumps"]; tickLowerIndex: OpenPositionWithMetadataInstructionDataArgs["tickLowerIndex"]; tickUpperIndex: OpenPositionWithMetadataInstructionDataArgs["tickUpperIndex"]; } export declare function getOpenPositionWithMetadataInstruction(input: OpenPositionWithMetadataInput, config?: { programAddress?: TProgramAddress; }): OpenPositionWithMetadataInstruction; export interface ParsedOpenPositionWithMetadataInstruction { programAddress: Address; accounts: { funder: TAccountMetas[0]; owner: TAccountMetas[1]; position: TAccountMetas[2]; positionMint: TAccountMetas[3]; positionMetadataAccount: TAccountMetas[4]; positionTokenAccount: TAccountMetas[5]; whirlpool: TAccountMetas[6]; tokenProgram: TAccountMetas[7]; systemProgram: TAccountMetas[8]; rent: TAccountMetas[9]; associatedTokenProgram: TAccountMetas[10]; metadataProgram: TAccountMetas[11]; metadataUpdateAuth: TAccountMetas[12]; }; data: OpenPositionWithMetadataInstructionData; } export declare function parseOpenPositionWithMetadataInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedOpenPositionWithMetadataInstruction; //# sourceMappingURL=openPositionWithMetadata.d.ts.map