Skip to content

Commit 5aa8730

Browse files
example: add Taproot Assets to index.html
1 parent aac8c84 commit 5aa8730

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

example/index.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,11 @@
158158
async function callWASMFaraday(rpcName, req) {
159159
window[namespace].wasmClientInvokeRPC('frdrpc.FaradayServer.' + rpcName, req, setResult);
160160
}
161-
161+
162+
async function callWASMTaprootAssets(rpcName, req) {
163+
window[namespace].wasmClientInvokeRPC('taprpc.TaprootAssets.' + rpcName, req, setResult);
164+
}
165+
162166
async function callWASMDirect(rpcName, req) {
163167
window[namespace].wasmClientInvokeRPC(rpcName, req, setResult);
164168
}
@@ -270,6 +274,9 @@
270274
if (window[namespace].wasmClientHasPerms("frdrpc.FaradayServer.RevenueReport")) {
271275
document.getElementById('revenuereport').disabled = false;
272276
}
277+
if (window[namespace].wasmClientHasPerms("taprpc.TaprootAssets.ListAssets")) {
278+
document.getElementById('listassets').disabled = false;
279+
}
273280
if (window[namespace].wasmClientHasPerms("litrpc.Autopilot.ListAutopilotFeatures")) {
274281
document.getElementById('autopilotfeatures').disabled = false;
275282
}
@@ -354,6 +361,9 @@ <h2>Pool</h2>
354361
<h2>Faraday</h2>
355362
<button id="revenuereport" onClick="callWASMFaraday('RevenueReport', '{}');" disabled>RevenueReport</button>
356363

364+
<h2>Taproot Assets</h2>
365+
<button id="listassets" onClick="callWASMTaprootAssets('ListAssets', '{}');" disabled>List Assets</button>
366+
357367
<h2>Autopilot</h2>
358368
<button id="autopilotfeatures" onClick="callWASMAutopilot('ListAutopilotFeatures', '{}');" disabled>ListAutopilotFeatures</button>
359369
<button id="autopilotsessions" onClick="callWASMAutopilot('ListAutopilotSessions', '{}');" disabled>ListAutopilotSessions</button>

0 commit comments

Comments
 (0)