Skip to content

Commit

Permalink
Refactor RPC stuff to its own submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Jul 22, 2023
1 parent 99e7259 commit d50468f
Show file tree
Hide file tree
Showing 13 changed files with 1,011 additions and 946 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Current
# 0.22

- Add utility function `get_onchain_price()` to ask on-chain price of a
Uniswap v3 pool at any given block number
- Refactor a lot of functionality to a new submodule `eth_defi.provider`
- Add MEV blocking support in the form of `eth_defi.mev_blocker.MEVBlockerProvider`
- Add JSON-RPC fallback switching in the form of `eth_defi.fallback_provider.FallbackProvider`
- Add `HotWallet.create_for_testing`
- Add utility function `get_onchain_price()` to ask on-chain price of a
Uniswap v3 pool at any given block number

# 0.21.8

Expand Down
4 changes: 0 additions & 4 deletions docs/source/api/core/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ The core API is built on the top of Web3.py library.
eth_defi.confirmation
eth_defi.revert_reason
eth_defi.hotwallet
eth_defi.anvil
eth_defi.ganache
eth_defi.middleware
eth_defi.mev_blocker
eth_defi.fallback_provider
eth_defi.tx
eth_defi.trace
eth_defi.eip_712
Expand Down
1 change: 1 addition & 0 deletions docs/source/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ API documentation
:maxdepth: 1

core/index
provier/index
usdc/index
uniswap_v2/index
uniswap_v3/index
Expand Down
21 changes: 21 additions & 0 deletions docs/source/api/provider/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
JSON-RPC API provider integrations
----------------------------------

This submodule offers functionality to connect and enhance robustness of various EVM JSON-RPC APIs.

- Support for test and mainnet fork backends like :py:mod:`eth_defi.provider.anvil` and :py:mod:`eth_defi.provider.ganache`

- `Malicious Extractable Value (MEV) <https://tradingstrategy.ai/glossary/mev>__` mitigations

- Using multiple JSON-APRC providers and fallback providers

.. autosummary::
:toctree: _autosummary_provider
:recursive:

eth_defi.provider.mev_blocker
eth_defi.provider.fallback_provider
eth_defi.provider.anvil
eth_defi.provider.ganache
eth_defi.provider.named

Loading

0 comments on commit d50468f

Please sign in to comment.