@orca-so/whirlpools-sdk
Version:
Typescript SDK to interact with Orca's Whirlpool program.
12 lines (11 loc) • 610 B
TypeScript
import type { Address } from "@coral-xyz/anchor";
import type BN from "bn.js";
import type { WhirlpoolAccountFetcherInterface, WhirlpoolAccountFetchOptions } from "../network/public/fetcher";
import type { SwapQuoteParam } from "../quotes/public";
export interface SwapQuoteRequest {
whirlpool: Address;
tradeTokenMint: Address;
tokenAmount: BN;
amountSpecifiedIsInput: boolean;
}
export declare function batchBuildSwapQuoteParams(quoteRequests: SwapQuoteRequest[], programId: Address, fetcher: WhirlpoolAccountFetcherInterface, opts?: WhirlpoolAccountFetchOptions): Promise<SwapQuoteParam[]>;