2.2.1 • Published 5 years ago
@kyber.network/utils-sc v2.2.1
Introduction
This repository contains Kyber utils smart contracts.\ For more details, please visit our developer portal
Package Manager
We use yarn as the package manager. You may use npm and npx instead, but commands in bash scripts may have to be changed accordingly.
Setup
- Clone this repo
yarn
Compilation
yarn compile to compile contracts.
Testing
- If contracts have not been compiled, run
yarn compile. This step can be skipped subsequently. - Run full regression
yarn test - Use
./test.sh -ffor running a specific test file.
Example Commands
yarn test(Runs all tests)yarn hardhat test --no-compile ./test/utils.js(Test only utils.js) or./test.sh -f ./test/utils.js(Test only utils.js)
Running coverage
yarn coverage(Runs coverage for all applicable files)