github.com/okex/exchain@v1.8.0/libs/ibc-go/modules/core/02-client/module.go (about) 1 package client 2 3 import ( 4 "github.com/gogo/protobuf/grpc" 5 "github.com/okex/exchain/libs/cosmos-sdk/codec" 6 interfacetypes "github.com/okex/exchain/libs/cosmos-sdk/codec/types" 7 "github.com/okex/exchain/libs/ibc-go/modules/core/02-client/client/cli" 8 "github.com/okex/exchain/libs/ibc-go/modules/core/02-client/types" 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 }