* remove old light client cli cmds and replace with generic ones housed in client * remove print and add client cli getter cmds * use any as arguments * revert back to single pub key * fix tests * typo * remove todo * add upgrade cli cmd cc @AdityaSripal * register upgrade cmd
30 lines
744 B
Go
30 lines
744 B
Go
package client
|
|
|
|
import (
|
|
"github.com/gogo/protobuf/grpc"
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/cosmos/cosmos-sdk/x/ibc/core/02-client/client/cli"
|
|
"github.com/cosmos/cosmos-sdk/x/ibc/core/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()
|
|
}
|
|
|
|
// GetTxCmd returns the root tx command for 02-client.
|
|
func GetTxCmd() *cobra.Command {
|
|
return cli.NewTxCmd()
|
|
}
|
|
|
|
// RegisterQueryService registers the gRPC query service for IBC client.
|
|
func RegisterQueryService(server grpc.Server, queryServer types.QueryServer) {
|
|
types.RegisterQueryServer(server, queryServer)
|
|
}
|