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

     1  package connection
     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/03-connection/client/cli"
     7  	"github.com/fibonacci-chain/fbc/libs/ibc-go/modules/core/03-connection/types"
     8  	"github.com/gogo/protobuf/grpc"
     9  	"github.com/spf13/cobra"
    10  )
    11  
    12  // Name returns the IBC connection ICS name.
    13  func Name() string {
    14  	return types.SubModuleName
    15  }
    16  
    17  // GetQueryCmd returns the root query command for the IBC connections.
    18  func GetQueryCmd(cdc *codec.CodecProxy, reg interfacetypes.InterfaceRegistry) *cobra.Command {
    19  	return cli.GetQueryCmd(cdc, reg)
    20  }
    21  
    22  // RegisterQueryService registers the gRPC query service for IBC connections.
    23  func RegisterQueryService(server grpc.Server, queryServer types.QueryServer) {
    24  	types.RegisterQueryServer(server, queryServer)
    25  }