-
Notifications
You must be signed in to change notification settings - Fork 82
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
Generate the ABI elements #27
Comments
In fact it seems to have code to generate the ABI element, but I am not able to see any abi.json files generated in my target folder. |
I have added in my configuration the abi parameter, but no file has been generated...
|
I have got the code, and replace abi default value to true, it does not generate the abi coresponding json files. |
Ok, I have found at least one problem in the code. in will result in error due to the fact that the packageName directory has not been previously created.
so we can update the code with
so the json abi files will be located at the same place as the java source files But I am not sure it is the right place. Because if we follow this pattern for the "binary" option generation, the solidity binaries will be located at the same place as the java source files. moreover I think it is pertinent also to add the ABI generated files directly in the maven jar provided. |
Apologizes for my absence. Holiday, "Money"work, I will check the issue and PullRequest tomorrow. But thank you already for your work! |
No problem.
Hope holidays were fun !
Do not hesitate to ask me some modifications, i need to improve my level on
opensource projects.
/François
Le jeu. 23 août 2018 à 15:04, Heinz Marti <notifications@github.com> a
écrit :
… Apologizes for my absence. Holiday, "Money"work, I will check the issue
and PullRequest tomorrow. But thank you already for your work!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFWYlCsGPeMu_uW9sJGNTzq0WdPot2KKks5uTqhRgaJpZM4VDz29>
.
|
With the newest version (0.3.5) it should be possible to generate abi or bin files. see the readme file <outputFormat>java,bin</outputFormat> |
Hey cool!
with the latest version ABI generation works
nevertheless it put the abi files into the same destination
sourceDestination
in my case that matches:
<sourceDestination>${project.basedir}/target/main/java</sourceDestination>
so:
./target/main/java/com.cea.digitalworld.dwsmartcontracts/BCThing.json
./target/main/java/com.cea.digitalworld.dwsmartcontracts/BCCollector.json
As you can see, it use the package format with dot and folder location
for me it should be at a separate place to be able to manage it more easily
with maven.
that why in my proposition I have added also abiDestination parameter.
But any way thanks to have implemented the ABI generation function!
Now I will try to understand how to parse the input field of transaction to
retrieve all parameters values, given the ABI definition.
if you have any advice, i would appreciate.
Francois
…On Fri, Aug 24, 2018 at 4:14 PM Heinz Marti ***@***.***> wrote:
With the newest version (0.3.5) it should be possible to generate abi or
bin files. see the readme file
<outputFormat>java,bin</outputFormat>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFWYlA4ccMtgTs-0yr_4Kxrt1JyBmxn-ks5uUAotgaJpZM4VDz29>
.
--
Francois Le Fevre
Management Informatique Innovation Biotechnologies
Paris, France
-
Avant d'imprimer, pensez à l'environnement
|
I close since the new version is able to generate the ABI files. An upgrade could be possible to put it a separate configurable folder. |
Will it be possible to generate also the ABI files in the generated folder?
It will be usefull to provide a tooling able to parse the transaction.input parameter directly?
Any idea on how to do it?
Several projects in javascritp are doint it 1
The text was updated successfully, but these errors were encountered: