Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

@airswap/delegate

2.6.9 • Public • Published

Delegate

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.

💡 Note: solidity-coverage does not cooperate with view functions. To run test coverage, remove the view keywords from functions in Delegate.sol and IDelegate.sol. Make sure if you have modified other repos for running solidity-coverage i.e. indexer (Indexer.sol, IIndexer.sol, or ILocatorWhitelist.sol), revert those changes and only remove the view keywords from the repo being tested.

Discord License CircleCI Twitter Follow

Resources

Deploys

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

Commands

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

💡 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

Keywords

none

Install

npm i @airswap/delegate

DownloadsWeekly Downloads

14

Version

2.6.9

License

Apache-2.0

Unpacked Size

8.98 MB

Total Files

43

Last publish

Collaborators

  • avatar