faster-eth-utils 5.3.6__cp310-cp310-musllinux_1_2_x86_64.whl → 5.3.8__cp310-cp310-musllinux_1_2_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of faster-eth-utils might be problematic. Click here for more details.
- 99c07adba6ff961eaf3e__mypyc.cpython-310-x86_64-linux-gnu.so +0 -0
- faster_eth_utils/abi.py +1 -1
- faster_eth_utils/applicators.py +9 -6
- faster_eth_utils/curried/__init__.py +3 -0
- {faster_eth_utils-5.3.6.dist-info → faster_eth_utils-5.3.8.dist-info}/METADATA +1 -1
- {faster_eth_utils-5.3.6.dist-info → faster_eth_utils-5.3.8.dist-info}/RECORD +9 -9
- {faster_eth_utils-5.3.6.dist-info → faster_eth_utils-5.3.8.dist-info}/WHEEL +0 -0
- {faster_eth_utils-5.3.6.dist-info → faster_eth_utils-5.3.8.dist-info}/licenses/LICENSE +0 -0
- {faster_eth_utils-5.3.6.dist-info → faster_eth_utils-5.3.8.dist-info}/top_level.txt +0 -0
|
Binary file
|
faster_eth_utils/abi.py
CHANGED
|
@@ -274,7 +274,7 @@ def filter_abi_by_name(abi_name: str, contract_abi: ABI) -> Sequence[ABIElement]
|
|
|
274
274
|
abi
|
|
275
275
|
for abi in contract_abi
|
|
276
276
|
if abi["type"] in ["function", "event", "error"]
|
|
277
|
-
and abi["name"] == abi_name
|
|
277
|
+
and abi["name"] == abi_name # type: ignore [typeddict-item]
|
|
278
278
|
]
|
|
279
279
|
|
|
280
280
|
|
faster_eth_utils/applicators.py
CHANGED
|
@@ -4,9 +4,11 @@ from typing import (
|
|
|
4
4
|
Dict,
|
|
5
5
|
Generator,
|
|
6
6
|
List,
|
|
7
|
+
Sequence,
|
|
7
8
|
Tuple,
|
|
8
9
|
TypeVar,
|
|
9
10
|
Union,
|
|
11
|
+
cast,
|
|
10
12
|
)
|
|
11
13
|
import warnings
|
|
12
14
|
|
|
@@ -26,14 +28,15 @@ from .toolz import (
|
|
|
26
28
|
|
|
27
29
|
TArg = TypeVar("TArg")
|
|
28
30
|
TReturn = TypeVar("TReturn")
|
|
31
|
+
TOther = TypeVar("TOther")
|
|
29
32
|
|
|
30
33
|
Formatters = Callable[[List[Any]], List[Any]]
|
|
31
34
|
|
|
32
35
|
|
|
33
36
|
@return_arg_type(2)
|
|
34
37
|
def apply_formatter_at_index(
|
|
35
|
-
formatter: Callable[
|
|
36
|
-
) -> Generator[
|
|
38
|
+
formatter: Callable[[TArg], TReturn], at_index: int, value: Sequence[Union[TArg, TOther]]
|
|
39
|
+
) -> Generator[Union[TOther, TReturn], None, None]:
|
|
37
40
|
try:
|
|
38
41
|
item = value[at_index]
|
|
39
42
|
except IndexError:
|
|
@@ -43,7 +46,7 @@ def apply_formatter_at_index(
|
|
|
43
46
|
) from None
|
|
44
47
|
|
|
45
48
|
yield from value[:at_index]
|
|
46
|
-
yield formatter(item)
|
|
49
|
+
yield formatter(cast(TArg, item))
|
|
47
50
|
yield from value[at_index + 1 :]
|
|
48
51
|
|
|
49
52
|
|
|
@@ -70,8 +73,8 @@ def combine_argument_formatters(*formatters: Callable[..., Any]) -> Formatters:
|
|
|
70
73
|
|
|
71
74
|
@return_arg_type(1)
|
|
72
75
|
def apply_formatters_to_sequence(
|
|
73
|
-
formatters: List[Any], sequence:
|
|
74
|
-
) -> Generator[
|
|
76
|
+
formatters: List[Callable[[Any], TReturn]], sequence: Sequence[Any]
|
|
77
|
+
) -> Generator[TReturn, None, None]:
|
|
75
78
|
if len(formatters) == len(sequence):
|
|
76
79
|
for formatter, item in zip(formatters, sequence):
|
|
77
80
|
yield formatter(item)
|
|
@@ -136,7 +139,7 @@ def apply_formatters_to_dict(
|
|
|
136
139
|
|
|
137
140
|
@return_arg_type(1)
|
|
138
141
|
def apply_formatter_to_array(
|
|
139
|
-
formatter: Callable[[TArg], TReturn], value:
|
|
142
|
+
formatter: Callable[[TArg], TReturn], value: Sequence[TArg]
|
|
140
143
|
) -> Generator[TReturn, None, None]:
|
|
141
144
|
for item in value:
|
|
142
145
|
yield formatter(item)
|
|
@@ -261,6 +261,7 @@ apply_key_map = curry(apply_key_map)
|
|
|
261
261
|
apply_one_of_formatters = curry(non_curried_apply_one_of_formatters) # noqa: F811
|
|
262
262
|
filter_abi_by_name = curry(filter_abi_by_name)
|
|
263
263
|
filter_abi_by_type = curry(filter_abi_by_type)
|
|
264
|
+
flatten_return = curry(flatten_return)
|
|
264
265
|
from_wei = curry(from_wei)
|
|
265
266
|
from_wei_decimals = curry(from_wei_decimals)
|
|
266
267
|
get_aligned_abi_inputs = curry(get_aligned_abi_inputs)
|
|
@@ -268,7 +269,9 @@ get_logger = curry(get_logger)
|
|
|
268
269
|
get_normalized_abi_inputs = curry(get_normalized_abi_inputs)
|
|
269
270
|
hexstr_if_str = curry(non_curried_hexstr_if_str) # noqa: F811
|
|
270
271
|
is_same_address = curry(is_same_address)
|
|
272
|
+
sort_return = curry(sort_return)
|
|
271
273
|
text_if_str = curry(non_curried_text_if_str) # noqa: F811
|
|
274
|
+
to_ordered_dict = curry(to_ordered_dict)
|
|
272
275
|
to_wei = curry(to_wei)
|
|
273
276
|
to_wei_decimals = curry(to_wei_decimals)
|
|
274
277
|
clamp = curry(clamp)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: faster-eth-utils
|
|
3
|
-
Version: 5.3.
|
|
3
|
+
Version: 5.3.8
|
|
4
4
|
Summary: A fork of eth-utils: Common utility functions for python code that interacts with Ethereum, implemented in C
|
|
5
5
|
Home-page: https://github.com/BobTheBuidler/eth-utils
|
|
6
6
|
Author: The Ethereum Foundation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
99c07adba6ff961eaf3e__mypyc.cpython-310-x86_64-linux-gnu.so,sha256=
|
|
1
|
+
99c07adba6ff961eaf3e__mypyc.cpython-310-x86_64-linux-gnu.so,sha256=gRqYIZ3kqIEqKyQrlc475bHtz7fSKShzBWH-UpySKIU,1394152
|
|
2
2
|
faster_eth_utils/__init__.py,sha256=hW-A_fjyQ76crTKwuxxSbvNzvPfW27dSlzhtOkseymg,2762
|
|
3
3
|
faster_eth_utils/__main__.py,sha256=mH37e49q7_A0-q1ymqkq1QyYABbQHVmXeuSKIBSahO8,86
|
|
4
4
|
faster_eth_utils/abi.cpython-310-x86_64-linux-gnu.so,sha256=vPfSWZnbxIvb3Y4wGMlZIc6NvNZZceylbJBVq_ZHMsM,17616
|
|
5
|
-
faster_eth_utils/abi.py,sha256=
|
|
5
|
+
faster_eth_utils/abi.py,sha256=2Lk78YiWLIG_srH2nTYny8tYrxM7JS-zWNpBe8ACMEs,26544
|
|
6
6
|
faster_eth_utils/address.cpython-310-x86_64-linux-gnu.so,sha256=8ma-Neg8TreBN6vIIJR2PRAQX6pYXg1-Khd6osQWBbc,17632
|
|
7
7
|
faster_eth_utils/address.py,sha256=IIHlYuIz-F6-mAnRWdsD4uH5l56yVRFMokFQINao9lE,3680
|
|
8
8
|
faster_eth_utils/applicators.cpython-310-x86_64-linux-gnu.so,sha256=6ZGBf7FeNC1b9udlNsfeRiCQbAZk8-m3vZi96I-5_GI,17648
|
|
9
|
-
faster_eth_utils/applicators.py,sha256=
|
|
9
|
+
faster_eth_utils/applicators.py,sha256=2BKYgRaXgUhA1sCMApuJvN6Qy59LBDkUzQcQkJdknJA,5301
|
|
10
10
|
faster_eth_utils/conversions.cpython-310-x86_64-linux-gnu.so,sha256=caYeW8qBmQzanWpOtO9YBQpZtiUl-aiLeSQOOGC7lHQ,17648
|
|
11
11
|
faster_eth_utils/conversions.py,sha256=t2TEe0WsffqOFDbyQcERTSbHJYpDBWHKd8XPArhLoEE,5665
|
|
12
12
|
faster_eth_utils/crypto.cpython-310-x86_64-linux-gnu.so,sha256=nutvnuJsuRIR5TaolUjqj7fEaxCdqH2dLOEGqkTmJkk,17624
|
|
@@ -43,11 +43,11 @@ faster_eth_utils/types.py,sha256=-RDPzkoNhkp3dpDNK9iKzGmSQawwZ6wJ4exur0E_BuY,151
|
|
|
43
43
|
faster_eth_utils/units.cpython-310-x86_64-linux-gnu.so,sha256=IsBhCtam6niB0XRyij6x6QITixpWhdsAqnlqzMkNuJY,17616
|
|
44
44
|
faster_eth_utils/units.py,sha256=jRo8p6trxwuISBnT8kfxTNVyd_TSd5vVY5aiKDefB1U,1757
|
|
45
45
|
faster_eth_utils/__json/eth_networks.json,sha256=0S8HoWD6RTR6Hc0uQdQl2VHtopytIYl5NiDAzpuskBs,414773
|
|
46
|
-
faster_eth_utils/curried/__init__.py,sha256=
|
|
46
|
+
faster_eth_utils/curried/__init__.py,sha256=x_nPjvTwmXeEl5jV86RRUvudu6ks1kMUxZfbjNuGx8Y,7407
|
|
47
47
|
faster_eth_utils/typing/__init__.py,sha256=84PxIxCvEHtBb-Ik6qnGvXH4alaWbamr_zDbtlbJh3A,325
|
|
48
48
|
faster_eth_utils/typing/misc.py,sha256=4N5raYXFAeRGpmch6qgHrtYNCDxCJM5XtAAsJ1FSzzU,190
|
|
49
|
-
faster_eth_utils-5.3.
|
|
50
|
-
faster_eth_utils-5.3.
|
|
51
|
-
faster_eth_utils-5.3.
|
|
52
|
-
faster_eth_utils-5.3.
|
|
53
|
-
faster_eth_utils-5.3.
|
|
49
|
+
faster_eth_utils-5.3.8.dist-info/METADATA,sha256=fGX4JsjWHYdXIALM2o1Gx0vO9Jx5mLrJCcrT55O7ruo,7096
|
|
50
|
+
faster_eth_utils-5.3.8.dist-info/WHEEL,sha256=YJPq7zroHSsdctrb_KymZ4ss41PkmaA9SD9TZzqKSX8,112
|
|
51
|
+
faster_eth_utils-5.3.8.dist-info/top_level.txt,sha256=8eOy3WlvVLCcmwPnl2UMylYQNmrXz76p9L_TH-NYSSM,55
|
|
52
|
+
faster_eth_utils-5.3.8.dist-info/RECORD,,
|
|
53
|
+
faster_eth_utils-5.3.8.dist-info/licenses/LICENSE,sha256=STqznQ6A8OeJylPrTA7dlsMtH0isQQybRlnDZOKGVrM,1095
|
|
File without changes
|
|
File without changes
|
|
File without changes
|