UNPKG

@orca-so/whirlpool-sdk

Version:

Whirlpool SDK for the Orca protocol.

21 lines (20 loc) 812 B
/// <reference types="bn.js" /> import { BN } from "@project-serum/anchor"; import { u64 } from "@solana/spl-token"; import { PublicKey } from "@solana/web3.js"; import { AddLiquidityQuote } from "../position/public/types"; import { Percentage } from "../utils/public/percentage"; /*** Public ***/ export declare type InternalAddLiquidityQuoteParam = { tokenMintA: PublicKey; tokenMintB: PublicKey; tickCurrentIndex: number; sqrtPrice: BN; inputTokenMint: PublicKey; inputTokenAmount: u64; tickLowerIndex: number; tickUpperIndex: number; slippageTolerance: Percentage; }; export declare type InternalAddLiquidityQuote = Omit<AddLiquidityQuote, "positionAddress">; export declare function getAddLiquidityQuote(param: InternalAddLiquidityQuoteParam): InternalAddLiquidityQuote;