import React from 'react'; // For ANNOUNCEMENT_MESSAGE jsx import { getValues } from '../utils/helpers'; export const languages = require('./languages.json'); // Displays in the header export const VERSION = '4.0.0 (Alpha 0.1.0)'; export const N_FACTOR = 8192; // Displays at the top of the site, make message empty string to remove. // Type can be primary, warning, danger, success, or info. // Message must be a JSX element if you want to use HTML. export const ANNOUNCEMENT_TYPE = 'warning'; export const ANNOUNCEMENT_MESSAGE = (
This is an Alpha build of MyCrypto v4. Please only use for testing, or use v3 at{' '} {'https://myetherwallet.com'}.
If you're interested in recieving updates about the MyCrypto V4 Alpha, you can subscribe via{' '} mailchimp {' '} :)
); const etherScan = 'https://etherscan.io'; const blockChainInfo = 'https://blockchain.info'; export const ethPlorer = 'https://ethplorer.io'; export const ETHTxExplorer = (txHash: string): string => `${etherScan}/tx/${txHash}`; export const BTCTxExplorer = (txHash: string): string => `${blockChainInfo}/tx/${txHash}`; export const ETHAddressExplorer = (address: string): string => `${etherScan}/address/${address}`; export const ETHTokenExplorer = (address: string): string => `${ethPlorer}/address/${address}`; export const donationAddressMap = { BTC: '32oirLEzZRhi33RCXDF9WHJjEb8RsrSss3', ETH: '0x4bbeEB066eD09B7AEd07bF39EEe0460DFa261520', REP: '0x4bbeEB066eD09B7AEd07bF39EEe0460DFa261520' }; export const gasPriceDefaults = { gasPriceMinGwei: 1, gasPriceMaxGwei: 60 }; export const MINIMUM_PASSWORD_LENGTH = 12; export const knowledgeBaseURL = 'https://support.mycrypto.com'; export const ledgerReferralURL = 'https://www.ledgerwallet.com/r/1985?path=/products/'; export const trezorReferralURL = 'https://trezor.io/?a=mycrypto.com'; export const bitboxReferralURL = 'https://digitalbitbox.com/?ref=mycrypto'; // TODO - Update url, this is MEW's export const bityReferralURL = 'https://bity.com/af/jshkb37v'; // TODO - add the real referral url once you know it export const shapeshiftReferralURL = 'https://shapeshift.io'; export enum SecureWalletName { WEB3 = 'web3', LEDGER_NANO_S = 'ledgerNanoS', TREZOR = 'trezor' } export enum HardwareWalletName { LEDGER_NANO_S = 'ledgerNanoS', TREZOR = 'trezor' } export enum InsecureWalletName { PRIVATE_KEY = 'privateKey', KEYSTORE_FILE = 'keystoreFile', MNEMONIC_PHRASE = 'mnemonicPhrase' } export enum MiscWalletName { VIEW_ONLY = 'viewOnly' } export const walletNames = getValues( SecureWalletName, HardwareWalletName, InsecureWalletName, MiscWalletName ); export type WalletName = SecureWalletName | InsecureWalletName | MiscWalletName;