@merofinance/protocol
TypeScript icon, indicating that this package has built-in type declarations

1.4.1 • Public • Published

Mero Protocol

Health Checks

This is the official repository for the Mero protocol contracts.

In addition to the code, check out the official Mero documentation as well as the Mero developers documentation, and the list of deployed contracts.

The test suite repository is built with Pytest, which is used by Brownie.

The test suite relies on the following packages:

  • eth-brownie: Testing framework for solidity and vyper code written in Python using Pytest
  • brownie-token-tester: Custom mint logic for ERC20 tokens in mainnet-fork mode

Getting Started

To get started using this repository, install the requirements (presumably in a virtual enviroment):

pip install -r requirements.txt

To run the full test suite, run:

brownie test

For a more detailed overview of how the Mero protocol can be tested, please read the test suite documentation.

To compile all contracts, run:

brownie compile

For a detailed overview of how to use Brownie, please check out the official docs.

Repository Structure

All Mero contracts are located within the contracts directory.

The tests are located within the tests directory. The different liquidity pools that exist are specified in the tests directory here.

Environment Variables

The required environments variables that need to be set for running the test suite are listed here.

Note: The ETHERSCAN_TOKEN environment variable may need to be specified when running tests in mainnet-fork mode, as Etherscan is used to fetch the latest contract data and the API request limit may be reached.

Readme

Keywords

none

Package Sidebar

Install

npm i @merofinance/protocol

Weekly Downloads

1

Version

1.4.1

License

MIT

Unpacked Size

101 MB

Total Files

1197

Last publish

Collaborators

  • chase-manning
  • danhper