faster-eth-utils 5.3.6__cp314-cp314t-musllinux_1_2_i686.whl → 5.3.8__cp314-cp314t-musllinux_1_2_i686.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-i386-linux-musl.so +0 -0
  2. faster_eth_utils/abi.cpython-314t-i386-linux-musl.so +0 -0
  3. faster_eth_utils/abi.py +1 -1
  4. faster_eth_utils/address.cpython-314t-i386-linux-musl.so +0 -0
  5. faster_eth_utils/applicators.cpython-314t-i386-linux-musl.so +0 -0
  6. faster_eth_utils/applicators.py +9 -6
  7. faster_eth_utils/conversions.cpython-314t-i386-linux-musl.so +0 -0
  8. faster_eth_utils/crypto.cpython-314t-i386-linux-musl.so +0 -0
  9. faster_eth_utils/currency.cpython-314t-i386-linux-musl.so +0 -0
  10. faster_eth_utils/curried/__init__.py +3 -0
  11. faster_eth_utils/debug.cpython-314t-i386-linux-musl.so +0 -0
  12. faster_eth_utils/decorators.cpython-314t-i386-linux-musl.so +0 -0
  13. faster_eth_utils/encoding.cpython-314t-i386-linux-musl.so +0 -0
  14. faster_eth_utils/exceptions.cpython-314t-i386-linux-musl.so +0 -0
  15. faster_eth_utils/functional.cpython-314t-i386-linux-musl.so +0 -0
  16. faster_eth_utils/hexadecimal.cpython-314t-i386-linux-musl.so +0 -0
  17. faster_eth_utils/humanize.cpython-314t-i386-linux-musl.so +0 -0
  18. faster_eth_utils/module_loading.cpython-314t-i386-linux-musl.so +0 -0
  19. faster_eth_utils/network.cpython-314t-i386-linux-musl.so +0 -0
  20. faster_eth_utils/numeric.cpython-314t-i386-linux-musl.so +0 -0
  21. faster_eth_utils/toolz.cpython-314t-i386-linux-musl.so +0 -0
  22. faster_eth_utils/types.cpython-314t-i386-linux-musl.so +0 -0
  23. faster_eth_utils/units.cpython-314t-i386-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-i386-linux-musl.so,sha256=CVN0nO7cT7dKRWQxgH0ldY1Q1Kh2fjsAzYuGJP6XsHY,1696840
1
+ 99c07adba6ff961eaf3e__mypyc.cpython-314t-i386-linux-musl.so,sha256=2P4GcIp1X2Epwx0m_dJq6eYboOho8Wlt24f3W4ZWFUA,1696228
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-i386-linux-musl.so,sha256=tpiCiBSkFoIlXp5lLbAo1uv0qzd52Y6qtdKgmdEZZ5k,17536
5
- faster_eth_utils/abi.py,sha256=miB6LjlaT2x5VsKZn4sPZDlvOcq7ir5izND7Eco3OHc,26511
6
- faster_eth_utils/address.cpython-314t-i386-linux-musl.so,sha256=BuHGGAXL1lyf6pgbwBz1MXkyc86q-Z-LfAEf_dVFUWs,17568
4
+ faster_eth_utils/abi.cpython-314t-i386-linux-musl.so,sha256=QyJu7Z0GsfCev6LMETJVFqrPHi1h0XiswHe2Zv-Q4nM,17536
5
+ faster_eth_utils/abi.py,sha256=2Lk78YiWLIG_srH2nTYny8tYrxM7JS-zWNpBe8ACMEs,26544
6
+ faster_eth_utils/address.cpython-314t-i386-linux-musl.so,sha256=yZ5UJhdrGkc_i9oxw1yh9fWcnR7dqEgRGniI_wyRzyM,17568
7
7
  faster_eth_utils/address.py,sha256=IIHlYuIz-F6-mAnRWdsD4uH5l56yVRFMokFQINao9lE,3680
8
- faster_eth_utils/applicators.cpython-314t-i386-linux-musl.so,sha256=dJE_xkPhEP0Y0VFaYF-9LWiPdHI7jRuoAkHzlMk3MtE,17600
9
- faster_eth_utils/applicators.py,sha256=0noq99vUvRQ9E1eIYwlByYZE_i1bEeUtyDpfa7qHvmg,5171
10
- faster_eth_utils/conversions.cpython-314t-i386-linux-musl.so,sha256=f_P1uBmb3OIwQ7UW4bMrmd7iIPhu8D8WKVKckNtRPNk,17600
8
+ faster_eth_utils/applicators.cpython-314t-i386-linux-musl.so,sha256=ONi8UMsxX_l88AIvMniLZwIc8c5ljrJoXbp88Tb4mks,17600
9
+ faster_eth_utils/applicators.py,sha256=2BKYgRaXgUhA1sCMApuJvN6Qy59LBDkUzQcQkJdknJA,5301
10
+ faster_eth_utils/conversions.cpython-314t-i386-linux-musl.so,sha256=uERk6EL5l9Slt5Ff3UbtaWhQcIN7KvdiVqO8AtsY3yM,17600
11
11
  faster_eth_utils/conversions.py,sha256=t2TEe0WsffqOFDbyQcERTSbHJYpDBWHKd8XPArhLoEE,5665
12
- faster_eth_utils/crypto.cpython-314t-i386-linux-musl.so,sha256=3bC8JypbyJ2psDZ25voIDYoQDPfRhd5evtlFcHj7uEY,17560
12
+ faster_eth_utils/crypto.cpython-314t-i386-linux-musl.so,sha256=9C3Tn2DNK0wJF-Eq0Rg_MjQmqpPD4KBD8ZwihYgJC6g,17560
13
13
  faster_eth_utils/crypto.py,sha256=EQgupom_TnURbLNXodwbJoKB-mHyxgOTvo8EjnSzdxw,395
14
- faster_eth_utils/currency.cpython-314t-i386-linux-musl.so,sha256=l_1BFlxydeZwbeF63MWGJnPobEYpd3-R8i8Uu1eMs2s,17580
14
+ faster_eth_utils/currency.cpython-314t-i386-linux-musl.so,sha256=YVzrOHLftMvruNgPW7tLcC196EuD8y1Meshe9iTEfjg,17580
15
15
  faster_eth_utils/currency.py,sha256=01YVV2f2GL4830jfSjnC4XhLQjTNQB-5y7vbGzaMWbM,4150
16
- faster_eth_utils/debug.cpython-314t-i386-linux-musl.so,sha256=bgGUejgH9ET1mUpj-EbhnhbyC5rLgsmAevPaRhzY-MA,17552
16
+ faster_eth_utils/debug.cpython-314t-i386-linux-musl.so,sha256=WFD7wWVF6jfisdh9nNihvcm3L5or3pSuvweiYCrEOdw,17552
17
17
  faster_eth_utils/debug.py,sha256=0Z-tNOqgQJunS4uHeSCCH1LWLoijlH34MBh6NRrrDrk,499
18
- faster_eth_utils/decorators.cpython-314t-i386-linux-musl.so,sha256=-BV9RkYrDYbyB0N_C9yx2G7V0oDWLOrHfN49maFE9X0,17592
18
+ faster_eth_utils/decorators.cpython-314t-i386-linux-musl.so,sha256=RlO8rIJJy6DMyFk8_D48f-dA3JqtRagSMrgd7032MSI,17592
19
19
  faster_eth_utils/decorators.py,sha256=BdAz-imQIf0TlBm7Di7T05o3IC6ei-xJc7FgIOqqAyE,2145
20
- faster_eth_utils/encoding.cpython-314t-i386-linux-musl.so,sha256=vKPsOQMlHPdC6rxATtBrk9vcwmVebmXmYPZbn-KM6VY,17580
20
+ faster_eth_utils/encoding.cpython-314t-i386-linux-musl.so,sha256=2Ls89woU96WTe5trV91H8gXxkXxU1SZlXOrdOS65QH0,17580
21
21
  faster_eth_utils/encoding.py,sha256=1qfDeuinLZ01XjYgknpm_p9LuWwaYvicYkYI8mS1iMc,199
22
- faster_eth_utils/exceptions.cpython-314t-i386-linux-musl.so,sha256=QW70HKVMvLGr-5j6u3KzRt-yuyLPEnZou5rn0qLFlao,17592
22
+ faster_eth_utils/exceptions.cpython-314t-i386-linux-musl.so,sha256=AcL1XzZSCc8OVT6J5pxqOfGWd0n2amIRwtg6Utl7LbI,17592
23
23
  faster_eth_utils/exceptions.py,sha256=3ndM6zl4QoSc6GupV9T1Klz9TByM8w2zr4ez8UJvzew,110
24
- faster_eth_utils/functional.cpython-314t-i386-linux-musl.so,sha256=KsUsVIl5-Lb6niZJdoN_KEtfn3dfd7jLgigKD5Cjv70,17592
24
+ faster_eth_utils/functional.cpython-314t-i386-linux-musl.so,sha256=Jk6QNvWHlq1H9RSVb-EwE5lmHitT7yYh16IjJMiOrpM,17592
25
25
  faster_eth_utils/functional.py,sha256=nJTxE4_HDci0chos5mQdy05pJ8o7n0wx_o7_WCro2gI,2449
26
- faster_eth_utils/hexadecimal.cpython-314t-i386-linux-musl.so,sha256=Rwrmsa0vyUiroOnKH3KLEjanPwu_QgP2ULADziPfvzw,17600
26
+ faster_eth_utils/hexadecimal.cpython-314t-i386-linux-musl.so,sha256=59JKjGQScMNq8jCq4AqribQaGsiB0x72K-RBYtPIUvs,17600
27
27
  faster_eth_utils/hexadecimal.py,sha256=bPxUdJse6A3j3vF6KpnvSM2h3eRhgWSWeyicwnLdvHY,2082
28
- faster_eth_utils/humanize.cpython-314t-i386-linux-musl.so,sha256=9Q4g6-B_bv9wVtGmR111P1k5D8-G42UMfhCDHVBX358,17580
28
+ faster_eth_utils/humanize.cpython-314t-i386-linux-musl.so,sha256=mFRWOuDahzUwBb6UAZJ58lfhCwjRaS2dAzpewiherBk,17580
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-i386-linux-musl.so,sha256=Y7H06tlHhsDnw1T13UzDukEf6fK4yuAALZoQsOqfm10,17624
31
+ faster_eth_utils/module_loading.cpython-314t-i386-linux-musl.so,sha256=3T3WeA5UJgYlz2V1kFzUPjoTsft_aFNhfyX6zOR_SVw,17624
32
32
  faster_eth_utils/module_loading.py,sha256=DCLM4dEh1gqr8Ny-FWwD-_pINqeHzbLSupz4ZIpCCAw,842
33
- faster_eth_utils/network.cpython-314t-i386-linux-musl.so,sha256=9rYVKKXVAmWl5JtuyIbGXZCztNx9ZkS45hC75fCvfkk,17568
33
+ faster_eth_utils/network.cpython-314t-i386-linux-musl.so,sha256=ddXSg9oEhxH94y86W6wdLKWuzGzZDaEtBf6x6Y73KL4,17568
34
34
  faster_eth_utils/network.py,sha256=O3yTtA93YyyZ6Obkusr_IbbcZ6upkCewN6EsAcF0Npc,2278
35
- faster_eth_utils/numeric.cpython-314t-i386-linux-musl.so,sha256=PYpRcwqhh8D1lexihuhIMyy19ZIHIu7Md5nDLoZkeNQ,17568
35
+ faster_eth_utils/numeric.cpython-314t-i386-linux-musl.so,sha256=iUyQerH9L71Y8bEU85IUVaH3r4PeAu44l3Ecsksk1h0,17568
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-i386-linux-musl.so,sha256=XTuEkIWq0nsakXEhPzRETDxM3MuIRdTkhqa-1q9fALg,17552
39
+ faster_eth_utils/toolz.cpython-314t-i386-linux-musl.so,sha256=5MvcL7HCzTa2vS3uRYefvuYDwxFmpz_EjAKjo0-wItA,17552
40
40
  faster_eth_utils/toolz.py,sha256=1QQY-aMbZrEgJsuqR0Ajsa32C_cXrQquzViw7OkxNLU,4410
41
- faster_eth_utils/types.cpython-314t-i386-linux-musl.so,sha256=Ng_fOo0D8FNbr-UzPUy-Ors2-1EPMcN5avlM6J0NruM,17552
41
+ faster_eth_utils/types.cpython-314t-i386-linux-musl.so,sha256=0LzE3G--sWt6TLgtq6Wyir3JMyLtpgNPDf91anF9a08,17552
42
42
  faster_eth_utils/types.py,sha256=-RDPzkoNhkp3dpDNK9iKzGmSQawwZ6wJ4exur0E_BuY,1519
43
- faster_eth_utils/units.cpython-314t-i386-linux-musl.so,sha256=i1U7Bk4RRBUAC9n7u8HZBK2WdRWmDKuVYUa4YK_QaqM,17552
43
+ faster_eth_utils/units.cpython-314t-i386-linux-musl.so,sha256=Vx8nM8jlvh4j9ItLZ34z23dDXxD78Pzkt97GxoJXg0E,17552
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=j--VHEVJHakxKeQne7JVwficZ0NLe-rDDhMZdBrkFNk,111
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=j--VHEVJHakxKeQne7JVwficZ0NLe-rDDhMZdBrkFNk,111
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