laconicd/x/evm/types/codec.go

23 lines
576 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 evm module's codec
var ModuleCdc = codec.New()
2018-11-28 22:19:22 +00:00
// RegisterCodec registers all the necessary types and interfaces for the
// evm module
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
}
func init() {
RegisterCodec(ModuleCdc)
codec.RegisterCrypto(ModuleCdc)
ModuleCdc.Seal()
}