UNPKG

@orca-so/whirlpools-sdk

Version:

Typescript SDK to interact with Orca's Whirlpool program.

9 lines (8 loc) 720 B
import type { Address } from "@coral-xyz/anchor"; import type { PublicKey } from "@solana/web3.js"; import type BN from "bn.js"; import Decimal from "decimal.js"; import type { DecimalsMap, GetPricesConfig, GetPricesThresholdConfig, PoolMap, PriceMap, TickArrayMap } from "."; export declare function calculatePricesForQuoteToken(mints: Address[], quoteTokenMint: PublicKey, poolMap: PoolMap, tickArrayMap: TickArrayMap, decimalsMap: DecimalsMap, config: GetPricesConfig, thresholdConfig: GetPricesThresholdConfig): PriceMap; export declare function isSubset(listA: string[], listB: string[]): boolean; export declare function convertAmount(amount: BN, price: Decimal, amountDecimal: number, resultDecimal: number): BN;