UNPKG

@xspswap/smart-order-router

Version:
6 lines (5 loc) 577 B
import { Trade } from '@x-swap-protocol/router-sdk'; import { ChainId, Currency, TradeType } from '@x-swap-protocol/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;