AirSwap is a peer-to-peer trading network for Ethereum tokens. This package contains source code and tests for a basic
Delegate contract that can be deployed with trading rules.
solidity-coverage does not cooperate with
view functions. To run test coverage, remove the
view keywords from functions in
IDelegate.sol. Make sure if you have modified other repos for running
solidity-coverage i.e. indexer (
ILocatorWhitelist.sol), revert those changes and only remove the
view keywords from the repo being tested.
- Docs → https://docs.airswap.io/
- Website → https://www.airswap.io/
- Blog → https://blog.airswap.io/
- Support → https://support.airswap.io/
||Delete the contract
||Compile all contracts to
||Run solidity-coverage to report test coverage|
||Run an instance of
||Run a syntax linter for all Solidity code|
||Run all contract tests in
💡 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.