sCrypt CLI makes the development of sCrypt CLI tools faster and easier.
Install
npm install -g scrypt-cli
how to use
scrypt project my-proj
or
scrypt p my-proj
This command creates a new directory my-proj that contains a demo sCrypt smart contract and the required scaffolding.
A project README.md
file is also included, read it for more information on how to test and deploy the generated smart contracts.
You can also generate a stateful smart contract project using the following command:
scrypt p --state my-proj
Finally, you can create an sCrypt library project with the following options:
scrypt p --lib my-lib
Compile project
scrypt compile
This will search the current project for inherited SmartContract
classes and compile them. This will generate a contract artifact file for each compiled class. These files will be stored in artifacts
the directory.
This command needs to be run in the root directory of the project.
publish project
scrypt publish
This will check the current project's structure and publish it to NPM.
Get system information
Often when submitting a question, it is useful to provide information about your system. You can obtain this information using the following command:
scrypt system