2017-07-04 01:25:01 +00:00
|
|
|
// @flow
|
|
|
|
import { RPCNode } from 'libs/nodes';
|
|
|
|
|
2017-08-25 07:37:36 +00:00
|
|
|
// Displays in the header
|
v3 Style Import (#151)
* Convert bootstrap to sass instead of checked in and less
* Darken body, adjust header.
* First pass at tab styles, each tab will need a lot of individual love tho.
* Update footer to main site content, improve responsiveness.
* Missing key added.
* Fix dropdowns.
* Convert GenerateWallet HTML over, still needs styling.
* Send form.
* Current rates styled.
* CurrencySwap form styles.
* SwapInfoHeader styled.
* Finish up swap restyling, minor usability improvements for mobile.
* Fix up notifications / alert customizations
* Import v3 variables.
* Fix notification spacing.
* Align input height base with buttons.
* Revert height base, add additional bootstrap overrides.
* Grid overrides.
* Move overrides to their own folder. Adjust naming.
* Fix inconsistencies.
* Style generate wallet pt 1.
* Style generate wallet pt 2
* Style generate wallet pt 3
* Fix swap
* Added some missing overries, fixed the fallout.
* Remove header text, indicate alpha version.
* Fix radio / checkbox weights.
* Bind => arrow
* Convert simpledropdown to proper form select, instead of weirdly implemented nonfuncitoning dropdown.
* Fix token balances buttons, footr icons.
2017-09-05 19:52:01 +00:00
|
|
|
export const VERSION = '4.0.0 (Alpha 0.0.1)';
|
2017-08-25 07:37:36 +00:00
|
|
|
|
|
|
|
// Displays at the top of the site, make message empty string to remove.
|
|
|
|
// Type can be primary, warning, danger, success, or info.
|
|
|
|
// HTML is allowed inside of the message.
|
|
|
|
export const ANNOUNCEMENT_TYPE = 'warning';
|
|
|
|
export const ANNOUNCEMENT_MESSAGE = `
|
|
|
|
This is an Alpha build of MyEtherWallet v4. Please only use for testing,
|
|
|
|
or use v3 at <a href='https://myetherwallet.com'>https://myetherwallet.com</a>.
|
2017-08-31 21:49:27 +00:00
|
|
|
<br/>
|
|
|
|
If you're interested in recieving updates about the MyEtherWallet V4 Alpha, you can subscribe via <a href="http://myetherwallet.us16.list-manage.com/subscribe?u=afced8afb6eb2968ba407a144&id=15a7c74eab">mailchimp</a> :)
|
2017-08-25 07:37:36 +00:00
|
|
|
`;
|
|
|
|
|
2017-06-24 01:27:17 +00:00
|
|
|
export const DONATION_ADDRESSES_MAP = {
|
|
|
|
BTC: '1MEWT2SGbqtz6mPCgFcnea8XmWV5Z4Wc6',
|
|
|
|
ETH: '0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8',
|
|
|
|
REP: '0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8'
|
|
|
|
};
|
|
|
|
|
2017-07-04 02:22:16 +00:00
|
|
|
export const donationAddressMap = DONATION_ADDRESSES_MAP;
|
|
|
|
|
2017-07-20 17:06:10 +00:00
|
|
|
export const gasPriceDefaults = {
|
|
|
|
gasPriceMinGwei: 1,
|
|
|
|
gasPriceMaxGwei: 60
|
|
|
|
};
|
|
|
|
|
2017-07-22 21:24:03 +00:00
|
|
|
export const bityReferralURL = 'https://bity.com/af/jshkb37v';
|
|
|
|
|
2017-05-23 23:06:01 +00:00
|
|
|
export const languages = [
|
2017-06-24 01:27:17 +00:00
|
|
|
{
|
|
|
|
sign: 'en',
|
|
|
|
name: 'English'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'de',
|
|
|
|
name: 'Deutsch'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'el',
|
|
|
|
name: 'Ελληνικά'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'es',
|
|
|
|
name: 'Español'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'fi',
|
|
|
|
name: 'Suomi'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'fr',
|
|
|
|
name: 'Français'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'hu',
|
|
|
|
name: 'Magyar'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'id',
|
|
|
|
name: 'Indonesian'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'it',
|
|
|
|
name: 'Italiano'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'ja',
|
|
|
|
name: '日本語'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'nl',
|
|
|
|
name: 'Nederlands'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'no',
|
|
|
|
name: 'Norsk Bokmål'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'pl',
|
|
|
|
name: 'Polski'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'pt',
|
|
|
|
name: 'Português'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'ru',
|
|
|
|
name: 'Русский'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'ko',
|
|
|
|
name: 'Korean'
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// 'sign': 'sk',
|
|
|
|
// 'name': 'Slovenčina'
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// 'sign': 'sl',
|
|
|
|
// 'name': 'Slovenščina'
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// 'sign': 'sv',
|
|
|
|
// 'name': 'Svenska'
|
|
|
|
// },
|
|
|
|
{
|
|
|
|
sign: 'tr',
|
|
|
|
name: 'Türkçe'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'vi',
|
|
|
|
name: 'Tiếng Việt'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'zhcn',
|
|
|
|
name: '简体中文'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sign: 'zhtw',
|
|
|
|
name: '繁體中文'
|
|
|
|
}
|
2017-05-23 23:06:01 +00:00
|
|
|
];
|
|
|
|
|
2017-07-13 21:02:39 +00:00
|
|
|
export type Token = {
|
|
|
|
address: string,
|
|
|
|
symbol: string,
|
|
|
|
decimal: number
|
|
|
|
};
|
|
|
|
|
2017-07-28 00:31:59 +00:00
|
|
|
export type NetworkContract = {
|
|
|
|
name: string,
|
|
|
|
address: string,
|
|
|
|
abi: string
|
|
|
|
};
|
|
|
|
|
2017-07-13 21:02:39 +00:00
|
|
|
export type NetworkConfig = {
|
|
|
|
name: string,
|
2017-08-08 03:45:08 +00:00
|
|
|
unit: string,
|
2017-07-13 21:02:39 +00:00
|
|
|
blockExplorer?: {
|
|
|
|
name: string,
|
|
|
|
tx: string,
|
|
|
|
address: string
|
|
|
|
},
|
|
|
|
tokenExplorer?: {
|
|
|
|
name: string,
|
|
|
|
address: string
|
|
|
|
},
|
|
|
|
chainId: number,
|
2017-07-28 00:31:59 +00:00
|
|
|
tokens: Token[],
|
|
|
|
contracts: ?Array<NetworkContract>
|
2017-07-13 21:02:39 +00:00
|
|
|
};
|
|
|
|
|
2017-08-23 06:57:18 +00:00
|
|
|
export type NodeConfig = {
|
|
|
|
network: string,
|
|
|
|
lib: RPCNode,
|
|
|
|
service: string,
|
|
|
|
estimateGas: ?boolean
|
|
|
|
};
|
|
|
|
|
2017-07-13 21:02:39 +00:00
|
|
|
export const NETWORKS: { [key: string]: NetworkConfig } = {
|
2017-07-04 03:21:19 +00:00
|
|
|
ETH: {
|
2017-06-24 01:27:17 +00:00
|
|
|
name: 'ETH',
|
2017-08-08 03:45:08 +00:00
|
|
|
unit: 'ETH',
|
2017-07-13 21:02:39 +00:00
|
|
|
chainId: 1,
|
|
|
|
blockExplorer: {
|
|
|
|
name: 'https://etherscan.io',
|
|
|
|
tx: 'https://etherscan.io/tx/[[txHash]]',
|
|
|
|
address: 'https://etherscan.io/address/[[address]]'
|
|
|
|
},
|
|
|
|
tokenExplorer: {
|
|
|
|
name: 'Ethplorer.io',
|
|
|
|
address: 'https://ethplorer.io/address/[[address]]'
|
|
|
|
},
|
2017-07-28 00:31:59 +00:00
|
|
|
tokens: require('./tokens/eth').default,
|
|
|
|
contracts: require('./contracts/eth.json')
|
2017-07-04 03:21:19 +00:00
|
|
|
}
|
2017-07-04 01:25:01 +00:00
|
|
|
};
|
|
|
|
|
2017-08-23 06:57:18 +00:00
|
|
|
export const NODES: { [key: string]: NodeConfig } = {
|
2017-07-04 03:21:19 +00:00
|
|
|
eth_mew: {
|
|
|
|
network: 'ETH',
|
|
|
|
lib: new RPCNode('https://api.myetherapi.com/eth'),
|
|
|
|
service: 'MyEtherWallet',
|
2017-07-13 21:02:39 +00:00
|
|
|
estimateGas: true
|
2017-06-24 01:27:17 +00:00
|
|
|
}
|
2017-07-04 01:25:01 +00:00
|
|
|
};
|