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
|
|
|
|
|
|
|
// Register the sdk message type
|
2018-09-13 11:17:32 -07:00
|
|
|
func RegisterCodec(cdc *codec.Codec) {
|
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-05-05 07:28:20 -07:00
|
|
|
// Register the sdk message type
|
|
|
|
func RegisterInterfaces(registry types.InterfaceRegistry) {
|
|
|
|
registry.RegisterInterface("cosmos_sdk.v1.Msg", (*Msg)(nil))
|
|
|
|
}
|