From c3031e4d8651562b285577286ddd2aea97b2919b Mon Sep 17 00:00:00 2001 From: Roman Myhun Date: Fri, 8 May 2026 22:28:40 +0300 Subject: [PATCH 1/2] feat: add comprehensive exports to `__all__` in `eth_utils` module for improved accessibility of utility functions and types. --- eth_utils/__init__.py | 104 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/eth_utils/__init__.py b/eth_utils/__init__.py index c0525f64..016901df 100644 --- a/eth_utils/__init__.py +++ b/eth_utils/__init__.py @@ -142,3 +142,107 @@ ) __version__ = __version("eth-utils") +__all__ = ( + "abi_to_signature", + "collapse_if_tuple", + "event_abi_to_log_topic", + "event_signature_to_log_topic", + "filter_abi_by_name", + "filter_abi_by_type", + "function_abi_to_4byte_selector", + "function_signature_to_4byte_selector", + "get_abi_input_names", + "get_abi_input_types", + "get_abi_output_names", + "get_abi_output_types", + "get_aligned_abi_inputs", + "get_all_event_abis", + "get_all_function_abis", + "get_normalized_abi_inputs", + "is_address", + "is_binary_address", + "is_canonical_address", + "is_checksum_address", + "is_checksum_formatted_address", + "is_hex_address", + "is_normalized_address", + "is_same_address", + "to_canonical_address", + "to_checksum_address", + "to_normalized_address", + "apply_formatter_at_index", + "apply_formatter_if", + "apply_formatter_to_array", + "apply_formatters_to_dict", + "apply_formatters_to_sequence", + "apply_key_map", + "apply_one_of_formatters", + "combine_argument_formatters", + "hexstr_if_str", + "text_if_str", + "to_bytes", + "to_hex", + "to_int", + "to_text", + "keccak", + "denoms", + "from_wei", + "from_wei_decimals", + "to_wei", + "to_wei_decimals", + "combomethod", + "replace_exceptions", + "big_endian_to_int", + "int_to_big_endian", + "ValidationError", + "apply_to_return_value", + "flatten_return", + "reversed_return", + "sort_return", + "to_dict", + "to_list", + "to_ordered_dict", + "to_set", + "to_tuple", + "add_0x_prefix", + "decode_hex", + "encode_hex", + "is_0x_prefixed", + "is_hex", + "is_hexstr", + "remove_0x_prefix", + "humanize_bytes", + "humanize_hash", + "humanize_hexstr", + "humanize_integer_sequence", + "humanize_ipfs_uri", + "humanize_seconds", + "humanize_wei", + "DEBUG2_LEVEL_NUM", + "ExtendedDebugLogger", + "HasExtendedDebugLogger", + "HasExtendedDebugLoggerMeta", + "HasLogger", + "HasLoggerMeta", + "get_extended_debug_logger", + "get_logger", + "setup_DEBUG2_logging", + "import_string", + "Network", + "name_from_chain_id", + "network_from_chain_id", + "short_name_from_chain_id", + "clamp", + "CamelModel", + "is_boolean", + "is_bytes", + "is_dict", + "is_integer", + "is_list", + "is_list_like", + "is_null", + "is_number", + "is_string", + "is_text", + "is_tuple", +) \ No newline at end of file From 905168e77ce18bb5dc4e44dc1bab904284fc5516 Mon Sep 17 00:00:00 2001 From: Roman Myhun Date: Fri, 8 May 2026 22:35:40 +0300 Subject: [PATCH 2/2] fix lint --- eth_utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth_utils/__init__.py b/eth_utils/__init__.py index 016901df..e633d6cc 100644 --- a/eth_utils/__init__.py +++ b/eth_utils/__init__.py @@ -245,4 +245,4 @@ "is_string", "is_text", "is_tuple", -) \ No newline at end of file +)