Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mento-protocol/mento-core
Core smart contracts of the Mento protocol.
https://github.com/mento-protocol/mento-core
Last synced: 3 months ago
JSON representation
Core smart contracts of the Mento protocol.
- Host: GitHub
- URL: https://github.com/mento-protocol/mento-core
- Owner: mento-protocol
- License: gpl-3.0
- Created: 2022-08-18T16:23:28.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2024-04-12T14:13:41.000Z (10 months ago)
- Last Synced: 2024-04-14T11:16:46.818Z (9 months ago)
- Language: Solidity
- Homepage: https://mento.org
- Size: 2.17 MB
- Stars: 13
- Watchers: 8
- Forks: 8
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
![Seaport](img/Mento-banner.png)
[![Foundry][foundry-badge]][foundry]
[![Mento Core CI][ci-badge]][ci-link]# Mento Core
This repo contains the source code of the core smart contracts for the Mento protocol. The repository is built with foundry which is used for the compilation and testing of the smart contracts.
## What is Mento?
The Mento protocol is a smart contract platform built on the Celo blockchain that enables the creation of stable value digital assets. Stable assets created with Mento can be classified as 'Hybrid stable assets' as they are algorithmic, transparent and backed by a over-collateralized, diversified portfolio of exogenous crypto assets([Mento Reserve](https://reserve.mento.org/)).
## Documentation
- [Protocol Documentation](https://docs.mento.org/mento/mento-protocol/readme)
- [Stability Whitepaper](https://celo.org/papers/stability)## Getting Started
```bash
# Get the latest code
git clone [email protected]:mento-protocol/mento-core.git# Change directory to the the newly cloned repo
cd mento-core# Install dev dependencies with yarn
yarn# Install submodule dependencies with forge
forge install# Compile the smart contracts with forge
forge build# Run all tests with forge
forge test
```#### Slither
Install slither, if not installed.
```bash
pip3 install slither-analyzer
```Running slither locally requires you to build only a subset of packages:
```bash
forge clean
forge build --build-info --skip tests
slither . --foundry-ignore-compile
```If you want to ignore a slither warning run:
```bash
slither . --foundry-ignore-compile --triage-mode
```For triage mode, in which you can choose to ignore warnings which are added to `slither.db.json`.
[ci-link]: https://github.com/mento-protocol/mento-core/actions/workflows/ci.yml
[ci-badge]: https://github.com/mento-protocol/mento-core/actions/workflows/ci.yml/badge.svg
[foundry]: https://getfoundry.sh/
[foundry-badge]: https://img.shields.io/badge/Built%20with-Foundry-FFDB1C.svg