We use ZeppelinOS to develop, deploy and operate the Enable loan kit packages. The ZeppelinOS Documentation is a good start.
- Run
npm installto install all zeppelinOS related dependencies - Run
ganache-cli(organache-cli --deterministic) to run a local blockchain
For background: read Publishing an EVM package.
zos publish --network development. This publishes the project's app, package and provider. This updates the zos config file with "app.address" field that is needed for tests to run.zos push --network development. This deploys the contracts in the project. This has the same effect as runningzos createon every contract. See Quickstart for context.
npm run test. Also runszos push(Dan: does it upgrade contracts as well?)
For background: read Upgrading contracts
zos upgrade <contract name>orzos upgrade --allbased on contract changed. This should upgrade the contracts.
We use ESLint and Prettier to format our code. Please make sure you have the following setting turned on in VSCode (or equivalent editor).
editor.formatOnSave: true