File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 147147 window [ namespace ] . wasmClientInvokeRPC ( 'lnrpc.Lightning.' + rpcName , req , setResult ) ;
148148 }
149149
150+ async function callWASMStatus ( rpcName , req ) {
151+ window [ namespace ] . wasmClientInvokeRPC ( 'litrpc.Status.' + rpcName , req , setResult ) ;
152+ }
153+
150154 async function callWASMLoop ( rpcName , req ) {
151155 window [ namespace ] . wasmClientInvokeRPC ( 'looprpc.SwapClient.' + rpcName , req , setResult ) ;
152156 }
265269 if ( window [ namespace ] . wasmClientHasPerms ( "wtclientrpc.WatchtowerClient.ListTowers" ) ) {
266270 document . getElementById ( 'wtclientrpc' ) . disabled = false ;
267271 }
272+ if ( window [ namespace ] . wasmClientHasPerms ( "litrpc.Status.SubServerStatus" ) ) {
273+ document . getElementById ( 'getstatus' ) . disabled = false ;
274+ }
268275 if ( window [ namespace ] . wasmClientHasPerms ( "looprpc.SwapClient.LoopOutTerms" ) ) {
269276 document . getElementById ( 'loopoutterms' ) . disabled = false ;
270277 }
@@ -352,6 +359,9 @@ <h2>LND</h2>
352359 < button id ="watchtowerrpc " onClick ="callWASMDirect('watchtowerrpc.Watchtower.GetInfo', '{}'); " disabled > GetInfo</ button >
353360 < button id ="wtclientrpc " onClick ="callWASMDirect('wtclientrpc.WatchtowerClient.ListTowers', '{}'); " disabled > ListTowers</ button >
354361
362+ < h2 > Status</ h2 >
363+ < button id ="getstatus " onClick ="callWASMStatus('SubServerStatus', '{}'); " disabled > SubServerStatus</ button >
364+
355365 < h2 > Loop</ h2 >
356366 < button id ="loopoutterms " onClick ="callWASMLoop('LoopOutTerms', '{}'); " disabled > LoopOutTerms</ button >
357367
You can’t perform that action at this time.
0 commit comments