github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/cosmos-sdk/types/tx/service.go (about)

     1  package tx
     2  
     3  import (
     4  	"context"
     5  
     6  	gogogrpc "github.com/gogo/protobuf/grpc"
     7  	"github.com/grpc-ecosystem/grpc-gateway/runtime"
     8  )
     9  
    10  // RegisterGRPCGatewayRoutes mounts the tx service's GRPC-gateway routes on the
    11  // given Mux.
    12  func RegisterGRPCGatewayRoutes(clientConn gogogrpc.ClientConn, mux *runtime.ServeMux) {
    13  	RegisterServiceHandlerClient(context.Background(), mux, NewServiceClient(clientConn))
    14  }