Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kybernetwork/katalyst_dao_sc


https://github.com/kybernetwork/katalyst_dao_sc

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

## Introduction
[![built-with openzeppelin](https://img.shields.io/badge/built%20with-OpenZeppelin-3677FF)](https://docs.openzeppelin.com/)
[![Build Status](https://api.travis-ci.com/KyberNetwork/kyber_dao_sc.svg?branch=master&status=passed)](https://travis-ci.com/github/KyberNetwork/kyber_dao_sc)

This repository contains the KyberDao smart contracts.
For more details, please visit the KyberDao section of our [developer portal](https://developer.kyber.network/docs/API_ABI-KyberDao/)

## 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
1. Clone this repo
2. `yarn install`

## Compilation
`yarn compile` to compile contracts for all solidity versions.

## Contract Deployment / Interactions

For interactions or contract deployments on public testnets / mainnet, create a `.env` file specifying your private key and infura api key, with the following format:

```
PRIVATE_KEY=0x****************************************************************
INFURA_API_KEY=********************************
```

## Testing with Hardhat
1. If contracts have not been compiled, run `yarn compile`. This step can be skipped subsequently.
2. Run `yarn test`
3. Use `./tst.sh -f` for running a specific test file.

### Example Commands
- `yarn test` (Runs all tests)
- `./tst.sh -f ./test/kyberDao.js` (Test only kyberDao.js)

### Example
`yarn hardhat test --no-compile ./test/kyberDao.js`

## Coverage
`yarn coverage` (Runs coverage for all applicable files)