-
Notifications
You must be signed in to change notification settings - Fork 0
/
module.go
39 lines (33 loc) · 934 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package module
import (
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/ibc-go/v8/modules/core/exported"
"github.com/hyperledger-labs/yui-relayer/config"
"github.com/hyperledger-labs/yui-relayer/core"
"github.com/spf13/cobra"
)
type Module struct{}
var _ config.ModuleI = (*Module)(nil)
// Name returns the name of the module
func (Module) Name() string {
return "ibft2-prover"
}
// RegisterInterfaces register the module interfaces to protobuf Any.
func (Module) RegisterInterfaces(registry codectypes.InterfaceRegistry) {
registry.RegisterImplementations(
(*core.ProverConfig)(nil),
&ProverConfig{},
)
registry.RegisterImplementations(
(*exported.ClientState)(nil),
&ClientState{},
)
registry.RegisterImplementations(
(*exported.ConsensusState)(nil),
&ConsensusState{},
)
}
// GetCmd returns the command
func (Module) GetCmd(ctx *config.Context) *cobra.Command {
return nil
}