Merge pull request #544 from MetaMask/RemoveEtc

Remove ethereum classic provider
feature/default_network_editable
kumavis 8 years ago committed by GitHub
commit 9b1a3fd7f3
  1. 2
      CHANGELOG.md
  2. 2
      app/scripts/config.js
  3. 6
      app/scripts/lib/config-manager.js
  4. 3
      ui/app/actions.js
  5. 9
      ui/app/app.js
  6. 3
      ui/app/components/drop-menu-item.js
  7. 12
      ui/app/components/network.js

@ -1,10 +1,12 @@
# Changelog # Changelog
## Current Master ## Current Master
- Integrate ShapeShift - Integrate ShapeShift
- Add a for for Coinbase to specify amount to buy - Add a for for Coinbase to specify amount to buy
- Fix various typos. - Fix various typos.
- Make dapp-metamask connection more reliable - Make dapp-metamask connection more reliable
- Remove Ethereum Classic from provider menu.
## 2.7.3 2016-07-29 ## 2.7.3 2016-07-29

@ -1,7 +1,6 @@
const MAINET_RPC_URL = 'https://mainnet.infura.io/' const MAINET_RPC_URL = 'https://mainnet.infura.io/'
const TESTNET_RPC_URL = 'https://morden.infura.io/' const TESTNET_RPC_URL = 'https://morden.infura.io/'
const DEFAULT_RPC_URL = TESTNET_RPC_URL const DEFAULT_RPC_URL = TESTNET_RPC_URL
const CLASSIC_RPC_URL = 'https://mainnet-nf.infura.io/'
global.METAMASK_DEBUG = false global.METAMASK_DEBUG = false
@ -10,6 +9,5 @@ module.exports = {
default: DEFAULT_RPC_URL, default: DEFAULT_RPC_URL,
mainnet: MAINET_RPC_URL, mainnet: MAINET_RPC_URL,
testnet: TESTNET_RPC_URL, testnet: TESTNET_RPC_URL,
classic: CLASSIC_RPC_URL,
}, },
} }

@ -4,7 +4,6 @@ const migrations = require('./migrations')
const TESTNET_RPC = MetamaskConfig.network.testnet const TESTNET_RPC = MetamaskConfig.network.testnet
const MAINNET_RPC = MetamaskConfig.network.mainnet const MAINNET_RPC = MetamaskConfig.network.mainnet
const CLASSIC_RPC = MetamaskConfig.network.classic
/* The config-manager is a convenience object /* The config-manager is a convenience object
* wrapping a pojo-migrator. * wrapping a pojo-migrator.
@ -145,9 +144,6 @@ ConfigManager.prototype.getCurrentRpcAddress = function () {
case 'testnet': case 'testnet':
return TESTNET_RPC return TESTNET_RPC
case 'classic':
return CLASSIC_RPC
default: default:
return provider && provider.rpcTarget ? provider.rpcTarget : TESTNET_RPC return provider && provider.rpcTarget ? provider.rpcTarget : TESTNET_RPC
} }
@ -279,7 +275,7 @@ ConfigManager.prototype.setShouldntShowWarning = function () {
if (data.isEthConfirmed) { if (data.isEthConfirmed) {
data.isEthConfirmed = !data.isEthConfirmed data.isEthConfirmed = !data.isEthConfirmed
} else { } else {
data.isEthConfirmed = true data.isEthConfirmed = true
} }
this.setData(data) this.setData(data)
} }

@ -671,8 +671,7 @@ function pairUpdate (coin) {
} }
function shapeShiftSubview (network) { function shapeShiftSubview (network) {
var pair var pair = 'btc_eth'
network === 'classic' ? pair = 'btc_etc' : pair = 'btc_eth'
return (dispatch) => { return (dispatch) => {
dispatch(actions.showSubLoadingIndication()) dispatch(actions.showSubLoadingIndication())

@ -225,15 +225,6 @@ App.prototype.renderNetworkDropdown = function () {
provider: props.provider, provider: props.provider,
}), }),
h(DropMenuItem, {
label: 'Ethereum Classic Network',
closeMenu: () => this.setState({ isNetworkMenuOpen: false }),
action: () => props.dispatch(actions.setProviderType('classic')),
icon: h('.menu-icon.hollow-diamond'),
activeNetworkRender: props.network,
provider: props.provider,
}),
h(DropMenuItem, { h(DropMenuItem, {
label: 'Morden Test Network', label: 'Morden Test Network',
closeMenu: () => this.setState({ isNetworkMenuOpen: false }), closeMenu: () => this.setState({ isNetworkMenuOpen: false }),

@ -41,9 +41,6 @@ DropMenuItem.prototype.activeNetworkRender = function () {
case 'Main Ethereum Network': case 'Main Ethereum Network':
if (providerType === 'mainnet') return h('.check', '✓') if (providerType === 'mainnet') return h('.check', '✓')
break break
case 'Ethereum Classic Network':
if (providerType === 'classic') return h('.check', '✓')
break
case 'Morden Test Network': case 'Morden Test Network':
if (activeNetwork === '2') return h('.check', '✓') if (activeNetwork === '2') return h('.check', '✓')
break break

@ -36,9 +36,6 @@ Network.prototype.render = function () {
} else if (providerName === 'mainnet') { } else if (providerName === 'mainnet') {
hoverText = 'Main Ethereum Network' hoverText = 'Main Ethereum Network'
iconName = 'ethereum-network' iconName = 'ethereum-network'
} else if (providerName === 'classic') {
hoverText = 'Ethereum Classic Network'
iconName = 'classic-network'
} else if (parseInt(networkNumber) === 2) { } else if (parseInt(networkNumber) === 2) {
hoverText = 'Morden Test Network' hoverText = 'Morden Test Network'
iconName = 'morden-test-network' iconName = 'morden-test-network'
@ -66,15 +63,6 @@ Network.prototype.render = function () {
}}, }},
'Etherum Main Net'), 'Etherum Main Net'),
]) ])
case 'classic-network':
return h('.network-indicator', [
h('.menu-icon.hollow-diamond'),
h('.network-name', {
style: {
color: '#039396',
}},
'Etherum Classic'),
])
case 'morden-test-network': case 'morden-test-network':
return h('.network-indicator', [ return h('.network-indicator', [
h('.menu-icon.red-dot'), h('.menu-icon.red-dot'),

Loading…
Cancel
Save