From 31c3cf471bdec5fb29c9d048eadfb4ca0b195637 Mon Sep 17 00:00:00 2001 From: Satinder Grewal Date: Sat, 4 Mar 2017 12:47:29 +1300 Subject: [PATCH] Jumblr functions were missing somehow. added again to code files --- assets/scripts/iguana_api.js | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/assets/scripts/iguana_api.js b/assets/scripts/iguana_api.js index 4242009..5877533 100644 --- a/assets/scripts/iguana_api.js +++ b/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 };