Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/curvefi/curve-contract-polygon
Curve.fi exchange implementation for Polygon.
https://github.com/curvefi/curve-contract-polygon
Last synced: about 1 month ago
JSON representation
Curve.fi exchange implementation for Polygon.
- Host: GitHub
- URL: https://github.com/curvefi/curve-contract-polygon
- Owner: curvefi
- License: other
- Created: 2021-04-18T12:31:14.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-31T08:17:40.000Z (almost 2 years ago)
- Last Synced: 2024-04-16T07:19:45.755Z (8 months ago)
- Language: Python
- Size: 184 KB
- Stars: 47
- Watchers: 8
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# curve-contract-polygon
Curve.fi exchange implementation for Polygon.## Testing and Development
### Dependencies
* [python3](https://www.python.org/downloads/release/python-368/) from version 3.6 to 3.8, python3-dev
* [brownie](https://github.com/iamdefinitelyahuman/brownie) - tested with version [1.14.5](https://github.com/eth-brownie/brownie/releases/tag/v1.14.5)
* [ganache-cli](https://github.com/trufflesuite/ganache-cli) - tested with version [6.12.1](https://github.com/trufflesuite/ganache-cli/releases/tag/v6.12.1)## Setup
1. To get started, first create and initialize a Python [virtual environment](https://docs.python.org/3/library/venv.html).
2. clone the repo and install the developer dependencies:
```bash
git clone https://github.com/curvefi/curve-contract-polygon.git
cd curve-contract-polygon
pip install -r requirements.txt
```3. Add Polygon to your local brownie networks:
```bash
brownie networks import network-config.yaml
```### Running the Tests
Testing is done against a forked mainnet. To run the entire suite:
```bash
brownie test
```To run tests on a specific pool:
```bash
brownie test --pool
```Valid pool names are the names of the subdirectories within [`contracts/pools`](contracts/pools).
You can optionally include the `--coverage` flag to view a coverage report upon completion of the tests.
## License
(c) Curve.Fi, 2021 - [All rights reserved](LICENSE).