abi-to-wrap
v0.2.1
Published
Abi to wrap is a node.js console app that can read an Ethereum smart contract abi file and generate Polywrap wrapper code for schema and AssemblyScript modules.
Downloads
2
Maintainers
Readme
Abi to wrap
Abi to wrap is a node.js console app that can read an Ethereum smart contract abi file and generate Polywrap wrapper code for schema and AssemblyScript modules.
Run without cloning the repo:
- Install with "npm install -g abi-to-wrap"
- run "wrap-persistence-node {command}"
Run with cloning the repo:
- Clone the repo
- Run "nvm install && nvm use"
- Run "yarn" to install dependencies
- Run "yarn dev {command}" to run the commands with ts-node
The following commands are supported:
- gen: Generate wrapper code from ABI (params: -a (path to abi file), -o (path to output dir))
- help: Display help for command