Browse Source

Merge pull request #59 from pbca26/master

multilang fix; configurable iguana port
master
Satinder Grewal 8 years ago
committed by GitHub
parent
commit
52d804ae22
  1. 10
      assets/scripts/atomicexplorer.js
  2. 40
      assets/scripts/coinwallets.js
  3. 3
      assets/scripts/config.js
  4. 14
      assets/scripts/dashboard.js
  5. 6
      assets/scripts/dashboard/DashboardBasilisk.js
  6. 4
      assets/scripts/dashboard/DashboardCoinFiat.js
  7. 8
      assets/scripts/dashboard/DashboardDEX.js
  8. 10
      assets/scripts/dashboard/DashboardEDEX.js
  9. 10
      assets/scripts/iguana_api.js
  10. 5
      assets/scripts/iguana_api/IguanaAddcoin.js
  11. 34
      assets/scripts/iguana_api/IguanaDEX.js
  12. 30
      assets/scripts/iguana_api/IguanaEDEX.js
  13. 6
      assets/scripts/iguana_api/IguanaHandle.js
  14. 4
      assets/scripts/iguana_api/IguanaJumblr.js
  15. 2
      assets/scripts/iguana_api/IguanaUnused.js
  16. 8
      assets/scripts/jumblr.js
  17. 8
      assets/scripts/kmd_wallet/KMDAddress.js
  18. 6
      assets/scripts/kmd_wallet/KMDBalance.js
  19. 4
      assets/scripts/kmd_wallet/KMDGetinfo.js
  20. 72
      assets/scripts/kmd_wallet/KMDInit.js
  21. 2
      assets/scripts/kmd_wallet/KMDSendTx.js
  22. 4
      assets/scripts/kmd_wallet/KMDTransaction.js
  23. 7
      assets/scripts/kmd_wallet/KMDTransactionInfo.js
  24. 6
      assets/scripts/kmd_wallet_dashboard.js
  25. 23
      assets/scripts/lang/en.js
  26. 36
      assets/scripts/login.js
  27. 28
      assets/scripts/walletsettings.js
  28. 691
      index.html

10
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);

40
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 ==');

3
assets/scripts/config.js

@ -0,0 +1,3 @@
const config = {
'iguanaPort': 7778
};

14
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() {
'</div>'
});
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.')

6
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);

4
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);

8
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'
});

10
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',
});

10
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 => {

5
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);

34
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);

30
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) {
'</span>';
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]);

6
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);

4
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) {

2
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);

8
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 ) {

8
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);

6
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);
},

4
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);

72
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);
}

2
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);

4
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

7
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);

6
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);

23
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.<br/>' +
'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:<br/>' +
'- Your External Wallet/daemon isn\'t running<br/>' +
'- Your External Wallet/daemon is running, but iguana is not given command to connect to External Wallet/daemon<br/>' +
'- Your External Wallet/daemon is setup, but is not setup with config settings like<br/>',
'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.<br/>' +
'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.<br/>' +
'If you don\'t see a wif key for the coin you are looking for please active it by adding it from EasyDEX Dashboard.<br/>' +
'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.',
}
}
};

36
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();

28
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 = '<br>';
}
$('#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 = '<br>';
}
$('#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,

691
index.html

@ -758,10 +758,7 @@
<h4 data-lang="INDEX.ACTIVATING_WALLET_RT"></h4>
<p data-edexcoin="COIN" id="edexcoin-wallet-waitingrt-alert-text" data-lang="INDEX.IGUANA_FULL_MODE_SYNC_P1"></p>
<p data-lang="INDEX.IGUANA_FULL_MODE_SYNC_P2"></p>
<p>
<div data-lang="INDEX.IGUANA_FULL_MODE_SYNC_P3" style="font-weight: 600"></div><br/>
<div data-lang="INDEX.IGUANA_FULL_MODE_SYNC_P4" style="font-weight: 600"></div>
</p>
<p data-lang="INDEX.IGUANA_FULL_MODE_SYNC_P3" style="font-weight: 600"></p>
</div>
<div role="alert" class="alert alert-info alert-dismissible" data-edexcoin="COIN" id="edexcoin-wallet-waitingcache-alert" style="display: none">
@ -769,10 +766,7 @@
<h4 data-lang="INDEX.FETCHING_COIN_DATA"></h4>
<p data-edexcoin="COIN" id="edexcoin-wallet-waitingcache-alert-text" data-lang="INDEX.IGUANA_FULL_MODE_SYNC_P1"></p>
<p data-lang="INDEX.IGUANA_FULL_MODE_SYNC_P2"></p>
<p>
<div data-lang="INDEX.IGUANA_FULL_MODE_SYNC_P3" style="font-weight: 600"></div><br/>
<div data-lang="INDEX.IGUANA_FULL_MODE_SYNC_P4" style="font-weight: 600"></div>
</p>
<p data-lang="INDEX.IGUANA_FULL_MODE_SYNC_P3" style="font-weight: 600"></p>
</div>
</div>
@ -1241,7 +1235,7 @@
<span style="font-size:24px; text-align: center;"><i class="icon fa-paw" aria-hidden="true"></i> Need Native Mode Komodo</span><br>To use Jumblr feature, you need to activate Komodo in Native Mode.<br>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.</a>.
</div>
</div>
<div class="col-xlg-12 col-md-12">
<p>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.</p>
</div>
@ -1283,9 +1277,9 @@
<div class="panel-body">
<p>Your Jumbler Addresses are accessible easily.
For example you logged into your wallet with passphrase</p>
<ul><code>duck dog cat donkey</code></ul>
<ol>
<li>To access your Jumbler address funds Logout.</li>
<li>Close Iguana App.</li>
@ -1413,16 +1407,20 @@
<div role="alert" class="alert alert-danger alert-dismissible" data-extcoin="COIN" id="extcoin-wallet-connection-alert" style="display: none">
<button aria-label="Close" data-dismiss="alert" class="close" type="button"><span aria-hidden="true">×</span></button>
<h4 data-lang="INDEX.OOPS_ERROR"></h4>
<p data-extcoin="COIN" id="extcoin-wallet-connection-alert-text"><span data-lang="INDEX.OOPS_ERROR_DESC1"></span>:<br> - <span data-lang="INDEX.OOPS_ERROR_DESC2"></span><br>
- <span data-lang="INDEX.OOPS_ERROR_DESC3"></span><br>
- <span data-lang="INDEX.OOPS_ERROR_DESC4"></span><br><code>server=1</code><br><code>rpcport=</code><br><code>rpcuser=</code><br><code>rpcpassword=</code></p>
<p data-extcoin="COIN" id="extcoin-wallet-connection-alert-text">
<span data-lang="INDEX.OOPS_ERROR_DESC"></span>
<code>server=1</code><br/>
<code>rpcport=</code><br/>
<code>rpcuser=</code><br/>
<code>rpcpassword=</code>
</p>
<!--<p class="margin-top-15"><button class="btn btn-success btn-inverse" type="button" id="extcoin-wallet-connection-alert-btn">Refresh Again</button></p>-->
</div>
<div role="alert" class="alert alert-info alert-dismissible" data-extcoin="COIN" id="extcoin-wallet-activating-alert" style="display: none">
<button aria-label="Close" data-dismiss="alert" class="close" type="button"><span aria-hidden="true">×</span></button>
<h4><span data-lang="INDEX.ACTIVATING_CHAIN"></span><span id="activating-komodod-tridot">...</span><span id="activating-komodod-progress"></span></h4>
<p data-extcoin="COIN" id="extcoin-wallet-connection-alert-text"><span data-lang="INDEX.KMD_STARTED"></span><br><span data-lang="INDEX.WAIT_BEST_CHAIN"></span></p>
<p data-extcoin="COIN" id="extcoin-wallet-connection-alert-text" data-lang="INDEX.KMD_STARTED"></p>
</div>
<div class="row" data-extcoin="COIN" style="margin: -20px 0px 10px 0px">
@ -1593,16 +1591,13 @@
<!--<th>Actions</th>-->
</tr>
</tfoot>
</table>
</div>
</div>
<!-- End Panel FixedHeader -->
</div>
</div>
<!-- End KMD Wallet Receive -->
</div>
<!-- End Komodo Wallet receive tab -->
</div>
@ -1652,7 +1647,6 @@
<!-- End Panel getinfo -->
</div>
<div class="col-xs-12">
<!-- Komodo Wallet send opid status tab -->
<div class="row">
@ -1687,16 +1681,13 @@
<th data-lang="INDEX.RESULT"></th>
</tr>
</tfoot>
</table>
</div>
</div>
<!-- End Panel FixedHeader -->
</div>
</div>
<!-- End KMD opid status -->
</div>
</div>
<!-- End Komodo Wallet send opid status tab -->
@ -1713,11 +1704,36 @@
<div class="table-responsive">
<table class="table table-striped">
<tbody>
<tr><td data-lang="INDEX.WALLET_VERSION"></td><td><span data-extcoin="COIN" id="kmd_walletversion"></span></td></tr>
<tr><td data-lang="INDEX.BALANCE"></td><td><span data-extcoin="COIN" id="kmd_balance"></span></td></tr>
<tr><td data-lang="INDEX.UNCONFIRMED_BALANCE"></td><td><span data-extcoin="COIN" id="kmd_unconfirmed_balance"></span></td></tr>
<tr><td data-lang="INDEX.IMMATURE_BALANCE"></td><td><span data-extcoin="COIN" id="kmd_immature_balance"></span></td></tr>
<tr><td data-lang="INDEX.TOTAL_TX_COUNT"></td><td><span data-extcoin="COIN" id="KMDTotalTransactionsCount"></span></td></tr>
<tr>
<td data-lang="INDEX.WALLET_VERSION"></td>
<td>
<span data-extcoin="COIN" id="kmd_walletversion"></span>
</td>
</tr>
<tr>
<td data-lang="INDEX.BALANCE"></td>
<td>
<span data-extcoin="COIN" id="kmd_balance"></span>
</td>
</tr>
<tr>
<td data-lang="INDEX.UNCONFIRMED_BALANCE"></td>
<td>
<span data-extcoin="COIN" id="kmd_unconfirmed_balance"></span>
</td>
</tr>
<tr>
<td data-lang="INDEX.IMMATURE_BALANCE"></td>
<td>
<span data-extcoin="COIN" id="kmd_immature_balance"></span>
</td>
</tr>
<tr>
<td data-lang="INDEX.TOTAL_TX_COUNT"></td>
<td>
<span data-extcoin="COIN" id="KMDTotalTransactionsCount"></span>
</td>
</tr>
</tbody>
</table>
</div>
@ -1729,23 +1745,89 @@
<!-- Panel getinfo -->
<div class="panel" id="projects">
<div class="panel-heading">
<h3 class="panel-title"><span data-extcointitle="COIN">Komodo</span> Info</h3>
<h3 class="panel-title">
<span data-extcointitle="COIN">Komodo</span> Info
</h3>
</div>
<div class="table-responsive">
<table class="table table-striped">
<tbody>
<tr><td data-lang="INDEX.VERSION"></td><td><span data-extcoin="COIN" id="kmd_version"></span></td></tr>
<tr><td data-lang="INDEX.PROTOCOL_VERSION"></td><td><span data-extcoin="COIN" id="kmd_protocolversion"></span></td></tr>
<tr><td data-lang="INDEX.NOTARIZED"></td><td><span data-extcoin="COIN" id="kmd_notarized"></span></td></tr>
<tr><td><span data-lang="INDEX.NOTARIZED"></span> Hash</td><td><span data-extcoin="COIN" id="kmd_notarizedhash"></span></td></tr>
<tr><td><span data-lang="INDEX.NOTARIZED"></span> BTC</td><td><span data-extcoin="COIN" id="kmd_notarizedbtc"></span></td></tr>
<tr><td data-lang="INDEX.BLOCKS"></td><td><span data-extcoin="COIN" id="kmd_blocks"></span></td></tr>
<tr><td data-lang="INDEX.CONNECTIONS"></td><td><span data-extcoin="COIN" id="kmd_connections"></span></td></tr>
<tr><td data-lang="INDEX.DIFFICULTY"></td><td><span data-extcoin="COIN" id="kmd_difficulty"></span></td></tr>
<tr><td>Testnet</td><td><span data-extcoin="COIN" id="kmd_testnet"></span></td></tr>
<tr><td data-lang="INDEX.PAY_TX_FEE"></td><td><span data-extcoin="COIN" id="kmd_paytxfee"></span></td></tr>
<tr><td data-lang="INDEX.RELAY_FEE"></td><td><span data-extcoin="COIN" id="kmd_relayfee"></span></td></tr>
<tr><td data-lang="INDEX.ERRORS"></td><td><span data-extcoin="COIN" id="kmd_errors"></span></td></tr>
<tr>
<td data-lang="INDEX.VERSION"></td>
<td>
<span data-extcoin="COIN" id="kmd_version"></span>
</td>
</tr>
<tr>
<td data-lang="INDEX.PROTOCOL_VERSION"></td>
<td>
<span data-extcoin="COIN" id="kmd_protocolversion"></span>
</td>
</tr>
<tr>
<td data-lang="INDEX.NOTARIZED"></td>
<td>
<span data-extcoin="COIN" id="kmd_notarized"></span>
</td>
</tr>
<tr>
<td>
<span data-lang="INDEX.NOTARIZED"></span> Hash
</td>
<td>
<span data-extcoin="COIN" id="kmd_notarizedhash"></span>
</td>
</tr>
<tr>
<td>
<span data-lang="INDEX.NOTARIZED"></span> BTC
</td>
<td>
<span data-extcoin="COIN" id="kmd_notarizedbtc"></span>
</td>
</tr>
<tr>
<td data-lang="INDEX.BLOCKS"></td>
<td>
<span data-extcoin="COIN" id="kmd_blocks"></span>
</td>
</tr>
<tr>
<td data-lang="INDEX.CONNECTIONS"></td>
<td>
<span data-extcoin="COIN" id="kmd_connections"></span>
</td>
</tr>
<tr>
<td data-lang="INDEX.DIFFICULTY"></td>
<td>
<span data-extcoin="COIN" id="kmd_difficulty"></span>
</td>
</tr>
<tr>
<td>Testnet</td>
<td>
<span data-extcoin="COIN" id="kmd_testnet"></span>
</td>
</tr>
<tr>
<td data-lang="INDEX.PAY_TX_FEE"></td>
<td>
<span data-extcoin="COIN" id="kmd_paytxfee"></span>
</td>
</tr>
<tr>
<td data-lang="INDEX.RELAY_FEE"></td>
<td>
<span data-extcoin="COIN" id="kmd_relayfee"></span>
</td>
</tr>
<tr>
<td data-lang="INDEX.ERRORS"></td>
<td>
<span data-extcoin="COIN" id="kmd_errors"></span>
</td>
</tr>
</tbody>
</table>
</div>
@ -1753,7 +1835,6 @@
<!-- End Panel getinfo -->
</div>
</div>
</div>
<!-- Modal -->
@ -1865,7 +1946,7 @@
</div>
</div>
<div class="col-sm-4 col-xs-12" style="text-align: center">
<select class="form-control form-material" id="atomic_explorer_select_command_options">
<select class="form-control form-material" id="atomic_explorer_select_command_options">
<option value="">-Select Command-</option>
<option value="history">Address History</option>
<option value="getbalance">Get Balance</option>
@ -1900,10 +1981,10 @@
</select>
</div>
<div class="col-sm-4 col-xs-12" style="text-align: center">
<input type="text" class="form-control" id="atomic_explorer_input_data" name="atomic_explorer_input_data" placeholder="addr, txid, blockash etc.">
<input type="text" class="form-control" id="atomic_explorer_input_data" name="atomic_explorer_input_data" placeholder="addr, txid, blockash etc.">
</div>
<div class="col-sm-12 col-xs-12" style="text-align: center">
<button type="button" class="btn btn-primary waves-effect waves-light" data-toggle="modal" data-dismiss="modal" id="atomic_explorer_getcoinpeers_btn">Submit</button>
<button type="button" class="btn btn-primary waves-effect waves-light" data-toggle="modal" data-dismiss="modal" id="atomic_explorer_getcoinpeers_btn">Submit</button>
</div>
</div>
</div>
@ -1917,7 +1998,7 @@
</div>
<div class="panel-body">
<div class="tab-content">
<pre id="atomic-explorer-commands-output"></pre>
<pre id="atomic-explorer-commands-output"></pre>
</div>
</div>
</div>
@ -1930,290 +2011,311 @@
<!-- BEGIN IGUANA WALLET SETTINGS CONTENT BODY -->
<div class="page animsition" data-animsition-in="fade-in" data-animsition-out="fade-out" style="margin-left: 0px">
<div class="page-content" id="section-iguana-wallet-settings">
<div class="row" id="iguana-wallet-settings" data-plugin="masonry">
<div class="col-xlg-12 col-md-12">
<!-- Iguana Wallet Settings Box -->
<div class="row" id="iguana-wallet-settings" data-plugin="masonry">
<div class="col-xlg-12 col-md-12">
<h4 class="font-size-14 text-uppercase" data-lang="INDEX.WALLET_SETTINGS"></h4>
<div class="panel-group" id="SettingsAccordion" aria-multiselectable="true"
role="tablist">
<div class="panel">
<div class="panel-heading" id="WalletInfo" role="tab">
<a class="panel-title" data-toggle="collapse" href="#WalletInfoTab"
data-parent="#SettingsAccordion" aria-expanded="true"
aria-controls="WalletInfoTab">
<i class="icon md-balance-wallet" aria-hidden="true"></i><span data-lang="INDEX.WALLET_INFO"></span>
</a>
</div>
<div class="panel-collapse collapse in" id="WalletInfoTab" aria-labelledby="WalletInfo"
role="tabpanel">
<div class="panel-body">
<table class="table" id="wallet-info-table">
<thead>
<tr><th width="10%" data-lang="INDEX.KEY"></th><th data-lang="INDEX.VALUE"></th></tr>
</thead>
<tbody>
<tr><td style="font-weight: bold">pubkey</td><td><div id="winfo_pubkey_value"></div></td></tr>
<tr><td style="font-weight: bold">btcpubkey</td><td><div id="winfo_btcpubkey_value"></div></td></tr>
<tr><td style="font-weight: bold">rmd160</td><td><div id="winfo_rmd160_value"></div></td></tr>
<tr><td style="font-weight: bold">NXT</td><td><div id="winfo_NXT_value"></div></td></tr>
<tr><td style="font-weight: bold">notary</td><td><div id="winfo_notary_value"></div></td></tr>
<tr><td style="font-weight: bold">status</td><td><div id="winfo_status_value"></div></td></tr>
<!--<tr><td style="font-weight: bold">duration</td><td><div id="winfo_duration_value"></div></td></tr>-->
</tbody>
</table>
<div class="page-content" id="section-iguana-wallet-settings">
<div class="row" id="iguana-wallet-settings" data-plugin="masonry">
<div class="col-xlg-12 col-md-12">
<!-- Iguana Wallet Settings Box -->
<div class="row" id="iguana-wallet-settings" data-plugin="masonry">
<div class="col-xlg-12 col-md-12">
<h4 class="font-size-14 text-uppercase" data-lang="INDEX.WALLET_SETTINGS"></h4>
<div class="panel-group" id="SettingsAccordion" aria-multiselectable="true"
role="tablist">
<div class="panel">
<div class="panel-heading" id="WalletInfo" role="tab">
<a class="panel-title" data-toggle="collapse" href="#WalletInfoTab"
data-parent="#SettingsAccordion" aria-expanded="true"
aria-controls="WalletInfoTab"><i class="icon md-balance-wallet" aria-hidden="true"></i><span data-lang="INDEX.WALLET_INFO"></span></a>
</div>
<div class="panel-collapse collapse in" id="WalletInfoTab" aria-labelledby="WalletInfo"
role="tabpanel">
<div class="panel-body">
<table class="table" id="wallet-info-table">
<thead>
<tr>
<th width="10%" data-lang="INDEX.KEY"></th>
<th data-lang="INDEX.VALUE"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="font-weight: bold">pubkey</td>
<td>
<div id="winfo_pubkey_value"></div>
</td>
</tr>
<tr>
<td style="font-weight: bold">btcpubkey</td>
<td>
<div id="winfo_btcpubkey_value"></div>
</td>
</tr>
<tr>
<td style="font-weight: bold">rmd160</td>
<td>
<div id="winfo_rmd160_value"></div>
</td>
</tr>
<tr>
<td style="font-weight: bold">NXT</td>
<td>
<div id="winfo_NXT_value"></div>
</td>
</tr>
<tr>
<td style="font-weight: bold">notary</td>
<td>
<div id="winfo_notary_value"></div>
</td>
</tr>
<tr>
<td style="font-weight: bold">status</td>
<td>
<div id="winfo_status_value"></div>
</td>
</tr>
<!--<tr><td style="font-weight: bold">duration</td><td><div id="winfo_duration_value"></div></td></tr>-->
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="panel">
<div class="panel-heading" id="AddNodeforCoin" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#AddNodeforCoinTab"
data-parent="#SettingsAccordion" aria-expanded="false"
aria-controls="AddNodeforCoinTab">
<i class="icon md-plus-square" aria-hidden="true"></i><span data-lang="INDEX.ADD_NODE"></span>
</a>
</div>
<div class="panel-collapse collapse" id="AddNodeforCoinTab" aria-labelledby="AddNodeforCoin"
role="tabpanel">
<div class="panel-body">
<div class="row">
<div class="col-sm-6">
<div class="col-sm-12"><p data-lang="INDEX.USE_THIS_SECTION"></p></div>
<div class="col-sm-8 col-xs-12">
<div class="form-group">
<select class="form-control form-material" id="settings_select_coin_options">
<option data-lang="INDEX.SELECT_COIN"></option>
<option value="BTC">Bitcoin</option>
<option value="BTCD">BitcoinDark</option>
<option value="LTC">Litecoin</option>
<option value="DOGE">Dogecoin</option>
<option value="DGB">Digibyte</option>
<option value="SYS">SysCoin</option>
<option value="MZC">MazaCoin</option>
<option value="UNO">Unobtanium</option>
<option value="ZET">Zetacoin</option>
<option value="KMD">Komodo</option>
<option value="BTM">Bitmark</option>
<option value="CARB">Carboncoin</option>
<option value="ANC">AnonCoin</option>
<option value="FRK">Franko</option>
<option value="SUPERNET">SUPERNET</option>
<option value="REVS">REVS</option>
<option value="WIRELESS">WIRELESS</option>
<option value="USD">USD</option>
</select>
</div>
</div>
<div class="col-sm-4 col-xs-12" style="text-align: center">
<div class="panel">
<div class="panel-heading" id="AddNodeforCoin" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#AddNodeforCoinTab"
data-parent="#SettingsAccordion" aria-expanded="false"
aria-controls="AddNodeforCoinTab"><i class="icon md-plus-square" aria-hidden="true"></i><span data-lang="INDEX.ADD_NODE"></span></a>
</div>
<div class="panel-collapse collapse" id="AddNodeforCoinTab" aria-labelledby="AddNodeforCoin"
role="tabpanel">
<div class="panel-body">
<div class="row">
<div class="col-sm-6">
<div class="col-sm-12">
<p data-lang="INDEX.USE_THIS_SECTION"></p>
</div>
<div class="col-sm-8 col-xs-12">
<div class="form-group">
<select class="form-control form-material" id="settings_select_coin_options">
<option data-lang="INDEX.SELECT_COIN"></option>
<option value="BTC">Bitcoin</option>
<option value="BTCD">BitcoinDark</option>
<option value="LTC">Litecoin</option>
<option value="DOGE">Dogecoin</option>
<option value="DGB">Digibyte</option>
<option value="SYS">SysCoin</option>
<option value="MZC">MazaCoin</option>
<option value="UNO">Unobtanium</option>
<option value="ZET">Zetacoin</option>
<option value="KMD">Komodo</option>
<option value="BTM">Bitmark</option>
<option value="CARB">Carboncoin</option>
<option value="ANC">AnonCoin</option>
<option value="FRK">Franko</option>
<option value="SUPERNET">SUPERNET</option>
<option value="REVS">REVS</option>
<option value="WIRELESS">WIRELESS</option>
<option value="USD">USD</option>
</select>
</div>
</div>
<div class="col-sm-4 col-xs-12" style="text-align: center">
<button type="button" class="btn btn-primary waves-effect waves-light" data-toggle="modal" data-dismiss="modal" id="settings_getcoinpeers_btn" onclick="Settings_ShowCoinPeers()" data-lang="INDEX.CHECK_NODES"></button>
</div>
<div class="col-sm-12">
<h5>
SuperNET Peers: <span id="coin_supernetpeers_h"></span>
</h5>
<p id="coin_supernetpeers"></p>
<h5>
Raw Peers: <span id="coin_rawpeers_h"></span>
</h5>
<p id="coin_rawpeers"></p>
</div>
</div>
<div class="col-sm-12">
<h5>SuperNET Peers: <span id="coin_supernetpeers_h"></span></h5>
<p id="coin_supernetpeers"></p>
<h5>Raw Peers: <span id="coin_rawpeers_h"></span></h5>
<p id="coin_rawpeers"></p>
</div>
</div>
<div class="col-sm-6">
<div class="col-sm-12"><p data-lang="INDEX.USE_THIS_SECTION_PEER"></p></div>
<div class="col-sm-8 col-xs-12">
<div class="form-group">
<select class="form-control form-material" id="settings_select_coin_addpeer_options">
<option data-lang="INDEX.SELECT_COIN"></option>
<option value="BTC">Bitcoin</option>
<option value="BTCD">BitcoinDark</option>
<option value="LTC">Litecoin</option>
<option value="DOGE">Dogecoin</option>
<option value="DGB">Digibyte</option>
<option value="SYS">SysCoin</option>
<option value="MZC">MazaCoin</option>
<option value="UNO">Unobtanium</option>
<option value="ZET">Zetacoin</option>
<option value="KMD">Komodo</option>
<option value="BTM">Bitmark</option>
<option value="CARB">Carboncoin</option>
<option value="ANC">AnonCoin</option>
<option value="FRK">Franko</option>
<option value="SUPERNET">SUPERNET</option>
<option value="REVS">REVS</option>
<option value="WIRELESS">WIRELESS</option>
<option value="USD">USD</option>
</select>
</div>
<div class="form-group">
<input type="text" class="form-control" id="settings_add_peer_ip" name="settings_add_peer_ip" placeholder="Add Peer IP">
</div>
</div>
<div class="col-sm-4 col-xs-12" style="text-align: center">
<div class="col-sm-6">
<div class="col-sm-12">
<p data-lang="INDEX.USE_THIS_SECTION_PEER"></p>
</div>
<div class="col-sm-8 col-xs-12">
<div class="form-group">
<select class="form-control form-material" id="settings_select_coin_addpeer_options">
<option data-lang="INDEX.SELECT_COIN"></option>
<option value="BTC">Bitcoin</option>
<option value="BTCD">BitcoinDark</option>
<option value="LTC">Litecoin</option>
<option value="DOGE">Dogecoin</option>
<option value="DGB">Digibyte</option>
<option value="SYS">SysCoin</option>
<option value="MZC">MazaCoin</option>
<option value="UNO">Unobtanium</option>
<option value="ZET">Zetacoin</option>
<option value="KMD">Komodo</option>
<option value="BTM">Bitmark</option>
<option value="CARB">Carboncoin</option>
<option value="ANC">AnonCoin</option>
<option value="FRK">Franko</option>
<option value="SUPERNET">SUPERNET</option>
<option value="REVS">REVS</option>
<option value="WIRELESS">WIRELESS</option>
<option value="USD">USD</option>
</select>
</div>
<div class="form-group">
<input type="text" class="form-control" id="settings_add_peer_ip" name="settings_add_peer_ip" placeholder="Add Peer IP">
</div>
</div>
<div class="col-sm-4 col-xs-12" style="text-align: center">
<button type="button" class="btn btn-primary waves-effect waves-light" data-toggle="modal" data-dismiss="modal" id="settings_addcoinpeers_btn" onclick="Settings_AddCoinPeers()" data-lang="INDEX.ADD_NODE"></button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="panel">
<div class="panel-heading" id="DumpWallet" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#DumpWalletTab"
data-parent="#SettingsAccordion" aria-expanded="false"
aria-controls="DumpWalletTab">
<i class="icon wb-briefcase" aria-hidden="true"></i><span data-lang="INDEX.WALLET_BACKUP"></span>
</a>
</div>
<div class="panel-collapse collapse" id="DumpWalletTab" aria-labelledby="DumpWallet"
role="tabpanel">
<div class="panel-body">
Wallet Backup section to be updated soon.
<div class="panel">
<div class="panel-heading" id="DumpWallet" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#DumpWalletTab"
data-parent="#SettingsAccordion" aria-expanded="false"
aria-controls="DumpWalletTab"><i class="icon wb-briefcase" aria-hidden="true"></i><span data-lang="INDEX.WALLET_BACKUP"></span></a>
</div>
<div class="panel-collapse collapse" id="DumpWalletTab" aria-labelledby="DumpWallet"
role="tabpanel">
<div class="panel-body">Wallet Backup section to be updated soon.</div>
</div>
</div>
</div>
<div class="panel">
<div class="panel-heading" id="FiatCurrencySettings" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#FiatCurrencySettingsTab"
data-parent="#SettingsAccordion" aria-expanded="false"
aria-controls="FiatCurrencySettingsTab">
<i class="icon fa-money" aria-hidden="true"></i><span data-lang="INDEX.FIAT_CURRENCY"></span>
</a>
</div>
<div class="panel-collapse collapse" id="FiatCurrencySettingsTab" aria-labelledby="FiatCurrencySettings"
role="tabpanel">
<div class="panel-body">
Fiat currency settings section to be updated soon.
<div class="panel">
<div class="panel-heading" id="FiatCurrencySettings" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#FiatCurrencySettingsTab"
data-parent="#SettingsAccordion" aria-expanded="false"
aria-controls="FiatCurrencySettingsTab"><i class="icon fa-money" aria-hidden="true"></i><span data-lang="INDEX.FIAT_CURRENCY"></span></a>
</div>
<div class="panel-collapse collapse" id="FiatCurrencySettingsTab" aria-labelledby="FiatCurrencySettings" role="tabpanel">
<div class="panel-body">Fiat currency settings section to be updated soon.</div>
</div>
</div>
</div>
<div class="panel">
<div class="panel-heading" id="ExportKeys" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#ExportKeysTab"
data-parent="#SettingsAccordion" aria-expanded="false"
aria-controls="ExportKeysTab">
<i class="icon md-key" aria-hidden="true"></i><span data-lang="INDEX.EXPORT_KEYS"></span>
</a>
</div>
<div class="panel-collapse collapse" id="ExportKeysTab" aria-labelledby="ExportKeys"
role="tabpanel">
<div class="panel-body">
<p>
<div data-lang="INDEX.ONLY_ACTIVE_WIF_KEYS_P1"></div><br/>
<div data-lang="INDEX.ONLY_ACTIVE_WIF_KEYS_P2"></div><br/>
<div data-lang="INDEX.ONLY_ACTIVE_WIF_KEYS_P3"></div><br/>
<b><i data-lang="INDEX.PLEASE_KEEP_KEYS_SAFE"></i></b>
</p>
<div class="col-sm-12"></div>
<form class="wifkeys-form" method="post" action="javascript:" autocomplete="off" onsubmit="return false">
<div class="form-group form-material floating">
<input type="password" class="form-control" name="wifkeys_passphrase" id="wifkeys_passphrase">
<label class="floating-label" for="wifkeys_passphrase" data-lang="INDEX.PASSPHRASE"></label>
</div>
<div class="col-sm-12 col-xs-12" style="text-align: center">
<button type="submit" class="btn btn-primary waves-effect waves-light" data-toggle="modal" data-dismiss="modal" id="wifkeys_passphrase_btn" data-lang="INDEX.GET_WIF_KEYS"></button>
</div>
</form>
<div class="panel">
<div class="panel-heading" id="ExportKeys" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#ExportKeysTab"
data-parent="#SettingsAccordion" aria-expanded="false"
aria-controls="ExportKeysTab"><i class="icon md-key" aria-hidden="true"></i><span data-lang="INDEX.EXPORT_KEYS"></span></a>
</div>
<div class="panel-collapse collapse" id="ExportKeysTab" aria-labelledby="ExportKeys"
role="tabpanel">
<div class="panel-body">
<p>
<div data-lang="INDEX.ONLY_ACTIVE_WIF_KEYS"></div><br/>
<b><i data-lang="INDEX.PLEASE_KEEP_KEYS_SAFE"></i></b>
</p>
<div class="col-sm-12"></div>
<form class="wifkeys-form" method="post" action="javascript:" autocomplete="off" onsubmit="return false">
<div class="form-group form-material floating">
<input type="password" class="form-control" name="wifkeys_passphrase" id="wifkeys_passphrase">
<label class="floating-label" for="wifkeys_passphrase" data-lang="INDEX.PASSPHRASE"></label>
</div>
<div class="col-sm-12 col-xs-12" style="text-align: center">
<button type="submit" class="btn btn-primary waves-effect waves-light" data-toggle="modal" data-dismiss="modal" id="wifkeys_passphrase_btn" data-lang="INDEX.GET_WIF_KEYS"></button>
</div>
</form>
<div class="col-sm-12" style="padding-top: 15px">
<div class="row" id="wif-priv-keys" data-plugin="masonry">
<div class="col-sm-12" style="padding-top: 15px">
<div class="row" id="wif-priv-keys" data-plugin="masonry">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="panel">
<div class="panel-heading" id="ImportKeys" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#ImportKeysTab"
data-parent="#SettingsAccordion" aria-expanded="false"
aria-controls="ImportKeysTab">
<i class="icon md-key" aria-hidden="true"></i><span data-lang="INDEX.IMPORT_KEYS"></span>
</a>
</div>
<div class="panel-collapse collapse" id="ImportKeysTab" aria-labelledby="ImportKeys"
role="tabpanel">
<div class="panel-body">
<p>
<div data-lang="INDEX.IMPORT_KEYS_DESC_P1"></div><br/>
<div data-lang="INDEX.IMPORT_KEYS_DESC_P2"></div><br/>
<div data-lang="INDEX.IMPORT_KEYS_DESC_P3"></div><br/>
<b><i data-lang="INDEX.PLEASE_KEEP_KEYS_SAFE"></i></b>
</p>
<div class="col-sm-12"></div>
<form class="wifkeys-import-form" method="post" action="javascript:" autocomplete="off" onsubmit="return false">
<div class="form-group form-material floating">
<input type="text" class="form-control" name="import_wifkey" id="import_wifkey">
<label class="floating-label" for="import_wifkey" data-lang="INDEX.INPUT_PRIV_KEY"></label>
</div>
<div class="col-sm-12 col-xs-12" style="text-align: center">
<button type="submit" class="btn btn-primary waves-effect waves-light" data-toggle="modal" data-dismiss="modal" id="import_wifkey_btn" data-lang="INDEX.IMPORT_PRIV_KEY"></button>
</div>
</form>
<div class="panel">
<div class="panel-heading" id="ImportKeys" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#ImportKeysTab"
data-parent="#SettingsAccordion" aria-expanded="false"
aria-controls="ImportKeysTab">
<i class="icon md-key" aria-hidden="true"></i><span data-lang="INDEX.IMPORT_KEYS"></span>
</a>
</div>
<div class="panel-collapse collapse" id="ImportKeysTab" aria-labelledby="ImportKeys"
role="tabpanel">
<div class="panel-body">
<p>
<div data-lang="INDEX.IMPORT_KEYS_DESC_P1"></div><br/>
<div data-lang="INDEX.IMPORT_KEYS_DESC_P2"></div><br/>
<div data-lang="INDEX.IMPORT_KEYS_DESC_P3"></div><br/>
<b><i data-lang="INDEX.PLEASE_KEEP_KEYS_SAFE"></i></b>
</p>
<div class="col-sm-12"></div>
<form class="wifkeys-import-form" method="post" action="javascript:" autocomplete="off" onsubmit="return false">
<div class="form-group form-material floating">
<input type="text" class="form-control" name="import_wifkey" id="import_wifkey">
<label class="floating-label" for="import_wifkey" data-lang="INDEX.INPUT_PRIV_KEY"></label>
</div>
<div class="col-sm-12 col-xs-12" style="text-align: center">
<button type="submit" class="btn btn-primary waves-effect waves-light" data-toggle="modal" data-dismiss="modal" id="import_wifkey_btn" data-lang="INDEX.IMPORT_PRIV_KEY"></button>
</div>
</form>
<div class="col-sm-12" style="padding-top: 15px">
<div class="row" id="wif-priv-keys" data-plugin="masonry">
<div class="col-sm-12" style="padding-top: 15px">
<div class="row" id="wif-priv-keys" data-plugin="masonry">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="panel">
<div class="panel-heading" id="DebugLog" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#DebugLogTab"
data-parent="#SettingsAccordion" aria-expanded="false"
aria-controls="DebugLogTab">
<i class="icon md-info" aria-hidden="true"></i><span data-lang="INDEX.DEBUG_LOG"></span>
</a>
</div>
<div class="panel-collapse collapse" id="DebugLogTab" aria-labelledby="DebugLog"
role="tabpanel">
<div class="panel-body">
<p data-lang="INDEX.DEBUG_LOG_DESC"></p>
<div class="col-sm-12"></div>
<form class="read-debug-log-import-form" method="post" action="javascript:" autocomplete="off" onsubmit="return false">
<div class="form-group form-material floating">
<input type="text" class="form-control" name="read_debug_log_lines" id="read_debug_log_lines" value="10">
<label class="floating-label" for="read_debug_log_lines" data-lang="INDEX.DEBUG_LOG_LINES"></label>
</div>
<div class="form-group form-material floating">
<select class="form-control form-material" id="settings_select_debuglog_options">
<option value="iguana">Iguana</option>
<option value="komodo">Komodo</option>
</select>
<label class="floating-label" for="settings_select_debuglog_options" data-lang="INDEX.TARGET"></label>
</div>
<div class="col-sm-12 col-xs-12" style="text-align: center">
<button type="submit" class="btn btn-primary waves-effect waves-light" data-toggle="modal" data-dismiss="modal" id="read_debug_log_btn" onclick="Settings_LoadDebugLog()" data-lang="INDEX.LOAD_DEBUG_LOG"></button>
</div>
<div class="col-sm-12 col-xs-12" style="text-align: center">
<br/>
<textarea id="read_debug_log_textarea" style="width:100%;height:200px"></textarea>
</div>
</form>
<div class="panel">
<div class="panel-heading" id="DebugLog" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#DebugLogTab"
data-parent="#SettingsAccordion" aria-expanded="false"
aria-controls="DebugLogTab">
<i class="icon md-info" aria-hidden="true"></i><span data-lang="INDEX.DEBUG_LOG"></span>
</a>
</div>
<div class="panel-collapse collapse" id="DebugLogTab" aria-labelledby="DebugLog"
role="tabpanel">
<div class="panel-body">
<p data-lang="INDEX.DEBUG_LOG_DESC"></p>
<div class="col-sm-12"></div>
<form class="read-debug-log-import-form" method="post" action="javascript:" autocomplete="off" onsubmit="return false">
<div class="form-group form-material floating">
<input type="text" class="form-control" name="read_debug_log_lines" id="read_debug_log_lines" value="10">
<label class="floating-label" for="read_debug_log_lines" data-lang="INDEX.DEBUG_LOG_LINES"></label>
</div>
<div class="form-group form-material floating">
<select class="form-control form-material" id="settings_select_debuglog_options">
<option value="iguana">Iguana</option>
<option value="komodo">Komodo</option>
</select>
<label class="floating-label" for="settings_select_debuglog_options" data-lang="INDEX.TARGET"></label>
</div>
<div class="col-sm-12 col-xs-12" style="text-align: center">
<button type="submit" class="btn btn-primary waves-effect waves-light" data-toggle="modal" data-dismiss="modal" id="read_debug_log_btn" onclick="Settings_LoadDebugLog()" data-lang="INDEX.LOAD_DEBUG_LOG"></button>
</div>
<div class="col-sm-12 col-xs-12" style="text-align: center">
<br/>
<textarea id="read_debug_log_textarea" style="width:100%;height:200px"></textarea>
</div>
</form>
<div class="col-sm-12" style="padding-top: 15px">
<div class="row" id="wif-priv-keys" data-plugin="masonry"></div>
<div class="col-sm-12" style="padding-top: 15px">
<div class="row" id="wif-priv-keys" data-plugin="masonry"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Iguana Wallet Settings Box -->
<!-- End Iguana Wallet Settings Box -->
</div>
</div>
</div>
</div>
</div>
<!-- END IGUANA WALLET SETTINGS CONTENT BODY -->
<!-- BEGIN ABOUT SUPERNET IGUANA CONTENT BODY -->
@ -2297,8 +2399,9 @@
<script src="assets/global/js/components/jquery-labelauty.min.js"></script>
<script src="assets/global/js/components/alertify-js.js"></script>
<script src="assets/global/js/components/panel.min.js"></script>
<script src="assets/scripts/config.js"></script>
<script src="assets/scripts/checkie.js"></script>
<!-- Iguana API Scripts -->
<script src="assets/scripts/iguana_api.js"></script>
<script src="assets/scripts/iguana_api/IguanaUnused.js"></script>
@ -2309,17 +2412,17 @@
<script src="assets/scripts/iguana_api/IguanaShepherd.js"></script>
<script src="assets/scripts/iguana_api/IguanaJumblr.js"></script>
<!-- End Iguana API Scripts -->
<script src="assets/scripts/login.js"></script>
<!-- Dashboard Scripts -->
<!-- Dashboard Scripts -->
<script src="assets/scripts/dashboard.js"></script>
<script src="assets/scripts/dashboard/DashboardEDEX.js"></script>
<script src="assets/scripts/dashboard/DashboardDEX.js"></script>
<script src="assets/scripts/dashboard/DashboardDEX.js"></script>
<script src="assets/scripts/dashboard/DashboardBasilisk.js"></script>
<script src="assets/scripts/dashboard/DashboardCoinFiat.js"></script>
<!-- End Dashboard Scripts -->
<!-- End Dashboard Scripts -->
<!--<script src="assets/scripts/coinwallets.js"></script>-->
<script src="assets/scripts/jumblr.js"></script>
<script src="assets/scripts/sidebar.js"></script>
@ -2357,7 +2460,7 @@
});
lang();
});
});
})(document, window, jQuery);
jQuery(document).ready(function() {

Loading…
Cancel
Save