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-lockfile
To run tests:
cd solidity
pnpm test
$ cd solidity
$ cp .env.example .env
and fill in the values.$ pnpm run deploy --network matsnet
to 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/matsnet
directory.
Setup pre-commit hooks to automatically discover code issues before submitting the code.
- Install
pre-commit
tool: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>