0.1.0 • Published 5 years ago
@semsm/semsm-cli v0.1.0
semsm-cli
========= A utility for auto generate web3 functions from any truffle smart contracts
to use
- as truffle plugin :
- add the package to your truffle project
npm install truffle-web3-generator - add the plugin to
truffle-config.jsplugins: [ plugins: [ 'truffle-web3-generator' ] truffle run generate- or
truffle run generate -d YOUR_ARTIFACT_PATH -p YOUR_PROVIDER
- add the package to your truffle project
- as node package
npm installsemsm -d YOUR_ARTIFACT_PATH -p YOUR_PROVIDER- you can use it inside any truffle project , run
truffle migratethensemsmit will take the default contract artifacts you can spacify the provider through this flag--provideror-potherwise , it will take the defaulthttp://127.0.0.1:8545
Credits
This cli is based on truffle-web3-generator