airswap-protocols
airswap-protocols copied to clipboard
AirSwap Contracts and Tools
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.
Resources
- About → https://about.airswap.io/
- Website → https://www.airswap.io/
- Twitter → https://twitter.com/airswap
- Chat → https://chat.airswap.io/
Smart Contracts
JavaScript Libraries
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.