github.com/okex/exchain@v1.8.0/libs/ibc-go/modules/core/04-channel/module.go (about) 1 package channel 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/04-channel/client/cli" 8 "github.com/okex/exchain/libs/ibc-go/modules/core/04-channel/types" 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 }