aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/constants.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-11-07 12:25:30 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-11-08 01:32:49 +0800
commitdfbf10c94bfbbdbca353531c5cae6707e05981f0 (patch)
tree6b1f2832742517b280d7a7594adfa6fec4ea7bef /packages/instant/src/constants.ts
parentc30dca69619bf87ed198cf375d21593213798113 (diff)
downloaddexon-sol-tools-dfbf10c94bfbbdbca353531c5cae6707e05981f0.tar
dexon-sol-tools-dfbf10c94bfbbdbca353531c5cae6707e05981f0.tar.gz
dexon-sol-tools-dfbf10c94bfbbdbca353531c5cae6707e05981f0.tar.bz2
dexon-sol-tools-dfbf10c94bfbbdbca353531c5cae6707e05981f0.tar.lz
dexon-sol-tools-dfbf10c94bfbbdbca353531c5cae6707e05981f0.tar.xz
dexon-sol-tools-dfbf10c94bfbbdbca353531c5cae6707e05981f0.tar.zst
dexon-sol-tools-dfbf10c94bfbbdbca353531c5cae6707e05981f0.zip
feat(instant): fallback to an empty wallet provider when none is injected
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 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