Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add and fix existing ethermint rpc unit test #2294

Merged
merged 45 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
4c4b0ca
Add eth tx bytes to events and decode in tracing
skosito May 21, 2024
22ebd86
bump ethermint
skosito May 21, 2024
7e0e446
cleanup and add predecessors handling
skosito May 22, 2024
134036e
cleanup
skosito May 22, 2024
2e275f8
POC for alternative solution to pull tx info from events
skosito May 22, 2024
f6cb6eb
cleanup
skosito May 23, 2024
8f611cb
cleanup
skosito May 23, 2024
51761da
Modify rpc methods to include synthetic txs
skosito May 28, 2024
c0b8891
Add todos
skosito May 28, 2024
5670023
cleanup
skosito May 28, 2024
299fd84
cleanup
skosito May 28, 2024
531052e
changelog
skosito May 28, 2024
7dd8aa6
Merge branch 'develop' into debug-trace-tx-changes
skosito May 28, 2024
9a43e43
comments
skosito May 28, 2024
da06e60
refactor duplicate code
skosito May 28, 2024
85f8bf8
make generate
skosito May 28, 2024
51d22a2
lint fixes
skosito May 28, 2024
51f265a
cleanup
skosito May 28, 2024
e9408a4
link issue to todo
skosito May 28, 2024
367d9b0
Merge branch 'develop' into debug-trace-tx-changes
skosito May 29, 2024
9ff0b69
PR comments
skosito May 29, 2024
a8468e6
Remove todos
skosito May 29, 2024
9be7452
bump ethermint and use new attr constants
skosito May 29, 2024
2485961
port and fix rpc blocks tests
skosito May 30, 2024
885de7f
move account info tests
skosito May 30, 2024
043078f
call tx tests
skosito May 30, 2024
a765205
Merge branch 'develop' into debug-trace-tx-changes
skosito May 30, 2024
d761ed9
lint
skosito May 30, 2024
89bd917
PR comments
skosito May 30, 2024
736bb04
Merge branch 'debug-trace-tx-changes' into rpc-tests
skosito May 30, 2024
2f2b1fc
add more tests
skosito May 30, 2024
3532d39
fix tracing tests
skosito May 30, 2024
faf45e1
cleanup
skosito May 30, 2024
0dcbfb7
cleanup
skosito May 30, 2024
07aa91d
changelog
skosito May 31, 2024
96d0617
lint
skosito May 31, 2024
d22101a
make generate
skosito May 31, 2024
6911bfd
replace imports to ethermint rpc folder with zeta-chain
skosito May 31, 2024
0be001d
make generate
skosito May 31, 2024
ac6dfd7
Merge branch 'develop' into rpc-tests
skosito May 31, 2024
cb0a191
include rpc/backend in codecov report
skosito Jun 3, 2024
38738b4
PR comments
skosito Jun 3, 2024
ab1f121
allow whole rpc folder in codecov
skosito Jun 3, 2024
4a91aee
Merge branch 'develop' into rpc-tests
skosito Jun 3, 2024
077eb2e
Merge branch 'develop' into rpc-tests
skosito Jun 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* [2152](https://github.com/zeta-chain/node/pull/2152) - custom priority nonce mempool
* [2113](https://github.com/zeta-chain/node/pull/2113) - add zetaclientd-supervisor process
* [2154](https://github.com/zeta-chain/node/pull/2154) - add `ibccrosschain` module
* [2282](https://github.com/zeta-chain/node/pull/2282) - modify rpc methods to support synthetic txs
* [2258](https://github.com/zeta-chain/node/pull/2258) - add Optimism and Base in static chain information
* [2287](https://github.com/zeta-chain/node/pull/2287) - implement `MsgUpdateChainInfo` message
* [2279](https://github.com/zeta-chain/node/pull/2279) - add a CCTXGateway field to chain static data
Expand Down Expand Up @@ -45,6 +46,7 @@
* [2199](https://github.com/zeta-chain/node/pull/2199) - custom priority mempool unit tests
* [2240](https://github.com/zeta-chain/node/pull/2240) - removed hard-coded Bitcoin regnet chainID in E2E withdraw tests
* [2266](https://github.com/zeta-chain/node/pull/2266) - try fixing E2E test `crosschain_swap` failure `btc transaction not signed`
* [2294](https://github.com/zeta-chain/node/pull/2294) - add and fix existing ethermint rpc unit test

### Fixes

Expand Down
13 changes: 6 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ require (
cosmossdk.io/tools/rosetta v0.2.1
github.com/binance-chain/tss-lib v0.0.0-20201118045712-70b2cb4bf916
github.com/btcsuite/btcd/btcutil v1.1.3
github.com/cockroachdb/errors v1.10.0
github.com/cometbft/cometbft v0.37.4
github.com/cometbft/cometbft-db v0.8.0
github.com/golang/mock v1.6.0
github.com/huandu/skiplist v1.2.0
github.com/nanmu42/etherscan-api v1.10.0
github.com/onrik/ethrpc v1.2.0
github.com/tendermint/tendermint v0.34.12
go.nhat.io/grpcmock v0.25.0
)

Expand All @@ -77,7 +79,6 @@ require (
github.com/agl/ed25519 v0.0.0-20200225211852-fd4d107ace12 // indirect
github.com/bool64/shared v0.1.5 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cockroachdb/errors v1.10.0 // indirect
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
github.com/cockroachdb/pebble v0.0.0-20220817183557-09c6e030a677 // indirect
github.com/cockroachdb/redact v1.1.5 // indirect
Expand All @@ -95,10 +96,8 @@ require (
github.com/go-logr/stdr v1.2.2 // indirect
github.com/gogo/googleapis v1.4.1 // indirect
github.com/golang/glog v1.1.2 // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/google/pprof v0.0.0-20230602150820-91b7bce49751 // indirect
github.com/google/s2a-go v0.1.7 // indirect
github.com/huandu/skiplist v1.2.0 // indirect
github.com/iancoleman/orderedmap v0.3.0 // indirect
github.com/ipfs/boxo v0.10.0 // indirect
github.com/jmhodges/levigo v1.0.0 // indirect
Expand Down Expand Up @@ -216,7 +215,7 @@ require (
github.com/gtank/ristretto255 v0.1.2 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-getter v1.7.4 // indirect
github.com/hashicorp/go-getter v1.7.4
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-safetemp v1.0.0 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
Expand Down Expand Up @@ -321,7 +320,7 @@ require (
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.24.0 // indirect
golang.org/x/crypto v0.17.0
golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb // indirect
golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb
golang.org/x/mod v0.11.0 // indirect
golang.org/x/net v0.19.0
golang.org/x/oauth2 v0.15.0 // indirect
Expand Down Expand Up @@ -354,4 +353,4 @@ replace (

replace github.com/cometbft/cometbft-db => github.com/notional-labs/cometbft-db v0.0.0-20230321185329-6dc7c0ca6345

replace github.com/evmos/ethermint => github.com/zeta-chain/ethermint v0.0.0-20240429123701-35f3f79bf83f
replace github.com/evmos/ethermint => github.com/zeta-chain/ethermint v0.0.0-20240529195014-204348d5452d
5 changes: 2 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1639,7 +1639,6 @@ github.com/tendermint/tendermint v0.34.0-rc6/go.mod h1:ugzyZO5foutZImv0Iyx/gOFCX
github.com/tendermint/tendermint v0.34.0/go.mod h1:Aj3PIipBFSNO21r+Lq3TtzQ+uKESxkbA3yo/INM4QwQ=
github.com/tendermint/tendermint v0.34.10/go.mod h1:aeHL7alPh4uTBIJQ8mgFEE8VwJLXI1VD3rVOmH2Mcy0=
github.com/tendermint/tendermint v0.34.11/go.mod h1:aeHL7alPh4uTBIJQ8mgFEE8VwJLXI1VD3rVOmH2Mcy0=
github.com/tendermint/tendermint v0.34.12 h1:m+kUYNhONedhJfHmHG8lqsdZvbR5t6vmhaok1yXjpKg=
github.com/tendermint/tendermint v0.34.12/go.mod h1:aeHL7alPh4uTBIJQ8mgFEE8VwJLXI1VD3rVOmH2Mcy0=
github.com/tendermint/tm-db v0.6.2/go.mod h1:GYtQ67SUvATOcoY8/+x6ylk8Qo02BQyLrAs+yAcLvGI=
github.com/tendermint/tm-db v0.6.3/go.mod h1:lfA1dL9/Y/Y8wwyPp2NMLyn5P5Ptr/gvDFNWtrCWSf8=
Expand Down Expand Up @@ -1733,8 +1732,8 @@ github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
github.com/zeta-chain/ethermint v0.0.0-20240429123701-35f3f79bf83f h1:joafCsPgohPEn93VCbNXi9IAl6kNvKy8u+kv5amEvUk=
github.com/zeta-chain/ethermint v0.0.0-20240429123701-35f3f79bf83f/go.mod h1:s1zA6OpXv3Tb5I0M6M6j5fo/AssaZL/pgkc7G0W2kN8=
github.com/zeta-chain/ethermint v0.0.0-20240529195014-204348d5452d h1:uOpeOcEJoIG7F7/I1peSOQA3Q6VP8W7L7Cu/Xd5yEzM=
github.com/zeta-chain/ethermint v0.0.0-20240529195014-204348d5452d/go.mod h1:s1zA6OpXv3Tb5I0M6M6j5fo/AssaZL/pgkc7G0W2kN8=
github.com/zeta-chain/go-tss v0.1.1-0.20240430111318-1785e48eb127 h1:AGQepvsMIVHAHPlplzNcSCyMoGBY1DfO4WHG/QHUSIU=
github.com/zeta-chain/go-tss v0.1.1-0.20240430111318-1785e48eb127/go.mod h1:bVpAoSlRYYCY/R34horVU3cheeHqhSVxygelc++emIU=
github.com/zeta-chain/keystone/keys v0.0.0-20231105174229-903bc9405da2 h1:gd2uE0X+ZbdFJ8DubxNqLbOVlCB12EgWdzSNRAR82tM=
Expand Down
Loading
Loading