|
158 | 158 | async function callWASMFaraday(rpcName, req) {
|
159 | 159 | window[namespace].wasmClientInvokeRPC('frdrpc.FaradayServer.' + rpcName, req, setResult);
|
160 | 160 | }
|
161 |
| - |
| 161 | + |
| 162 | + async function callWASMTaprootAssets(rpcName, req) { |
| 163 | + window[namespace].wasmClientInvokeRPC('taprpc.TaprootAssets.' + rpcName, req, setResult); |
| 164 | + } |
| 165 | + |
162 | 166 | async function callWASMDirect(rpcName, req) {
|
163 | 167 | window[namespace].wasmClientInvokeRPC(rpcName, req, setResult);
|
164 | 168 | }
|
|
270 | 274 | if (window[namespace].wasmClientHasPerms("frdrpc.FaradayServer.RevenueReport")) {
|
271 | 275 | document.getElementById('revenuereport').disabled = false;
|
272 | 276 | }
|
| 277 | + if (window[namespace].wasmClientHasPerms("taprpc.TaprootAssets.ListAssets")) { |
| 278 | + document.getElementById('listassets').disabled = false; |
| 279 | + } |
273 | 280 | if (window[namespace].wasmClientHasPerms("litrpc.Autopilot.ListAutopilotFeatures")) {
|
274 | 281 | document.getElementById('autopilotfeatures').disabled = false;
|
275 | 282 | }
|
@@ -354,6 +361,9 @@ <h2>Pool</h2>
|
354 | 361 | <h2>Faraday</h2>
|
355 | 362 | <button id="revenuereport" onClick="callWASMFaraday('RevenueReport', '{}');" disabled>RevenueReport</button>
|
356 | 363 |
|
| 364 | + <h2>Taproot Assets</h2> |
| 365 | + <button id="listassets" onClick="callWASMTaprootAssets('ListAssets', '{}');" disabled>List Assets</button> |
| 366 | + |
357 | 367 | <h2>Autopilot</h2>
|
358 | 368 | <button id="autopilotfeatures" onClick="callWASMAutopilot('ListAutopilotFeatures', '{}');" disabled>ListAutopilotFeatures</button>
|
359 | 369 | <button id="autopilotsessions" onClick="callWASMAutopilot('ListAutopilotSessions', '{}');" disabled>ListAutopilotSessions</button>
|
|
0 commit comments