/** * 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 { WhirlpoolRewardInfo, WhirlpoolRewardInfoArgs } from "../types/index.js"; import { fetchEncodedAccount, fetchEncodedAccounts } from "@solana/kit"; export declare const WHIRLPOOL_DISCRIMINATOR: ReadonlyUint8Array; export declare function getWhirlpoolDiscriminatorBytes(): ReadonlyUint8Array; export interface Whirlpool { discriminator: ReadonlyUint8Array; whirlpoolsConfig: Address; whirlpoolBump: number[]; tickSpacing: number; tickSpacingSeed: number[]; 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: WhirlpoolRewardInfo[]; } export interface WhirlpoolArgs { whirlpoolsConfig: Address; whirlpoolBump: number[]; tickSpacing: number; tickSpacingSeed: number[]; 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: WhirlpoolRewardInfoArgs[]; } /** 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: Address[], config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybeWhirlpool(rpc: Parameters[0], addresses: Address[], config?: FetchAccountsConfig): Promise[]>; //# sourceMappingURL=whirlpool.d.ts.map