792c1ff756
* evm: params * setup * bump commit * fixes * increase gas usage * tests * evm denom param * more config updates * update genesis * update ante handler * csdb param test * more tests and fixes * update statedb.Copy * lint * additional test * fix importer tests * fix AnteHandler test * minor update * revert * undo gas update * stringer test * changelog * fix csdb index error (#493) * attempt to fix * cleanup * add idx check * update csdb.Copy * update default hash * update querier * update rpc tests * fix estimate gas test Co-authored-by: noot <36753753+noot@users.noreply.github.com> Co-authored-by: noot <elizabethjbinks@gmail.com>
24 lines
625 B
Go
24 lines
625 B
Go
package types
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
)
|
|
|
|
// ModuleCdc defines the evm module's codec
|
|
var ModuleCdc = codec.New()
|
|
|
|
// RegisterCodec registers all the necessary types and interfaces for the
|
|
// evm module
|
|
func RegisterCodec(cdc *codec.Codec) {
|
|
cdc.RegisterConcrete(MsgEthereumTx{}, "ethermint/MsgEthereumTx", nil)
|
|
cdc.RegisterConcrete(MsgEthermint{}, "ethermint/MsgEthermint", nil)
|
|
cdc.RegisterConcrete(TxData{}, "ethermint/TxData", nil)
|
|
cdc.RegisterConcrete(ChainConfig{}, "ethermint/ChainConfig", nil)
|
|
}
|
|
|
|
func init() {
|
|
RegisterCodec(ModuleCdc)
|
|
codec.RegisterCrypto(ModuleCdc)
|
|
ModuleCdc.Seal()
|
|
}
|