/** * 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 WhirlpoolRewardInfo, type WhirlpoolRewardInfoArgs } from "../types"; export declare const WHIRLPOOL_DISCRIMINATOR: Uint8Array; export declare function getWhirlpoolDiscriminatorBytes(): ReadonlyUint8Array; /** External types */ export type Whirlpool = { discriminator: ReadonlyUint8Array; whirlpoolsConfig: Address; whirlpoolBump: ReadonlyUint8Array; tickSpacing: number; tickSpacingSeed: ReadonlyUint8Array; feeRate: number; protocolFeeRate: number; liquidity: bigint; sqrtPrice: bigint; tickCurrentIndex: number; protocolFeeOwedA: bigint; protocolFeeOwedB: bigint; tokenMintA: Address; tokenVaultA: Address; feeGrowthGlobalA: bigint; tokenMintB: Address; tokenVaultB: Address; feeGrowthGlobalB: bigint; rewardLastUpdatedTimestamp: bigint; rewardInfos: Array; }; export type WhirlpoolArgs = { whirlpoolsConfig: Address; whirlpoolBump: ReadonlyUint8Array; tickSpacing: number; tickSpacingSeed: ReadonlyUint8Array; feeRate: number; protocolFeeRate: number; liquidity: number | bigint; sqrtPrice: number | bigint; tickCurrentIndex: number; protocolFeeOwedA: number | bigint; protocolFeeOwedB: number | bigint; tokenMintA: Address; tokenVaultA: Address; feeGrowthGlobalA: number | bigint; tokenMintB: Address; tokenVaultB: Address; feeGrowthGlobalB: number | bigint; rewardLastUpdatedTimestamp: number | bigint; rewardInfos: Array; }; /** Gets the encoder for {@link WhirlpoolArgs} account data. */ export declare function getWhirlpoolEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link Whirlpool} account data. */ export declare function getWhirlpoolDecoder(): FixedSizeDecoder; /** Gets the codec for {@link Whirlpool} account data. */ export declare function getWhirlpoolCodec(): FixedSizeCodec; export declare function decodeWhirlpool(encodedAccount: EncodedAccount): Account; export declare function decodeWhirlpool(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchWhirlpool(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybeWhirlpool(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllWhirlpool(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybeWhirlpool(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function getWhirlpoolSize(): number; //# sourceMappingURL=whirlpool.d.ts.map