From 2d248f64694269acc740ecbf272ff4c08165d20c Mon Sep 17 00:00:00 2001 From: petitPapillon Date: Sat, 19 Aug 2017 20:13:40 +0200 Subject: [PATCH 1/8] Send form - add validation --- .../components/dashboard/sendCoin/sendCoin.js | 108 +++++++++++++++++- .../dashboard/sendCoin/sendCoin.render.js | 8 +- react/src/translate/en.js | 7 +- react/src/util/number.js | 7 ++ 4 files changed, 125 insertions(+), 5 deletions(-) create mode 100644 react/src/util/number.js diff --git a/react/src/components/dashboard/sendCoin/sendCoin.js b/react/src/components/dashboard/sendCoin/sendCoin.js index e80716e..cd4e5b5 100644 --- a/react/src/components/dashboard/sendCoin/sendCoin.js +++ b/react/src/components/dashboard/sendCoin/sendCoin.js @@ -29,8 +29,8 @@ import { SendCoinRender } from './sendCoin.render'; -import { SocketProvider } from 'socket.io-react'; import io from 'socket.io-client'; +import { isPositiveNumber } from '../../../util/number'; const socket = io.connect(`http://127.0.0.1:${Config.agamaPort}`); // TODO: prevent any cache updates rather than utxo while on send coin form @@ -380,6 +380,12 @@ class SendCoin extends React.Component { }); } + if (step === 1) { + if (!this.validateSendFormData()) { + return; + } + } + if (step === 1 || step === 2) { this.setState(Object.assign({}, this.state, { @@ -757,6 +763,106 @@ class SendCoin extends React.Component { return null; } + // TODO same as in walletsNav and receiveCoin, find a way to reuse it? + checkTotalBalance() { + let _balance = '0'; + const _mode = this.props.ActiveCoin.mode; + + if (_mode === 'full') { + _balance = this.props.ActiveCoin.balance || 0; + } else if (_mode === 'basilisk') { + if (this.props.ActiveCoin.cache) { + const _cache = this.props.ActiveCoin.cache; + const _coin = this.props.ActiveCoin.coin; + const _address = this.props.ActiveCoin.activeAddress; + + if (_address && + _cache[_coin] && + _cache[_coin][_address] && + _cache[_coin][_address].getbalance && + _cache[_coin][_address].getbalance.data && + (_cache[_coin][_address].getbalance.data.balance || + _cache[_coin][_address].getbalance.data.interest)) { + const _regBalance = _cache[_coin][_address].getbalance.data.balance ? _cache[_coin][_address].getbalance.data.balance : 0; + const _regInterest = _cache[_coin][_address].getbalance.data.interest ? _cache[_coin][_address].getbalance.data.interest : 0; + + _balance = _regBalance + _regInterest; + } + } + } else if (_mode === 'native') { + if (this.props.ActiveCoin.balance && + this.props.ActiveCoin.balance.total) { + _balance = this.props.ActiveCoin.balance.total; + } + } + + return +_balance; + } + + validateSendFormData() { + let valid = true; + if (!this.state.sendTo || this.state.sendTo.length < 64) { + Store.dispatch( + triggerToaster( + translate('SEND.SEND_TO_ADDRESS_MIN_LENGTH'), + '', + 'error' + ) + ); + valid = false; + } + + if (!isPositiveNumber(this.state.amount)) { + Store.dispatch( + triggerToaster( + translate('SEND.AMOUNT_POSITIVE_NUMBER'), + '', + 'error' + ) + ); + valid = false; + } + + if (!isPositiveNumber(this.state.fee)) { + Store.dispatch( + triggerToaster( + translate('SEND.FEE_POSITIVE_NUMBER'), + '', + 'error' + ) + ); + valid = false; + } + + if (!isPositiveNumber(this.getTotalAmount())) { + Store.dispatch( + triggerToaster( + translate('SEND.TOTAL_AMOUNT_POSITIVE_NUMBER'), + '', + 'error' + ) + ); + valid = false; + } + + if (this.state.amount > this.checkTotalBalance()) { + Store.dispatch( + triggerToaster( + translate('SEND.INSUFFICIENT_FUNDS'), + '', + 'error' + ) + ); + valid = false; + } + + return valid; + } + + getTotalAmount() { + return Number(this.state.amount) - Number(this.state.fee); + } + render() { if (this.props.ActiveCoin && this.props.ActiveCoin.send && diff --git a/react/src/components/dashboard/sendCoin/sendCoin.render.js b/react/src/components/dashboard/sendCoin/sendCoin.render.js index 43672d8..b55c7c1 100644 --- a/react/src/components/dashboard/sendCoin/sendCoin.render.js +++ b/react/src/components/dashboard/sendCoin/sendCoin.render.js @@ -248,7 +248,8 @@ export const SendCoinRender = function() { { this.props.ActiveCoin.coin }   - { Number(this.state.amount) - Number(this.state.fee) } { this.props.ActiveCoin.coin } + { this.getTotalAmount() } { this.props.ActiveCoin.coin }
diff --git a/react/src/translate/en.js b/react/src/translate/en.js index 95af166..8c9f259 100644 --- a/react/src/translate/en.js +++ b/react/src/translate/en.js @@ -519,7 +519,12 @@ export const _lang = { 'SEND_VIA': 'Alternative send method', 'ENTER_AN_ADDRESS': 'Enter an address', 'YOU_PICKED_OPT': 'You picked option', - 'PLEASE_WAIT': 'Please wait' + 'PLEASE_WAIT': 'Please wait', + 'SEND_TO_ADDRESS_MIN_LENGTH': 'Send to address must be at least 64 characters long', + 'AMOUNT_POSITIVE_NUMBER': 'Amount must be a positive number', + 'FEE_POSITIVE_NUMBER': 'Fee must be a positive number', + 'TOTAL_AMOUNT_POSITIVE_NUMBER': 'Total amount (amount - fee) must be a positive number', + 'INSUFFICIENT_FUNDS': 'You don\'t have the necessary funds to make this transaction' }, 'FIAT_CURRENCIES': { 'AUD': 'Australian Dollar (AUD)', diff --git a/react/src/util/number.js b/react/src/util/number.js new file mode 100644 index 0000000..0deb56f --- /dev/null +++ b/react/src/util/number.js @@ -0,0 +1,7 @@ +export function isNumber(value) { + return !isNaN(parseFloat(value)) && isFinite(value); +} + +export function isPositiveNumber(value) { + return isNumber(value) && (+value) > 0; +} \ No newline at end of file From 5711cfc5e8f688ca602f41a1b9ae136b5a395fa9 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Mon, 21 Aug 2017 19:13:31 +0300 Subject: [PATCH 2/8] set default basilisk progress bar width to 20 perc --- .../components/dashboard/walletsData/walletsData.render.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/react/src/components/dashboard/walletsData/walletsData.render.js b/react/src/components/dashboard/walletsData/walletsData.render.js index ba83ece..7ca8fb9 100644 --- a/react/src/components/dashboard/walletsData/walletsData.render.js +++ b/react/src/components/dashboard/walletsData/walletsData.render.js @@ -181,6 +181,9 @@ export const TxHistoryListRender = function() { }; export const WalletsDataRender = function() { + let _basiliskProgressBarWidth = 100 - (this.state.currentStackLength * 100 / this.state.totalStackLength); + _basiliskProgressBarWidth = _basiliskProgressBarWidth < 20 ? 20 : _basiliskProgressBarWidth; + return ( @@ -197,7 +200,7 @@ export const WalletsDataRender = function() {
+ style={{ width: _basiliskProgressBarWidth + '%' }}> { translate('SEND.PROCESSING_REQ') }: { this.state.currentStackLength } / { this.state.totalStackLength }
From 6a2185afee0abf467ecc6c539ed83f1fdf962689 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Mon, 21 Aug 2017 19:57:32 +0300 Subject: [PATCH 3/8] corrected address length validation rule --- react/src/components/dashboard/sendCoin/sendCoin.js | 2 +- react/src/translate/en.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/react/src/components/dashboard/sendCoin/sendCoin.js b/react/src/components/dashboard/sendCoin/sendCoin.js index cd4e5b5..a305a46 100644 --- a/react/src/components/dashboard/sendCoin/sendCoin.js +++ b/react/src/components/dashboard/sendCoin/sendCoin.js @@ -801,7 +801,7 @@ class SendCoin extends React.Component { validateSendFormData() { let valid = true; - if (!this.state.sendTo || this.state.sendTo.length < 64) { + if (!this.state.sendTo || this.state.sendTo.length < 34) { Store.dispatch( triggerToaster( translate('SEND.SEND_TO_ADDRESS_MIN_LENGTH'), diff --git a/react/src/translate/en.js b/react/src/translate/en.js index 5550c11..87cf213 100644 --- a/react/src/translate/en.js +++ b/react/src/translate/en.js @@ -522,7 +522,7 @@ export const _lang = { 'ENTER_AN_ADDRESS': 'Enter an address', 'YOU_PICKED_OPT': 'You picked option', 'PLEASE_WAIT': 'Please wait', - 'SEND_TO_ADDRESS_MIN_LENGTH': 'Send to address must be at least 64 characters long', + 'SEND_TO_ADDRESS_MIN_LENGTH': 'Send to address must be at least 34 characters long', 'AMOUNT_POSITIVE_NUMBER': 'Amount must be a positive number', 'FEE_POSITIVE_NUMBER': 'Fee must be a positive number', 'TOTAL_AMOUNT_POSITIVE_NUMBER': 'Total amount (amount - fee) must be a positive number', From f99addc45d2c4b3bc9eb1815d76d01bed7c74356 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Tue, 22 Aug 2017 21:22:20 +0300 Subject: [PATCH 4/8] minor code cleanup --- react/src/actions/actions/addCoin.js | 32 +- react/src/actions/actions/addressBalance.js | 206 +++++----- react/src/actions/actions/atomic.js | 24 +- react/src/actions/actions/basiliskCache.js | 48 +-- .../actions/actions/basiliskProcessAddress.js | 68 ++-- .../src/actions/actions/basiliskTxHistory.js | 2 +- react/src/actions/actions/cli.js | 6 +- react/src/actions/actions/createWallet.js | 32 +- react/src/actions/actions/dexCoins.js | 31 +- react/src/actions/actions/edexBalance.js | 60 +-- react/src/actions/actions/edexGetTx.js | 36 +- react/src/actions/actions/fullTxHistory.js | 32 +- react/src/actions/actions/getAddrByAccount.js | 40 +- react/src/actions/actions/iguanaHelpers.js | 32 +- react/src/actions/actions/iguanaInstance.js | 2 +- react/src/actions/actions/jumblr.js | 10 +- react/src/actions/actions/logout.js | 30 +- react/src/actions/actions/nativeBalance.js | 48 +-- react/src/actions/actions/nativeNewAddress.js | 50 +-- react/src/actions/actions/nativeSend.js | 106 ++--- react/src/actions/actions/nativeSyncInfo.js | 76 ++-- react/src/actions/actions/nativeTxHistory.js | 50 +-- react/src/actions/actions/notary.js | 72 ++-- react/src/actions/actions/sendFullBasilisk.js | 146 +++---- react/src/actions/actions/settings.js | 108 ++--- react/src/actions/actions/syncInfo.js | 32 +- react/src/actions/actions/walletAuth.js | 132 +++--- react/src/components/addcoin/addcoin.js | 3 +- .../addcoin/coin-selectors.render.js | 10 +- react/src/components/addcoin/payload.js | 104 ++--- react/src/components/dashboard/about/about.js | 52 +-- .../src/components/dashboard/atomic/atomic.js | 375 +++++++++--------- .../dashboard/atomic/atomic.render.js | 4 +- .../claimInterestModal/claimInterestModal.js | 7 +- .../claimInterestModal.render.js | 25 +- .../components/dashboard/coinTile/coinTile.js | 14 +- .../dashboard/coinTile/coinTileItem.js | 20 +- .../coindDownModal/coindDownModal.render.js | 4 +- .../src/components/dashboard/jumblr/jumblr.js | 30 +- .../dashboard/jumblr/jumblr.render.js | 110 +++-- .../components/dashboard/qrModal/qrModal.js | 4 +- .../receiveCoin/receiveCoin.render.js | 5 +- .../components/dashboard/sendCoin/sendCoin.js | 48 +-- .../dashboard/sendCoin/sendCoin.render.js | 2 +- .../components/dashboard/settings/settings.js | 27 +- .../dashboard/settings/settings.render.js | 20 +- .../components/dashboard/syncOnly/syncOnly.js | 4 +- .../walletsBalance/walletsBalance.js | 12 +- .../dashboard/walletsData/walletsData.js | 84 ++-- .../walletsData/walletsData.render.js | 2 +- .../walletsInfo/walletsInfo.render.js | 4 +- .../dashboard/walletsNative/walletsNative.js | 2 +- .../walletsNativeSend/walletsNativeSend.js | 4 +- .../walletsNativeSend.render.js | 2 +- .../walletsTxInfo/walletsTxInfo.render.js | 3 +- react/src/components/login/login.js | 12 +- react/src/components/login/login.render.js | 35 +- react/src/components/overrides.scss | 1 + react/src/components/toaster/toaster-item.js | 6 +- react/src/components/toaster/toaster.js | 8 +- react/src/translate/en.js | 142 ++++++- react/src/util/cacheFormat.js | 4 +- react/src/util/coinHelper.js | 10 +- react/src/util/time.js | 48 +-- 64 files changed, 1422 insertions(+), 1336 deletions(-) diff --git a/react/src/actions/actions/addCoin.js b/react/src/actions/actions/addCoin.js index c34443b..a197244 100644 --- a/react/src/actions/actions/addCoin.js +++ b/react/src/actions/actions/addCoin.js @@ -99,12 +99,12 @@ export function iguanaAddCoin(coin, mode, acData, port) { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'iguanaAddCoin', - 'type': 'post', - 'url': `http://127.0.0.1:${(port ? port : Config.iguanaCorePort)}`, - 'payload': acData, - 'status': 'pending', + timestamp: _timestamp, + function: 'iguanaAddCoin', + type: 'post', + url: `http://127.0.0.1:${(port ? port : Config.iguanaCorePort)}`, + payload: acData, + status: 'pending', })); } @@ -116,9 +116,9 @@ export function iguanaAddCoin(coin, mode, acData, port) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -133,9 +133,9 @@ export function iguanaAddCoin(coin, mode, acData, port) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch( @@ -238,7 +238,7 @@ export function shepherdHerd(coin, mode, path, startupParams) { }, body: JSON.stringify({ 'herd': coin !== 'ZEC' ? 'komodod' : 'zcashd', - 'options': herdData + 'options': herdData, }), }) .catch(function(error) { @@ -279,7 +279,7 @@ export function addCoinResult(coin, mode) { const modeToValue = { '1': 'full', '0': 'basilisk', - '-1': 'native' + '-1': 'native', }; return dispatch => { @@ -302,7 +302,7 @@ export function _shepherdGetConfig(coin, mode, startupParams) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'chain': 'komodod' }) + body: JSON.stringify({ chain: 'komodod' }) }) .catch(function(error) { console.log(error); @@ -364,7 +364,7 @@ export function shepherdGetConfig(coin, mode, startupParams) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'chain': 'komodod' }) + body: JSON.stringify({ chain: 'komodod' }) }) .catch(function(error) { console.log(error); diff --git a/react/src/actions/actions/addressBalance.js b/react/src/actions/actions/addressBalance.js index 9ec636b..1072b21 100644 --- a/react/src/actions/actions/addressBalance.js +++ b/react/src/actions/actions/addressBalance.js @@ -39,31 +39,31 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { if (passthruAgent === 'iguana') { payload = { - 'userpass': tmpIguanaRPCAuth, - 'agent': passthruAgent, - 'method': 'passthru', - 'asset': coin, - 'function': ajaxFunctionInput, - 'hex': tmplistaddrHexInput, + userpass: tmpIguanaRPCAuth, + agent: passthruAgent, + method: 'passthru', + asset: coin, + function: ajaxFunctionInput, + hex: tmplistaddrHexInput, }; } else { payload = { - 'userpass': tmpIguanaRPCAuth, - 'agent': passthruAgent, - 'method': 'passthru', - 'function': ajaxFunctionInput, - 'hex': tmplistaddrHexInput, + userpass: tmpIguanaRPCAuth, + agent: passthruAgent, + method: 'passthru', + function: ajaxFunctionInput, + hex: tmplistaddrHexInput, }; } if (mode === 'full' || mode === 'basilisk') { payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'coin': coin, - 'agent': 'bitcoinrpc', - 'method': 'getaddressesbyaccount', - 'account': '*', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + coin: coin, + agent: 'bitcoinrpc', + method: 'getaddressesbyaccount', + account: '*', }; } @@ -91,7 +91,7 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { json = json.result.basilisk; if (json[coin].addresses) { - resolve({ 'result': json[coin].addresses }); + resolve({ result: json[coin].addresses }); } }) } else { @@ -108,12 +108,12 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getKMDAddressesNative', - 'type': 'post', - 'url': Config.cli.default ? `http://127.0.0.1:${Config.agamaPort}/shepherd/cli` : `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'getKMDAddressesNative', + type: 'post', + url: Config.cli.default ? `http://127.0.0.1:${Config.agamaPort}/shepherd/cli` : `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -129,7 +129,7 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'payload': payload }), + body: JSON.stringify({ payload: payload }), }; } @@ -141,9 +141,9 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -158,9 +158,9 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } resolve(Config.cli.default && mode === 'native' ? json.result : json); @@ -173,11 +173,11 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { const passthruAgent = getPassthruAgent(coin); const tmpIguanaRPCAuth = `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`; let payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': passthruAgent, - 'method': 'passthru', - 'function': 'listunspent', - 'hex': '', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: passthruAgent, + method: 'passthru', + function: 'listunspent', + hex: '', }; if (passthruAgent === 'iguana') { @@ -186,10 +186,10 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { if (mode === 'full') { payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'coin': coin, - 'method': 'listunspent', - 'params': [ + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + coin: coin, + method: 'listunspent', + params: [ 1, 9999999, ], @@ -198,11 +198,11 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { if (mode === 'basilisk') { payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'dex', - 'method': 'listunspent', - 'address': currentAddress, - 'symbol': coin, + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'dex', + method: 'listunspent', + address: currentAddress, + symbol: coin, }; } @@ -291,30 +291,30 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { .then((hashHexJson) => { if (getPassthruAgent(coin) === 'iguana') { payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': getPassthruAgent(coin), - 'method': 'passthru', - 'asset': coin, - 'function': 'z_getbalance', - 'hex': hashHexJson, + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: getPassthruAgent(coin), + method: 'passthru', + asset: coin, + function: 'z_getbalance', + hex: hashHexJson, }; } else { payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': getPassthruAgent(coin), - 'method': 'passthru', - 'function': 'z_getbalance', - 'hex': hashHexJson, + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: getPassthruAgent(coin), + method: 'passthru', + function: 'z_getbalance', + hex: hashHexJson, }; } if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getKMDAddressesNative+ZBalance', - 'type': 'post', - 'url': Config.cli.default ? `http://127.0.0.1:${Config.agamaPort}/shepherd/cli` : `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'getKMDAddressesNative+ZBalance', + type: 'post', + url: Config.cli.default ? `http://127.0.0.1:${Config.agamaPort}/shepherd/cli` : `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -339,7 +339,7 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'payload': payload }), + body: JSON.stringify({ payload: payload }), }; } @@ -351,9 +351,9 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -371,9 +371,9 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { resolve(0); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': json, + timestamp: _timestamp, + status: 'error', + response: json, })); } dispatch( @@ -396,9 +396,9 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { }; if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } } @@ -408,14 +408,14 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { })) .then(zresult => { dispatch(getKMDAddressesNativeState({ - 'public': newAddressArray[0], - 'private': newAddressArray[1] + public: newAddressArray[0], + private: newAddressArray[1], })); }); } else { dispatch(getKMDAddressesNativeState({ - 'public': newAddressArray[0], - 'private': newAddressArray[1] + public: newAddressArray[0], + private: newAddressArray[1], })); } } @@ -451,12 +451,12 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getKMDAddressesNative+Balance', - 'type': 'post', - 'url': `http://127.0.0.1:${(Config.useBasiliskInstance && mode === 'basilisk' ? Config.iguanaCorePort + 1 : Config.iguanaCorePort)}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'getKMDAddressesNative+Balance', + type: 'post', + url: `http://127.0.0.1:${(Config.useBasiliskInstance && mode === 'basilisk' ? Config.iguanaCorePort + 1 : Config.iguanaCorePort)}`, + payload: payload, + status: 'pending', })); } @@ -468,9 +468,9 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -485,15 +485,15 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { .then(function(json) { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } updatedCache.basilisk[coin][currentAddress].refresh = { - 'data': json, - 'status': 'done', - 'timestamp': Date.now(), + data: json, + status: 'done', + timestamp: Date.now(), }; dispatch(shepherdGroomPost(pubkey, updatedCache)); calcBalance( @@ -509,12 +509,12 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getKMDAddressesNative+Balance', - 'type': 'post', - 'url': `http://127.0.0.1:${(Config.useBasiliskInstance && mode === 'basilisk' ? Config.iguanaCorePort + 1 : Config.iguanaCorePort)}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'getKMDAddressesNative+Balance', + type: 'post', + url: `http://127.0.0.1:${(Config.useBasiliskInstance && mode === 'basilisk' ? Config.iguanaCorePort + 1 : Config.iguanaCorePort)}`, + payload: payload, + status: 'pending', })); } @@ -537,7 +537,7 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'payload': payload }), + body: JSON.stringify({ payload: payload }), }; } @@ -549,9 +549,9 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -570,9 +570,9 @@ export function getKMDAddressesNative(coin, mode, currentAddress) { } if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } calcBalance( diff --git a/react/src/actions/actions/atomic.js b/react/src/actions/actions/atomic.js index a6d5b73..378942b 100644 --- a/react/src/actions/actions/atomic.js +++ b/react/src/actions/actions/atomic.js @@ -11,12 +11,12 @@ export function atomic(payload) { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'atomic', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'atomic', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -28,9 +28,9 @@ export function atomic(payload) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -45,9 +45,9 @@ export function atomic(payload) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch(atomicState(json)); diff --git a/react/src/actions/actions/basiliskCache.js b/react/src/actions/actions/basiliskCache.js index 00d4087..f3c743c 100644 --- a/react/src/actions/actions/basiliskCache.js +++ b/react/src/actions/actions/basiliskCache.js @@ -14,7 +14,7 @@ export function deleteCacheFile(_payload) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'filename': _payload.pubkey }), + body: JSON.stringify({ filename: _payload.pubkey }), }) .catch(function(error) { console.log(error); @@ -61,14 +61,14 @@ export function getCacheFile(pubkey) { } export function fetchNewCacheData(_payload) { - const _userpass = `?userpass=tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - _pubkey = `&pubkey=${_payload.pubkey}`, - _route = _payload.allcoins ? 'cache-all' : 'cache-one', - _coin = `&coin=${_payload.coin}`, - _calls = `&calls=${_payload.calls}`, - _address = _payload.address ? (`&address=${_payload.address}`) : '', - _skip = _payload.skip ? (`&skip=${_payload.skip}`) : '', - _iguanaInstancePort = Config.useBasiliskInstance ? `&port=${Config.iguanaCorePort + 1}` : ''; + const _userpass = `?userpass=tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`; + const _pubkey = `&pubkey=${_payload.pubkey}`; + const _route = _payload.allcoins ? 'cache-all' : 'cache-one'; + const _coin = `&coin=${_payload.coin}`; + const _calls = `&calls=${_payload.calls}`; + const _address = _payload.address ? (`&address=${_payload.address}`) : ''; + const _skip = _payload.skip ? (`&skip=${_payload.skip}`) : ''; + const _iguanaInstancePort = Config.useBasiliskInstance ? `&port=${Config.iguanaCorePort + 1}` : ''; return dispatch => { return fetch(`http://127.0.0.1:${Config.agamaPort}/shepherd/${_route}${_userpass}${_pubkey}${_coin}${_calls}${_address}${_skip}${_iguanaInstancePort}`, { @@ -129,10 +129,10 @@ function getShepherdCacheState(json, pubkey, coin) { json.result.indexOf('no file with handle') > -1) { return dispatch => { dispatch(fetchNewCacheData({ - 'pubkey': pubkey, - 'allcoins': false, - 'coin': coin, - 'calls': 'listtransactions:getbalance', + pubkey: pubkey, + allcoins: false, + coin: coin, + calls: 'listtransactions:getbalance', })); } } else { @@ -144,13 +144,13 @@ function getShepherdCacheState(json, pubkey, coin) { } export function fetchUtxoCache(_payload) { - const _userpass = `?userpass=tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - _pubkey = `&pubkey=${_payload.pubkey}`, - _route = _payload.allcoins ? 'cache-all' : 'cache-one', - _coin = `&coin=${_payload.coin}`, - _calls = `&calls=${_payload.calls}`, - _address = _payload.address ? (`&address=${_payload.address}`) : '', - _iguanaInstancePort = Config.useBasiliskInstance ? `&port=${Config.iguanaCorePort + 1}` : ''; + const _userpass = `?userpass=tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`; + const _pubkey = `&pubkey=${_payload.pubkey}`; + const _route = _payload.allcoins ? 'cache-all' : 'cache-one'; + const _coin = `&coin=${_payload.coin}`; + const _calls = `&calls=${_payload.calls}`; + const _address = _payload.address ? (`&address=${_payload.address}`) : ''; + const _iguanaInstancePort = Config.useBasiliskInstance ? `&port=${Config.iguanaCorePort + 1}` : ''; return dispatch => { return fetch(`http://127.0.0.1:${Config.agamaPort}/shepherd/${_route}${_userpass}${_pubkey}${_coin}${_calls}${_address}${_iguanaInstancePort}`, { @@ -186,8 +186,8 @@ export function shepherdGroomPost(_filename, _payload) { 'Content-Type': 'application/json', }, body: JSON.stringify({ - 'filename': _filename, - 'payload': JSON.stringify(_payload), + filename: _filename, + payload: JSON.stringify(_payload), }), }) .catch(function(error) { @@ -213,8 +213,8 @@ export function shepherdGroomPostPromise(_filename, _payload) { 'Content-Type': 'application/json', }, body: JSON.stringify({ - 'filename': _filename, - 'payload': JSON.stringify(_payload), + filename: _filename, + payload: JSON.stringify(_payload), }), }) .catch(function(error) { diff --git a/react/src/actions/actions/basiliskProcessAddress.js b/react/src/actions/actions/basiliskProcessAddress.js index ec85708..fd91018 100644 --- a/react/src/actions/actions/basiliskProcessAddress.js +++ b/react/src/actions/actions/basiliskProcessAddress.js @@ -8,23 +8,23 @@ import Config from '../../config'; export function checkAddressBasilisk(coin, address) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'dex', - 'method': 'checkaddress', - 'address': address, - 'symbol': coin, + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'dex', + method: 'checkaddress', + address: address, + symbol: coin, }; return dispatch => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'checkAddressBasilisk', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.useBasiliskInstance ? Config.iguanaCorePort + 1 : Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'checkAddressBasilisk', + type: 'post', + url: `http://127.0.0.1:${Config.useBasiliskInstance ? Config.iguanaCorePort + 1 : Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -36,9 +36,9 @@ export function checkAddressBasilisk(coin, address) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -53,9 +53,9 @@ export function checkAddressBasilisk(coin, address) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch(checkAddressBasiliskHandle(json)); @@ -94,23 +94,23 @@ function checkAddressBasiliskHandle(json) { export function validateAddressBasilisk(coin, address) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'dex', - 'method': 'validateaddress', - 'address': address, - 'symbol': coin, + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'dex', + method: 'validateaddress', + address: address, + symbol: coin, }; return dispatch => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'validateAddressBasilisk', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'validateAddressBasilisk', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -122,9 +122,9 @@ export function validateAddressBasilisk(coin, address) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -139,9 +139,9 @@ export function validateAddressBasilisk(coin, address) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch(validateAddressBasiliskHandle(json)); diff --git a/react/src/actions/actions/basiliskTxHistory.js b/react/src/actions/actions/basiliskTxHistory.js index 7bbb445..06485a3 100644 --- a/react/src/actions/actions/basiliskTxHistory.js +++ b/react/src/actions/actions/basiliskTxHistory.js @@ -38,7 +38,7 @@ export function getBasiliskTransactionsList(coin, address) { json = json.result.basilisk; if (json[coin][address].listtransactions) { - dispatch(getNativeTxHistoryState({ 'result': json[coin][address].listtransactions.data })); + dispatch(getNativeTxHistoryState({ result: json[coin][address].listtransactions.data })); } }) } diff --git a/react/src/actions/actions/cli.js b/react/src/actions/actions/cli.js index 60c4b3b..11e223f 100644 --- a/react/src/actions/actions/cli.js +++ b/react/src/actions/actions/cli.js @@ -10,7 +10,7 @@ export function shepherdCliPromise(mode, chain, cmd) { const _payload = { mode, chain, - cmd + cmd, }; return new Promise((resolve, reject) => { @@ -19,7 +19,7 @@ export function shepherdCliPromise(mode, chain, cmd) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'payload': _payload }), + body: JSON.stringify({ payload: _payload }), }) .catch(function(error) { console.log(error); @@ -40,7 +40,7 @@ export function shepherdCli(mode, chain, cmd) { const _payload = { mode, chain, - cmd + cmd, }; return dispatch => { diff --git a/react/src/actions/actions/createWallet.js b/react/src/actions/actions/createWallet.js index 88fc4e2..671c807 100644 --- a/react/src/actions/actions/createWallet.js +++ b/react/src/actions/actions/createWallet.js @@ -34,22 +34,22 @@ function createNewWalletState(json) { export function createNewWallet(_passphrase) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'bitcoinrpc', - 'method': 'encryptwallet', - 'passphrase': _passphrase, + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'bitcoinrpc', + method: 'encryptwallet', + passphrase: _passphrase, }; return dispatch => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'createNewWallet', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'createNewWallet', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -61,9 +61,9 @@ export function createNewWallet(_passphrase) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -78,9 +78,9 @@ export function createNewWallet(_passphrase) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch(createNewWalletState(json)); diff --git a/react/src/actions/actions/dexCoins.js b/react/src/actions/actions/dexCoins.js index 817ba99..12697e5 100644 --- a/react/src/actions/actions/dexCoins.js +++ b/react/src/actions/actions/dexCoins.js @@ -8,23 +8,24 @@ import { } from './log'; import Config from '../../config'; +// TODO: find out why it errors on slow systems export function getDexCoins() { const _payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'InstantDEX', - 'method': 'allcoins', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'InstantDEX', + method: 'allcoins', }; return dispatch => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getDexCoins', - 'type': 'post', - 'url': Config.iguanaLessMode ? `http://127.0.0.1:${Config.agamaPort}/shepherd/InstantDEX/allcoins` : `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': _payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'getDexCoins', + type: 'post', + url: Config.iguanaLessMode ? `http://127.0.0.1:${Config.agamaPort}/shepherd/InstantDEX/allcoins` : `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: _payload, + status: 'pending', })); } @@ -50,9 +51,9 @@ export function getDexCoins() { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -67,9 +68,9 @@ export function getDexCoins() { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch(dashboardCoinsState(json)); diff --git a/react/src/actions/actions/edexBalance.js b/react/src/actions/actions/edexBalance.js index fcdeb55..29a1b14 100644 --- a/react/src/actions/actions/edexBalance.js +++ b/react/src/actions/actions/edexBalance.js @@ -8,10 +8,10 @@ import Config from '../../config'; export function iguanaEdexBalance(coin) { const _payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'bitcoinrpc', - 'method': 'getbalance', - 'coin': coin, + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'bitcoinrpc', + method: 'getbalance', + coin: coin, }; return dispatch => { @@ -19,12 +19,12 @@ export function iguanaEdexBalance(coin) { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'iguanaEdexBalance', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': _payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'iguanaEdexBalance', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: _payload, + status: 'pending', })); } @@ -36,9 +36,9 @@ export function iguanaEdexBalance(coin) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -65,23 +65,23 @@ function iguanaEdexBalanceState(json) { export function getDexBalance(coin, mode, addr) { Promise.all(addr.map((_addr, index) => { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'dex', - 'method': 'listunspent', - 'address': _addr, - 'symbol': coin, + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'dex', + method: 'listunspent', + address: _addr, + symbol: coin, }; return new Promise((resolve, reject) => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getDexBalance', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.useBasiliskInstance ? Config.iguanaCorePort + 1 : Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'getDexBalance', + type: 'post', + url: `http://127.0.0.1:${Config.useBasiliskInstance ? Config.iguanaCorePort + 1 : Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -93,9 +93,9 @@ export function getDexBalance(coin, mode, addr) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -111,9 +111,9 @@ export function getDexBalance(coin, mode, addr) { console.log(json); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } }) diff --git a/react/src/actions/actions/edexGetTx.js b/react/src/actions/actions/edexGetTx.js index c9561cb..77b09d2 100644 --- a/react/src/actions/actions/edexGetTx.js +++ b/react/src/actions/actions/edexGetTx.js @@ -7,24 +7,24 @@ import Config from '../../config'; export function edexGetTransaction(data, dispatch) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'symbol': data.coin, - 'agent': 'dex', - 'method': 'gettransaction', - 'vout': 1, - 'txid': data.txid + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + symbol: data.coin, + agent: 'dex', + method: 'gettransaction', + vout: 1, + txid: data.txid }; return new Promise((resolve, reject) => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'edexGetTransaction', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'edexGetTransaction', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -36,9 +36,9 @@ export function edexGetTransaction(data, dispatch) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -53,9 +53,9 @@ export function edexGetTransaction(data, dispatch) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } resolve(json); diff --git a/react/src/actions/actions/fullTxHistory.js b/react/src/actions/actions/fullTxHistory.js index 64a8523..cbc92a8 100644 --- a/react/src/actions/actions/fullTxHistory.js +++ b/react/src/actions/actions/fullTxHistory.js @@ -10,10 +10,10 @@ import Config from '../../config'; export function getFullTransactionsList(coin) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'coin': coin, - 'method': 'listtransactions', - 'params': [ + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + coin: coin, + method: 'listtransactions', + params: [ 0, 9999999, [] @@ -24,12 +24,12 @@ export function getFullTransactionsList(coin) { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getFullTransactionsList', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'getFullTransactionsList', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -41,9 +41,9 @@ export function getFullTransactionsList(coin) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -58,9 +58,9 @@ export function getFullTransactionsList(coin) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch(getNativeTxHistoryState(json)); diff --git a/react/src/actions/actions/getAddrByAccount.js b/react/src/actions/actions/getAddrByAccount.js index 2759224..1797c4a 100644 --- a/react/src/actions/actions/getAddrByAccount.js +++ b/react/src/actions/actions/getAddrByAccount.js @@ -12,8 +12,8 @@ export function getAddressesByAccountState(json, coin, mode) { for (let i = 0; i < json.result.length; i++) { publicAddressArray.push({ - 'address': json.result[i], - 'amount': 'N/A' + address: json.result[i], + amount: 'N/A', }); } @@ -22,29 +22,29 @@ export function getAddressesByAccountState(json, coin, mode) { return { type: ACTIVE_COIN_GET_ADDRESSES, - addresses: { 'public': json.result }, + addresses: { public: json.result }, } } export function getAddressesByAccount(coin, mode) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'coin': coin, - 'agent': 'bitcoinrpc', - 'method': 'getaddressesbyaccount', - 'account': '*', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + coin: coin, + agent: 'bitcoinrpc', + method: 'getaddressesbyaccount', + account: '*', }; return dispatch => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getAddressesByAccount', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'getAddressesByAccount', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -56,9 +56,9 @@ export function getAddressesByAccount(coin, mode) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch(updateErrosStack('activeHandle')); @@ -74,9 +74,9 @@ export function getAddressesByAccount(coin, mode) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch( diff --git a/react/src/actions/actions/iguanaHelpers.js b/react/src/actions/actions/iguanaHelpers.js index bcae9eb..76a0f88 100644 --- a/react/src/actions/actions/iguanaHelpers.js +++ b/react/src/actions/actions/iguanaHelpers.js @@ -18,10 +18,10 @@ export function getPassthruAgent(coin) { export function iguanaHashHex(data, dispatch) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'hash', - 'method': 'hex', - 'message': data, + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'hash', + method: 'hex', + message: data, }; return new Promise((resolve, reject) => { @@ -32,12 +32,12 @@ export function iguanaHashHex(data, dispatch) { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'iguanaHashHex', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'iguanaHashHex', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -49,9 +49,9 @@ export function iguanaHashHex(data, dispatch) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -66,9 +66,9 @@ export function iguanaHashHex(data, dispatch) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } resolve(json.hex); diff --git a/react/src/actions/actions/iguanaInstance.js b/react/src/actions/actions/iguanaInstance.js index cd69be1..28b5870 100644 --- a/react/src/actions/actions/iguanaInstance.js +++ b/react/src/actions/actions/iguanaInstance.js @@ -53,7 +53,7 @@ export function startIguanaInstance(mode, coin) { }, body: JSON.stringify({ mode, - coin + coin, }), }) .catch(function(error) { diff --git a/react/src/actions/actions/jumblr.js b/react/src/actions/actions/jumblr.js index c734c07..1b4a359 100644 --- a/react/src/actions/actions/jumblr.js +++ b/react/src/actions/actions/jumblr.js @@ -13,7 +13,7 @@ function getNewAddress(coin) { // TODO: remove(?) const payload = { mode: null, chain: coin, - cmd: 'getnewaddress' + cmd: 'getnewaddress', }; const _fetchConfig = { @@ -21,7 +21,7 @@ function getNewAddress(coin) { // TODO: remove(?) headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'payload': payload }), + body: JSON.stringify({ payload: payload }), }; fetch( @@ -59,7 +59,7 @@ export function setJumblrAddress(coin, type, address) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'payload': payload }), + body: JSON.stringify({ payload: payload }), }; fetch( @@ -97,7 +97,7 @@ function dumpPrivkey(coin, key) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'payload': payload }), + body: JSON.stringify({ payload: payload }), }; fetch( @@ -139,7 +139,7 @@ export function importPrivkey(coin, key) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'payload': payload }), + body: JSON.stringify({ payload: payload }), }; fetch( diff --git a/react/src/actions/actions/logout.js b/react/src/actions/actions/logout.js index fe68c3f..f12fdef 100644 --- a/react/src/actions/actions/logout.js +++ b/react/src/actions/actions/logout.js @@ -32,21 +32,21 @@ export function logout() { function walletLock() { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'bitcoinrpc', - 'method': 'walletlock', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'bitcoinrpc', + method: 'walletlock', }; return dispatch => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'walletLock', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'walletLock', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -58,9 +58,9 @@ function walletLock() { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -75,9 +75,9 @@ function walletLock() { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch(logoutState(json)); diff --git a/react/src/actions/actions/nativeBalance.js b/react/src/actions/actions/nativeBalance.js index 960e00f..93a9e14 100644 --- a/react/src/actions/actions/nativeBalance.js +++ b/react/src/actions/actions/nativeBalance.js @@ -15,20 +15,20 @@ export function getKMDBalanceTotal(coin) { if (coin !== 'KMD' && coin !== 'ZEC') { payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'iguana', - 'method': 'passthru', - 'asset': coin, - 'function': 'z_gettotalbalance', - 'hex': '3000', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'iguana', + method: 'passthru', + asset: coin, + function: 'z_gettotalbalance', + hex: '3000', }; } else { payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': getPassthruAgent(coin), - 'method': 'passthru', - 'function': 'z_gettotalbalance', - 'hex': '3000', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: getPassthruAgent(coin), + method: 'passthru', + function: 'z_gettotalbalance', + hex: '3000', }; } @@ -44,12 +44,12 @@ export function getKMDBalanceTotal(coin) { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getKMDBalanceTotal', - 'type': 'post', - 'url': Config.cli.default ? `http://127.0.0.1:${Config.agamaPort}/shepherd/cli` : `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'getKMDBalanceTotal', + type: 'post', + url: Config.cli.default ? `http://127.0.0.1:${Config.agamaPort}/shepherd/cli` : `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -64,7 +64,7 @@ export function getKMDBalanceTotal(coin) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'payload': payload }), + body: JSON.stringify({ payload: payload }), }; } @@ -76,9 +76,9 @@ export function getKMDBalanceTotal(coin) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -93,9 +93,9 @@ export function getKMDBalanceTotal(coin) { .then(function(json) { // TODO: figure out why komodod spits out "parse error" if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } if (json && diff --git a/react/src/actions/actions/nativeNewAddress.js b/react/src/actions/actions/nativeNewAddress.js index e3f9821..de3c376 100644 --- a/react/src/actions/actions/nativeNewAddress.js +++ b/react/src/actions/actions/nativeNewAddress.js @@ -16,20 +16,20 @@ export function getNewKMDAddresses(coin, pubpriv, mode) { if (getPassthruAgent(coin) === 'iguana') { payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': getPassthruAgent(coin), - 'method': 'passthru', - 'asset': coin, - 'function': ajaxFunctionInput, - 'hex': '', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: getPassthruAgent(coin), + method: 'passthru', + asset: coin, + function: ajaxFunctionInput, + hex: '', }; } else { payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': coin, - 'method': 'passthru', - 'function': ajaxFunctionInput, - 'hex': '', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: coin, + method: 'passthru', + function: ajaxFunctionInput, + hex: '', }; } @@ -37,12 +37,12 @@ export function getNewKMDAddresses(coin, pubpriv, mode) { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getNewKMDAddresses', - 'type': 'post', - 'url': Config.cli.default ? `http://127.0.0.1:${Config.agamaPort}/shepherd/cli` : `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'getNewKMDAddresses', + type: 'post', + url: Config.cli.default ? `http://127.0.0.1:${Config.agamaPort}/shepherd/cli` : `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -55,7 +55,7 @@ export function getNewKMDAddresses(coin, pubpriv, mode) { payload = { mode: null, chain: coin, - cmd: payload.function + cmd: payload.function, }; _fetchConfig = { @@ -63,7 +63,7 @@ export function getNewKMDAddresses(coin, pubpriv, mode) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'payload': payload }), + body: JSON.stringify({ payload: payload }), }; } @@ -75,9 +75,9 @@ export function getNewKMDAddresses(coin, pubpriv, mode) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -95,9 +95,9 @@ export function getNewKMDAddresses(coin, pubpriv, mode) { } if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch( diff --git a/react/src/actions/actions/nativeSend.js b/react/src/actions/actions/nativeSend.js index 05e8dbb..0562f1a 100644 --- a/react/src/actions/actions/nativeSend.js +++ b/react/src/actions/actions/nativeSend.js @@ -30,32 +30,32 @@ export function sendNativeTx(coin, _payload) { return iguanaHashHex(ajaxDataToHex, dispatch).then((hashHexJson) => { if (getPassthruAgent(coin) === 'iguana') { payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': getPassthruAgent(coin), - 'method': 'passthru', - 'asset': coin, - 'function': _apiMethod, - 'hex': hashHexJson, + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: getPassthruAgent(coin), + method: 'passthru', + asset: coin, + function: _apiMethod, + hex: hashHexJson, }; } else { payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': getPassthruAgent(coin), - 'method': 'passthru', - 'function': _apiMethod, - 'hex': hashHexJson, + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: getPassthruAgent(coin), + method: 'passthru', + function: _apiMethod, + hex: hashHexJson, }; } const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'sendNativeTx', - 'type': 'post', - 'url': Config.cli.default ? `http://127.0.0.1:${Config.agamaPort}/shepherd/cli` : `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'sendNativeTx', + type: 'post', + url: Config.cli.default ? `http://127.0.0.1:${Config.agamaPort}/shepherd/cli` : `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -90,7 +90,7 @@ export function sendNativeTx(coin, _payload) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'payload': payload }), + body: JSON.stringify({ payload: payload }), }; } @@ -102,9 +102,9 @@ export function sendNativeTx(coin, _payload) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -122,9 +122,9 @@ export function sendNativeTx(coin, _payload) { .then(function(json) { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } @@ -191,38 +191,38 @@ export function getKMDOPID(opid, coin) { hashHexJson = ''; } - let payload, - passthruAgent = getPassthruAgent(coin), - tmpIguanaRPCAuth = `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`; + let payload; + let passthruAgent = getPassthruAgent(coin); + let tmpIguanaRPCAuth = `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`; if (passthruAgent === 'iguana') { payload = { - 'userpass': tmpIguanaRPCAuth, - 'agent': passthruAgent, - 'method': 'passthru', - 'asset': coin, - 'function': 'z_getoperationstatus', - 'hex': hashHexJson, + userpass: tmpIguanaRPCAuth, + agent: passthruAgent, + method: 'passthru', + asset: coin, + function: 'z_getoperationstatus', + hex: hashHexJson, }; } else { payload = { - 'userpass': tmpIguanaRPCAuth, - 'agent': passthruAgent, - 'method': 'passthru', - 'function': 'z_getoperationstatus', - 'hex': hashHexJson, + userpass: tmpIguanaRPCAuth, + agent: passthruAgent, + method: 'passthru', + function: 'z_getoperationstatus', + hex: hashHexJson, }; } const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getKMDOPID', - 'type': 'post', - 'url': Config.cli.default ? `http://127.0.0.1:${Config.agamaPort}/shepherd/cli` : `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'getKMDOPID', + type: 'post', + url: Config.cli.default ? `http://127.0.0.1:${Config.agamaPort}/shepherd/cli` : `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -243,7 +243,7 @@ export function getKMDOPID(opid, coin) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'payload': payload }), + body: JSON.stringify({ payload: payload }), }; } @@ -255,9 +255,9 @@ export function getKMDOPID(opid, coin) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -275,9 +275,9 @@ export function getKMDOPID(opid, coin) { } if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch(getKMDOPIDState(json)); @@ -298,7 +298,7 @@ export function sendToAddressPromise(coin, address, amount) { 'KMD interest claim request', 'KMD interest claim request', true - ] + ], }; const _fetchConfig = { @@ -306,7 +306,7 @@ export function sendToAddressPromise(coin, address, amount) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'payload': payload }), + body: JSON.stringify({ payload: payload }), }; fetch( diff --git a/react/src/actions/actions/nativeSyncInfo.js b/react/src/actions/actions/nativeSyncInfo.js index 009c190..60cabc4 100644 --- a/react/src/actions/actions/nativeSyncInfo.js +++ b/react/src/actions/actions/nativeSyncInfo.js @@ -18,12 +18,12 @@ export function getSyncInfoNativeKMD(skipDebug, json) { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getSyncInfoNativeKMD', - 'type': 'post', - 'url': Config.iguanaLessMode ? 'http://kmd.explorer.supernet.org/api/status?q=getInfo' : `http://127.0.0.1:${Config.iguanaCorePort}/api/dex/getinfo?userpass=tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}&symbol=${coin}`, - 'payload': '', - 'status': 'pending', + timestamp: _timestamp, + function: 'getSyncInfoNativeKMD', + type: 'post', + url: Config.iguanaLessMode ? 'http://kmd.explorer.supernet.org/api/status?q=getInfo' : `http://127.0.0.1:${Config.iguanaCorePort}/api/dex/getinfo?userpass=tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}&symbol=${coin}`, + payload: '', + status: 'pending', })); } @@ -35,9 +35,9 @@ export function getSyncInfoNativeKMD(skipDebug, json) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } /*dispatch( @@ -47,19 +47,19 @@ export function getSyncInfoNativeKMD(skipDebug, json) { 'error' ) );*/ - console.warn('remote kmd node fetch failed', true); - dispatch(getSyncInfoNativeState({ 'remoteKMDNode': null })); + console.warn('remote kmd node fetch failed', true); + dispatch(getSyncInfoNativeState({ remoteKMDNode: null })); }) .then(response => response.json()) .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': Config.iguanaLessMode ? json.info : json, + timestamp: _timestamp, + status: 'success', + response: Config.iguanaLessMode ? json.info : json, })); } - dispatch(getSyncInfoNativeState({ 'remoteKMDNode': Config.iguanaLessMode ? json.info : json })); + dispatch(getSyncInfoNativeState({ remoteKMDNode: Config.iguanaLessMode ? json.info : json })); }) .then(function() { if (!skipDebug) { @@ -94,19 +94,19 @@ function getSyncInfoNativeState(json, coin, skipDebug) { export function getSyncInfoNative(coin, skipDebug) { let payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': getPassthruAgent(coin), - 'method': 'passthru', - 'asset': coin, - 'function': 'getinfo', - 'hex': '', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: getPassthruAgent(coin), + method: 'passthru', + asset: coin, + function: 'getinfo', + hex: '', }; if (Config.cli.default) { payload = { mode: null, chain: coin, - cmd: 'getinfo' + cmd: 'getinfo', }; } @@ -114,12 +114,12 @@ export function getSyncInfoNative(coin, skipDebug) { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getSyncInfo', - 'type': 'post', - 'url': Config.cli.default ? `http://127.0.0.1:${Config.agamaPort}/shepherd/cli` : `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'getSyncInfo', + type: 'post', + url: Config.cli.default ? `http://127.0.0.1:${Config.agamaPort}/shepherd/cli` : `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } let _fetchConfig = { @@ -133,7 +133,7 @@ export function getSyncInfoNative(coin, skipDebug) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'payload': payload }), + body: JSON.stringify({ payload: payload }), }; } @@ -145,9 +145,9 @@ export function getSyncInfoNative(coin, skipDebug) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -166,7 +166,11 @@ export function getSyncInfoNative(coin, skipDebug) { if (json === 'Work queue depth exceeded') { dispatch( getSyncInfoNativeState( - { result: 'daemon is busy', error: null, id: null }, + { + result: 'daemon is busy', + error: null, + id: null + }, coin, skipDebug ) @@ -204,9 +208,9 @@ export function getSyncInfoNative(coin, skipDebug) { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch( diff --git a/react/src/actions/actions/nativeTxHistory.js b/react/src/actions/actions/nativeTxHistory.js index 6724003..5cba39c 100644 --- a/react/src/actions/actions/nativeTxHistory.js +++ b/react/src/actions/actions/nativeTxHistory.js @@ -14,20 +14,20 @@ export function getNativeTxHistory(coin) { if (getPassthruAgent(coin) === 'iguana') { payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'iguana', - 'method': 'passthru', - 'asset': coin, - 'function': 'listtransactions', - 'hex': '', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'iguana', + method: 'passthru', + asset: coin, + function: 'listtransactions', + hex: '', }; } else { payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': getPassthruAgent(coin), - 'method': 'passthru', - 'function': 'listtransactions', - 'hex': '', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: getPassthruAgent(coin), + method: 'passthru', + function: 'listtransactions', + hex: '', }; } @@ -35,12 +35,12 @@ export function getNativeTxHistory(coin) { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getNativeTxHistory', - 'type': 'post', - 'url': Config.cli.default ? `http://127.0.0.1:${Config.agamaPort}/shepherd/cli` : `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'getNativeTxHistory', + type: 'post', + url: Config.cli.default ? `http://127.0.0.1:${Config.agamaPort}/shepherd/cli` : `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -53,7 +53,7 @@ export function getNativeTxHistory(coin) { payload = { mode: null, chain: coin, - cmd: 'listtransactions' + cmd: 'listtransactions', }; _fetchConfig = { @@ -61,7 +61,7 @@ export function getNativeTxHistory(coin) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'payload': payload }), + body: JSON.stringify({ payload: payload }), }; } @@ -73,9 +73,9 @@ export function getNativeTxHistory(coin) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -90,9 +90,9 @@ export function getNativeTxHistory(coin) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch(getNativeTxHistoryState(json)); diff --git a/react/src/actions/actions/notary.js b/react/src/actions/actions/notary.js index 10f1c8a..23c7479 100644 --- a/react/src/actions/actions/notary.js +++ b/react/src/actions/actions/notary.js @@ -14,23 +14,23 @@ function initNotaryNodesConSequence(nodes) { return dispatch => { Promise.all(nodes.map((node, index) => { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'dex', - 'method': 'getinfo', - 'symbol': node, - 'timeout': 10000 + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'dex', + method: 'getinfo', + symbol: node, + timeout: 10000, }; return new Promise((resolve, reject) => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': `initNotaryNodesConSequence+${node}`, - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: `initNotaryNodesConSequence+${node}`, + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -41,9 +41,9 @@ function initNotaryNodesConSequence(nodes) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -58,9 +58,9 @@ function initNotaryNodesConSequence(nodes) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch( @@ -119,9 +119,9 @@ function connectAllNotaryNodes(json, dispatch) { export function connectNotaries() { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'dpow', - 'method': 'notarychains', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'dpow', + method: 'notarychains', }; return dispatch => { @@ -169,22 +169,22 @@ function getDexNotariesState(json) { export function getDexNotaries(coin) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'dex', - 'method': 'getnotaries', - 'symbol': coin, + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'dex', + method: 'getnotaries', + symbol: coin, }; return dispatch => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getDexNotaries', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.useBasiliskInstance ? Config.iguanaCorePort + 1 : Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'getDexNotaries', + type: 'post', + url: `http://127.0.0.1:${Config.useBasiliskInstance ? Config.iguanaCorePort + 1 : Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } return fetch(`http://127.0.0.1:${Config.useBasiliskInstance ? Config.iguanaCorePort + 1 : Config.iguanaCorePort}`, { @@ -195,9 +195,9 @@ export function getDexNotaries(coin) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -212,9 +212,9 @@ export function getDexNotaries(coin) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch(getDexNotariesState(json)); diff --git a/react/src/actions/actions/sendFullBasilisk.js b/react/src/actions/actions/sendFullBasilisk.js index 0abda10..9b78aa6 100644 --- a/react/src/actions/actions/sendFullBasilisk.js +++ b/react/src/actions/actions/sendFullBasilisk.js @@ -12,10 +12,10 @@ import { export function sendToAddress(coin, _payload) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'coin': coin, - 'method': 'sendtoaddress', - 'params': [ + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + coin: coin, + method: 'sendtoaddress', + params: [ _payload.sendTo, _payload.amount, 'EasyDEX', @@ -27,12 +27,12 @@ export function sendToAddress(coin, _payload) { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'sendToAddress', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'sendToAddress', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -44,9 +44,9 @@ export function sendToAddress(coin, _payload) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -61,9 +61,9 @@ export function sendToAddress(coin, _payload) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch(sendToAddressState(json, dispatch)); @@ -73,10 +73,10 @@ export function sendToAddress(coin, _payload) { export function sendFromAddress(coin, _payload) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'coin': coin, - 'method': 'sendfrom', - 'params': [ + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + coin: coin, + method: 'sendfrom', + params: [ _payload.sendFrom, _payload.sendTo, _payload.amount, @@ -89,12 +89,12 @@ export function sendFromAddress(coin, _payload) { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'sendFromAddress', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'sendFromAddress', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -106,9 +106,9 @@ export function sendFromAddress(coin, _payload) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -123,9 +123,9 @@ export function sendFromAddress(coin, _payload) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch(sendToAddressState(json, dispatch)); @@ -135,31 +135,31 @@ export function sendFromAddress(coin, _payload) { export function iguanaUTXORawTX(data, dispatch) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'symbol': data.coin, - 'agent': 'basilisk', - 'method': 'utxorawtx', - 'vals': { - 'timelock': 0, - 'changeaddr': data.sendfrom, - 'destaddr': data.sendtoaddr, - 'txfee': data.txfee, - 'amount': data.amount, - 'sendflag': data.sendsig + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + symbol: data.coin, + agent: 'basilisk', + method: 'utxorawtx', + vals: { + timelock: 0, + changeaddr: data.sendfrom, + destaddr: data.sendtoaddr, + txfee: data.txfee, + amount: data.amount, + sendflag: data.sendsig, }, - 'utxos': data.utxos, + utxos: data.utxos, }; return new Promise((resolve, reject) => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'iguanaUTXORawTX', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'iguanaUTXORawTX', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -171,9 +171,9 @@ export function iguanaUTXORawTX(data, dispatch) { console.log(error); if (Config.debug) { dispatch => dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -188,9 +188,9 @@ export function iguanaUTXORawTX(data, dispatch) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } resolve(json); @@ -200,23 +200,23 @@ export function iguanaUTXORawTX(data, dispatch) { export function dexSendRawTX(data, dispatch) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'dex', - 'method': 'sendrawtransaction', - 'signedtx': data.signedtx, - 'symbol': data.coin + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'dex', + method: 'sendrawtransaction', + signedtx: data.signedtx, + symbol: data.coin, }; return new Promise((resolve, reject) => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'dexSendRawTX', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'dexSendRawTX', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -228,9 +228,9 @@ export function dexSendRawTX(data, dispatch) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -249,9 +249,9 @@ export function dexSendRawTX(data, dispatch) { .then(function(json) { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } resolve(json); diff --git a/react/src/actions/actions/settings.js b/react/src/actions/actions/settings.js index 2b53637..f4cdab3 100644 --- a/react/src/actions/actions/settings.js +++ b/react/src/actions/actions/settings.js @@ -91,9 +91,9 @@ function parseImportPrivKeyResponse(json, dispatch) { export function importPrivKey(wifKey) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'method': 'importprivkey', - 'params': [ + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + method: 'importprivkey', + params: [ wifKey, 'imported' ], @@ -103,12 +103,12 @@ export function importPrivKey(wifKey) { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'importPrivKey', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'importPrivKey', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -120,9 +120,9 @@ export function importPrivKey(wifKey) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -137,9 +137,9 @@ export function importPrivKey(wifKey) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch( @@ -151,7 +151,7 @@ export function importPrivKey(wifKey) { }) .catch(function(ex) { dispatch(parseImportPrivKeyResponse({ - 'error': 'privkey already in wallet' + error: 'privkey already in wallet', }, dispatch)); console.log('parsing failed', ex); }) @@ -169,8 +169,8 @@ function getDebugLogState(json) { export function getDebugLog(target, linesCount, acName) { const payload = { - 'herdname': target, - 'lastLines': linesCount + herdname: target, + lastLines: linesCount, }; if (acName) { @@ -202,22 +202,22 @@ export function getDebugLog(target, linesCount, acName) { export function getPeersList(coin) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'SuperNET', - 'method': 'getpeers', - 'activecoin': coin, + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'SuperNET', + method: 'getpeers', + activecoin: coin, }; return dispatch => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getPeersList', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'getPeersList', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -229,9 +229,9 @@ export function getPeersList(coin) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -246,9 +246,9 @@ export function getPeersList(coin) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch(getPeersListState(json, dispatch)); @@ -323,23 +323,23 @@ function addPeerNodeState(json, dispatch) { export function addPeerNode(coin, ip) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'iguana', - 'method': 'addnode', - 'activecoin': coin, - 'ipaddr': ip, + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'iguana', + method: 'addnode', + activecoin: coin, + ipaddr: ip, }; return dispatch => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'addPeerNode', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'addPeerNode', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -351,9 +351,9 @@ export function addPeerNode(coin, ip) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -368,9 +368,9 @@ export function addPeerNode(coin, ip) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch(addPeerNodeState(json, dispatch)); @@ -385,7 +385,7 @@ export function saveAppConfig(_payload) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ 'payload': _payload }), + body: JSON.stringify({ payload: _payload }), }) .catch(function(error) { console.log(error); @@ -402,7 +402,7 @@ export function saveAppConfig(_payload) { dispatch(getAppConfig()); dispatch( triggerToaster( - 'Settings are saved', + translate('TOASTR.SETTINGS_SAVED'), translate('TOASTR.SETTINGS_NOTIFICATION'), 'success' ) @@ -464,7 +464,7 @@ export function resetAppConfig() { dispatch(getAppConfig()); dispatch( triggerToaster( - 'Settings are reset to default', + translate('TOASTR.SETTINGS_RESET'), translate('TOASTR.SETTINGS_NOTIFICATION'), 'success' ) diff --git a/react/src/actions/actions/syncInfo.js b/react/src/actions/actions/syncInfo.js index 53c87cf..157911a 100644 --- a/react/src/actions/actions/syncInfo.js +++ b/react/src/actions/actions/syncInfo.js @@ -23,22 +23,22 @@ function getSyncInfoState(json) { export function getSyncInfo(coin) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'coin': coin, - 'agent': 'bitcoinrpc', - 'method': 'getinfo', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + coin: coin, + agent: 'bitcoinrpc', + method: 'getinfo', }; return dispatch => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'getSyncInfo', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'getSyncInfo', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -50,9 +50,9 @@ export function getSyncInfo(coin) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -71,9 +71,9 @@ export function getSyncInfo(coin) { .then(function(json) { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } if (json.indexOf('coin is busy processing') === -1) { diff --git a/react/src/actions/actions/walletAuth.js b/react/src/actions/actions/walletAuth.js index 80798ac..c73d920 100644 --- a/react/src/actions/actions/walletAuth.js +++ b/react/src/actions/actions/walletAuth.js @@ -16,22 +16,22 @@ import { export function encryptWallet(_passphrase, cb, coin) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'bitcoinrpc', - 'method': 'encryptwallet', - 'passphrase': _passphrase, + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'bitcoinrpc', + method: 'encryptwallet', + passphrase: _passphrase, }; return dispatch => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'encryptWallet', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'encryptWallet', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -43,9 +43,9 @@ export function encryptWallet(_passphrase, cb, coin) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -61,9 +61,9 @@ export function encryptWallet(_passphrase, cb, coin) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch( @@ -79,23 +79,23 @@ export function encryptWallet(_passphrase, cb, coin) { export function walletPassphrase(_passphrase) { const payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'bitcoinrpc', - 'method': 'walletpassphrase', - 'password': _passphrase, - 'timeout': '300000', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'bitcoinrpc', + method: 'walletpassphrase', + password: _passphrase, + timeout: '300000', }; return dispatch => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'walletpassphrase', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'walletpassphrase', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: payload, + status: 'pending', })); } @@ -107,9 +107,9 @@ export function walletPassphrase(_passphrase) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -123,9 +123,9 @@ export function walletPassphrase(_passphrase) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } }) @@ -134,24 +134,24 @@ export function walletPassphrase(_passphrase) { export function iguanaWalletPassphrase(_passphrase) { const _payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'handle': '', - 'password': _passphrase, - 'timeout': '2592000', - 'agent': 'bitcoinrpc', - 'method': 'walletpassphrase', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + handle: '', + password: _passphrase, + timeout: '2592000', + agent: 'bitcoinrpc', + method: 'walletpassphrase', }; return dispatch => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'iguanaWalletPassphrase', - 'type': 'post', - 'url': `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': _payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'iguanaWalletPassphrase', + type: 'post', + url: `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: _payload, + status: 'pending', })); } @@ -163,9 +163,9 @@ export function iguanaWalletPassphrase(_passphrase) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch( @@ -180,9 +180,9 @@ export function iguanaWalletPassphrase(_passphrase) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } dispatch(iguanaWalletPassphraseState(json, dispatch)); @@ -192,21 +192,21 @@ export function iguanaWalletPassphrase(_passphrase) { export function iguanaActiveHandle(getMainAddress) { const _payload = { - 'userpass': `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, - 'agent': 'SuperNET', - 'method': 'activehandle', + userpass: `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`, + agent: 'SuperNET', + method: 'activehandle', }; return dispatch => { const _timestamp = Date.now(); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'function': 'iguanaActiveHandle', - 'type': 'post', - 'url': Config.iguanaLessMode ? `http://127.0.0.1:${Config.agamaPort}/shepherd/SuperNET/activehandle` : `http://127.0.0.1:${Config.iguanaCorePort}`, - 'payload': _payload, - 'status': 'pending', + timestamp: _timestamp, + function: 'iguanaActiveHandle', + type: 'post', + url: Config.iguanaLessMode ? `http://127.0.0.1:${Config.agamaPort}/shepherd/SuperNET/activehandle` : `http://127.0.0.1:${Config.iguanaCorePort}`, + payload: _payload, + status: 'pending', })); } @@ -232,9 +232,9 @@ export function iguanaActiveHandle(getMainAddress) { console.log(error); if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'error', - 'response': error, + timestamp: _timestamp, + status: 'error', + response: error, })); } dispatch(updateErrosStack('activeHandle')); @@ -250,9 +250,9 @@ export function iguanaActiveHandle(getMainAddress) { .then(json => { if (Config.debug) { dispatch(logGuiHttp({ - 'timestamp': _timestamp, - 'status': 'success', - 'response': json, + timestamp: _timestamp, + status: 'success', + response: json, })); } if (!Config.iguanaLessMode && diff --git a/react/src/components/addcoin/addcoin.js b/react/src/components/addcoin/addcoin.js index 55295d7..00d13a3 100644 --- a/react/src/components/addcoin/addcoin.js +++ b/react/src/components/addcoin/addcoin.js @@ -192,7 +192,7 @@ class AddCoin extends React.Component { }; this.setState(Object.assign({}, this.state, { - coins: _coins + coins: _coins, })); } @@ -346,6 +346,7 @@ class AddCoin extends React.Component { 'error' ) ); + return true; } } diff --git a/react/src/components/addcoin/coin-selectors.render.js b/react/src/components/addcoin/coin-selectors.render.js index abea036..7f164f8 100644 --- a/react/src/components/addcoin/coin-selectors.render.js +++ b/react/src/components/addcoin/coin-selectors.render.js @@ -162,10 +162,10 @@ const CoinSelectorsRender = function(item, coin, i) { name="daemonParam" onChange={ (event) => this.updateDaemonParam(event, i) } autoFocus> - - - - + + + +
@@ -180,7 +180,7 @@ const CoinSelectorsRender = function(item, coin, i) { className="slider" onClick={ () => this.toggleSyncOnlyMode(i) }> -
this.toggleSyncOnlyMode(i) }> { translate('ADD_COIN.SYNC_ONLY') } diff --git a/react/src/components/addcoin/payload.js b/react/src/components/addcoin/payload.js index e167e1d..2469603 100644 --- a/react/src/components/addcoin/payload.js +++ b/react/src/components/addcoin/payload.js @@ -145,33 +145,33 @@ export function startCrypto(confpath, coin, mode) { tmpPendValue = parseInt(tmpPendValue) * 4; } - AddCoinData.BTC = {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"prefetchlag":5,"poll":1,"active":1,"agent":"iguana","method":"addcoin","newcoin":"BTC","services":128,"maxpeers":512,"portp2p":8333}; - AddCoinData.BTCD = {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"prefetchlag":-1,"poll":50,"active":1,"agent":"iguana","method":"addcoin","newcoin":"BTCD","startpend":tmpPendValue,"endpend":tmpPendValue,"services":129,"maxpeers":64,"portp2p":14631,"rpc":14632}; - AddCoinData.LTC = {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","startpend":tmpPendValue,"endpend":tmpPendValue,"services":129,"maxpeers":256,"newcoin":"LTC","name":"Litecoin","hasheaders":1,"useaddmultisig":0,"netmagic":"fbc0b6db","p2p":9333,"rpc":9332,"pubval":48,"p2shval":5,"wifval":176,"txfee_satoshis":"100000","isPoS":0,"minoutput":10000,"minconfirms":2,"genesishash":"12a765e31ffd4059bada1e25190f6e98c99d9714d334efa41a195a7e7e04bfe2","genesis":{"hashalgo":"scrypt","version":1,"timestamp":1317972665,"nBits":"1e0ffff0","nonce":2084524493,"merkle_root":"97ddfbbae6be97fd6cdf3e7ca13232a3afff2353e29badfab7f73011edd4ced9"},"alertpubkey":"040184710fa689ad5023690c80f3a49c8f13f8d45b8c857fbcbc8bc4a8e4d3eb4b10f4d4604fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9","protover":70002}; - AddCoinData.DOGE = {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"services":129,"auxpow":1,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","maxpeers":256,"newcoin":"DOGE","name":"Dogecoin","netmagic":"C0C0C0C0","p2p":22556,"rpc":22555,"pubval":30,"p2shval":5,"wifval":128,"txfee_satoshis":"100000000","minconfirms":2,"genesishash":"1a91e3dace36e2be3bf030a65679fe821aa1d6ef92e7c9902eb318182c355691","genesis":{"hashalgo": "scrypt","version":1,"timestamp":1386325540,"nBits":"1e0ffff0","nonce":99943,"merkle_root":"5b2a3f53f605d62c53e62932dac6925e3d74afa5a4b459745c36d42d0ed26a69"},"alertpubkey":"04d4da7a5dae4db797d9b0644d57a5cd50e05a70f36091cd62e2fc41c98ded06340be5a43a35e185690cd9cde5d72da8f6d065b499b06f51dcfba14aad859f443a"}; - AddCoinData.DGB = {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"services":129,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","maxpeers":256,"newcoin":"DGB","name":"Digibyte","netmagic":"FAC3B6DA","p2p":12024,"rpc":14022,"pubval":30,"p2shval":5,"wifval":128,"txfee_satoshis":"10000","minconfirms":2,"genesishash":"7497ea1b465eb39f1c8f507bc877078fe016d6fcb6dfad3a64c98dcc6e1e8496","genesis":{"version":1,"timestamp":1389388394,"nBits":"1e0ffff0","nonce":2447652,"merkle_root":"72ddd9496b004221ed0557358846d9248ecd4c440ebd28ed901efc18757d0fad"},"alertpubkey":"04F04441C4757F356290A37C313C3772C5BC5003E898EB2E0CF365795543A7BF690C8BBBFA32EE3A3325477CE2000B7D0453EFBB203329D0F9DF34D5927D022BC9"}; - AddCoinData.MZC = {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"services":129,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","maxpeers":256,"newcoin":"MZC","name":"MazaCoin","netmagic":"f8b503df","p2p":12835,"rpc":12832,"pubval":50,"p2shval":9,"wifval":224,"txfee_satoshis":"0","minconfirms":2,"genesishash":"00000c7c73d8ce604178dae13f0fc6ec0be3275614366d44b1b4b5c6e238c60c","genesis":{"version":1,"timestamp":1390747675,"nBits":"1e0ffff0","nonce":2091390249,"merkle_root":"62d496378e5834989dd9594cfc168dbb76f84a39bbda18286cddc7d1d1589f4f"},"alertpubkey":"04f09702847840aaf195de8442ebecedf5b095cdbb9bc716bda9110971b28a49e0ead8564ff0db22209e0374782c093bb899692d524e9d6a6956e7c5ecbcd68284"}; - AddCoinData.SYS = {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","startpend":tmpPendValue,"endpend":tmpPendValue,"services":129,"maxpeers":256,"newcoin":"SYS","name":"SysCoin","hasheaders":0,"useaddmultisig":0,"netmagic":"f9beb4d9","p2p":8369,"rpc":8370,"pubval":0,"p2shval":5,"wifval":128,"txfee_satoshis":"100000","isPoS":0,"minoutput":10000,"minconfirms":2,"genesishash":"0000072d66e51ab87de265765cc8bdd2d229a4307c672a1b3d5af692519cf765","genesis":{"version":1,"timestamp":1450473723,"nBits":"1e0ffff0","nonce":5258726,"merkle_root":"5215c5a2af9b63f2550b635eb2b354bb13645fd8fa31275394eb161944303065"},"protover":70012,"auxpow":1}; - AddCoinData.UNO = {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"services":129,"auxpow":1,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","maxpeers":256,"newcoin":"UNO","name":"Unobtanium","netmagic":"03d5b503","p2p":65534,"rpc":65535,"pubval":130,"p2shval":30,"wifval":224,"txfee_satoshis":"1000000","minconfirms":2,"genesishash":"000004c2fc5fffb810dccc197d603690099a68305232e552d96ccbe8e2c52b75","genesis":{"version":1,"timestamp":1375548986,"nBits":"1e0fffff","nonce":1211565,"merkle_root":"36a192e90f70131a884fe541a1e8a5643a28ba4cb24cbb2924bd0ee483f7f484"},"alertpubkey":"04fd68acb6a895f3462d91b43eef0da845f0d531958a858554feab3ac330562bf76910700b3f7c29ee273ddc4da2bb5b953858f6958a50e8831eb43ee30c32f21d"}; - AddCoinData.BTM = {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","maxpeers":256,"newcoin":"BTM","name":"Bitmark","netmagic":"f9beb4d9","p2p":9265,"rpc":9266,"pubval":85,"p2shval":5,"wifval":213,"txfee_satoshis":"0","minconfirms":2,"genesishash":"c1fb746e87e89ae75bdec2ef0639a1f6786744639ce3d0ece1dcf979b79137cb","genesis":{"hashalgo":"scrypt","version":1,"timestamp":1405274442,"nBits":"1d00ffff","nonce":14385103,"merkle_root":"d4715adf41222fae3d4bf41af30c675bc27228233d0f3cfd4ae0ae1d3e760ba8"},"alertpubkey":"04bf5a75ff0f823840ef512b08add20bb4275ff6e097f2830ad28645e28cb5ea4dc2cfd0972b94019ad46f331b45ef4ba679f2e6c87fd19c864365fadb4f8d2269"}; - AddCoinData.CARB = {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","maxpeers":256,"newcoin":"CARB","name":"Carboncoin","netmagic":"abccbbdf","p2p":9350,"rpc":9351,"pubval":47,"p2shval":5,"wifval":175,"txfee_satoshis":"0","minconfirms":2,"genesishash":"a94f1aae8c409a0bd1e53cbca92d7e506b61c51d955cf56f76da501718d48d6c","genesis":{"hashalgo":"scrypt","version":1,"timestamp":1389199888,"nBits":"1e0ffff0","nonce":605268,"merkle_root":"074bbb9d355731bfa8f67130e2179db7518d1387ad52e55309d4debe7d4e6383"},"alertpubkey":"046d6918a7c0c053aa942dbb8861499be4bd915c8bfb6a2b77b3787e207097cc2734b9321226ff107c1a95dae98570a66baec66e350d78ceba091b54411654d33f"}; - AddCoinData.ANC = {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","maxpeers":256,"newcoin":"ANC","name":"AnonCoin","netmagic":"facabada","p2p":9377,"rpc":28332,"pubval":23,"p2shval":5,"wifval":151,"txfee_satoshis":"2000000","minconfirms":2,"genesishash":"00000be19c5a519257aa921349037d55548af7cabf112741eb905a26bb73e468","genesis":{"version":1,"timestamp":1370190760,"nBits":"1e0ffff0","nonce":347089008,"merkle_root":"7ce7004d764515f9b43cb9f07547c8e2e00d94c9348b3da33c8681d350f2c736"},"alertpubkey":"04c6db35c11724e526f6725cc5bd5293b4bc9382397856e1bcef7111fb44ce357fd12442b34c496d937a348c1dca1e36ae0c0e128905eb3d301433887e8f0b4536"}; - AddCoinData.FRK = {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","maxpeers":256,"newcoin":"FRK","name":"Franko","netmagic":"7defaced","p2p":7912,"rpc":7913,"pubval":35,"p2shval":5,"wifval":163,"txfee_satoshis":"0","minconfirms":2,"genesishash":"19225ae90d538561217b5949e98ca4964ac91af39090d1a4407c892293e4f44f","genesis":{"hashalgo":"scrypt","version":1,"timestamp":1368144664,"nBits":"1e0ffff0","nonce":731837,"merkle_root":"b78f79f1d10029cc45ed3d5a1db7bd423d4ee170c03baf110a62565d16a21dca"},"alertpubkey":"04d4da7a5dae4db797d9b0644d57a5cd50e05a70f36091cd62e2fc41c98ded06340be5a43a35e185690cd9cde5d72da8f6d065b499b06f51dcfba14aad859f443a"}; - AddCoinData.GAME = {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"services":129,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","maxpeers":256,"newcoin":"GAME","name":"GameCredits","netmagic":"fbc0b6db","p2p":40002,"rpc":40001,"pubval":38,"p2shval":5,"wifval":166,"txfee_satoshis":"100000","minconfirms":2,"genesishash":"91ec5f25ee9a0ffa1af7d4da4db9a552228dd2dc77cdb15b738be4e1f55f30ee","genesis":{"hashalgo":"scrypt","version":1,"timestamp":1392757140,"nBits":"1e0ffff0","nonce":2084565393,"merkle_root":"d849db99a14164f4b4c8ad6d2d8d7e2b1ba7f89963e9f4bf9fad5ff1a4754429"},"alertpubkey":"04fc9702847840aaf195de8442ebecedf5b095cdbb9bc716bda9110971b28a49e0ead8564ff0db22209e0374782c093bb899692d524e9d6a6956e7c5ecbcd68284","auxpow":1,"protover":80006,"isPoS":0}; - AddCoinData.ZET = {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"services":129,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","maxpeers":256,"newcoin":"ZET","name":"Zetacoin","netmagic":"fab503df","p2p":17333,"rpc":17335,"pubval":80,"p2shval":9,"wifval":224,"txfee_satoshis":"10000","minconfirms":2,"genesishash":"000006cab7aa2be2da91015902aa4458dd5fbb8778d175c36d429dc986f2bff4","genesis":{"version":1,"timestamp":1375548986,"nBits":"1e0fffff","nonce":2089928209,"merkle_root":"d0227b8c3e3d07bce9656b3d9e474f050d23458aaead93357dcfdac9ab9b79f9"},"alertpubkey":"045337216002ca6a71d63edf062895417610a723d453e722bf4728996c58661cdac3d4dec5cecd449b9086e9602b35cc726a9e0163e1a4d40f521fbdaebb674658"}; + AddCoinData.BTC = {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'prefetchlag':5,'poll':1,'active':1,'agent':'iguana','method':'addcoin','newcoin':'BTC','services':128,'maxpeers':512,'portp2p':8333}; + AddCoinData.BTCD = {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'prefetchlag':-1,'poll':50,'active':1,'agent':'iguana','method':'addcoin','newcoin':'BTCD','startpend':tmpPendValue,'endpend':tmpPendValue,'services':129,'maxpeers':64,'portp2p':14631,'rpc':14632}; + AddCoinData.LTC = {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'prefetchlag':-1,'poll':10,'active':1,'agent':'iguana','method':'addcoin','startpend':tmpPendValue,'endpend':tmpPendValue,'services':129,'maxpeers':256,'newcoin':'LTC','name':'Litecoin','hasheaders':1,'useaddmultisig':0,'netmagic':'fbc0b6db','p2p':9333,'rpc':9332,'pubval':48,'p2shval':5,'wifval':176,'txfee_satoshis':'100000','isPoS':0,'minoutput':10000,'minconfirms':2,'genesishash':'12a765e31ffd4059bada1e25190f6e98c99d9714d334efa41a195a7e7e04bfe2','genesis':{'hashalgo':'scrypt','version':1,'timestamp':1317972665,'nBits':'1e0ffff0','nonce':2084524493,'merkle_root':'97ddfbbae6be97fd6cdf3e7ca13232a3afff2353e29badfab7f73011edd4ced9'},'alertpubkey':'040184710fa689ad5023690c80f3a49c8f13f8d45b8c857fbcbc8bc4a8e4d3eb4b10f4d4604fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9','protover':70002}; + AddCoinData.DOGE = {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'services':129,'auxpow':1,'prefetchlag':-1,'poll':10,'active':1,'agent':'iguana','method':'addcoin','maxpeers':256,'newcoin':'DOGE','name':'Dogecoin','netmagic':'C0C0C0C0','p2p':22556,'rpc':22555,'pubval':30,'p2shval':5,'wifval':128,'txfee_satoshis':'100000000','minconfirms':2,'genesishash':'1a91e3dace36e2be3bf030a65679fe821aa1d6ef92e7c9902eb318182c355691','genesis':{'hashalgo': 'scrypt','version':1,'timestamp':1386325540,'nBits':'1e0ffff0','nonce':99943,'merkle_root':'5b2a3f53f605d62c53e62932dac6925e3d74afa5a4b459745c36d42d0ed26a69'},'alertpubkey':'04d4da7a5dae4db797d9b0644d57a5cd50e05a70f36091cd62e2fc41c98ded06340be5a43a35e185690cd9cde5d72da8f6d065b499b06f51dcfba14aad859f443a'}; + AddCoinData.DGB = {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'services':129,'prefetchlag':-1,'poll':10,'active':1,'agent':'iguana','method':'addcoin','maxpeers':256,'newcoin':'DGB','name':'Digibyte','netmagic':'FAC3B6DA','p2p':12024,'rpc':14022,'pubval':30,'p2shval':5,'wifval':128,'txfee_satoshis':'10000','minconfirms':2,'genesishash':'7497ea1b465eb39f1c8f507bc877078fe016d6fcb6dfad3a64c98dcc6e1e8496','genesis':{'version':1,'timestamp':1389388394,'nBits':'1e0ffff0','nonce':2447652,'merkle_root':'72ddd9496b004221ed0557358846d9248ecd4c440ebd28ed901efc18757d0fad'},'alertpubkey':'04F04441C4757F356290A37C313C3772C5BC5003E898EB2E0CF365795543A7BF690C8BBBFA32EE3A3325477CE2000B7D0453EFBB203329D0F9DF34D5927D022BC9'}; + AddCoinData.MZC = {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'services':129,'prefetchlag':-1,'poll':10,'active':1,'agent':'iguana','method':'addcoin','maxpeers':256,'newcoin':'MZC','name':'MazaCoin','netmagic':'f8b503df','p2p':12835,'rpc':12832,'pubval':50,'p2shval':9,'wifval':224,'txfee_satoshis':'0','minconfirms':2,'genesishash':'00000c7c73d8ce604178dae13f0fc6ec0be3275614366d44b1b4b5c6e238c60c','genesis':{'version':1,'timestamp':1390747675,'nBits':'1e0ffff0','nonce':2091390249,'merkle_root':'62d496378e5834989dd9594cfc168dbb76f84a39bbda18286cddc7d1d1589f4f'},'alertpubkey':'04f09702847840aaf195de8442ebecedf5b095cdbb9bc716bda9110971b28a49e0ead8564ff0db22209e0374782c093bb899692d524e9d6a6956e7c5ecbcd68284'}; + AddCoinData.SYS = {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'prefetchlag':-1,'poll':10,'active':1,'agent':'iguana','method':'addcoin','startpend':tmpPendValue,'endpend':tmpPendValue,'services':129,'maxpeers':256,'newcoin':'SYS','name':'SysCoin','hasheaders':0,'useaddmultisig':0,'netmagic':'f9beb4d9','p2p':8369,'rpc':8370,'pubval':0,'p2shval':5,'wifval':128,'txfee_satoshis':'100000','isPoS':0,'minoutput':10000,'minconfirms':2,'genesishash':'0000072d66e51ab87de265765cc8bdd2d229a4307c672a1b3d5af692519cf765','genesis':{'version':1,'timestamp':1450473723,'nBits':'1e0ffff0','nonce':5258726,'merkle_root':'5215c5a2af9b63f2550b635eb2b354bb13645fd8fa31275394eb161944303065'},'protover':70012,'auxpow':1}; + AddCoinData.UNO = {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'services':129,'auxpow':1,'prefetchlag':-1,'poll':10,'active':1,'agent':'iguana','method':'addcoin','maxpeers':256,'newcoin':'UNO','name':'Unobtanium','netmagic':'03d5b503','p2p':65534,'rpc':65535,'pubval':130,'p2shval':30,'wifval':224,'txfee_satoshis':'1000000','minconfirms':2,'genesishash':'000004c2fc5fffb810dccc197d603690099a68305232e552d96ccbe8e2c52b75','genesis':{'version':1,'timestamp':1375548986,'nBits':'1e0fffff','nonce':1211565,'merkle_root':'36a192e90f70131a884fe541a1e8a5643a28ba4cb24cbb2924bd0ee483f7f484'},'alertpubkey':'04fd68acb6a895f3462d91b43eef0da845f0d531958a858554feab3ac330562bf76910700b3f7c29ee273ddc4da2bb5b953858f6958a50e8831eb43ee30c32f21d'}; + AddCoinData.BTM = {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'prefetchlag':-1,'poll':10,'active':1,'agent':'iguana','method':'addcoin','maxpeers':256,'newcoin':'BTM','name':'Bitmark','netmagic':'f9beb4d9','p2p':9265,'rpc':9266,'pubval':85,'p2shval':5,'wifval':213,'txfee_satoshis':'0','minconfirms':2,'genesishash':'c1fb746e87e89ae75bdec2ef0639a1f6786744639ce3d0ece1dcf979b79137cb','genesis':{'hashalgo':'scrypt','version':1,'timestamp':1405274442,'nBits':'1d00ffff','nonce':14385103,'merkle_root':'d4715adf41222fae3d4bf41af30c675bc27228233d0f3cfd4ae0ae1d3e760ba8'},'alertpubkey':'04bf5a75ff0f823840ef512b08add20bb4275ff6e097f2830ad28645e28cb5ea4dc2cfd0972b94019ad46f331b45ef4ba679f2e6c87fd19c864365fadb4f8d2269'}; + AddCoinData.CARB = {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'prefetchlag':-1,'poll':10,'active':1,'agent':'iguana','method':'addcoin','maxpeers':256,'newcoin':'CARB','name':'Carboncoin','netmagic':'abccbbdf','p2p':9350,'rpc':9351,'pubval':47,'p2shval':5,'wifval':175,'txfee_satoshis':'0','minconfirms':2,'genesishash':'a94f1aae8c409a0bd1e53cbca92d7e506b61c51d955cf56f76da501718d48d6c','genesis':{'hashalgo':'scrypt','version':1,'timestamp':1389199888,'nBits':'1e0ffff0','nonce':605268,'merkle_root':'074bbb9d355731bfa8f67130e2179db7518d1387ad52e55309d4debe7d4e6383'},'alertpubkey':'046d6918a7c0c053aa942dbb8861499be4bd915c8bfb6a2b77b3787e207097cc2734b9321226ff107c1a95dae98570a66baec66e350d78ceba091b54411654d33f'}; + AddCoinData.ANC = {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'prefetchlag':-1,'poll':10,'active':1,'agent':'iguana','method':'addcoin','maxpeers':256,'newcoin':'ANC','name':'AnonCoin','netmagic':'facabada','p2p':9377,'rpc':28332,'pubval':23,'p2shval':5,'wifval':151,'txfee_satoshis':'2000000','minconfirms':2,'genesishash':'00000be19c5a519257aa921349037d55548af7cabf112741eb905a26bb73e468','genesis':{'version':1,'timestamp':1370190760,'nBits':'1e0ffff0','nonce':347089008,'merkle_root':'7ce7004d764515f9b43cb9f07547c8e2e00d94c9348b3da33c8681d350f2c736'},'alertpubkey':'04c6db35c11724e526f6725cc5bd5293b4bc9382397856e1bcef7111fb44ce357fd12442b34c496d937a348c1dca1e36ae0c0e128905eb3d301433887e8f0b4536'}; + AddCoinData.FRK = {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'prefetchlag':-1,'poll':10,'active':1,'agent':'iguana','method':'addcoin','maxpeers':256,'newcoin':'FRK','name':'Franko','netmagic':'7defaced','p2p':7912,'rpc':7913,'pubval':35,'p2shval':5,'wifval':163,'txfee_satoshis':'0','minconfirms':2,'genesishash':'19225ae90d538561217b5949e98ca4964ac91af39090d1a4407c892293e4f44f','genesis':{'hashalgo':'scrypt','version':1,'timestamp':1368144664,'nBits':'1e0ffff0','nonce':731837,'merkle_root':'b78f79f1d10029cc45ed3d5a1db7bd423d4ee170c03baf110a62565d16a21dca'},'alertpubkey':'04d4da7a5dae4db797d9b0644d57a5cd50e05a70f36091cd62e2fc41c98ded06340be5a43a35e185690cd9cde5d72da8f6d065b499b06f51dcfba14aad859f443a'}; + AddCoinData.GAME = {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'services':129,'prefetchlag':-1,'poll':10,'active':1,'agent':'iguana','method':'addcoin','maxpeers':256,'newcoin':'GAME','name':'GameCredits','netmagic':'fbc0b6db','p2p':40002,'rpc':40001,'pubval':38,'p2shval':5,'wifval':166,'txfee_satoshis':'100000','minconfirms':2,'genesishash':'91ec5f25ee9a0ffa1af7d4da4db9a552228dd2dc77cdb15b738be4e1f55f30ee','genesis':{'hashalgo':'scrypt','version':1,'timestamp':1392757140,'nBits':'1e0ffff0','nonce':2084565393,'merkle_root':'d849db99a14164f4b4c8ad6d2d8d7e2b1ba7f89963e9f4bf9fad5ff1a4754429'},'alertpubkey':'04fc9702847840aaf195de8442ebecedf5b095cdbb9bc716bda9110971b28a49e0ead8564ff0db22209e0374782c093bb899692d524e9d6a6956e7c5ecbcd68284','auxpow':1,'protover':80006,'isPoS':0}; + AddCoinData.ZET = {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'services':129,'prefetchlag':-1,'poll':10,'active':1,'agent':'iguana','method':'addcoin','maxpeers':256,'newcoin':'ZET','name':'Zetacoin','netmagic':'fab503df','p2p':17333,'rpc':17335,'pubval':80,'p2shval':9,'wifval':224,'txfee_satoshis':'10000','minconfirms':2,'genesishash':'000006cab7aa2be2da91015902aa4458dd5fbb8778d175c36d429dc986f2bff4','genesis':{'version':1,'timestamp':1375548986,'nBits':'1e0fffff','nonce':2089928209,'merkle_root':'d0227b8c3e3d07bce9656b3d9e474f050d23458aaead93357dcfdac9ab9b79f9'},'alertpubkey':'045337216002ca6a71d63edf062895417610a723d453e722bf4728996c58661cdac3d4dec5cecd449b9086e9602b35cc726a9e0163e1a4d40f521fbdaebb674658'}; if (coin === 'KMD') { if (mode === '-1') { - AddCoinData.KMD = {"coin":"KMD","conf":"komodo.conf","path":confpath,"unitval":"20","zcash":1,"RELAY":-1,"VALIDATE":0,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","startpend":8,"endpend":8,"services":0,"maxpeers":32,"newcoin":"KMD","name":"Komodo","hasheaders":1,"useaddmultisig":0,"netmagic":"f9eee48d","p2p":7770,"rpc":7771,"pubval":60,"p2shval":85,"wifval":188,"txfee_satoshis":"10000","isPoS":0,"minoutput":10000,"minconfirms":2,"genesishash":"027e3758c3a65b12aa1046462b486d0a63bfa1beae327897f56c5cfb7daaae71","protover":170002,"genesisblock":"0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2","debug":0} + AddCoinData.KMD = {'coin':'KMD','conf':'komodo.conf','path':confpath,'unitval':'20','zcash':1,'RELAY':-1,'VALIDATE':0,'prefetchlag':-1,'poll':10,'active':1,'agent':'iguana','method':'addcoin','startpend':8,'endpend':8,'services':0,'maxpeers':32,'newcoin':'KMD','name':'Komodo','hasheaders':1,'useaddmultisig':0,'netmagic':'f9eee48d','p2p':7770,'rpc':7771,'pubval':60,'p2shval':85,'wifval':188,'txfee_satoshis':'10000','isPoS':0,'minoutput':10000,'minconfirms':2,'genesishash':'027e3758c3a65b12aa1046462b486d0a63bfa1beae327897f56c5cfb7daaae71','protover':170002,'genesisblock':'0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2','debug':0} } else { - AddCoinData.KMD = {'userpass':tmpIguanaRPCAuth,"unitval":"20","zcash":1,"RELAY":mode,"VALIDATE":mode,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","startpend":tmpPendValue,"endpend":tmpPendValue,"services":129,"maxpeers":32,"newcoin":"KMD","name":"Komodo","hasheaders":1,"useaddmultisig":0,"netmagic":"f9eee48d","p2p":7770,"rpc":7771,"pubval":60,"p2shval":85,"wifval":188,"txfee_satoshis":"10000","isPoS":0,"minoutput":10000,"minconfirms":2,"genesishash":"027e3758c3a65b12aa1046462b486d0a63bfa1beae327897f56c5cfb7daaae71","protover":170002,"genesisblock":"0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2","debug":0} + AddCoinData.KMD = {'userpass':tmpIguanaRPCAuth,'unitval':'20','zcash':1,'RELAY':mode,'VALIDATE':mode,'prefetchlag':-1,'poll':10,'active':1,'agent':'iguana','method':'addcoin','startpend':tmpPendValue,'endpend':tmpPendValue,'services':129,'maxpeers':32,'newcoin':'KMD','name':'Komodo','hasheaders':1,'useaddmultisig':0,'netmagic':'f9eee48d','p2p':7770,'rpc':7771,'pubval':60,'p2shval':85,'wifval':188,'txfee_satoshis':'10000','isPoS':0,'minoutput':10000,'minconfirms':2,'genesishash':'027e3758c3a65b12aa1046462b486d0a63bfa1beae327897f56c5cfb7daaae71','protover':170002,'genesisblock':'0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2','debug':0} } } if (coin === 'ZEC') { if ( mode === '-1' ) { - AddCoinData.ZEC = {"coin":"ZEC","conf":"zcash.conf","path":confpath,"unitval":"20","zcash":1,"RELAY":-1,"VALIDATE":0,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","startpend":8,"endpend":8,"services":129,"maxpeers":32,"newcoin":"ZEC","name":"Zcash","hasheaders":0,"useaddmultisig":0,"netmagic":"24e92764","p2p":8233,"rpc":8232,"pubval":184,"p2shval":189,"wifval":128,"txfee_satoshis":"10000","isPoS":0,"minoutput":10000,"minconfirms":2,"genesishash":"00040fe8ec8471911baa1db1266ea15dd06b4a8a5c453883c000b031973dce08","protover":170002,"genesisblock":"040000000000000000000000000000000000000000000000000000000000000000000000db4d7a85b768123f1dff1d4c4cece70083b2d27e117b4ac2e31d087988a5eac4000000000000000000000000000000000000000000000000000000000000000090041358ffff071f5712000000000000000000000000000000000000000000000000000000000000fd4005000a889f00854b8665cd555f4656f68179d31ccadc1b1f7fb0952726313b16941da348284d67add4686121d4e3d930160c1348d8191c25f12b267a6a9c131b5031cbf8af1f79c9d513076a216ec87ed045fa966e01214ed83ca02dc1797270a454720d3206ac7d931a0a680c5c5e099057592570ca9bdf6058343958b31901fce1a15a4f38fd347750912e14004c73dfe588b903b6c03166582eeaf30529b14072a7b3079e3a684601b9b3024054201f7440b0ee9eb1a7120ff43f713735494aa27b1f8bab60d7f398bca14f6abb2adbf29b04099121438a7974b078a11635b594e9170f1086140b4173822dd697894483e1c6b4e8b8dcd5cb12ca4903bc61e108871d4d915a9093c18ac9b02b6716ce1013ca2c1174e319c1a570215bc9ab5f7564765f7be20524dc3fdf8aa356fd94d445e05ab165ad8bb4a0db096c097618c81098f91443c719416d39837af6de85015dca0de89462b1d8386758b2cf8a99e00953b308032ae44c35e05eb71842922eb69797f68813b59caf266cb6c213569ae3280505421a7e3a0a37fdf8e2ea354fc5422816655394a9454bac542a9298f176e211020d63dee6852c40de02267e2fc9d5e1ff2ad9309506f02a1a71a0501b16d0d36f70cdfd8de78116c0c506ee0b8ddfdeb561acadf31746b5a9dd32c21930884397fb1682164cb565cc14e089d66635a32618f7eb05fe05082b8a3fae620571660a6b89886eac53dec109d7cbb6930ca698a168f301a950be152da1be2b9e07516995e20baceebecb5579d7cdbc16d09f3a50cb3c7dffe33f26686d4ff3f8946ee6475e98cf7b3cf9062b6966e838f865ff3de5fb064a37a21da7bb8dfd2501a29e184f207caaba364f36f2329a77515dcb710e29ffbf73e2bbd773fab1f9a6b005567affff605c132e4e4dd69f36bd201005458cfbd2c658701eb2a700251cefd886b1e674ae816d3f719bac64be649c172ba27a4fd55947d95d53ba4cbc73de97b8af5ed4840b659370c556e7376457f51e5ebb66018849923db82c1c9a819f173cccdb8f3324b239609a300018d0fb094adf5bd7cbb3834c69e6d0b3798065c525b20f040e965e1a161af78ff7561cd874f5f1b75aa0bc77f720589e1b810f831eac5073e6dd46d00a2793f70f7427f0f798f2f53a67e615e65d356e66fe40609a958a05edb4c175bcc383ea0530e67ddbe479a898943c6e3074c6fcc252d6014de3a3d292b03f0d88d312fe221be7be7e3c59d07fa0f2f4029e364f1f355c5d01fa53770d0cd76d82bf7e60f6903bc1beb772e6fde4a70be51d9c7e03c8d6d8dfb361a234ba47c470fe630820bbd920715621b9fbedb49fcee165ead0875e6c2b1af16f50b5d6140cc981122fcbcf7c5a4e3772b3661b628e08380abc545957e59f634705b1bbde2f0b4e055a5ec5676d859be77e20962b645e051a880fddb0180b4555789e1f9344a436a84dc5579e2553f1e5fb0a599c137be36cabbed0319831fea3fddf94ddc7971e4bcf02cdc93294a9aab3e3b13e3b058235b4f4ec06ba4ceaa49d675b4ba80716f3bc6976b1fbf9c8bf1f3e3a4dc1cd83ef9cf816667fb94f1e923ff63fef072e6a19321e4812f96cb0ffa864da50ad74deb76917a336f31dce03ed5f0303aad5e6a83634f9fcc371096f8288b8f02ddded5ff1bb9d49331e4a84dbe1543164438fde9ad71dab024779dcdde0b6602b5ae0a6265c14b94edd83b37403f4b78fcd2ed555b596402c28ee81d87a909c4e8722b30c71ecdd861b05f61f8b1231795c76adba2fdefa451b283a5d527955b9f3de1b9828e7b2e74123dd47062ddcc09b05e7fa13cb2212a6fdbc65d7e852cec463ec6fd929f5b8483cf3052113b13dac91b69f49d1b7d1aec01c4a68e41ce157","debug":0} + AddCoinData.ZEC = {'coin':'ZEC','conf':'zcash.conf','path':confpath,'unitval':'20','zcash':1,'RELAY':-1,'VALIDATE':0,'prefetchlag':-1,'poll':10,'active':1,'agent':'iguana','method':'addcoin','startpend':8,'endpend':8,'services':129,'maxpeers':32,'newcoin':'ZEC','name':'Zcash','hasheaders':0,'useaddmultisig':0,'netmagic':'24e92764','p2p':8233,'rpc':8232,'pubval':184,'p2shval':189,'wifval':128,'txfee_satoshis':'10000','isPoS':0,'minoutput':10000,'minconfirms':2,'genesishash':'00040fe8ec8471911baa1db1266ea15dd06b4a8a5c453883c000b031973dce08','protover':170002,'genesisblock':'040000000000000000000000000000000000000000000000000000000000000000000000db4d7a85b768123f1dff1d4c4cece70083b2d27e117b4ac2e31d087988a5eac4000000000000000000000000000000000000000000000000000000000000000090041358ffff071f5712000000000000000000000000000000000000000000000000000000000000fd4005000a889f00854b8665cd555f4656f68179d31ccadc1b1f7fb0952726313b16941da348284d67add4686121d4e3d930160c1348d8191c25f12b267a6a9c131b5031cbf8af1f79c9d513076a216ec87ed045fa966e01214ed83ca02dc1797270a454720d3206ac7d931a0a680c5c5e099057592570ca9bdf6058343958b31901fce1a15a4f38fd347750912e14004c73dfe588b903b6c03166582eeaf30529b14072a7b3079e3a684601b9b3024054201f7440b0ee9eb1a7120ff43f713735494aa27b1f8bab60d7f398bca14f6abb2adbf29b04099121438a7974b078a11635b594e9170f1086140b4173822dd697894483e1c6b4e8b8dcd5cb12ca4903bc61e108871d4d915a9093c18ac9b02b6716ce1013ca2c1174e319c1a570215bc9ab5f7564765f7be20524dc3fdf8aa356fd94d445e05ab165ad8bb4a0db096c097618c81098f91443c719416d39837af6de85015dca0de89462b1d8386758b2cf8a99e00953b308032ae44c35e05eb71842922eb69797f68813b59caf266cb6c213569ae3280505421a7e3a0a37fdf8e2ea354fc5422816655394a9454bac542a9298f176e211020d63dee6852c40de02267e2fc9d5e1ff2ad9309506f02a1a71a0501b16d0d36f70cdfd8de78116c0c506ee0b8ddfdeb561acadf31746b5a9dd32c21930884397fb1682164cb565cc14e089d66635a32618f7eb05fe05082b8a3fae620571660a6b89886eac53dec109d7cbb6930ca698a168f301a950be152da1be2b9e07516995e20baceebecb5579d7cdbc16d09f3a50cb3c7dffe33f26686d4ff3f8946ee6475e98cf7b3cf9062b6966e838f865ff3de5fb064a37a21da7bb8dfd2501a29e184f207caaba364f36f2329a77515dcb710e29ffbf73e2bbd773fab1f9a6b005567affff605c132e4e4dd69f36bd201005458cfbd2c658701eb2a700251cefd886b1e674ae816d3f719bac64be649c172ba27a4fd55947d95d53ba4cbc73de97b8af5ed4840b659370c556e7376457f51e5ebb66018849923db82c1c9a819f173cccdb8f3324b239609a300018d0fb094adf5bd7cbb3834c69e6d0b3798065c525b20f040e965e1a161af78ff7561cd874f5f1b75aa0bc77f720589e1b810f831eac5073e6dd46d00a2793f70f7427f0f798f2f53a67e615e65d356e66fe40609a958a05edb4c175bcc383ea0530e67ddbe479a898943c6e3074c6fcc252d6014de3a3d292b03f0d88d312fe221be7be7e3c59d07fa0f2f4029e364f1f355c5d01fa53770d0cd76d82bf7e60f6903bc1beb772e6fde4a70be51d9c7e03c8d6d8dfb361a234ba47c470fe630820bbd920715621b9fbedb49fcee165ead0875e6c2b1af16f50b5d6140cc981122fcbcf7c5a4e3772b3661b628e08380abc545957e59f634705b1bbde2f0b4e055a5ec5676d859be77e20962b645e051a880fddb0180b4555789e1f9344a436a84dc5579e2553f1e5fb0a599c137be36cabbed0319831fea3fddf94ddc7971e4bcf02cdc93294a9aab3e3b13e3b058235b4f4ec06ba4ceaa49d675b4ba80716f3bc6976b1fbf9c8bf1f3e3a4dc1cd83ef9cf816667fb94f1e923ff63fef072e6a19321e4812f96cb0ffa864da50ad74deb76917a336f31dce03ed5f0303aad5e6a83634f9fcc371096f8288b8f02ddded5ff1bb9d49331e4a84dbe1543164438fde9ad71dab024779dcdde0b6602b5ae0a6265c14b94edd83b37403f4b78fcd2ed555b596402c28ee81d87a909c4e8722b30c71ecdd861b05f61f8b1231795c76adba2fdefa451b283a5d527955b9f3de1b9828e7b2e74123dd47062ddcc09b05e7fa13cb2212a6fdbc65d7e852cec463ec6fd929f5b8483cf3052113b13dac91b69f49d1b7d1aec01c4a68e41ce157','debug':0} } else { - AddCoinData.ZEC = {'userpass':tmpIguanaRPCAuth,"unitval":"20","zcash":1,"RELAY":mode,"VALIDATE":mode,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","startpend":tmpPendValue,"endpend":tmpPendValue,"services":129,"maxpeers":32,"newcoin":"ZEC","name":"Zcash","hasheaders":0,"useaddmultisig":0,"netmagic":"24e92764","p2p":8233,"rpc":8232,"pubval":184,"p2shval":189,"wifval":128,"txfee_satoshis":"10000","isPoS":0,"minoutput":10000,"minconfirms":2,"genesishash":"00040fe8ec8471911baa1db1266ea15dd06b4a8a5c453883c000b031973dce08","protover":170002,"genesisblock":"040000000000000000000000000000000000000000000000000000000000000000000000db4d7a85b768123f1dff1d4c4cece70083b2d27e117b4ac2e31d087988a5eac4000000000000000000000000000000000000000000000000000000000000000090041358ffff071f5712000000000000000000000000000000000000000000000000000000000000fd4005000a889f00854b8665cd555f4656f68179d31ccadc1b1f7fb0952726313b16941da348284d67add4686121d4e3d930160c1348d8191c25f12b267a6a9c131b5031cbf8af1f79c9d513076a216ec87ed045fa966e01214ed83ca02dc1797270a454720d3206ac7d931a0a680c5c5e099057592570ca9bdf6058343958b31901fce1a15a4f38fd347750912e14004c73dfe588b903b6c03166582eeaf30529b14072a7b3079e3a684601b9b3024054201f7440b0ee9eb1a7120ff43f713735494aa27b1f8bab60d7f398bca14f6abb2adbf29b04099121438a7974b078a11635b594e9170f1086140b4173822dd697894483e1c6b4e8b8dcd5cb12ca4903bc61e108871d4d915a9093c18ac9b02b6716ce1013ca2c1174e319c1a570215bc9ab5f7564765f7be20524dc3fdf8aa356fd94d445e05ab165ad8bb4a0db096c097618c81098f91443c719416d39837af6de85015dca0de89462b1d8386758b2cf8a99e00953b308032ae44c35e05eb71842922eb69797f68813b59caf266cb6c213569ae3280505421a7e3a0a37fdf8e2ea354fc5422816655394a9454bac542a9298f176e211020d63dee6852c40de02267e2fc9d5e1ff2ad9309506f02a1a71a0501b16d0d36f70cdfd8de78116c0c506ee0b8ddfdeb561acadf31746b5a9dd32c21930884397fb1682164cb565cc14e089d66635a32618f7eb05fe05082b8a3fae620571660a6b89886eac53dec109d7cbb6930ca698a168f301a950be152da1be2b9e07516995e20baceebecb5579d7cdbc16d09f3a50cb3c7dffe33f26686d4ff3f8946ee6475e98cf7b3cf9062b6966e838f865ff3de5fb064a37a21da7bb8dfd2501a29e184f207caaba364f36f2329a77515dcb710e29ffbf73e2bbd773fab1f9a6b005567affff605c132e4e4dd69f36bd201005458cfbd2c658701eb2a700251cefd886b1e674ae816d3f719bac64be649c172ba27a4fd55947d95d53ba4cbc73de97b8af5ed4840b659370c556e7376457f51e5ebb66018849923db82c1c9a819f173cccdb8f3324b239609a300018d0fb094adf5bd7cbb3834c69e6d0b3798065c525b20f040e965e1a161af78ff7561cd874f5f1b75aa0bc77f720589e1b810f831eac5073e6dd46d00a2793f70f7427f0f798f2f53a67e615e65d356e66fe40609a958a05edb4c175bcc383ea0530e67ddbe479a898943c6e3074c6fcc252d6014de3a3d292b03f0d88d312fe221be7be7e3c59d07fa0f2f4029e364f1f355c5d01fa53770d0cd76d82bf7e60f6903bc1beb772e6fde4a70be51d9c7e03c8d6d8dfb361a234ba47c470fe630820bbd920715621b9fbedb49fcee165ead0875e6c2b1af16f50b5d6140cc981122fcbcf7c5a4e3772b3661b628e08380abc545957e59f634705b1bbde2f0b4e055a5ec5676d859be77e20962b645e051a880fddb0180b4555789e1f9344a436a84dc5579e2553f1e5fb0a599c137be36cabbed0319831fea3fddf94ddc7971e4bcf02cdc93294a9aab3e3b13e3b058235b4f4ec06ba4ceaa49d675b4ba80716f3bc6976b1fbf9c8bf1f3e3a4dc1cd83ef9cf816667fb94f1e923ff63fef072e6a19321e4812f96cb0ffa864da50ad74deb76917a336f31dce03ed5f0303aad5e6a83634f9fcc371096f8288b8f02ddded5ff1bb9d49331e4a84dbe1543164438fde9ad71dab024779dcdde0b6602b5ae0a6265c14b94edd83b37403f4b78fcd2ed555b596402c28ee81d87a909c4e8722b30c71ecdd861b05f61f8b1231795c76adba2fdefa451b283a5d527955b9f3de1b9828e7b2e74123dd47062ddcc09b05e7fa13cb2212a6fdbc65d7e852cec463ec6fd929f5b8483cf3052113b13dac91b69f49d1b7d1aec01c4a68e41ce157","debug":0} + AddCoinData.ZEC = {'userpass':tmpIguanaRPCAuth,'unitval':'20','zcash':1,'RELAY':mode,'VALIDATE':mode,'prefetchlag':-1,'poll':10,'active':1,'agent':'iguana','method':'addcoin','startpend':tmpPendValue,'endpend':tmpPendValue,'services':129,'maxpeers':32,'newcoin':'ZEC','name':'Zcash','hasheaders':0,'useaddmultisig':0,'netmagic':'24e92764','p2p':8233,'rpc':8232,'pubval':184,'p2shval':189,'wifval':128,'txfee_satoshis':'10000','isPoS':0,'minoutput':10000,'minconfirms':2,'genesishash':'00040fe8ec8471911baa1db1266ea15dd06b4a8a5c453883c000b031973dce08','protover':170002,'genesisblock':'040000000000000000000000000000000000000000000000000000000000000000000000db4d7a85b768123f1dff1d4c4cece70083b2d27e117b4ac2e31d087988a5eac4000000000000000000000000000000000000000000000000000000000000000090041358ffff071f5712000000000000000000000000000000000000000000000000000000000000fd4005000a889f00854b8665cd555f4656f68179d31ccadc1b1f7fb0952726313b16941da348284d67add4686121d4e3d930160c1348d8191c25f12b267a6a9c131b5031cbf8af1f79c9d513076a216ec87ed045fa966e01214ed83ca02dc1797270a454720d3206ac7d931a0a680c5c5e099057592570ca9bdf6058343958b31901fce1a15a4f38fd347750912e14004c73dfe588b903b6c03166582eeaf30529b14072a7b3079e3a684601b9b3024054201f7440b0ee9eb1a7120ff43f713735494aa27b1f8bab60d7f398bca14f6abb2adbf29b04099121438a7974b078a11635b594e9170f1086140b4173822dd697894483e1c6b4e8b8dcd5cb12ca4903bc61e108871d4d915a9093c18ac9b02b6716ce1013ca2c1174e319c1a570215bc9ab5f7564765f7be20524dc3fdf8aa356fd94d445e05ab165ad8bb4a0db096c097618c81098f91443c719416d39837af6de85015dca0de89462b1d8386758b2cf8a99e00953b308032ae44c35e05eb71842922eb69797f68813b59caf266cb6c213569ae3280505421a7e3a0a37fdf8e2ea354fc5422816655394a9454bac542a9298f176e211020d63dee6852c40de02267e2fc9d5e1ff2ad9309506f02a1a71a0501b16d0d36f70cdfd8de78116c0c506ee0b8ddfdeb561acadf31746b5a9dd32c21930884397fb1682164cb565cc14e089d66635a32618f7eb05fe05082b8a3fae620571660a6b89886eac53dec109d7cbb6930ca698a168f301a950be152da1be2b9e07516995e20baceebecb5579d7cdbc16d09f3a50cb3c7dffe33f26686d4ff3f8946ee6475e98cf7b3cf9062b6966e838f865ff3de5fb064a37a21da7bb8dfd2501a29e184f207caaba364f36f2329a77515dcb710e29ffbf73e2bbd773fab1f9a6b005567affff605c132e4e4dd69f36bd201005458cfbd2c658701eb2a700251cefd886b1e674ae816d3f719bac64be649c172ba27a4fd55947d95d53ba4cbc73de97b8af5ed4840b659370c556e7376457f51e5ebb66018849923db82c1c9a819f173cccdb8f3324b239609a300018d0fb094adf5bd7cbb3834c69e6d0b3798065c525b20f040e965e1a161af78ff7561cd874f5f1b75aa0bc77f720589e1b810f831eac5073e6dd46d00a2793f70f7427f0f798f2f53a67e615e65d356e66fe40609a958a05edb4c175bcc383ea0530e67ddbe479a898943c6e3074c6fcc252d6014de3a3d292b03f0d88d312fe221be7be7e3c59d07fa0f2f4029e364f1f355c5d01fa53770d0cd76d82bf7e60f6903bc1beb772e6fde4a70be51d9c7e03c8d6d8dfb361a234ba47c470fe630820bbd920715621b9fbedb49fcee165ead0875e6c2b1af16f50b5d6140cc981122fcbcf7c5a4e3772b3661b628e08380abc545957e59f634705b1bbde2f0b4e055a5ec5676d859be77e20962b645e051a880fddb0180b4555789e1f9344a436a84dc5579e2553f1e5fb0a599c137be36cabbed0319831fea3fddf94ddc7971e4bcf02cdc93294a9aab3e3b13e3b058235b4f4ec06ba4ceaa49d675b4ba80716f3bc6976b1fbf9c8bf1f3e3a4dc1cd83ef9cf816667fb94f1e923ff63fef072e6a19321e4812f96cb0ffa864da50ad74deb76917a336f31dce03ed5f0303aad5e6a83634f9fcc371096f8288b8f02ddded5ff1bb9d49331e4a84dbe1543164438fde9ad71dab024779dcdde0b6602b5ae0a6265c14b94edd83b37403f4b78fcd2ed555b596402c28ee81d87a909c4e8722b30c71ecdd861b05f61f8b1231795c76adba2fdefa451b283a5d527955b9f3de1b9828e7b2e74123dd47062ddcc09b05e7fa13cb2212a6fdbc65d7e852cec463ec6fd929f5b8483cf3052113b13dac91b69f49d1b7d1aec01c4a68e41ce157','debug':0} } } @@ -692,104 +692,104 @@ export function startAssetChain(confpath, coin, mode, getSuppyOnly) { 'SUPERNET': { 'name': 'SUPERNET', 'supply': 816061, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"SUPERNET","conf":"SUPERNET.conf","path":confpath,"RELAY":-1,"VALIDATE":0,"startpend":4,"endpend":4,"maxpeers":32,"newcoin":"SUPERNET","name":"SUPERNET","netmagic":"cc55d9d4","p2p":assetChainPorts.SUPERNET - 1,"rpc":assetChainPorts.SUPERNET}) : {}, - 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":32,"newcoin":"SUPERNET","name":"SUPERNET","netmagic":"cc55d9d4","p2p":assetChainPorts.SUPERNET - 1,"rpc":assetChainPorts.SUPERNET}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'SUPERNET','conf':'SUPERNET.conf','path':confpath,'RELAY':-1,'VALIDATE':0,'startpend':4,'endpend':4,'maxpeers':32,'newcoin':'SUPERNET','name':'SUPERNET','netmagic':'cc55d9d4','p2p':assetChainPorts.SUPERNET - 1,'rpc':assetChainPorts.SUPERNET}) : {}, + 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':32,'newcoin':'SUPERNET','name':'SUPERNET','netmagic':'cc55d9d4','p2p':assetChainPorts.SUPERNET - 1,'rpc':assetChainPorts.SUPERNET}) }, 'REVS': { 'name': 'REVS', 'supply': 1300000, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"REVS","conf":"REVS.conf","path":confpath,"RELAY":-1,"VALIDATE":0,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"REVS","name":"REVS","netmagic":"905c3498","p2p":assetChainPorts.REVS - 1,"rpc":assetChainPorts.REVS}) : {}, - 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"REVS","name":"REVS","netmagic":"905c3498","p2p":assetChainPorts.REVS - 1,"rpc":assetChainPorts.REVS}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'REVS','conf':'REVS.conf','path':confpath,'RELAY':-1,'VALIDATE':0,'startpend':4,'endpend':4,'maxpeers':8,'newcoin':'REVS','name':'REVS','netmagic':'905c3498','p2p':assetChainPorts.REVS - 1,'rpc':assetChainPorts.REVS}) : {}, + 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':8,'newcoin':'REVS','name':'REVS','netmagic':'905c3498','p2p':assetChainPorts.REVS - 1,'rpc':assetChainPorts.REVS}) }, 'WLC': { 'name': 'WIRELESS', 'supply': 210000000, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"WLC","conf":"WLC.conf","path":confpath,"RELAY":-1,"VALIDATE":0,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"WLC","name":"WIRELESS","netmagic":"62071ed3","p2p":assetChainPorts.WIRELESS - 1,"rpc":assetChainPorts.WIRELESS}) : {}, - 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"WLC","name":"WIRELESS","netmagic":"62071ed3","p2p":assetChainPorts.WIRELESS - 1,"rpc":assetChainPorts.WIRELESS}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'WLC','conf':'WLC.conf','path':confpath,'RELAY':-1,'VALIDATE':0,'startpend':4,'endpend':4,'maxpeers':8,'newcoin':'WLC','name':'WIRELESS','netmagic':'62071ed3','p2p':assetChainPorts.WIRELESS - 1,'rpc':assetChainPorts.WIRELESS}) : {}, + 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':8,'newcoin':'WLC','name':'WIRELESS','netmagic':'62071ed3','p2p':assetChainPorts.WIRELESS - 1,'rpc':assetChainPorts.WIRELESS}) }, 'PANGEA': { 'name': 'PANGEA', 'supply': 999999, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"PANGEA","conf":"PANGEA.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"PANGEA","name":"PANGEA","netmagic":"5fa45ae8","p2p":assetChainPorts.PANGEA - 1,"rpc":assetChainPorts.PANGEA}) : {}, - 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"PANGEA","name":"PANGEA","netmagic":"5fa45ae8","p2p":assetChainPorts.PANGEA - 1,"rpc":assetChainPorts.PANGEA}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'PANGEA','conf':'PANGEA.conf','path':confpath,'RELAY':-1,'VALIDATE':1,'startpend':4,'endpend':4,'maxpeers':8,'newcoin':'PANGEA','name':'PANGEA','netmagic':'5fa45ae8','p2p':assetChainPorts.PANGEA - 1,'rpc':assetChainPorts.PANGEA}) : {}, + 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':8,'newcoin':'PANGEA','name':'PANGEA','netmagic':'5fa45ae8','p2p':assetChainPorts.PANGEA - 1,'rpc':assetChainPorts.PANGEA}) }, 'DEX': { 'name': 'DEX', 'supply': 999999, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"DEX","conf":"DEX.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"DEX","name":"DEX","netmagic":"f2ae0516","p2p":assetChainPorts.DEX - 1,"rpc":assetChainPorts.DEX}) : {}, - 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"DEX","name":"DEX","netmagic":"f2ae0516","p2p":assetChainPorts.DEX - 1,"rpc":assetChainPorts.DEX}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'DEX','conf':'DEX.conf','path':confpath,'RELAY':-1,'VALIDATE':1,'startpend':4,'endpend':4,'maxpeers':8,'newcoin':'DEX','name':'DEX','netmagic':'f2ae0516','p2p':assetChainPorts.DEX - 1,'rpc':assetChainPorts.DEX}) : {}, + 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':8,'newcoin':'DEX','name':'DEX','netmagic':'f2ae0516','p2p':assetChainPorts.DEX - 1,'rpc':assetChainPorts.DEX}) }, 'JUMBLR': { 'name': 'JUMBLR', 'supply': 999999, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"JUMBLR","conf":"JUMBLR.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"JUMBLR","name":"JUMBLR","netmagic":"7223759e","p2p":assetChainPorts.JUMBLR - 1,"rpc":assetChainPorts.JUMBLR}) : {}, - 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"JUMBLR","name":"JUMBLR","netmagic":"7223759e","p2p":assetChainPorts.JUMBLR - 1,"rpc":assetChainPorts.JUMBLR}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'JUMBLR','conf':'JUMBLR.conf','path':confpath,'RELAY':-1,'VALIDATE':1,'startpend':4,'endpend':4,'maxpeers':8,'newcoin':'JUMBLR','name':'JUMBLR','netmagic':'7223759e','p2p':assetChainPorts.JUMBLR - 1,'rpc':assetChainPorts.JUMBLR}) : {}, + 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':8,'newcoin':'JUMBLR','name':'JUMBLR','netmagic':'7223759e','p2p':assetChainPorts.JUMBLR - 1,'rpc':assetChainPorts.JUMBLR}) }, 'BET': { 'name': 'BET', 'supply': 999999, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"BET","conf":"BET.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"BET","name":"BET","netmagic":"6b9e3e1b","p2p":assetChainPorts.BET - 1,"rpc":assetChainPorts.BET}) : {}, - 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"BET","name":"BET","netmagic":"6b9e3e1b","p2p":assetChainPorts.BET - 1,"rpc":assetChainPorts.BET}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'BET','conf':'BET.conf','path':confpath,'RELAY':-1,'VALIDATE':1,'startpend':4,'endpend':4,'maxpeers':8,'newcoin':'BET','name':'BET','netmagic':'6b9e3e1b','p2p':assetChainPorts.BET - 1,'rpc':assetChainPorts.BET}) : {}, + 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':8,'newcoin':'BET','name':'BET','netmagic':'6b9e3e1b','p2p':assetChainPorts.BET - 1,'rpc':assetChainPorts.BET}) }, 'CRYPTO': { 'name': 'CRYPTO', 'supply': 999999, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"CRYPTO","conf":"CRYPTO.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"CRYPTO","name":"CRYPTO","netmagic":"fced9e2a","p2p":assetChainPorts.CRYPTO - 1,"rpc":assetChainPorts.CRYPTO}) : {}, - 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"CRYPTO","name":"CRYPTO","netmagic":"fced9e2a","p2p":assetChainPorts.CRYPTO - 1,"rpc":assetChainPorts.CRYPTO}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'CRYPTO','conf':'CRYPTO.conf','path':confpath,'RELAY':-1,'VALIDATE':1,'startpend':4,'endpend':4,'maxpeers':8,'newcoin':'CRYPTO','name':'CRYPTO','netmagic':'fced9e2a','p2p':assetChainPorts.CRYPTO - 1,'rpc':assetChainPorts.CRYPTO}) : {}, + 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':8,'newcoin':'CRYPTO','name':'CRYPTO','netmagic':'fced9e2a','p2p':assetChainPorts.CRYPTO - 1,'rpc':assetChainPorts.CRYPTO}) }, 'HODL': { 'name': 'HODL', 'supply': 9999999, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"HODL","conf":"HODL.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"HODL","name":"HODL","netmagic":"9b13fb5f","p2p":assetChainPorts.HODL - 1,"rpc":assetChainPorts.HODL}) : {}, - 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"HODL","name":"HODL","netmagic":"9b13fb5f","p2p":assetChainPorts.HODL - 1,"rpc":assetChainPorts.HODL}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'HODL','conf':'HODL.conf','path':confpath,'RELAY':-1,'VALIDATE':1,'startpend':4,'endpend':4,'maxpeers':8,'newcoin':'HODL','name':'HODL','netmagic':'9b13fb5f','p2p':assetChainPorts.HODL - 1,'rpc':assetChainPorts.HODL}) : {}, + 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':8,'newcoin':'HODL','name':'HODL','netmagic':'9b13fb5f','p2p':assetChainPorts.HODL - 1,'rpc':assetChainPorts.HODL}) }, 'SHARK': { 'name': 'SHARK', 'supply': 1401, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"SHARK","conf":"SHARK.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"SHARK","name":"SHARK","netmagic":"54a5e30c","p2p":assetChainPorts.SHARK - 1,"rpc":assetChainPorts.SHARK}) : {}, - 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"SHARK","name":"SHARK","netmagic":"54a5e30c","p2p":assetChainPorts.SHARK - 1,"rpc":assetChainPorts.SHARK}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'SHARK','conf':'SHARK.conf','path':confpath,'RELAY':-1,'VALIDATE':1,'startpend':4,'endpend':4,'maxpeers':8,'newcoin':'SHARK','name':'SHARK','netmagic':'54a5e30c','p2p':assetChainPorts.SHARK - 1,'rpc':assetChainPorts.SHARK}) : {}, + 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':8,'newcoin':'SHARK','name':'SHARK','netmagic':'54a5e30c','p2p':assetChainPorts.SHARK - 1,'rpc':assetChainPorts.SHARK}) }, 'BOTS': { 'name': 'BOTS', 'supply': 999999, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"BOTS","conf":"BOTS.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"BOTS","name":"BOTS","netmagic":"5bec8cf7","p2p":assetChainPorts.BOTS - 1,"rpc":assetChainPorts.BOTS}) : {}, - 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"BOTS","name":"BOTS","netmagic":"5bec8cf7","p2p":assetChainPorts.BOTS - 1,"rpc":assetChainPorts.BOTS}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'BOTS','conf':'BOTS.conf','path':confpath,'RELAY':-1,'VALIDATE':1,'startpend':4,'endpend':4,'maxpeers':8,'newcoin':'BOTS','name':'BOTS','netmagic':'5bec8cf7','p2p':assetChainPorts.BOTS - 1,'rpc':assetChainPorts.BOTS}) : {}, + 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':8,'newcoin':'BOTS','name':'BOTS','netmagic':'5bec8cf7','p2p':assetChainPorts.BOTS - 1,'rpc':assetChainPorts.BOTS}) }, 'MGW': { 'name': 'MGW', 'supply': 999999, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"MGW","conf":"MGW.conf","path":confpath,"unitval":"20","zcash":1,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"MGW","name":"MGW","netmagic":"6eea5dbb","p2p":assetChainPorts.MGW - 1,"rpc":assetChainPorts.MGW}) : {}, - 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"unitval":"20","zcash":1,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"MGW","name":"MGW","netmagic":"6eea5dbb","p2p":assetChainPorts.MGW - 1,"rpc":assetChainPorts.MGW}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'MGW','conf':'MGW.conf','path':confpath,'unitval':'20','zcash':1,'RELAY':-1,'VALIDATE':1,'startpend':4,'endpend':4,'maxpeers':8,'newcoin':'MGW','name':'MGW','netmagic':'6eea5dbb','p2p':assetChainPorts.MGW - 1,'rpc':assetChainPorts.MGW}) : {}, + 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'unitval':'20','zcash':1,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':8,'newcoin':'MGW','name':'MGW','netmagic':'6eea5dbb','p2p':assetChainPorts.MGW - 1,'rpc':assetChainPorts.MGW}) }, 'MVP': { 'name': 'MVP', 'supply': 1000000, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"MVP","conf":"MVP.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"services":129,"maxpeers":8,"newcoin":"MVP","name":"MVP","netmagic":"dd5ce076","p2p":11675,"rpc":11676}) : {}, - 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"MVP","name":"MVP","netmagic":"dd5ce076","p2p":11675,"rpc":11676}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'MVP','conf':'MVP.conf','path':confpath,'RELAY':-1,'VALIDATE':1,'startpend':4,'endpend':4,'services':129,'maxpeers':8,'newcoin':'MVP','name':'MVP','netmagic':'dd5ce076','p2p':11675,'rpc':11676}) : {}, + 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':8,'newcoin':'MVP','name':'MVP','netmagic':'dd5ce076','p2p':11675,'rpc':11676}) }, 'KV': { 'name': 'KV', 'supply': 1000000, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"KV","conf":"KV.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"KV","name":"KV","netmagic":"b09a2d65","p2p":assetChainPorts.KV - 1,"rpc":assetChainPorts.KV}) : {}, - 'AddCoinDataVar': Object.assign(_acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"KV","name":"KV","netmagic":"b09a2d65","p2p":assetChainPorts.KV - 1,"rpc":assetChainPorts.KV}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'KV','conf':'KV.conf','path':confpath,'RELAY':-1,'VALIDATE':1,'startpend':4,'endpend':4,'maxpeers':8,'newcoin':'KV','name':'KV','netmagic':'b09a2d65','p2p':assetChainPorts.KV - 1,'rpc':assetChainPorts.KV}) : {}, + 'AddCoinDataVar': Object.assign(_acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':8,'newcoin':'KV','name':'KV','netmagic':'b09a2d65','p2p':assetChainPorts.KV - 1,'rpc':assetChainPorts.KV}) }, 'CEAL': { 'name': 'CEAL', 'supply': 366666666, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"CEAL","conf":"CEAL.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"CEAL","name":"CEAL","netmagic":"09e51af8","p2p":assetChainPorts.CEAL - 1,"rpc":assetChainPorts.CEAL}) : {}, - 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"CEAL","name":"CEAL","netmagic":"09e51af8","p2p":assetChainPorts.CEAL - 1,"rpc":assetChainPorts.CEAL}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'CEAL','conf':'CEAL.conf','path':confpath,'RELAY':-1,'VALIDATE':1,'startpend':4,'endpend':4,'maxpeers':8,'newcoin':'CEAL','name':'CEAL','netmagic':'09e51af8','p2p':assetChainPorts.CEAL - 1,'rpc':assetChainPorts.CEAL}) : {}, + 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':8,'newcoin':'CEAL','name':'CEAL','netmagic':'09e51af8','p2p':assetChainPorts.CEAL - 1,'rpc':assetChainPorts.CEAL}) }, 'MESH': { 'name': 'MESH', 'supply': 1000007, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"MESH","conf":"MESH.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"MESH","name":"MESH","netmagic":"f0265c67","p2p":assetChainPorts.MESH - 1,"rpc":assetChainPorts.MESH}) : {}, - 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"MESH","name":"MESH","netmagic":"f0265c67","p2p":assetChainPorts.MESH - 1,"rpc":assetChainPorts.MESH}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'MESH','conf':'MESH.conf','path':confpath,'RELAY':-1,'VALIDATE':1,'startpend':4,'endpend':4,'maxpeers':8,'newcoin':'MESH','name':'MESH','netmagic':'f0265c67','p2p':assetChainPorts.MESH - 1,'rpc':assetChainPorts.MESH}) : {}, + 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':8,'newcoin':'MESH','name':'MESH','netmagic':'f0265c67','p2p':assetChainPorts.MESH - 1,'rpc':assetChainPorts.MESH}) }, 'COQUI': { 'name': 'COQUI', 'supply': 72000000, - 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"COQUI","conf":"COQUI.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"COQUI","name":"COQUI","netmagic":"4cbd5ef4","p2p":assetChainPorts.COQUI - 1,"rpc":assetChainPorts.COQUI}) : {}, - 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"COQUI","name":"COQUI","netmagic":"4cbd5ef4","p2p":assetChainPorts.COQUI - 1,"rpc":assetChainPorts.COQUI}) + 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {'coin':'COQUI','conf':'COQUI.conf','path':confpath,'RELAY':-1,'VALIDATE':1,'startpend':4,'endpend':4,'maxpeers':8,'newcoin':'COQUI','name':'COQUI','netmagic':'4cbd5ef4','p2p':assetChainPorts.COQUI - 1,'rpc':assetChainPorts.COQUI}) : {}, + 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,'RELAY':mode,'VALIDATE':mode,'startpend':tmpPendValue,'endpend':tmpPendValue,'maxpeers':8,'newcoin':'COQUI','name':'COQUI','netmagic':'4cbd5ef4','p2p':assetChainPorts.COQUI - 1,'rpc':assetChainPorts.COQUI}) } }; diff --git a/react/src/components/dashboard/about/about.js b/react/src/components/dashboard/about/about.js index a38ea04..c5ac196 100755 --- a/react/src/components/dashboard/about/about.js +++ b/react/src/components/dashboard/about/about.js @@ -1,71 +1,59 @@ import React from "react"; +import { translate } from '../../../translate/translate'; class About extends React.Component { render() { return (
-

About Agama

-

- Agama Wallet is a desktop app that you can use to manage multiple cryptocurrency wallets. When you set up a - wallet, you can configure it to operate in one of the following modes: -

+

{ translate('ABOUT.ABOUT_AGAMA') }

+

{ translate('ABOUT.AGAMA_MODES') }

  • - Basilisk Mode:  - Doesn't download the blockchain. Slightly slower - transaction performance. + { translate('INDEX.BASILISK_MODE') }:  + { translate('ABOUT.BASILISK_MODE_DESC') }
  • - Full Mode:  - Downloads the full blockchain, which can take a - while. Good transaction performance. + { translate('INDEX.FULL_MODE') }:  + { translate('ABOUT.FULL_MODE_DESC') }
  • - Native Mode:  - Only available for a few currencies. Like 'Full - Mode' but provides advanced functionality. + { translate('INDEX.NATIVE_MODE') }:  + { translate('ABOUT.NATIVE_MODE_DESC') }
- Agama includes the following capabilities: + { translate('ABOUT.AGAMA_CAPABILITIES') }
  • BarterDEX:  - Easily exchange cryptocurrencies via a - shapeshift-like service.  + { translate('ABOUT.BARTER_DEX_DESC') }  (BarterDEX – A Practical Native DEX)
  • Atomic Exporer:   - A universal local explorer ensures you don't - have query information from a centralized - server. + { translate('ABOUT.ATOMIC_EXPLORER_DESC') }
- - Note: Agama Wallet is still in development. It is safe to use, - but you should make proper backups. We do not recommend using it as the primarily wallet for your cryptocurrencies. - + { translate('ABOUT.AGAMA_NOTE') }

-
Testers
- You can help us test Agama. Just download and install the latest release. - Then, report any bugs you encounter to our developers on the #testing-agama Slack channel. - Your help is greatly appreciated! +
{ translate('ABOUT.TESTERS') }
+ { translate('ABOUT.TESTERS_P1') } { translate('ABOUT.TESTERS_P2') }. + { translate('ABOUT.TESTERS_P3') } #testing-agama Slack channel. + { translate('ABOUT.TESTERS_P4') }

- Agama also supports the following desktop apps: + { translate('ABOUT.AGAMA_DAPPS') }
  • - Jumblr: A decentralized Bitcoin blockchain tumbler for privacy - and lower fees. + Jumblr: { translate('ABOUT.JUMBLR_DESC') }
  • - BarterDEX: A decentralized coin exchange. + BarterDEX: { translate('ABOUT.BARTER_DEX_DESC_ALT') }
diff --git a/react/src/components/dashboard/atomic/atomic.js b/react/src/components/dashboard/atomic/atomic.js index 031b473..39ae7da 100755 --- a/react/src/components/dashboard/atomic/atomic.js +++ b/react/src/components/dashboard/atomic/atomic.js @@ -26,55 +26,55 @@ class Atomic extends React.Component { updateSelectedAPI(e) { this.setState(Object.assign({}, this.state, { - 'api': e.target.value, + api: e.target.value, })); } updateSelectedCoin(e) { this.setState(Object.assign({}, this.state, { - 'coin': e.target.value.split('|')[0], + coin: e.target.value.split('|')[0], })); } updateInput(e) { this.setState(Object.assign({}, this.state, { - 'input': e.target.value, + input: e.target.value, })); } getAtomicData() { const tmpIguanaRPCAuth = `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`; - let ExplorerInputData; + let explorerInputData; const _coin = this.state.coin; const _input = this.state.input; switch (this.state.api) { case 'history': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'timeout': 20000, - 'agent': 'basilisk', - 'method': 'history', - 'vals': { - 'coin': _coin, - 'addresses': [ _input ], + explorerInputData = { + userpass: tmpIguanaRPCAuth, + timeout: 20000, + agent: 'basilisk', + method: 'history', + vals: { + coin: _coin, + addresses: [ _input ], } }; break; case 'getbalance': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'coin': _coin, - 'method': 'getbalance', - 'params': [ _input ], + explorerInputData = { + userpass: tmpIguanaRPCAuth, + coin: _coin, + method: 'getbalance', + params: [ _input ], }; break; case 'listunspent': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'coin': _coin, - 'method': 'listunspent', - 'params': [ + explorerInputData = { + userpass: tmpIguanaRPCAuth, + coin: _coin, + method: 'listunspent', + params: [ 1, 9999999, [ _input ], @@ -82,253 +82,254 @@ class Atomic extends React.Component { }; break; case 'txid': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'coin': _coin, - 'method': 'getrawtransaction', - 'params': [ _input ], + explorerInputData = { + userpass: tmpIguanaRPCAuth, + coin: _coin, + method: 'getrawtransaction', + params: [ _input ], }; break; case 'blockash': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'coin': _coin, - 'agent': 'bitcoinrpc', - 'method': 'getblockhash', - 'height': _input, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + coin: _coin, + agent: 'bitcoinrpc', + method: 'getblockhash', + height: _input, }; break; case 'chaintip': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'coin': _coin, - 'agent': 'bitcoinrpc', - 'method': 'getbestblockhash', + explorerInputData = { + userpass: tmpIguanaRPCAuth, + coin: _coin, + agent: 'bitcoinrpc', + method: 'getbestblockhash', }; break; case 'activehandle': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'SuperNET', - 'method': 'activehandle', + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'SuperNET', + method: 'activehandle', }; break; case 'gettransaction': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'coin': _coin, - 'agent': 'bitcoinrpc', - 'method': 'gettransaction', - 'txid': _input, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + coin: _coin, + agent: 'bitcoinrpc', + method: 'gettransaction', + txid: _input, }; break; case 'dex_getinfo': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'getinfo', - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'getinfo', + symbol: _coin, }; break; case 'dex_getnotaries': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'getnotaries', - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'getnotaries', + symbol: _coin, }; break; case 'dex_alladdresses': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'alladdresses', - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'alladdresses', + symbol: _coin, }; break; case 'dex_importaddress': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'importaddress', - 'address': _input, - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'importaddress', + address: _input, + symbol: _coin, }; break; case 'dex_checkaddress': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'checkaddress', - 'ddress': _input, - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'checkaddress', + address: _input, + symbol: _coin, }; break; case 'dex_validateaddress': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'validateaddress', - 'address': _input, - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'validateaddress', + address: _input, + symbol: _coin, }; break; case 'dex_getbestblockhash': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'getbestblockhash', - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'getbestblockhash', + symbol: _coin, }; break; case 'dex_listtransactions': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'listtransactions', - 'address': _input, - 'count': 100, - 'skip': 0, - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'listtransactions', + address: _input, + count: 100, + skip: 0, + symbol: _coin, }; break; case 'dex_listtransactions2': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'listtransactions2', - 'address': _input, - 'count': 100, - 'skip': 0, - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'listtransactions2', + address: _input, + count: 100, + skip: 0, + symbol: _coin, }; break; case 'dex_listunspent': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'listunspent', - 'address': _input, - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'listunspent', + address: _input, + symbol: _coin, }; break; case 'dex_listspent': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'listspent', - 'address': _input, - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'listspent', + address: _input, + symbol: _coin, }; break; case 'dex_listunspent2': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'listunspent2', - 'address': _input, - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'listunspent2', + address: _input, + symbol: _coin, }; break; case 'dex_getblockhash': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'getblockhash', - 'height': 100, - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'getblockhash', + height: 100, + symbol: _coin, }; break; case 'dex_getblock': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'getblock', - 'hash': _input, - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'getblock', + hash: _input, + symbol: _coin, }; break; case 'dex_gettxin': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'gettxin', - 'vout': 0, - 'txid': _input, - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'gettxin', + vout: 0, + txid: _input, + symbol: _coin, }; break; case 'dex_gettxout': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'gettxout', - 'vout': 0, - 'txid': _input, - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'gettxout', + vout: 0, + txid: _input, + symbol: _coin, }; break; case 'dex_gettransaction': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'gettransaction', - 'txid': _input, - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'gettransaction', + txid: _input, + symbol: _coin, }; break; case 'dex_getbalance': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'getbalance', - 'address': _input, - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'getbalance', + address: _input, + symbol: _coin, }; break; case 'dex_getsupply': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'getbalance', - 'address': '*', - 'symbol': _coin, - 'timeout': 600000, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'getbalance', + address: '*', + symbol: _coin, + timeout: 600000, }; break; case 'dex_sendrawtransaction': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'dex', - 'method': 'sendrawtransaction', - 'signedtx': _input, - 'symbol': _coin, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'dex', + method: 'sendrawtransaction', + signedtx: _input, + symbol: _coin, }; break; case 'basilisk_refresh': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'basilisk', - 'method': 'refresh', - 'address': _input, - 'symbol': _coin, - 'timeout': 600000, + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'basilisk', + method: 'refresh', + address: _input, + symbol: _coin, + timeout: 600000, }; break; case 'jumblr_status': - ExplorerInputData = { - 'userpass': tmpIguanaRPCAuth, - 'agent': 'jumblr', - 'method': 'status', + explorerInputData = { + userpass: tmpIguanaRPCAuth, + agent: 'jumblr', + method: 'status', }; break; } - Store.dispatch(atomic(ExplorerInputData)); + Store.dispatch(atomic(explorerInputData)); } componentWillReceiveProps(props) { - if (props && props.Atomic.response) { + if (props && + props.Atomic.response) { const _api = this.state.api; const _propsAtomicRes = props.Atomic.response; @@ -337,18 +338,18 @@ class Atomic extends React.Component { _api === 'dex_sendrawtransaction' || _api === 'dex_getblockhash') { this.setState(Object.assign({}, this.state, { - 'output': _propsAtomicRes, + output: _propsAtomicRes, })); } else { this.setState(Object.assign({}, this.state, { - 'output': JSON.stringify(_propsAtomicRes, null, '\t'), + output: JSON.stringify(_propsAtomicRes, null, '\t'), })); } if (_propsAtomicRes.error === 'less than required responses') { Store.dispatch( triggerToaster( - 'Basilisk connection error', + translate('TOASTR.BASILISK_CONN_ERROR'), translate('TOASTR.SERVICE_NOTIFICATION'), 'error' ) diff --git a/react/src/components/dashboard/atomic/atomic.render.js b/react/src/components/dashboard/atomic/atomic.render.js index d15343f..684612c 100644 --- a/react/src/components/dashboard/atomic/atomic.render.js +++ b/react/src/components/dashboard/atomic/atomic.render.js @@ -5,7 +5,7 @@ import AddCoinOptionsCrypto from '../../addcoin/addcoinOptionsCrypto'; import AddCoinOptionsAC from '../../addcoin/addcoinOptionsAC'; import AddCoinOptionsACFiat from '../../addcoin/addcoinOptionsACFiat'; -const AtomicRender = function () { +const AtomicRender = function() { return (
@@ -32,7 +32,7 @@ const AtomicRender = function () {
diff --git a/react/src/components/dashboard/claimInterestModal/claimInterestModal.js b/react/src/components/dashboard/claimInterestModal/claimInterestModal.js index 94e05f5..d11d3ec 100755 --- a/react/src/components/dashboard/claimInterestModal/claimInterestModal.js +++ b/react/src/components/dashboard/claimInterestModal/claimInterestModal.js @@ -79,7 +79,7 @@ class ClaimInterestModal extends React.Component { } else if (json.result && json.result.length && json.result.length === 64) { Store.dispatch( triggerToaster( - `Your full balance is sent to address ${this.state.transactionsList[0].address}. Check back your new balance in a few minutes.`, + `translate('TOASTR.CLAIM_INTEREST_BALANCE_SENT_P1') ${this.state.transactionsList[0].address}. translate('TOASTR.CLAIM_INTEREST_BALANCE_SENT_P2')`, translate('TOASTR.WALLET_NOTIFICATION'), 'success', false @@ -90,7 +90,8 @@ class ClaimInterestModal extends React.Component { } checkTransactionsListLength() { - if (this.state.transactionsList && this.state.transactionsList.length) { + if (this.state.transactionsList && + this.state.transactionsList.length) { return true; } else if (!this.state.transactionsList || !this.state.transactionsList.length) { return false; @@ -104,7 +105,7 @@ class ClaimInterestModal extends React.Component { } copyTxId(txid) { - Store.dispatch(copyString(txid, 'Transaction ID copied')); + Store.dispatch(copyString(txid, translate('TOASTR.TXID_COPIED'))); } claimInterestTableRender() { diff --git a/react/src/components/dashboard/claimInterestModal/claimInterestModal.render.js b/react/src/components/dashboard/claimInterestModal/claimInterestModal.render.js index 8754965..84dc66c 100644 --- a/react/src/components/dashboard/claimInterestModal/claimInterestModal.render.js +++ b/react/src/components/dashboard/claimInterestModal/claimInterestModal.render.js @@ -8,7 +8,8 @@ export const _ClaimInterestTableRender = function() { let _items = []; for (let i = 0; i < _transactionsList.length; i++) { - if ((_transactionsList[i].interest === 0 && this.state.showZeroInterest) || (_transactionsList[i].amount > 0 && _transactionsList[i].interest > 0)) { + if ((_transactionsList[i].interest === 0 && this.state.showZeroInterest) || + (_transactionsList[i].amount > 0 && _transactionsList[i].interest > 0)) { _items.push( @@ -38,7 +39,7 @@ export const _ClaimInterestTableRender = function() { return (
- Requirements to accrue interest: locktime field is set and amount is greater than 10 KMD + { translate('CLAIM_INTEREST.REQ_P1') }: { translate('CLAIM_INTEREST.REQ_P2') } 10 KMD