5.0.1 • Published 4 years ago

wjm-airswap-swap v5.0.1

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
4 years ago

Swap

AirSwap is a peer-to-peer trading network for Ethereum tokens. This package contains source code and tests for the atomic Swap used to perform trustless token transfers between parties.

Discord License CircleCI Twitter Follow

Resources

For V1 Users

To migrate from the V1 to V2 protocol see MIGRATION.md.

Deploys

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

Commands

CommandDescription
yarnInstall dependencies
yarn cleanDelete the contract build folder
yarn compileCompile all contracts to build folder
yarn coverageRun solidity-coverage to report test coverage
yarn ganacheRun an instance of ganache-cli for tests
yarn hintRun a syntax linter for all Solidity code
yarn lintRun a syntax linter for all JavaScript code
yarn testRun 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