Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add first class support for converting ABIs themselves to/from json/bin/hex #9477

Merged
merged 1 commit into from
Sep 8, 2020

Conversation

allenhan2
Copy link
Contributor

@allenhan2 allenhan2 commented Sep 8, 2020

Change Description

As of abieos has lost the implicit ability to convert ABI's themselves between their JSON, binary and hex forms.

Prior to this, the structure of a binary ABI could be defined by an ABI itself resulting in an implicit ability to achieve this use-case by loading the ABI.abi and processing the abi data as it it were transaction/action data.

This task re-adds support for this use-case as explicit first class methods of abieos exposed through the C interface.

These should use the existing conventions from get_bin|hex and to_json functions

This PR is to update:

  1. abieos changes for abi conversion
  2. move a function to abieos

related PR:
EOSIO/abieos#78

Change Type

Select ONE

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@allenhan2 allenhan2 marked this pull request as ready for review September 8, 2020 16:33
@allenhan2 allenhan2 merged commit 631b6b1 into develop Sep 8, 2020
@allenhan2 allenhan2 deleted the add_abi_conversion_json_bin branch September 8, 2020 17:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants