github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/ibc-go/modules/core/04-channel/module.go (about)

     1  package channel
     2  
     3  import (
     4  	"github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec"
     5  	interfacetypes "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec/types"
     6  	"github.com/fibonacci-chain/fbc/libs/ibc-go/modules/core/04-channel/client/cli"
     7  	"github.com/fibonacci-chain/fbc/libs/ibc-go/modules/core/04-channel/types"
     8  	"github.com/gogo/protobuf/grpc"
     9  	"github.com/spf13/cobra"
    10  )
    11  
    12  // Name returns the IBC channel ICS name.
    13  func Name() string {
    14  	return types.SubModuleName
    15  }
    16  
    17  // GetTxCmd returns the root tx command for IBC channels.
    18  func GetTxCmd() *cobra.Command {
    19  	return cli.NewTxCmd()
    20  }
    21  
    22  // GetQueryCmd returns the root query command for IBC channels.
    23  func GetQueryCmd(cdc *codec.CodecProxy, reg interfacetypes.InterfaceRegistry) *cobra.Command {
    24  	return cli.GetQueryCmd(cdc, reg)
    25  }
    26  
    27  // RegisterQueryService registers the gRPC query service for IBC channels.
    28  func RegisterQueryService(server grpc.Server, queryServer types.QueryServer) {
    29  	types.RegisterQueryServer(server, queryServer)
    30  }