@uniswap/router-sdk 2.0.2 → 2.0.3

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.
@@ -2,11 +2,11 @@ import { Percent, validateAndParseAddress, CurrencyAmount, Price, Fraction, Trad
2
2
  import JSBI from 'jsbi';
3
3
  import { Interface } from '@ethersproject/abi';
4
4
  import invariant from 'tiny-invariant';
5
- import { abi } from '@uniswap/swap-router-contracts/artifacts/contracts/interfaces/IApproveAndCall.sol/IApproveAndCall.json';
5
+ import IApproveAndCall from '@uniswap/swap-router-contracts/artifacts/contracts/interfaces/IApproveAndCall.sol/IApproveAndCall.json';
6
6
  import { NonfungiblePositionManager, toHex, Multicall, Payments, Pool as Pool$1, Route as Route$1, Trade as Trade$2, encodeRouteToPath, SelfPermit, Position } from '@uniswap/v3-sdk';
7
- import { abi as abi$1 } from '@uniswap/swap-router-contracts/artifacts/contracts/interfaces/IMulticallExtended.sol/IMulticallExtended.json';
8
- import { abi as abi$2 } from '@uniswap/swap-router-contracts/artifacts/contracts/interfaces/IPeripheryPaymentsWithFeeExtended.sol/IPeripheryPaymentsWithFeeExtended.json';
9
- import { abi as abi$3 } from '@uniswap/swap-router-contracts/artifacts/contracts/interfaces/ISwapRouter02.sol/ISwapRouter02.json';
7
+ import IMulticallExtended from '@uniswap/swap-router-contracts/artifacts/contracts/interfaces/IMulticallExtended.sol/IMulticallExtended.json';
8
+ import IPeripheryPaymentsWithFeeExtended from '@uniswap/swap-router-contracts/artifacts/contracts/interfaces/IPeripheryPaymentsWithFeeExtended.sol/IPeripheryPaymentsWithFeeExtended.json';
9
+ import ISwapRouter02 from '@uniswap/swap-router-contracts/artifacts/contracts/interfaces/ISwapRouter02.sol/ISwapRouter02.json';
10
10
  import { Pair, Route, Trade as Trade$3 } from '@uniswap/v2-sdk';
11
11
  import { Pool, Route as Route$2, Trade as Trade$1 } from '@uniswap/v4-sdk';
12
12
  import { pack } from '@ethersproject/solidity';
@@ -124,7 +124,7 @@ var ApproveAndCall = /*#__PURE__*/function () {
124
124
  };
125
125
  return ApproveAndCall;
126
126
  }();
127
- ApproveAndCall.INTERFACE = /*#__PURE__*/new Interface(abi);
127
+ ApproveAndCall.INTERFACE = /*#__PURE__*/new Interface(IApproveAndCall.abi);
128
128
 
129
129
  function validateAndParseBytes32(bytes32) {
130
130
  if (!bytes32.match(/^0x[0-9a-fA-F]{64}$/)) {
@@ -157,7 +157,7 @@ var MulticallExtended = /*#__PURE__*/function () {
157
157
  };
158
158
  return MulticallExtended;
159
159
  }();
160
- MulticallExtended.INTERFACE = /*#__PURE__*/new Interface(abi$1);
160
+ MulticallExtended.INTERFACE = /*#__PURE__*/new Interface(IMulticallExtended.abi);
161
161
 
162
162
  function encodeFeeBips(fee) {
163
163
  return toHex(fee.multiply(10000).quotient);
@@ -201,7 +201,7 @@ var PaymentsExtended = /*#__PURE__*/function () {
201
201
  };
202
202
  return PaymentsExtended;
203
203
  }();
204
- PaymentsExtended.INTERFACE = /*#__PURE__*/new Interface(abi$2);
204
+ PaymentsExtended.INTERFACE = /*#__PURE__*/new Interface(IPeripheryPaymentsWithFeeExtended.abi);
205
205
 
206
206
  function _arrayLikeToArray(r, a) {
207
207
  (null == a || a > r.length) && (a = r.length);
@@ -2421,7 +2421,7 @@ var SwapRouter = /*#__PURE__*/function () {
2421
2421
  };
2422
2422
  return SwapRouter;
2423
2423
  }();
2424
- SwapRouter.INTERFACE = /*#__PURE__*/new Interface(abi$3);
2424
+ SwapRouter.INTERFACE = /*#__PURE__*/new Interface(ISwapRouter02.abi);
2425
2425
 
2426
2426
  export { ADDRESS_THIS, ADDRESS_ZERO, ApprovalTypes, ApproveAndCall, MIXED_QUOTER_V1_V2_FEE_PATH_PLACEHOLDER, MIXED_QUOTER_V2_V2_FEE_PATH_PLACEHOLDER, MIXED_QUOTER_V2_V3_FEE_PATH_PLACEHOLDER, MIXED_QUOTER_V2_V4_FEE_PATH_PLACEHOLDER, MSG_SENDER, MixedRoute, MixedRouteSDK, MixedRouteTrade, MulticallExtended, ONE, ONE_HUNDRED_PERCENT, PaymentsExtended, Protocol, RouteV2, RouteV3, RouteV4, SwapRouter, Trade, ZERO, ZERO_PERCENT, amountWithPathCurrency, encodeMixedRouteToPath, getOutputOfPools, getPathCurrency, getPathToken, isMint, partitionMixedRouteByProtocol, tradeComparator };
2427
2427
  //# sourceMappingURL=router-sdk.esm.js.map