2018-04-26 19:59:30 -07:00
|
|
|
package types
|
|
|
|
|
2020-01-24 07:32:00 -08:00
|
|
|
import (
|
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
2020-09-10 11:26:47 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/codec/types"
|
2020-01-24 07:32:00 -08:00
|
|
|
)
|
2018-04-26 19:59:30 -07:00
|
|
|
|
2021-03-11 07:01:29 -08:00
|
|
|
const (
|
|
|
|
// MsgInterfaceProtoName defines the protobuf name of the cosmos Msg interface
|
|
|
|
MsgInterfaceProtoName = "cosmos.base.v1beta1.Msg"
|
|
|
|
)
|
|
|
|
|
2020-09-07 07:47:12 -07:00
|
|
|
// RegisterLegacyAminoCodec registers the sdk message type.
|
|
|
|
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
2018-04-26 19:59:30 -07:00
|
|
|
cdc.RegisterInterface((*Msg)(nil), nil)
|
2018-06-11 13:09:29 -07:00
|
|
|
cdc.RegisterInterface((*Tx)(nil), nil)
|
2018-04-26 19:59:30 -07:00
|
|
|
}
|
2020-03-13 06:57:15 -07:00
|
|
|
|
2020-08-11 04:49:45 -07:00
|
|
|
// RegisterInterfaces registers the sdk message type.
|
2020-05-05 07:28:20 -07:00
|
|
|
func RegisterInterfaces(registry types.InterfaceRegistry) {
|
2021-03-11 07:01:29 -08:00
|
|
|
registry.RegisterInterface(MsgInterfaceProtoName, (*Msg)(nil))
|
2020-05-05 07:28:20 -07:00
|
|
|
}
|