@uniswap/universal-router-sdk 4.19.2 → 4.19.4

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.
Files changed (118) hide show
  1. package/dist/{cjs/src/entities → entities}/Command.d.ts +12 -12
  2. package/dist/{types/src/entities → entities}/actions/index.d.ts +2 -2
  3. package/dist/{cjs/src/entities → entities}/actions/uniswap.d.ts +30 -30
  4. package/dist/{esm/src/entities → entities}/actions/unwrapWETH.d.ts +12 -12
  5. package/dist/{cjs/src/entities → entities}/index.d.ts +2 -2
  6. package/dist/{esm/src/index.d.ts → index.d.ts} +10 -9
  7. package/dist/index.js +8 -0
  8. package/dist/{esm/src/swapRouter.d.ts → swapRouter.d.ts} +37 -37
  9. package/dist/test/forge/writeInterop.d.ts +2 -0
  10. package/dist/test/utils/addresses.d.ts +5 -0
  11. package/dist/test/utils/hexToDecimalString.d.ts +2 -0
  12. package/dist/test/utils/permit2.d.ts +7 -0
  13. package/dist/test/utils/uniswapData.d.ts +24 -0
  14. package/dist/universal-router-sdk.cjs.development.js +1424 -0
  15. package/dist/universal-router-sdk.cjs.development.js.map +1 -0
  16. package/dist/universal-router-sdk.cjs.production.min.js +2 -0
  17. package/dist/universal-router-sdk.cjs.production.min.js.map +1 -0
  18. package/dist/universal-router-sdk.esm.js +1417 -0
  19. package/dist/universal-router-sdk.esm.js.map +1 -0
  20. package/dist/{esm/src/utils → utils}/commandParser.d.ts +34 -34
  21. package/dist/{types/src/utils → utils}/constants.d.ts +30 -30
  22. package/dist/{cjs/src/utils → utils}/getCurrencyAddress.d.ts +2 -2
  23. package/dist/{types/src/utils → utils}/inputTokens.d.ts +23 -23
  24. package/dist/{cjs/src/utils → utils}/numbers.d.ts +6 -6
  25. package/dist/{types/src/utils → utils}/pathCurrency.d.ts +3 -3
  26. package/dist/{cjs/src/utils → utils}/routerCommands.d.ts +64 -64
  27. package/dist/{types/src/utils → utils}/routerTradeAdapter.d.ts +73 -73
  28. package/package.json +10 -21
  29. package/dist/cjs/src/entities/Command.js +0 -9
  30. package/dist/cjs/src/entities/Command.js.map +0 -1
  31. package/dist/cjs/src/entities/actions/index.d.ts +0 -2
  32. package/dist/cjs/src/entities/actions/index.js +0 -6
  33. package/dist/cjs/src/entities/actions/index.js.map +0 -1
  34. package/dist/cjs/src/entities/actions/uniswap.js +0 -365
  35. package/dist/cjs/src/entities/actions/uniswap.js.map +0 -1
  36. package/dist/cjs/src/entities/actions/unwrapWETH.d.ts +0 -12
  37. package/dist/cjs/src/entities/actions/unwrapWETH.js +0 -33
  38. package/dist/cjs/src/entities/actions/unwrapWETH.js.map +0 -1
  39. package/dist/cjs/src/entities/index.js +0 -6
  40. package/dist/cjs/src/entities/index.js.map +0 -1
  41. package/dist/cjs/src/index.d.ts +0 -9
  42. package/dist/cjs/src/index.js +0 -24
  43. package/dist/cjs/src/index.js.map +0 -1
  44. package/dist/cjs/src/swapRouter.d.ts +0 -37
  45. package/dist/cjs/src/swapRouter.js +0 -120
  46. package/dist/cjs/src/swapRouter.js.map +0 -1
  47. package/dist/cjs/src/utils/commandParser.d.ts +0 -34
  48. package/dist/cjs/src/utils/commandParser.js +0 -144
  49. package/dist/cjs/src/utils/commandParser.js.map +0 -1
  50. package/dist/cjs/src/utils/constants.d.ts +0 -30
  51. package/dist/cjs/src/utils/constants.js +0 -373
  52. package/dist/cjs/src/utils/constants.js.map +0 -1
  53. package/dist/cjs/src/utils/getCurrencyAddress.js +0 -9
  54. package/dist/cjs/src/utils/getCurrencyAddress.js.map +0 -1
  55. package/dist/cjs/src/utils/inputTokens.d.ts +0 -23
  56. package/dist/cjs/src/utils/inputTokens.js +0 -58
  57. package/dist/cjs/src/utils/inputTokens.js.map +0 -1
  58. package/dist/cjs/src/utils/numbers.js +0 -22
  59. package/dist/cjs/src/utils/numbers.js.map +0 -1
  60. package/dist/cjs/src/utils/pathCurrency.d.ts +0 -3
  61. package/dist/cjs/src/utils/pathCurrency.js +0 -27
  62. package/dist/cjs/src/utils/pathCurrency.js.map +0 -1
  63. package/dist/cjs/src/utils/routerCommands.js +0 -231
  64. package/dist/cjs/src/utils/routerCommands.js.map +0 -1
  65. package/dist/cjs/src/utils/routerTradeAdapter.d.ts +0 -73
  66. package/dist/cjs/src/utils/routerTradeAdapter.js +0 -139
  67. package/dist/cjs/src/utils/routerTradeAdapter.js.map +0 -1
  68. package/dist/esm/src/entities/Command.d.ts +0 -12
  69. package/dist/esm/src/entities/Command.js +0 -6
  70. package/dist/esm/src/entities/Command.js.map +0 -1
  71. package/dist/esm/src/entities/actions/index.d.ts +0 -2
  72. package/dist/esm/src/entities/actions/index.js +0 -3
  73. package/dist/esm/src/entities/actions/index.js.map +0 -1
  74. package/dist/esm/src/entities/actions/uniswap.d.ts +0 -30
  75. package/dist/esm/src/entities/actions/uniswap.js +0 -361
  76. package/dist/esm/src/entities/actions/uniswap.js.map +0 -1
  77. package/dist/esm/src/entities/actions/unwrapWETH.js +0 -28
  78. package/dist/esm/src/entities/actions/unwrapWETH.js.map +0 -1
  79. package/dist/esm/src/entities/index.d.ts +0 -2
  80. package/dist/esm/src/entities/index.js +0 -3
  81. package/dist/esm/src/entities/index.js.map +0 -1
  82. package/dist/esm/src/index.js +0 -7
  83. package/dist/esm/src/index.js.map +0 -1
  84. package/dist/esm/src/swapRouter.js +0 -115
  85. package/dist/esm/src/swapRouter.js.map +0 -1
  86. package/dist/esm/src/utils/commandParser.js +0 -137
  87. package/dist/esm/src/utils/commandParser.js.map +0 -1
  88. package/dist/esm/src/utils/constants.d.ts +0 -30
  89. package/dist/esm/src/utils/constants.js +0 -367
  90. package/dist/esm/src/utils/constants.js.map +0 -1
  91. package/dist/esm/src/utils/getCurrencyAddress.d.ts +0 -2
  92. package/dist/esm/src/utils/getCurrencyAddress.js +0 -5
  93. package/dist/esm/src/utils/getCurrencyAddress.js.map +0 -1
  94. package/dist/esm/src/utils/inputTokens.d.ts +0 -23
  95. package/dist/esm/src/utils/inputTokens.js +0 -51
  96. package/dist/esm/src/utils/inputTokens.js.map +0 -1
  97. package/dist/esm/src/utils/numbers.d.ts +0 -6
  98. package/dist/esm/src/utils/numbers.js +0 -15
  99. package/dist/esm/src/utils/numbers.js.map +0 -1
  100. package/dist/esm/src/utils/pathCurrency.d.ts +0 -3
  101. package/dist/esm/src/utils/pathCurrency.js +0 -23
  102. package/dist/esm/src/utils/pathCurrency.js.map +0 -1
  103. package/dist/esm/src/utils/routerCommands.d.ts +0 -64
  104. package/dist/esm/src/utils/routerCommands.js +0 -226
  105. package/dist/esm/src/utils/routerCommands.js.map +0 -1
  106. package/dist/esm/src/utils/routerTradeAdapter.d.ts +0 -73
  107. package/dist/esm/src/utils/routerTradeAdapter.js +0 -134
  108. package/dist/esm/src/utils/routerTradeAdapter.js.map +0 -1
  109. package/dist/types/src/entities/Command.d.ts +0 -12
  110. package/dist/types/src/entities/actions/uniswap.d.ts +0 -30
  111. package/dist/types/src/entities/actions/unwrapWETH.d.ts +0 -12
  112. package/dist/types/src/entities/index.d.ts +0 -2
  113. package/dist/types/src/index.d.ts +0 -9
  114. package/dist/types/src/swapRouter.d.ts +0 -37
  115. package/dist/types/src/utils/commandParser.d.ts +0 -34
  116. package/dist/types/src/utils/getCurrencyAddress.d.ts +0 -2
  117. package/dist/types/src/utils/numbers.d.ts +0 -6
  118. package/dist/types/src/utils/routerCommands.d.ts +0 -64
@@ -1,12 +1,12 @@
1
- import { RoutePlanner } from '../utils/routerCommands';
2
- export type TradeConfig = {
3
- allowRevert: boolean;
4
- };
5
- export declare enum RouterActionType {
6
- UniswapTrade = "UniswapTrade",
7
- UnwrapWETH = "UnwrapWETH"
8
- }
9
- export interface Command {
10
- tradeType: RouterActionType;
11
- encode(planner: RoutePlanner, config: TradeConfig): void;
12
- }
1
+ import { RoutePlanner } from '../utils/routerCommands';
2
+ export declare type TradeConfig = {
3
+ allowRevert: boolean;
4
+ };
5
+ export declare enum RouterActionType {
6
+ UniswapTrade = "UniswapTrade",
7
+ UnwrapWETH = "UnwrapWETH"
8
+ }
9
+ export interface Command {
10
+ tradeType: RouterActionType;
11
+ encode(planner: RoutePlanner, config: TradeConfig): void;
12
+ }
@@ -1,2 +1,2 @@
1
- export * from './uniswap';
2
- export * from './unwrapWETH';
1
+ export * from './uniswap';
2
+ export * from './unwrapWETH';
@@ -1,30 +1,30 @@
1
- import { RoutePlanner } from '../../utils/routerCommands';
2
- import { Trade as RouterTrade, SwapOptions as RouterSwapOptions } from '@uniswap/router-sdk';
3
- import { Permit2Permit } from '../../utils/inputTokens';
4
- import { Currency, TradeType } from '@uniswap/sdk-core';
5
- import { Command, RouterActionType, TradeConfig } from '../Command';
6
- import { BigNumberish } from 'ethers';
7
- export type FlatFeeOptions = {
8
- amount: BigNumberish;
9
- recipient: string;
10
- };
11
- export type SwapOptions = Omit<RouterSwapOptions, 'inputTokenPermit'> & {
12
- useRouterBalance?: boolean;
13
- inputTokenPermit?: Permit2Permit;
14
- flatFee?: FlatFeeOptions;
15
- safeMode?: boolean;
16
- };
17
- export declare class UniswapTrade implements Command {
18
- trade: RouterTrade<Currency, Currency, TradeType>;
19
- options: SwapOptions;
20
- readonly tradeType: RouterActionType;
21
- readonly payerIsUser: boolean;
22
- constructor(trade: RouterTrade<Currency, Currency, TradeType>, options: SwapOptions);
23
- get isAllV4(): boolean;
24
- get inputRequiresWrap(): boolean;
25
- get inputRequiresUnwrap(): boolean;
26
- get outputRequiresWrap(): boolean;
27
- get outputRequiresUnwrap(): boolean;
28
- get outputRequiresTransition(): boolean;
29
- encode(planner: RoutePlanner, _config: TradeConfig): void;
30
- }
1
+ import { RoutePlanner } from '../../utils/routerCommands';
2
+ import { Trade as RouterTrade, SwapOptions as RouterSwapOptions } from '@uniswap/router-sdk';
3
+ import { Permit2Permit } from '../../utils/inputTokens';
4
+ import { Currency, TradeType } from '@uniswap/sdk-core';
5
+ import { Command, RouterActionType, TradeConfig } from '../Command';
6
+ import { BigNumberish } from 'ethers';
7
+ export declare type FlatFeeOptions = {
8
+ amount: BigNumberish;
9
+ recipient: string;
10
+ };
11
+ export declare type SwapOptions = Omit<RouterSwapOptions, 'inputTokenPermit'> & {
12
+ useRouterBalance?: boolean;
13
+ inputTokenPermit?: Permit2Permit;
14
+ flatFee?: FlatFeeOptions;
15
+ safeMode?: boolean;
16
+ };
17
+ export declare class UniswapTrade implements Command {
18
+ trade: RouterTrade<Currency, Currency, TradeType>;
19
+ options: SwapOptions;
20
+ readonly tradeType: RouterActionType;
21
+ readonly payerIsUser: boolean;
22
+ constructor(trade: RouterTrade<Currency, Currency, TradeType>, options: SwapOptions);
23
+ get isAllV4(): boolean;
24
+ get inputRequiresWrap(): boolean;
25
+ get inputRequiresUnwrap(): boolean;
26
+ get outputRequiresWrap(): boolean;
27
+ get outputRequiresUnwrap(): boolean;
28
+ get outputRequiresTransition(): boolean;
29
+ encode(planner: RoutePlanner, _config: TradeConfig): void;
30
+ }
@@ -1,12 +1,12 @@
1
- import { BigNumberish } from 'ethers';
2
- import { RoutePlanner } from '../../utils/routerCommands';
3
- import { Permit2Permit } from '../../utils/inputTokens';
4
- import { Command, RouterActionType, TradeConfig } from '../Command';
5
- export declare class UnwrapWETH implements Command {
6
- readonly tradeType: RouterActionType;
7
- readonly permit2Data?: Permit2Permit;
8
- readonly wethAddress: string;
9
- readonly amount: BigNumberish;
10
- constructor(amount: BigNumberish, chainId: number, permit2?: Permit2Permit);
11
- encode(planner: RoutePlanner, _: TradeConfig): void;
12
- }
1
+ import { BigNumberish } from 'ethers';
2
+ import { RoutePlanner } from '../../utils/routerCommands';
3
+ import { Permit2Permit } from '../../utils/inputTokens';
4
+ import { Command, RouterActionType, TradeConfig } from '../Command';
5
+ export declare class UnwrapWETH implements Command {
6
+ readonly tradeType: RouterActionType;
7
+ readonly permit2Data?: Permit2Permit;
8
+ readonly wethAddress: string;
9
+ readonly amount: BigNumberish;
10
+ constructor(amount: BigNumberish, chainId: number, permit2?: Permit2Permit);
11
+ encode(planner: RoutePlanner, _: TradeConfig): void;
12
+ }
@@ -1,2 +1,2 @@
1
- export * from './actions';
2
- export * from './Command';
1
+ export * from './actions';
2
+ export * from './Command';
@@ -1,9 +1,10 @@
1
- export { SwapRouter } from './swapRouter';
2
- export type { MigrateV3ToV4Options } from './swapRouter';
3
- export * from './entities';
4
- export * from './utils/routerTradeAdapter';
5
- export { RoutePlanner, CommandType, COMMAND_DEFINITION, Parser, Subparser } from './utils/routerCommands';
6
- export type { CommandDefinition, ParamType } from './utils/routerCommands';
7
- export { UNIVERSAL_ROUTER_CREATION_BLOCK, UNIVERSAL_ROUTER_ADDRESS, ROUTER_AS_RECIPIENT, WETH_ADDRESS, UniversalRouterVersion, } from './utils/constants';
8
- export { CommandParser, GenericCommandParser } from './utils/commandParser';
9
- export type { UniversalRouterCommand, UniversalRouterCall, Param, CommandsDefinition } from './utils/commandParser';
1
+ export { SwapRouter } from './swapRouter';
2
+ export type { MigrateV3ToV4Options } from './swapRouter';
3
+ export * from './entities';
4
+ export * from './utils/routerTradeAdapter';
5
+ export { RoutePlanner, CommandType, COMMAND_DEFINITION, Parser, Subparser } from './utils/routerCommands';
6
+ export type { CommandDefinition, ParamType } from './utils/routerCommands';
7
+ export { UNIVERSAL_ROUTER_CREATION_BLOCK, UNIVERSAL_ROUTER_ADDRESS, ROUTER_AS_RECIPIENT, WETH_ADDRESS, UniversalRouterVersion, } from './utils/constants';
8
+ export { CommandParser, GenericCommandParser } from './utils/commandParser';
9
+ export type { UniversalRouterCommand, UniversalRouterCall, Param, CommandsDefinition } from './utils/commandParser';
10
+ export type { Permit2Permit } from './utils/inputTokens';
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+
2
+ 'use strict'
3
+
4
+ if (process.env.NODE_ENV === 'production') {
5
+ module.exports = require('./universal-router-sdk.cjs.production.min.js')
6
+ } else {
7
+ module.exports = require('./universal-router-sdk.cjs.development.js')
8
+ }
@@ -1,37 +1,37 @@
1
- import { Interface } from '@ethersproject/abi';
2
- import { BigNumberish } from 'ethers';
3
- import { MethodParameters, Position as V3Position, RemoveLiquidityOptions as V3RemoveLiquidityOptions } from '@uniswap/v3-sdk';
4
- import { Position as V4Position, AddLiquidityOptions as V4AddLiquidityOptions } from '@uniswap/v4-sdk';
5
- import { Trade as RouterTrade } from '@uniswap/router-sdk';
6
- import { Currency, TradeType } from '@uniswap/sdk-core';
7
- import { SwapOptions } from './entities/actions/uniswap';
8
- export type SwapRouterConfig = {
9
- sender?: string;
10
- deadline?: BigNumberish;
11
- };
12
- export interface MigrateV3ToV4Options {
13
- inputPosition: V3Position;
14
- outputPosition: V4Position;
15
- v3RemoveLiquidityOptions: V3RemoveLiquidityOptions;
16
- v4AddLiquidityOptions: V4AddLiquidityOptions;
17
- }
18
- export declare abstract class SwapRouter {
19
- static INTERFACE: Interface;
20
- static swapCallParameters(trades: RouterTrade<Currency, Currency, TradeType>, options: SwapOptions): MethodParameters;
21
- /**
22
- * Builds the call parameters for a migration from a V3 position to a V4 position.
23
- * Some requirements of the parameters:
24
- * - v3RemoveLiquidityOptions.collectOptions.recipient must equal v4PositionManager
25
- * - v3RemoveLiquidityOptions.liquidityPercentage must be 100%
26
- * - input pool and output pool must have the same tokens
27
- * - V3 NFT must be approved, or valid inputV3NFTPermit must be provided with UR as spender
28
- */
29
- static migrateV3ToV4CallParameters(options: MigrateV3ToV4Options, positionManagerOverride?: string): MethodParameters;
30
- /**
31
- * Encodes a planned route into a method name and parameters for the Router contract.
32
- * @param planner the planned route
33
- * @param nativeCurrencyValue the native currency value of the planned route
34
- * @param config the router config
35
- */
36
- private static encodePlan;
37
- }
1
+ import { Interface } from '@ethersproject/abi';
2
+ import { BigNumberish } from 'ethers';
3
+ import { MethodParameters, Position as V3Position, RemoveLiquidityOptions as V3RemoveLiquidityOptions } from '@uniswap/v3-sdk';
4
+ import { Position as V4Position, AddLiquidityOptions as V4AddLiquidityOptions } from '@uniswap/v4-sdk';
5
+ import { Trade as RouterTrade } from '@uniswap/router-sdk';
6
+ import { Currency, TradeType } from '@uniswap/sdk-core';
7
+ import { SwapOptions } from './entities/actions/uniswap';
8
+ export declare type SwapRouterConfig = {
9
+ sender?: string;
10
+ deadline?: BigNumberish;
11
+ };
12
+ export interface MigrateV3ToV4Options {
13
+ inputPosition: V3Position;
14
+ outputPosition: V4Position;
15
+ v3RemoveLiquidityOptions: V3RemoveLiquidityOptions;
16
+ v4AddLiquidityOptions: V4AddLiquidityOptions;
17
+ }
18
+ export declare abstract class SwapRouter {
19
+ static INTERFACE: Interface;
20
+ static swapCallParameters(trades: RouterTrade<Currency, Currency, TradeType>, options: SwapOptions): MethodParameters;
21
+ /**
22
+ * Builds the call parameters for a migration from a V3 position to a V4 position.
23
+ * Some requirements of the parameters:
24
+ * - v3RemoveLiquidityOptions.collectOptions.recipient must equal v4PositionManager
25
+ * - v3RemoveLiquidityOptions.liquidityPercentage must be 100%
26
+ * - input pool and output pool must have the same tokens
27
+ * - V3 NFT must be approved, or valid inputV3NFTPermit must be provided with UR as spender
28
+ */
29
+ static migrateV3ToV4CallParameters(options: MigrateV3ToV4Options, positionManagerOverride?: string): MethodParameters;
30
+ /**
31
+ * Encodes a planned route into a method name and parameters for the Router contract.
32
+ * @param planner the planned route
33
+ * @param nativeCurrencyValue the native currency value of the planned route
34
+ * @param config the router config
35
+ */
36
+ private static encodePlan;
37
+ }
@@ -0,0 +1,2 @@
1
+ import { MethodParameters } from '@uniswap/v3-sdk';
2
+ export declare function registerFixture(key: string, data: MethodParameters): void;
@@ -0,0 +1,5 @@
1
+ export declare const FORGE_V4_POSITION_MANAGER = "0x2e234DAe75C793f67A35089C9d99245E1C58470b";
2
+ export declare const FORGE_SENDER_ADDRESS = "0xcf03dd0a894ef79cb5b601a43c4b25e3ae4c67ed";
3
+ export declare const TEST_RECIPIENT_ADDRESS = "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
4
+ export declare const TEST_FEE_RECIPIENT_ADDRESS = "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb";
5
+ export declare const PERMIT2_ADDRESS = "0x000000000022D473030F116dDEE9F6B43aC78BA3";
@@ -0,0 +1,2 @@
1
+ import { BigNumberish } from 'ethers';
2
+ export declare function hexToDecimalString(hex: BigNumberish): string;
@@ -0,0 +1,7 @@
1
+ import { Wallet } from 'ethers';
2
+ import { PermitSingle } from '@uniswap/permit2-sdk';
3
+ import { Permit2Permit } from '../../src/utils/inputTokens';
4
+ export declare function generatePermitSignature(permit: PermitSingle, signer: Wallet, chainId: number, permitAddress?: string): Promise<string>;
5
+ export declare function generateEip2098PermitSignature(permit: PermitSingle, signer: Wallet, chainId: number, permitAddress?: string): Promise<string>;
6
+ export declare function toInputPermit(signature: string, permit: PermitSingle): Permit2Permit;
7
+ export declare function makePermit(token: string, amount?: string, nonce?: string, routerAddress?: string): PermitSingle;
@@ -0,0 +1,24 @@
1
+ import { MixedRouteTrade, Trade as RouterTrade } from '@uniswap/router-sdk';
2
+ import { Trade as V2Trade, Pair } from '@uniswap/v2-sdk';
3
+ import { Trade as V3Trade, Pool, FeeAmount } from '@uniswap/v3-sdk';
4
+ import { Trade as V4Trade } from '@uniswap/v4-sdk';
5
+ import { SwapOptions } from '../../src';
6
+ import { TradeType, Ether, Token, Currency } from '@uniswap/sdk-core';
7
+ export declare const ETHER: Ether;
8
+ export declare const WETH: Token;
9
+ export declare const DAI: Token;
10
+ export declare const USDC: Token;
11
+ export declare const FEE_AMOUNT = FeeAmount.MEDIUM;
12
+ declare type UniswapPools = {
13
+ WETH_USDC_V2: Pair;
14
+ USDC_DAI_V2: Pair;
15
+ WETH_USDC_V3: Pool;
16
+ WETH_USDC_V3_LOW_FEE: Pool;
17
+ USDC_DAI_V3: Pool;
18
+ };
19
+ export declare function getUniswapPools(forkBlock?: number): Promise<UniswapPools>;
20
+ export declare function getPair(tokenA: Token, tokenB: Token, blockNumber: number): Promise<Pair>;
21
+ export declare function getPool(tokenA: Token, tokenB: Token, feeAmount: FeeAmount, blockNumber: number): Promise<Pool>;
22
+ export declare function swapOptions(options: Partial<SwapOptions>): SwapOptions;
23
+ export declare function buildTrade(trades: (V2Trade<Currency, Currency, TradeType> | V3Trade<Currency, Currency, TradeType> | V4Trade<Currency, Currency, TradeType> | MixedRouteTrade<Currency, Currency, TradeType>)[]): RouterTrade<Currency, Currency, TradeType>;
24
+ export {};