From c7b365604c39989167ce2b3e137c186b8b0d1c0b Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Mon, 10 Jul 2023 11:21:58 +0200 Subject: [PATCH] cmd+example: update with Status server access --- example/index.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/example/index.html b/example/index.html index ffdf62c2..10f3f6fb 100644 --- a/example/index.html +++ b/example/index.html @@ -147,6 +147,10 @@ window[namespace].wasmClientInvokeRPC('lnrpc.Lightning.' + rpcName, req, setResult); } + async function callWASMStatus(rpcName, req) { + window[namespace].wasmClientInvokeRPC('litrpc.Status.' + rpcName, req, setResult); + } + async function callWASMLoop(rpcName, req) { window[namespace].wasmClientInvokeRPC('looprpc.SwapClient.' + rpcName, req, setResult); } @@ -265,6 +269,9 @@ if (window[namespace].wasmClientHasPerms("wtclientrpc.WatchtowerClient.ListTowers")) { document.getElementById('wtclientrpc').disabled = false; } + if (window[namespace].wasmClientHasPerms("litrpc.Status.SubServerStatus")) { + document.getElementById('getstatus').disabled = false; + } if (window[namespace].wasmClientHasPerms("looprpc.SwapClient.LoopOutTerms")) { document.getElementById('loopoutterms').disabled = false; } @@ -352,6 +359,9 @@

LND

+

Status

+ +

Loop