pbca26
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with
91 additions and
62 deletions
-
react/src/actions/actions/addCoin.js
-
react/src/actions/actions/electrum.js
-
react/src/actions/actions/prices.js
-
BIN
react/src/assets/images/cryptologo/ninja.png
-
react/src/assets/images/cryptologo/vote2018.png
-
react/src/components/addcoin/addcoinOptionsAC.js
-
react/src/components/addcoin/addcoinOptionsCrypto.js
-
react/src/components/addcoin/payload.js
-
react/src/components/dashboard/coinTile/coinTileItem.render.js
-
react/src/components/dashboard/notaryElectionsModal/notaryElectionsModal.js
-
react/src/components/dashboard/notaryElectionsModal/notaryElectionsModal.scss
-
react/src/components/dashboard/walletsData/walletsData.js
-
react/src/components/login/login.js
-
react/src/components/overrides.scss
-
react/src/translate/en.js
-
react/src/util/coinHelper.js
-
react/src/util/explorerList.js
|
|
@ -149,10 +149,19 @@ export function shepherdHerd(coin, mode, path, startupParams) { |
|
|
|
'-daemon=0', |
|
|
|
'-server', |
|
|
|
`-ac_name=${coin}`, |
|
|
|
coin === 'BEER' || coin === 'PIZZA' ? '-addnode=24.54.206.138' : '-addnode=78.47.196.146', |
|
|
|
'-addnode=78.47.196.146', |
|
|
|
], |
|
|
|
}; |
|
|
|
|
|
|
|
if (coin === 'BEER' || |
|
|
|
coin === 'PIZZA') { |
|
|
|
herdData['ac_options'].pop(); |
|
|
|
herdData['ac_options'].push('-addnode=24.54.206.138'); |
|
|
|
} else if (coin === 'NINJA') { |
|
|
|
herdData['ac_options'].pop(); |
|
|
|
herdData['ac_options'].push('-addnode=192.241.134.19'); |
|
|
|
} |
|
|
|
|
|
|
|
if (coin === 'ZEC') { |
|
|
|
herdData = { |
|
|
|
'ac_name': 'zcashd', |
|
|
|
|
|
@ -14,7 +14,7 @@ import Store from '../../store'; |
|
|
|
// src: atomicexplorer
|
|
|
|
export function shepherdGetRemoteBTCFees() { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
fetch(`http://atomicexplorer.com/api/btc/fees`, { |
|
|
|
fetch(`https://atomicexplorer.com/api/btc/fees`, { |
|
|
|
method: 'GET', |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/json', |
|
|
|
|
|
@ -4,7 +4,7 @@ import Config from '../../config'; |
|
|
|
|
|
|
|
function fiatRates(pricesJson) { |
|
|
|
return dispatch => { |
|
|
|
return fetch(`http://atomicexplorer.com/api/rates/kmd`, { |
|
|
|
return fetch(`https://atomicexplorer.com/api/rates/kmd`, { |
|
|
|
method: 'GET', |
|
|
|
}) |
|
|
|
.catch((error) => { |
|
|
@ -29,7 +29,7 @@ function fiatRates(pricesJson) { |
|
|
|
|
|
|
|
export function prices() { |
|
|
|
return dispatch => { |
|
|
|
return fetch(`http://atomicexplorer.com/api/mm/prices`, { |
|
|
|
return fetch(`https://atomicexplorer.com/api/mm/prices`, { |
|
|
|
method: 'GET', |
|
|
|
}) |
|
|
|
.catch((error) => { |
|
|
|
Width:
|
Height:
|
Size: 7.7 KiB
|
Width:
|
Height:
|
Size: 14 KiB
Width:
|
Height:
|
Size: 14 KiB
|
|
|
@ -13,7 +13,6 @@ const addCoinOptionsAC = () => { |
|
|
|
'jumblr', |
|
|
|
'kv', |
|
|
|
'mgw', |
|
|
|
//'mvp',
|
|
|
|
'mnz', |
|
|
|
'pangea', |
|
|
|
'revs', |
|
|
@ -25,7 +24,8 @@ const addCoinOptionsAC = () => { |
|
|
|
'btch', |
|
|
|
'beer', |
|
|
|
'pizza', |
|
|
|
'vote' |
|
|
|
'vote2018', |
|
|
|
'ninja' |
|
|
|
]; |
|
|
|
let _items = []; |
|
|
|
|
|
|
|
|
|
@ -36,11 +36,11 @@ const addCoinOptionsCrypto = () => { |
|
|
|
label: 'Dash (DASH)', |
|
|
|
icon: 'DASH', |
|
|
|
value: `DASH|spv`, |
|
|
|
}, /*{ |
|
|
|
}, { |
|
|
|
label: 'Denarius (DNR)', |
|
|
|
icon: 'DNR', |
|
|
|
value: `DNR|spv`, |
|
|
|
},*/ { |
|
|
|
}, { |
|
|
|
label: 'DigiByte (DGB)', |
|
|
|
icon: 'DGB', |
|
|
|
value: `DGB|spv`, |
|
|
|
|
|
@ -26,7 +26,7 @@ export function checkAC(coinVal) { |
|
|
|
coinVal === 'BTCH' || |
|
|
|
coinVal === 'BEER' || |
|
|
|
coinVal === 'PIZZA' || |
|
|
|
coinVal === 'VOTE') { |
|
|
|
coinVal === 'VOTE2018') { |
|
|
|
return true; |
|
|
|
} else { |
|
|
|
return false; |
|
|
@ -112,8 +112,11 @@ export function startAssetChain(confpath, coin, mode, getSuppyOnly) { |
|
|
|
PIZZA: { |
|
|
|
supply: 100000000, |
|
|
|
}, |
|
|
|
VOTE: { |
|
|
|
supply: 49999999999, |
|
|
|
VOTE2018: { |
|
|
|
supply: 600000000, |
|
|
|
}, |
|
|
|
NINJA: { |
|
|
|
supply: 100000000, |
|
|
|
}, |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
@ -58,20 +58,27 @@ const CoinTileItemRender = function() { |
|
|
|
this.props.Dashboard.electrumCoins[item.coin] && |
|
|
|
this.props.Dashboard.electrumCoins[item.coin].serverList && |
|
|
|
this.props.Dashboard.electrumCoins[item.coin].serverList === 'none' && |
|
|
|
<span> |
|
|
|
<i |
|
|
|
data-tip={ translate('SETTINGS.SPV_SINGLE_SERVER_NOTICE') } |
|
|
|
className="icon fa-info-circle icon-spv-connection-warning"></i> |
|
|
|
<ReactTooltip |
|
|
|
effect="solid" |
|
|
|
className="text-left" /> |
|
|
|
</span> |
|
|
|
} |
|
|
|
{ this.renderCoinConError(item) && |
|
|
|
!this.props.ActiveCoin.rescanInProgress && |
|
|
|
<span> |
|
|
|
<i |
|
|
|
onClick={ this.openCoindDownModal } |
|
|
|
data-tip={ `${translate('DASHBOARD.RPC_CONN_FAILURE')}: ${this.props.ActiveCoin.getinfoFetchFailures}.` } |
|
|
|
className="icon fa-warning icon-native-connection-warning"></i> |
|
|
|
} |
|
|
|
<ReactTooltip |
|
|
|
effect="solid" |
|
|
|
className="text-left" /> |
|
|
|
</span> |
|
|
|
} |
|
|
|
</div> |
|
|
|
); |
|
|
|
}; |
|
|
|
|
|
@ -535,7 +535,7 @@ class NotaryElectionsModal extends React.Component { |
|
|
|
<i className="fa fa-power-off margin-right-5"></i>Logout |
|
|
|
</button> |
|
|
|
} |
|
|
|
<div className="elections-user-type"> |
|
|
|
{/*<div className="elections-user-type"> |
|
|
|
<a |
|
|
|
className={ this.state.userType === 'voter' ? 'active' : '' } |
|
|
|
onClick={ () => this.setUserType('voter') }><i className="fa fa-file margin-right-10"></i>I'm a voter</a> |
|
|
@ -543,7 +543,7 @@ class NotaryElectionsModal extends React.Component { |
|
|
|
<a |
|
|
|
className={ this.state.userType === 'candidate' ? 'active' : '' } |
|
|
|
onClick={ () => this.setUserType('candidate') }><i className="fa fa-user-o margin-right-10"></i>I'm a candidate</a> |
|
|
|
</div> |
|
|
|
</div>*/} |
|
|
|
{ !this.state.isAuth && |
|
|
|
<div className="elections-login"> |
|
|
|
<label |
|
|
@ -633,6 +633,7 @@ class NotaryElectionsModal extends React.Component { |
|
|
|
} |
|
|
|
{ this.state.isAuth && |
|
|
|
this.state.userType === 'voter' && |
|
|
|
this.state.balance > 0 && |
|
|
|
<div className={ 'elections-user-type' + (this.state.voteType === 'single' ? ' margin-bottom-30' : '') }> |
|
|
|
<a |
|
|
|
className={ this.state.voteType === 'multi' ? 'active' : '' } |
|
|
|
|
|
@ -53,7 +53,7 @@ |
|
|
|
} |
|
|
|
|
|
|
|
.elections-login { |
|
|
|
margin-top: 15px; |
|
|
|
margin-top: 35px; |
|
|
|
} |
|
|
|
|
|
|
|
.elections-login-btn { |
|
|
|
|
|
@ -332,6 +332,7 @@ class WalletsData extends React.Component { |
|
|
|
} |
|
|
|
|
|
|
|
spvAutoReconnect() { |
|
|
|
if (this.props.Dashboard.electrumCoins[this.props.ActiveCoin.coin].serverList !== 'none') { |
|
|
|
let _spvServers = this.props.Dashboard.electrumCoins[this.props.ActiveCoin.coin].serverList; |
|
|
|
let _server = [ |
|
|
|
this.props.Dashboard.electrumCoins[this.props.ActiveCoin.coin].server.ip, |
|
|
@ -364,6 +365,7 @@ class WalletsData extends React.Component { |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
isFullySynced() { |
|
|
|
const _progress = this.props.ActiveCoin.progress; |
|
|
|
|
|
@ -465,7 +465,8 @@ class Login extends React.Component { |
|
|
|
handleKeydown(e) { |
|
|
|
this.updateLoginPassPhraseInput(e); |
|
|
|
|
|
|
|
if (e.key === 'Enter') { |
|
|
|
if (e.key === 'Enter' && |
|
|
|
this.state.loginPassphrase) { |
|
|
|
this.loginSeed(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
@ -75,10 +75,6 @@ body { |
|
|
|
transition: height 0.3s ease-out; |
|
|
|
} |
|
|
|
|
|
|
|
.page-aside { |
|
|
|
position: fixed; |
|
|
|
} |
|
|
|
|
|
|
|
.page-aside-inner { |
|
|
|
.wallet-widgets-list { |
|
|
|
overflow-y: auto; |
|
|
@ -369,13 +365,15 @@ select{ |
|
|
|
bottom: -5px; |
|
|
|
width: 12px; |
|
|
|
height: 12px; |
|
|
|
border-color: #dcdcdc; |
|
|
|
} |
|
|
|
|
|
|
|
.rc-slider-dot-active { |
|
|
|
border-color: #51c4f9 !important; |
|
|
|
} |
|
|
|
|
|
|
|
.rc-slider-dot { |
|
|
|
border-color: #dcdcdc; |
|
|
|
} |
|
|
|
|
|
|
|
.page-aside { |
|
|
|
position: fixed; |
|
|
|
z-index: 99; |
|
|
|
} |
|
|
@ -847,7 +847,8 @@ export const LANG_EN = { |
|
|
|
'BTCH': 'BTCH (BTCH)', |
|
|
|
'BEER': 'BEER (Test coin)', |
|
|
|
'PIZZA': 'PIZZA (Test coin)', |
|
|
|
'VOTE': 'VOTE (Notary Elections)', |
|
|
|
'VOTE2018': 'VOTE2018 (Notary Elections)', |
|
|
|
'NINJA': 'NINJA (NINJA)', |
|
|
|
}, |
|
|
|
'DEX': { |
|
|
|
'GEN_NEW_PASSPHRASE': 'Generate a new passphrase', |
|
|
|
|
|
@ -6,9 +6,13 @@ export function getCoinTitle(coin) { |
|
|
|
let hideTitle = false; |
|
|
|
|
|
|
|
switch (coin) { |
|
|
|
case 'VOTE': |
|
|
|
coinlogo = 'vote'; |
|
|
|
coinname = 'VOTE (Notary Elections)'; |
|
|
|
case 'NINJA': |
|
|
|
coinlogo = 'ninja'; |
|
|
|
coinname = 'NINJA'; |
|
|
|
break; |
|
|
|
case 'VOTE2018': |
|
|
|
coinlogo = 'vote2018'; |
|
|
|
coinname = 'VOTE2018'; |
|
|
|
break; |
|
|
|
case 'GRS': |
|
|
|
coinlogo = 'grs'; |
|
|
|
|
|
@ -23,7 +23,10 @@ const explorerList = { |
|
|
|
HUSH: 'https://explorer.myhush.org', |
|
|
|
PIZZA: 'http://pizza.komodochainz.info', |
|
|
|
BEER: 'http://beer.komodochainz.info', |
|
|
|
NINJA: 'https://explorer.fund.ninja', |
|
|
|
VOTE2018: 'http://88.99.226.252', |
|
|
|
QTUM: 'https://explorer.qtum.org', |
|
|
|
DNR: 'http://denarius.name', |
|
|
|
LTC: 'https://live.blockcypher.com/ltc', |
|
|
|
DOGE: 'https://live.blockcypher.com/doge', |
|
|
|
DASH: 'https://live.blockcypher.com/dash', |
|
|
|