2020-04-17 19:36:12 -07:00
|
|
|
package types
|
2020-04-17 07:36:47 -07:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
|
|
)
|
|
|
|
|
2020-04-17 19:36:12 -07:00
|
|
|
const (
|
|
|
|
// SubModuleName for the localhost (loopback) client
|
|
|
|
SubModuleName = "localhost"
|
|
|
|
)
|
|
|
|
|
2020-04-17 07:36:47 -07:00
|
|
|
// SubModuleCdc defines the IBC localhost client codec.
|
|
|
|
var SubModuleCdc *codec.Codec
|
|
|
|
|
|
|
|
// RegisterCodec registers the localhost types
|
|
|
|
func RegisterCodec(cdc *codec.Codec) {
|
|
|
|
cdc.RegisterConcrete(ClientState{}, "ibc/client/localhost/ClientState", nil)
|
2020-04-20 03:08:36 -07:00
|
|
|
cdc.RegisterConcrete(MsgCreateClient{}, "ibc/client/localhost/MsgCreateClient", nil)
|
2020-04-17 07:36:47 -07:00
|
|
|
SetSubModuleCodec(cdc)
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetSubModuleCodec sets the ibc localhost client codec
|
|
|
|
func SetSubModuleCodec(cdc *codec.Codec) {
|
|
|
|
SubModuleCdc = cdc
|
|
|
|
}
|