diff --git a/packages/sdk-router/package.json b/packages/sdk-router/package.json index 46a1b2b055..f8c79e1386 100644 --- a/packages/sdk-router/package.json +++ b/packages/sdk-router/package.json @@ -45,6 +45,7 @@ "devDependencies": { "@types/big.js": "^4.0.5", "@types/jest": "^24.0.25", + "dotenv": "^16.3.1", "husky": "^8.0.1", "size-limit": "^8.1.0", "tsdx": "^0.14.1", @@ -63,7 +64,6 @@ "babel-jest": "^29.4.1", "big.js": "^5.2.2", "decimal.js-light": "^2.5.1", - "dotenv": "^16.3.1", "ethers": "^5.7.2", "jsbi": "^4.3.0", "tiny-invariant": "^1.2.0", diff --git a/packages/sdk-router/src/constants/index.ts b/packages/sdk-router/src/constants/index.ts index 5ccd633126..94adaff573 100644 --- a/packages/sdk-router/src/constants/index.ts +++ b/packages/sdk-router/src/constants/index.ts @@ -4,7 +4,6 @@ import { BigNumber } from '@ethersproject/bignumber' export * from './addresses' export * from './chainIds' export * from './medianTime' -export * from './testValues' // exports for external consumption export type BigintIsh = JSBI | BigNumber | string | number diff --git a/packages/sdk-router/src/router/synapseCCTPRouter.test.ts b/packages/sdk-router/src/router/synapseCCTPRouter.test.ts index 40d33d6dd0..9573125389 100644 --- a/packages/sdk-router/src/router/synapseCCTPRouter.test.ts +++ b/packages/sdk-router/src/router/synapseCCTPRouter.test.ts @@ -2,12 +2,8 @@ import { Provider } from '@ethersproject/abstract-provider' import { BigNumber, providers } from 'ethers' import { AddressZero } from '@ethersproject/constants' -import { - getTestProviderUrl, - CCTP_ROUTER_ADDRESS_MAP, - SupportedChainId, - ETH_USDC, -} from '../constants' +import { getTestProviderUrl, ETH_USDC } from '../constants/testValues' +import { CCTP_ROUTER_ADDRESS_MAP, SupportedChainId } from '../constants' import { SynapseCCTPRouter } from './synapseCCTPRouter' import { BridgeToken, CCTPRouterQuery } from '../module' import { DestRequest } from './types' diff --git a/packages/sdk-router/src/router/synapseCCTPRouterSet.test.ts b/packages/sdk-router/src/router/synapseCCTPRouterSet.test.ts index efbacd9047..252df8ce23 100644 --- a/packages/sdk-router/src/router/synapseCCTPRouterSet.test.ts +++ b/packages/sdk-router/src/router/synapseCCTPRouterSet.test.ts @@ -1,8 +1,8 @@ import { Provider } from '@ethersproject/abstract-provider' import { providers } from 'ethers' +import { getTestProviderUrl } from '../constants/testValues' import { - getTestProviderUrl, ROUTER_ADDRESS_MAP, CCTP_ROUTER_ADDRESS_MAP, MEDIAN_TIME_CCTP, diff --git a/packages/sdk-router/src/router/synapseRouter.test.ts b/packages/sdk-router/src/router/synapseRouter.test.ts index 1ccb5fcd59..068ddf2523 100644 --- a/packages/sdk-router/src/router/synapseRouter.test.ts +++ b/packages/sdk-router/src/router/synapseRouter.test.ts @@ -2,13 +2,8 @@ import { Provider } from '@ethersproject/abstract-provider' import { BigNumber, providers } from 'ethers' import { AddressZero } from '@ethersproject/constants' -import { - ETH_NUSD, - ETH_USDC, - getTestProviderUrl, - ROUTER_ADDRESS_MAP, - SupportedChainId, -} from '../constants' +import { ETH_NUSD, ETH_USDC, getTestProviderUrl } from '../constants/testValues' +import { ROUTER_ADDRESS_MAP, SupportedChainId } from '../constants' import { SynapseRouter } from './synapseRouter' import { BridgeToken, RouterQuery } from '../module' import { DestRequest } from './types' diff --git a/packages/sdk-router/src/router/synapseRouterSet.test.ts b/packages/sdk-router/src/router/synapseRouterSet.test.ts index 3de5ae0363..b74a472722 100644 --- a/packages/sdk-router/src/router/synapseRouterSet.test.ts +++ b/packages/sdk-router/src/router/synapseRouterSet.test.ts @@ -1,8 +1,8 @@ import { Provider } from '@ethersproject/abstract-provider' import { providers } from 'ethers' +import { getTestProviderUrl } from '../constants/testValues' import { - getTestProviderUrl, ROUTER_ADDRESS_MAP, CCTP_ROUTER_ADDRESS_MAP, MEDIAN_TIME_BRIDGE, diff --git a/packages/sdk-router/src/sdk.test.ts b/packages/sdk-router/src/sdk.test.ts index 80efc869ca..8e460a1509 100644 --- a/packages/sdk-router/src/sdk.test.ts +++ b/packages/sdk-router/src/sdk.test.ts @@ -17,16 +17,18 @@ import { AVAX_USDC_E, BSC_GOHM, BSC_USDC, - CCTP_ROUTER_ADDRESS_MAP, ETH_DAI, ETH_POOL_NUSD, ETH_USDC, ETH_USDT, + NATIVE_ADDRESS, + getTestProviderUrl, +} from './constants/testValues' +import { + CCTP_ROUTER_ADDRESS_MAP, MEDIAN_TIME_BRIDGE, MEDIAN_TIME_CCTP, - NATIVE_ADDRESS, ROUTER_ADDRESS_MAP, - getTestProviderUrl, SupportedChainId, } from './constants' import { BridgeQuote, FeeConfig, RouterQuery, SwapQuote } from './module'