Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mempirate/cairo-amm

Cairo simple AMM implementation with Nile
https://github.com/mempirate/cairo-amm

cairo ethereum nile starknet

Last synced: about 1 month ago
JSON representation

Cairo simple AMM implementation with Nile

Awesome Lists containing this project

README

        

# Starknet AMM with Nile

A simple AMM written in Cairo for StarkNet, using the Nile development framework.

## Getting started
Create and activate a new virtual env:
```
python3 -m venv env
source env/bin/activate
```
Install Nile and dependencies:
```
pip install cairo-nile
nile init
```
Compile the `pool.cairo` contract:
```
nile compile contracts/pool.cairo
```
Run the tests with pytest:
```
pytest -s
```