@uniswap/router-sdk 1.11.1 → 1.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,5 @@
1
1
  import { Currency, Price } from '@uniswap/sdk-core';
2
- import { Pair } from '@uniswap/v2-sdk';
3
- import { Pool as V3Pool } from '@uniswap/v3-sdk';
4
- import { Pool as V4Pool } from '@uniswap/v4-sdk';
5
- declare type TPool = Pair | V3Pool | V4Pool;
2
+ import { TPool } from '../../utils/TPool';
6
3
  /**
7
4
  * Represents a list of pools or pairs through which a swap can occur
8
5
  * @template TInput The input token
@@ -28,4 +25,3 @@ export declare class MixedRouteSDK<TInput extends Currency, TOutput extends Curr
28
25
  */
29
26
  get midPrice(): Price<TInput, TOutput>;
30
27
  }
31
- export {};
@@ -1,9 +1,7 @@
1
1
  import { Currency, Percent, Price, CurrencyAmount, TradeType } from '@uniswap/sdk-core';
2
- import { Pair } from '@uniswap/v2-sdk';
3
- import { BestTradeOptions, Pool as V3Pool } from '@uniswap/v3-sdk';
4
- import { Pool as V4Pool } from '@uniswap/v4-sdk';
2
+ import { BestTradeOptions } from '@uniswap/v3-sdk';
5
3
  import { MixedRouteSDK } from './route';
6
- declare type TPool = Pair | V3Pool | V4Pool;
4
+ import { TPool } from '../../utils/TPool';
7
5
  /**
8
6
  * Trades comparator, an extension of the input output comparator that also considers other dimensions of the trade in ranking them
9
7
  * @template TInput The input token, either Ether or an ERC-20
@@ -183,4 +181,3 @@ export declare class MixedRouteTrade<TInput extends Currency, TOutput extends Cu
183
181
  */
184
182
  static bestTradeExactIn<TInput extends Currency, TOutput extends Currency>(pools: TPool[], currencyAmountIn: CurrencyAmount<TInput>, currencyOut: TOutput, { maxNumResults, maxHops }?: BestTradeOptions, currentPools?: TPool[], nextAmountIn?: CurrencyAmount<Currency>, bestTrades?: MixedRouteTrade<TInput, TOutput, TradeType.EXACT_INPUT>[]): Promise<MixedRouteTrade<TInput, TOutput, TradeType.EXACT_INPUT>[]>;
185
183
  }
186
- export {};