{"id":15290522,"url":"https://github.com/interep-project/contracts","last_synced_at":"2025-04-13T09:32:59.636Z","repository":{"id":40564333,"uuid":"373864315","full_name":"interep-project/contracts","owner":"interep-project","description":"🧾 InterRep Solidity smart contracts.","archived":false,"fork":false,"pushed_at":"2023-02-27T10:37:10.000Z","size":6719,"stargazers_count":30,"open_issues_count":0,"forks_count":12,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-27T01:35:55.044Z","etag":null,"topics":["erc721","ethereum","hardhat","nft","smart-contracts","solidity"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/interep-project.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":"2021-06-04T14:17:20.000Z","updated_at":"2023-10-03T15:29:39.000Z","dependencies_parsed_at":"2022-08-09T23:20:55.226Z","dependency_job_id":null,"html_url":"https://github.com/interep-project/contracts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"PaulRBerg/hardhat-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interep-project%2Fcontracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interep-project%2Fcontracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interep-project%2Fcontracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interep-project%2Fcontracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interep-project","download_url":"https://codeload.github.com/interep-project/contracts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505863,"owners_count":21115354,"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":["erc721","ethereum","hardhat","nft","smart-contracts","solidity"],"created_at":"2024-09-30T16:08:30.559Z","updated_at":"2025-04-13T09:32:59.141Z","avatar_url":"https://github.com/interep-project.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ch1 align=\"center\"\u003e\n        Interep contracts\n    \u003c/h1\u003e\n    \u003cp align=\"center\"\u003eInterep Solidity smart contracts.\u003c/p\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/interep-project\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/project-Interep-blue.svg?style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/interep-project/contracts/blob/main/LICENSE\"\u003e\n        \u003cimg alt=\"Github license\" src=\"https://img.shields.io/github/license/interep-project/contracts.svg?style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/interep-project/contracts/actions?query=workflow%3Atest\"\u003e\n        \u003cimg alt=\"GitHub Workflow test\" src=\"https://img.shields.io/github/workflow/status/interep-project/contracts/test?label=test\u0026style=flat-square\u0026logo=github\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://coveralls.io/github/interep-project/contracts\"\u003e\n        \u003cimg alt=\"Coveralls\" src=\"https://img.shields.io/coveralls/github/interep-project/contracts?style=flat-square\u0026logo=coveralls\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://eslint.org/\" target=\"_blank\"\u003e\n        \u003cimg alt=\"Linter eslint\" src=\"https://img.shields.io/badge/linter-eslint-8080f2?style=flat-square\u0026logo=eslint\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://prettier.io/\" target=\"_blank\"\u003e\n        \u003cimg alt=\"Code style prettier\" src=\"https://img.shields.io/badge/code%20style-prettier-f8bc45?style=flat-square\u0026logo=prettier\"\u003e\n    \u003c/a\u003e\n    \u003cimg alt=\"Repository top language\" src=\"https://img.shields.io/github/languages/top/interep-project/contracts?style=flat-square\"\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003ch4\u003e\n        \u003ca href=\"https://docs.interep.link/contributing\"\u003e\n            👥 Contributing\n        \u003c/a\u003e\n        \u003cspan\u003e\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n        \u003ca href=\"https://docs.interep.link/code-of-conduct\"\u003e\n            🤝 Code of conduct\n        \u003c/a\u003e\n        \u003cspan\u003e\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n        \u003ca href=\"https://appliedzkp.org/discord\"\u003e\n            🗣️ Chat \u0026amp; Support\n        \u003c/a\u003e\n    \u003c/h4\u003e\n\u003c/div\u003e\n\n---\n\nPlease, visit our [web app](https://kovan.interep.link) or our [documentation website](https://docs.interep.link) for more details.\n\n### Deployed contracts\n\n|         | Kovan                                                                                          | Goerli                                                      | Arbitrum One |\n| ------- | ---------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | ------------ |\n| Interep | [0xF58D...53De](https://kovan.etherscan.io/address/0xF58D3b710cDD337df432e20a806Ad04f6CfE53De) | [0x9f44...eafb](https://goerli.etherscan.io/address/0x9f44be9F69aF1e049dCeCDb2d9296f36C49Ceafb) |              |\n\n---\n\n## Install\n\nClone this repository and install the dependencies:\n\n```bash\ngit clone https://github.com/interep-project/contracts.git\ncd contracts\nyarn # or `npm i`\n```\n\n## Usage\n\nCopy the `.env.example` file and rename it `.env`.\n\n### Compile\n\nCompile the smart contracts with Hardhat:\n\n```bash\nyarn compile\n```\n\n### Lint\n\nLint the Solidity or the TypeScript code:\n\n```bash\nyarn lint:sol\nyarn lint:ts\n# or yarn lint to lint both.\n```\n\nAnd check if the code is well formatted:\n\n```bash\nyarn prettier\n```\n\n### Test\n\nRun the Mocha tests:\n\n```bash\nyarn test\n```\n\n### Coverage\n\nGenerate the code coverage report:\n\n```bash\nyarn test:coverage\n```\n\n### Report Gas\n\nSee the gas usage per unit test and average gas per method call:\n\n```bash\nyarn test:report-gas\n```\n\n### Deploy\n\nDeploy a Semaphore verifier contract with depth = 20:\n\n```bash\nyarn deploy:verifier # The resulting address will have to be used in the next step.\n```\n\nDeploy the Interep contract with one Semaphore verifier:\n\n```bash\nyarn deploy:interep --verifiers '[{\"merkleTreeDepth\": 20, \"contractAddress\": \"0x06bcD633988c1CE7Bd134DbE2C12119b6f3E4bD1\"}]'\n```\n\nIf you want to deploy contracts in a specific network you can set up the `DEFAULT_NETWORK` variable in your `.env` file with the name of one of our supported networks (hardhat, localhost, goerli, kovan, arbitrum). Or you can specify it as option:\n\n```bash\nyarn deploy:interep --verifiers '[{\"merkleTreeDepth\": 20, \"contractAddress\": \"0x5FbDB2315678afecb367f032d93F642f64180aa3\"}]' --network kovan\nyarn deploy:interep --verifiers '[{\"merkleTreeDepth\": 20, \"contractAddress\": \"0x06bcD633988c1CE7Bd134DbE2C12119b6f3E4bD1\"}]' --network localhost\n```\n\nIf you want to deploy the contracts on Goerli, Kovan or Arbitrum remember to provide a valid private key and an Infura API in your `.env` file.\n\n### Preparing a local network\n\nRun a Hardhat Network in a stand-alone fashion:\n\n```bash\nyarn start\n```\n\nDeploy Semaphore verifier and Interep contract:\n\n```bash\nyarn deploy --network localhost\n```\n\nYou can omit `--network localhost` if your `DEFAULT_NETWORK` env variable is equal to `localhost`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterep-project%2Fcontracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterep-project%2Fcontracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterep-project%2Fcontracts/lists"}