@xspswap/smart-order-router
Version:
XSwap Protocol V3 Smart Order Router
31 lines (30 loc) • 1.17 kB
TypeScript
import { Token } from '@x-swap-protocol/sdk-core';
import { FeeAmount } from '@x-swap-protocol/v3-sdk';
import { ChainId } from '../../util/chains';
import { IV3PoolProvider } from './pool-provider';
import { IV3SubgraphProvider, V3SubgraphPool } from './subgraph-provider';
export declare const ADDITIONAL_BASES: {
[chainId in ChainId]: {
[tokenAddress: string]: [Token, FeeAmount][];
};
};
export declare const V3_XDC_ADDITIONAL_BASES: {
[tokenAddress: string]: [Token, FeeAmount][];
};
/**
* Provider that uses a hardcoded list of V3 pools to generate a list of subgraph pools.
*
* Since the pools are hardcoded and the data does not come from the Subgraph, the TVL 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 StaticV3SubgraphProvider
*/
export declare class StaticV3SubgraphProvider implements IV3SubgraphProvider {
private chainId;
private poolProvider;
constructor(chainId: ChainId, poolProvider: IV3PoolProvider);
getPools(tokenIn?: Token, tokenOut?: Token): Promise<V3SubgraphPool[]>;
}