8bb8b40b32
* Implement new tx message type for eth_call and module txs and abstracted state transition, prepared db for logs * Added transaction indexing to evm keeper * Alternative count type
26 lines
577 B
Go
26 lines
577 B
Go
package types
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
"github.com/cosmos/ethermint/crypto"
|
|
)
|
|
|
|
// ModuleCdc defines the codec to be used by evm module
|
|
var ModuleCdc = codec.New()
|
|
|
|
func init() {
|
|
cdc := codec.New()
|
|
|
|
RegisterCodec(cdc)
|
|
codec.RegisterCrypto(cdc)
|
|
|
|
ModuleCdc = cdc.Seal()
|
|
}
|
|
|
|
// RegisterCodec registers concrete types and interfaces on the given codec.
|
|
func RegisterCodec(cdc *codec.Codec) {
|
|
cdc.RegisterConcrete(&EthereumTxMsg{}, "ethermint/MsgEthereumTx", nil)
|
|
cdc.RegisterConcrete(&EmintMsg{}, "ethermint/MsgEmint", nil)
|
|
crypto.RegisterCodec(cdc)
|
|
}
|