@xspswap/smart-order-router
Version:
XSwap Protocol V3 Smart Order Router
24 lines (23 loc) • 854 B
TypeScript
import { Token } from '@x-swap-protocol/sdk-core';
import { ChainId } from '../../util/chains';
import { IV2SubgraphProvider, V2SubgraphPool } from './subgraph-provider';
export declare const V2_XDC_ADDITIONAL_BASES: {
[tokenAddress: string]: Token[];
};
/**
* Provider that does not get data from an external source and instead returns
* a hardcoded list of Subgraph pools.
*
* Since the pools are hardcoded, the liquidity/price values are dummys and should not
* be depended on.
*
* Useful for instances where other data sources are unavailable. E.g. subgraph not available.
*
* @export
* @class StaticV2SubgraphProvider
*/
export declare class StaticV2SubgraphProvider implements IV2SubgraphProvider {
private chainId;
constructor(chainId: ChainId);
getPools(tokenIn?: Token, tokenOut?: Token): Promise<V2SubgraphPool[]>;
}