faster-eth-utils 5.3.22__cp313-cp313-win32.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.
- faster_eth_utils/__init__.py +144 -0
- faster_eth_utils/__json/eth_networks.json +1 -0
- faster_eth_utils/__main__.py +5 -0
- faster_eth_utils/abi.cp313-win32.pyd +0 -0
- faster_eth_utils/abi.py +868 -0
- faster_eth_utils/address.cp313-win32.pyd +0 -0
- faster_eth_utils/address.py +138 -0
- faster_eth_utils/applicators.cp313-win32.pyd +0 -0
- faster_eth_utils/applicators.py +196 -0
- faster_eth_utils/conversions.cp313-win32.pyd +0 -0
- faster_eth_utils/conversions.py +189 -0
- faster_eth_utils/crypto.cp313-win32.pyd +0 -0
- faster_eth_utils/crypto.py +16 -0
- faster_eth_utils/currency.cp313-win32.pyd +0 -0
- faster_eth_utils/currency.py +144 -0
- faster_eth_utils/curried/__init__.py +297 -0
- faster_eth_utils/debug.cp313-win32.pyd +0 -0
- faster_eth_utils/debug.py +20 -0
- faster_eth_utils/decorators.cp313-win32.pyd +0 -0
- faster_eth_utils/decorators.py +115 -0
- faster_eth_utils/encoding.cp313-win32.pyd +0 -0
- faster_eth_utils/encoding.py +6 -0
- faster_eth_utils/exceptions.cp313-win32.pyd +0 -0
- faster_eth_utils/exceptions.py +11 -0
- faster_eth_utils/functional.cp313-win32.pyd +0 -0
- faster_eth_utils/functional.py +87 -0
- faster_eth_utils/hexadecimal.cp313-win32.pyd +0 -0
- faster_eth_utils/hexadecimal.py +76 -0
- faster_eth_utils/humanize.cp313-win32.pyd +0 -0
- faster_eth_utils/humanize.py +201 -0
- faster_eth_utils/logging.py +152 -0
- faster_eth_utils/module_loading.cp313-win32.pyd +0 -0
- faster_eth_utils/module_loading.py +31 -0
- faster_eth_utils/network.cp313-win32.pyd +0 -0
- faster_eth_utils/network.py +91 -0
- faster_eth_utils/numeric.cp313-win32.pyd +0 -0
- faster_eth_utils/numeric.py +43 -0
- faster_eth_utils/py.typed +0 -0
- faster_eth_utils/pydantic.py +103 -0
- faster_eth_utils/toolz.cp313-win32.pyd +0 -0
- faster_eth_utils/toolz.py +84 -0
- faster_eth_utils/types.cp313-win32.pyd +0 -0
- faster_eth_utils/types.py +65 -0
- faster_eth_utils/typing/__init__.py +18 -0
- faster_eth_utils/typing/misc.py +14 -0
- faster_eth_utils/units.cp313-win32.pyd +0 -0
- faster_eth_utils/units.py +31 -0
- faster_eth_utils-5.3.22.dist-info/METADATA +192 -0
- faster_eth_utils-5.3.22.dist-info/RECORD +53 -0
- faster_eth_utils-5.3.22.dist-info/WHEEL +5 -0
- faster_eth_utils-5.3.22.dist-info/licenses/LICENSE +21 -0
- faster_eth_utils-5.3.22.dist-info/top_level.txt +3 -0
- faster_eth_utils__mypyc.cp313-win32.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")
|