0.1.0 • Published 5 years ago

@airswap/peer-factory v0.1.0

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

PeerFactory

:warning: This package is under active development. Do not use in production.

AirSwap is a peer-to-peer trading network for Ethereum tokens. This package contains source code and tests for a basic PeerFactory contract that deploys Peer contracts.

:bulb: Note: solidity-coverage does not cooperate with view functions. To run test coverage, remove the view keywords from functions in PeerFactory.sol.

Discord License CircleCI Twitter Follow

Resources

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

Run an instance of ganache-cli before running tests.

yarn ganache