MyCrypto/common/config/data.tsx

91 lines
3.0 KiB
TypeScript

import React from 'react'; // For ANNOUNCEMENT_MESSAGE jsx
import { getValues } from '../utils/helpers';
export const languages = require('./languages.json');
// Displays in the footer
export const VERSION = '0.2.0 (BETA)';
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 = (
<div>
This is an early build of MyCrypto Beta. Please only use for testing, or use production at{' '}
<a href="https://mycrypto.com">{'https://mycrypto.com'}</a>.
<br />
<span className="hidden-xs">
If you're interested in recieving updates about the MyCrypto Beta, you can subscribe via{' '}
<a href="https://mycrypto.us17.list-manage.com/subscribe?u=6092be560275431280b0ffbc1&id=a03ef384e4">
mailchimp
</a>{' '}
:)
</span>
</div>
);
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 const ethercardReferralURL =
'https://ether.cards/?utm_source=mycrypto&utm_medium=cpm&utm_campaign=site';
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;