@@ -20,6 +20,7 @@ function App() {
2020 const { swapClient } = lnc . loop ;
2121 const { trader } = lnc . pool ;
2222 const { faradayServer } = lnc . faraday ;
23+ const { taprootAssets, mint, universe, assetWallet } = lnc . tapd ;
2324
2425 // LND
2526
@@ -79,6 +80,28 @@ function App() {
7980 console . log ( insights ) ;
8081 } ;
8182
83+ // Taproot Assets
84+
85+ const listAssets = async ( ) => {
86+ const assets = await taprootAssets . listAssets ( ) ;
87+ console . log ( assets ) ;
88+ } ;
89+
90+ const listBatches = async ( ) => {
91+ const assets = await mint . listBatches ( ) ;
92+ console . log ( assets ) ;
93+ } ;
94+
95+ const listFederationServers = async ( ) => {
96+ const assets = await universe . listFederationServers ( ) ;
97+ console . log ( assets ) ;
98+ } ;
99+
100+ const nextScriptKey = async ( ) => {
101+ const assets = await assetWallet . nextScriptKey ( { keyFamily : 1 } )
102+ console . log ( assets ) ;
103+ } ;
104+
82105 return (
83106 < div className = "App" >
84107 < header className = "App-header" >
@@ -103,6 +126,11 @@ function App() {
103126 < button onClick = { ( ) => auctionFee ( ) } > auctionFee</ button >
104127 < h1 > Faraday</ h1 >
105128 < button onClick = { ( ) => channelInsights ( ) } > channelInsights</ button >
129+ < h1 > Taproot Assets</ h1 >
130+ < button onClick = { ( ) => listAssets ( ) } > listAssets</ button >
131+ < button onClick = { ( ) => listBatches ( ) } > listBatches</ button >
132+ < button onClick = { ( ) => listFederationServers ( ) } > listFederationServers</ button >
133+ < button onClick = { ( ) => nextScriptKey ( ) } > nextScriptKey</ button >
106134 </ header >
107135 </ div >
108136 ) ;
0 commit comments