949674e511
* fix(rpc): align fee history (#1611) * update nix * add next fee in fee history * fix test * add change doc * height + 1 for next fee * cross check baseFeePerGas len * Update tests/integration_tests/test_fee_history.py Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com> * fix oldestBlock & align earliest input as eth * update doc * update nix * isort test_fee_history.py * fix test * align rpc res as eth * add cross check * add baseFeePerGas len check * add oldestBlock check Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com> Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com> (cherry picked from commit 47fdfd3d8318358c2578b610bc35bc8c1ebb131e) # Conflicts: # CHANGELOG.md * address merge conflicts Co-authored-by: mmsqe <mavis@crypto.com> Co-authored-by: MalteHerrmann <malte@evmos.org> Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com> |
||
---|---|---|
.. | ||
configs | ||
hardhat | ||
__init__.py | ||
.isort.cfg | ||
conftest.py | ||
cosmoscli.py | ||
expected_constants.py | ||
network.py | ||
poetry.lock | ||
pyproject.toml | ||
README.md | ||
shell.nix | ||
test_account.py | ||
test_fee_history.py | ||
test_filters.py | ||
test_gas.py | ||
test_grpc_only.py | ||
test_priority.py | ||
test_pruned_node.py | ||
test_rollback.py | ||
test_tracers.py | ||
test_types.py | ||
test_upgrade.py | ||
test_websockets.py | ||
utils.py |
RPC Integration tests
The RPC integration test suite uses nix for reproducible and configurable builds allowing to run integration tests using python web3 library against different Ethermint and Geth clients with multiple configurations.
Installation
Nix Multi-user installation:
sh <(curl -L https://nixos.org/nix/install) --daemon
Make sure the following line has been added to your shell profile (e.g. ~/.profile):
source ~/.nix-profile/etc/profile.d/nix.sh
Then re-login shell, the nix installation is completed.
For linux:
sh <(curl -L https://nixos.org/nix/install) --no-daemon
Run Local
First time run (can take a while):
make run-integration-tests
Once you've run them once and, you can run:
nix-shell tests/integration_tests/shell.nix
cd tests/integration_tests
pytest -s -vv
If you're changing anything on the ethermint rpc, rerun the first command.
Caching
You can enable Binary Cache to speed up the tests:
nix-env -iA cachix -f https://cachix.org/api/v1/install
cachix use ethermint