web3j-gradle-plugin icon indicating copy to clipboard operation
web3j-gradle-plugin copied to clipboard

[Q] Does the plugin support truffle output format?

Open namero999 opened this issue 6 years ago • 2 comments

I need to interact with a repository with a complex layout and I would like not to import the whole thing into my main java project, but instead simply rely on the truffle json output file format.

Web3j supports the generation of java wrapper from such file via the command

$ web3j truffle generate /path/to/<truffle-smart-contract-output>.json -o /path/to/src/main/java -p com.your.organisation.name

Does the task GenerateContractWrappers support such scenario? Is it possible to configure it as such?

Thanks!

namero999 avatar Apr 25 '19 13:04 namero999

Unfortunately at the moment the generation task does not support generation from Truffle, but a PR would be very welcome.

xaviarias avatar May 11 '19 20:05 xaviarias

Here is the code if you want to generate wrapper from truffle output in gradle: https://gist.github.com/Noisyfox/24f7c335a351a6d40171d698f43aec41

Noisyfox avatar Feb 10 '20 11:02 Noisyfox