laconicd/x/evm/types/codec.go

22 lines
571 B
Go
Raw Normal View History

2018-11-28 22:19:22 +00:00
package types
import (
"github.com/cosmos/cosmos-sdk/codec"
)
2018-11-28 22:19:22 +00:00
// ModuleCdc defines the codec to be used by evm module
var ModuleCdc = codec.New()
2018-11-28 22:19:22 +00:00
func init() {
cdc := codec.New()
codec.RegisterCrypto(cdc)
ModuleCdc = cdc.Seal()
2018-11-28 22:19: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) {
cdc.RegisterConcrete(MsgEthereumTx{}, "ethermint/MsgEthereumTx", nil)
cdc.RegisterConcrete(MsgEthermint{}, "ethermint/MsgEthermint", nil)
cdc.RegisterConcrete(EncodableTxData{}, "ethermint/EncodableTxData", nil)
2018-11-28 22:19:22 +00:00
}