{"id":21347153,"url":"https://github.com/kybernetwork/smart-contracts","last_synced_at":"2025-04-05T02:02:52.034Z","repository":{"id":40730697,"uuid":"96011647","full_name":"KyberNetwork/smart-contracts","owner":"KyberNetwork","description":"Main smart contracts for Kyber Network, including the main platform contract, reserve contracts etc.","archived":false,"fork":false,"pushed_at":"2022-12-10T16:13:27.000Z","size":16459,"stargazers_count":378,"open_issues_count":47,"forks_count":341,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-03-29T01:02:16.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://kyber.network","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KyberNetwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":"audits/APRAudit/SmartDecAudit.pdf","citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-02T08:39:01.000Z","updated_at":"2025-03-11T14:45:31.000Z","dependencies_parsed_at":"2023-01-26T11:46:28.152Z","dependency_job_id":null,"html_url":"https://github.com/KyberNetwork/smart-contracts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Fsmart-contracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Fsmart-contracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Fsmart-contracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Fsmart-contracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KyberNetwork","download_url":"https://codeload.github.com/KyberNetwork/smart-contracts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276159,"owners_count":20912288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T02:12:52.264Z","updated_at":"2025-04-05T02:02:51.999Z","avatar_url":"https://github.com/KyberNetwork.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\nThis repository contains kyber network smart contracts.\nFor more details, please visit our [developer portal](https://developer.kyber.network/)\n\n## API\nPublic facing interfaces for kyber network (folder: contracts/sol6):\n1. IKyberNetworkProxy.sol - Get rate and trade APIs. Hint handler address.\n2. ISimpleKyberProxy.sol - Simple trade functions.\n3. IKyberHintHandler.sol - Build hints for advanced trade functionality.\n4. IKyberDao - Interact with KyberDao.\n5. Dao/IKyberStaking - interact with KyberStaking.\n\n## Setup\n1. Clone this repo\n2. `npm ci`\n\n## Compilation with Buidler\n1. `./cmp.sh` to compile contracts for all solidity versions.\n2. `./cmpSol6.sh` to compile only sol6 contracts\n\n## Testing with Buidler\n1. If contracts have not been compiled, run `./cmp.sh`. This step can be skipped subsequently.\n2. Run `./tst.sh`\n3. Use `-f` for running a specific test file.\n5. Use `-a` to run tests for all solidity versions. Runs only sol6 tests by default.\n\n### Example Commands\n`./tst.sh` (Run only sol6 tests)\n`./tst.sh -f ./test/sol4/kyberReserve.js` (Test only kyberReserve.js)\n`./tst.sh -a` (Run sol4, sol5, sol6 tests)\n\n### Example\n`npx buidler test --no-compile ./test/sol6/kyberNetwork.js`\n\n## Coverage with `buidler-coverage`\n1. Run `./coverage.sh`\n2. Use `-f` for running a specific test file.\n\n### Example Commands\n`./coverage.sh -f ./test/sol6/kyberNetwork.js` (Coverage for only kyberNetwork.js)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkybernetwork%2Fsmart-contracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkybernetwork%2Fsmart-contracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkybernetwork%2Fsmart-contracts/lists"}