Add fake xmr node
This commit is contained in:
parent
2b60ba9650
commit
3f3feeca0d
|
@ -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;
|
||||
|
|
|
@ -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'),
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -2,6 +2,7 @@ import { StaticNetworksState, CustomNetworksState } from 'reducers/config/networ
|
|||
|
||||
type StaticNetworkIds =
|
||||
| 'ETH'
|
||||
| 'XMR'
|
||||
| 'Ropsten'
|
||||
| 'Kovan'
|
||||
| 'Rinkeby'
|
||||
|
|
Loading…
Reference in New Issue