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.
- About → https://about.airswap.io/
- Website → https://www.airswap.io/
- Twitter → https://twitter.com/airswap
- Chat → https://chat.airswap.io/
Package | Version | Description |
---|---|---|
@airswap/swap |
Atomic Token Swap | |
@airswap/registry |
Counterparty Discovery | |
@airswap/staking |
Staking for Members | |
@airswap/pool |
Rewards Pool for Members |
Package | Version | Description |
---|---|---|
@airswap/libraries |
Protocol Client Libraries | |
@airswap/utils |
Orders and Signatures | |
@airswap/metadata |
Token Metadata | |
@airswap/constants |
Helpful Constants | |
@airswap/typescript |
TypeScript Types | |
@airswap/merkle |
Merkle Tree Helpers |
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. |
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.