-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
solang needs to accept solidity standard json as input #791
Comments
This feature is needed for #715 so that the json input can be used from javascript. |
@seanyoung I will like to take this issue so what exactly I need to do can you guide me as it is my first time |
The json format is described in the solc documentation. The output format is already implemented. The input format needs implementing. The output format is described here: https://github.com/hyperledger-labs/solang/blob/main/src/bin/solang.rs#L20-L41 Maybe it's time to put both definitions of the json format in its own rust file/module and then import it. Once the definition is written, then the command line of solang must be modified. If the option Then process the files in the json, just like it is done now for files which are specified on the command line. So, call Once that is done, some tests need to be written, and a PR opened. Please let me us know how you get on, we're always here to help. Also find us on discord. Thank you @devratapuri |
@devratapuri are you still doing this? If not I would love to take it out. |
Hi @Genysys, are you still on it? |
@xermicus Should I get on it? Just let me know where in the repository we can do these changes (sorry I am a first time contributor here) |
He has linked it in his ans |
@devratapuri are you still working on this? |
If not, @5hv5hvnk feel free to tackle this issue |
Nope sry i almost forgot about it . |
@5hv5hvnk the json input format needs to defined in this file https://github.com/hyperledger/solang/blob/main/src/standard_json.rs |
I am facing some issues with adding a function in lib.rs should I raise a PR and discuss there or you can check my recent commit here |
What's the problem? |
I am not very clear how the function should process the data. (I even couldn't find analogous function for |
solang should compile the source files provided in json in the format described here: https://docs.soliditylang.org/en/v0.8.13/using-tthe-compiler.html#compiler-input-and-output-json-description rather than files provided on the command line. See section |
When
solang --standard-json
is run, the output from the compiler is in the standard json format. However, the input is not.Note that changing this feature will break the burrow tests. The burrow tests can be disabled for now, since burrow is a dead project.
The text was updated successfully, but these errors were encountered: