diff --git a/cmd/wasm-client/go.mod b/cmd/wasm-client/go.mod index 20770ad5..bcb3fd64 100644 --- a/cmd/wasm-client/go.mod +++ b/cmd/wasm-client/go.mod @@ -191,4 +191,6 @@ replace github.com/lightninglabs/lightning-node-connect => ../../ replace github.com/lightninglabs/lightning-node-connect/hashmailrpc => ../../hashmailrpc +replace github.com/lightninglabs/lightning-terminal => github.com/ellemouton/lightning-terminal f34139c610015d632754d1bd00f341e0b7bb2dad + go 1.19 diff --git a/cmd/wasm-client/go.sum b/cmd/wasm-client/go.sum index dc180f9f..19862ca6 100644 --- a/cmd/wasm-client/go.sum +++ b/cmd/wasm-client/go.sum @@ -466,8 +466,6 @@ github.com/lightninglabs/faraday v0.2.11-alpha h1:c6oa8p+QUiQ1SeYhx6jZ2jo+lmjk9f github.com/lightninglabs/faraday v0.2.11-alpha/go.mod h1:O+SNG4Op0vPwDzpM7yhNKOd8Z0MhbVzuq0VzIy2HekM= github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf h1:HZKvJUHlcXI/f/O0Avg7t8sqkPo78HFzjmeYFl6DPnc= github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf/go.mod h1:vxmQPeIQxPf6Jf9rM8R+B4rKBqLA2AjttNxkFBL2Plk= -github.com/lightninglabs/lightning-terminal v0.10.1-alpha.0.20230612093826-ee04747e4a34 h1:bTn1s3zTIGs2tgU24+fMZBTpXKtu1l7HPOoG0ijQn8I= -github.com/lightninglabs/lightning-terminal v0.10.1-alpha.0.20230612093826-ee04747e4a34/go.mod h1:wYu5xQ/ubiPSwMDSXI2j5AQClxxh4n8fSq0bvfgvHh4= github.com/lightninglabs/loop v0.24.1-beta h1:SkcN5c79hWM1RBlgilwJK61hPNiBDP3IoaBLqBzb0sk= github.com/lightninglabs/loop v0.24.1-beta/go.mod h1:rh5c7KZMNV/GOJ79n3x5qrO9h6FZT7ZZ54b6/FPIhQI= github.com/lightninglabs/loop/swapserverrpc v1.0.4 h1:cEX+mt7xmQlEbmuQ52vOBT7l+a471v94ofdJbB6MmXs= 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