/** * 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 { Account, Address, EncodedAccount, FetchAccountConfig, FetchAccountsConfig, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, MaybeAccount, MaybeEncodedAccount, ReadonlyUint8Array } from "@solana/kit"; import type { PositionRewardInfo, PositionRewardInfoArgs } from "../types/index.js"; import { fetchEncodedAccount, fetchEncodedAccounts } from "@solana/kit"; export declare const POSITION_DISCRIMINATOR: ReadonlyUint8Array; export declare function getPositionDiscriminatorBytes(): ReadonlyUint8Array; export interface Position { discriminator: ReadonlyUint8Array; whirlpool: Address; positionMint: Address; liquidity: bigint; tickLowerIndex: number; tickUpperIndex: number; feeGrowthCheckpointA: bigint; feeOwedA: bigint; feeGrowthCheckpointB: bigint; feeOwedB: bigint; rewardInfos: PositionRewardInfo[]; } export interface PositionArgs { whirlpool: Address; positionMint: Address; liquidity: number | bigint; tickLowerIndex: number; tickUpperIndex: number; feeGrowthCheckpointA: number | bigint; feeOwedA: number | bigint; feeGrowthCheckpointB: number | bigint; feeOwedB: number | bigint; rewardInfos: PositionRewardInfoArgs[]; } /** Gets the encoder for {@link PositionArgs} account data. */ export declare function getPositionEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link Position} account data. */ export declare function getPositionDecoder(): FixedSizeDecoder; /** Gets the codec for {@link Position} account data. */ export declare function getPositionCodec(): FixedSizeCodec; export declare function decodePosition(encodedAccount: EncodedAccount): Account; export declare function decodePosition(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchPosition(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybePosition(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllPosition(rpc: Parameters[0], addresses: Address[], config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybePosition(rpc: Parameters[0], addresses: Address[], config?: FetchAccountsConfig): Promise[]>; //# sourceMappingURL=position.d.ts.map