faster-eth-utils 5.3.6__cp314-cp314t-musllinux_1_2_x86_64.whl → 5.3.8__cp314-cp314t-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.

Files changed (28) hide show
  1. 99c07adba6ff961eaf3e__mypyc.cpython-314t-x86_64-linux-musl.so +0 -0
  2. faster_eth_utils/abi.cpython-314t-x86_64-linux-musl.so +0 -0
  3. faster_eth_utils/abi.py +1 -1
  4. faster_eth_utils/address.cpython-314t-x86_64-linux-musl.so +0 -0
  5. faster_eth_utils/applicators.cpython-314t-x86_64-linux-musl.so +0 -0
  6. faster_eth_utils/applicators.py +9 -6
  7. faster_eth_utils/conversions.cpython-314t-x86_64-linux-musl.so +0 -0
  8. faster_eth_utils/crypto.cpython-314t-x86_64-linux-musl.so +0 -0
  9. faster_eth_utils/currency.cpython-314t-x86_64-linux-musl.so +0 -0
  10. faster_eth_utils/curried/__init__.py +3 -0
  11. faster_eth_utils/debug.cpython-314t-x86_64-linux-musl.so +0 -0
  12. faster_eth_utils/decorators.cpython-314t-x86_64-linux-musl.so +0 -0
  13. faster_eth_utils/encoding.cpython-314t-x86_64-linux-musl.so +0 -0
  14. faster_eth_utils/exceptions.cpython-314t-x86_64-linux-musl.so +0 -0
  15. faster_eth_utils/functional.cpython-314t-x86_64-linux-musl.so +0 -0
  16. faster_eth_utils/hexadecimal.cpython-314t-x86_64-linux-musl.so +0 -0
  17. faster_eth_utils/humanize.cpython-314t-x86_64-linux-musl.so +0 -0
  18. faster_eth_utils/module_loading.cpython-314t-x86_64-linux-musl.so +0 -0
  19. faster_eth_utils/network.cpython-314t-x86_64-linux-musl.so +0 -0
  20. faster_eth_utils/numeric.cpython-314t-x86_64-linux-musl.so +0 -0
  21. faster_eth_utils/toolz.cpython-314t-x86_64-linux-musl.so +0 -0
  22. faster_eth_utils/types.cpython-314t-x86_64-linux-musl.so +0 -0
  23. faster_eth_utils/units.cpython-314t-x86_64-linux-musl.so +0 -0
  24. {faster_eth_utils-5.3.6.dist-info → faster_eth_utils-5.3.8.dist-info}/METADATA +1 -1
  25. {faster_eth_utils-5.3.6.dist-info → faster_eth_utils-5.3.8.dist-info}/RECORD +28 -28
  26. {faster_eth_utils-5.3.6.dist-info → faster_eth_utils-5.3.8.dist-info}/WHEEL +0 -0
  27. {faster_eth_utils-5.3.6.dist-info → faster_eth_utils-5.3.8.dist-info}/licenses/LICENSE +0 -0
  28. {faster_eth_utils-5.3.6.dist-info → faster_eth_utils-5.3.8.dist-info}/top_level.txt +0 -0
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
 
@@ -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[..., Any], at_index: int, value: List[Any]
36
- ) -> Generator[List[Any], None, None]:
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: List[Any]
74
- ) -> Generator[List[Any], None, None]:
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: List[TArg]
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.6
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,53 +1,53 @@
1
- 99c07adba6ff961eaf3e__mypyc.cpython-314t-x86_64-linux-musl.so,sha256=FYDL9Ys4GDB2q1GaG5gPOG61PEED_UZsCleUlh0eyMc,1769136
1
+ 99c07adba6ff961eaf3e__mypyc.cpython-314t-x86_64-linux-musl.so,sha256=93q3n14TF7PUSviXtDeouUpL_yqNI57gnN-1Z16mnI0,1768360
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
- faster_eth_utils/abi.cpython-314t-x86_64-linux-musl.so,sha256=9mMUlL_OG4u04pUn6-SfZbA6HIN0JrdKucrwRprOYdE,18752
5
- faster_eth_utils/abi.py,sha256=miB6LjlaT2x5VsKZn4sPZDlvOcq7ir5izND7Eco3OHc,26511
6
- faster_eth_utils/address.cpython-314t-x86_64-linux-musl.so,sha256=64BRogZhr34rBEO2J3JYKoXR1Ss3PDHZYSUQGSrM2lo,18776
4
+ faster_eth_utils/abi.cpython-314t-x86_64-linux-musl.so,sha256=f9YXc_0cmcSKkFs4OtFZzJtrrMX0ce5gcMQcZuCvmUg,18752
5
+ faster_eth_utils/abi.py,sha256=2Lk78YiWLIG_srH2nTYny8tYrxM7JS-zWNpBe8ACMEs,26544
6
+ faster_eth_utils/address.cpython-314t-x86_64-linux-musl.so,sha256=yh1UhmVz8-og-g3DCP2MIdjmUPlNhvI5Krig0M7TF5A,18776
7
7
  faster_eth_utils/address.py,sha256=IIHlYuIz-F6-mAnRWdsD4uH5l56yVRFMokFQINao9lE,3680
8
- faster_eth_utils/applicators.cpython-314t-x86_64-linux-musl.so,sha256=UzS2pMAesm4yur8FW5DAroGvjs05Ew01278AVBj497w,18816
9
- faster_eth_utils/applicators.py,sha256=0noq99vUvRQ9E1eIYwlByYZE_i1bEeUtyDpfa7qHvmg,5171
10
- faster_eth_utils/conversions.cpython-314t-x86_64-linux-musl.so,sha256=a66IgQawmYBxNnGqWV9nZZsWCZGNNuDeS6SIgkG6GTI,18816
8
+ faster_eth_utils/applicators.cpython-314t-x86_64-linux-musl.so,sha256=8P8Ulwb_TOY2BO_a4hGw3A5IOk3kQBmdanL3FNxIaiU,18816
9
+ faster_eth_utils/applicators.py,sha256=2BKYgRaXgUhA1sCMApuJvN6Qy59LBDkUzQcQkJdknJA,5301
10
+ faster_eth_utils/conversions.cpython-314t-x86_64-linux-musl.so,sha256=bSYIGGhwectkc8au7dXp0FEqrP9OUu8-1SihHHFQ_1k,18816
11
11
  faster_eth_utils/conversions.py,sha256=t2TEe0WsffqOFDbyQcERTSbHJYpDBWHKd8XPArhLoEE,5665
12
- faster_eth_utils/crypto.cpython-314t-x86_64-linux-musl.so,sha256=gBnpxX9uFom3gVJ9WuAxg7agZUyLg_6wwr6xmwGp1XI,18776
12
+ faster_eth_utils/crypto.cpython-314t-x86_64-linux-musl.so,sha256=MqahixM6CSooUvaHLBW0vbNCw9DA0r8FSJLxSHPs7zk,18776
13
13
  faster_eth_utils/crypto.py,sha256=EQgupom_TnURbLNXodwbJoKB-mHyxgOTvo8EjnSzdxw,395
14
- faster_eth_utils/currency.cpython-314t-x86_64-linux-musl.so,sha256=p7YfuRj8XPMWq_UfsUycfxNbx9cQ2K6A7F867TMrpSE,18784
14
+ faster_eth_utils/currency.cpython-314t-x86_64-linux-musl.so,sha256=RNyPI17TGkB5uUPpi64C86M3WHUlrw2gFE67PQwOu_Y,18784
15
15
  faster_eth_utils/currency.py,sha256=01YVV2f2GL4830jfSjnC4XhLQjTNQB-5y7vbGzaMWbM,4150
16
- faster_eth_utils/debug.cpython-314t-x86_64-linux-musl.so,sha256=lnMogby83ZhBKNz2OBVF5Ffh-jVegGL-cT7we5LBK3k,18760
16
+ faster_eth_utils/debug.cpython-314t-x86_64-linux-musl.so,sha256=NVlrvNuX44rauW7RCkIWoCV-JHTe6rPsHjKlubRYs04,18760
17
17
  faster_eth_utils/debug.py,sha256=0Z-tNOqgQJunS4uHeSCCH1LWLoijlH34MBh6NRrrDrk,499
18
- faster_eth_utils/decorators.cpython-314t-x86_64-linux-musl.so,sha256=8DJoZHxDBwAln3QgV0DTxu8DVgH0mBXzGohI8aCCR0I,18800
18
+ faster_eth_utils/decorators.cpython-314t-x86_64-linux-musl.so,sha256=dF0_gzJmHKu5ScDeBRfu52ndusXLEXZ7PTZrwgHnSfQ,18800
19
19
  faster_eth_utils/decorators.py,sha256=BdAz-imQIf0TlBm7Di7T05o3IC6ei-xJc7FgIOqqAyE,2145
20
- faster_eth_utils/encoding.cpython-314t-x86_64-linux-musl.so,sha256=wp7UiHKee-eG-lwyjckzrEVesKOMAz4ujtXqAwSZAbQ,18784
20
+ faster_eth_utils/encoding.cpython-314t-x86_64-linux-musl.so,sha256=EDyDj3McSNj7SExbXb6KQDCnU23-xq83wVVDppJbR-M,18784
21
21
  faster_eth_utils/encoding.py,sha256=1qfDeuinLZ01XjYgknpm_p9LuWwaYvicYkYI8mS1iMc,199
22
- faster_eth_utils/exceptions.cpython-314t-x86_64-linux-musl.so,sha256=XKVlPe2I2OQjgb06WPxC-6uWqJ-J-VaVFNGivmll5IU,18800
22
+ faster_eth_utils/exceptions.cpython-314t-x86_64-linux-musl.so,sha256=BNBHXxyjOihWVPEjFiCjmfh6MmrEYbwjlAM8ovcnsAE,18800
23
23
  faster_eth_utils/exceptions.py,sha256=3ndM6zl4QoSc6GupV9T1Klz9TByM8w2zr4ez8UJvzew,110
24
- faster_eth_utils/functional.cpython-314t-x86_64-linux-musl.so,sha256=SRJEDRYg5vaJ4wvwaUZU28XVcHQ1AYYUePLSXzUfNSA,18800
24
+ faster_eth_utils/functional.cpython-314t-x86_64-linux-musl.so,sha256=2M1rhvMA2cVQYJqGaQRwqUOT0iD-TXPZORVW4t_YZJ4,18800
25
25
  faster_eth_utils/functional.py,sha256=nJTxE4_HDci0chos5mQdy05pJ8o7n0wx_o7_WCro2gI,2449
26
- faster_eth_utils/hexadecimal.cpython-314t-x86_64-linux-musl.so,sha256=kiVhwthGEY9evoXgaS2UxZhOXgw8AoHA9dR1fUwqP2c,18816
26
+ faster_eth_utils/hexadecimal.cpython-314t-x86_64-linux-musl.so,sha256=s7rmjWZz2uqycZlgA6PcIhbTXxRxcvOaEb1h4G_nasg,18816
27
27
  faster_eth_utils/hexadecimal.py,sha256=bPxUdJse6A3j3vF6KpnvSM2h3eRhgWSWeyicwnLdvHY,2082
28
- faster_eth_utils/humanize.cpython-314t-x86_64-linux-musl.so,sha256=H2y2VDlEMAWLUCKwiiaMsWyI2twbdMBXKK50Mo6I0Ck,18784
28
+ faster_eth_utils/humanize.cpython-314t-x86_64-linux-musl.so,sha256=bZjScln3RH6WDxLNMVG9Kgxz2zgPX9tQ3pffF8dEpV8,18784
29
29
  faster_eth_utils/humanize.py,sha256=bCxXyx73NuVIDjRnpPZs7lybfrun-llC3ITy-0zZSns,4682
30
30
  faster_eth_utils/logging.py,sha256=Gm0B2D7oDPByi-mNCEwLnl3lAU4_TJ4yc6EsOOJA8Rc,4590
31
- faster_eth_utils/module_loading.cpython-314t-x86_64-linux-musl.so,sha256=kXovjggyhN5GxFaI7OVxYtRJzoKGs3wmtig5t753hr4,18840
31
+ faster_eth_utils/module_loading.cpython-314t-x86_64-linux-musl.so,sha256=DkMLXSOj3FdY5rRlbBrrn593R-15oXo4hLWjHJB08-s,18840
32
32
  faster_eth_utils/module_loading.py,sha256=DCLM4dEh1gqr8Ny-FWwD-_pINqeHzbLSupz4ZIpCCAw,842
33
- faster_eth_utils/network.cpython-314t-x86_64-linux-musl.so,sha256=T7-7B1PyGpjLf2PRQUvaxZ9V5LBmS0A8WaplShfIXfE,18776
33
+ faster_eth_utils/network.cpython-314t-x86_64-linux-musl.so,sha256=eC6UgCXOBPXwFNTC7ZOTjwcuKx8mV2mNN83pVvC6YYE,18776
34
34
  faster_eth_utils/network.py,sha256=O3yTtA93YyyZ6Obkusr_IbbcZ6upkCewN6EsAcF0Npc,2278
35
- faster_eth_utils/numeric.cpython-314t-x86_64-linux-musl.so,sha256=qNBVp0HeQvyUHUUPZk_u6dzchhsZ5ZIUNgezYF11T_0,18776
35
+ faster_eth_utils/numeric.cpython-314t-x86_64-linux-musl.so,sha256=cp4mQAGPGaugV6IjERlFN4nWJSBXttvc7dP6X44ZSqs,18776
36
36
  faster_eth_utils/numeric.py,sha256=RrXdXI-bhhkEsz3aBtxHuGlc_2ZJvUGpvMc47wx408Y,1190
37
37
  faster_eth_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  faster_eth_utils/pydantic.py,sha256=Bmj9J-Nia0bv5PvaFxxncyW9KrCNtsbDyf2PV4jPmUo,3366
39
- faster_eth_utils/toolz.cpython-314t-x86_64-linux-musl.so,sha256=8XsrvoN95bnlso7vCqPiCveggtq3RL6Ol63iDr-D83w,18760
39
+ faster_eth_utils/toolz.cpython-314t-x86_64-linux-musl.so,sha256=2lVlHo6v4Nqo48GwUvfH71ZCGOdepd_FjflqSYGAMiQ,18760
40
40
  faster_eth_utils/toolz.py,sha256=1QQY-aMbZrEgJsuqR0Ajsa32C_cXrQquzViw7OkxNLU,4410
41
- faster_eth_utils/types.cpython-314t-x86_64-linux-musl.so,sha256=lATR8-ZUqEF7JtXTYfE1c5JlEm2g45ZCdACMP8WHK0g,18760
41
+ faster_eth_utils/types.cpython-314t-x86_64-linux-musl.so,sha256=TJi_tZrWjGds0yJcbmNXkINYQUz12TlVwflrfiTTrU4,18760
42
42
  faster_eth_utils/types.py,sha256=-RDPzkoNhkp3dpDNK9iKzGmSQawwZ6wJ4exur0E_BuY,1519
43
- faster_eth_utils/units.cpython-314t-x86_64-linux-musl.so,sha256=-jLsWG8UzXsDiFj5Coy7iAN-zguXtOz6sHRPtCwXElg,18760
43
+ faster_eth_utils/units.cpython-314t-x86_64-linux-musl.so,sha256=mSjDm5XiKWaMhIXd8dLtv4wDTKt3OBjGWujMTYS6xCY,18760
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=m2EFGuJrU6AmyD71szdkXpnom7i_Kex54CUlQv91s5c,7294
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.6.dist-info/METADATA,sha256=oF25asOyUhkAi-v6b9zkeCOsx6yuepThXp6WLCD7K30,7096
50
- faster_eth_utils-5.3.6.dist-info/WHEEL,sha256=zXoM281zyz8wppofreMuq3eZjd9HP4BgZS1rfYnrpIs,113
51
- faster_eth_utils-5.3.6.dist-info/top_level.txt,sha256=8eOy3WlvVLCcmwPnl2UMylYQNmrXz76p9L_TH-NYSSM,55
52
- faster_eth_utils-5.3.6.dist-info/RECORD,,
53
- faster_eth_utils-5.3.6.dist-info/licenses/LICENSE,sha256=STqznQ6A8OeJylPrTA7dlsMtH0isQQybRlnDZOKGVrM,1095
49
+ faster_eth_utils-5.3.8.dist-info/METADATA,sha256=fGX4JsjWHYdXIALM2o1Gx0vO9Jx5mLrJCcrT55O7ruo,7096
50
+ faster_eth_utils-5.3.8.dist-info/WHEEL,sha256=zXoM281zyz8wppofreMuq3eZjd9HP4BgZS1rfYnrpIs,113
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