Swoop is a fork of Uniswap V2 for Harmony's #Hack9 hackathon.
This repository contains the smart contracts for the project.
./scripts/install.sh
./scripts/build.sh
yarn test
Usage:
./scripts/deploy.sh --network NETWORK
Example:
./scripts/deploy.sh --network testnet
Truffle requires NodeJS v12, otherwise it seems to break. The current deployment using Truffle is also currently not working properly - the hmy deployment method is preferable and is also the default deployment method.
Usage:
./scripts/deploy.sh --method truffle --network NETWORK
Example:
./scripts/deploy.sh --method truffle --network testnet
You can also use --reset
and --skip-dry-run
to reset any eventual migration from scratch as well as skipping dry runs.
Example:
./scripts/deploy.sh --method truffle --network testnet --reset --skip-dry-run
./scripts/abi.sh
In-depth documentation on Uniswap V2 is available at uniswap.org.
The built contract artifacts can be browsed via unpkg.com.
The following assumes the use of node@>=10
.
yarn
yarn compile
yarn test