Remove MEW nodes for main and testnet

This commit is contained in:
henrynguyen5 2018-02-09 17:14:28 -05:00
parent 316acf0a89
commit eed9352f17
7 changed files with 7 additions and 37 deletions

View File

@ -20,7 +20,7 @@ interface NodeChangePending {
export type State = NodeLoaded | NodeChangePending;
export const INITIAL_STATE: NodeLoaded = {
nodeId: 'eth_mew',
nodeId: 'eth_mycrypto',
pending: false
};

View File

@ -5,13 +5,6 @@ import { NonWeb3NodeConfigs, Web3NodeConfigs } from 'types/node';
export type State = NonWeb3NodeConfigs & Web3NodeConfigs;
export const INITIAL_STATE: State = {
eth_mew: {
network: 'ETH',
isCustom: false,
lib: new RPCNode('https://api.myetherapi.com/eth'),
service: 'MyEtherWallet',
estimateGas: true
},
eth_mycrypto: {
network: 'ETH',
isCustom: false,
@ -33,13 +26,6 @@ export const INITIAL_STATE: State = {
lib: new InfuraNode('https://mainnet.infura.io/mew'),
estimateGas: false
},
rop_mew: {
network: 'Ropsten',
isCustom: false,
service: 'MyEtherWallet',
lib: new RPCNode('https://api.myetherapi.com/rop'),
estimateGas: false
},
rop_infura: {
network: 'Ropsten',
isCustom: false,

View File

@ -32,11 +32,9 @@ interface Web3NodeConfig extends StaticNodeConfig {
}
declare enum StaticNodeId {
ETH_MEW = 'eth_mew',
ETH_MYCRYPTO = 'eth_mycrypto',
ETH_ETHSCAN = 'eth_ethscan',
ETH_INFURA = 'eth_infura',
ROP_MEW = 'rop_mew',
ROP_INFURA = 'rop_infura',
KOV_ETHSCAN = 'kov_ethscan',
RIN_ETHSCAN = 'rin_ethscan',

View File

@ -1,5 +1,5 @@
module.exports = {
RpcNodes: ['eth_mew', 'etc_epool', 'etc_epool', 'rop_mew'],
RpcNodes: ['eth_mycrypto', 'etc_epool', 'etc_epool', 'rop_mew'],
EtherscanNodes: ['eth_ethscan', 'kov_ethscan', 'rin_ethscan'],
InfuraNodes: ['eth_infura', 'rop_infura', 'rin_infura']
};

View File

@ -264,7 +264,7 @@ describe('handleNodeChangeIntent*', () => {
describe('unsetWeb3Node*', () => {
const node = 'web3';
const alternativeNodeId = 'eth_mew';
const alternativeNodeId = 'eth_mycrypto';
const gen = unsetWeb3Node();
it('should select getNode', () => {
@ -294,7 +294,7 @@ describe('unsetWeb3Node*', () => {
describe('unsetWeb3NodeOnWalletEvent*', () => {
const fakeAction = {};
const mockNodeId = 'web3';
const alternativeNodeId = 'eth_mew';
const alternativeNodeId = 'eth_mycrypto';
const gen = unsetWeb3NodeOnWalletEvent(fakeAction);
it('should select getNode', () => {

View File

@ -2,14 +2,14 @@ import { changeNodeIntent, changeNode } from 'actions/config';
import { State, selectedNode } from 'reducers/config/nodes/selectedNode';
export const expectedState = {
initialState: { nodeId: 'eth_mew', pending: false },
initialState: { nodeId: 'eth_mycrypto', pending: false },
nodeChange: { nodeId: 'nodeToChangeTo', pending: false },
nodeChangeIntent: { nodeId: 'eth_mew', pending: true }
nodeChangeIntent: { nodeId: 'eth_mycrypto', pending: true }
};
export const actions = {
changeNode: changeNode({ nodeId: 'nodeToChangeTo', networkId: 'networkToChangeTo' }),
changeNodeIntent: changeNodeIntent('eth_mew')
changeNodeIntent: changeNodeIntent('eth_mycrypto')
};
describe('selected node reducer', () => {

View File

@ -5,13 +5,6 @@ import { Web3NodeConfig } from 'types/node';
import { Web3Service } from 'libs/nodes/web3';
const expectedInitialState = {
eth_mew: {
network: 'ETH',
isCustom: false,
lib: new RPCNode('https://api.myetherapi.com/eth'),
service: 'MyEtherWallet',
estimateGas: true
},
eth_mycrypto: {
network: 'ETH',
isCustom: false,
@ -33,13 +26,6 @@ const expectedInitialState = {
lib: new InfuraNode('https://mainnet.infura.io/mew'),
estimateGas: false
},
rop_mew: {
network: 'Ropsten',
isCustom: false,
service: 'MyEtherWallet',
lib: new RPCNode('https://api.myetherapi.com/rop'),
estimateGas: false
},
rop_infura: {
network: 'Ropsten',
isCustom: false,