Skip to content

kevinjacob2001/airswap-protocols

 
 

Repository files navigation

AirSwap is a peer-to-peer trading network for Ethereum tokens, initially built on the Swap Protocol. This repository contains smart contracts and JavaScript packages for use by developers and traders on the AirSwap network.

Discord License lerna Twitter Follow

Resources

Smart Contracts

Package Version Description
@airswap/swap npm Atomic Token Swap
@airswap/registry npm Counterparty Discovery
@airswap/staking npm Staking for Members
@airswap/pool npm Rewards Pool for Members

JavaScript Libraries

Package Version Description
@airswap/libraries npm Protocol Client Libraries
@airswap/utils npm Orders and Signatures
@airswap/metadata npm Token Metadata
@airswap/constants npm Helpful Constants
@airswap/typescript npm TypeScript Types
@airswap/merkle npm Merkle Tree Helpers

Repository Commands

Command Description
yarn compile Compile all contracts to build folders.
yarn clean Delete all contract build folders.
yarn test Run all contract tests in test folders.
yarn hint Run a syntax linter for all Solidity code.
yarn lint Run a syntax linter for all JavaScript code.

Deploying Contracts

Each package in source has commands yarn deploy and yarn verify. Each command takes a --network flag. For example:

yarn deploy --network goerli
yarn verify --network goerli

The account used to deploy and verify is derived from the MNEMONIC environment variable in .env in the repository root. The source of these scripts can be found in the scripts folder of each package.

About

AirSwap Contracts and Tools

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 47.4%
  • TypeScript 30.6%
  • Solidity 21.9%
  • Shell 0.1%