Commit Graph

648 Commits

Author SHA1 Message Date
thomasmodeneis
c9b09c1d55
Implement eth_newPendingTransactionFilter #51 (#251)
* Implement eth_newPendingTransactionFilter
2020-04-16 16:53:14 +02:00
Austin Abell
33ab63ef15
update web3 transaction hash from RLP (#250)
* remove ethereum hash of web3 transaction type (always amino hash)

* Update changelog
2020-04-13 19:08:43 -04:00
noot
199484fc2e
eth_getFilterLogs, eth_getLogs implementation (#248) 2020-04-13 15:18:50 -04:00
Austin Abell
9b8dd598bb
Remove recomputing of tx bytes (#217) 2020-04-10 16:47:56 -04:00
dependabot-preview[bot]
75f7de22d0
Bump github.com/spf13/viper from 1.6.2 to 1.6.3 (#244)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.6.2 to 1.6.3.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.6.2...v1.6.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-10 12:19:34 -04:00
noot
bf1e2d3cdc
update key name in init.sh (#243) 2020-04-08 15:00:30 -04:00
noot
db4cee7eac
eth_newBlockFilter and related functionality (#232)
* add filter types for block, pending tx, log
* implement pollForBlocks for block filters
* implement getFilterChanges for block filter
* implement uninstall filter by stopping polling
2020-04-07 16:00:06 -04:00
Jay B Payne
eaaae0e3fd
update init.sh script (#241)
Changed the removal lines to removed everything using a wildcard
Changed the the common parameters into variables

Fixes #238
2020-04-06 16:11:52 -04:00
Federico Kunze
70cc4af3b4
update old dependencies (#239) 2020-04-06 12:18:40 -04:00
noot
35e7a98ab2
filters: begin implementation (#230)
* adds Filter type and related methods
* updates PublicFilterAPI to include backend, filter mapping
* stub out filter related eth_ functions
2020-04-01 20:43:59 -04:00
Federico Kunze
da9157e406
upgrade changes cleanup (#236)
* changes from update version

* app changes

* cmd changes

* build and send tx

* fix tests

* eth_rpc fixes

* lint

* add WithEventManager to handler ctx

* changelog

* go mod verify and tidy
2020-04-01 15:49:21 -03:00
dependabot-preview[bot]
1627ed81bf
Bump github.com/spf13/cobra from 0.0.6 to 0.0.7 (#233)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 0.0.6 to 0.0.7.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v0.0.6...0.0.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-30 09:19:25 -03:00
Ajoy Das
ca435c2bbc
updated Dockerfile (#175) 2020-03-18 08:43:02 -04:00
billy rennekamp
85019f2283
added init script with test password (#228)
* added init script with test password

* added make install

* update README
2020-03-18 08:42:46 -04:00
dependabot-preview[bot]
6fa0b63699
Bump gopkg.in/yaml.v2 from 2.2.7 to 2.2.8 (#225)
Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.2.7 to 2.2.8.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.2.7...v2.2.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-17 11:07:36 -03:00
dependabot-preview[bot]
12590bbe9c
Bump github.com/spf13/cobra from 0.0.5 to 0.0.6 (#224)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 0.0.5 to 0.0.6.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/0.0.5...v0.0.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-17 10:17:59 -03:00
dependabot-preview[bot]
ac54197a1b
Bump github.com/gorilla/mux from 1.7.3 to 1.7.4 (#226)
Bumps [github.com/gorilla/mux](https://github.com/gorilla/mux) from 1.7.3 to 1.7.4.
- [Release notes](https://github.com/gorilla/mux/releases)
- [Commits](https://github.com/gorilla/mux/compare/v1.7.3...v1.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-17 09:31:26 -03:00
Federico Kunze
87b625ed50
Tools configuration and linters (#215)
* tools config

* lint

* lint

* codecov
2020-03-16 19:53:24 -03:00
dependabot-preview[bot]
afe7289415
Bump github.com/stretchr/testify from 1.4.0 to 1.5.1 (#222)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.4.0 to 1.5.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.4.0...v1.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-16 17:42:49 -03:00
dependabot-preview[bot]
c5cbcaa1a1
Bump github.com/pkg/errors from 0.8.1 to 0.9.1 (#221)
Bumps [github.com/pkg/errors](https://github.com/pkg/errors) from 0.8.1 to 0.9.1.
- [Release notes](https://github.com/pkg/errors/releases)
- [Commits](https://github.com/pkg/errors/compare/v0.8.1...v0.9.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-16 17:28:01 -03:00
dependabot-preview[bot]
14e4012891
Bump github.com/spf13/viper from 1.6.1 to 1.6.2 (#220)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.6.1 to 1.6.2.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.6.1...v1.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-16 17:11:41 -03:00
Austin Abell
3ab019b727
Remove unused encoding package (#214) 2020-03-13 13:14:59 -03:00
Federico Kunze
30f34e6c59
evm: move Keeper and Querier to /keeper package (#182)
* evm: move Keeper and Querier to /keeper package

* keeper: update keeper_test.go

* fix format

* evm: use aliased types

* add comments from review

* changelog
2020-03-09 10:17:23 -03:00
Federico Kunze
b6af79638c
add CHANGELOG.md (#184)
* add CHANGELOG.md

* update PR template
2020-03-06 20:00:03 -03:00
Austin Abell
3ac6359e14
Remove unused keybase utility (#173) 2020-02-04 09:12:49 -05:00
Austin Abell
c99d5cf6c5
Switch EVM context to use header time (#167) 2020-01-09 09:03:39 +13:00
Austin Abell
35b16abe51
Nonce increase in ante handler (#165)
* Change nonce to be incremented in pending state during ante handler instead of skipping

* remove unnecessary sim check
2020-01-08 10:13:19 +13:00
Austin Abell
51adade59f
Update golangci-lint config and fix linting issues (#168)
* update golangci

* update golang lint yml and updated linting issues
2020-01-08 09:56:49 +13:00
Austin Abell
b98685c46b
Enable Cosmos endpoints on rest-server command (#162) 2019-12-20 19:47:02 +10:00
Austin Abell
a4d88188bc
Add statedb bloom filter test (#160) 2019-12-19 16:18:50 +10:00
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
c2646c7b18
Unsafe export private key command for dev tooling (#155)
* Add unsafe private key export function for metamask/devtooling

* Cut 0x bytes for importing into dev tooling
2019-11-16 12:59:19 -05:00
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
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
1f51b73d71
Fix block gas limit return for dev tooling (#150)
* cap formatted -1 value of tendermint block gas limit

* return blank miner address for dev tooling checks
2019-11-07 13:02:35 -05:00
Austin Abell
021c9f440a
Migrates gentx command to application (#144)
* Migrates gentx command to application for updated keybase

* Remove cosmos keys commands

* Fix genutil codec for key type

* Remove relevant TODOs
2019-11-05 11:50:55 -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
Austin Abell
42227a1b8c
Fix eth_estimateGas and simulated txs (#142) 2019-11-04 11:59:16 -05:00
Austin Abell
3ad2bb1de1
Cosmos-sdk version fix (#141) 2019-11-02 18:04:13 -04:00
Austin Abell
3cd6a0b136
Sanity check to make sure chain-id is set (#140) 2019-11-02 13:13:31 -04: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
9294fa8423
Fix edge case for accessing accounts through rpc (#134)
* Add mutex and close keybase database correctly after use

* Add options http request to rpc API for remix
2019-10-31 11:09:40 -04:00
Austin Abell
c130105b86
Fix EVM out of gas handling (#133) 2019-10-30 14:39:46 -04:00
Dustin Brickwood
69e0873dd9
eth_estimateGas (#128)
* Draft eth_estimateGas
* implemented eth_estimateGas
* refactored doCall to be used for both eth_call and eth_estiamteGas

* updated to reflect requested changes

* moved GenerateFromArgs func

* removed todo

* revert comment

* fixes dereference issue

* gofmted
2019-10-30 13:30:24 -05:00
Austin Abell
741dfeb461
Revert journal changes from simulated transactions (#132) 2019-10-30 11:16:00 -04:00
Austin Abell
51ff5d48a9
Fixes gas limit for simulated transaction (#130)
* Fixes call gas limit for stdTxs

* reword comment
2019-10-29 11:52:26 -04: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
475919274e
Tx receipt query fix (#126)
* Fixed tx receipt error on failed transaction

* Add returnData to failed transaction for logs bloom

* Change comment to TODO
2019-10-23 01:04:51 +09: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