-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Iguana
+ Komodo
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
-
From d0594f0e5b25b0fcf598b25b17bb9089543bb973 Mon Sep 17 00:00:00 2001
From: pbca26
Date: Tue, 7 Mar 2017 10:08:32 +0300
Subject: [PATCH 3/5] added config.js
---
assets/scripts/atomicexplorer.js | 10 ++---
assets/scripts/coinwallets.js | 40 +++++++++----------
assets/scripts/dashboard.js | 14 +++----
assets/scripts/dashboard/DashboardBasilisk.js | 6 +--
assets/scripts/dashboard/DashboardCoinFiat.js | 4 +-
assets/scripts/dashboard/DashboardDEX.js | 8 ++--
assets/scripts/dashboard/DashboardEDEX.js | 10 ++---
assets/scripts/iguana_api.js | 10 ++---
assets/scripts/iguana_api/IguanaAddcoin.js | 5 +--
assets/scripts/iguana_api/IguanaDEX.js | 34 ++++++++--------
assets/scripts/iguana_api/IguanaEDEX.js | 30 +++++++-------
assets/scripts/iguana_api/IguanaHandle.js | 6 +--
assets/scripts/iguana_api/IguanaJumblr.js | 4 +-
assets/scripts/iguana_api/IguanaUnused.js | 2 +-
assets/scripts/jumblr.js | 8 ++--
assets/scripts/kmd_wallet/KMDAddress.js | 8 ++--
assets/scripts/kmd_wallet/KMDBalance.js | 6 +--
assets/scripts/kmd_wallet/KMDGetinfo.js | 4 +-
assets/scripts/kmd_wallet/KMDInit.js | 4 +-
assets/scripts/kmd_wallet/KMDSendTx.js | 2 +-
assets/scripts/kmd_wallet/KMDTransaction.js | 4 +-
.../scripts/kmd_wallet/KMDTransactionInfo.js | 7 ++--
assets/scripts/kmd_wallet_dashboard.js | 6 +--
assets/scripts/lang/en.js | 4 +-
assets/scripts/login.js | 36 ++++++++---------
assets/scripts/walletsettings.js | 28 ++++++-------
index.html | 23 ++++++-----
27 files changed, 161 insertions(+), 162 deletions(-)
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/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..369f930 100644
--- a/assets/scripts/kmd_wallet/KMDInit.js
+++ b/assets/scripts/kmd_wallet/KMDInit.js
@@ -42,7 +42,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 +67,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);
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 0fe8898..059824d 100644
--- a/assets/scripts/lang/en.js
+++ b/assets/scripts/lang/en.js
@@ -148,7 +148,7 @@ const _lang = {
'FIAT_CURRENCY': 'Fiat Currency',
'EXPORT_KEYS': 'Export Keys',
'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.
'
+ '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',
@@ -194,7 +194,7 @@ const _lang = {
'FETCHING_DATA': 'Fetching Data. Please wait for a minute to complete this task.',
'LESS_RESPONSES_REQ': 'Less than required responses. Please try again.',
'SWITCHED_TO': 'switched to',
- 'MODE': 'Mode',
+ 'MODE': 'Mode',
'TX_SENT': 'Transaction Sent',
'TX_SEND_ERR': 'Unable to complete transaction',
'LOOKS_LIKE': 'Looks like',
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 f26f740..1fd10e9 100755
--- a/index.html
+++ b/index.html
@@ -1235,7 +1235,7 @@
Need Native Mode KomodoTo use Jumblr feature, you need to activate Komodo in Native Mode.
If you are already running Komodo in either Basilisk Mode or Full Mode, close the wallet and restart again to start Komodo In Native Mode..