dex-aggregators-client
Version:
This package looks for the best route for your trade among a variety of Dex Aggregators
49 lines (48 loc) • 1.47 kB
TypeScript
import { AggregatedQuotesResponseType, IInputParams } from "./types";
declare class DexAggregators {
fromChain: string | undefined;
toChain: string | undefined;
fromToken: string;
toToken: string;
amount: string | number;
fromDecimals: number;
toDecimals: number;
slippage: number;
fromAddress: string | undefined;
toAddress: string | undefined;
response: Array<unknown>;
chainId: number | string;
gasPrice: number;
fromUsd: number | string;
toUsd: number | string;
rpc: string | undefined;
fromId: string | undefined;
callback: Function | undefined;
id: string;
constructor(params: IInputParams);
isBridge: () => boolean | "" | undefined;
private get0xQuote;
private getparaswapQuote;
private get1inchQuote;
private getopenoceanQuote;
private getkyberQuote;
private getdodoQuote;
private getrangoQuote;
private getrouterQuote;
private getsocketQuote;
private getdebridgeQuote;
private getlifiQuote;
private getsquidRouterQuote;
private getlayerSwapQuote;
private getxyQuote;
private getNetSwapQuote;
private getjupiterQuote;
private getSwapQuote;
private getosmosisdexQuote;
getAggregateQuotes(providers?: string[]): Promise<AggregatedQuotesResponseType>;
private getFormatterResponse;
private getFailedResponse;
private getUsdValues;
private getProvidersList;
}
export default DexAggregators;