|
|
@ -2395,6 +2395,47 @@ function EDEX_DEXgetinfoAll() { |
|
|
|
return result[0]; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function Iguana_Jumblr_SetPassphrase(data) { |
|
|
|
return new Promise((resolve) => { |
|
|
|
var tmpIguanaRPCAuth = 'tmpIgRPCUser@' + sessionStorage.getItem('IguanaRPCAuth'), |
|
|
|
ajax_data = { |
|
|
|
'userpass': tmpIguanaRPCAuth, |
|
|
|
'agent': 'jumblr', |
|
|
|
'method': 'setpassphrase', |
|
|
|
'passphrase': data.passphrase |
|
|
|
}; |
|
|
|
$.ajax({ |
|
|
|
data: JSON.stringify(ajax_data), |
|
|
|
url: 'http://127.0.0.1:7778', |
|
|
|
type: 'POST', |
|
|
|
dataType: 'json' |
|
|
|
}).done(function(data) { |
|
|
|
resolve(data); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function Iguana_Jumblr_Status() { |
|
|
|
return new Promise((resolve) => { |
|
|
|
var tmpIguanaRPCAuth = 'tmpIgRPCUser@' + sessionStorage.getItem('IguanaRPCAuth'), |
|
|
|
ajax_data = { |
|
|
|
'userpass': tmpIguanaRPCAuth, |
|
|
|
'agent': 'jumblr', |
|
|
|
'method': 'status' |
|
|
|
}; |
|
|
|
$.ajax({ |
|
|
|
data: JSON.stringify(ajax_data), |
|
|
|
url: 'http://127.0.0.1:7778', |
|
|
|
type: 'POST', |
|
|
|
dataType: 'json' |
|
|
|
}).done(function(data) { |
|
|
|
resolve(data); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
function Shepherd_getConf(coin) { |
|
|
|
var result = [], |
|
|
|
ajax_data = { 'chain': coin }; |
|
|
|