Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
include_package_data=True,
install_requires=[
"eth-ape>=0.8.33,<1",
"faster-eth-abi>=5.1.0,<6",
"faster-eth-utils>=2.1.0,<6",
# Graph library for solving (Requires Python 3.10+)
"networkx>=3.4.2,<4",
# Required plugin for working with tokens
Expand Down
2 changes: 1 addition & 1 deletion uniswap_sdk/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from ape.types import AddressType
from ape.utils import ManagerAccessMixin, cached_property
from ape_tokens import Token, TokenInstance
from eth_utils import is_checksum_address
from faster_eth_utils import is_checksum_address
from pydantic import BaseModel, Field, model_validator

if TYPE_CHECKING:
Expand Down
8 changes: 4 additions & 4 deletions uniswap_sdk/universal_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
from ape.managers.base import ManagerAccessMixin
from ape.utils import StructParser, cached_property
from ape_ethereum.ecosystem import parse_type
from eth_abi import decode as abi_decode
from eth_abi import encode as abi_encode
from eth_abi.exceptions import InsufficientDataBytes
from eth_abi.packed import encode_packed
from ethpm_types.abi import ABIType, MethodABI
from faster_eth_abi import decode as abi_decode
from faster_eth_abi import encode as abi_encode
from faster_eth_abi.exceptions import InsufficientDataBytes
from faster_eth_abi.packed import encode_packed
from hexbytes import HexBytes
from pydantic import BaseModel, field_validator

Expand Down
4 changes: 2 additions & 2 deletions uniswap_sdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from ape.types import AddressType
from ape_tokens import TokenInstance
from eth_utils import to_int
from eth_utils.address import is_checksum_address
from faster_eth_utils import to_int
from faster_eth_utils.address import is_checksum_address

from .types import BasePair, ConvertsToToken, Fee, Route

Expand Down
4 changes: 2 additions & 2 deletions uniswap_sdk/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from ape.utils import ZERO_ADDRESS, cached_property
from ape_ethereum import multicall
from ape_tokens import Token, TokenInstance
from eth_utils import to_int
from eth_utils.address import to_checksum_address
from faster_eth_utils import to_int
from faster_eth_utils.address import to_checksum_address

from uniswap_sdk.utils import get_token_address, sort_tokens

Expand Down
4 changes: 2 additions & 2 deletions uniswap_sdk/v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from ape.utils import ZERO_ADDRESS, cached_property
from ape_ethereum import multicall
from ape_tokens import TokenInstance
from eth_utils import to_int
from eth_utils.address import to_checksum_address
from faster_eth_utils import to_int
from faster_eth_utils.address import to_checksum_address
from pydantic import BaseModel, Field

from .packages import V3, get_contract_instance
Expand Down