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. 4
      assets/scripts/atomicexplorer.js
  2. 6
      assets/scripts/coinwallets.js
  3. 3
      assets/scripts/config.js
  4. 2
      assets/scripts/dashboard.js
  5. 2
      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. 24
      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. 4
      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. 18
      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. 16
      assets/scripts/login.js
  27. 10
      assets/scripts/walletsettings.js
  28. 259
      index.html

4
assets/scripts/atomicexplorer.js

@ -311,7 +311,7 @@ var AtomicExplorer = function() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(ExplorerInputData), data: JSON.stringify(ExplorerInputData),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) { success: function(data, textStatus, jqXHR) {
console.log(data); console.log(data);
if (atomic_explorer_select_command_val === 'txid' || if (atomic_explorer_select_command_val === 'txid' ||
@ -347,7 +347,7 @@ var AtomicExplorer = function() {
/*$.ajax({ /*$.ajax({
type: 'GET', 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', dataType: 'text',
success: function(data, textStatus, jqXHR) { success: function(data, textStatus, jqXHR) {
var LogoutOutput = JSON.parse(data); var LogoutOutput = JSON.parse(data);

6
assets/scripts/coinwallets.js

@ -50,7 +50,7 @@ function sendCurrency(val) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(getinfoValues), data: JSON.stringify(getinfoValues),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) { success: function(data, textStatus, jqXHR) {
var CoinInfoData = JSON.parse(data), var CoinInfoData = JSON.parse(data),
label_color = '', label_color = '',
@ -218,7 +218,7 @@ function ExecuteSendCurrencyAPI() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(sendtoaddrvalues), data: JSON.stringify(sendtoaddrvalues),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) { success: function(data, textStatus, jqXHR) {
var SendToAddrData = JSON.parse(data), var SendToAddrData = JSON.parse(data),
SendToAddrTxDataTitle; SendToAddrTxDataTitle;
@ -300,7 +300,7 @@ function Iguana_rmd160conv(rmd160conv_data) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
console.log('== Data OutPut =='); console.log('== Data OutPut ==');

3
assets/scripts/config.js

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

2
assets/scripts/dashboard.js

@ -471,7 +471,7 @@ var Dashboard = function() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AllcoinsDataOutput = JSON.parse(data); var AllcoinsDataOutput = JSON.parse(data);
$.each(AllcoinsDataOutput[value], function(index) { $.each(AllcoinsDataOutput[value], function(index) {

2
assets/scripts/dashboard/DashboardBasilisk.js

@ -260,7 +260,7 @@ function SwitchBasicliskFull(switch_data) {
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
data: SwitchCoinModeData, 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', dataType: 'text',
success: function(data, textStatus, jqXHR) { success: function(data, textStatus, jqXHR) {
var SwitchCoinDataOutput = JSON.parse(data); var SwitchCoinDataOutput = JSON.parse(data);

4
assets/scripts/dashboard/DashboardCoinFiat.js

@ -73,7 +73,7 @@ function TotalFiatValue() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(TotalFiatValueData), data: JSON.stringify(TotalFiatValueData),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) { success: function(data, textStatus, jqXHR) {
var RatesData = JSON.parse(data), var RatesData = JSON.parse(data),
label_color = '', label_color = '',
@ -129,7 +129,7 @@ function ShowCoinProgressBar(coin) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(getinfoValues), data: JSON.stringify(getinfoValues),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) { success: function(data, textStatus, jqXHR) {
var CoinInfoData = JSON.parse(data); var CoinInfoData = JSON.parse(data);

8
assets/scripts/dashboard/DashboardDEX.js

@ -26,7 +26,7 @@ function getDEXGetBalance(coin) {
$.ajax({ $.ajax({
data: JSON.stringify(ajax_data_2), data: JSON.stringify(ajax_data_2),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}).then(data => { }).then(data => {
@ -47,7 +47,7 @@ function getDEXGetBalance(coin) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
$.ajax({ $.ajax({
data: JSON.stringify(params), data: JSON.stringify(params),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}).then(data => { }).then(data => {
@ -182,7 +182,7 @@ function getDEXGetBalance2(coin) {
tmp_coin_addr = null tmp_coin_addr = null
ajax_call_1= $.ajax({ ajax_call_1= $.ajax({
data: JSON.stringify(ajax_data_1), data: JSON.stringify(ajax_data_1),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}), }),
@ -200,7 +200,7 @@ function getDEXGetBalance2(coin) {
return $.ajax({ return $.ajax({
data: JSON.stringify(ajax_data_2), data: JSON.stringify(ajax_data_2),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}); });

10
assets/scripts/dashboard/DashboardEDEX.js

@ -83,7 +83,7 @@ function refreshEDEXCoinWalletList() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AllcoinsDataOutput = JSON.parse(data); var AllcoinsDataOutput = JSON.parse(data);
@ -281,7 +281,7 @@ function EdexGetTxList(coin) {
$.ajax({ $.ajax({
data: JSON.stringify(ajax_data_2), data: JSON.stringify(ajax_data_2),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}).then(data => { }).then(data => {
@ -339,7 +339,7 @@ function EdexGetTxList(coin) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
$.ajax({ $.ajax({
data: JSON.stringify(params), data: JSON.stringify(params),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}).then(data => { }).then(data => {
@ -591,7 +591,7 @@ function EdexGetTxList_cache(coin) {
var ajax_call_1= $.ajax({ var ajax_call_1= $.ajax({
data: JSON.stringify(ajax_data_1), data: JSON.stringify(ajax_data_1),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
}), }),
@ -623,7 +623,7 @@ function EdexGetTxList_cache(coin) {
console.log(ajax_data_2) console.log(ajax_data_2)
return $.ajax({ return $.ajax({
data: JSON.stringify(ajax_data_2), data: JSON.stringify(ajax_data_2),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
}); });

10
assets/scripts/iguana_api.js

@ -31,7 +31,7 @@ function Iguana_dumpwallet() {
'async': false, 'async': false,
'type': 'POST', 'type': 'POST',
'global': false, 'global': false,
'url': 'http://127.0.0.1:7778', 'url': 'http://127.0.0.1:' + config.iguanaPort,
'data': JSON.stringify(ajax_data), 'data': JSON.stringify(ajax_data),
'success': function (data) { 'success': function (data) {
tmp = data; tmp = data;
@ -49,7 +49,7 @@ function Iguana_dumpwallet() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(ajax_data), data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
//dataType: 'text', //dataType: 'text',
success: function(data, textStatus, jqXHR) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
@ -115,7 +115,7 @@ function Iguana_HashHex(data) {
async: false, async: false,
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
result = AjaxOutputData.hex; result = AjaxOutputData.hex;
@ -145,7 +145,7 @@ function Iguana_CheckActiveCoins() {
'agent': 'InstantDEX', 'agent': 'InstantDEX',
'method': 'allcoins' '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 = []; var result = [];
AjaxOutputData = JSON.parse(AjaxOutputData.responseText); AjaxOutputData = JSON.parse(AjaxOutputData.responseText);
@ -192,7 +192,7 @@ function Iguana_utxorawtx(data) {
console.log(ajax_data); console.log(ajax_data);
$.ajax({ $.ajax({
data: JSON.stringify(ajax_data), data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}).then(result => { }).then(result => {

5
assets/scripts/iguana_api/IguanaAddcoin.js

@ -165,8 +165,7 @@ function Iguana_addcoinLogin(addcoin_data) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(AddCoinData), data: JSON.stringify(AddCoinData),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
//dataType: 'text',
success: function(data, textStatus, jqXHR) { success: function(data, textStatus, jqXHR) {
var addcoinData = JSON.parse(data); var addcoinData = JSON.parse(data);
@ -636,7 +635,7 @@ function Iguana_addcoin(addcoin_data) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(AddCoinData), data: JSON.stringify(AddCoinData),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) { success: function(data, textStatus, jqXHR) {
var addcoinData = JSON.parse(data); var addcoinData = JSON.parse(data);

34
assets/scripts/iguana_api/IguanaDEX.js

@ -14,7 +14,7 @@ function Iguana_DEXgetNotaries(coin) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
@ -48,7 +48,7 @@ function Iguana_DEXImportAddr(coin,addr) {
ajax_call_1= $.ajax({ ajax_call_1= $.ajax({
data: JSON.stringify(ajax_data_1), data: JSON.stringify(ajax_data_1),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}); });
@ -65,7 +65,7 @@ function Iguana_DEXImportAddr(coin,addr) {
return $.ajax({ return $.ajax({
data: JSON.stringify(ajax_data_2), data: JSON.stringify(ajax_data_2),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}); });
@ -109,7 +109,7 @@ function Iguana_DEXImportAllWalletAddr(coin) {
tmp_coin_addr = null, tmp_coin_addr = null,
ajax_call_2= $.ajax({ ajax_call_2= $.ajax({
data: JSON.stringify(ajax_data_2), data: JSON.stringify(ajax_data_2),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}), }),
@ -127,7 +127,7 @@ function Iguana_DEXImportAllWalletAddr(coin) {
}; };
ajax_call_4= $.ajax({ ajax_call_4= $.ajax({
data: JSON.stringify(ajax_data_4), data: JSON.stringify(ajax_data_4),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
}); });
@ -146,7 +146,7 @@ function Iguana_DEXImportAllWalletAddr(coin) {
return $.ajax({ return $.ajax({
data: JSON.stringify(ajax_data_4), data: JSON.stringify(ajax_data_4),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}); });
@ -190,7 +190,7 @@ function Iguana_DEXImportAll() {
}, },
ajax_call_1= $.ajax({ ajax_call_1= $.ajax({
data: JSON.stringify(ajax_data_1), data: JSON.stringify(ajax_data_1),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}); });
@ -208,7 +208,7 @@ function Iguana_DEXImportAll() {
tmp_coin_addr = null, tmp_coin_addr = null,
ajax_call_2= $.ajax({ ajax_call_2= $.ajax({
data: JSON.stringify(ajax_data_2), data: JSON.stringify(ajax_data_2),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}), }),
@ -226,7 +226,7 @@ function Iguana_DEXImportAll() {
}, },
ajax_call_4= $.ajax({ ajax_call_4= $.ajax({
data: JSON.stringify(ajax_data_4), data: JSON.stringify(ajax_data_4),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}), }),
@ -245,7 +245,7 @@ function Iguana_DEXImportAll() {
return $.ajax({ return $.ajax({
data: JSON.stringify(ajax_data_4), data: JSON.stringify(ajax_data_4),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
}); });
@ -304,7 +304,7 @@ function Iguana_DEXCheckAddr(coin,addr) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
result.push(AjaxOutputData); result.push(AjaxOutputData);
@ -343,7 +343,7 @@ function Iguana_DEXValidateAddr(coin, addr) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
@ -388,7 +388,7 @@ function Iguana_DEXsendrawtx(data) {
console.log(ajax_data); console.log(ajax_data);
$.ajax({ $.ajax({
data: JSON.stringify(ajax_data), data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
//dataType: 'json' //dataType: 'json'
}).then(result => { }).then(result => {
@ -417,7 +417,7 @@ function EDEX_DEXlistunspent(coin, addr) {
'address': addr, 'address': addr,
'symbol': coin '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) AjaxOutputData = JSON.parse(AjaxOutputData.responseText)
if (AjaxOutputData == '' ) { if (AjaxOutputData == '' ) {
@ -462,7 +462,7 @@ function EDEX_DEXnotarychains() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); // Ajax output gets the whole list of unspent coin with addresses var AjaxOutputData = JSON.parse(data); // Ajax output gets the whole list of unspent coin with addresses
console.log('== EDEX_DEXnotarychains Data OutPut =='); console.log('== EDEX_DEXnotarychains Data OutPut ==');
@ -499,7 +499,7 @@ function EDEX_DEXgetinfoAll() {
'agent': 'dpow', 'agent': 'dpow',
'method': 'notarychains' '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); get_dex_notarychains = JSON.parse(get_dex_notarychains.responseText);
var refresh_percent = ''; var refresh_percent = '';
@ -516,7 +516,7 @@ function EDEX_DEXgetinfoAll() {
console.log(ajax_data); console.log(ajax_data);
if (coin_value !== 'MESH') { 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); getinfo_each_chain = JSON.parse(getinfo_each_chain.responseText);
console.log('== EDEX_DEXgetinfoAll Data OutPut =='); console.log('== EDEX_DEXgetinfoAll Data OutPut ==');
console.log(getinfo_each_chain); console.log(getinfo_each_chain);

24
assets/scripts/iguana_api/IguanaEDEX.js

@ -40,7 +40,7 @@ function EDEXlistunspent(coin, addr) {
var active_edexcoinmodecode = sessionStorage.getItem('edexTmpMode'), var active_edexcoinmodecode = sessionStorage.getItem('edexTmpMode'),
ajaxCall = $.ajax({ ajaxCall = $.ajax({
data: JSON.stringify(ajax_data), data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}); });
@ -146,7 +146,7 @@ function EDEXMainAddr(coin) {
var ajaxCall = $.ajax({ var ajaxCall = $.ajax({
data: JSON.stringify(ajax_data), data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}); });
@ -182,7 +182,7 @@ function EDEXgetBalance(coin) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
result.push(AjaxOutputData['result']); result.push(AjaxOutputData['result']);
@ -456,7 +456,7 @@ function EDEXSendToAddr(data) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(sendtoaddrvalues), data: JSON.stringify(sendtoaddrvalues),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) { success: function(data, textStatus, jqXHR) {
var SendToAddrData = JSON.parse(data), var SendToAddrData = JSON.parse(data),
edexcoin_sendto_result_tbl = ''; edexcoin_sendto_result_tbl = '';
@ -552,7 +552,7 @@ function EDEXgetinfo(coin) {
'immediate': 100, 'immediate': 100,
'timeout': 4000 '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); AjaxOutputData = JSON.parse(AjaxOutputData.responseText);
resolve(AjaxOutputData); resolve(AjaxOutputData);
}).fail(function(xhr, textStatus, error) { }).fail(function(xhr, textStatus, error) {
@ -582,7 +582,7 @@ function EDEXgettransaction(coin,txid) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(ajax_data), data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:7778' url: 'http://127.0.0.1:' + config.iguanaPort
}).then(function(data) { }).then(function(data) {
//console.log(data); //console.log(data);
res_data = JSON.parse(data); res_data = JSON.parse(data);
@ -597,7 +597,7 @@ function EDEXgettransaction(coin,txid) {
console.log(error); 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) AjaxOutputData = JSON.parse(AjaxOutputData.responseText)
resolve(AjaxOutputData); resolve(AjaxOutputData);
}).fail(function(xhr, textStatus, error) { }).fail(function(xhr, textStatus, error) {
@ -672,7 +672,7 @@ function EDEXgetaddrbyaccount(coin) {
'</span>'; '</span>';
active_edexcoinmodecode = sessionStorage.getItem('edexTmpMode'); 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); data = JSON.parse(AjaxOutputData.responseText);
console.log(data); console.log(data);
@ -703,7 +703,7 @@ function EDEXgetaddrbyaccount(coin) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
$.ajax({ $.ajax({
data: JSON.stringify(params), data: JSON.stringify(params),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}).then(data => { }).then(data => {
@ -745,7 +745,7 @@ function EDEXgetaddrbyaccount(coin) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
$.ajax({ $.ajax({
data: JSON.stringify(params), data: JSON.stringify(params),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}) })
@ -862,7 +862,7 @@ function EDEXgetnewaddress(coin) {
'method': 'getnewaddress', 'method': 'getnewaddress',
'account': '' '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); AjaxOutputData = JSON.parse(AjaxOutputData.responseText);
resolve(AjaxOutputData.result); resolve(AjaxOutputData.result);
}).fail(function(xhr, textStatus, error) { }).fail(function(xhr, textStatus, error) {
@ -887,7 +887,7 @@ function EDEXimportprivkey(params_data) {
'imported' '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); AjaxOutputData = JSON.parse(AjaxOutputData.responseText);
resolve(AjaxOutputData); resolve(AjaxOutputData);
}).fail(function(xhr, textStatus, error) { }).fail(function(xhr, textStatus, error) {

6
assets/scripts/iguana_api/IguanaHandle.js

@ -13,7 +13,7 @@ function Iguana_rmd160conv(rmd160conv_data) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
console.log('== Data OutPut =='); console.log('== Data OutPut ==');
@ -42,7 +42,7 @@ function Iguana_activehandle(callback) {
$.ajax({ $.ajax({
data: JSON.stringify(ajax_data), data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}).then(result => { }).then(result => {
@ -72,7 +72,7 @@ function Iguana_Setactivehandle() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data), var AjaxOutputData = JSON.parse(data),
AjaxOutputDataToStore = JSON.stringify(data); AjaxOutputDataToStore = JSON.stringify(data);

4
assets/scripts/iguana_api/IguanaJumblr.js

@ -10,7 +10,7 @@ function Iguana_Jumblr_SetPassphrase(data) {
$.ajax({ $.ajax({
data: JSON.stringify(ajax_data), data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}).done(function(data) { }).done(function(data) {
@ -30,7 +30,7 @@ function Iguana_Jumblr_Status() {
$.ajax({ $.ajax({
data: JSON.stringify(ajax_data), data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}).done(function(data) { }).done(function(data) {

2
assets/scripts/iguana_api/IguanaUnused.js

@ -8,7 +8,7 @@ function Iguana_activehandle() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(ajax_data), data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
//dataType: 'text', //dataType: 'text',
success: function(data, textStatus, jqXHR) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);

4
assets/scripts/jumblr.js

@ -96,7 +96,7 @@ function Jumblr_LookforNativeKomodo() {
'agent': 'InstantDEX', 'agent': 'InstantDEX',
'method': 'allcoins' '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); AjaxOutputData = JSON.parse(AjaxOutputData.responseText);
if (AjaxOutputData['native'].length !== 0 ) { if (AjaxOutputData['native'].length !== 0 ) {
$.each(AjaxOutputData.native, function( index, value ) { $.each(AjaxOutputData.native, function( index, value ) {
@ -142,7 +142,7 @@ function Jumblr_CheckIfConnected() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(ajax_data), data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:7778' url: 'http://127.0.0.1:' + config.iguanaPort
}).done(function(data){ }).done(function(data){
data = JSON.parse(data) data = JSON.parse(data)
if ( data.errors != undefined ) { if ( data.errors != undefined ) {

8
assets/scripts/kmd_wallet/KMDAddress.js

@ -14,7 +14,7 @@ function KMDListaddrZ() {
async: false, async: false,
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); // Ajax output gets the whole list of unspent coin with addresses 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 // This code gets list of all z_addresses into an array
@ -36,7 +36,7 @@ function KMDListaddrZ() {
async: false, async: false,
type: 'POST', type: 'POST',
data: JSON.stringify(ajax_data_zaddrbalance), 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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
@ -113,7 +113,7 @@ function KMDListAddresses(pubpriv) {
async: false, async: false,
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); // Ajax output gets the whole list of unspent coin with addresses var AjaxOutputData = JSON.parse(data); // Ajax output gets the whole list of unspent coin with addresses
result = AjaxOutputData; result = AjaxOutputData;
@ -167,7 +167,7 @@ function KMDGetNewAddresses(pubpriv) {
async: false, async: false,
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
result = data; result = data;
toastr.success(_lang[defaultLang].KMD_NATIVE.NEW_ADDR_GENERATED, _lang[defaultLang].TOASTR.WALLET_NOTIFICATION); 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({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(ajax_data), data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
//dataType: 'text', //dataType: 'text',
success: function(data, textStatus, jqXHR) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
@ -76,7 +76,7 @@ function getKMDBalanceT() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
}, },
@ -107,7 +107,7 @@ function getKMDBalanceZ() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
}, },

4
assets/scripts/kmd_wallet/KMDGetinfo.js

@ -13,7 +13,7 @@ function getKMDWalletInfo() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
$('#kmd_walletversion').text(AjaxOutputData.walletversion); $('#kmd_walletversion').text(AjaxOutputData.walletversion);
@ -49,7 +49,7 @@ function getKMDInfo() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
$('#kmd_version').text(AjaxOutputData.version); $('#kmd_version').text(AjaxOutputData.version);

18
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() { function RunKMDInitFunctions() {
NProgress.done(true); NProgress.done(true);
NProgress.configure({ NProgress.configure({
@ -42,7 +52,7 @@ function RunKMDInitFunctions() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
@ -67,7 +77,7 @@ function RunKMDInitFunctions() {
function getRemoteCurrentHeight() { function getRemoteCurrentHeight() {
$.ajax({ $.ajax({
type: 'GET', 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) { success: function(data, textStatus, jqXHR) {
data = JSON.parse(data); data = JSON.parse(data);
@ -87,6 +97,7 @@ function RunKMDInitFunctions() {
var currentBestBlockInterval; var currentBestBlockInterval;
function startBestBlockInterval() { function startBestBlockInterval() {
currentBestBlockInterval = setInterval(function() { currentBestBlockInterval = setInterval(function() {
if (!chainActivationLastUpdate || checkTimestamp(chainActivationLastUpdate) > chainActivationLastUpdateTimeout) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: { data: {
@ -103,7 +114,7 @@ function RunKMDInitFunctions() {
var currentBestChain = temp[i].replace('height=', ''); var currentBestChain = temp[i].replace('height=', '');
$('#activating-komodod-tridot').hide(); $('#activating-komodod-tridot').hide();
$('#activating-komodod-progress').html(': ' + Math.floor(currentBestChain * 100 / totalBlocksInExplorer) + '% (blocks ' + currentBestChain + ' / ' + totalBlocksInExplorer + ')'); $('#activating-komodod-progress').html(': ' + Math.floor(currentBestChain * 100 / totalBlocksInExplorer) + '% (blocks ' + currentBestChain + ' / ' + totalBlocksInExplorer + ')');
chainActivationLastUpdate = Date.now();
if (currentBestChain === totalBlocksInExplorer) { if (currentBestChain === totalBlocksInExplorer) {
//clearInterval(totalBlocksInExplorerInterval); //clearInterval(totalBlocksInExplorerInterval);
clearInterval(currentBestBlockInterval); clearInterval(currentBestBlockInterval);
@ -119,6 +130,7 @@ function RunKMDInitFunctions() {
console.log(error); console.log(error);
} }
}); });
}
}, 2000); }, 2000);
} }

2
assets/scripts/kmd_wallet/KMDSendTx.js

@ -20,7 +20,7 @@ function KMDZSendManyTransaction() {
async: false, async: false,
type: 'POST', type: 'POST',
data: JSON.stringify(ajax_data_txid_input), 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) { success: function(data, textStatus, jqXHR) {
console.log('== Data OutPut of z_sendmany =='); console.log('== Data OutPut of z_sendmany ==');
console.log(data); console.log(data);

4
assets/scripts/kmd_wallet/KMDTransaction.js

@ -23,7 +23,7 @@ function KMDGetPublicTransactions() {
async: false, async: false,
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); // Ajax output gets the whole list of unspent coin with addresses var AjaxOutputData = JSON.parse(data); // Ajax output gets the whole list of unspent coin with addresses
//console.log(AjaxOutputData); //console.log(AjaxOutputData);
@ -109,7 +109,7 @@ function KMDGetProtectedTransactions() {
async: false, async: false,
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); // Ajax output gets the whole list of unspent coin with addresses 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, async: false,
type: 'POST', type: 'POST',
data: JSON.stringify(ajax_data), 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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data), // Ajax output gets the whole list of unspent coin with addresses 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 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, async: false,
type: 'POST', type: 'POST',
data: JSON.stringify(ajax_data_txid_input), 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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
result.push(AjaxOutputData); result.push(AjaxOutputData);
@ -122,7 +121,7 @@ function KMDGetOPIDInfo(opid) {
async: false, async: false,
type: 'POST', type: 'POST',
data: JSON.stringify(ajax_data_txid_input), 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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
result.push(AjaxOutputData); result.push(AjaxOutputData);

6
assets/scripts/kmd_wallet_dashboard.js

@ -70,7 +70,7 @@ function CheckIfConnected() {
async: false, async: false,
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
//console.log('== Data OutPut =='); //console.log('== Data OutPut ==');
@ -118,7 +118,7 @@ function CheckIfWalletEncrypted() {
async: false, async: false,
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
console.log('== Data OutPut =='); console.log('== Data OutPut ==');
@ -161,7 +161,7 @@ function KMD_getInfo_rtrn() {
async: false, async: false,
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var AjaxOutputData = JSON.parse(data); 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...', '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_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_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_P3': 'Please wait for all other progress bars to disappear and the first blue bar turns to green.<br/>' +
'IGUANA_FULL_MODE_SYNC_P4': 'That would mean the wallet is in Real Time Sync mode.', 'That would mean the wallet is in Real Time Sync mode.',
'FETCHING_COIN_DATA': 'Fetching coin data from network. Please wait...', 'FETCHING_COIN_DATA': 'Fetching coin data from network. Please wait...',
'INTEREST_EARNED': 'Interest Earned', 'INTEREST_EARNED': 'Interest Earned',
'TOTAL_BALANCE': 'Total Balance', 'TOTAL_BALANCE': 'Total Balance',
@ -107,13 +107,13 @@ const _lang = {
'TYPE': 'Type', 'TYPE': 'Type',
'INTEREST': 'Interest', 'INTEREST': 'Interest',
'OOPS_ERROR': 'Opps! Something is not right...', 'OOPS_ERROR': 'Opps! Something is not right...',
'OOPS_ERROR_DESC1': 'Could not connect to external wallet. Reasons can be', 'OOPS_ERROR_DESC': 'Could not connect to external wallet. Reasons can be:<br/>' +
'OOPS_ERROR_DESC2': 'Your External Wallet/daemon isn\'t running', '- Your External Wallet/daemon isn\'t running<br/>' +
'OOPS_ERROR_DESC3': 'Your External Wallet/daemon is running, but iguana is not given command to connect to External Wallet/daemon', '- Your External Wallet/daemon is running, but iguana is not given command to connect to External Wallet/daemon<br/>' +
'OOPS_ERROR_DESC4': 'Your External Wallet/daemon is setup, but is not setup with config settings like', '- Your External Wallet/daemon is setup, but is not setup with config settings like<br/>',
'ACTIVATING_CHAIN': 'Activating best chain', 'ACTIVATING_CHAIN': 'Activating best chain',
'KMD_STARTED': 'Komodo daemon has been started and is processing.', 'KMD_STARTED': 'Komodo daemon has been started and is processing.<br/>' +
'WAIT_BEST_CHAIN': 'Please wait while the best chain is being activated.', 'Please wait while the best chain is being activated.',
'CONNECTIONS': 'Connections', 'CONNECTIONS': 'Connections',
'TRANSPARENT_BALANCE': 'Transparent Balance', 'TRANSPARENT_BALANCE': 'Transparent Balance',
'Z_BALANCE': 'Private (Z) Balance', 'Z_BALANCE': 'Private (Z) Balance',
@ -147,9 +147,9 @@ const _lang = {
'WALLET_BACKUP': 'Wallet Backup', 'WALLET_BACKUP': 'Wallet Backup',
'FIAT_CURRENCY': 'Fiat Currency', 'FIAT_CURRENCY': 'Fiat Currency',
'EXPORT_KEYS': 'Export Keys', 'EXPORT_KEYS': 'Export Keys',
'ONLY_ACTIVE_WIF_KEYS_P1': 'Only the active coin wallet wif keys will be shown here.', 'ONLY_ACTIVE_WIF_KEYS': 'Only the active coin wallet wif keys will be shown here.<br/>' +
'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.', '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/>' +
'ONLY_ACTIVE_WIF_KEYS_P3': 'You can use these wif keys to import to another coin wallets.', 'You can use these wif keys to import to another coin wallets.',
'PLEASE_KEEP_KEYS_SAFE': 'Please keep these keys extra safe and secure.', 'PLEASE_KEEP_KEYS_SAFE': 'Please keep these keys extra safe and secure.',
'PASSPHRASE': 'Passphrase', 'PASSPHRASE': 'Passphrase',
'GET_WIF_KEYS': 'Get Wif Keys', 'GET_WIF_KEYS': 'Get Wif Keys',
@ -272,7 +272,6 @@ const _lang = {
}, },
'SETTINGS': { 'SETTINGS': {
'PASSPHRASE_REQ': 'Passphrase is required.', 'PASSPHRASE_REQ': 'Passphrase is required.',
} }
} }
}; };

16
assets/scripts/login.js

@ -69,7 +69,7 @@ var Login = function() {
type: 'POST', type: 'POST',
data: ajax_data, data: ajax_data,
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var LoginOutput = JSON.parse(data); var LoginOutput = JSON.parse(data);
LoginDataToStore = JSON.stringify(data), LoginDataToStore = JSON.stringify(data),
@ -245,7 +245,7 @@ var Login = function() {
type: 'POST', type: 'POST',
data: ajax_data, data: ajax_data,
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var CreateWalletOutput = JSON.parse(data); var CreateWalletOutput = JSON.parse(data);
@ -372,7 +372,7 @@ var Login = function() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var LogoutOutput = JSON.parse(data); var LogoutOutput = JSON.parse(data);
// sessionStorage.clear(); // sessionStorage.clear();
@ -440,7 +440,7 @@ var Login = function() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var LockOutput = JSON.parse(data); var LockOutput = JSON.parse(data);
// Begin Check Active Wallet's status // Begin Check Active Wallet's status
@ -454,7 +454,7 @@ var Login = function() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(ajax_data_activehandle), 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) { success: function(data, textStatus, jqXHR) {
var ActiveHandleOutput = JSON.parse(data), var ActiveHandleOutput = JSON.parse(data),
ActiveHandleDataToStore = JSON.stringify(data); ActiveHandleDataToStore = JSON.stringify(data);
@ -575,7 +575,7 @@ var Login = function() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(allcoinsvalues), data: JSON.stringify(allcoinsvalues),
url: 'http://127.0.0.1:7778', url: 'http://127.0.0.1:' + config.iguanaPort,
//dataType: 'text', //dataType: 'text',
success: function(data, textStatus, jqXHR) { success: function(data, textStatus, jqXHR) {
var allcoinsData = JSON.parse(data); var allcoinsData = JSON.parse(data);
@ -616,7 +616,7 @@ var Login = function() {
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
data: AddCoinBasiliskData, 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', dataType: 'text',
success: function(data, textStatus, jqXHR) { success: function(data, textStatus, jqXHR) {
var CoinBasiliskDataOutput = JSON.parse(data); var CoinBasiliskDataOutput = JSON.parse(data);
@ -662,7 +662,7 @@ var Login = function() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var LogoutOutput = JSON.parse(data); var LogoutOutput = JSON.parse(data);
//sessionStorage.clear(); //sessionStorage.clear();

10
assets/scripts/walletsettings.js

@ -35,7 +35,7 @@ var WalletSettings = function() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(allcoins_ajax_data), 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) { success: function(data, textStatus, jqXHR) {
var AllcoinsDataOutput = JSON.parse(data); var AllcoinsDataOutput = JSON.parse(data);
// Only execute further code if that mode has any coins active it. if none, skill checking on them. // Only execute further code if that mode has any coins active it. if none, skill checking on them.
@ -60,7 +60,7 @@ var WalletSettings = function() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(EncryptWallet_ajax_data), 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) { success: function(data, textStatus, jqXHR) {
var EncryptWalletDataOutput = JSON.parse(data); var EncryptWalletDataOutput = JSON.parse(data);
console.log(EncryptWalletDataOutput[wifkey_coin_handle + 'wif']); console.log(EncryptWalletDataOutput[wifkey_coin_handle + 'wif']);
@ -105,7 +105,7 @@ var WalletSettings = function() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(WalletPassphrase_ajax_data), 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) { success: function(data, textStatus, jqXHR) {
var WalletPassphraseDataOutput = JSON.parse(data); var WalletPassphraseDataOutput = JSON.parse(data);
console.log(WalletPassphraseDataOutput); console.log(WalletPassphraseDataOutput);
@ -234,7 +234,7 @@ function Settings_ShowCoinPeers() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var getCoinPeers = JSON.parse(data); var getCoinPeers = JSON.parse(data);
console.log(getCoinPeers); console.log(getCoinPeers);
@ -299,7 +299,7 @@ function Settings_AddCoinPeers() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: JSON.stringify(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) { success: function(data, textStatus, jqXHR) {
var getAddCoinPeers = JSON.parse(data); var getAddCoinPeers = JSON.parse(data);
console.log(getAddCoinPeers); console.log(getAddCoinPeers);

259
index.html

@ -758,10 +758,7 @@
<h4 data-lang="INDEX.ACTIVATING_WALLET_RT"></h4> <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-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 data-lang="INDEX.IGUANA_FULL_MODE_SYNC_P2"></p>
<p> <p data-lang="INDEX.IGUANA_FULL_MODE_SYNC_P3" style="font-weight: 600"></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>
</div> </div>
<div role="alert" class="alert alert-info alert-dismissible" data-edexcoin="COIN" id="edexcoin-wallet-waitingcache-alert" style="display: none"> <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> <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-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 data-lang="INDEX.IGUANA_FULL_MODE_SYNC_P2"></p>
<p> <p data-lang="INDEX.IGUANA_FULL_MODE_SYNC_P3" style="font-weight: 600"></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>
</div> </div>
</div> </div>
@ -1413,16 +1407,20 @@
<div role="alert" class="alert alert-danger alert-dismissible" data-extcoin="COIN" id="extcoin-wallet-connection-alert" style="display: none"> <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> <button aria-label="Close" data-dismiss="alert" class="close" type="button"><span aria-hidden="true">×</span></button>
<h4 data-lang="INDEX.OOPS_ERROR"></h4> <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> <p data-extcoin="COIN" id="extcoin-wallet-connection-alert-text">
- <span data-lang="INDEX.OOPS_ERROR_DESC3"></span><br> <span data-lang="INDEX.OOPS_ERROR_DESC"></span>
- <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> <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>--> <!--<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>
<div role="alert" class="alert alert-info alert-dismissible" data-extcoin="COIN" id="extcoin-wallet-activating-alert" style="display: none"> <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> <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> <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>
<div class="row" data-extcoin="COIN" style="margin: -20px 0px 10px 0px"> <div class="row" data-extcoin="COIN" style="margin: -20px 0px 10px 0px">
@ -1593,16 +1591,13 @@
<!--<th>Actions</th>--> <!--<th>Actions</th>-->
</tr> </tr>
</tfoot> </tfoot>
</table> </table>
</div> </div>
</div> </div>
<!-- End Panel FixedHeader --> <!-- End Panel FixedHeader -->
</div> </div>
</div> </div>
<!-- End KMD Wallet Receive --> <!-- End KMD Wallet Receive -->
</div> </div>
<!-- End Komodo Wallet receive tab --> <!-- End Komodo Wallet receive tab -->
</div> </div>
@ -1652,7 +1647,6 @@
<!-- End Panel getinfo --> <!-- End Panel getinfo -->
</div> </div>
<div class="col-xs-12"> <div class="col-xs-12">
<!-- Komodo Wallet send opid status tab --> <!-- Komodo Wallet send opid status tab -->
<div class="row"> <div class="row">
@ -1687,16 +1681,13 @@
<th data-lang="INDEX.RESULT"></th> <th data-lang="INDEX.RESULT"></th>
</tr> </tr>
</tfoot> </tfoot>
</table> </table>
</div> </div>
</div> </div>
<!-- End Panel FixedHeader --> <!-- End Panel FixedHeader -->
</div> </div>
</div> </div>
<!-- End KMD opid status --> <!-- End KMD opid status -->
</div> </div>
</div> </div>
<!-- End Komodo Wallet send opid status tab --> <!-- End Komodo Wallet send opid status tab -->
@ -1713,11 +1704,36 @@
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
<tbody> <tbody>
<tr><td data-lang="INDEX.WALLET_VERSION"></td><td><span data-extcoin="COIN" id="kmd_walletversion"></span></td></tr> <tr>
<tr><td data-lang="INDEX.BALANCE"></td><td><span data-extcoin="COIN" id="kmd_balance"></span></td></tr> <td data-lang="INDEX.WALLET_VERSION"></td>
<tr><td data-lang="INDEX.UNCONFIRMED_BALANCE"></td><td><span data-extcoin="COIN" id="kmd_unconfirmed_balance"></span></td></tr> <td>
<tr><td data-lang="INDEX.IMMATURE_BALANCE"></td><td><span data-extcoin="COIN" id="kmd_immature_balance"></span></td></tr> <span data-extcoin="COIN" id="kmd_walletversion"></span>
<tr><td data-lang="INDEX.TOTAL_TX_COUNT"></td><td><span data-extcoin="COIN" id="KMDTotalTransactionsCount"></span></td></tr> </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> </tbody>
</table> </table>
</div> </div>
@ -1729,23 +1745,89 @@
<!-- Panel getinfo --> <!-- Panel getinfo -->
<div class="panel" id="projects"> <div class="panel" id="projects">
<div class="panel-heading"> <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>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
<tbody> <tbody>
<tr><td data-lang="INDEX.VERSION"></td><td><span data-extcoin="COIN" id="kmd_version"></span></td></tr> <tr>
<tr><td data-lang="INDEX.PROTOCOL_VERSION"></td><td><span data-extcoin="COIN" id="kmd_protocolversion"></span></td></tr> <td data-lang="INDEX.VERSION"></td>
<tr><td data-lang="INDEX.NOTARIZED"></td><td><span data-extcoin="COIN" id="kmd_notarized"></span></td></tr> <td>
<tr><td><span data-lang="INDEX.NOTARIZED"></span> Hash</td><td><span data-extcoin="COIN" id="kmd_notarizedhash"></span></td></tr> <span data-extcoin="COIN" id="kmd_version"></span>
<tr><td><span data-lang="INDEX.NOTARIZED"></span> BTC</td><td><span data-extcoin="COIN" id="kmd_notarizedbtc"></span></td></tr> </td>
<tr><td data-lang="INDEX.BLOCKS"></td><td><span data-extcoin="COIN" id="kmd_blocks"></span></td></tr> </tr>
<tr><td data-lang="INDEX.CONNECTIONS"></td><td><span data-extcoin="COIN" id="kmd_connections"></span></td></tr> <tr>
<tr><td data-lang="INDEX.DIFFICULTY"></td><td><span data-extcoin="COIN" id="kmd_difficulty"></span></td></tr> <td data-lang="INDEX.PROTOCOL_VERSION"></td>
<tr><td>Testnet</td><td><span data-extcoin="COIN" id="kmd_testnet"></span></td></tr> <td>
<tr><td data-lang="INDEX.PAY_TX_FEE"></td><td><span data-extcoin="COIN" id="kmd_paytxfee"></span></td></tr> <span data-extcoin="COIN" id="kmd_protocolversion"></span>
<tr><td data-lang="INDEX.RELAY_FEE"></td><td><span data-extcoin="COIN" id="kmd_relayfee"></span></td></tr> </td>
<tr><td data-lang="INDEX.ERRORS"></td><td><span data-extcoin="COIN" id="kmd_errors"></span></td></tr> </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> </tbody>
</table> </table>
</div> </div>
@ -1753,7 +1835,6 @@
<!-- End Panel getinfo --> <!-- End Panel getinfo -->
</div> </div>
</div> </div>
</div> </div>
<!-- Modal --> <!-- Modal -->
@ -1933,7 +2014,6 @@
<div class="page-content" id="section-iguana-wallet-settings"> <div class="page-content" id="section-iguana-wallet-settings">
<div class="row" id="iguana-wallet-settings" data-plugin="masonry"> <div class="row" id="iguana-wallet-settings" data-plugin="masonry">
<div class="col-xlg-12 col-md-12"> <div class="col-xlg-12 col-md-12">
<!-- Iguana Wallet Settings Box --> <!-- Iguana Wallet Settings Box -->
<div class="row" id="iguana-wallet-settings" data-plugin="masonry"> <div class="row" id="iguana-wallet-settings" data-plugin="masonry">
<div class="col-xlg-12 col-md-12"> <div class="col-xlg-12 col-md-12">
@ -1944,24 +2024,55 @@
<div class="panel-heading" id="WalletInfo" role="tab"> <div class="panel-heading" id="WalletInfo" role="tab">
<a class="panel-title" data-toggle="collapse" href="#WalletInfoTab" <a class="panel-title" data-toggle="collapse" href="#WalletInfoTab"
data-parent="#SettingsAccordion" aria-expanded="true" data-parent="#SettingsAccordion" aria-expanded="true"
aria-controls="WalletInfoTab"> aria-controls="WalletInfoTab"><i class="icon md-balance-wallet" aria-hidden="true"></i><span data-lang="INDEX.WALLET_INFO"></span></a>
<i class="icon md-balance-wallet" aria-hidden="true"></i><span data-lang="INDEX.WALLET_INFO"></span>
</a>
</div> </div>
<div class="panel-collapse collapse in" id="WalletInfoTab" aria-labelledby="WalletInfo" <div class="panel-collapse collapse in" id="WalletInfoTab" aria-labelledby="WalletInfo"
role="tabpanel"> role="tabpanel">
<div class="panel-body"> <div class="panel-body">
<table class="table" id="wallet-info-table"> <table class="table" id="wallet-info-table">
<thead> <thead>
<tr><th width="10%" data-lang="INDEX.KEY"></th><th data-lang="INDEX.VALUE"></th></tr> <tr>
<th width="10%" data-lang="INDEX.KEY"></th>
<th data-lang="INDEX.VALUE"></th>
</tr>
</thead> </thead>
<tbody> <tbody>
<tr><td style="font-weight: bold">pubkey</td><td><div id="winfo_pubkey_value"></div></td></tr> <tr>
<tr><td style="font-weight: bold">btcpubkey</td><td><div id="winfo_btcpubkey_value"></div></td></tr> <td style="font-weight: bold">pubkey</td>
<tr><td style="font-weight: bold">rmd160</td><td><div id="winfo_rmd160_value"></div></td></tr> <td>
<tr><td style="font-weight: bold">NXT</td><td><div id="winfo_NXT_value"></div></td></tr> <div id="winfo_pubkey_value"></div>
<tr><td style="font-weight: bold">notary</td><td><div id="winfo_notary_value"></div></td></tr> </td>
<tr><td style="font-weight: bold">status</td><td><div id="winfo_status_value"></div></td></tr> </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>--> <!--<tr><td style="font-weight: bold">duration</td><td><div id="winfo_duration_value"></div></td></tr>-->
</tbody> </tbody>
</table> </table>
@ -1973,17 +2084,16 @@
<div class="panel-heading" id="AddNodeforCoin" role="tab"> <div class="panel-heading" id="AddNodeforCoin" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#AddNodeforCoinTab" <a class="panel-title collapsed" data-toggle="collapse" href="#AddNodeforCoinTab"
data-parent="#SettingsAccordion" aria-expanded="false" data-parent="#SettingsAccordion" aria-expanded="false"
aria-controls="AddNodeforCoinTab"> aria-controls="AddNodeforCoinTab"><i class="icon md-plus-square" aria-hidden="true"></i><span data-lang="INDEX.ADD_NODE"></span></a>
<i class="icon md-plus-square" aria-hidden="true"></i><span data-lang="INDEX.ADD_NODE"></span>
</a>
</div> </div>
<div class="panel-collapse collapse" id="AddNodeforCoinTab" aria-labelledby="AddNodeforCoin" <div class="panel-collapse collapse" id="AddNodeforCoinTab" aria-labelledby="AddNodeforCoin"
role="tabpanel"> role="tabpanel">
<div class="panel-body"> <div class="panel-body">
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="col-sm-12"><p data-lang="INDEX.USE_THIS_SECTION"></p></div> <div class="col-sm-12">
<p data-lang="INDEX.USE_THIS_SECTION"></p>
</div>
<div class="col-sm-8 col-xs-12"> <div class="col-sm-8 col-xs-12">
<div class="form-group"> <div class="form-group">
<select class="form-control form-material" id="settings_select_coin_options"> <select class="form-control form-material" id="settings_select_coin_options">
@ -2013,15 +2123,21 @@
<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> <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>
<div class="col-sm-12"> <div class="col-sm-12">
<h5>SuperNET Peers: <span id="coin_supernetpeers_h"></span></h5> <h5>
SuperNET Peers: <span id="coin_supernetpeers_h"></span>
</h5>
<p id="coin_supernetpeers"></p> <p id="coin_supernetpeers"></p>
<h5>Raw Peers: <span id="coin_rawpeers_h"></span></h5> <h5>
Raw Peers: <span id="coin_rawpeers_h"></span>
</h5>
<p id="coin_rawpeers"></p> <p id="coin_rawpeers"></p>
</div> </div>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="col-sm-12"><p data-lang="INDEX.USE_THIS_SECTION_PEER"></p></div> <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="col-sm-8 col-xs-12">
<div class="form-group"> <div class="form-group">
<select class="form-control form-material" id="settings_select_coin_addpeer_options"> <select class="form-control form-material" id="settings_select_coin_addpeer_options">
@ -2054,7 +2170,6 @@
<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> <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>
</div> </div>
@ -2064,15 +2179,11 @@
<div class="panel-heading" id="DumpWallet" role="tab"> <div class="panel-heading" id="DumpWallet" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#DumpWalletTab" <a class="panel-title collapsed" data-toggle="collapse" href="#DumpWalletTab"
data-parent="#SettingsAccordion" aria-expanded="false" data-parent="#SettingsAccordion" aria-expanded="false"
aria-controls="DumpWalletTab"> aria-controls="DumpWalletTab"><i class="icon wb-briefcase" aria-hidden="true"></i><span data-lang="INDEX.WALLET_BACKUP"></span></a>
<i class="icon wb-briefcase" aria-hidden="true"></i><span data-lang="INDEX.WALLET_BACKUP"></span>
</a>
</div> </div>
<div class="panel-collapse collapse" id="DumpWalletTab" aria-labelledby="DumpWallet" <div class="panel-collapse collapse" id="DumpWalletTab" aria-labelledby="DumpWallet"
role="tabpanel"> role="tabpanel">
<div class="panel-body"> <div class="panel-body">Wallet Backup section to be updated soon.</div>
Wallet Backup section to be updated soon.
</div>
</div> </div>
</div> </div>
@ -2080,15 +2191,10 @@
<div class="panel-heading" id="FiatCurrencySettings" role="tab"> <div class="panel-heading" id="FiatCurrencySettings" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#FiatCurrencySettingsTab" <a class="panel-title collapsed" data-toggle="collapse" href="#FiatCurrencySettingsTab"
data-parent="#SettingsAccordion" aria-expanded="false" data-parent="#SettingsAccordion" aria-expanded="false"
aria-controls="FiatCurrencySettingsTab"> aria-controls="FiatCurrencySettingsTab"><i class="icon fa-money" aria-hidden="true"></i><span data-lang="INDEX.FIAT_CURRENCY"></span></a>
<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 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>
@ -2096,17 +2202,13 @@
<div class="panel-heading" id="ExportKeys" role="tab"> <div class="panel-heading" id="ExportKeys" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#ExportKeysTab" <a class="panel-title collapsed" data-toggle="collapse" href="#ExportKeysTab"
data-parent="#SettingsAccordion" aria-expanded="false" data-parent="#SettingsAccordion" aria-expanded="false"
aria-controls="ExportKeysTab"> aria-controls="ExportKeysTab"><i class="icon md-key" aria-hidden="true"></i><span data-lang="INDEX.EXPORT_KEYS"></span></a>
<i class="icon md-key" aria-hidden="true"></i><span data-lang="INDEX.EXPORT_KEYS"></span>
</a>
</div> </div>
<div class="panel-collapse collapse" id="ExportKeysTab" aria-labelledby="ExportKeys" <div class="panel-collapse collapse" id="ExportKeysTab" aria-labelledby="ExportKeys"
role="tabpanel"> role="tabpanel">
<div class="panel-body"> <div class="panel-body">
<p> <p>
<div data-lang="INDEX.ONLY_ACTIVE_WIF_KEYS_P1"></div><br/> <div data-lang="INDEX.ONLY_ACTIVE_WIF_KEYS"></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> <b><i data-lang="INDEX.PLEASE_KEEP_KEYS_SAFE"></i></b>
</p> </p>
<div class="col-sm-12"></div> <div class="col-sm-12"></div>
@ -2297,6 +2399,7 @@
<script src="assets/global/js/components/jquery-labelauty.min.js"></script> <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/alertify-js.js"></script>
<script src="assets/global/js/components/panel.min.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> <script src="assets/scripts/checkie.js"></script>
<!-- Iguana API Scripts --> <!-- Iguana API Scripts -->

Loading…
Cancel
Save