aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/constants.ts
diff options
context:
space:
mode:
authorFrancesco Agosti <francesco.agosti93@gmail.com>2018-11-15 07:20:49 +0800
committerGitHub <noreply@github.com>2018-11-15 07:20:49 +0800
commit8afcba7ba16382fd656518e8de3b55267e0f7722 (patch)
tree80456455c6e2a72956c481fb5e02898f556337a8 /packages/instant/src/constants.ts
parent2eef766aff1d0d1b13af9a28f28d38bb722996d1 (diff)
parentfe23bf9e51dab87ee8c8995a9d53438daff19ea0 (diff)
downloaddexon-sol-tools-8afcba7ba16382fd656518e8de3b55267e0f7722.tar
dexon-sol-tools-8afcba7ba16382fd656518e8de3b55267e0f7722.tar.gz
dexon-sol-tools-8afcba7ba16382fd656518e8de3b55267e0f7722.tar.bz2
dexon-sol-tools-8afcba7ba16382fd656518e8de3b55267e0f7722.tar.lz
dexon-sol-tools-8afcba7ba16382fd656518e8de3b55267e0f7722.tar.xz
dexon-sol-tools-8afcba7ba16382fd656518e8de3b55267e0f7722.tar.zst
dexon-sol-tools-8afcba7ba16382fd656518e8de3b55267e0f7722.zip
Merge pull request #1257 from 0xProject/feature/instant/different-install-wallet-copy-for-mobile
[instant] Adapt content to operating system, browser and provider type
Diffstat (limited to 'packages/instant/src/constants.ts')
-rw-r--r--packages/instant/src/constants.ts14
1 files changed, 13 insertions, 1 deletions
diff --git a/packages/instant/src/constants.ts b/packages/instant/src/constants.ts
index 2bf7849ec..5bd2349b3 100644
--- a/packages/instant/src/constants.ts
+++ b/packages/instant/src/constants.ts
@@ -1,6 +1,6 @@
import { BigNumber } from '@0x/utils';
-import { AccountNotReady, AccountState, Network } from './types';
+import { AccountNotReady, AccountState, Network, ProviderType } from './types';
export const BIG_NUMBER_ZERO = new BigNumber(0);
export const ETH_DECIMALS = 18;
@@ -19,8 +19,13 @@ 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 COINBASE_WALLET_IOS_APP_STORE_URL = 'https://itunes.apple.com/us/app/coinbase-wallet/id1278383455?mt=8';
+export const COINBASE_WALLET_ANDROID_APP_STORE_URL = 'https://play.google.com/store/apps/details?id=org.toshi&hl=en';
+export const COINBASE_WALLET_SITE_URL = 'https://wallet.coinbase.com/';
+export const META_MASK_FIREFOX_STORE_URL = 'https://addons.mozilla.org/en-US/firefox/addon/ether-metamask/';
export const META_MASK_CHROME_STORE_URL =
'https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn?hl=en';
+export const META_MASK_OPERA_STORE_URL = 'https://addons.opera.com/en/extensions/details/metamask/';
export const META_MASK_SITE_URL = 'https://metamask.io/';
export const ETHEREUM_NODE_URL_BY_NETWORK = {
[Network.Mainnet]: 'https://mainnet.infura.io/',
@@ -36,3 +41,10 @@ export const LOADING_ACCOUNT: AccountNotReady = {
export const LOCKED_ACCOUNT: AccountNotReady = {
state: AccountState.Locked,
};
+export const PROVIDER_TYPE_TO_NAME: { [key in ProviderType]: string } = {
+ [ProviderType.Cipher]: 'Cipher',
+ [ProviderType.MetaMask]: 'MetaMask',
+ [ProviderType.Mist]: 'Mist',
+ [ProviderType.CoinbaseWallet]: 'Coinbase Wallet',
+ [ProviderType.Parity]: 'Parity',
+};