Smart contracts and the dApp powering MUSD on Mezo.
Developer documentation can be found in the docs directory. Particularly, the README, which contains a system overview and breakdown of the main contracts.
This project uses pnpm as a package manager (installation documentation).
To install dependencies run:
pnpm install --frozen-lockfile
cd solidity
pnpm install --frozen-lockfileTo run tests:
cd solidity
pnpm test$ cd solidity$ cp .env.example .envand fill in the values.$ pnpm run deploy --network matsnetto deploy the contracts. This will resolve and use the current deployment atdeployments/matsnet, so if you want to deploy a fresh set of contracts, delete (or archive) thedeployments/matsnetdirectory.
Setup pre-commit hooks to automatically discover code issues before submitting the code.
- Install
pre-committool:brew install pre-commit
- Install the pre-commit hooks in the current repository:
pre-commit install
To test configuration or debug problems hooks can be invoked manually:
# Execute hooks for all files:
pre-commit run --all-files
# Execute hooks for specific files:
pre-commit run --files <path-to-file>