2018-04-26 19:59:30 -07:00
|
|
|
package types
|
|
|
|
|
2020-01-24 07:32:00 -08:00
|
|
|
import (
|
2020-05-05 07:28:20 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/codec/types"
|
|
|
|
|
2020-01-24 07:32:00 -08:00
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
|
|
)
|
2018-04-26 19:59:30 -07:00
|
|
|
|
2020-08-11 04:49:45 -07:00
|
|
|
// RegisterCodec registers the sdk message type.
|
2020-08-10 12:41:21 -07:00
|
|
|
func RegisterCodec(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) {
|
2020-08-11 04:49:45 -07:00
|
|
|
registry.RegisterInterface("cosmos.v1beta1.Msg", (*Msg)(nil))
|
2020-05-05 07:28:20 -07:00
|
|
|
}
|