diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-11-08 15:40:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-08 15:40:43 +0800 |
commit | f6abc007ffb249e4bbf85b8a7a77309d43e0a147 (patch) | |
tree | 0bf9d75eed4bc60d37b7aed47be6adc2b4551a40 /packages/instant/src/constants.ts | |
parent | 771f8a6a6cff935631e8c6ebcdc012cdd3533de6 (diff) | |
parent | 54b51830d075fcfc9b9e3ce0f4f4a4ef26eaf036 (diff) | |
download | dexon-sol-tools-f6abc007ffb249e4bbf85b8a7a77309d43e0a147.tar dexon-sol-tools-f6abc007ffb249e4bbf85b8a7a77309d43e0a147.tar.gz dexon-sol-tools-f6abc007ffb249e4bbf85b8a7a77309d43e0a147.tar.bz2 dexon-sol-tools-f6abc007ffb249e4bbf85b8a7a77309d43e0a147.tar.lz dexon-sol-tools-f6abc007ffb249e4bbf85b8a7a77309d43e0a147.tar.xz dexon-sol-tools-f6abc007ffb249e4bbf85b8a7a77309d43e0a147.tar.zst dexon-sol-tools-f6abc007ffb249e4bbf85b8a7a77309d43e0a147.zip |
Merge pull request #1221 from 0xProject/feature/instant/fallback-provider
[instant] Ensure we always have a provider from initial state
Diffstat (limited to 'packages/instant/src/constants.ts')
-rw-r--r-- | packages/instant/src/constants.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/instant/src/constants.ts b/packages/instant/src/constants.ts index 15105b65c..00521b56e 100644 --- a/packages/instant/src/constants.ts +++ b/packages/instant/src/constants.ts @@ -1,4 +1,7 @@ import { BigNumber } from '@0x/utils'; + +import { Network } from './types'; + export const BIG_NUMBER_ZERO = new BigNumber(0); export const ETH_DECIMALS = 18; export const DEFAULT_ZERO_EX_CONTAINER_SELECTOR = '#zeroExInstantContainer'; @@ -13,3 +16,8 @@ export const ETH_GAS_STATION_API_BASE_URL = 'https://ethgasstation.info'; export const COINBASE_API_BASE_URL = 'https://api.coinbase.com/v2'; export const PROGRESS_STALL_AT_WIDTH = '95%'; export const PROGRESS_FINISH_ANIMATION_TIME_MS = 200; +export const ETHEREUM_NODE_URL_BY_NETWORK = { + [Network.Mainnet]: 'https://mainnet.infura.io/', + [Network.Kovan]: 'https://kovan.infura.io/', +}; +export const BLOCK_POLLING_INTERVAL_MS = 10000; // 10s |