@perk.money/perk-swap-core
Version:
This npm package contains core logic of Perk Aggregator build on top of NEAR blockchain
24 lines (23 loc) • 995 B
TypeScript
import { Provider } from 'near-api-js/lib/providers';
import { Amm, CreateSwapRouteInstructionsParams, Quote, QuoteParams, SwapParams } from '../common/types';
import { RefFinancePool } from './types';
declare class RefFinance implements Amm {
id: string;
contractId: string;
instanceId: number;
pool: RefFinancePool;
isSimplePool: boolean;
label: 'Ref.Finance';
constructor(pool: RefFinancePool);
static loadPools({ provider, }: {
provider: Provider;
}): Promise<RefFinance[]>;
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 { RefFinance };