File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1717
1818 Return the ``output `` names an ABI function or event.
1919
20+
21+ .. automodule :: web3.utils.abi
22+ :members:
23+ :undoc-members:
24+ :show-inheritance:
25+
2026Address
2127-------
2228
Original file line number Diff line number Diff line change 2828from eth_utils .types import (
2929 is_text ,
3030)
31+ from typing_extensions import (
32+ deprecated ,
33+ )
3134
3235from web3 ._utils .abi import (
3336 abi_to_signature ,
4750 ABIFunction ,
4851)
4952
53+ DEPRECATION_MESSAGE = (
54+ "`{0}` is deprecated and will be removed in a future release. Use " "`{1}` instead."
55+ )
56+
5057
58+ @deprecated (
59+ DEPRECATION_MESSAGE .format (
60+ "get_abi_input_names" , "eth_utils.abi.get_abi_output_names"
61+ )
62+ )
63+ @deprecated ("Use eth_utils.abi.get_abi_input_names" )
5164def get_abi_input_names (abi : Union [ABIFunction , ABIEvent ]) -> List [str ]:
65+ """
66+ Return the ``input`` names for an ABI function or event.
67+ """
5268 if "inputs" not in abi and abi ["type" ] == "fallback" :
5369 return []
5470 return [arg ["name" ] for arg in abi ["inputs" ]]
5571
5672
73+ @deprecated (
74+ DEPRECATION_MESSAGE .format (
75+ "get_abi_output_names" , "eth_utils.abi.get_abi_output_names"
76+ )
77+ )
5778def get_abi_output_names (abi : Union [ABIFunction ]) -> List [str ]:
5879 if "outputs" not in abi and abi ["type" ] == "fallback" :
5980 return []
You can’t perform that action at this time.
0 commit comments