aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/constants.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-09 03:04:16 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-09 03:04:16 +0800
commitc27194a35783d966b27deeb1654a077b8c1ba1c8 (patch)
tree2b1deb57dcddf1c52bb7155836971be52d0b9fa3 /packages/instant/src/constants.ts
parent6d5f65b77ede962b96ca59f30df1679a8216bd06 (diff)
parentadcfe51190c8ca5cd4d11e49eb7e100c80fbd16c (diff)
downloaddexon-sol-tools-c27194a35783d966b27deeb1654a077b8c1ba1c8.tar
dexon-sol-tools-c27194a35783d966b27deeb1654a077b8c1ba1c8.tar.gz
dexon-sol-tools-c27194a35783d966b27deeb1654a077b8c1ba1c8.tar.bz2
dexon-sol-tools-c27194a35783d966b27deeb1654a077b8c1ba1c8.tar.lz
dexon-sol-tools-c27194a35783d966b27deeb1654a077b8c1ba1c8.tar.xz
dexon-sol-tools-c27194a35783d966b27deeb1654a077b8c1ba1c8.tar.zst
dexon-sol-tools-c27194a35783d966b27deeb1654a077b8c1ba1c8.zip
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/prevent-css-leakage
Diffstat (limited to 'packages/instant/src/constants.ts')
-rw-r--r--packages/instant/src/constants.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/instant/src/constants.ts b/packages/instant/src/constants.ts
index 12cbe3a70..34548f26f 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';
@@ -14,3 +17,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