Laconic state machine
Go to file
Daniel Choi cb96bc4ea3
Pending (#571)
* add PendingBlockNumber -1

* increase block times

* update bn

* get pending balance

* additional logic to check for pending state

* add multiple balance query

* pending state for getTransactionCount

* fix lint

* add getBlockTransactionCountByNumber code - commented

* cleanup test

* GetBlockTransactionCountByNumber

* cleanup

* getBlockByNumber

* GetTransactionByBlockNumberAndIndex

* conform to namespace changes

* exportable FormatBlock method

* eth_getTransactionByHash

* eth_getTransactionByBlockNumberAndIndex

* pending nonce

* set nonce for pending and check for invalid

* WIP: doCall

* add pending tx test

* cleanup + refactor

* push first tests and init pending

* pending changes (#600)

* cleanup

* updates

* more fixes

* lint

* update call and send

* comments and minor changes

* add pending tests into sep package

* fix latest case for eth_GetBlockTransactionCountByNumber

* fix repeating null transactions in queue

* remove repeated structs

* latestblock case

* revert init script back

* fix to exportable method

* automate pending tests; add make cmd

* move and comment out pending call test

* fix some golint

* fix unlock issue

* wip: linter stringer fix?

* stringer lint

* set arr instead of append

* instantiate with length

* sep if statement

* edit pendingblocknumber note

* switch statement

* fix and update tests

* move tests-pending into tests dir

* remove commented test

* revert to appending pendingtx

* Update tests/utils.go

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update tests/utils.go

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update tests/utils.go

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* require no err

* rename var

* check result for eth_sendTransaction

* update changelog

* update

* Update tests/utils.go

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update tests/tests-pending/rpc_pending_test.go

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* changelog

* remove redundant check

Co-authored-by: noot <elizabethjbinks@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
2020-12-15 19:52:09 +00:00
.github build(deps): bump gaurav-nelson/github-action-markdown-link-check (#659) 2020-12-14 07:51:19 -03:00
app evm: balance and nonce invariants (#661) 2020-12-15 19:43:06 +01:00
client crypto: refactor for stargate (#559) 2020-10-06 20:57:55 +02:00
cmd app: fix export genesis (#619) 2020-11-27 19:42:04 +01:00
codec crypto: refactor for stargate (#559) 2020-10-06 20:57:55 +02:00
core build(deps): bump github.com/ethereum/go-ethereum from 1.9.18 to 1.9.19 (#456) 2020-08-24 13:40:16 -04:00
crypto crypto: fix Bip44 derivation path (#577) 2020-10-16 10:51:00 -03:00
docs build(deps): bump ini from 1.3.5 to 1.3.8 in /docs (#658) 2020-12-14 14:50:29 +01:00
importer build(deps): bump github.com/ethereum/go-ethereum from 1.9.24 to 1.9.25 (#654) 2020-12-11 13:47:18 +01:00
networks/local ChainSafe/ethermint -> cosmos/ethermint renaming (#569) 2020-10-09 17:52:32 +02:00
rpc Pending (#571) 2020-12-15 19:52:09 +00:00
scripts Pending (#571) 2020-12-15 19:52:09 +00:00
tests Pending (#571) 2020-12-15 19:52:09 +00:00
tests-solidity build(deps): bump ini from 1.3.5 to 1.3.8 in /tests-solidity (#657) 2020-12-14 15:36:02 +01:00
types rpc: protocol version (#575) 2020-12-08 20:51:26 +01:00
utils update tools configs (#611) 2020-11-24 16:43:08 +01:00
x evm: balance and nonce invariants (#661) 2020-12-15 19:43:06 +01:00
.gitignore makefile: install yarn (#526) 2020-09-23 11:28:38 -03:00
.golangci.yml update tools configs (#611) 2020-11-24 16:43:08 +01:00
.mergify.yml update tools configs (#611) 2020-11-24 16:43:08 +01:00
buf.yaml bump Cosmos SDK version to v0.38.2 (#183) 2020-04-22 15:26:01 -04:00
CHANGELOG.md Pending (#571) 2020-12-15 19:52:09 +00:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2018-07-17 11:52:20 -04:00
codecov.yml update tools configs (#611) 2020-11-24 16:43:08 +01:00
CONTRIBUTING.md Implement eth_pendingTransactions, bump sdk version (#124) 2019-10-19 08:23:09 +09:00
docker-compose.yml fix port assignment for Docker testnet (#432) 2020-08-05 12:39:03 -04:00
Dockerfile add jq (#616) 2020-11-24 13:36:46 -08:00
go.mod build(deps): bump github.com/ethereum/go-ethereum from 1.9.24 to 1.9.25 (#654) 2020-12-11 13:47:18 +01:00
go.sum build(deps): bump github.com/ethereum/go-ethereum from 1.9.24 to 1.9.25 (#654) 2020-12-11 13:47:18 +01:00
gometalinter.json Upgrade geth and cleanup 2018-09-28 17:40:58 -04:00
init.sh Pending (#571) 2020-12-15 19:52:09 +00:00
LICENSE Initial commit 2018-06-10 14:25:18 +01:00
Makefile Pending (#571) 2020-12-15 19:52:09 +00:00
README.md build: require go 1.15+ (#610) 2020-11-20 19:31:57 +01:00

Ethermint

Ethermint is a scalable, high-throughput Proof-of-Stake blockchain that is fully compatible and interoperable with Ethereum. It's build using the the Cosmos SDK which runs on top of Tendermint Core consensus engine.

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.

Note: Requires Go 1.15+

Quick Start

To learn how the Ethermint works from a high-level perspective, go to the Introduction section from the documentation.

For more, please refer to the Ethermint Docs, which are also hosted on docs.ethermint.zone.

Tests

Unit tests are invoked via:

make test

To run JSON-RPC tests, execute:

make test-rpc

There is also 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: