Skip to content

Commit

Permalink
Move dotenv to dev deps (#1696)
Browse files Browse the repository at this point in the history
* Move dotenv to dev deps

* Don't expose test values in ./constants

* Update imports

* [REVERT IN PROD] use local SDK

* Revert "[REVERT IN PROD] use local SDK"

This reverts commit be9f0c0.

---------

Co-authored-by: ChiTimesChi <[email protected]>
  • Loading branch information
bigboydiamonds and ChiTimesChi authored Dec 22, 2023
1 parent d5aff40 commit f14a22a
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 20 deletions.
2 changes: 1 addition & 1 deletion packages/sdk-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
1 change: 0 additions & 1 deletion packages/sdk-router/src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions packages/sdk-router/src/router/synapseCCTPRouter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
9 changes: 2 additions & 7 deletions packages/sdk-router/src/router/synapseRouter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-router/src/router/synapseRouterSet.test.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
8 changes: 5 additions & 3 deletions packages/sdk-router/src/sdk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit f14a22a

Please sign in to comment.