diff options
author | Fabio Berger <me@fabioberger.com> | 2017-12-20 06:36:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-20 06:36:37 +0800 |
commit | d1c36f50d5849e70e16b785f5fff8f58435536d7 (patch) | |
tree | 713c69e926fefa4953fa80fa98bc903ba94f6da3 /packages/website/ts/utils | |
parent | c39ac903a972930d538f8fa3292c658201b1c5e5 (diff) | |
parent | 484312e677d1f1f1b280cdada92acddf5effd525 (diff) | |
download | dexon-sol-tools-d1c36f50d5849e70e16b785f5fff8f58435536d7.tar dexon-sol-tools-d1c36f50d5849e70e16b785f5fff8f58435536d7.tar.gz dexon-sol-tools-d1c36f50d5849e70e16b785f5fff8f58435536d7.tar.bz2 dexon-sol-tools-d1c36f50d5849e70e16b785f5fff8f58435536d7.tar.lz dexon-sol-tools-d1c36f50d5849e70e16b785f5fff8f58435536d7.tar.xz dexon-sol-tools-d1c36f50d5849e70e16b785f5fff8f58435536d7.tar.zst dexon-sol-tools-d1c36f50d5849e70e16b785f5fff8f58435536d7.zip |
Merge pull request #283 from 0xProject/createWethPage
Merge WETH page improvements into development
Diffstat (limited to 'packages/website/ts/utils')
-rw-r--r-- | packages/website/ts/utils/configs.ts | 12 | ||||
-rw-r--r-- | packages/website/ts/utils/constants.ts | 2 |
2 files changed, 10 insertions, 4 deletions
diff --git a/packages/website/ts/utils/configs.ts b/packages/website/ts/utils/configs.ts index 8921c68a4..4ae40d715 100644 --- a/packages/website/ts/utils/configs.ts +++ b/packages/website/ts/utils/configs.ts @@ -26,21 +26,18 @@ export const configs = { [SmartContractDocSections.Exchange]: '0x12459c951127e0c374ff9105dda097662a027093', [SmartContractDocSections.TokenTransferProxy]: '0x8da0d80f5007ef1e431dd2127178d224e32c2ef4', [SmartContractDocSections.ZRXToken]: '0xe41d2489571d322189246dafa5ebde1f4699f498', - [SmartContractDocSections.EtherToken]: '0x2956356cd2a2bf3202f771f50d3d14a367b48070', [SmartContractDocSections.TokenRegistry]: '0x926a74c5c36adf004c87399e65f75628b0f98d2c', }, [Networks.ropsten]: { [SmartContractDocSections.Exchange]: '0x479cc461fecd078f766ecc58533d6f69580cf3ac', [SmartContractDocSections.TokenTransferProxy]: '0x4e9aad8184de8833365fea970cd9149372fdf1e6', [SmartContractDocSections.ZRXToken]: '0xa8e9fa8f91e5ae138c74648c9c304f1c75003a8d', - [SmartContractDocSections.EtherToken]: '0xc00fd9820cd2898cc4c054b7bf142de637ad129a', [SmartContractDocSections.TokenRegistry]: '0x6b1a50f0bb5a7995444bd3877b22dc89c62843ed', }, [Networks.kovan]: { [SmartContractDocSections.Exchange]: '0x90fe2af704b34e0224bf2299c838e04d4dcf1364', [SmartContractDocSections.TokenTransferProxy]: '0x087Eed4Bc1ee3DE49BeFbd66C662B434B15d49d4', [SmartContractDocSections.ZRXToken]: '0x6ff6c0ff1d68b964901f986d4c9fa3ac68346570', - [SmartContractDocSections.EtherToken]: '0x05d090b51c40b020eab3bfcb6a2dff130df22e9c', [SmartContractDocSections.TokenRegistry]: '0xf18e504561f4347bea557f3d4558f559dddbae7f', }, }, @@ -95,7 +92,13 @@ export const configs = { } as {[symbol: string]: string}, IS_MAINNET_ENABLED: true, LAST_LOCAL_STORAGE_FILL_CLEARANCE_DATE: '2017-11-22', - LAST_LOCAL_STORAGE_TRACKED_TOKEN_CLEARANCE_DATE: '2017-12-13', + LAST_LOCAL_STORAGE_TRACKED_TOKEN_CLEARANCE_DATE: '2017-12-19', + // NEW_WRAPPED_ETHERS is temporary until we remove the SHOULD_DEPRECATE_OLD_WETH_TOKEN flag + // and add the new WETHs to the tokenRegistry + NEW_WRAPPED_ETHERS: { + 1: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', + 42: '0xd0a1e359811322d97991e03f863a0c30c2cf029c', + } as {[networkId: string]: string}, OUTDATED_WRAPPED_ETHERS: [ { 42: { @@ -123,5 +126,6 @@ export const configs = { `https://kovan.infura.io/${INFURA_API_KEY}`, ], } as PublicNodeUrlsByNetworkId, + SHOULD_DEPRECATE_OLD_WETH_TOKEN: true, SYMBOLS_OF_MINTABLE_TOKENS: ['MKR', 'MLN', 'GNT', 'DGD', 'REP'], }; diff --git a/packages/website/ts/utils/constants.ts b/packages/website/ts/utils/constants.ts index 0e4a1056a..761d00ef7 100644 --- a/packages/website/ts/utils/constants.ts +++ b/packages/website/ts/utils/constants.ts @@ -16,6 +16,7 @@ export const constants = { HOME_SCROLL_DURATION_MS: 500, HTTP_NO_CONTENT_STATUS_CODE: 204, LOCAL_STORAGE_KEY_ACCEPT_DISCLAIMER: 'didAcceptPortalDisclaimer', + LOCAL_STORAGE_KEY_DISMISS_WETH_NOTICE: 'hasDismissedWethNotice', MAKER_FEE: new BigNumber(0), MAINNET_NAME: 'Main network', MINT_AMOUNT: new BigNumber('100000000000000000000'), @@ -81,5 +82,6 @@ export const constants = { 'https://github.com/0xProject/web3-typescript-typings/blob/f5bcb96/index.d.ts#L123', URL_WEB3_LOG_ENTRY_EVENT: 'https://github.com/0xProject/web3-typescript-typings/blob/f5bcb96/index.d.ts#L127', URL_WEB3_PROVIDER_DOCS: 'https://github.com/0xProject/web3-typescript-typings/blob/f5bcb96/index.d.ts#L150', + URL_WETH_IO: 'https://weth.io/', URL_ZEROEX_CHAT: 'https://chat.0xproject.com', }; |