Skip to main content

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

This version

0.1

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

abi_dehumanizer-0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file abi_dehumanizer-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for abi_dehumanizer-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b31138df67f2d5cbff4693ae491ffd1fb2c22446ea2eb5f957383553b675d809
MD5 27eff8ddd680c450faad31359ba58d18
BLAKE2b-256 26ff6dd0a90fd235010b4b42cebb6c526d6c9ac571e7e342fd9b094f98ec6cf0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page