File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 147
147
window [ namespace ] . wasmClientInvokeRPC ( 'lnrpc.Lightning.' + rpcName , req , setResult ) ;
148
148
}
149
149
150
+ async function callWASMStatus ( rpcName , req ) {
151
+ window [ namespace ] . wasmClientInvokeRPC ( 'litrpc.Status.' + rpcName , req , setResult ) ;
152
+ }
153
+
150
154
async function callWASMLoop ( rpcName , req ) {
151
155
window [ namespace ] . wasmClientInvokeRPC ( 'looprpc.SwapClient.' + rpcName , req , setResult ) ;
152
156
}
265
269
if ( window [ namespace ] . wasmClientHasPerms ( "wtclientrpc.WatchtowerClient.ListTowers" ) ) {
266
270
document . getElementById ( 'wtclientrpc' ) . disabled = false ;
267
271
}
272
+ if ( window [ namespace ] . wasmClientHasPerms ( "litrpc.Status.SubServerStatus" ) ) {
273
+ document . getElementById ( 'getstatus' ) . disabled = false ;
274
+ }
268
275
if ( window [ namespace ] . wasmClientHasPerms ( "looprpc.SwapClient.LoopOutTerms" ) ) {
269
276
document . getElementById ( 'loopoutterms' ) . disabled = false ;
270
277
}
@@ -352,6 +359,9 @@ <h2>LND</h2>
352
359
< button id ="watchtowerrpc " onClick ="callWASMDirect('watchtowerrpc.Watchtower.GetInfo', '{}'); " disabled > GetInfo</ button >
353
360
< button id ="wtclientrpc " onClick ="callWASMDirect('wtclientrpc.WatchtowerClient.ListTowers', '{}'); " disabled > ListTowers</ button >
354
361
362
+ < h2 > Status</ h2 >
363
+ < button id ="getstatus " onClick ="callWASMStatus('SubServerStatus', '{}'); " disabled > SubServerStatus</ button >
364
+
355
365
< h2 > Loop</ h2 >
356
366
< button id ="loopoutterms " onClick ="callWASMLoop('LoopOutTerms', '{}'); " disabled > LoopOutTerms</ button >
357
367
You can’t perform that action at this time.
0 commit comments