@uniswap/universal-router-sdk 4.17.0 → 4.18.0

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.
@@ -40,11 +40,25 @@ export declare type V3PoolInRoute = {
40
40
  amountIn?: string;
41
41
  amountOut?: string;
42
42
  };
43
+ export declare type V4PoolInRoute = {
44
+ type: PoolType.V4Pool;
45
+ address?: string;
46
+ tokenIn: TokenInRoute;
47
+ tokenOut: TokenInRoute;
48
+ fee: string;
49
+ tickSpacing: string;
50
+ hooks: string;
51
+ liquidity: string;
52
+ sqrtRatioX96: string;
53
+ tickCurrent: string;
54
+ amountIn?: string;
55
+ amountOut?: string;
56
+ };
43
57
  export declare type PartialClassicQuote = {
44
58
  tokenIn: string;
45
59
  tokenOut: string;
46
60
  tradeType: TradeType;
47
- route: Array<(V3PoolInRoute | V2PoolInRoute)[]>;
61
+ route: Array<(V4PoolInRoute | V3PoolInRoute | V2PoolInRoute)[]>;
48
62
  };
49
63
  export declare const isNativeCurrency: (address: string) => boolean;
50
64
  export declare class RouterTradeAdapter {
@@ -52,7 +66,8 @@ export declare class RouterTradeAdapter {
52
66
  private static toCurrency;
53
67
  private static toPoolOrPair;
54
68
  private static toToken;
55
- private static toPool;
69
+ private static toV3Pool;
70
+ private static toV4Pool;
56
71
  private static toPair;
57
72
  private static isVersionedRoute;
58
73
  }
package/package.json CHANGED
@@ -100,5 +100,5 @@
100
100
  "installConfig": {
101
101
  "hoistingLimits": "workspaces"
102
102
  },
103
- "version": "4.17.0"
103
+ "version": "4.18.0"
104
104
  }