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