ApeWorX / ethpm-types

Implementation of EIP-2678
Apache License 2.0
14 stars 8 forks source link

docs: add documentation on how to use `from_signature` method #131

Closed Aviksaikat closed 2 months ago

Aviksaikat commented 2 months ago

Overview

Provide a simple overview of what you wish to see added. Please include:

Specification

# get methodabi from function signature
import ethpm_types
method_abi = ethpm_types.abi.MethodABI.from_signature("function_name(uint256 arg1)")
# get methodabi from Events signature
signature = "Transfer(address indexed from, address indexed to, uint256 value)"
event = EventABI.from_signature(signature)
print(event.name)
>> Transfer

Dependencies

N/A

linear[bot] commented 2 months ago

APE-1781 docs: add documentation on how to use `from_signature` method