-
Notifications
You must be signed in to change notification settings - Fork 1
/
module.go
25 lines (21 loc) · 870 Bytes
/
module.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package connection
import (
"github.com/FiboChain/fbc/libs/cosmos-sdk/codec"
interfacetypes "github.com/FiboChain/fbc/libs/cosmos-sdk/codec/types"
"github.com/FiboChain/fbc/libs/ibc-go/modules/core/03-connection/client/cli"
"github.com/FiboChain/fbc/libs/ibc-go/modules/core/03-connection/types"
"github.com/gogo/protobuf/grpc"
"github.com/spf13/cobra"
)
// Name returns the IBC connection ICS name.
func Name() string {
return types.SubModuleName
}
// GetQueryCmd returns the root query command for the IBC connections.
func GetQueryCmd(cdc *codec.CodecProxy, reg interfacetypes.InterfaceRegistry) *cobra.Command {
return cli.GetQueryCmd(cdc, reg)
}
// RegisterQueryService registers the gRPC query service for IBC connections.
func RegisterQueryService(server grpc.Server, queryServer types.QueryServer) {
types.RegisterQueryServer(server, queryServer)
}