Node >= 10.x && yarn > 1.x
$ node --version
v16.13.0
$ npm install --global yarn
$ yarn --version
1.22.17
Install dependencies
$ yarn
- Compile contract
$ yarn compile
- Run tests
$ yarn test
- Run linter to analyze convention and security for smart contracts
$ yarn sol:linter
- Format smart contracts
$ yarn sol:prettier
- Format typescript scripts for unit tests, deployment and upgrade
$ yarn ts:prettier
- Note: Updated husky hook for pre-commit