Commit Graph

633 Commits

Author SHA1 Message Date
noot
ca0a79f103
fix state object bugs causing tx reverts (#445) 2020-08-17 09:49:13 -04:00
noot
1cb712fb16
personal API (#420) 2020-08-13 13:14:48 -04:00
Federico Kunze
a2a5799d13
testnet custom algorithm (#441)
* testnet custom algorithm

* minor fixes
2020-08-12 10:25:57 -04:00
Federico Kunze
a243f43fe2
crypto: add keyring supported algorithms (#439)
* add keyring supported algorithms

* lint

* minor updates

* use eth_secp256k1 as the default signing algo

* add flag

* derivation func

* refactor

* rename keys amino registration

* fix keys

* address comments from review
2020-08-11 11:01:15 -04:00
Justin Thompson
defcad2bcd
fix docker build (#437)
* fix docker build

* docs

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-08-10 14:10:33 -06:00
dependabot[bot]
bba6d880d1
build(deps): bump prismjs from 1.20.0 to 1.21.0 in /docs (#436)
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.20.0 to 1.21.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.20.0...v1.21.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-10 03:31:57 -04:00
Federico Kunze
27dc867cdd
fix port assignment for Docker testnet (#432) 2020-08-05 12:39:03 -04:00
Justin Thompson
bcca24f752
change binary name (#431) 2020-08-05 11:17:50 -04:00
Federico Kunze
5ff2b316cb
app: change bech32 prefix cosmos -> eth (#429) 2020-08-05 09:27:48 -04:00
Federico Kunze
1428cd6a5c
fix app version (#427) 2020-08-05 02:21:14 +02:00
Daniel Choi
18a710b552
expose ws port for testnet (#428)
* expose ws port

* include jsonrpc and ws docs

* Apply suggestions from code review

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-08-04 17:46:41 -04:00
Justin Thompson
50a632580d
windows test-net (#422)
* windows test-net

* Update Makefile

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-08-04 14:05:18 -06:00
Federico Kunze
241fb2fe83
export funcs for AragonChain (#423)
* export funcs for AragonChain

* update comments
2020-08-04 14:52:32 -04:00
dependabot-preview[bot]
9a79bcc4f5
build(deps): bump github.com/spf13/viper from 1.7.0 to 1.7.1 (#419)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.7.0...v1.7.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-08-03 07:44:59 -04:00
Federico Kunze
375a7a074d
local testnet command (#378)
* evm: fix non-determinism

* fixes

* typo

* fix tests

* local testnet command

* fix testnet cmd (#383)

fix export-eth-key

generate eth type account in genesis.json file

* fixes

* update docker

* minor changes

* fix build-docker-local-ethermint

* fix dockerfile

* update Makefile

* update denoms

* update genesis file

* update makefile

* fix docker-compose.yml images

* fix localnet execution (#398)

* finish documentation

* changelog and comment rpc tests workflow

* update codecov

* update testnet docs

* fix docker-compose execution

* update docs

* fix errors and make testnet work (#403)

* fix errors and make testnet work

* Update Dockerfile

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

* wip - fix db

* fixes emintd nodes and syncs nodes

* starts daemon and rpc server in bg

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

* update entrypoint and docs

* update logs

* try fix rpc

* build docker image

* Update Dockerfile

Co-authored-by: Holechain <nrgh@foxmail.com>
Co-authored-by: Alessio Treglia <quadrispro@ubuntu.com>
Co-authored-by: Daniel Choi <choidanielw@gmail.com>
2020-07-31 17:42:04 -04:00
Federico Kunze
0dc45bc24e
actions: stale bot (#415)
* actions: stale bot

* filter diff on build

* fix

* more fixes
2020-07-28 10:04:06 -04:00
dependabot-preview[bot]
30353ceaae
build(deps): bump github.com/ethereum/go-ethereum from 1.9.17 to 1.9.18 (#416)
* build(deps): bump github.com/ethereum/go-ethereum from 1.9.17 to 1.9.18

Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.9.17 to 1.9.18.
- [Release notes](https://github.com/ethereum/go-ethereum/releases)
- [Commits](https://github.com/ethereum/go-ethereum/compare/v1.9.17...v1.9.18)

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

* tidy

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
2020-07-28 09:54:43 -04:00
Federico Kunze
de8d8acf77
x/evm: StateBD tests (#407)
* draft state_transition

* working test

* keeper test

* statedb rewrite

* fix tests

* add keeper statedb test

* minor changes

* x/evm: StateBD tests

* try fix

* fix stateObject.setState

* Update x/evm/types/state_object.go

* update stateObject.setState

* uncomment test

* increase coverage

* fix test-import

* update rpc tests

Co-authored-by: Justin Thompson <justin.thompson12@hotmail.com>
Co-authored-by: noot <elizabethjbinks@gmail.com>
2020-07-27 15:33:16 -04:00
noot
7b4f712f66
docs: add remix guide (#413)
* working on remix guide

* add remix guide

* Apply suggestions from code review

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-26 15:45:09 -04:00
Federico Kunze
8789a04998
actions: fix test-importer workflow (#410)
* actions: fix test-importer workflow

* update gitignore
2020-07-24 14:54:25 -04:00
noot
cc6b5d04f2
fix rpc-test action (#402) 2020-07-23 15:38:47 -04:00
Justin Thompson
d69aad2016
x/evm: stateDB and keeper tests (#396)
* draft state_transition

* working test

* keeper test

* statedb rewrite

* fix tests

* add keeper statedb test

* minor changes

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
2020-07-23 14:30:31 -04:00
dependabot[bot]
e0d3655eed
build(deps): bump lodash from 4.17.15 to 4.17.19 in /docs (#400)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-21 06:47:31 -04:00
dependabot-preview[bot]
0396da3735
build(deps): bump github.com/ethereum/go-ethereum from 1.9.16 to 1.9.17 (#401)
Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.9.16 to 1.9.17.
- [Release notes](https://github.com/ethereum/go-ethereum/releases)
- [Commits](https://github.com/ethereum/go-ethereum/compare/v1.9.16...v1.9.17)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-21 06:45:16 -04:00
Federico Kunze
bdf9cec9f9
bump lodash version on docs/ (#397) 2020-07-20 13:25:31 -04:00
noot
1a72622b06
docs: truffle guide (#394)
* add truffle guide, update broken links

* cleanup

* update guide

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
2020-07-20 03:25:29 -04:00
Federico Kunze
5ba8ce4605
testnet docs (#393)
* testnet docs

* more updates on quickstart docs

* update quickstart

* more updates

* update quickstart

* final touches

* update lint
2020-07-17 14:07:05 -04:00
Federico Kunze
2fb4ab4862
x/evm: contract deploy test (#392)
* Add deploy and call test example to handler_test.go (#271)

* Add deploy and call test example to handler_test.go

* fmt the file

* remove the smartcontract Bytecode comment

Co-authored-by: liuxiong <xiong.liu@okcoin.net>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* fix test

Co-authored-by: Louis Liu <35095310+louisliu2048@users.noreply.github.com>
Co-authored-by: liuxiong <xiong.liu@okcoin.net>
2020-07-15 10:52:21 -04:00
Justin Thompson
6bc80c5357
x/evm: state_transition test (#389)
* draft state_transition

* working test

* keeper test

* Update x/evm/types/state_transition_test.go

* update state_transition_test.go

* failed Finalize test case

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
2020-07-15 06:36:55 -04:00
Federico Kunze
90f39390bc
evm: fix non-determinism (#352)
* evm: fix non-determinism

* fixes

* typo

* fix tests

* use Storage slice

* more fixes

* lint

* merge development

* additional tests
2020-07-13 16:01:45 -04:00
Federico Kunze
42fc796595
x/evm: state_object tests (#388)
* x/evm: state_object tests

* tests

* commit tests

* finalize tests

* update
2020-07-13 13:44:28 -04:00
Federico Kunze
fef16af382
x/evm: journal tests (#384)
* x/evm: journal tests

* comment tests

* cleanup setup

* fixes

* add test for various logs

* lint

* minor fix
2020-07-13 12:30:24 -04:00
dependabot-preview[bot]
d4476d1157
Bump github.com/ethereum/go-ethereum from 1.9.15 to 1.9.16 (#387)
* Bump github.com/ethereum/go-ethereum from 1.9.15 to 1.9.16

Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.9.15 to 1.9.16.
- [Release notes](https://github.com/ethereum/go-ethereum/releases)
- [Commits](https://github.com/ethereum/go-ethereum/compare/v1.9.15...v1.9.16)

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

* go mod verify and tidy

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
2020-07-13 08:45:21 -04:00
Federico Kunze
0cc1c40e34
x/evm: tests (#381)
* run suite

* add a few tests (#340)

* add a few tests

* fixes to tests

* add more tests

* check err to fix lint

* add preimage and refund tests

* add more more tests

* fix linting errs

* lint err

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

* set stateDB on suite

* fix genesis

* logs tests

* remove dup imports

Co-authored-by: Daniel Choi <choidanielw@gmail.com>
2020-07-08 14:11:02 -04:00
noot
1d8c997585
rpc: implement eth_chainId (#379)
* add eth_chainId

* add nolint

* use clientCtx chainID

* rpc: eth_chainId test

Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
2020-07-08 03:57:19 -04:00
noot
c4cf33a9bb
implement ethereum-compatible websockets server (#357) 2020-07-06 13:23:35 -04:00
Daniel Choi
b76c36fcdb
allow multikey unlock (#356)
* allow multikey unlock

* fix lint

* Update rpc/apis.go

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-06 10:03:34 -07:00
Federico Kunze
5768706917
docs: fixes and websockets guide (#361)
* docs: fixes and websockets guide

* minor fixes
2020-07-06 12:56:02 -04:00
Federico Kunze
20e9b2ede3
rpc: event websocket subscription (#308)
* rpc: event websocket subscription

* rpc: use tendermint event subscriptions

* new log events

* filter evm transactions

* filter logs

* wip: refactor filters

* remove custom BlockNumber

* wip: refactor rpc

* HeaderByNumber and HeaderByHash

* update Tendermint event system

* update Filter

* update EventSystem

* fix lint issues

* update rpc filters

* upgrade to tendermint v0.33.4

* update filters

* fix unsubscription

* updates wip

* initialize channels

* cleanup go routines

* pass ResultEvent channel on subscription

* error channel

* add block filter changes test

* add eventCh loop

* pass funcs in select go func, block filter working

* cleanup

* lint

* NewFilter and GetFilterChanges working

* eth_getLogs working

* lint

* lint

* cleanup

* remove logs and minor fixes

* changelog

* address @noot comments

* revert BlockNumber removal

Co-authored-by: noot <elizabethjbinks@gmail.com>
2020-07-03 11:40:00 -04:00
Federico Kunze
c8b8f49675
run make format (#351)
* run make format

* fix yaml

* fixes
2020-07-02 11:19:48 -04:00
Federico Kunze
d4fe9b234c
docs: vuepress setup and section titles (#311)
* vuepress

* docs: vuepress setup and TODOs

* doc scripts

* update Makefile and gitignore

* more docs updates

* gitignore

* metamask instructions

* update image

* updates

* updates from call

* docs: vuepress config and home.vue (#350)

* update uncles return (#337)

* x/evm: fix EndBlock consensus failure (#334)

* add test for sending tx w/ 21000 gas

* improve rpc transfer test

* use ctx in EndBlock

* UpdateAccounts and ClearStateObjects with passed in context

* log ethereum address on error

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

* update Ethermint color variables

* add header and footer logo

* tweak config.js

* WIP custom homepage.vue

* add layout to docs/README

* update color variables

* add eth logo black and white

* tweak docs/README

* update logo and logo-bw svg

* bump 1.0.167

* homepage → home

* add icon-code, icon-rocket

* layout: home, remove configurable frontmatter: label, read, use

* clean up config.js

* bump 1.0.168

* fix missing comma from resolving conflicts

* update sidebar, config nav, path

* remove left whitespace on the header and footer logos

* clean up home.vue, docs/README

* update ethermint forum url in footer.links

* comment out custom true to enable searchbar in subpages

* remove external link icon for Guides

* comments, revert custom true

* clean up config.js, add specifications icon

Co-authored-by: noot <36753753+noot@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>

* final touches

Co-authored-by: Cyrus Goh <hello@lovincyrus.com>
Co-authored-by: noot <36753753+noot@users.noreply.github.com>
2020-07-02 04:22:45 -04:00
Federico Kunze
edf4357176
build: github actions (#346)
* add workflows

* fix

* fix lint

* rpc tests

* build and format

* fix build errors

* remove dontcover

* update importer test

* more fixes

* lint

* split importer test

* fix

* remove tmp dir

* revert

* comment test import
2020-06-26 18:26:55 -04:00
noot
e9c494cf71
rpc: return 0 nonce if account doesn't exist (#345)
* add EnsureExists check to GetTransactionCount

* cleanup, return 0 as nonce if account doesn't exist

* update changelog

* update changelog
2020-06-26 14:15:54 -04:00
noot
9755175d33
rpc: estimate gas test for contract deployment (#342)
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-25 03:51:56 -04:00
dependabot-preview[bot]
79181c4e08
Bump github.com/ethereum/go-ethereum from 1.9.14 to 1.9.15 (#326)
Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.9.14 to 1.9.15.
- [Release notes](https://github.com/ethereum/go-ethereum/releases)
- [Commits](https://github.com/ethereum/go-ethereum/compare/v1.9.14...v1.9.15)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-24 12:12:08 -04:00
noot
8ba6400e88
fix value transfer (#341)
* debugging balance and gas

* add prints

* remove gas consumption in ante handler

* cleanup

* fix test
2020-06-24 05:38:53 -04:00
noot
28e28f2a7b
x/evm: fix EndBlock consensus failure (#334)
* add test for sending tx w/ 21000 gas

* improve rpc transfer test

* use ctx in EndBlock

* UpdateAccounts and ClearStateObjects with passed in context

* log ethereum address on error

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
2020-06-22 12:07:35 -04:00
noot
0921c863e7
update uncles return (#337) 2020-06-18 16:35:06 -04:00
noot
9f573690a6
implement eth_exportAccount (#331) 2020-06-17 14:23:36 -04:00
noot
94f6acc651
rpc: return 0x0 as extra data in block instead of nil (#333)
* return 0x0 extra data instead of nil

* add fix for getBlock

* add tests
2020-06-17 12:14:21 -04:00