@uniswap/router-sdk 1.11.0 → 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.
@@ -0,0 +1,4 @@
1
+ import { Pool as V4Pool } from '@uniswap/v4-sdk';
2
+ import { Pair } from '@uniswap/v2-sdk';
3
+ import { Pool as V3Pool } from '@uniswap/v3-sdk';
4
+ export declare type TPool = Pair | V3Pool | V4Pool;
@@ -1,7 +1,3 @@
1
1
  import { Currency, CurrencyAmount } from '@uniswap/sdk-core';
2
- import { Pool as V4Pool } from '@uniswap/v4-sdk';
3
- import { Pair } from '@uniswap/v2-sdk';
4
- import { Pool as V3Pool } from '@uniswap/v3-sdk';
5
- declare type TPool = Pair | V3Pool | V4Pool;
2
+ import { TPool } from './TPool';
6
3
  export declare function getOutputAmount(pool: TPool, amountIn: CurrencyAmount<Currency>): Promise<[CurrencyAmount<Currency>, TPool]>;
7
- export {};
@@ -1,9 +1,6 @@
1
1
  import { Currency } 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
2
  import { MixedRouteSDK } from '../entities/mixedRoute/route';
6
- declare type TPool = Pair | V3Pool | V4Pool;
3
+ import { TPool } from './TPool';
7
4
  /**
8
5
  * Utility function to return each consecutive section of Pools or Pairs in a MixedRoute
9
6
  * @param route
@@ -17,4 +14,3 @@ export declare const partitionMixedRouteByProtocol: (route: MixedRouteSDK<Curren
17
14
  * @returns the output token of the last pool in the array
18
15
  */
19
16
  export declare const getOutputOfPools: (pools: TPool[], firstInputToken: Currency) => Currency;
20
- export {};
@@ -0,0 +1,3 @@
1
+ import { Currency } from '@uniswap/sdk-core';
2
+ import { TPool } from './TPool';
3
+ export declare function isValidTokenPath(prevPool: TPool, currentPool: TPool, inputToken: Currency): boolean;
package/package.json CHANGED
@@ -70,5 +70,5 @@
70
70
  ]
71
71
  ]
72
72
  },
73
- "version": "1.11.0"
73
+ "version": "1.11.2"
74
74
  }