cosmos-sdk/x/ibc/03-connection/module.go
2020-08-18 08:39:40 -04:00

30 lines
777 B
Go

package connection
import (
"github.com/gogo/protobuf/grpc"
"github.com/spf13/cobra"
"github.com/cosmos/cosmos-sdk/x/ibc/03-connection/client/cli"
"github.com/cosmos/cosmos-sdk/x/ibc/03-connection/types"
)
// Name returns the IBC connection ICS name.
func Name() string {
return types.SubModuleName
}
// GetTxCmd returns the root tx command for the IBC connections.
func GetTxCmd() *cobra.Command {
return cli.NewTxCmd()
}
// GetQueryCmd returns the root query command for the IBC connections.
func GetQueryCmd() *cobra.Command {
return cli.GetQueryCmd()
}
// RegisterQueryService registers the gRPC query service for IBC connections.
func RegisterQueryService(server grpc.Server, queryServer types.QueryServer) {
types.RegisterQueryServer(server, queryServer)
}