Skip to content

Repository files navigation

MUSD

Smart contracts and the dApp powering MUSD on Mezo.

Development

Developer documentation can be found in the docs directory. Particularly, the README, which contains a system overview and breakdown of the main contracts.

Installation

This project uses pnpm as a package manager (installation documentation).

To install dependencies run:

pnpm install --frozen-lockfile
cd solidity
pnpm install --frozen-lockfile

Running Tests

To run tests:

cd solidity
pnpm test

Deployment

  1. $ cd solidity
  2. $ cp .env.example .env and fill in the values.
  3. $ pnpm run deploy --network matsnet to deploy the contracts. This will resolve and use the current deployment at deployments/matsnet, so if you want to deploy a fresh set of contracts, delete (or archive) the deployments/matsnet directory.

Pre-commit hooks

Setup pre-commit hooks to automatically discover code issues before submitting the code.

  1. Install pre-commit tool:
    brew install pre-commit
  2. Install the pre-commit hooks in the current repository:
    pre-commit install

Testing pre-commit hooks

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>

About

Smart contracts and the dapp for MUSD

Resources

Stars

16 stars

Watchers

12 watching

Forks

Releases

Packages

Used by

Contributors

Languages