2018-11-28 22:19:22 +00:00
|
|
|
package types
|
|
|
|
|
|
|
|
import "github.com/cosmos/cosmos-sdk/codec"
|
|
|
|
|
2019-07-08 16:02:20 +00:00
|
|
|
var ModuleCdc = codec.New()
|
2018-11-28 22:19:22 +00:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
cdc := codec.New()
|
|
|
|
|
|
|
|
RegisterCodec(cdc)
|
|
|
|
codec.RegisterCrypto(cdc)
|
|
|
|
|
2019-07-08 16:02:20 +00:00
|
|
|
ModuleCdc = cdc.Seal()
|
2018-11-28 22:19:22 +00:00
|
|
|
}
|
|
|
|
|
2019-07-02 19:36:22 +00:00
|
|
|
// RegisterCodec registers concrete types and interfaces on the given codec.
|
2018-11-28 22:19:22 +00:00
|
|
|
func RegisterCodec(cdc *codec.Codec) {
|
2018-12-18 16:10:04 +00:00
|
|
|
cdc.RegisterConcrete(&EthereumTxMsg{}, "ethermint/MsgEthereumTx", nil)
|
2018-11-28 22:19:22 +00:00
|
|
|
}
|