From 2648ea533362102e57d53a1dd08e378b302ac41f Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Mon, 9 Dec 2024 22:05:59 -0400 Subject: [PATCH 1/2] feat: implement cchecksum for ~2x faster checksumming --- ape_tokens/managers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ape_tokens/managers.py b/ape_tokens/managers.py index 298423e..2c69896 100644 --- a/ape_tokens/managers.py +++ b/ape_tokens/managers.py @@ -3,7 +3,7 @@ from ape.exceptions import ContractNotFoundError from ape.types import ContractType from ape.utils import ManagerAccessMixin, cached_property -from eth_utils import to_checksum_address +from cchecksum import to_checksum_address from tokenlists import TokenListManager if TYPE_CHECKING: From 9921ac321caf11cabe1c1d6b747c5a48699b669b Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Mon, 9 Dec 2024 22:07:19 -0400 Subject: [PATCH 2/2] Update setup.py --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 70f9c13..c030b56 100644 --- a/setup.py +++ b/setup.py @@ -64,6 +64,7 @@ include_package_data=True, python_requires=">=3.9,<4", install_requires=[ + "cchecksum>=0.0.3,<1", "eth-ape>=0.8.1,<0.9", "tokenlists>=0.1.7", ],