Socket
Book a DemoInstallSign in
Socket

@swoop-exchange/core

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swoop-exchange/core

🎛 Core contracts for the UniswapV2 protocol

1.1.0
latest
Source
npmnpm
Version published
Weekly downloads
90
-41.94%
Maintainers
4
Weekly downloads
 
Created
Source

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

Keywords

swoop

FAQs

Package last updated on 29 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.