faster-eth-utils 5.3.20__cp39-cp39-win_amd64.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.
Files changed (53) hide show
  1. faster_eth_utils/__init__.py +144 -0
  2. faster_eth_utils/__json/eth_networks.json +1 -0
  3. faster_eth_utils/__main__.py +5 -0
  4. faster_eth_utils/abi.cp39-win_amd64.pyd +0 -0
  5. faster_eth_utils/abi.py +847 -0
  6. faster_eth_utils/address.cp39-win_amd64.pyd +0 -0
  7. faster_eth_utils/address.py +145 -0
  8. faster_eth_utils/applicators.cp39-win_amd64.pyd +0 -0
  9. faster_eth_utils/applicators.py +209 -0
  10. faster_eth_utils/conversions.cp39-win_amd64.pyd +0 -0
  11. faster_eth_utils/conversions.py +191 -0
  12. faster_eth_utils/crypto.cp39-win_amd64.pyd +0 -0
  13. faster_eth_utils/crypto.py +21 -0
  14. faster_eth_utils/currency.cp39-win_amd64.pyd +0 -0
  15. faster_eth_utils/currency.py +141 -0
  16. faster_eth_utils/curried/__init__.py +306 -0
  17. faster_eth_utils/debug.cp39-win_amd64.pyd +0 -0
  18. faster_eth_utils/debug.py +20 -0
  19. faster_eth_utils/decorators.cp39-win_amd64.pyd +0 -0
  20. faster_eth_utils/decorators.py +119 -0
  21. faster_eth_utils/encoding.cp39-win_amd64.pyd +0 -0
  22. faster_eth_utils/encoding.py +6 -0
  23. faster_eth_utils/exceptions.cp39-win_amd64.pyd +0 -0
  24. faster_eth_utils/exceptions.py +11 -0
  25. faster_eth_utils/functional.cp39-win_amd64.pyd +0 -0
  26. faster_eth_utils/functional.py +89 -0
  27. faster_eth_utils/hexadecimal.cp39-win_amd64.pyd +0 -0
  28. faster_eth_utils/hexadecimal.py +80 -0
  29. faster_eth_utils/humanize.cp39-win_amd64.pyd +0 -0
  30. faster_eth_utils/humanize.py +201 -0
  31. faster_eth_utils/logging.py +146 -0
  32. faster_eth_utils/module_loading.cp39-win_amd64.pyd +0 -0
  33. faster_eth_utils/module_loading.py +31 -0
  34. faster_eth_utils/network.cp39-win_amd64.pyd +0 -0
  35. faster_eth_utils/network.py +92 -0
  36. faster_eth_utils/numeric.cp39-win_amd64.pyd +0 -0
  37. faster_eth_utils/numeric.py +43 -0
  38. faster_eth_utils/py.typed +0 -0
  39. faster_eth_utils/pydantic.py +101 -0
  40. faster_eth_utils/toolz.cp39-win_amd64.pyd +0 -0
  41. faster_eth_utils/toolz.py +84 -0
  42. faster_eth_utils/types.cp39-win_amd64.pyd +0 -0
  43. faster_eth_utils/types.py +68 -0
  44. faster_eth_utils/typing/__init__.py +18 -0
  45. faster_eth_utils/typing/misc.py +14 -0
  46. faster_eth_utils/units.cp39-win_amd64.pyd +0 -0
  47. faster_eth_utils/units.py +31 -0
  48. faster_eth_utils-5.3.20.dist-info/METADATA +193 -0
  49. faster_eth_utils-5.3.20.dist-info/RECORD +53 -0
  50. faster_eth_utils-5.3.20.dist-info/WHEEL +5 -0
  51. faster_eth_utils-5.3.20.dist-info/licenses/LICENSE +21 -0
  52. faster_eth_utils-5.3.20.dist-info/top_level.txt +3 -0
  53. faster_eth_utils__mypyc.cp39-win_amd64.pyd +0 -0
@@ -0,0 +1,144 @@
1
+ from importlib.metadata import (
2
+ version as __version,
3
+ )
4
+
5
+ from .abi import (
6
+ abi_to_signature,
7
+ collapse_if_tuple,
8
+ event_abi_to_log_topic,
9
+ event_signature_to_log_topic,
10
+ filter_abi_by_name,
11
+ filter_abi_by_type,
12
+ function_abi_to_4byte_selector,
13
+ function_signature_to_4byte_selector,
14
+ get_abi_input_names,
15
+ get_abi_input_types,
16
+ get_abi_output_names,
17
+ get_abi_output_types,
18
+ get_aligned_abi_inputs,
19
+ get_all_event_abis,
20
+ get_all_function_abis,
21
+ get_normalized_abi_inputs,
22
+ )
23
+ from .address import (
24
+ is_address,
25
+ is_binary_address,
26
+ is_canonical_address,
27
+ is_checksum_address,
28
+ is_checksum_formatted_address,
29
+ is_hex_address,
30
+ is_normalized_address,
31
+ is_same_address,
32
+ to_canonical_address,
33
+ to_checksum_address,
34
+ to_normalized_address,
35
+ )
36
+ from .applicators import (
37
+ apply_formatter_at_index,
38
+ apply_formatter_if,
39
+ apply_formatter_to_array,
40
+ apply_formatters_to_dict,
41
+ apply_formatters_to_sequence,
42
+ apply_key_map,
43
+ apply_one_of_formatters,
44
+ combine_argument_formatters,
45
+ )
46
+ from .conversions import (
47
+ hexstr_if_str,
48
+ text_if_str,
49
+ to_bytes,
50
+ to_hex,
51
+ to_int,
52
+ to_text,
53
+ )
54
+ from .crypto import (
55
+ keccak,
56
+ )
57
+ from .currency import (
58
+ denoms,
59
+ from_wei,
60
+ from_wei_decimals,
61
+ to_wei,
62
+ to_wei_decimals,
63
+ )
64
+ from .decorators import (
65
+ combomethod,
66
+ replace_exceptions,
67
+ )
68
+ from .encoding import (
69
+ big_endian_to_int,
70
+ int_to_big_endian,
71
+ )
72
+ from .exceptions import (
73
+ ValidationError,
74
+ )
75
+ from .functional import (
76
+ apply_to_return_value,
77
+ flatten_return,
78
+ reversed_return,
79
+ sort_return,
80
+ to_dict,
81
+ to_list,
82
+ to_ordered_dict,
83
+ to_set,
84
+ to_tuple,
85
+ )
86
+ from .hexadecimal import (
87
+ add_0x_prefix,
88
+ decode_hex,
89
+ encode_hex,
90
+ is_0x_prefixed,
91
+ is_hex,
92
+ is_hexstr,
93
+ remove_0x_prefix,
94
+ )
95
+ from .humanize import (
96
+ humanize_bytes,
97
+ humanize_hash,
98
+ humanize_hexstr,
99
+ humanize_integer_sequence,
100
+ humanize_ipfs_uri,
101
+ humanize_seconds,
102
+ humanize_wei,
103
+ )
104
+ from .logging import (
105
+ DEBUG2_LEVEL_NUM,
106
+ ExtendedDebugLogger,
107
+ HasExtendedDebugLogger,
108
+ HasExtendedDebugLoggerMeta,
109
+ HasLogger,
110
+ HasLoggerMeta,
111
+ get_extended_debug_logger,
112
+ get_logger,
113
+ setup_DEBUG2_logging,
114
+ )
115
+ from .module_loading import (
116
+ import_string,
117
+ )
118
+ from .network import (
119
+ Network,
120
+ name_from_chain_id,
121
+ network_from_chain_id,
122
+ short_name_from_chain_id,
123
+ )
124
+ from .numeric import (
125
+ clamp,
126
+ )
127
+ from .pydantic import (
128
+ CamelModel,
129
+ )
130
+ from .types import (
131
+ is_boolean,
132
+ is_bytes,
133
+ is_dict,
134
+ is_integer,
135
+ is_list,
136
+ is_list_like,
137
+ is_null,
138
+ is_number,
139
+ is_string,
140
+ is_text,
141
+ is_tuple,
142
+ )
143
+
144
+ __version__ = __version("faster-eth-utils")