Introduction
This repository contains kyber network smart contracts. For more details, please visit our developer portal
Setup
- Clone this repo
npm ci
Compilation with Buidler
./compilation.sh
Testing full contract suite with Buidler
- If contracts have not been compiled, run
./compilation.sh
. This step can be skipped subsequently. - Run
./tst.sh
- Use
-f
for running a specific test file. - Use
-k
to specify a specific hardfork version. Runs on Petersburg by default.
Example Commands
./tst.sh -f "./test/kyberReserve.js"
./tst.sh -f "./test/kyberNetworkProxy.js" -k "istanbul"
Example
npx buidler test --no-compile ./test/kyberNetwork.js