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 hashes)

Uploaded Python 3

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