{"id":21082718,"url":"https://github.com/renproject/darknode-sol","last_synced_at":"2025-05-16T09:32:02.785Z","repository":{"id":37664731,"uuid":"115962341","full_name":"renproject/darknode-sol","owner":"renproject","description":" An implementation of Darknode smart contracts, written in Solidity ","archived":false,"fork":false,"pushed_at":"2023-01-23T22:39:05.000Z","size":13593,"stargazers_count":86,"open_issues_count":31,"forks_count":28,"subscribers_count":19,"default_branch":"mainnet","last_synced_at":"2024-11-08T10:12:47.840Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://renproject.io","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/renproject.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}},"created_at":"2018-01-02T01:40:17.000Z","updated_at":"2024-08-05T16:26:28.000Z","dependencies_parsed_at":"2023-02-13T04:15:44.748Z","dependency_job_id":null,"html_url":"https://github.com/renproject/darknode-sol","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renproject%2Fdarknode-sol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renproject%2Fdarknode-sol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renproject%2Fdarknode-sol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renproject%2Fdarknode-sol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renproject","download_url":"https://codeload.github.com/renproject/darknode-sol/tar.gz/refs/heads/mainnet","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225419562,"owners_count":17471434,"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-19T20:15:08.138Z","updated_at":"2024-11-19T20:15:08.701Z","avatar_url":"https://github.com/renproject.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `⚖️ darknode-sol`\n\n## Ethereum smart contracts for managing darknodes\n\n[![CircleCI](https://circleci.com/gh/renproject/darknode-sol.svg?style=shield)](https://circleci.com/gh/renproject/darknode-sol)\n[![Coverage Status](https://coveralls.io/repos/github/renproject/darknode-sol/badge.svg?branch=master)](https://coveralls.io/github/renproject/darknode-sol?branch=master)\n\nRen has two repositories for its Solidity contract:\n\n-   `darknode-sol` (this repository) - contracts on Ethereum for managing darknode registrations.\n-   [`gateway-sol`](https://github.com/renproject/gateway-sol) - contracts on multiple EVM chains for minting and burning of ren-assets.\n\nRen bootstraps off Ethereum to handle the REN token and darknode registrations.\n\n## ~ [Documentation](https://renproject.github.io/ren-client-docs/contracts/) ~\n\n-   For the latest contract addresses, see the [contract addresses](https://renproject.github.io/ren-client-docs/contracts/deployments) page.\n-   For a summary of each contract, see the [summary of contracts](https://renproject.github.io/ren-client-docs/contracts/summary) page.\n\n\u003cdetails\u003e\n\n\u003csummary\u003eDevelopment notes\u003c/summary\u003e\n\n## Tests\n\nInstall the dependencies.\n\n```\nyarn install\n```\n\nRun the `ganache-cli` or an alternate Ethereum test RPC server on port 8545. The `-d` flag will use a deterministic mnemonic for reproducibility.\n\n```sh\nyarn ganache-cli -d\n```\n\nRun the Truffle test suite.\n\n```sh\nyarn run test\n```\n\n## Coverage\n\nRun the Truffle test suite with coverage.\n\n```sh\nyarn run coverage\n```\n\nOpen the coverage file.\n\n```sh\nopen ./coverage/index.html\n```\n\n## Deploying\n\nAdd a `.env`, filling in the mnemonic and Infura key:\n\n```sh\nMNEMONIC_KOVAN=\"...\"\nMNEMONIC_MAINNET=\"...\"\nINFURA_KEY=\"...\"\n```\n\nDeploy to Kovan:\n\n```sh\nNETWORK=kovan yarn run deploy\n```\n\nSee `1_darknodes.js` for additional instructions.\n\n## Verifying Contract Code\n\nAdd an Etherscan API key to your `.env`:\n\n```\nETHERSCAN_KEY=\"...\"\n```\n\nRun the following (replacing the network and contract name):\n\n```sh\nNETWORK=mainnet yarn run verify Contract1 Contract2\n```\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenproject%2Fdarknode-sol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenproject%2Fdarknode-sol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenproject%2Fdarknode-sol/lists"}