UNPKG

@perk.money/perk-swap-core

Version:

This npm package contains core logic of Perk Aggregator build on top of NEAR blockchain

26 lines (25 loc) 1.03 kB
import { Provider } from 'near-api-js/lib/providers'; import { Amm, CreateSwapRouteInstructionsParams, Quote, QuoteParams, SwapParams } from '../common/types'; import { Reserves } from '../refFinance/types'; import { JumboPool } from './types'; declare class Jumbo implements Amm { id: string; contractId: string; instanceId: number; label: 'Jumbo'; pool: JumboPool; isSimplePool: boolean; reserves: Reserves; constructor(pool: JumboPool); static loadPools({ provider, }: { provider: Provider; }): Promise<Jumbo[]>; getQuote(quoteParams: QuoteParams): Quote; getPromiseForUpdate({ provider, }: { provider: Provider; }): Promise<void>; createSwapInstructions(params: SwapParams): Promise<import("@near-wallet-selector/core").Transaction[]>; createSwapRouteInstructions(params: CreateSwapRouteInstructionsParams): Promise<import("@near-wallet-selector/core").Transaction[]>; get reserveTokenMints(): string[]; } export { Jumbo };