matthieu-beteille / smart-contracts

Main smart contracts for Kyber Network, including the main platform contract, reserve contracts etc.

Home Page:https://kyber.network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

This repository contains kyber network smart contracts. For more details, please visit our developer portal

Setup

  1. Clone this repo
  2. npm ci

Compilation with Buidler

./compilation.sh

Testing full contract suite with Buidler

  1. If contracts have not been compiled, run ./compilation.sh. This step can be skipped subsequently.
  2. Run ./tst.sh
  3. Use -f for running a specific test file.
  4. 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

About

Main smart contracts for Kyber Network, including the main platform contract, reserve contracts etc.

https://kyber.network

License:MIT License


Languages

Language:JavaScript 83.4%Language:Solidity 16.2%Language:Python 0.4%Language:Shell 0.0%Language:Dockerfile 0.0%