A parser for transforming human-readable ABI strings into a format compatible with eth_abi.decode()
Project description
Human-Readable ABI String Convertor To eth_abi Compatible List
This repository contains Python classes designed for parsing human-readable ABI strings into a format that can be easily used with the eth_abi.decode() function.
Installation
pip install abi_dehumanizer
Usage
>>> from abi_dehumanizer import ABIDehumanizer
>>> ABIDehumanizer("deposit((address,uint256,uint256,uint256,(address,address,bool,uint256)[]),address[],uint256[])").parse_parameters()
['(address,uint256,uint256,uint256,(address,address,bool,uint256)[])', 'address[]', 'uint256[]']
>>>
>>> ABIDehumanizer("claim(address,address,uint256,uint256,bytes32[])").parse_parameters()
['address', 'address', 'uint256', 'uint256', 'bytes32[]']
>>>
>>> ABIDehumanizer("transfer(address,uint256)").parse_parameters()
['address', 'uint256']
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file abi_dehumanizer-0.1-py3-none-any.whl.
File metadata
- Download URL: abi_dehumanizer-0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b31138df67f2d5cbff4693ae491ffd1fb2c22446ea2eb5f957383553b675d809
|
|
| MD5 |
27eff8ddd680c450faad31359ba58d18
|
|
| BLAKE2b-256 |
26ff6dd0a90fd235010b4b42cebb6c526d6c9ac571e7e342fd9b094f98ec6cf0
|