@@ -12,6 +12,8 @@ import (
1212 "github.com/lightninglabs/taproot-assets/taprpc"
1313 "github.com/lightninglabs/taproot-assets/taprpc/assetwalletrpc"
1414 "github.com/lightninglabs/taproot-assets/taprpc/mintrpc"
15+ "github.com/lightninglabs/taproot-assets/taprpc/rfqrpc"
16+ tchrpc "github.com/lightninglabs/taproot-assets/taprpc/tapchannelrpc"
1517 "github.com/lightninglabs/taproot-assets/taprpc/universerpc"
1618 "github.com/lightningnetwork/lnd/lnrpc"
1719 "google.golang.org/grpc"
@@ -45,6 +47,7 @@ func NewTaprootAssetsSubServer(cfg *tapcfg.Config,
4547 tap .SetAgentName ("litd" )
4648
4749 return & taprootAssetsSubServer {
50+ Server : tap .NewServer (nil ),
4851 cfg : cfg ,
4952 remoteCfg : remoteCfg ,
5053 remote : remote ,
@@ -116,6 +119,8 @@ func (t *taprootAssetsSubServer) RegisterGrpcService(
116119 taprpc .RegisterTaprootAssetsServer (registrar , t )
117120 mintrpc .RegisterMintServer (registrar , t )
118121 assetwalletrpc .RegisterAssetWalletServer (registrar , t )
122+ rfqrpc .RegisterRfqServer (registrar , t )
123+ tchrpc .RegisterTaprootAssetChannelsServer (registrar , t )
119124 universerpc .RegisterUniverseServer (registrar , t )
120125}
121126
@@ -148,6 +153,20 @@ func (t *taprootAssetsSubServer) RegisterRestService(ctx context.Context,
148153 return err
149154 }
150155
156+ err = rfqrpc .RegisterRfqHandlerFromEndpoint (
157+ ctx , mux , endpoint , dialOpts ,
158+ )
159+ if err != nil {
160+ return err
161+ }
162+
163+ err = tchrpc .RegisterTaprootAssetChannelsHandlerFromEndpoint (
164+ ctx , mux , endpoint , dialOpts ,
165+ )
166+ if err != nil {
167+ return err
168+ }
169+
151170 err = universerpc .RegisterUniverseHandlerFromEndpoint (
152171 ctx , mux , endpoint , dialOpts ,
153172 )
@@ -209,3 +228,9 @@ func (t *taprootAssetsSubServer) WhiteListedURLs() map[string]struct{} {
209228 t .cfg .RpcConf .AllowPublicStats || t .remote ,
210229 )
211230}
231+
232+ // Impl returns the actual implementation of the sub-server. This might not be
233+ // set if the sub-server is running in remote mode.
234+ func (t * taprootAssetsSubServer ) Impl () any {
235+ return t .Server
236+ }
0 commit comments