No project description provided
Project description
Human ABI
Summary
This package provides a way to parse Human Readable ABI introduced by ethers.js to the Python world. It's still pretty much a WIP. The goal is to be fully compatible with ethers.js and ethers-rs.
$ pip install human_abi
from human_abi import HumanReadableParser
parser = HumanReadableParser('event TestEvent(uint indexed id, (string, uint16, (uint8, uint8)) value)')
print(parser.take_event())
# {'type': 'event', 'name': 'TestEvent', 'anonymous': False, 'inputs': [{'type': 'uint', 'name': 'id', 'indexed': True}, {'type': 'tuple', 'name': 'value', 'indexed': False, 'components': [{'type': 'string'}, {'type': 'uint16'}, {'type': 'tuple', 'components': [{'type': 'uint8'}, {'type': 'uint8'}]}]}]}
WIP
This library is still a work-in-progress. Features are being implemented as needed. But if you find it lacks what you need, feel free to submit a pull request!
LICENSE
Apache License 2.0
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 Distribution
human_abi-0.1.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for human_abi-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c73d7e7dc86aaafbf6d399d8f7e36b9728f18335cb47e760ed34a8af0d9171e |
|
MD5 | dcc9279754d78346393a27dbd1352dae |
|
BLAKE2b-256 | 8786f7a4ca2e80d3a4153940ba04303f26ac88dcbde11f225fbed60e15069a4e |