laconicd/README.md

79 lines
3.4 KiB
Markdown
Raw Normal View History

2018-08-21 22:22:50 +00:00
[![CircleCI](https://circleci.com/gh/cosmos/ethermint.svg?style=svg)](https://circleci.com/gh/cosmos/ethermint)
[![](https://godoc.org/github.com/cosmos/ethermint?status.svg)](http://godoc.org/github.com/cosmos/ethermint) [![Go Report Card](https://goreportcard.com/badge/github.com/cosmos/ethermint)](https://goreportcard.com/report/github.com/cosmos/ethermint)
2018-10-24 12:21:34 +00:00
2018-07-12 22:25:48 +00:00
# Ethermint
2018-06-13 09:58:27 +00:00
2018-07-13 19:47:48 +00:00
__**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.
2018-06-13 09:59:30 +00:00
2018-10-24 12:21:34 +00:00
## What is it?
2018-06-13 09:58:27 +00:00
2018-07-12 22:25:48 +00:00
`ethermint` will be an implementation of the EVM that runs on top of [`tendermint`](https://github.com/tendermint/tendermint) consensus, a Proof of Stake system. This project has as its primary goals:
2018-06-13 09:58:27 +00:00
2018-07-12 22:25:48 +00:00
- [Hard Spoon](https://blog.cosmos.network/introducing-the-hard-spoon-4a9288d3f0df) 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.
2018-10-24 12:21:34 +00:00
- 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`.
2018-07-12 22:25:48 +00:00
### Implementation
2018-07-12 22:25:48 +00:00
2018-08-21 22:22:50 +00:00
#### Completed
2018-10-24 12:21:34 +00:00
2018-08-21 22:22:50 +00:00
- 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
2018-10-24 12:21:34 +00:00
2018-08-21 22:22:50 +00:00
- Implement web3 compatible API layer
- Implement the EVM as a CosmosSDK module
- Allow the Ethermint EVM to interact with other [Cosmos SDK modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/core/app3.md)
#### Next Steps
2018-10-24 12:21:34 +00:00
2018-08-21 22:22:50 +00:00
- 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
2018-07-12 22:25:48 +00:00
### Building Ethermint
To build, execute the following commands:
```bash
2018-08-21 22:22:50 +00:00
# To build the binary and put the resulting binary in ./build
2018-07-13 20:41:17 +00:00
$ make tools deps build
2018-07-12 22:25:48 +00:00
# To build the project and install it in $GOBIN
2018-07-13 20:41:17 +00:00
$ make tools deps install
2018-07-12 22:25:48 +00:00
```
2018-10-24 12:21:34 +00:00
### Tests
Integration tests are invoked via:
```bash
$ make test
```
To run CLI tests, execute:
```bash
$ make test-cli
```
#### Ethereum Mainnet Import
2018-10-24 12:21:34 +00:00
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:
```bash
2018-10-24 12:21:34 +00:00
$ make test-import
```
2018-10-24 12:21:34 +00:00
You may also provide a custom blockchain export file to test importing more blocks
via the `--blockchain` flag. See `TestImportBlocks` for further documentation.
2018-07-12 22:25:48 +00:00
### Community
The following chat channels and forums are a great spot to ask questions about Ethermint:
- [Cosmos Riot Chat Channel](https://riot.im/app/#/group/+cosmos:matrix.org)
- Cosmos Forum [![Discourse status](https://img.shields.io/discourse/https/forum.cosmos.network/status.svg)](https://forum.cosmos.network)