Skip to content

Commit af503e3

Browse files
committed
v0.1.30 fixed circular dependencies
1 parent af40716 commit af503e3

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

IceCreamSwapWeb3/EthAdvanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def main(
299299
node_url="https://rpc-core.icecreamswap.com",
300300
usdt_address="0x900101d06A7426441Ae63e9AB3B9b0F63Be145F1",
301301
):
302-
from IceCreamSwapWeb3 import to_checksum_address
302+
from .FastChecksumAddress import to_checksum_address
303303

304304
usdt_address = to_checksum_address(usdt_address)
305305

IceCreamSwapWeb3/Multicall.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
from web3.contract.contract import ContractFunction, ContractConstructor
1111
from web3.exceptions import ContractLogicError
1212

13-
from IceCreamSwapWeb3 import Web3Advanced, to_checksum_address
13+
from IceCreamSwapWeb3 import Web3Advanced
14+
from .FastChecksumAddress import to_checksum_address
1415

1516
# load multicall abi
1617
with files("IceCreamSwapWeb3").joinpath("./abi/Multicall.abi").open('r') as f:

IceCreamSwapWeb3/Subsquid.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from typing import cast
22

33
import requests
4-
from IceCreamSwapWeb3 import to_checksum_address
5-
from eth_utils import to_checksum_address
4+
from .FastChecksumAddress import to_checksum_address
65
from hexbytes import HexBytes
76
from tqdm import tqdm
87
from web3.types import FilterParams, LogReceipt

IceCreamSwapWeb3/Web3Advanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from importlib.resources import files
33
from time import sleep
44

5-
from IceCreamSwapWeb3 import to_checksum_address
65
from web3 import Web3
76
from web3.exceptions import ContractLogicError
87
from web3.main import get_default_modules
@@ -12,6 +11,7 @@
1211
from .EthAdvanced import EthAdvanced
1312
from .Multicall import MultiCall
1413
from .Web3ErrorHandlerPatch import patch_error_formatters
14+
from .FastChecksumAddress import to_checksum_address
1515

1616

1717
class Web3Advanced(Web3):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup, find_packages
22

3-
VERSION = '0.1.29'
3+
VERSION = '0.1.30'
44
DESCRIPTION = 'IceCreamSwap Web3.py wrapper'
55
LONG_DESCRIPTION = 'IceCreamSwap Web3.py wrapper with automatic retries, multicall and other advanced functionality'
66

0 commit comments

Comments
 (0)