pubkey | |
btcpubkey | |
rmd160 | |
NXT | |
notary | |
status |
diff --git a/assets/scripts/atomicexplorer.js b/assets/scripts/atomicexplorer.js
index 9419728..cc60867 100644
--- a/assets/scripts/atomicexplorer.js
+++ b/assets/scripts/atomicexplorer.js
@@ -311,7 +311,7 @@ var AtomicExplorer = function() {
$.ajax({
type: 'POST',
data: JSON.stringify(ExplorerInputData),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
console.log(data);
if (atomic_explorer_select_command_val === 'txid' ||
@@ -324,17 +324,17 @@ var AtomicExplorer = function() {
console.log(ExplorerOutputData);
$('#atomic-explorer-commands-output').html(JSON.stringify(ExplorerOutputData, null, '\t'));
}
-
+
if (ExplorerOutputData.error === 'less than required responses') {
toastr.error(_lang[defaultLang].DASHBOARD.LESS_RESPONSES_REQ, _lang[defaultLang].DASHBOARD.BASILISC_NOTIFICATION)
}
-
+
NProgress.done();
},
error: function(xhr, textStatus, error) {
console.log('failed getting Coin History.');
console.log(xhr.statusText);
-
+
if ( xhr.readyState == 0 ) {
Iguana_ServiceUnavailable();
}
@@ -347,7 +347,7 @@ var AtomicExplorer = function() {
/*$.ajax({
type: 'GET',
- url: 'http://127.0.0.1:7778/api/bitcoinrpc/walletlock',
+ url: 'http://127.0.0.1:' + config.iguanaPort + '/api/bitcoinrpc/walletlock',
dataType: 'text',
success: function(data, textStatus, jqXHR) {
var LogoutOutput = JSON.parse(data);
diff --git a/assets/scripts/coinwallets.js b/assets/scripts/coinwallets.js
index a5b2790..22f7121 100644
--- a/assets/scripts/coinwallets.js
+++ b/assets/scripts/coinwallets.js
@@ -27,7 +27,7 @@ function getCurrency() {
}
if ( localStorage.getItem('EasyDEX_FiatCurrency') == 'EUR' ) {
fiat_symbol = '€';
- }
+ }
}
function sendCurrency(val) {
@@ -48,23 +48,23 @@ function sendCurrency(val) {
};
$.ajax({
- type: 'POST',
- data: JSON.stringify(getinfoValues),
- url: 'http://127.0.0.1:7778',
- success: function(data, textStatus, jqXHR) {
- var CoinInfoData = JSON.parse(data),
- label_color = '',
- label_icon = '',
- wallettblContent = '';
-
- $('#mdl_currency_fee').val(CoinInfoData.txfee);
- },
- error: function(xhr, textStatus, error) {
- console.log('failed getting Coin History.');
- console.log(xhr.statusText);
- console.log(textStatus);
- console.log(error);
- }
+ type: 'POST',
+ data: JSON.stringify(getinfoValues),
+ url: 'http://127.0.0.1:' + config.iguanaPort,
+ success: function(data, textStatus, jqXHR) {
+ var CoinInfoData = JSON.parse(data),
+ label_color = '',
+ label_icon = '',
+ wallettblContent = '';
+
+ $('#mdl_currency_fee').val(CoinInfoData.txfee);
+ },
+ error: function(xhr, textStatus, error) {
+ console.log('failed getting Coin History.');
+ console.log(xhr.statusText);
+ console.log(textStatus);
+ console.log(error);
+ }
});
}
@@ -218,7 +218,7 @@ function ExecuteSendCurrencyAPI() {
$.ajax({
type: 'POST',
data: JSON.stringify(sendtoaddrvalues),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var SendToAddrData = JSON.parse(data),
SendToAddrTxDataTitle;
@@ -300,7 +300,7 @@ function Iguana_rmd160conv(rmd160conv_data) {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
console.log('== Data OutPut ==');
diff --git a/assets/scripts/config.js b/assets/scripts/config.js
new file mode 100644
index 0000000..5f6e382
--- /dev/null
+++ b/assets/scripts/config.js
@@ -0,0 +1,3 @@
+const config = {
+ 'iguanaPort': 7778
+};
diff --git a/assets/scripts/dashboard.js b/assets/scripts/dashboard.js
index 9ec91d6..d814ea9 100644
--- a/assets/scripts/dashboard.js
+++ b/assets/scripts/dashboard.js
@@ -162,7 +162,7 @@ var Dashboard = function() {
$('.showedexcoinaddrs').selectpicker({ style: 'btn-info' });
$('.showedexcoinaddrs').selectpicker('refresh');
-
+
$('.edexcoin_send_coins_btn_step1').addClass('disabled');
$('.edexcoin_send_coins_btn_step1').attr('disabled','disabled');
})
@@ -190,7 +190,7 @@ var Dashboard = function() {
if ($('#edexcoin_send_from').val() !== '' || $('#edexcoin_send_from').val() !== _lang[defaultLang].DASHBOARD.SELECT_ADDRESS) {
$('.edexcoin_send_coins_btn_step1').removeClass('disabled');
$('.edexcoin_send_coins_btn_step1').prop('disabled', false);
-
+
Shepherd_GetBasiliskCache().then(function(result){
var _data = JSON.parse(result),
query = _data.result.basilisk,
@@ -287,12 +287,12 @@ var Dashboard = function() {
''
});
NProgress.start();
-
+
var active_edexcoin = $('[data-edexcoin]').attr('data-edexcoin');
var selected_coinmode = sessionStorage.getItem('edexTmpMode')
console.log('Sent control here after clicked in form...');
-
+
if (selected_coinmode == 'Basilisk' && active_edexcoin !== 'BTC' && active_edexcoin !== 'SYS' ) {
$('#mdl_confirm_currency_sendfrom_addr').text($('#edexcoin_send_from').val());
} else {
@@ -300,7 +300,7 @@ var Dashboard = function() {
$('#mdl_confirm_currency_sendfrom_addr').text(result);
});
}
-
+
$('#mdl_confirm_currency_sendto_addr').text($('#edexcoin_sendto').val());
$('#mdl_confirm_currency_send_amount').text($('#edexcoin_amount').val());
$('#mdl_confirm_currency_coinname').text($('[data-edexcoin]').attr('data-edexcoin'));
@@ -471,7 +471,7 @@ var Dashboard = function() {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AllcoinsDataOutput = JSON.parse(data);
$.each(AllcoinsDataOutput[value], function(index) {
@@ -768,7 +768,7 @@ var Dashboard = function() {
active_edexcoinmodecode = sessionStorage.getItem('edexTmpMode');
// TODO: refactor
-
+
if ( active_edexcoinmodecode == 'Basilisk' || active_edexcoinmodecode == 'Native' ) {
//console.log(active_edexcoinmodecode)
//console.log('No need to show Progress bar for Native or Basilisk mode.')
diff --git a/assets/scripts/dashboard/DashboardBasilisk.js b/assets/scripts/dashboard/DashboardBasilisk.js
index fccbc39..c8cc53f 100644
--- a/assets/scripts/dashboard/DashboardBasilisk.js
+++ b/assets/scripts/dashboard/DashboardBasilisk.js
@@ -113,7 +113,7 @@ function ShowBasiliskFetchDataProgress(coin) {
//var res_data.coin = coin_exists;
//var res_data.addresses = addresses_exists;
var BasiliskFetchData = '';
-
+
$.each(result, function(result_index, result_val) {
//console.log(result_index);
//console.log(result_val);
@@ -220,7 +220,7 @@ function ShowBasiliskFetchDataProgress(coin) {
}*/
});
});
- }
+ }
});
}
@@ -260,7 +260,7 @@ function SwitchBasicliskFull(switch_data) {
$.ajax({
type: 'GET',
data: SwitchCoinModeData,
- url: 'http://127.0.0.1:7778/api/iguana/addcoin',
+ url: 'http://127.0.0.1:' + config.iguanaPort + '/api/iguana/addcoin',
dataType: 'text',
success: function(data, textStatus, jqXHR) {
var SwitchCoinDataOutput = JSON.parse(data);
diff --git a/assets/scripts/dashboard/DashboardCoinFiat.js b/assets/scripts/dashboard/DashboardCoinFiat.js
index fd611f3..0ebb409 100644
--- a/assets/scripts/dashboard/DashboardCoinFiat.js
+++ b/assets/scripts/dashboard/DashboardCoinFiat.js
@@ -73,7 +73,7 @@ function TotalFiatValue() {
$.ajax({
type: 'POST',
data: JSON.stringify(TotalFiatValueData),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var RatesData = JSON.parse(data),
label_color = '',
@@ -129,7 +129,7 @@ function ShowCoinProgressBar(coin) {
$.ajax({
type: 'POST',
data: JSON.stringify(getinfoValues),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var CoinInfoData = JSON.parse(data);
diff --git a/assets/scripts/dashboard/DashboardDEX.js b/assets/scripts/dashboard/DashboardDEX.js
index 8c1e86e..3197433 100644
--- a/assets/scripts/dashboard/DashboardDEX.js
+++ b/assets/scripts/dashboard/DashboardDEX.js
@@ -26,7 +26,7 @@ function getDEXGetBalance(coin) {
$.ajax({
data: JSON.stringify(ajax_data_2),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
}).then(data => {
@@ -47,7 +47,7 @@ function getDEXGetBalance(coin) {
return new Promise((resolve, reject) => {
$.ajax({
data: JSON.stringify(params),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
}).then(data => {
@@ -182,7 +182,7 @@ function getDEXGetBalance2(coin) {
tmp_coin_addr = null
ajax_call_1 = $.ajax({
data: JSON.stringify(ajax_data_1),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
}),
@@ -200,7 +200,7 @@ function getDEXGetBalance2(coin) {
return $.ajax({
data: JSON.stringify(ajax_data_2),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
});
diff --git a/assets/scripts/dashboard/DashboardEDEX.js b/assets/scripts/dashboard/DashboardEDEX.js
index 646d45b..4afa61f 100644
--- a/assets/scripts/dashboard/DashboardEDEX.js
+++ b/assets/scripts/dashboard/DashboardEDEX.js
@@ -83,7 +83,7 @@ function refreshEDEXCoinWalletList() {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AllcoinsDataOutput = JSON.parse(data);
@@ -281,7 +281,7 @@ function EdexGetTxList(coin) {
$.ajax({
data: JSON.stringify(ajax_data_2),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
}).then(data => {
@@ -339,7 +339,7 @@ function EdexGetTxList(coin) {
return new Promise((resolve, reject) => {
$.ajax({
data: JSON.stringify(params),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
}).then(data => {
@@ -591,7 +591,7 @@ function EdexGetTxList_cache(coin) {
var ajax_call_1 = $.ajax({
data: JSON.stringify(ajax_data_1),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json',
}),
@@ -623,7 +623,7 @@ function EdexGetTxList_cache(coin) {
console.log(ajax_data_2)
return $.ajax({
data: JSON.stringify(ajax_data_2),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json',
});
diff --git a/assets/scripts/iguana_api.js b/assets/scripts/iguana_api.js
index dbdfb55..8fce8d9 100644
--- a/assets/scripts/iguana_api.js
+++ b/assets/scripts/iguana_api.js
@@ -31,7 +31,7 @@ function Iguana_dumpwallet() {
'async': false,
'type': 'POST',
'global': false,
- 'url': 'http://127.0.0.1:7778',
+ 'url': 'http://127.0.0.1:' + config.iguanaPort,
'data': JSON.stringify(ajax_data),
'success': function (data) {
tmp = data;
@@ -49,7 +49,7 @@ function Iguana_dumpwallet() {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
//dataType: 'text',
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
@@ -115,7 +115,7 @@ function Iguana_HashHex(data) {
async: false,
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
result = AjaxOutputData.hex;
@@ -145,7 +145,7 @@ function Iguana_CheckActiveCoins() {
'agent': 'InstantDEX',
'method': 'allcoins'
},
- AjaxOutputData = IguanaAJAX('http://127.0.0.1:7778', ajax_data).done(function(data) {
+ AjaxOutputData = IguanaAJAX('http://127.0.0.1:' + config.iguanaPort, ajax_data).done(function(data) {
var result = [];
AjaxOutputData = JSON.parse(AjaxOutputData.responseText);
@@ -192,7 +192,7 @@ function Iguana_utxorawtx(data) {
console.log(ajax_data);
$.ajax({
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
}).then(result => {
diff --git a/assets/scripts/iguana_api/IguanaAddcoin.js b/assets/scripts/iguana_api/IguanaAddcoin.js
index 48fee44..d3342a4 100644
--- a/assets/scripts/iguana_api/IguanaAddcoin.js
+++ b/assets/scripts/iguana_api/IguanaAddcoin.js
@@ -165,8 +165,7 @@ function Iguana_addcoinLogin(addcoin_data) {
$.ajax({
type: 'POST',
data: JSON.stringify(AddCoinData),
- url: 'http://127.0.0.1:7778',
- //dataType: 'text',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var addcoinData = JSON.parse(data);
@@ -636,7 +635,7 @@ function Iguana_addcoin(addcoin_data) {
$.ajax({
type: 'POST',
data: JSON.stringify(AddCoinData),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var addcoinData = JSON.parse(data);
diff --git a/assets/scripts/iguana_api/IguanaDEX.js b/assets/scripts/iguana_api/IguanaDEX.js
index 3359d9b..1ee0d69 100644
--- a/assets/scripts/iguana_api/IguanaDEX.js
+++ b/assets/scripts/iguana_api/IguanaDEX.js
@@ -14,7 +14,7 @@ function Iguana_DEXgetNotaries(coin) {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
@@ -48,7 +48,7 @@ function Iguana_DEXImportAddr(coin,addr) {
ajax_call_1 = $.ajax({
data: JSON.stringify(ajax_data_1),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
});
@@ -65,7 +65,7 @@ function Iguana_DEXImportAddr(coin,addr) {
return $.ajax({
data: JSON.stringify(ajax_data_2),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
});
@@ -109,7 +109,7 @@ function Iguana_DEXImportAllWalletAddr(coin) {
tmp_coin_addr = null,
ajax_call_2 = $.ajax({
data: JSON.stringify(ajax_data_2),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
}),
@@ -127,7 +127,7 @@ function Iguana_DEXImportAllWalletAddr(coin) {
};
ajax_call_4 = $.ajax({
data: JSON.stringify(ajax_data_4),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json',
});
@@ -146,7 +146,7 @@ function Iguana_DEXImportAllWalletAddr(coin) {
return $.ajax({
data: JSON.stringify(ajax_data_4),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
});
@@ -190,7 +190,7 @@ function Iguana_DEXImportAll() {
},
ajax_call_1 = $.ajax({
data: JSON.stringify(ajax_data_1),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
});
@@ -208,7 +208,7 @@ function Iguana_DEXImportAll() {
tmp_coin_addr = null,
ajax_call_2 = $.ajax({
data: JSON.stringify(ajax_data_2),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
}),
@@ -226,7 +226,7 @@ function Iguana_DEXImportAll() {
},
ajax_call_4 = $.ajax({
data: JSON.stringify(ajax_data_4),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
}),
@@ -245,7 +245,7 @@ function Iguana_DEXImportAll() {
return $.ajax({
data: JSON.stringify(ajax_data_4),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json',
});
@@ -304,7 +304,7 @@ function Iguana_DEXCheckAddr(coin,addr) {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
result.push(AjaxOutputData);
@@ -343,7 +343,7 @@ function Iguana_DEXValidateAddr(coin, addr) {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
@@ -388,7 +388,7 @@ function Iguana_DEXsendrawtx(data) {
console.log(ajax_data);
$.ajax({
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
//dataType: 'json'
}).then(result => {
@@ -417,7 +417,7 @@ function EDEX_DEXlistunspent(coin, addr) {
'address': addr,
'symbol': coin
},
- AjaxOutputData = IguanaAJAX('http://127.0.0.1:7778',ajax_data).done(function(data) {
+ AjaxOutputData = IguanaAJAX('http://127.0.0.1:' + config.iguanaPort, ajax_data).done(function(data) {
AjaxOutputData = JSON.parse(AjaxOutputData.responseText)
if (AjaxOutputData == '' ) {
@@ -462,7 +462,7 @@ function EDEX_DEXnotarychains() {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); // Ajax output gets the whole list of unspent coin with addresses
console.log('== EDEX_DEXnotarychains Data OutPut ==');
@@ -499,7 +499,7 @@ function EDEX_DEXgetinfoAll() {
'agent': 'dpow',
'method': 'notarychains'
},
- get_dex_notarychains = IguanaAJAX('http://127.0.0.1:7778', ajax_data).done(function(data) {
+ get_dex_notarychains = IguanaAJAX('http://127.0.0.1:' + config.iguanaPort, ajax_data).done(function(data) {
get_dex_notarychains = JSON.parse(get_dex_notarychains.responseText);
var refresh_percent = '';
@@ -516,7 +516,7 @@ function EDEX_DEXgetinfoAll() {
console.log(ajax_data);
if (coin_value !== 'MESH') {
- var getinfo_each_chain = IguanaAJAX('http://127.0.0.1:7778', ajax_data).done(function(data) {
+ var getinfo_each_chain = IguanaAJAX('http://127.0.0.1:' + config.iguanaPort, ajax_data).done(function(data) {
getinfo_each_chain = JSON.parse(getinfo_each_chain.responseText);
console.log('== EDEX_DEXgetinfoAll Data OutPut ==');
console.log(getinfo_each_chain);
diff --git a/assets/scripts/iguana_api/IguanaEDEX.js b/assets/scripts/iguana_api/IguanaEDEX.js
index 3c22143..60327ea 100644
--- a/assets/scripts/iguana_api/IguanaEDEX.js
+++ b/assets/scripts/iguana_api/IguanaEDEX.js
@@ -40,7 +40,7 @@ function EDEXlistunspent(coin, addr) {
var active_edexcoinmodecode = sessionStorage.getItem('edexTmpMode'),
ajaxCall = $.ajax({
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
});
@@ -146,7 +146,7 @@ function EDEXMainAddr(coin) {
var ajaxCall = $.ajax({
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
});
@@ -182,7 +182,7 @@ function EDEXgetBalance(coin) {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
result.push(AjaxOutputData['result']);
@@ -362,7 +362,7 @@ function EDEXSendutxoRawTx(data) {
$('#edexcoin_sendto_result tbody').html(edexcoin_sendto_result_tbl);
$('#edexcoin_send_coins_anothertx_btn').show();
$('#edexcoin-send-txdetails-screen').data('panel-api').done();
-
+
var call_data = {
'allcoins': false,
'coin': 'KMD',
@@ -456,7 +456,7 @@ function EDEXSendToAddr(data) {
$.ajax({
type: 'POST',
data: JSON.stringify(sendtoaddrvalues),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var SendToAddrData = JSON.parse(data),
edexcoin_sendto_result_tbl = '';
@@ -552,7 +552,7 @@ function EDEXgetinfo(coin) {
'immediate': 100,
'timeout': 4000
},
- AjaxOutputData = IguanaAJAX('http://127.0.0.1:7778',ajax_data).done(function(data) {
+ AjaxOutputData = IguanaAJAX('http://127.0.0.1:' + config.iguanaPort, ajax_data).done(function(data) {
AjaxOutputData = JSON.parse(AjaxOutputData.responseText);
resolve(AjaxOutputData);
}).fail(function(xhr, textStatus, error) {
@@ -582,7 +582,7 @@ function EDEXgettransaction(coin,txid) {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778'
+ url: 'http://127.0.0.1:' + config.iguanaPort
}).then(function(data) {
//console.log(data);
res_data = JSON.parse(data);
@@ -597,7 +597,7 @@ function EDEXgettransaction(coin,txid) {
console.log(error);
});
- /*var AjaxOutputData = IguanaAJAX('http://127.0.0.1:7778',ajax_data).done(function(data) {
+ /*var AjaxOutputData = IguanaAJAX('http://127.0.0.1:' + config.iguanaPort, ajax_data).done(function(data) {
AjaxOutputData = JSON.parse(AjaxOutputData.responseText)
resolve(AjaxOutputData);
}).fail(function(xhr, textStatus, error) {
@@ -622,7 +622,7 @@ function EDEXgetaddrbyaccount_cache(coin) {
active_edexcoinmodecode = sessionStorage.getItem('edexTmpMode');
//console.log(query[coin].addresses)
-
+
Promise.all(query[coin].addresses.map((coinaddr_value, coinaddr_index) => {
return new Promise((resolve, reject) => {
//console.log(coinaddr_index);
@@ -672,7 +672,7 @@ function EDEXgetaddrbyaccount(coin) {
'';
active_edexcoinmodecode = sessionStorage.getItem('edexTmpMode');
- var AjaxOutputData = IguanaAJAX('http://127.0.0.1:7778', ajax_data).done(function(data) {
+ var AjaxOutputData = IguanaAJAX('http://127.0.0.1:' + config.iguanaPort, ajax_data).done(function(data) {
data = JSON.parse(AjaxOutputData.responseText);
console.log(data);
@@ -703,7 +703,7 @@ function EDEXgetaddrbyaccount(coin) {
return new Promise((resolve, reject) => {
$.ajax({
data: JSON.stringify(params),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
}).then(data => {
@@ -745,7 +745,7 @@ function EDEXgetaddrbyaccount(coin) {
return new Promise((resolve, reject) => {
$.ajax({
data: JSON.stringify(params),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
})
@@ -862,7 +862,7 @@ function EDEXgetnewaddress(coin) {
'method': 'getnewaddress',
'account': ''
},
- AjaxOutputData = IguanaAJAX('http://127.0.0.1:7778', ajax_data).done(function(data) {
+ AjaxOutputData = IguanaAJAX('http://127.0.0.1:' + config.iguanaPort, ajax_data).done(function(data) {
AjaxOutputData = JSON.parse(AjaxOutputData.responseText);
resolve(AjaxOutputData.result);
}).fail(function(xhr, textStatus, error) {
@@ -887,7 +887,7 @@ function EDEXimportprivkey(params_data) {
'imported'
]
},
- AjaxOutputData = IguanaAJAX('http://127.0.0.1:7778', ajax_data).done(function(data) {
+ AjaxOutputData = IguanaAJAX('http://127.0.0.1:' + config.iguanaPort, ajax_data).done(function(data) {
AjaxOutputData = JSON.parse(AjaxOutputData.responseText);
resolve(AjaxOutputData);
}).fail(function(xhr, textStatus, error) {
@@ -927,7 +927,7 @@ function EDEX_ProcessRefreshData(gettxdata,refreshdata){
var res_data = result[result.length - 1],
refresh_final = [];
console.log(res_data);
-
+
$.each(res_data,function(index){
if(res_data[index] !== undefined) {
refresh_final.push(res_data[index]);
diff --git a/assets/scripts/iguana_api/IguanaHandle.js b/assets/scripts/iguana_api/IguanaHandle.js
index 76bc935..035a1dd 100644
--- a/assets/scripts/iguana_api/IguanaHandle.js
+++ b/assets/scripts/iguana_api/IguanaHandle.js
@@ -13,7 +13,7 @@ function Iguana_rmd160conv(rmd160conv_data) {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
console.log('== Data OutPut ==');
@@ -42,7 +42,7 @@ function Iguana_activehandle(callback) {
$.ajax({
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
}).then(result => {
@@ -72,7 +72,7 @@ function Iguana_Setactivehandle() {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data),
AjaxOutputDataToStore = JSON.stringify(data);
diff --git a/assets/scripts/iguana_api/IguanaJumblr.js b/assets/scripts/iguana_api/IguanaJumblr.js
index 54d51ae..1ec4050 100644
--- a/assets/scripts/iguana_api/IguanaJumblr.js
+++ b/assets/scripts/iguana_api/IguanaJumblr.js
@@ -10,7 +10,7 @@ function Iguana_Jumblr_SetPassphrase(data) {
$.ajax({
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
}).done(function(data) {
@@ -30,7 +30,7 @@ function Iguana_Jumblr_Status() {
$.ajax({
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
}).done(function(data) {
diff --git a/assets/scripts/iguana_api/IguanaUnused.js b/assets/scripts/iguana_api/IguanaUnused.js
index 7ab87e3..3bbe640 100644
--- a/assets/scripts/iguana_api/IguanaUnused.js
+++ b/assets/scripts/iguana_api/IguanaUnused.js
@@ -8,7 +8,7 @@ function Iguana_activehandle() {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
//dataType: 'text',
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
diff --git a/assets/scripts/jumblr.js b/assets/scripts/jumblr.js
index 7866d08..01d2508 100644
--- a/assets/scripts/jumblr.js
+++ b/assets/scripts/jumblr.js
@@ -25,7 +25,7 @@ var Jumblr = function() {
}
})
}
-
+
$('#jumblr_actions_header').click(function(){
Jumblr_CheckIfConnected().then(function(result){
console.log(result)
@@ -96,7 +96,7 @@ function Jumblr_LookforNativeKomodo() {
'agent': 'InstantDEX',
'method': 'allcoins'
},
- AjaxOutputData = IguanaAJAX('http://127.0.0.1:7778', ajax_data).done(function(data) {
+ AjaxOutputData = IguanaAJAX('http://127.0.0.1:' + config.iguanaPort, ajax_data).done(function(data) {
AjaxOutputData = JSON.parse(AjaxOutputData.responseText);
if (AjaxOutputData['native'].length !== 0 ) {
$.each(AjaxOutputData.native, function( index, value ) {
@@ -137,12 +137,12 @@ function Jumblr_CheckIfConnected() {
'function': 'getinfo',
'hex': ''
};
-
+
//console.log(ajax_data);
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778'
+ url: 'http://127.0.0.1:' + config.iguanaPort
}).done(function(data){
data = JSON.parse(data)
if ( data.errors != undefined ) {
diff --git a/assets/scripts/kmd_wallet/KMDAddress.js b/assets/scripts/kmd_wallet/KMDAddress.js
index c108ba9..723e2eb 100644
--- a/assets/scripts/kmd_wallet/KMDAddress.js
+++ b/assets/scripts/kmd_wallet/KMDAddress.js
@@ -14,7 +14,7 @@ function KMDListaddrZ() {
async: false,
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); // Ajax output gets the whole list of unspent coin with addresses
// This code gets list of all z_addresses into an array
@@ -36,7 +36,7 @@ function KMDListaddrZ() {
async: false,
type: 'POST',
data: JSON.stringify(ajax_data_zaddrbalance),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
@@ -113,7 +113,7 @@ function KMDListAddresses(pubpriv) {
async: false,
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); // Ajax output gets the whole list of unspent coin with addresses
result = AjaxOutputData;
@@ -167,7 +167,7 @@ function KMDGetNewAddresses(pubpriv) {
async: false,
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
result = data;
toastr.success(_lang[defaultLang].KMD_NATIVE.NEW_ADDR_GENERATED, _lang[defaultLang].TOASTR.WALLET_NOTIFICATION);
diff --git a/assets/scripts/kmd_wallet/KMDBalance.js b/assets/scripts/kmd_wallet/KMDBalance.js
index 8cc9040..7bf2a2a 100644
--- a/assets/scripts/kmd_wallet/KMDBalance.js
+++ b/assets/scripts/kmd_wallet/KMDBalance.js
@@ -20,7 +20,7 @@ function getTotalKMDBalance() {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
//dataType: 'text',
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
@@ -76,7 +76,7 @@ function getKMDBalanceT() {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
},
@@ -107,7 +107,7 @@ function getKMDBalanceZ() {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
},
diff --git a/assets/scripts/kmd_wallet/KMDGetinfo.js b/assets/scripts/kmd_wallet/KMDGetinfo.js
index d516df2..fbc3f15 100644
--- a/assets/scripts/kmd_wallet/KMDGetinfo.js
+++ b/assets/scripts/kmd_wallet/KMDGetinfo.js
@@ -13,7 +13,7 @@ function getKMDWalletInfo() {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
$('#kmd_walletversion').text(AjaxOutputData.walletversion);
@@ -49,7 +49,7 @@ function getKMDInfo() {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
$('#kmd_version').text(AjaxOutputData.version);
diff --git a/assets/scripts/kmd_wallet/KMDInit.js b/assets/scripts/kmd_wallet/KMDInit.js
index 595ddb0..3806e03 100644
--- a/assets/scripts/kmd_wallet/KMDInit.js
+++ b/assets/scripts/kmd_wallet/KMDInit.js
@@ -1,3 +1,13 @@
+var chainActivationLastUpdate,
+ chainActivationLastUpdateTimeout = 1;
+
+function checkTimestamp(dateToCheck) {
+ var currentEpochTime = new Date(Date.now()) / 1000,
+ secondsElapsed = Number(currentEpochTime) - Number(dateToCheck / 1000);
+
+ return Math.floor(secondsElapsed);
+}
+
function RunKMDInitFunctions() {
NProgress.done(true);
NProgress.configure({
@@ -42,7 +52,7 @@ function RunKMDInitFunctions() {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
@@ -67,7 +77,7 @@ function RunKMDInitFunctions() {
function getRemoteCurrentHeight() {
$.ajax({
type: 'GET',
- url: 'http://localhost:7778/api/dex/getinfo?userpass=tmpIgRPCUser@' + sessionStorage.getItem('IguanaRPCAuth') + '&symbol=KMD',
+ url: 'http://localhost:' + config.iguanaPort + '/api/dex/getinfo?userpass=tmpIgRPCUser@' + sessionStorage.getItem('IguanaRPCAuth') + '&symbol=KMD',
success: function(data, textStatus, jqXHR) {
data = JSON.parse(data);
@@ -87,38 +97,40 @@ function RunKMDInitFunctions() {
var currentBestBlockInterval;
function startBestBlockInterval() {
currentBestBlockInterval = setInterval(function() {
- $.ajax({
- type: 'POST',
- data: {
- 'herdname': 'komodo',
- 'lastLines': 1
- },
- url: 'http://127.0.0.1:17777/shepherd/debuglog',
- success: function(data, textStatus, jqXHR) {
- if (data.indexOf('UpdateTip') > -1) {
- var temp = data.split(' ');
-
- for (var i = 0; i < temp.length; i++) {
- if (temp[i].indexOf('height=') > -1) {
- var currentBestChain = temp[i].replace('height=', '');
- $('#activating-komodod-tridot').hide();
- $('#activating-komodod-progress').html(': ' + Math.floor(currentBestChain * 100 / totalBlocksInExplorer) + '% (blocks ' + currentBestChain + ' / ' + totalBlocksInExplorer + ')');
-
- if (currentBestChain === totalBlocksInExplorer) {
- //clearInterval(totalBlocksInExplorerInterval);
- clearInterval(currentBestBlockInterval);
+ if (!chainActivationLastUpdate || checkTimestamp(chainActivationLastUpdate) > chainActivationLastUpdateTimeout) {
+ $.ajax({
+ type: 'POST',
+ data: {
+ 'herdname': 'komodo',
+ 'lastLines': 1
+ },
+ url: 'http://127.0.0.1:17777/shepherd/debuglog',
+ success: function(data, textStatus, jqXHR) {
+ if (data.indexOf('UpdateTip') > -1) {
+ var temp = data.split(' ');
+
+ for (var i = 0; i < temp.length; i++) {
+ if (temp[i].indexOf('height=') > -1) {
+ var currentBestChain = temp[i].replace('height=', '');
+ $('#activating-komodod-tridot').hide();
+ $('#activating-komodod-progress').html(': ' + Math.floor(currentBestChain * 100 / totalBlocksInExplorer) + '% (blocks ' + currentBestChain + ' / ' + totalBlocksInExplorer + ')');
+ chainActivationLastUpdate = Date.now();
+ if (currentBestChain === totalBlocksInExplorer) {
+ //clearInterval(totalBlocksInExplorerInterval);
+ clearInterval(currentBestBlockInterval);
+ }
}
}
}
+ },
+ error: function(xhr, textStatus, error) {
+ console.log('failed getting debug.log');
+ console.log(xhr.statusText);
+ console.log(textStatus);
+ console.log(error);
}
- },
- error: function(xhr, textStatus, error) {
- console.log('failed getting debug.log');
- console.log(xhr.statusText);
- console.log(textStatus);
- console.log(error);
- }
- });
+ });
+ }
}, 2000);
}
diff --git a/assets/scripts/kmd_wallet/KMDSendTx.js b/assets/scripts/kmd_wallet/KMDSendTx.js
index c47ff29..ca00698 100644
--- a/assets/scripts/kmd_wallet/KMDSendTx.js
+++ b/assets/scripts/kmd_wallet/KMDSendTx.js
@@ -20,7 +20,7 @@ function KMDZSendManyTransaction() {
async: false,
type: 'POST',
data: JSON.stringify(ajax_data_txid_input),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
console.log('== Data OutPut of z_sendmany ==');
console.log(data);
diff --git a/assets/scripts/kmd_wallet/KMDTransaction.js b/assets/scripts/kmd_wallet/KMDTransaction.js
index f655828..338cfcb 100644
--- a/assets/scripts/kmd_wallet/KMDTransaction.js
+++ b/assets/scripts/kmd_wallet/KMDTransaction.js
@@ -23,7 +23,7 @@ function KMDGetPublicTransactions() {
async: false,
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); // Ajax output gets the whole list of unspent coin with addresses
//console.log(AjaxOutputData);
@@ -109,7 +109,7 @@ function KMDGetProtectedTransactions() {
async: false,
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); // Ajax output gets the whole list of unspent coin with addresses
diff --git a/assets/scripts/kmd_wallet/KMDTransactionInfo.js b/assets/scripts/kmd_wallet/KMDTransactionInfo.js
index 413ef2a..4b5cf3d 100644
--- a/assets/scripts/kmd_wallet/KMDTransactionInfo.js
+++ b/assets/scripts/kmd_wallet/KMDTransactionInfo.js
@@ -23,8 +23,7 @@ function KMDlistunspentT() {
async: false,
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
- //dataType: 'text',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data), // Ajax output gets the whole list of unspent coin with addresses
unique_addresses = _.keys(_.countBy(AjaxOutputData, function(data) { return data.address; })); // This code using underscore.js takes only the address into an array which are unique in that list
@@ -78,7 +77,7 @@ function KMDGetTransactionIDInfo(txid) {
async: false,
type: 'POST',
data: JSON.stringify(ajax_data_txid_input),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
result.push(AjaxOutputData);
@@ -122,7 +121,7 @@ function KMDGetOPIDInfo(opid) {
async: false,
type: 'POST',
data: JSON.stringify(ajax_data_txid_input),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
result.push(AjaxOutputData);
diff --git a/assets/scripts/kmd_wallet_dashboard.js b/assets/scripts/kmd_wallet_dashboard.js
index beef940..93d4704 100644
--- a/assets/scripts/kmd_wallet_dashboard.js
+++ b/assets/scripts/kmd_wallet_dashboard.js
@@ -70,7 +70,7 @@ function CheckIfConnected() {
async: false,
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
//console.log('== Data OutPut ==');
@@ -118,7 +118,7 @@ function CheckIfWalletEncrypted() {
async: false,
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
console.log('== Data OutPut ==');
@@ -161,7 +161,7 @@ function KMD_getInfo_rtrn() {
async: false,
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data);
diff --git a/assets/scripts/lang/en.js b/assets/scripts/lang/en.js
index 9d3e005..f70a20c 100644
--- a/assets/scripts/lang/en.js
+++ b/assets/scripts/lang/en.js
@@ -60,8 +60,8 @@ const _lang = {
'ACTIVATING_WALLET_RT': 'Activating wallet once Real Time blocks starts syncing...',
'IGUANA_FULL_MODE_SYNC_P1': 'An Iguana Full Mode coin synchronizes the blockchain using an entirely different format than traditional blockchain software. Iguana\'s Full Mode uses Memory Mapped Files and stores data in bundles. That\'s why you see four different colored synchronizing progress bars.',
'IGUANA_FULL_MODE_SYNC_P2': 'Once all these progress bars reach 100%, the Real Time blocks start synchronizing. Only after the Real Time sync mode activates will you be able to see current data in your wallet and make any transactions.',
- 'IGUANA_FULL_MODE_SYNC_P3': 'Please wait for all other progress bars to disappear and the first blue bar turns to green.',
- 'IGUANA_FULL_MODE_SYNC_P4': 'That would mean the wallet is in Real Time Sync mode.',
+ 'IGUANA_FULL_MODE_SYNC_P3': 'Please wait for all other progress bars to disappear and the first blue bar turns to green.
' +
+ 'That would mean the wallet is in Real Time Sync mode.',
'FETCHING_COIN_DATA': 'Fetching coin data from network. Please wait...',
'INTEREST_EARNED': 'Interest Earned',
'TOTAL_BALANCE': 'Total Balance',
@@ -107,13 +107,13 @@ const _lang = {
'TYPE': 'Type',
'INTEREST': 'Interest',
'OOPS_ERROR': 'Opps! Something is not right...',
- 'OOPS_ERROR_DESC1': 'Could not connect to external wallet. Reasons can be',
- 'OOPS_ERROR_DESC2': 'Your External Wallet/daemon isn\'t running',
- 'OOPS_ERROR_DESC3': 'Your External Wallet/daemon is running, but iguana is not given command to connect to External Wallet/daemon',
- 'OOPS_ERROR_DESC4': 'Your External Wallet/daemon is setup, but is not setup with config settings like',
+ 'OOPS_ERROR_DESC': 'Could not connect to external wallet. Reasons can be:
' +
+ '- Your External Wallet/daemon isn\'t running
' +
+ '- Your External Wallet/daemon is running, but iguana is not given command to connect to External Wallet/daemon
' +
+ '- Your External Wallet/daemon is setup, but is not setup with config settings like
',
'ACTIVATING_CHAIN': 'Activating best chain',
- 'KMD_STARTED': 'Komodo daemon has been started and is processing.',
- 'WAIT_BEST_CHAIN': 'Please wait while the best chain is being activated.',
+ 'KMD_STARTED': 'Komodo daemon has been started and is processing.
' +
+ 'Please wait while the best chain is being activated.',
'CONNECTIONS': 'Connections',
'TRANSPARENT_BALANCE': 'Transparent Balance',
'Z_BALANCE': 'Private (Z) Balance',
@@ -147,9 +147,9 @@ const _lang = {
'WALLET_BACKUP': 'Wallet Backup',
'FIAT_CURRENCY': 'Fiat Currency',
'EXPORT_KEYS': 'Export Keys',
- 'ONLY_ACTIVE_WIF_KEYS_P1': 'Only the active coin wallet wif keys will be shown here.',
- 'ONLY_ACTIVE_WIF_KEYS_P2': 'If you don\'t see a wif key for the coin you are looking for please active it by adding it from EasyDEX Dashboard.',
- 'ONLY_ACTIVE_WIF_KEYS_P3': 'You can use these wif keys to import to another coin wallets.',
+ 'ONLY_ACTIVE_WIF_KEYS': 'Only the active coin wallet wif keys will be shown here.
' +
+ 'If you don\'t see a wif key for the coin you are looking for please active it by adding it from EasyDEX Dashboard.
' +
+ 'You can use these wif keys to import to another coin wallets.',
'PLEASE_KEEP_KEYS_SAFE': 'Please keep these keys extra safe and secure.',
'PASSPHRASE': 'Passphrase',
'GET_WIF_KEYS': 'Get Wif Keys',
@@ -272,7 +272,6 @@ const _lang = {
},
'SETTINGS': {
'PASSPHRASE_REQ': 'Passphrase is required.',
-
}
}
};
\ No newline at end of file
diff --git a/assets/scripts/login.js b/assets/scripts/login.js
index 91611da..e8f99ec 100644
--- a/assets/scripts/login.js
+++ b/assets/scripts/login.js
@@ -64,12 +64,12 @@ var Login = function() {
'agent': 'bitcoinrpc',
'method': 'walletpassphrase'
};
-
+
$.ajax({
type: 'POST',
data: ajax_data,
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var LoginOutput = JSON.parse(data);
LoginDataToStore = JSON.stringify(data),
@@ -92,7 +92,7 @@ var Login = function() {
var logincoinnames = [];
$('#logincoinslist input[type=checkbox]:checked').each(function() { logincoinnames.push(this.value); });
console.log(logincoinnames);
-
+
$.each(logincoinnames, function( index, value ) {
if ( value == 'BTC' ) {
var logincoinmodeval = $('input[name="logincoinbtcmode"]:checked').val(),
@@ -245,7 +245,7 @@ var Login = function() {
type: 'POST',
data: ajax_data,
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var CreateWalletOutput = JSON.parse(data);
@@ -260,13 +260,13 @@ var Login = function() {
// If something goes wrong, alert the error message that our service returned
toastr.warning(_lang[defaultLang].TOASTR.OPPS, _lang[defaultLang].TOASTR.ACCOUNT_NOTIFICATION);
console.log(CreateWalletOutput);
-
+
if (CreateWalletOutput.error === 'bitcoinrpc needs coin that is active') {
toastr.info(_lang[defaultLang].TOASTR.NO_COIN_RUNNING, _lang[defaultLang].TOASTR.COIN_NOTIFICATION);
var logincoinnames = [];
$('#logincoinslist input[type=checkbox]:checked').each(function() { logincoinnames.push(this.value); });
console.log(logincoinnames);
-
+
$.each(logincoinnames, function( index, value ) {
if ( value == 'BTC' ) {
var logincoinmodeval = $('input[name="logincoinbtcmode"]:checked').val(),
@@ -300,9 +300,9 @@ var Login = function() {
} else {
toastr.warning(_lang[defaultLang].TOASTR.OPPS, _lang[defaultLang].TOASTR.ACCOUNT_NOTIFICATION);
}
-
+
console.log(data.statusText);
-
+
if ( data.readyState == 0 ) {
Iguana_ServiceUnavailable();
}
@@ -368,11 +368,11 @@ var Login = function() {
'agent': 'bitcoinrpc',
'method': 'walletlock'
};
-
+
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var LogoutOutput = JSON.parse(data);
// sessionStorage.clear();
@@ -429,18 +429,18 @@ var Login = function() {
$('#lock-screen').click(function() {
$('#section-login-addcoin-btn').hide();
$('#section-login').show();
-
+
var tmpIguanaRPCAuth = 'tmpIgRPCUser@' + sessionStorage.getItem('IguanaRPCAuth'),
ajax_data = {
'userpass': tmpIguanaRPCAuth,
'agent': 'bitcoinrpc',
'method': 'walletlock'
};
-
+
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var LockOutput = JSON.parse(data);
// Begin Check Active Wallet's status
@@ -450,11 +450,11 @@ var Login = function() {
'agent': 'SuperNET',
'method': 'activehandle'
};
-
+
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data_activehandle),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var ActiveHandleOutput = JSON.parse(data),
ActiveHandleDataToStore = JSON.stringify(data);
@@ -575,7 +575,7 @@ var Login = function() {
$.ajax({
type: 'POST',
data: JSON.stringify(allcoinsvalues),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
//dataType: 'text',
success: function(data, textStatus, jqXHR) {
var allcoinsData = JSON.parse(data);
@@ -616,7 +616,7 @@ var Login = function() {
$.ajax({
type: 'GET',
data: AddCoinBasiliskData,
- url: 'http://127.0.0.1:7778/api/iguana/addcoin',
+ url: 'http://127.0.0.1:' + config.iguanaPort + '/api/iguana/addcoin',
dataType: 'text',
success: function(data, textStatus, jqXHR) {
var CoinBasiliskDataOutput = JSON.parse(data);
@@ -662,7 +662,7 @@ var Login = function() {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var LogoutOutput = JSON.parse(data);
//sessionStorage.clear();
diff --git a/assets/scripts/walletsettings.js b/assets/scripts/walletsettings.js
index 6c32e59..6928def 100644
--- a/assets/scripts/walletsettings.js
+++ b/assets/scripts/walletsettings.js
@@ -31,11 +31,11 @@ var WalletSettings = function() {
'agent': 'InstantDEX',
'method': 'allcoins'
};
-
+
$.ajax({
type: 'POST',
data: JSON.stringify(allcoins_ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AllcoinsDataOutput = JSON.parse(data);
// Only execute further code if that mode has any coins active it. if none, skill checking on them.
@@ -56,11 +56,11 @@ var WalletSettings = function() {
'method': 'encryptwallet',
'passphrase': Getwifkeys_passphrase
};
-
+
$.ajax({
type: 'POST',
data: JSON.stringify(EncryptWallet_ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var EncryptWalletDataOutput = JSON.parse(data);
console.log(EncryptWalletDataOutput[wifkey_coin_handle + 'wif']);
@@ -101,11 +101,11 @@ var WalletSettings = function() {
'password': Getwifkeys_passphrase,
'timeout': '2592000'
};
-
+
$.ajax({
type: 'POST',
data: JSON.stringify(WalletPassphrase_ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var WalletPassphraseDataOutput = JSON.parse(data);
console.log(WalletPassphraseDataOutput);
@@ -230,11 +230,11 @@ function Settings_ShowCoinPeers() {
'method': 'getpeers',
'activecoin': settings_selected_coinname_code_val
};
-
+
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var getCoinPeers = JSON.parse(data);
console.log(getCoinPeers);
@@ -245,11 +245,11 @@ function Settings_ShowCoinPeers() {
$('#coin_supernetpeers_h').text(getCoinPeers.supernet[0].coin);
$.each(supernet_peers_list, function( index, value ) {
var br_val = '';
-
+
if ( index != 0 ) {
br_val = '
';
}
-
+
$('#coin_supernetpeers').append(br_val + value);
});
}
@@ -261,11 +261,11 @@ function Settings_ShowCoinPeers() {
$('#coin_rawpeers_h').text(getCoinPeers.supernet[0].coin);
$.each(raw_peers_list, function( index, value ) {
var br_val = '';
-
+
if ( index != 0 ) {
br_val = '
';
}
-
+
$('#coin_rawpeers').append(br_val + value);
});
}
@@ -299,7 +299,7 @@ function Settings_AddCoinPeers() {
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
- url: 'http://127.0.0.1:7778',
+ url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var getAddCoinPeers = JSON.parse(data);
console.log(getAddCoinPeers);
@@ -327,7 +327,7 @@ function Settings_LoadDebugLog() {
'herdname': settings_selected_targed_val,
'lastLines': numLinesToRead
};
-
+
$.ajax({
type: 'POST',
data: ajax_data,
diff --git a/index.html b/index.html
index 77c3ece..1fd10e9 100755
--- a/index.html
+++ b/index.html
@@ -758,10 +758,7 @@
-
This screen does not auto refresh. You will need to hit the Refresh button on the top right corner of the screen to get latest Jumblr data.
Your Jumbler Addresses are accessible easily. For example you logged into your wallet with passphrase
- +duck dog cat donkey
+ | + + | +
+ | + + | +
+ | + + | +
+ | + + | +
+ | + + | +
Hash | |
BTC | |
Testnet | |
+ | + + | +
+ | + + | +
+ | + + | +
+ Hash + | ++ + | +
+ BTC + | ++ + | +
+ | + + | +
+ | + + | +
+ | + + | +
Testnet | ++ + | +
+ | + + | +
+ | + + | +
+ | + + | +
pubkey | |
btcpubkey | |
rmd160 | |
NXT | |
notary | |
status |