/** * 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 type { LockType, LockTypeArgs } from "../types/index.js"; import { WHIRLPOOL_PROGRAM_ADDRESS } from "../programs/index.js"; export declare const LOCK_POSITION_DISCRIMINATOR: ReadonlyUint8Array; export declare function getLockPositionDiscriminatorBytes(): ReadonlyUint8Array; export type LockPositionInstruction = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountFunder extends string ? WritableSignerAccount & AccountSignerMeta : TAccountFunder, TAccountPositionAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountPositionAuthority, TAccountPosition extends string ? ReadonlyAccount : TAccountPosition, TAccountPositionMint extends string ? ReadonlyAccount : TAccountPositionMint, TAccountPositionTokenAccount extends string ? WritableAccount : TAccountPositionTokenAccount, TAccountLockConfig extends string ? WritableAccount : TAccountLockConfig, TAccountWhirlpool extends string ? ReadonlyAccount : TAccountWhirlpool, TAccountToken2022Program extends string ? ReadonlyAccount : TAccountToken2022Program, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export interface LockPositionInstructionData { discriminator: ReadonlyUint8Array; lockType: LockType; } export interface LockPositionInstructionDataArgs { lockType: LockTypeArgs; } export declare function getLockPositionInstructionDataEncoder(): FixedSizeEncoder; export declare function getLockPositionInstructionDataDecoder(): FixedSizeDecoder; export declare function getLockPositionInstructionDataCodec(): FixedSizeCodec; export interface LockPositionInput { funder: TransactionSigner; positionAuthority: TransactionSigner; position: Address; positionMint: Address; positionTokenAccount: Address; lockConfig: Address; whirlpool: Address; token2022Program?: Address; systemProgram?: Address; lockType: LockPositionInstructionDataArgs["lockType"]; } export declare function getLockPositionInstruction(input: LockPositionInput, config?: { programAddress?: TProgramAddress; }): LockPositionInstruction; export interface ParsedLockPositionInstruction { programAddress: Address; accounts: { funder: TAccountMetas[0]; positionAuthority: TAccountMetas[1]; position: TAccountMetas[2]; positionMint: TAccountMetas[3]; positionTokenAccount: TAccountMetas[4]; lockConfig: TAccountMetas[5]; whirlpool: TAccountMetas[6]; token2022Program: TAccountMetas[7]; systemProgram: TAccountMetas[8]; }; data: LockPositionInstructionData; } export declare function parseLockPositionInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedLockPositionInstruction; //# sourceMappingURL=lockPosition.d.ts.map