Skip to content

harmony-one/swoop-core

 
 

Repository files navigation

Swoop - a fork of Uniswap V2 for Harmony

Swoop is a fork of Uniswap V2 for Harmony's #Hack9 hackathon.

This repository contains the smart contracts for the project.

Local Development

Install Dependencies

./scripts/install.sh

Build/Compile Contracts

./scripts/build.sh

Run Tests

yarn test

Deploy contracts

Using hmy:

Usage: ./scripts/deploy.sh --network NETWORK

Example: ./scripts/deploy.sh --network testnet

Using truffle:

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

Extract ABI

./scripts/abi.sh


Uniswap V2

Actions Status Version

In-depth documentation on Uniswap V2 is available at uniswap.org.

The built contract artifacts can be browsed via unpkg.com.

Local Development

The following assumes the use of node@>=10.

Install Dependencies

yarn

Compile Contracts

yarn compile

Run Tests

yarn test

About

🎛 Core smart contracts of Uniswap V2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 49.8%
  • Solidity 37.7%
  • JavaScript 8.2%
  • Shell 4.3%