Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Electrum servers for some currencies and remove some currencies #577

Merged
merged 2 commits into from
Dec 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/constants.js
Original file line number Diff line number Diff line change
@@ -29,7 +29,6 @@ exports.defaultEnabledCurrencies = [
'BTC',
'CHIPS',
'DASH',
'DNR',
'DOGE',
'EQLI',
'HUSH',
122 changes: 17 additions & 105 deletions app/marketmaker/supported-currencies.js
Original file line number Diff line number Diff line change
@@ -70,28 +70,6 @@ const supportedCurrencies = [
etomic: '0x960b236A07cf122663c4303350609A66A7B288C0',
rpcport: 80,
},
{
coin: 'ARG',
rpcport: 13581,
pubtype: 23,
p2shtype: 5,
wiftype: 151,
txfee: 50000,
electrumServers: [
{
host: 'electrum1.cipig.net',
port: 10068,
},
{
host: 'electrum2.cipig.net',
port: 10068,
},
{
host: 'electrum3.cipig.net',
port: 10068,
},
],
},
{
coin: 'AST',
name: 'AirSwap',
@@ -144,16 +122,16 @@ const supportedCurrencies = [
txfee: 1000,
electrumServers: [
{
host: 'electrum1.cipig.net',
port: 10051,
host: 'bch.imaginary.cash',
port: 50001,
},
{
host: 'electrum2.cipig.net',
port: 10051,
host: 'electroncash.dk',
port: 50001,
},
{
host: 'electrum3.cipig.net',
port: 10051,
host: 'wallet.satoshiscoffeehouse.com',
port: 50001,
},
],
},
@@ -389,28 +367,6 @@ const supportedCurrencies = [
},
],
},
{
coin: 'CALL',
name: 'Capital',
asset: 'CALL',
rpcport: 19609,
electrumServers: [
{
host: 'electrum1.mycapitalco.in',
port: 10000,
},
{
host: 'electrum2.mycapitalco.in',
port: 10000,
},
],
},
{
coin: 'CALLG',
name: 'Capital GAS',
etomic: '0x6c28f85eb1dbc7651ce02f7af1f29890ad084b94',
rpcport: 80,
},
{
coin: 'CDT',
name: 'Blox',
@@ -705,25 +661,6 @@ const supportedCurrencies = [
etomic: '0x2e071D2966Aa7D8dECB1005885bA1977D6038A65',
rpcport: 80,
},
{
coin: 'DNR',
isPoS: 1,
rpcport: 32339,
pubtype: 30,
p2shtype: 90,
wiftype: 158,
txfee: 10000,
electrumServers: [
{
host: '144.202.95.223',
port: 50001,
},
{
host: '45.77.137.111',
port: 50001,
},
],
},
{
coin: 'DNT',
name: 'District0x',
@@ -1316,16 +1253,20 @@ const supportedCurrencies = [
txfee: 100000,
electrumServers: [
{
host: 'electrum1.cipig.net',
port: 10065,
host: 'electrum-ltc.bysh.me',
port: 50001,
},
{
host: 'electrum2.cipig.net',
port: 10065,
host: 'electrum-ltc.ddns.net',
port: 50001,
},
{
host: 'electrum3.cipig.net',
port: 10065,
host: 'electrum-ltc.wilv.in',
port: 50001,
},
{
host: 'electrum.ltc.xurious.com',
port: 50001,
},
],
},
@@ -1341,28 +1282,6 @@ const supportedCurrencies = [
etomic: '0xdd41fbd1ae95c5d9b198174a28e04be6b3d1aa27',
rpcport: 80,
},
{
coin: 'MAC',
rpcport: 40332,
pubtype: 50,
p2shtype: 5,
wiftype: 178,
txfee: 50000,
electrumServers: [
{
host: 'electrum1.cipig.net',
port: 10077,
},
{
host: 'electrum2.cipig.net',
port: 10077,
},
{
host: 'electrum3.cipig.net',
port: 10077,
},
],
},
{
coin: 'MAN',
name: 'Matrix AI Network',
@@ -1564,13 +1483,6 @@ const supportedCurrencies = [
etomic: '0xb91318f35bdb262e9423bc7c7c2a3a93dd93c92c',
rpcport: 80,
},
{
coin: 'OCALL',
name: 'OLD Capital',
decimals: 18,
etomic: '0x2c02c801a3324b371ad285c64af372ff1e23f460',
rpcport: 80,
},
{
coin: 'OCC',
name: 'Original Crypto Coin',
@@ -2337,12 +2249,12 @@ const supportedCurrencies = [
},
{
coin: 'ZEC',
active: 0,
rpcport: 8232,
taddr: 28,
pubtype: 184,
p2shtype: 189,
wiftype: 128,
txversion: 3,
txfee: 10000,
electrumServers: [
{
9 changes: 9 additions & 0 deletions app/portfolio-util.js
Original file line number Diff line number Diff line change
@@ -84,6 +84,13 @@ const migrateEnabledCurrencies = async id => {
});
};

// TODO: Remove this sometime far in the future when everyone has migrated
const removeDnrCurrency = async id => {
await modifyPortfolio(id, portfolio => {
portfolio.currencies = portfolio.currencies.filter(currency => currency !== 'DNR');
});
};

const getPortfolios = async () => {
let portfolioFiles;
try {
@@ -106,6 +113,8 @@ const getPortfolios = async () => {
// TODO: Remove this sometime far in the future when everyone has migrated
await migrateEnabledCurrencies(portfolio.id);

await removeDnrCurrency(portfolio.id);

return portfolio;
}));

4 changes: 0 additions & 4 deletions app/renderer/block-explorer.js
Original file line number Diff line number Diff line change
@@ -7,7 +7,6 @@ const explorers = new Map(Object.entries({
ABY: 'http://explorer.artbyte.me/tx/{txid}',
ANC: 'http://abe.darkgamex.ch:2751/tx/{txid}',
ARC: 'http://explorer.arcticcoin.org/tx/{txid}',
ARG: 'https://chainz.cryptoid.info/arg/tx.dws?{txid}',
ATB: 'https://explorer.atbcoin.com/tx/{txid}',
AXE: 'http://207.246.65.114:3001/tx/{txid}',
AXO: 'https://axo.kmdexplorer.io/tx/{txid}',
@@ -32,7 +31,6 @@ const explorers = new Map(Object.entries({
BTNX: 'http://explorer.bitnexus.online/tx/{txid}',
BTX: 'https://chainz.cryptoid.info/btx/tx.dws?{txid}',
BUCK: 'https://explorer.buck.red/tx/{txid}',
CALL: 'https://call.explorer.mycapitalco.in/tx/{txid}',
CARB: 'https://chainz.cryptoid.info/carbon/tx.dws?{txid}',
CC: 'http://ccl.explorer.dexstats.info/tx/{txid}',
CEAL: 'https://ceal.kmdexplorer.io/tx/{txid}',
@@ -51,7 +49,6 @@ const explorers = new Map(Object.entries({
DEX: 'https://dex.kmdexplorer.io/tx/{txid}',
DGB: 'https://digiexplorer.info/tx/{txid}',
DIN: 'https://explorer.dinerocoin.org/tx/{txid}',
DNR: 'http://denariusexplorer.org/tx/{txid}',
DOGE: 'http://dogechain.info/tx/{txid}',
DOPE: 'https://chainz.cryptoid.info/dope/tx.dws?{txid}',
DSEC: 'https://dsec.ac/tx/{txid}',
@@ -93,7 +90,6 @@ const explorers = new Map(Object.entries({
LBC: 'https://explorer.lbry.io/tx/{txid}',
LTC: 'https://bchain.info/LTC/tx/{txid}',
LTZ: 'https://explorer.litecoinz.info/tx/{txid}',
MAC: 'https://explorer.machinecoin.org/tx/{txid}',
MESH: 'https://mesh.kmdexplorer.io/tx/{txid}',
MGW: 'https://mgw.kmdexplorer.io/tx/{txid}',
MLM: 'https://info.mktcoin.org/tx/{txid}',