Skip to content

Commit

Permalink
Merge pull request #70 from fjarri/eth-tester-upgrade
Browse files Browse the repository at this point in the history
Move from `eth-tester` to `alysis`
  • Loading branch information
fjarri authored Feb 20, 2024
2 parents f239e97 + 5bb6012 commit ba262f6
Show file tree
Hide file tree
Showing 14 changed files with 334 additions and 666 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3
- name: Install dependencies
run: |
pdm sync -G lint,compiler,test-rpc-provider
pdm sync -G lint,compiler,local-provider
- name: Run mypy
run: |
pdm run mypy pons
2 changes: 1 addition & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Testing utilities

.. autoclass:: LocalProvider
:show-inheritance:
:members: disable_auto_mine_transactions, enable_auto_mine_transactions, take_snapshot, revert_to_snapshot, add_account
:members: disable_auto_mine_transactions, enable_auto_mine_transactions, take_snapshot, revert_to_snapshot

.. autoclass:: HTTPProviderServer
:members:
Expand Down
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Changed
- Field names clashing with Python built-ins (``hash``, ``type``, ``id``) are suffixed with an underscore. (PR_57_)
- ``AccountSigner`` takes ``LocalSigner`` specifically and not just any ``BaseSigner``. (PR_62_)
- ``ClientSession.estimate_transact()`` and ``estimate_deploy()`` now require a ``sender_address`` parameter. (PR_62_)
- Switched to ``alysis`` from ``eth-tester`` for the backend of ``LocalProvider``. (PR_70_)


Added
Expand All @@ -32,6 +33,7 @@ Added
- ``eth_getStorageAt`` support (as ``ClientSession.eth_get_storage_at()``). (PR_64_)
- Support for the ``logs`` field in ``TxReceipt``. (PR_68_)
- ``ClientSession.eth_get_logs()`` and ``eth_get_filter_logs()``. (PR_68_)
- Support for a custom block number in gas estimation methods. (PR_70_)


Fixed
Expand All @@ -43,6 +45,8 @@ Fixed
- Decoding error when fetching pending transactions. (PR_65_)
- Decoding error when fetching pending blocks. (PR_67_)
- Get the default nonce based on the pending block, not the latest one. (PR_68_)
- Using ``eth_getLogs`` instead of creating a filter in ``transact()``. (PR_70_)
- Expect the block number to be non-null even for pending blocks, since that's what providers return. (PR_70_)


.. _PR_51: https://github.com/fjarri/pons/pull/51
Expand All @@ -58,6 +62,7 @@ Fixed
.. _PR_65: https://github.com/fjarri/pons/pull/65
.. _PR_67: https://github.com/fjarri/pons/pull/67
.. _PR_68: https://github.com/fjarri/pons/pull/68
.. _PR_70: https://github.com/fjarri/pons/pull/70


0.7.0 (09-07-2023)
Expand Down
Loading

0 comments on commit ba262f6

Please sign in to comment.