Skip to content

Commit

Permalink
Anvil moved
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Jul 26, 2023
1 parent 192e18a commit e0eb4ce
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/source/tutorials/pancakeswap-live-minimal.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.. meta::
:description: Monitor Pancakeswap live trades with Python

Pancakeswap live trades
-----------------------

Expand Down
11 changes: 11 additions & 0 deletions eth_defi/anvil.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
"""Anvil (legacy).
Anvil is a blazing-fast local testnet node implementation in Rust from Foundry project.
.. note ::
This Python module has been moved to :py:mod:`eth_defi.provider.anvil`.
See the updated module for full API description.
"""

import warnings

warnings.warn("eth_defi.anvil has been moved to eth_defi.provider.anvil", DeprecationWarning, stacklevel=2)
Expand Down
8 changes: 5 additions & 3 deletions eth_defi/provider/anvil.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"""Anvil integration.
This module provides Python integration for Anvil.
- `Anvil <https://github.com/foundry-rs/foundry/blob/master/anvil/README.md>`__
is a blazing-fast local testnet node implementation in Rust from
`Foundry projet <>`__
`Foundry project <https://github.com/foundry-rs/foundry>`__
- Anvil can replace :py:class:`eth_tester.main.EthereumTester` as the unit/integration test backend.
Expand All @@ -13,7 +15,7 @@
- Anvil is part of `Foundry <https://github.com/foundry-rs/foundry>`__,
a toolkit for Ethereum application development.
To install Anvil on your UNIX computer:
To install Anvil on:
.. code-block:: shell
Expand All @@ -27,7 +29,7 @@
See also :py:mod:`eth_defi.trace` for Solidity tracebacks using Anvil.
This code was originally lifted from Brownie project.
The code was originally lifted from Brownie project.
"""

import logging
Expand Down

0 comments on commit e0eb4ce

Please sign in to comment.