yihuang
e1560849dd
feat(ante, evm): set priority for eth transactions ( #1214 )
...
* Set priority for eth transactions
Set the tx priority to the lowest priority in the messages.
fix unit tests
code cleanup and spec
update spec
fix go lint
add priority integration test
add python linter job
add access list tx type
fix gas limit
remove ledger tag, so no need to replace hid dependency
fix earlier check
ibc-go v5.0.0-beta1
* fix pruned node integration test
* Update x/feemarket/spec/09_antehandlers.md
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-08-05 15:00:31 +02:00
Federico Kunze Küllmer
53f160cbb0
chore(docs): update changelog ( #1224 )
...
* release: v0.17.0 changelog (#1153 )
* release: v0.17.0 changelog
* rm newline
* update link
* chore(docs): update changelog
2022-08-03 09:59:25 +02:00
yihuang
8d3a2b1df2
fix pruned node integration test ( #1223 )
...
closes : #1222
2022-08-03 09:46:52 +02:00
yihuang
0e46b15e8d
fix: integration tests are not run in CI ( #1221 )
...
Solution:
- make it run
- add python linter job for the python codes
- fix nix expression to build ethermintd
add file diff condition
add gomod2nix check
2022-08-02 08:21:03 +02:00
Federico Kunze Küllmer
a902c8a27a
Update CODEOWNERS ( #1220 )
2022-08-01 15:54:51 +02:00
dependabot[bot]
642da0c617
build(deps): bump google.golang.org/protobuf from 1.28.0 to 1.28.1 ( #1215 )
...
Bumps [google.golang.org/protobuf](https://github.com/protocolbuffers/protobuf-go ) from 1.28.0 to 1.28.1.
- [Release notes](https://github.com/protocolbuffers/protobuf-go/releases )
- [Changelog](https://github.com/protocolbuffers/protobuf-go/blob/master/release.bash )
- [Commits](https://github.com/protocolbuffers/protobuf-go/compare/v1.28.0...v1.28.1 )
---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-29 12:18:54 +00:00
dependabot[bot]
9752333a82
build(deps): bump cosmossdk.io/math from 1.0.0-beta.2 to 1.0.0-beta.3 ( #1216 )
...
Bumps [cosmossdk.io/math](https://github.com/cosmos/cosmos-sdk ) from 1.0.0-beta.2 to 1.0.0-beta.3.
- [Release notes](https://github.com/cosmos/cosmos-sdk/releases )
- [Changelog](https://github.com/cosmos/cosmos-sdk/blob/main/CHANGELOG.md )
- [Commits](https://github.com/cosmos/cosmos-sdk/compare/math/v1.0.0-beta.2...math/v1.0.0-beta.3 )
---
updated-dependencies:
- dependency-name: cosmossdk.io/math
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-29 14:10:53 +02:00
Daniel Burckhardt
ee806fc41f
ENG 119 json rpc unit tests ( #1189 )
...
* tests(json-rpc): wip evm_backend unit test setup
* tests(json-rpc): wip evm_backend unit test setup
* fix viper
* wip query client mock
* fix first backend test except error message
* clean up
* wip Context with Height
* fix JSON RPC backend test setup
* typo
* refactor folder structure
* tests(json-rpc):add BlockBloom tests
* tests(json-rpc): remove unused malleate
* tests(json-rpc): add BaseFee tests
* refactor query tests
* add client mock
* add GetTendermintBlockByNumber tests
* refactor mock tests
* refactor
* wip backend EthBlockFromTendermint test
* wip backend EthBlockFromTendermint test
* refactor backend EthBlockFromTendermint test
* add TestGetTendermintBlockResultByNumber
* add GetBlockByNumber tests
* refactor mocks
* fix spelling
* add more tests and address comments
2022-07-29 10:35:07 +00:00
Freddy Caceres
ebbffc685c
change default maxGasWanted ( #1208 )
2022-07-28 19:14:46 +00:00
yihuang
29d3abcf09
!feat(deps): Upgrade cosmos-sdk to v0.46.0
( #1168 )
...
* Reuse cosmos-sdk client library to create keyring
Extracted from https://github.com/evmos/ethermint/pull/1168
Cleanup cmd code for easier to migration to cosmos-sdk 0.46
* Update cosmos-sdk v0.46
prepare for implementing cosmos-sdk feemarket and tx prioritization
changelog
refactor cmd
use sdkmath
fix lint
fix unit tests
fix unit test genesis
fix unit tests
fix unit test env setup
fix unit tests
fix unit tests
register PrivKey impl
fix extension options
fix lint
fix unit tests
make HandlerOption.Validate private
gofumpt
fix msg response decoding
fix sim test
bump cosmos-sdk version
fix sim test
sdk 46
fix unit test
fix unit tests
update ibc-go
2022-07-28 15:43:49 +02:00
dependabot[bot]
36cbb52004
build(deps): bump cachix/install-nix-action from 15 to 17 ( #1209 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 15 to 17.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v15...v17 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-28 11:55:37 +00:00
dependabot[bot]
9e6f3382ef
build(deps): bump bufbuild/buf-setup-action from 1.6.0 to 1.7.0 ( #1211 )
...
Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases )
- [Commits](https://github.com/bufbuild/buf-setup-action/compare/v1.6.0...v1.7.0 )
---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-28 13:54:17 +02:00
dependabot[bot]
bc197fce0c
build(deps): bump actions/upload-artifact from 2 to 3 ( #1210 )
2022-07-28 13:45:30 +02:00
dependabot[bot]
3df8bc2fc8
build(deps): bump @openzeppelin/contracts ( #1205 )
...
Bumps [@openzeppelin/contracts](https://github.com/OpenZeppelin/openzeppelin-contracts ) from 4.7.0 to 4.7.1.
- [Release notes](https://github.com/OpenZeppelin/openzeppelin-contracts/releases )
- [Changelog](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/CHANGELOG.md )
- [Commits](https://github.com/OpenZeppelin/openzeppelin-contracts/compare/v4.7.0...v4.7.1 )
---
updated-dependencies:
- dependency-name: "@openzeppelin/contracts"
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-27 13:28:35 +00:00
crypto-facs
fd0e62a067
imp(tests): integration tests setup ( #1196 )
...
* first pass
* latest
* working tests
* github actions
* remove unnecessary change
* remove unnecessary steps
* remove unnecessary import
* remove unnecessary change
* Update .github/workflows/test.yml
Co-authored-by: yihuang <huang@crypto.com>
* update .gitignore
* update github actions
* change evm denomination
* change evm denomination
* send tests to tests folder
* Delete result
* update go version
Co-authored-by: yihuang <huang@crypto.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-27 13:27:07 +00:00
dependabot[bot]
3460cba07c
build(deps): bump github.com/cosmos/ibc-go/v4 ( #1202 )
2022-07-26 14:01:34 +02:00
dependabot[bot]
0948c9d9b5
build(deps): bump github.com/onsi/gomega from 1.19.0 to 1.20.0 ( #1198 )
...
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega ) from 1.19.0 to 1.20.0.
- [Release notes](https://github.com/onsi/gomega/releases )
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/gomega/compare/v1.19.0...v1.20.0 )
---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-25 14:43:37 +02:00
Daniel Burckhardt
c626a5c8ee
testing(json rpc): Add backend test suite with mock grpc query client ( #1199 )
...
* tests(json-rpc): wip evm_backend unit test setup
* tests(json-rpc): wip evm_backend unit test setup
* fix viper
* wip query client mock
* fix first backend test except error message
* clean up
* wip Context with Height
* fix JSON RPC backend test setup
* typo
* refactor folder structure
* Update rpc/backend/evm_backend_test.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-23 11:16:23 +02:00
Victor Pham
cd41c48075
fix(evm): TxIndex
is wrong when trace is the first tx of a block ( #1187 )
...
* Fix TxIndex wrongly when trace first Tx of a block
If `Predecessors` is empty, `txConfig.TxIndex` originally = 0 and when it reachs line 401 `txConfig.TxIndex++`, it will becomes 1. It should be 0
* apply suggestion and add change-log
* fix comment
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-20 16:48:50 +02:00
yihuang
ffe78da36e
!fix(evm): Fix eth tx hashes in json-rpc responses ( #1176 )
...
* Fix eth tx hashes in json-rpc responses
Closes : #1175
- Remove Size_ field
- Validate From/Hash fields in ante handler
- Recompute tx hashes in json-rpc apis to cope with old blocks
Update CHANGELOG.md
remove Size_, validate Hash/From, add unit tests
update spec
Update CHANGELOG.md
Update app/ante/eth.go
populate From in SendRawTransaction
Apply suggestions from code review
keep Size_ field to avoid breaking tx format
* move some validation to ValidateBasic
* move validation to ValidateBasic
* make ToTransaction returns a valid msg
* restructure the protoTxProvider check
* add comment
* workaround tx hash issue in event parsing
* fix integration test
* fix unit test
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-19 15:12:48 +00:00
dependabot[bot]
8932a6d743
build(deps): bump alpine from 3.16.0 to 3.16.1 ( #1192 )
...
Bumps alpine from 3.16.0 to 3.16.1.
---
updated-dependencies:
- dependency-name: alpine
dependency-type: direct:production
update-type: version-update:semver-patch
...
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 Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-19 17:06:48 +02:00
Federico Kunze Küllmer
73c9ea218e
fix(rpc): fix panic on breaking EVM and feemarket params ( #1188 )
...
* release: v0.17.0 changelog (#1153 )
* release: v0.17.0 changelog
* rm newline
* update link
* fix(rpc): fix panic on breaking EVM and feemarket params
* changelog
* fix gosec
2022-07-19 17:00:43 +02:00
yihuang
ea81e15d04
imp: NewAnteHandler returns error if input not valid ( #1173 )
...
make NewAnteHandler safer too use, and closer to cosmos-sdk api.
extracted from https://github.com/evmos/ethermint/pull/1168
2022-07-19 06:50:31 +02:00
Daniel Burckhardt
969794c5b4
impr(evm): add check msg.Validate check to prevent 0 gas txs ( #1174 )
...
* impr(evm): add check msg.Validate check to prevent 0 gas txs
* add changelog
* impr(evm): add integration tests for zero gas txs
* go mod tidy and proto swagger
* fix comment
* move changelog to state machine breaking
* add ReadHeaderTimeout`
* revert ReadHeaderTimeout config change
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-18 22:21:04 +02:00
yihuang
b74b37f5f0
fix: traceTransaction returns zero gas used ( #1179 )
...
* Problem: traceTransaction returns zero gas used
Solution:
- call CaptureTxStart and CaptureTxEnd
* fix trace unit tests
* add overflow check
* add comment
* check gas used is positive
* Update x/evm/keeper/state_transition.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-18 22:16:28 +02:00
crypto-facs
da8fcc3ae2
fix(rpc): optimize eth_getBalance
endpoint ( #1169 )
...
* optimize get balance endpoint
* add comment
* add changelog
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-11 15:04:45 +00:00
yihuang
9ae73b670b
deps: upgrade ibc-go to v4-rc ( #1167 )
...
changelog
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-11 13:18:03 +00:00
yihuang
b7c85beba3
imp(all): setup a validator in the test genesis ( #1171 )
...
It's disabled in cosmos-sdk 0.46's InitGenesis to have zero validators,
prepare for the upgrade of cosmos-sdk 0.46.
2022-07-11 14:42:59 +02:00
adu-crypto
3d2f72a153
fix: TestAppStateDeterminism could fail owing to non-determinism in cosmos-sdk simulation ( #1166 )
...
* update cosmos-sdk to latest commit to fix simulation failure
* fix typo: 'staking genesis' -> 'evm genesis'
Co-authored-by: Adu <foriteration@gmail.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-08 11:13:34 +00:00
crypto-facs
4a6f4fd6e0
imp(deps): Geth upgrade v1.10.19 ( #1159 )
...
* upgrade geth and fix build
* add support for
* update EIPs
* fix keeper tests
* update traceTx function with latest geth changes
* remove unnecessary comments
* fix tests
* update proto
* add migrations
* update module version
* fix grpc test
* fix lint
* fix lint
* update changelog
* fix typo
* remove unnecessary format logs
* Update proto/ethermint/evm/v1/evm.proto
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* remove debug true on default
* update comments
* fixing ante tests
* fixed cycle imports on migrate_test
* fix wrong naming
* update comment
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-08 10:58:04 +00:00
Daniel Burckhardt
4a66ff95d9
feemarket(specs): add hint on different gas terminology for gas in Cosmos and Ethereum ( #1165 )
2022-07-01 13:55:19 +02:00
dependabot[bot]
31c3660951
build(deps): bump github.com/stretchr/testify from 1.7.5 to 1.8.0 ( #1163 )
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.5 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.5...v1.8.0 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-30 15:41:32 +02:00
Daniel Burckhardt
b7878fd6f1
fix goreleaser ( #1160 )
...
* impr(init.sh): remove increase block time
* bug(goreleaser): update docker image
2022-06-29 19:08:28 +02:00
Aditya Saravanan
de21773842
fix(ci): fix semgrep issue ( #1157 )
2022-06-27 19:50:24 +02:00
Federico Kunze Küllmer
ccf66cf36e
release: backport v0.17.0 changelog ( #1155 )
...
* release: v0.17.0 changelog (#1153 )
* release: v0.17.0 changelog
* rm newline
* update link
* update mergify
2022-06-27 12:56:29 +02:00
Federico Kunze Küllmer
3ac8b93a1c
evm: cleanup, remove atlas/ ( #1152 )
...
* evm: cleanup, remove atlas/
* rm tparse action
* fix lint issue
* use cases.NoLower
* tidy
2022-06-27 11:58:44 +02:00
Federico Kunze Küllmer
27ade5d731
deps: Go 1.18 ( #1147 )
...
* deps: Go 1.18
* changelog
* update
2022-06-24 18:16:19 +02:00
dependabot[bot]
4a9bf0e91e
build(deps): bump github.com/stretchr/testify from 1.7.4 to 1.7.5 ( #1148 )
2022-06-24 13:33:21 +02:00
yihuang
2ce168526a
fix!: fix json-rpc failures for pruned nodes ( #1126 )
...
* fix json-rpc failures for pruned nodes
Closes : #1123
Solution:
- try to parse base fee from events if grpc query failed
- use a `nil` base fee if failed to parse base fee from events
- use zero address if query validator address failed
- optimize some json-rpc apis by the way.
* changelog
* fix lint
* use GetTendermintBlockResultByNumber
* refactor
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-06-22 13:26:20 +02:00
Daniel Burckhardt
d3333418c5
bug(feemarket): set lower bound of base fee to min gas price param ( #1135 )
...
* bug(feemarket): set lower bound of base fee to min gas price param)
* fix
* bug(feemarket): flag necessary improvement to integration tests, as the baseFee changes for every test
* bug(feemarket): add unit tests for CalculateBaseFee
* bug(feemarket): move integration test setup out of Describe block
* wip fix tests
* bug(feemarket): fix integration tests
* bug(feemarket): wip improve specs
* bug(feemarket): add spec concepts
* bug(feemarket): remove todo
* bug(feemarket): remove changes used for debugging in params
* bug(feemarket): remove todo in integration test
* add changelog
* address PR comments
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-06-22 12:57:16 +02:00
Federico Kunze Küllmer
8e2c65295f
imp(evm): rename RejectUnprotectedTx
to AllowUnprotectedTxs
( #1142 )
...
* imp(evm): rename RejectUnprotectedTx to AllowUnprotectedTxs
* changelog
2022-06-22 12:51:14 +02:00
Federico Kunze Küllmer
3b852f723e
imp(rpc): restrict unprotected txs on the node RPC ( #1143 )
...
* imp(rpc): restrict unprotected txs on the node RPC
* lint
* send raw transaction
* c++
2022-06-22 12:50:36 +02:00
dependabot[bot]
8817e8052a
build(deps): bump bufbuild/buf-setup-action from 1.5.0 to 1.6.0 ( #1145 )
...
Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action ) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases )
- [Commits](https://github.com/bufbuild/buf-setup-action/compare/v1.5.0...v1.6.0 )
---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-22 12:43:13 +02:00
Aditya Saravanan
8eb8e51894
fix(ci): buf makefile dependency, update semgrep workflow ( #1144 )
2022-06-22 10:28:23 +02:00
yihuang
6cf2b9fdd3
fix(evm): clear logs if tx failed in post processing hooks ( #1128 )
...
* Problem: clear logs if tx failed in post processing hooks
* Update x/evm/keeper/state_transition.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-06-21 13:21:52 +02:00
dependabot[bot]
5e55e5c444
build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.4 ( #1141 )
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.2 to 1.7.4.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.2...v1.7.4 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-21 13:18:53 +02:00
crypto-facs
494d646539
fix(rpc): Fix GasPrice
calculation with relation to MinGasPrice
( #1138 )
...
* fix gasPrice minGasPrice comparison
* update changelog
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-06-21 13:13:13 +02:00
dependabot[bot]
667940d890
build(deps): bump github.com/spf13/cobra from 1.4.0 to 1.5.0 ( #1140 )
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Commits](https://github.com/spf13/cobra/compare/v1.4.0...v1.5.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-21 13:11:23 +02:00
dependabot[bot]
47ac4f99ff
build(deps): bump technote-space/get-diff-action from 6.0.1 to 6.1.0 ( #1139 )
...
Bumps [technote-space/get-diff-action](https://github.com/technote-space/get-diff-action ) from 6.0.1 to 6.1.0.
- [Release notes](https://github.com/technote-space/get-diff-action/releases )
- [Changelog](https://github.com/technote-space/get-diff-action/blob/main/.releasegarc )
- [Commits](https://github.com/technote-space/get-diff-action/compare/v6.0.1...v6.1.0 )
---
updated-dependencies:
- dependency-name: technote-space/get-diff-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-21 12:53:00 +02:00
Federico Kunze Küllmer
ec8e93b319
all: rename go module to evmos/ethermint ( #1137 )
2022-06-19 11:43:41 +02:00