UNPKG

@sky-mavis/katana-swap

Version:
10 lines 713 B
import { Token } from '@uniswap/sdk-core'; import { Pair } from '@uniswap/v2-sdk'; import { Pool } from '@uniswap/v3-sdk'; import { TokenInRoute, V2PoolInRoute, V3PoolInRoute } from '../../types'; declare const parseTokenFromRouteQuote: ({ address, chainId, decimals, symbol, buyFeeBps, sellFeeBps, }: TokenInRoute) => Token; declare const parsePool: ({ fee, sqrtRatioX96, liquidity, tickCurrent, tokenIn, tokenOut }: V3PoolInRoute) => Pool; declare const parsePair: ({ reserve0, reserve1 }: V2PoolInRoute) => Pair; declare const parsePoolOrPair: (pool: V3PoolInRoute | V2PoolInRoute) => Pool | Pair; export { parsePair, parsePool, parsePoolOrPair, parseTokenFromRouteQuote }; //# sourceMappingURL=parser.d.ts.map