diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-09 03:25:25 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-09 03:25:25 +0800 |
commit | 3395b8d095a62e5baa4c049da98b256ce596d6b9 (patch) | |
tree | b9241ba7299fdcc5f7a5e1f17cad7a4a95ae203d /packages/instant/src/constants.ts | |
parent | 88eb642aa543673bde52c1d14fc1f3e92d8b2137 (diff) | |
parent | b388d5496272d535b5c192a7098f4227bb1fb3f2 (diff) | |
download | dexon-sol-tools-3395b8d095a62e5baa4c049da98b256ce596d6b9.tar dexon-sol-tools-3395b8d095a62e5baa4c049da98b256ce596d6b9.tar.gz dexon-sol-tools-3395b8d095a62e5baa4c049da98b256ce596d6b9.tar.bz2 dexon-sol-tools-3395b8d095a62e5baa4c049da98b256ce596d6b9.tar.lz dexon-sol-tools-3395b8d095a62e5baa4c049da98b256ce596d6b9.tar.xz dexon-sol-tools-3395b8d095a62e5baa4c049da98b256ce596d6b9.tar.zst dexon-sol-tools-3395b8d095a62e5baa4c049da98b256ce596d6b9.zip |
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/dropdown-ui
Diffstat (limited to 'packages/instant/src/constants.ts')
-rw-r--r-- | packages/instant/src/constants.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/instant/src/constants.ts b/packages/instant/src/constants.ts index 15105b65c..34548f26f 100644 --- a/packages/instant/src/constants.ts +++ b/packages/instant/src/constants.ts @@ -1,7 +1,11 @@ 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'; +export const INJECTED_DIV_CLASS = 'zeroExInstantResetRoot'; export const INJECTED_DIV_ID = 'zeroExInstant'; export const WEB_3_WRAPPER_TRANSACTION_FAILED_ERROR_MSG_PREFIX = 'Transaction failed'; export const GWEI_IN_WEI = new BigNumber(1000000000); @@ -13,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 |