Code Monkey home page Code Monkey logo

airswap-protocols's Introduction



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.

Discord License lerna CircleCI Twitter Follow

Resources

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 npm Atomic Swap Between Tokens
@airswap/indexer npm Counterparty Discovery with Staking
@airswap/delegate npm Onchain Trading Delegate
@airswap/types npm Types and Hashes
@airswap/transfers npm Token Transfer Handlers
@airswap/wrapper npm Use ether for WETH trades
@airswap/tokens npm Ethereum Tokens

JavaScript Libraries

Package Version Description
@airswap/order-utils npm Create and Sign Orders
@airswap/test-utils npm 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.

Deployments

To deploy, please follow this guide

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.