UNPKG

@uniswap/smart-order-router

Version:
6 lines (5 loc) 561 B
import { Trade } from '@uniswap/router-sdk'; import { ChainId, Currency, TradeType } from '@uniswap/sdk-core'; import { MethodParameters, RouteWithValidQuote, SwapOptions } from '..'; export declare function buildTrade<TTradeType extends TradeType>(tokenInCurrency: Currency, tokenOutCurrency: Currency, tradeType: TTradeType, routeAmounts: RouteWithValidQuote[]): Trade<Currency, Currency, TTradeType>; export declare function buildSwapMethodParameters(trade: Trade<Currency, Currency, TradeType>, swapConfig: SwapOptions, chainId: ChainId): MethodParameters;