Laconic state machine
Go to file
Austin Abell 6eef37b0c6
Finish and clean up module queries and txs (#152)
* 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
2019-11-15 12:02:13 -05:00
.circleci Implement eth_pendingTransactions, bump sdk version (#124) 2019-10-19 08:23:09 +09:00
.github Update PULL_REQUEST_TEMPLATE.md 2018-09-06 14:54:17 -04:00
app Finish and clean up module queries and txs (#152) 2019-11-15 12:02:13 -05:00
client/genaccounts Finish and clean up module queries and txs (#152) 2019-11-15 12:02:13 -05:00
cmd Finish and clean up module queries and txs (#152) 2019-11-15 12:02:13 -05:00
core Updating ethereum version from fork (#68) 2019-07-11 14:05:34 -04:00
crypto Finish and clean up module queries and txs (#152) 2019-11-15 12:02:13 -05:00
docs TX Routing Refactor (#496) 2018-11-28 14:19:22 -08:00
importer Implement eth_pendingTransactions, bump sdk version (#124) 2019-10-19 08:23:09 +09:00
rpc Finish and clean up module queries and txs (#152) 2019-11-15 12:02:13 -05:00
types Update keybase back to cosmos-sdk with support (#147) 2019-11-13 12:00:21 -05:00
utils Implements eth_getProof (#122) 2019-10-16 09:46:50 +09:00
version Query and bug fixes (#110) 2019-09-26 11:36:23 -04:00
x/evm Finish and clean up module queries and txs (#152) 2019-11-15 12:02:13 -05:00
.gitignore eth_estimateGas (#128) 2019-10-30 13:30:24 -05:00
.golangci.yml Linted Repo (#136) 2019-11-01 10:26:53 -05:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2018-07-17 11:52:20 -04:00
CONTRIBUTING.md Implement eth_pendingTransactions, bump sdk version (#124) 2019-10-19 08:23:09 +09:00
Dockerfile Fix dockerfile 2018-11-27 10:31:39 -08:00
go.mod Update keybase back to cosmos-sdk with support (#147) 2019-11-13 12:00:21 -05:00
go.sum Update keybase back to cosmos-sdk with support (#147) 2019-11-13 12:00:21 -05:00
gometalinter.json Upgrade geth and cleanup 2018-09-28 17:40:58 -04:00
LICENSE Initial commit 2018-06-10 14:25:18 +01:00
Makefile Linted Repo (#136) 2019-11-01 10:26:53 -05:00
README.md Switch package management to go modules (#1) 2019-06-25 15:56:54 -04:00

CircleCI Go Report Card

Ethermint

WARNING: Ethermint is under VERY ACTIVE DEVELOPMENT and should be treated as pre-alpha software. This means it is not meant to be run in production, its APIs are subject to change without warning and should not be relied upon, and it should not be used to hold any value. We will remove this warning when we have a release that is stable, secure, and properly tested.

What is it?

ethermint will be an implementation of the EVM that runs on top of tendermint consensus, a Proof of Stake system. This project has as its primary goals:

  • Hard Spoon enablement: This is the ability to take a token from the Ethereum mainnet and "spoon" (shift) the balances over to another network. This feature is intended to make it easy for applications that require more transactions than the Ethereum main chain can provide to move their code over to a compatible chain with much more capacity.
  • Web3 Compatibility: In order enable applications to be moved over to an ethermint chain existing tooling (i.e. web3 compatible clients) need to be able to interact with ethermint.

Implementation

Completed

  • Have a working implementation that can parse and validate the existing ETH Chain and persist it in a Tendermint store
  • Implement Ethereum transactions in the CosmosSDK

Current Work

  • Implement web3 compatible API layer
  • Implement the EVM as a CosmosSDK module
  • Allow the Ethermint EVM to interact with other Cosmos SDK modules

Next Steps

  • Hard spoon enablement: The ability to export state from geth and import token balances into Ethermint
  • Ethermint is a functioning Cosmos SDK application and can be deployed as its own zone
  • Full web3 compatibility will enable existing Ethereum applications to use Ethermint

Building Ethermint

To build, execute the following commands:

# To build the binary and put the resulting binary in ./build
$ make tools verify build

# To build the project and install it in $GOBIN
$ make tools verify install

Tests

Integration tests are invoked via:

$ make test

To run CLI tests, execute:

$ make test-cli

Ethereum Mainnet Import

There is an included Ethereum mainnet exported blockchain file in importer/blockchain that includes blocks up to height 97638. To execute and test a full import of these blocks using the EVM module, execute:

$ make test-import

You may also provide a custom blockchain export file to test importing more blocks via the --blockchain flag. See TestImportBlocks for further documentation.

Community

The following chat channels and forums are a great spot to ask questions about Ethermint: