Add fake xmr node

This commit is contained in:
james-prado 2018-06-06 01:43:26 -04:00
parent 2b60ba9650
commit 3f3feeca0d
No known key found for this signature in database
GPG Key ID: 313ACB2286229FD0
4 changed files with 36 additions and 1 deletions

View File

@ -19,7 +19,7 @@ import { NetworkConfig } from 'types/network';
import { AppState } from 'reducers';
import './NetworkSelector.scss';
const CORE_NETWORKS = ['ETH', 'ETC', 'Ropsten', 'Kovan', 'Rinkeby'];
const CORE_NETWORKS = ['ETH', 'XMR', 'ETC', 'Ropsten', 'Kovan', 'Rinkeby'];
interface OwnProps {
openCustomNodeModal(): void;

View File

@ -33,6 +33,15 @@ export const NODE_CONFIGS: { [key in StaticNetworkIds]: RawNodeConfig[] } = {
}
],
XMR: [
{
name: makeNodeName('XMR', 'mycrypto'),
type: 'rpc',
service: 'MyCrypto',
url: 'https://api.mycryptoapi.com/eth'
}
],
Ropsten: [
{
name: makeNodeName('Ropsten', 'infura'),

View File

@ -58,6 +58,31 @@ export const INITIAL_STATE: State = {
gasPriceSettings: gasPriceDefaults,
shouldEstimateGasPrice: true
},
XMR: {
id: 'XMR',
name: 'Monero',
unit: 'XMR',
chainId: 1,
isCustom: false,
color: '#007896',
blockExplorer: makeExplorer({
name: 'Etherscan',
origin: 'https://etherscan.io'
}),
tokenExplorer: {
name: ethPlorer,
address: ETHTokenExplorer
},
tokens: require('config/tokens/eth.json'),
contracts: require('config/contracts/eth.json'),
dPathFormats: {
[SecureWalletName.TREZOR]: ETH_TREZOR,
[SecureWalletName.LEDGER_NANO_S]: ETH_LEDGER,
[InsecureWalletName.MNEMONIC_PHRASE]: ETH_DEFAULT
},
gasPriceSettings: gasPriceDefaults,
shouldEstimateGasPrice: true
},
Ropsten: {
id: 'Ropsten',
name: 'Ropsten',

View File

@ -2,6 +2,7 @@ import { StaticNetworksState, CustomNetworksState } from 'reducers/config/networ
type StaticNetworkIds =
| 'ETH'
| 'XMR'
| 'Ropsten'
| 'Kovan'
| 'Rinkeby'