/** * 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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from "@solana/kit"; import { type PositionRewardInfo, type PositionRewardInfoArgs } from "../types"; export declare const PERSONAL_POSITION_STATE_DISCRIMINATOR: Uint8Array; export declare function getPersonalPositionStateDiscriminatorBytes(): ReadonlyUint8Array; export type PersonalPositionState = { discriminator: ReadonlyUint8Array; /** Bump to identify PDA */ bump: number; /** Mint address of the tokenized position */ nftMint: Address; /** The ID of the pool with which this token is connected */ poolId: Address; /** The lower bound tick of the position */ tickLowerIndex: number; /** The upper bound tick of the position */ tickUpperIndex: number; /** The amount of liquidity owned by this position */ liquidity: bigint; /** The token_0 fee growth of the aggregate position as of the last action on the individual position */ feeGrowthInside0LastX64: bigint; /** The token_1 fee growth of the aggregate position as of the last action on the individual position */ feeGrowthInside1LastX64: bigint; /** The fees owed to the position owner in token_0, as of the last computation */ tokenFeesOwed0: bigint; /** The fees owed to the position owner in token_1, as of the last computation */ tokenFeesOwed1: bigint; rewardInfos: Array; padding: Array; }; export type PersonalPositionStateArgs = { /** Bump to identify PDA */ bump: number; /** Mint address of the tokenized position */ nftMint: Address; /** The ID of the pool with which this token is connected */ poolId: Address; /** The lower bound tick of the position */ tickLowerIndex: number; /** The upper bound tick of the position */ tickUpperIndex: number; /** The amount of liquidity owned by this position */ liquidity: number | bigint; /** The token_0 fee growth of the aggregate position as of the last action on the individual position */ feeGrowthInside0LastX64: number | bigint; /** The token_1 fee growth of the aggregate position as of the last action on the individual position */ feeGrowthInside1LastX64: number | bigint; /** The fees owed to the position owner in token_0, as of the last computation */ tokenFeesOwed0: number | bigint; /** The fees owed to the position owner in token_1, as of the last computation */ tokenFeesOwed1: number | bigint; rewardInfos: Array; padding: Array; }; /** Gets the encoder for {@link PersonalPositionStateArgs} account data. */ export declare function getPersonalPositionStateEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link PersonalPositionState} account data. */ export declare function getPersonalPositionStateDecoder(): FixedSizeDecoder; /** Gets the codec for {@link PersonalPositionState} account data. */ export declare function getPersonalPositionStateCodec(): FixedSizeCodec; export declare function decodePersonalPositionState(encodedAccount: EncodedAccount): Account; export declare function decodePersonalPositionState(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchPersonalPositionState(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybePersonalPositionState(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllPersonalPositionState(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybePersonalPositionState(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function getPersonalPositionStateSize(): number; //# sourceMappingURL=personalPositionState.d.ts.map