프로젝트
GitHub에서 보기 Coverage with
KyberNetwork/smart-contracts
소개
Kyber Network의 핵심 스마트 계약으로, 메인 플랫폼 계약과 리저브 계약 등이 포함됩니다.
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalIntroduction
This repository contains kyber network smart contracts. For more details, please visit our developer portal
API
Public facing interfaces for kyber network (folder: contracts/sol6):
- IKyberNetworkProxy.sol - Get rate and trade APIs. Hint handler address.
- ISimpleKyberProxy.sol - Simple trade functions.
- IKyberHintHandler.sol - Build hints for advanced trade functionality.
- IKyberDao - Interact with KyberDao.
- Dao/IKyberStaking - interact with KyberStaking.
Setup
- Clone this repo
npm ci
Compilation with Buidler
./cmp.shto compile contracts for all solidity versions../cmpSol6.shto compile only sol6 contracts
Testing with Buidler
- If contracts have not been compiled, run
./cmp.sh. This step can be skipped subsequently. - Run
./tst.sh - Use
-ffor running a specific test file. - Use
-ato run tests for all solidity versions. Runs only sol6 tests by default.
Example Commands
./tst.sh (Run only sol6 tests)
./tst.sh -f ./test/sol4/kyberReserve.js (Test only kyberReserve.js)
./tst.sh -a (Run sol4, sol5, sol6 tests)
Example
npx buidler test --no-compile ./test/sol6/kyberNetwork.js
Coverage with buidler-coverage
- Run
./coverage.sh - Use
-ffor running a specific test file.
Example Commands
./coverage.sh -f ./test/sol6/kyberNetwork.js (Coverage for only kyberNetwork.js)
관련 프로젝트 살펴보기
불러오는 중…