Commit Graph

82 Commits

Author SHA1 Message Date
Austin Abell
ce8a94a98e
Cosmos PR changes (#158)
* Changes necessary for enforced custom account encoding/decoding and keyring keybase changes

* updates cosmos dependency and fixes inconsistency in gas usage for simulated/real txs

* Update PR changes

* Remove unused password prompt when using OS keyring

* Update from changes to sdk

* Update to merged PR commit :the_horns:

* updated code to handle keyring backend options

* update documentation and replace cosmos-sdk with fork (temporarily)

* update cosmos dependency from fork

* update documentation
2019-12-13 14:50:19 -05:00
Austin Abell
9311f9efd0
Update keybase back to cosmos-sdk with support (#147)
* Migrate keybase back to Cosmos-sdk using temporary fork

* Cleaned up other affected code

* Change to updated tendermint

* fmt

* Change auth codec update

* clean up codec registration to respective packages

* Fix import fmt

* Remove no longer necessary replace

* Fix function comment
2019-11-13 12:00:21 -05:00
Austin Abell
327abc4edf
Coin balance fix (#151)
* Fix setting account balances from assuming single denom

* Set order for end blocker to not override account balances

* Panic instead of ignoring error (case should never be hit)
2019-11-12 16:07:34 -05:00
Austin Abell
97f73063a5
Updates SDK and implement application genaccounts (#143)
* Transition to updated sdk with modular ante handler and new genaccounts setup

* Update genesis account type to be an Ethermint account

* Change default keybase and tidy modules

* Fix lint
2019-11-04 15:45:02 -05:00
Dustin Brickwood
fc57cabcab
Linted Repo (#136)
* Linted
* Updated lint to include config file
* Linted repo
* Updated make command

* made requested changes

* added no lint
2019-11-01 10:26:53 -05:00
Austin Abell
2b4d2bea82 Implements eth_call (#127)
* Fixed tx receipt error on failed transaction

* Add returnData to failed transaction for logs bloom

* Added simulate call option, without returning evm data

* Added encoding and decoding of data from EVM execution for usability

* Remove unused context parameter

* Fix function comment and remove unnecessary logging on eth_call
2019-10-22 11:40:34 -05:00
Austin Abell
160e82b2ad
Implement eth_pendingTransactions, bump sdk version (#124)
* Update sdk version, implement pending txs, fix nonce check

* Bump cached dependencies in circleCI

* bump circleci go version

* updated linter and fixed bugs relating to go version 1.13
2019-10-19 08:23:09 +09:00
Austin Abell
69567e29d5
Override auth module codec for all references to Ethermint codec (#103) 2019-09-18 14:50:06 -04:00
Austin Abell
1b5c33cf33
EVM Transaction handler and contract creation (#96)
* WIP implementing state transition function

* Error handling and application setup fix

* Fixed error comment

* Allow creation of state objects with a BaseAccount

* Fixed parameters and finalise state after transaction

* updated transaction signing and cli signature

* Set up consistent account encoding and decoding

* Update txbuilder to get sequence before generating eth tx

* Added create functionality to the CLI command

* Remove need to copy over context for statedb interactions

* Updated account retriever

* Cleaned up handler code and updated TODO

* Make recoverEthSig private again

* Add error check for committing to kv store

* Remove commented out code

* Update evm chain config for state transition

* Add time in context for dapps
2019-09-18 09:51:18 -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
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
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
7537453c83 Move default denomination to account type (for now) 2018-10-24 09:46:26 -04:00
Aleksandr Bezobchuk
4171212fce Register Account interface with amino in types 2018-10-04 16:12:13 -04:00
Aleksandr Bezobchuk
2feb5bbb5b Finish initial StateDB implementation 2018-10-04 12:06:19 -04:00
Aleksandr Bezobchuk
f2b455b055 Structure and commenting cleanup 2018-10-03 10:57:02 -04:00
Aleksandr Bezobchuk
be81045e26 Initial stateDB and related interface implementations 2018-10-02 20:22:15 -04:00
Aleksandr Bezobchuk
2d9592ffaa Update database and baseapp initialization 2018-09-07 13:34:29 -04:00
Aleksandr Bezobchuk
e83a2b97f9 Update ante handler unit tests 2018-08-31 16:44:34 -04:00
Aleksandr Bezobchuk
e2c0645a10 Fix merge conflicts 2018-08-31 14:26:45 -04:00
Aleksandr Bezobchuk
5621242668 Revert tx logic to use embedded txs with dedicated addr 2018-08-30 17:36:14 -04:00
Aleksandr Bezobchuk
f93135f0f8 Implement initial ABCI logic 2018-08-24 11:56:43 -07:00
Aleksandr Bezobchuk
cd593e3e37 Remove EmbeddedTx and related logic 2018-08-24 08:29:10 -07:00
Aditya Sripal
f73ab8a0da Fixed sig issue, wrote embedded tests 2018-08-16 15:37:10 -07:00
Aditya Sripal
91f120c55d signature verification not working 2018-08-16 14:04:19 -07:00
Aditya Sripal
e114ec508e simplified sig verification, started handler tests 2018-08-13 18:02:21 -07:00
Aleksandr Bezobchuk
fbf3137b85 Merge pull request #451: Transaction Implementation 2018-08-08 21:06:40 -04:00
Aleksandr Bezobchuk
e5e3d48a6d Merge pull request #447: Initial Application Skeleton Structure 2018-07-19 17:16:53 -04:00