{"id":15408740,"url":"https://github.com/darthbenro008/coracle","last_synced_at":"2025-04-19T01:27:29.105Z","repository":{"id":110538117,"uuid":"489810711","full_name":"DarthBenro008/coracle","owner":"DarthBenro008","description":"Decentralised Oracle for BSC (Binance Smart Chain)","archived":false,"fork":false,"pushed_at":"2023-11-22T15:31:19.000Z","size":2031,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T19:56:47.407Z","etag":null,"topics":["binance","oracle"],"latest_commit_sha":null,"homepage":"","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/DarthBenro008.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-08T00:29:33.000Z","updated_at":"2023-08-24T21:44:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"d5ad3acc-9b93-4df3-a196-3071e6065497","html_url":"https://github.com/DarthBenro008/coracle","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.1428571428571429,"last_synced_commit":"cb6d4be097e8debbb6dc3fa2bef2d083c7c0270d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarthBenro008%2Fcoracle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarthBenro008%2Fcoracle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarthBenro008%2Fcoracle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarthBenro008%2Fcoracle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DarthBenro008","download_url":"https://codeload.github.com/DarthBenro008/coracle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249584210,"owners_count":21294988,"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":["binance","oracle"],"created_at":"2024-10-01T16:35:00.358Z","updated_at":"2025-04-19T01:27:29.072Z","avatar_url":"https://github.com/DarthBenro008.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coracle\n\n\u003e A secure and decentralized boat from off-chain to on-chain\n\n![Coracle Cover](./assets/coracle_cover.png)\n\nCoracle is a transparent price oracle on BSC(Binance Smart Chain). Coracle provides a trustless and decentralized alternative to Oracle. It provides the infrastructure for decentralized applications to query off-chain data by properly incentivizing miners to provide data in a unique way that benefits the blockchain and the miners.\n\n## How it works\n\nEthereum smart contracts cannot access off-chain data. If your smart contract relies on off-chain (like internet) data to evaluate or execute a function, you either have to manually feed the data to your contract, incentivize users to do it, or rely on a centralized party to provide the data.\n\n![how it works](./assets/howitworks.png)\n\nThe Coracle (or Cola Oracle) is a decentralized oracle. It enables contracts to interact with and obtain off-chain data securely.\n\nCoracle implements a reward mechanism where miners get rewarded using a time-based rewarding mechanism with reputation. When a miner provides the system with correct data, the reputation of the miner is increased, and over the quarter, this reputation is built. Once the quarter finishes, the reward(collected through the tips) is distributed amongst the miners in form of cryptocurrency tokens called Cola.\n\nIn short, the miner who has contributed for the longest with the correct values gets a higher share of tokens in reward every quarter.\n\nSince data integrity is the priority, miners have to stay long enough and provide correct data to gain significant incentives, unlike an oracle where anyone can become a miner.\n\n## Flow\n\n![flowchart](./assets/flowchart.png)\n\n## Tech Stack\n\n![tech stack](./assets/techstack.png)\n\n## Installation\n\n1. Clone this repo using `git clone https://github.com/DarthBenro008/coracle`\n2. Make sure you have truffle and ganache installed\n3. Run the following commands to deploy the smart contract\n    ```bash\n    truffle compile\n    truffle migrate\n    truffle test\n    ```\n4. Go to scripts directory\n5. Run multiple instances of the `miner.js` file\n6. Run the `consumer.js` file\n7. You can mint the token by running the `owner.js` file\n8. Ensure that you change the smart contract address in both the `miner.js` as well as the `owner.js` files!\n\n## Screenshot\n\n![screenshot](./assets/screenshot.png)\n\n## Show your support\n\nGive a ⭐ if you liked this project!\n\nSpread the word to your fellows to help grow a healthy environment for us!\n\n## License\n\nLicensed under MIT License : https://opensource.org/licenses/MIT\n\n\u003cp align=\"center\"\u003eMade with ❤ by Team Alpha\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarthbenro008%2Fcoracle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarthbenro008%2Fcoracle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarthbenro008%2Fcoracle/lists"}