6eef37b0c6
* Basic transactions set up (to be separated) * Change transaction command to not include create operation (to include other command in next commit) * set up create command and made minor changes * wip implements module queries * Added tests for query address decoding * Added ambiguous encoding of to address in transaction and added tests * Fix linting issue * Move registering key types to application level to allow module usage to ignore * Move genaccounts code to be reused * Switches nonce increase to always happen in ante handler * change SetNonce from keeper to point to actual nonce operation * Remove no op nonce switch (not needed with clearing cache) * Changes to update all accounts pre state transition and clear cache at end of block * Update accounts before end of block commit (edge case where necessary) * Fix nonce of sender going into evm in case it's checked, and let evm set contract starting nonce
23 lines
492 B
Go
23 lines
492 B
Go
package types
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
)
|
|
|
|
// ModuleCdc defines the codec to be used by evm module
|
|
var ModuleCdc = codec.New()
|
|
|
|
func init() {
|
|
cdc := codec.New()
|
|
|
|
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)
|
|
}
|