* x/ibc: final gRPC migration * grpc test * query client consensus states * remove dup type * query constructors * CLI queries * missing cmd * latest consensus state * parser test * register query service * Update x/ibc/02-client/client/cli/query.go Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com> * Update x/ibc/module.go Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com> * few grpc tests * fix tests * final gRPC tests * rm comment * address @colin-axner comment Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
25 lines
620 B
Go
25 lines
620 B
Go
package client
|
|
|
|
import (
|
|
"github.com/gogo/protobuf/grpc"
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/cosmos/cosmos-sdk/x/ibc/02-client/client/cli"
|
|
"github.com/cosmos/cosmos-sdk/x/ibc/02-client/types"
|
|
)
|
|
|
|
// Name returns the IBC client name
|
|
func Name() string {
|
|
return types.SubModuleName
|
|
}
|
|
|
|
// GetQueryCmd returns no root query command for the IBC client
|
|
func GetQueryCmd() *cobra.Command {
|
|
return cli.GetQueryCmd()
|
|
}
|
|
|
|
// RegisterQueryService registers the gRPC query service for IBC client.
|
|
func RegisterQueryService(server grpc.Server, queryServer types.QueryServer) {
|
|
types.RegisterQueryServer(server, queryServer)
|
|
}
|