/** * 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 Codec, type Decoder, type EncodedAccount, type Encoder, type FetchAccountConfig, type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from "@solana/kit"; import { type Fees, type FeesArgs, type Limit, type LimitArgs, type PoolApr, type PoolAprArgs } from "../types"; export declare const POOL_DISCRIMINATOR: Uint8Array; export declare function getPoolDiscriminatorBytes(): ReadonlyUint8Array; export type Pool = { discriminator: ReadonlyUint8Array; name: string; custodies: Array
; aumUsd: bigint; limit: Limit; fees: Fees; poolApr: PoolApr; maxRequestExecutionSec: bigint; bump: number; lpTokenBump: number; inceptionTime: bigint; }; export type PoolArgs = { name: string; custodies: Array
; aumUsd: number | bigint; limit: LimitArgs; fees: FeesArgs; poolApr: PoolAprArgs; maxRequestExecutionSec: number | bigint; bump: number; lpTokenBump: number; inceptionTime: number | bigint; }; /** Gets the encoder for {@link PoolArgs} account data. */ export declare function getPoolEncoder(): Encoder; /** Gets the decoder for {@link Pool} account data. */ export declare function getPoolDecoder(): Decoder; /** Gets the codec for {@link Pool} account data. */ export declare function getPoolCodec(): Codec; export declare function decodePool(encodedAccount: EncodedAccount): Account; export declare function decodePool(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchPool(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybePool(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllPool(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybePool(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; //# sourceMappingURL=pool.d.ts.map