0.0.2 • Published 5 years ago
@airswap/debugger v0.0.2
AirSwap is a peer-to-peer trading network for Ethereum tokens, initially built on the Swap Protocol. The AirSwap product family includes DexIndex, AirSwap Instant, AirSwap Trader, and AirSwap Spaces. This repository contains smart contracts and JavaScript packages for use by developers and traders on the AirSwap network.
Resources
- Docs → https://docs.airswap.io/
- Website → https://www.airswap.io/
- Blog → https://blog.airswap.io/
- Support → https://support.airswap.io/
Smart Contracts
Packages are versioned based on deploys. Major versions e.g. 1.x.x
are mainnet deploys, while minor versions e.g. x.1.x
are rinkeby deploys. Packages that are not deployed increment patch versions e.g. x.x.1
. Each package that includes a deployment includes the ABI files for that deployed contract in builds/contracts
within the package.
Package | Version | Description |
---|---|---|
@airswap/swap | Atomic Swap Between Tokens | |
@airswap/indexer | Counterparty Discovery with Staking | |
@airswap/delegate | Onchain Trading Delegate | |
@airswap/types | Types and Hashes | |
@airswap/transfers | Token Transfer Handlers | |
@airswap/wrapper | Use ether for WETH trades | |
@airswap/tokens | Ethereum Tokens |
JavaScript Libraries
Package | Version | Description |
---|---|---|
@airswap/order-utils | Create and Sign Orders | |
@airswap/test-utils | Test Utilities |
Commands
Command | Description |
---|---|
yarn compile | Compile all contracts to build folders |
yarn clean | Delete all contract build folders |
yarn ganache | Run a local ganache network on local host 8545 |
yarn test | Run all contract tests in test folders. Run yarn ganache elsewhere first. |
yarn hint | Run a syntax linter for all Solidity code |
yarn lint | Run a syntax linter for all JavaScript code |
yarn deps | Run a dependency consistency check. Run python3 -m venv ./venv first. |
Deployments
To deploy, please follow this guide