Skip to content
6 changes: 3 additions & 3 deletions brownie/network/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
from faster_eth_abi import decode as decode_abi
from faster_eth_abi import encode as encode_abi
from faster_eth_utils import combomethod
from faster_web3._utils import filters
from faster_web3.datastructures import AttributeDict
from faster_web3.types import LogReceipt
from vvm import get_installable_vyper_versions
from vvm.utils.convert import to_vyper_version
from web3._utils import filters
from web3.datastructures import AttributeDict
from web3.types import LogReceipt

from brownie._c_constants import (
HexBytes,
Expand Down
4 changes: 2 additions & 2 deletions brownie/network/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
from eth_event import EventError
from eth_event.main import _TraceStep, DecodedEvent, NonDecodedEvent, TopicMapData
from eth_typing import ABIElement, AnyAddress, ChecksumAddress, HexStr
from faster_web3._utils import filters
from faster_web3.datastructures import AttributeDict
from ujson import JSONDecodeError
from web3._utils import filters
from web3.datastructures import AttributeDict

from brownie._c_constants import ujson_dump, ujson_load
from brownie._config import _get_data_folder
Expand Down
4 changes: 2 additions & 2 deletions brownie/network/middlewares/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from abc import ABC, abstractmethod
from typing import Any, Callable, Dict, Final, List, Optional, Sequence, Type

from web3 import Web3
from web3.types import RPCEndpoint
from faster_web3 import Web3
from faster_web3.types import RPCEndpoint


partial: Final = functools.partial
Expand Down
4 changes: 2 additions & 2 deletions brownie/network/middlewares/caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from collections import OrderedDict
from typing import Any, Callable, Dict, Final, List, Optional, Sequence, final

from web3 import Web3
from web3.types import LogReceipt, RPCEndpoint
from faster_web3 import Web3
from faster_web3.types import LogReceipt, RPCEndpoint

from brownie._c_constants import HexBytes, ujson_dumps
from brownie._config import CONFIG, _get_data_folder
Expand Down
4 changes: 2 additions & 2 deletions brownie/network/middlewares/catch_tx_revert.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Any, Callable, Dict, Optional, Sequence, final

from web3 import Web3
from web3.types import RPCEndpoint
from faster_web3 import Web3
from faster_web3.types import RPCEndpoint

from brownie.network.middlewares import BrownieMiddlewareABC

Expand Down
4 changes: 2 additions & 2 deletions brownie/network/middlewares/ganache7.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Any, Callable, Dict, List, Optional, Sequence, final

from web3 import Web3
from web3.types import RPCEndpoint
from faster_web3 import Web3
from faster_web3.types import RPCEndpoint

from brownie.network.middlewares import BrownieMiddlewareABC

Expand Down
8 changes: 4 additions & 4 deletions brownie/network/middlewares/geth_poa.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import Any, Callable, Dict, List, Optional, Sequence, final

from web3 import Web3
from web3.exceptions import ExtraDataLengthError
from web3.middleware import geth_poa_middleware
from web3.types import RPCEndpoint
from faster_web3 import Web3
from faster_web3.exceptions import ExtraDataLengthError
from faster_web3.middleware import geth_poa_middleware
from faster_web3.types import RPCEndpoint

from brownie.network.middlewares import BrownieMiddlewareABC

Expand Down
4 changes: 2 additions & 2 deletions brownie/network/middlewares/hardhat.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Any, Callable, Dict, List, Optional, Sequence, final

from web3 import Web3
from web3.types import RPCEndpoint
from faster_web3 import Web3
from faster_web3.types import RPCEndpoint

from brownie._c_constants import regex_findall
from brownie.network.middlewares import BrownieMiddlewareABC
Expand Down
14 changes: 7 additions & 7 deletions brownie/network/web3.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
from pathlib import Path
from typing import Dict, Optional, Set

from ens import ENS
from eth_typing import ChecksumAddress, HexStr
from faster_ens import ENS
from faster_web3 import HTTPProvider, IPCProvider
from faster_web3 import Web3 as _Web3
from faster_web3 import WebsocketProvider
from faster_web3.contract.contract import ContractEvent # noqa
from faster_web3.contract.contract import ContractEvents as _ContractEvents # noqa
from faster_web3.gas_strategies.rpc import rpc_gas_price_strategy
from requests import HTTPError
from ujson import JSONDecodeError
from web3 import HTTPProvider, IPCProvider
from web3 import Web3 as _Web3
from web3 import WebsocketProvider
from web3.contract.contract import ContractEvent # noqa
from web3.contract.contract import ContractEvents as _ContractEvents # noqa
from web3.gas_strategies.rpc import rpc_gas_price_strategy

from brownie._c_constants import ujson_dump, ujson_load
from brownie._config import CONFIG, _get_data_folder
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ eth-typing>=4.2.1,<6
faster-eth-abi
faster-eth-utils>=4.1.2
faster-hexbytes>=1.3.2,<2
faster-web3>=6,<7
hypothesis<6.28.0
lazy-object-proxy>=1.6.0,<2
prompt-toolkit<4
Expand All @@ -28,5 +29,4 @@ tqdm<5
ujson
vvm==0.2.1
vyper>=0.4.0,<0.5
web3>=6,<7
wrapt>=1.12.1,<2
2 changes: 1 addition & 1 deletion tests/network/state/test_get_transaction.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
from eth_retry import auto_retry
from web3.exceptions import TransactionNotFound
from faster_web3.exceptions import TransactionNotFound


@auto_retry
Expand Down
4 changes: 2 additions & 2 deletions tests/network/test_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import time

import pytest
from web3.datastructures import AttributeDict
from web3.exceptions import ABIEventFunctionNotFound
from faster_web3.datastructures import AttributeDict
from faster_web3.exceptions import ABIEventFunctionNotFound

from brownie import Contract, compile_source
from brownie.exceptions import EventLookupError
Expand Down
Loading