Clone of Uniswap V2 to Cairo. AMM for StarkNet.
We use Protostar for our testing and development purposes. Protostar is a StarkNet smart contract development toolchain, which helps you with dependencies management, compiling and testing cairo contracts.
- Copy and run in a terminal the following command:
curl -L https://raw.githubusercontent.com/software-mansion/protostar/master/install.sh | bash
- Restart the terminal.
- Run
protostar -v
to check Protostar and cairo-lang version.
Protostar requires version 2.28 or greater of Git.
protostar install
protostar build
protostar test
python -m venv ./venv
source ./venv/bin/activate
pip install -r requirements.txt
Find more info about the installed dependencies here:
All scripts are placed in scripts
folder. testnet config is not committed, please create your own in scripts/config
To run scripts on local system, you first need to run a devnet server:
starknet-devnet
Run script by specifying the path to the script file. Example:
python scripts/deploy.py local