https://github.com/matter-labs/hardhat-zksync/tree/main/examples
- Support contract upgradeable
- Solidity 0.8.x
- Governance
- Lazy-minting for ERC721 and ERC1155
- Contract factory for INO
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 hardhat compile
- Run tests
$ yarn test
yarn hardhat run ./deploy/0-deploy-test-token.ts
yarn hardhat run ./deploy/1-deploy-call.ts
yarn hardhat run ./deploy/2-deploy-staking.ts
yarn hardhat run ./deploy/3-deploy-plat-token.ts
For more information, you can check this link here
- 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