2.3.1 • Published 3 years ago

@airswap/validator v2.3.1

Weekly downloads
19
License
MIT
Repository
github
Last release
3 years ago

Validator

AirSwap is a peer-to-peer trading network for Ethereum tokens.

Discord License Twitter Follow

Resources

Usage

:warning: This package is under active development and contains unaudited code. For all AirSwap contract deployments see Deployed Contracts.

Env Vars

Hardhat expects the following environment variables to be set. They may be set in a .env file.

VariableDescription
MNEMONIC12-world account mnemonic used for testing
INFURA_API_KEYInfura API key to use for deployments
ETHERSCAN_API_KEYEtherscan API key to use for verification

Commands

CommandDescription
yarnInstall dependencies
yarn cleanDelete the contract build folder
yarn compileCompile all contracts to build folder
yarn testRun all tests in test folder
yarn test:unitRun unit tests in test folder
yarn coverageReport test coverage
yarn deploy:rinkebyDeploy contracts to Rinkeby
yarn deploy:mainnetDeploy contracts to Mainnet

Running Tests

:bulb: Prior to testing locally, run yarn compile in the project root to build required artifacts.