-
Notifications
You must be signed in to change notification settings - Fork 94
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
Liquifier: A tool to parse Solidity.json contracts #82
Conversation
…ame on the header
create new makeConstructorTypeDef add optional|defaultValue to the docs
liquifier.js
Outdated
.demandOption([`f`,]) | ||
.help(`h`) | ||
.alias(`h`, `help`) | ||
// .epilog('copyright bepro') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can delete this line
liquifier.js
Outdated
// .epilog('copyright bepro') | ||
.argv; | ||
|
||
// ** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused line (maybe it's volunteer, you have an other one line 34)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the help @riaje, great to have you here! :)
|
This tool has a more options,
Will do, but calling this from npm will look like this:
Replace step 2 and 3 for something along the lines of
|
Memo (Add to Gitbook how to) 2 - Liquefy your solidity contract by issuing npm run liquifier -- -f ./build/contracts/X.json -d ./src/models/ |
Add this information into the README.md also @moshmage in a section about what is the liquifier and how you should use it. After that we are good Also please confirm the "npm run build" command doesn't run the liquifier automatically |
Also @moshmage can we add functionalities to the liquifier to do the steps 4,5 & 6 (unit tests setup) to speed up the skeleton of those files & imports |
We can, but in a new issue as that goes outside of the scope of the bounty
Not only that, but some structural refactor must happen and I'd like to have that discussed before starting that work
Will do
It doesn't, there's isn't even a connection from |
change -o description to match its usage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good
@moshmage just need to add this to our gitbook, but the rest is all ok |
Bounty
#72 Integrate Automated Javascript Class creation based on Solidity Class
Describe the solution
Introduces a cli tool,
liquifier
, that parses the provided Abi object from the solidity json file, filters out the functions and creates the corresponding javascript class with dummy function body that calls__sendTx
on the contract method, with the needed arguments.A basic documentation of the entry params is also created, as well as a interface file.
Preview
more can be seen by cloning https://github.com/moshmage/bepro-js/tree/feat/liquifier and issuing
ETH Wallet
0x0e6B6ae33f345E1CbAc096a2644f7748F347d218