Used isort
This commit is contained in:
parent
f18444e17c
commit
4b660e96a7
@ -2,14 +2,7 @@
|
|||||||
Modified asynchronous geth_poa_middleware which mirrors functionality of
|
Modified asynchronous geth_poa_middleware which mirrors functionality of
|
||||||
https://github.com/ethereum/web3.py/blob/master/web3/middleware/geth_poa.py
|
https://github.com/ethereum/web3.py/blob/master/web3/middleware/geth_poa.py
|
||||||
"""
|
"""
|
||||||
from typing import (
|
from typing import Any, Callable
|
||||||
Any,
|
|
||||||
Callable,
|
|
||||||
)
|
|
||||||
|
|
||||||
from hexbytes import (
|
|
||||||
HexBytes,
|
|
||||||
)
|
|
||||||
|
|
||||||
from eth_utils.curried import (
|
from eth_utils.curried import (
|
||||||
apply_formatter_if,
|
apply_formatter_if,
|
||||||
@ -17,23 +10,11 @@ from eth_utils.curried import (
|
|||||||
apply_key_map,
|
apply_key_map,
|
||||||
is_null,
|
is_null,
|
||||||
)
|
)
|
||||||
from eth_utils.toolz import (
|
from eth_utils.toolz import assoc, complement, compose
|
||||||
complement,
|
from hexbytes import HexBytes
|
||||||
compose,
|
|
||||||
assoc,
|
|
||||||
)
|
|
||||||
|
|
||||||
from web3._utils.rpc_abi import (
|
|
||||||
RPC,
|
|
||||||
)
|
|
||||||
|
|
||||||
from web3.types import (
|
|
||||||
Formatters,
|
|
||||||
RPCEndpoint,
|
|
||||||
RPCResponse,
|
|
||||||
)
|
|
||||||
|
|
||||||
from web3 import Web3 # noqa: F401
|
from web3 import Web3 # noqa: F401
|
||||||
|
from web3._utils.rpc_abi import RPC
|
||||||
|
from web3.types import Formatters, RPCEndpoint, RPCResponse
|
||||||
|
|
||||||
|
|
||||||
async def get_geth_poa_middleware(
|
async def get_geth_poa_middleware(
|
||||||
|
@ -53,10 +53,8 @@ from mev_inspect.schemas.traces import ClassifiedTrace
|
|||||||
from mev_inspect.schemas.transfers import Transfer
|
from mev_inspect.schemas.transfers import Transfer
|
||||||
from mev_inspect.swaps import get_swaps
|
from mev_inspect.swaps import get_swaps
|
||||||
from mev_inspect.transfers import get_transfers
|
from mev_inspect.transfers import get_transfers
|
||||||
from mev_inspect.liquidations import get_liquidations
|
|
||||||
from mev_inspect.utils import RPCType
|
from mev_inspect.utils import RPCType
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
from web3 import AsyncHTTPProvider, Web3
|
from web3 import AsyncHTTPProvider, Web3
|
||||||
|
|
||||||
from mev_inspect.retry import http_retry_with_backoff_request_middleware
|
|
||||||
from mev_inspect.geth_poa_middleware import geth_poa_middleware
|
from mev_inspect.geth_poa_middleware import geth_poa_middleware
|
||||||
|
from mev_inspect.retry import http_retry_with_backoff_request_middleware
|
||||||
from mev_inspect.utils import RPCType
|
from mev_inspect.utils import RPCType
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
from hexbytes._utils import hexstr_to_bytes
|
from hexbytes._utils import hexstr_to_bytes
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user