Browse Source

Jumblr functions were missing somehow. added again to code files

master
Satinder Grewal 8 years ago
parent
commit
31c3cf471b
  1. 41
      assets/scripts/iguana_api.js

41
assets/scripts/iguana_api.js

@ -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 };

Loading…
Cancel
Save