Versions in this module Expand all Collapse all v1 v1.0.0 Mar 26, 2021 Changes in this version + const AttributeKeyContractAddress + const AttributeKeyRecipient + const AttributeValueCategory + const DefaultParamspace + const EventTypeEthereumTx + const EventTypeEthermint + const ModuleName + const QueryAccount + const QueryBalance + const QueryBlockNumber + const QueryBloom + const QueryCode + const QueryHashToHeight + const QueryLogs + const QueryNonce + const QueryStorage + const QueryTransactionLogs + const RouterKey + const StoreKey + const TypeMsgEthereumTx + const TypeMsgEthermint + var ErrCallDisabled = sdkerrors.Register(ModuleName, 6, "EVM Call operation is disabled") + var ErrChainConfigNotFound = sdkerrors.Register(ModuleName, 3, "chain configuration not found") + var ErrCreateDisabled = sdkerrors.Register(ModuleName, 5, "EVM Create operation is disabled") + var ErrInvalidChainConfig = sdkerrors.Register(ModuleName, 4, "invalid chain configuration") + var ErrInvalidState = sdkerrors.Register(ModuleName, 2, "invalid storage state") + var KeyPrefixBlockHash = []byte + var KeyPrefixBloom = []byte + var KeyPrefixChainConfig = []byte + var KeyPrefixCode = []byte + var KeyPrefixHeightHash = []byte + var KeyPrefixLogs = []byte + var KeyPrefixStorage = []byte + var ModuleCdc = codec.New() + var ParamStoreKeyEVMDenom = []byte("EVMDenom") + var ParamStoreKeyEnableCall = []byte("EnableCall") + var ParamStoreKeyEnableCreate = []byte("EnableCreate") + var ParamStoreKeyExtraEIPs = []byte("EnableExtraEIPs") + func AddressStoragePrefix(address ethcmn.Address) []byte + func BloomKey(height int64) []byte + func CopyCommitStateDB(from, to *CommitStateDB) + func EncodeResultData(data ResultData) ([]byte, error) + func GenerateEthAddress() ethcmn.Address + func GetHashFn(ctx sdk.Context, csdb *CommitStateDB) vm.GetHashFunc + func HeightHashKey(height uint64) []byte + func MarshalLogs(logs []*ethtypes.Log) ([]byte, error) + func ParamKeyTable() params.KeyTable + func RegisterCodec(cdc *codec.Codec) + func TxDecoder(cdc *codec.Codec) sdk.TxDecoder + func UnmarshalLogs(in []byte) ([]*ethtypes.Log, error) + func ValidateLog(log *ethtypes.Log) error + func ValidateSigner(signBytes, sig []byte, signer ethcmn.Address) error + type AccountKeeper interface + GetAccount func(ctx sdk.Context, addr sdk.AccAddress) authexported.Account + GetAllAccounts func(ctx sdk.Context) (accounts []authexported.Account) + IterateAccounts func(ctx sdk.Context, cb func(account authexported.Account) bool) + NewAccountWithAddress func(ctx sdk.Context, addr sdk.AccAddress) authexported.Account + RemoveAccount func(ctx sdk.Context, account authexported.Account) + SetAccount func(ctx sdk.Context, account authexported.Account) + type ChainConfig struct + ByzantiumBlock sdk.Int + ConstantinopleBlock sdk.Int + DAOForkBlock sdk.Int + DAOForkSupport bool + EIP150Block sdk.Int + EIP150Hash string + EIP155Block sdk.Int + EIP158Block sdk.Int + EWASMBlock sdk.Int + HomesteadBlock sdk.Int + IstanbulBlock sdk.Int + MuirGlacierBlock sdk.Int + PetersburgBlock sdk.Int + YoloV2Block sdk.Int + func DefaultChainConfig() ChainConfig + func (cc ChainConfig) EthereumConfig(chainID *big.Int) *params.ChainConfig + func (cc ChainConfig) IsHomestead() bool + func (cc ChainConfig) IsIstanbul() bool + func (cc ChainConfig) String() string + func (cc ChainConfig) Validate() error + type CommitStateDB struct + func NewCommitStateDB(ctx sdk.Context, storeKey sdk.StoreKey, paramSpace params.Subspace, ...) *CommitStateDB + func (csdb *CommitStateDB) AddAddressToAccessList(addr ethcmn.Address) + func (csdb *CommitStateDB) AddBalance(addr ethcmn.Address, amount *big.Int) + func (csdb *CommitStateDB) AddLog(log *ethtypes.Log) + func (csdb *CommitStateDB) AddPreimage(hash ethcmn.Hash, preimage []byte) + func (csdb *CommitStateDB) AddRefund(gas uint64) + func (csdb *CommitStateDB) AddSlotToAccessList(addr ethcmn.Address, slot ethcmn.Hash) + func (csdb *CommitStateDB) AddressInAccessList(addr ethcmn.Address) bool + func (csdb *CommitStateDB) AllLogs() []*ethtypes.Log + func (csdb *CommitStateDB) BlockHash() ethcmn.Hash + func (csdb *CommitStateDB) ClearStateObjects() + func (csdb *CommitStateDB) Commit(deleteEmptyObjects bool) (ethcmn.Hash, error) + func (csdb *CommitStateDB) Copy() *CommitStateDB + func (csdb *CommitStateDB) CreateAccount(addr ethcmn.Address) + func (csdb *CommitStateDB) Database() ethstate.Database + func (csdb *CommitStateDB) DeleteLogs(hash ethcmn.Hash) + func (csdb *CommitStateDB) Empty(addr ethcmn.Address) bool + func (csdb *CommitStateDB) Error() error + func (csdb *CommitStateDB) Exist(addr ethcmn.Address) bool + func (csdb *CommitStateDB) Finalise(deleteEmptyObjects bool) error + func (csdb *CommitStateDB) ForEachStorage(addr ethcmn.Address, cb func(key, value ethcmn.Hash) (stop bool)) error + func (csdb *CommitStateDB) GetBalance(addr ethcmn.Address) *big.Int + func (csdb *CommitStateDB) GetCode(addr ethcmn.Address) []byte + func (csdb *CommitStateDB) GetCodeHash(addr ethcmn.Address) ethcmn.Hash + func (csdb *CommitStateDB) GetCodeSize(addr ethcmn.Address) int + func (csdb *CommitStateDB) GetCommittedState(addr ethcmn.Address, hash ethcmn.Hash) ethcmn.Hash + func (csdb *CommitStateDB) GetHeightHash(height uint64) ethcmn.Hash + func (csdb *CommitStateDB) GetLogs(hash ethcmn.Hash) ([]*ethtypes.Log, error) + func (csdb *CommitStateDB) GetNonce(addr ethcmn.Address) uint64 + func (csdb *CommitStateDB) GetOrNewStateObject(addr ethcmn.Address) StateObject + func (csdb *CommitStateDB) GetParams() (params Params) + func (csdb *CommitStateDB) GetRefund() uint64 + func (csdb *CommitStateDB) GetState(addr ethcmn.Address, hash ethcmn.Hash) ethcmn.Hash + func (csdb *CommitStateDB) HasSuicided(addr ethcmn.Address) bool + func (csdb *CommitStateDB) IntermediateRoot(deleteEmptyObjects bool) (ethcmn.Hash, error) + func (csdb *CommitStateDB) Preimages() map[ethcmn.Hash][]byte + func (csdb *CommitStateDB) Prepare(thash ethcmn.Hash, txi int) + func (csdb *CommitStateDB) RawDump() ethstate.Dump + func (csdb *CommitStateDB) Reset(_ ethcmn.Hash) error + func (csdb *CommitStateDB) RevertToSnapshot(revID int) + func (csdb *CommitStateDB) SetBalance(addr ethcmn.Address, amount *big.Int) + func (csdb *CommitStateDB) SetBlockHash(hash ethcmn.Hash) + func (csdb *CommitStateDB) SetCode(addr ethcmn.Address, code []byte) + func (csdb *CommitStateDB) SetHeightHash(height uint64, hash ethcmn.Hash) + func (csdb *CommitStateDB) SetLogs(hash ethcmn.Hash, logs []*ethtypes.Log) error + func (csdb *CommitStateDB) SetNonce(addr ethcmn.Address, nonce uint64) + func (csdb *CommitStateDB) SetParams(params Params) + func (csdb *CommitStateDB) SetState(addr ethcmn.Address, key, value ethcmn.Hash) + func (csdb *CommitStateDB) SlotInAccessList(addr ethcmn.Address, slot ethcmn.Hash) (bool, bool) + func (csdb *CommitStateDB) Snapshot() int + func (csdb *CommitStateDB) StorageTrie(addr ethcmn.Address) ethstate.Trie + func (csdb *CommitStateDB) SubBalance(addr ethcmn.Address, amount *big.Int) + func (csdb *CommitStateDB) SubRefund(gas uint64) + func (csdb *CommitStateDB) Suicide(addr ethcmn.Address) bool + func (csdb *CommitStateDB) TxIndex() int + func (csdb *CommitStateDB) UpdateAccounts() + func (csdb *CommitStateDB) WithContext(ctx sdk.Context) *CommitStateDB + type ExecutionResult struct + Bloom *big.Int + GasInfo GasInfo + Logs []*ethtypes.Log + Result *sdk.Result + type GasInfo struct + GasConsumed uint64 + GasLimit uint64 + GasRefunded uint64 + type GenesisAccount struct + Address string + Code string + Storage Storage + func (ga GenesisAccount) Validate() error + type GenesisState struct + Accounts []GenesisAccount + ChainConfig ChainConfig + Params Params + TxsLogs []TransactionLogs + func DefaultGenesisState() GenesisState + func (gs GenesisState) Validate() error + type MsgEthereumTx struct + Data TxData + func NewMsgEthereumTx(nonce uint64, to *ethcmn.Address, amount *big.Int, gasLimit uint64, ...) MsgEthereumTx + func NewMsgEthereumTxContract(nonce uint64, amount *big.Int, gasLimit uint64, gasPrice *big.Int, ...) MsgEthereumTx + func (msg *MsgEthereumTx) ChainID() *big.Int + func (msg *MsgEthereumTx) DecodeRLP(s *rlp.Stream) error + func (msg *MsgEthereumTx) EncodeRLP(w io.Writer) error + func (msg *MsgEthereumTx) From() sdk.AccAddress + func (msg *MsgEthereumTx) Sign(chainID *big.Int, priv *ecdsa.PrivateKey) error + func (msg *MsgEthereumTx) VerifySig(chainID *big.Int) (ethcmn.Address, error) + func (msg MsgEthereumTx) Cost() *big.Int + func (msg MsgEthereumTx) Fee() *big.Int + func (msg MsgEthereumTx) GetGas() uint64 + func (msg MsgEthereumTx) GetMsgs() []sdk.Msg + func (msg MsgEthereumTx) GetSignBytes() []byte + func (msg MsgEthereumTx) GetSigners() []sdk.AccAddress + func (msg MsgEthereumTx) RLPSignBytes(chainID *big.Int) ethcmn.Hash + func (msg MsgEthereumTx) RawSignatureValues() (v, r, s *big.Int) + func (msg MsgEthereumTx) Route() string + func (msg MsgEthereumTx) String() string + func (msg MsgEthereumTx) To() *ethcmn.Address + func (msg MsgEthereumTx) Type() string + func (msg MsgEthereumTx) ValidateBasic() error + type MsgEthermint struct + AccountNonce uint64 + Amount sdk.Int + From sdk.AccAddress + GasLimit uint64 + Payload []byte + Price sdk.Int + Recipient *sdk.AccAddress + func NewMsgEthermint(nonce uint64, to *sdk.AccAddress, amount sdk.Int, gasLimit uint64, ...) MsgEthermint + func (msg MsgEthermint) GetSignBytes() []byte + func (msg MsgEthermint) GetSigners() []sdk.AccAddress + func (msg MsgEthermint) Route() string + func (msg MsgEthermint) String() string + func (msg MsgEthermint) To() *ethcmn.Address + func (msg MsgEthermint) Type() string + func (msg MsgEthermint) ValidateBasic() error + type Params struct + EnableCall bool + EnableCreate bool + EvmDenom string + ExtraEIPs []int64 + func DefaultParams() Params + func NewParams(evmDenom string, enableCreate, enableCall bool, extraEIPs ...int64) Params + func (p *Params) ParamSetPairs() params.ParamSetPairs + func (p Params) String() string + func (p Params) Validate() error + type QueryBloomFilter struct + Bloom ethtypes.Bloom + func (q QueryBloomFilter) String() string + type QueryETHLogs struct + Logs []*ethtypes.Log + func (q QueryETHLogs) String() string + type QueryResAccount struct + Balance string + CodeHash []byte + Nonce uint64 + type QueryResBalance struct + Balance string + func (q QueryResBalance) String() string + type QueryResBlockNumber struct + Number int64 + func (q QueryResBlockNumber) String() string + type QueryResCode struct + Code []byte + func (q QueryResCode) String() string + type QueryResExportAccount = GenesisAccount + type QueryResNonce struct + Nonce uint64 + func (q QueryResNonce) String() string + type QueryResStorage struct + Value []byte + func (q QueryResStorage) String() string + type Recipient struct + Address string + type ResultData struct + Bloom ethtypes.Bloom + ContractAddress ethcmn.Address + Logs []*ethtypes.Log + Ret []byte + TxHash ethcmn.Hash + func DecodeResultData(in []byte) (ResultData, error) + func (rd ResultData) String() string + type State struct + Key string + Value string + func NewState(key, value ethcmn.Hash) State + func (s State) Validate() error + type StateObject interface + AddBalance func(amount *big.Int) + Address func() ethcmn.Address + Balance func() *big.Int + Code func(db ethstate.Database) []byte + CodeHash func() []byte + GetCommittedState func(db ethstate.Database, key ethcmn.Hash) ethcmn.Hash + GetState func(db ethstate.Database, key ethcmn.Hash) ethcmn.Hash + Nonce func() uint64 + ReturnGas func(gas *big.Int) + SetBalance func(amount *big.Int) + SetCode func(codeHash ethcmn.Hash, code []byte) + SetNonce func(nonce uint64) + SetState func(db ethstate.Database, key, value ethcmn.Hash) + SubBalance func(amount *big.Int) + type StateTransition struct + AccountNonce uint64 + Amount *big.Int + ChainID *big.Int + Csdb *CommitStateDB + GasLimit uint64 + Payload []byte + Price *big.Int + Recipient *common.Address + Sender common.Address + Simulate bool + TxHash *common.Hash + func (st StateTransition) TransitionDb(ctx sdk.Context, config ChainConfig) (*ExecutionResult, error) + type Storage []State + func (s Storage) Copy() Storage + func (s Storage) String() string + func (s Storage) Validate() error + type TransactionLogs struct + Hash string + Logs []*ethtypes.Log + func NewTransactionLogs(hash ethcmn.Hash, logs []*ethtypes.Log) TransactionLogs + func (tx TransactionLogs) Validate() error + type TxData struct + AccountNonce uint64 + Amount sdk.Int + GasLimit uint64 + Hash string + Payload []byte + Price sdk.Int + R []byte + Recipient *Recipient + S []byte + V []byte