Commit Graph

1260 Commits

Author SHA1 Message Date
David Ansermino
92dc7d9a59
Basic RPC and CLI Queries (#77)
- Adds ethermint query command (`emintcli query ethermint <query>`)
    - Supports block number, storage, code, balance lookups
- Implements RPC API methods `eth_blockNumber`, `eth_getStorageAt`, `eth_getBalance`, and `eth_getCode`
- Adds tester utility for RPC calls
    - Adheres to go test format, but should not be run with regular suite
    - Requires daemon and RPC server to be running
    - Excluded from `make test`, available with `make test-rpc`
- Implemented AppModule interface and added EVM module to app
    - Required for routing
- Implements `InitGenesis` (`x/evm/genesis.go`) and stubs `ExportGenesis`
- Modifies GenesisAccount to match expected format
2019-07-25 16:38:55 -04:00
David Ansermino
d9d45b48b9
CSDB Keeper (#76)
- Implements Keeper. This is a wrapper around the "real" keeper (CSDB). Since we need to pass the context into the keeper we need to abstract the CSDB from the 
- Adds WithContext() to CSDB to support the above requirement
- Adds Keeper to app
2019-07-24 18:14:12 -04:00
David Ansermino
284c2a0333
Enable RPC Server (#75)
- Introduces rpc command to cli (rest-server)
- Moves server/rpc to rpc/
- Enables module selection (eg. "web3" or "eth" or "web3,eth"), however there is no CLI flag to configure these (See #74)
- Adds CLI context to eth API
2019-07-15 10:13:59 -04:00
Austin Abell
fbaa9466b0
Update Ethermint app/ Daemon to run functional TM node (#70)
* Updates eithermint app to new Cosmos SDK version and sets up base tendermint node commands

* Updated vague comment
2019-07-12 13:13:15 -04:00
Austin Abell
9803c1b80e
Updating ethereum version from fork (#68)
* syncing with updated ethereum version with local versions

* Revert updates back to go-ethereum v1.8.27

* Fixed chain-test change from undoing recent go-ethereum changes

* Fixes linting issues

* Remove unused interface implementations

* Updates cosmos-sdk version from relative dependency and updates auxiliary changes

* Upgrading ethereum version back to most recent since 1.9 release <:)

* syncing with updated ethereum version with local versions

* Revert updates back to go-ethereum v1.8.27

* Fixed chain-test change from undoing recent go-ethereum changes

* Fixes linting issues

* Remove unused interface implementations

* Updates cosmos-sdk version from relative dependency and updates auxiliary changes

* Upgrading ethereum version back to most recent since 1.9 release <:)

* Added documentation for cloned functions
2019-07-11 14:05:34 -04:00
Austin Abell
73cf6d9217
Moved linting from build process in circleCI (#69) 2019-07-11 10:54:28 -04:00
Austin Abell
d982e0961a
Daemon framework (#66)
* Implements daemon framework with basic functionality

* Comment out unused functions for linter
2019-07-08 15:26:33 -04:00
David Ansermino
1d490ba4d9 Adds AppModuleBasic and Genesis Functions (#62)
* Adds AppModuleBasic implementation and genesis functions

* Fixes  broken links

* Adds .idea/

* Adds starter for missing genesis funcs

* Completes AppModuleBasic interface

* Removes comment
2019-07-08 12:02:20 -04:00
Austin Abell
ba203d3f26
Set up CLI framework without logic for query, tx, SDK rest, and web3 api commands (#61) 2019-07-05 12:46:13 -04:00
Austin Abell
a6d21e651e
Cosmos SDK version update (#60)
* Wip converting to updated Cosmos SDK version

* Fixed test failures from updating SDK

* cleaned and verified changes

* Wip converting to updated Cosmos SDK version

* Fixed test failures from updating SDK

* cleaned and verified changes

* wip - updating to version 0.36.0

* Switched supply keeper to dummy for testing

* Formatting fixes

* Changed relative dependency of cosmos SDK to specific commit
2019-07-04 15:46:54 -04:00
Austin Abell
69333ec1b3
circleCI config and linting fixes (#3)
* Fixed circleci config and fixed linting warnings

* Updated circleCI for go version 1.12 and split jobs for build/testing

* updated go version to 1.12.5 for circleCI

* Go mod tidy dependencies

* Updated linting tools and cleared up code lint smells

* Added workflow to run build and test jobs

* Moved linting command to build workflow

* Get dependencies before linting by default

* Added go module flag to linter and increased deadline to pull packages
2019-07-02 15:36:22 -04:00
Austin Abell
18d57af55e
Switch package management to go modules (#1)
* switched go package management from dep to go modules

* Removed dep references in makefile

* Added explicit go modules flag and go mod verify to makefile
2019-06-25 15:56:54 -04:00
Alexander Bezobchuk
b821a85a64
R4R: CheckTx AnteHandler for Ethereum Tx Messages (#505)
* Rename Ethereum tx message
* Use new tx decoder in the ethermint app
* Update ante handler to prevent spam/dos
* Update ethereum msg signing/verification logic
* Implement secp256k1 key types
* Remove pointer from To method
* Move sig check to after inartistic gas check
* Add comment on chainID parsing
* Updated validateIntrinsicGas godoc
* Implement Fee method on eth tx msg
* Add reference to spec for recoverEthSig
* Upgrade TM to v0.27.0
2018-12-18 11:10:04 -05:00
Alexander Bezobchuk
a3619584f8 TX Routing Refactor (#496) 2018-11-28 14:19:22 -08:00
Jack Zampolin
167d43ce38
Merge pull request #503 from cosmos/jack/fix-dockerfile
R4R: Fix Dockerfile
2018-11-27 10:33:10 -08:00
Jack Zampolin
46272dff58 Fix dockerfile 2018-11-27 10:31:39 -08:00
Alexander Bezobchuk
abbe17db25
Merge pull request #488 from cosmos/bez/486-statedb-refactor
R4R: StateDB Integration/EVM Module Start
2018-10-24 16:43:50 -04:00
Aleksandr Bezobchuk
0dedf51ed8 Update dep comments 2018-10-24 11:06:27 -04:00
Aleksandr Bezobchuk
d9bb42a818 Fix importer hash check 2018-10-24 11:05:39 -04:00
Aleksandr Bezobchuk
9dccb2ed0c Update lock file 2018-10-24 11:02:51 -04:00
Aleksandr Bezobchuk
40b715efd4 Run test-import on CI 2018-10-24 10:58:13 -04:00
Aleksandr Bezobchuk
e6380ec862 update dev tools; fix linting 2018-10-24 10:57:29 -04:00
Aleksandr Bezobchuk
ccc6ae6984 Fix linting errors 2018-10-24 10:53:23 -04:00
Aleksandr Bezobchuk
5b2496553c Update to reflect latest SDK changes 2018-10-24 10:49:37 -04:00
Aleksandr Bezobchuk
9a076e9526 Other minor updates 2018-10-24 10:23:12 -04:00
Aleksandr Bezobchuk
7cd5e47eea Remove accounts from genesis 2018-10-24 10:22:02 -04:00
Aleksandr Bezobchuk
3a65d53d35 Remove clutter from ethermint app 2018-10-24 10:21:51 -04:00
Aleksandr Bezobchuk
955a10a478 Add EVM module stub 2018-10-24 09:46:42 -04:00
Aleksandr Bezobchuk
2b9a1f72a0 Update importer test 2018-10-24 09:46:36 -04:00
Aleksandr Bezobchuk
7537453c83 Move default denomination to account type (for now) 2018-10-24 09:46:26 -04:00
Aleksandr Bezobchuk
ad97634c24 Move old state code to x/evm/types 2018-10-24 09:46:14 -04:00
Aleksandr Bezobchuk
3ff606fa9d Remove bank module stub 2018-10-24 09:45:55 -04:00
Aleksandr Bezobchuk
d017bc7de5 Update import test 2018-10-24 08:30:52 -04:00
Aleksandr Bezobchuk
9b11fe88bd Update README 2018-10-24 08:21:34 -04:00
Aleksandr Bezobchuk
e47d1a4dc8 Fix invalid code hash algo 2018-10-24 08:21:14 -04:00
Aleksandr Bezobchuk
22eef2aa20 Add test-import to makefile 2018-10-24 08:20:59 -04:00
Aleksandr Bezobchuk
c71b6d35ff Update importer test 2018-10-23 11:09:03 -04:00
Aleksandr Bezobchuk
071d6c9ff9 Move blockchain export file to /importer 2018-10-23 11:08:52 -04:00
Aleksandr Bezobchuk
f82443080b Remove old deprecated state files 2018-10-23 11:08:24 -04:00
Aleksandr Bezobchuk
c0489c86da Remove old test importer 2018-10-22 22:46:29 -04:00
Aleksandr Bezobchuk
13c627f6ca Wrap up importer test 2018-10-22 22:45:57 -04:00
Aleksandr Bezobchuk
645a0118e2 Remove dup kvPair in ethDB test 2018-10-22 22:31:09 -04:00
Aleksandr Bezobchuk
f938f74cf0 Fix invalid code commitment 2018-10-22 22:30:13 -04:00
Aleksandr Bezobchuk
0c3975ef5c Remove extra code 2018-10-04 17:52:55 -04:00
Aleksandr Bezobchuk
ef10c845c7 Update importer test to not prune 2018-10-04 17:51:19 -04:00
Aleksandr Bezobchuk
f07b741388 Implement importer test 2018-10-04 17:40:30 -04:00
Aleksandr Bezobchuk
fb8529d5b9 WIP: Import unit test 2018-10-04 16:12:32 -04:00
Aleksandr Bezobchuk
4171212fce Register Account interface with amino in types 2018-10-04 16:12:13 -04:00
Aleksandr Bezobchuk
4ca2b80812 Update StateDB godoc 2018-10-04 16:11:50 -04:00
Aleksandr Bezobchuk
1d6e70d01f Update components as may needing deprecation 2018-10-04 16:11:39 -04:00