ethpm/ethpm-spec

JSON-schema for ABI

Closed this issue · 2 comments

The ABI portion of the json-schema isn't currently fleshed out.

Here is an existing schema for that data structure.

https://github.com/pipermerriam/ethereum-function-signature-registry/blob/master/func_sig_registry/utils/abi.py

The ABI already comes in a json schema...just wrap that into your contract instance object.

mhhf commented

@pipermerriam why do you think we need to validate the abi here? It did change once during solidity/ ethereum development and there is a change it will change again. So validating an already standardized output (assuming no manipulation is done), would only produce the overhead of keeping up with the validation. Also it changes across solidity versions, so abi validation would depend on the version.
I'd propose to just keeping it a blackbox.