Wraps and unwraps ether for WETH trades on the AirSwap Network

Usage no npm install needed!

<script type="module">
  import airswapWrapper from 'https://cdn.skypack.dev/@airswap/wrapper';



AirSwap is a peer-to-peer trading network for Ethereum tokens. This package contains an example contract that wraps and unwraps ether for WETH trades in the Swap Protocol. The Wrapper contract is designed to work primarily with AirSwap Instant application [https://instant.airswap.io/tokens]. It allows consumers to send ether and receive ether while the Swap protocol handles ERC20 and ERC721 token transfers.

Discord License CircleCI Twitter Follow



See deploys.json for latest contract deployments on Rinkeby (4) and Mainnet (1).


Command Description
yarn Install dependencies
yarn clean Delete the contract build folder
yarn compile Compile all contracts to build folder
yarn coverage Run solidity-coverage to report test coverage
yarn ganache Run an instance of ganache-cli for tests
yarn hint Run a syntax linter for all Solidity code
yarn lint Run a syntax linter for all JavaScript code
yarn test Run all contract tests in test folder

Running Tests

:bulb: Prior to testing locally, run yarn compile in the airswap-protocols project root to build required artifacts. Then run an instance of ganache-cli before running yarn test in another shell.

yarn ganache