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

use the input/output JSON description #2

Open
snd opened this issue Jun 7, 2018 · 3 comments
Open

use the input/output JSON description #2

snd opened this issue Jun 7, 2018 · 3 comments

Comments

@snd
Copy link
Contributor

snd commented Jun 7, 2018

https://solidity.readthedocs.io/en/latest/using-the-compiler.html#compiler-input-and-output-json-description

it's uniform over solc and solcjs whereas the remaining cli interface isn't and it's a pain to normalize

this also will have the advantage of being able to use compiler outputs (from ethabi use_contract for example) without touching the filesystem to hold generated files

@snd snd changed the title consider using the input/output JSON description use the input/output JSON description Jun 7, 2018
@snd
Copy link
Contributor Author

snd commented Jun 7, 2018

solcjs support for the solc standard json I/O interface is broken ethereum/solc-js#126

so it's either dropping solcjs support for the time being or not using standard json and messily normalizing the differences : /

@snd
Copy link
Contributor Author

snd commented Jun 11, 2018

will revisit once ethereum/solc-js#126 is fixed.

for the time being i'll not use the JSON description and rename files after solcjs compilations to make it "compatible" with solc

@insipx
Copy link

insipx commented Sep 16, 2018

I'm not sure if this is entirely what you are talking about, but I'm working on something like this here: https://github.com/ethdbg/edb/blob/compiler/compiler/src/solidity/standard_json.rs

With the StandardJSON types here:
https://github.com/ethdbg/edb/tree/compiler-refactor/solc_api
(this is a very early version, I only just started working on it, and am not handling any errors yet)

If that is what you're talking about, I'd gladly do a PR once I'm finished with it for my proj

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants