{"id":22301827,"url":"https://github.com/dev-protocol/protocol","last_synced_at":"2025-04-05T10:07:23.147Z","repository":{"id":37602631,"uuid":"183364808","full_name":"dev-protocol/protocol","owner":"dev-protocol","description":"⛓ Dev Protocol is an open source middleware for creator's sustainability.","archived":false,"fork":false,"pushed_at":"2025-02-04T02:53:59.000Z","size":9260,"stargazers_count":68,"open_issues_count":32,"forks_count":9,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-29T09:08:23.771Z","etag":null,"topics":["ethereum","protocol","smart-contracts","solidity"],"latest_commit_sha":null,"homepage":"https://devprtcl.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-protocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2019-04-25T05:49:03.000Z","updated_at":"2024-09-30T19:19:32.000Z","dependencies_parsed_at":"2023-02-18T06:16:09.537Z","dependency_job_id":"9579ace2-41aa-4d6a-a070-5ef8f3c5b708","html_url":"https://github.com/dev-protocol/protocol","commit_stats":{"total_commits":2288,"total_committers":15,"mean_commits":"152.53333333333333","dds":0.7229020979020979,"last_synced_commit":"02f2a392678b89d731ad048f56dd9dfcdcefaf70"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-protocol%2Fprotocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-protocol%2Fprotocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-protocol%2Fprotocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-protocol%2Fprotocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-protocol","download_url":"https://codeload.github.com/dev-protocol/protocol/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246591768,"owners_count":20801986,"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":["ethereum","protocol","smart-contracts","solidity"],"created_at":"2024-12-03T18:31:44.490Z","updated_at":"2025-04-05T10:07:23.128Z","avatar_url":"https://github.com/dev-protocol.png","language":"TypeScript","readme":"![Dev Protocol](https://raw.githubusercontent.com/dev-protocol/protocol/main/public/asset/logo.png)\n\n[![CI Status](https://github.com/dev-protocol/protocol/workflows/Node/badge.svg)](https://github.com/dev-protocol/protocol/actions)\n[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n\n# Dev Protocol\n\nThis repository is the place to develop smart contracts for Dev Protocol.\n\n- Whitepaper: https://github.com/dev-protocol/protocol/blob/main/docs/WHITEPAPER.md\n- ホワイトペーパー(日本語): https://github.com/dev-protocol/protocol/blob/main/docs/WHITEPAPER.JA.md\n\n## How to use\n\n### install\n\nFirst, install this repository as an npm package.\n\n```bash\n\u003e npm i -D @devprotocol/protocol\n```\n\n### import\n\nYou can use the Dev Protocol interface by importing it from a Solidity file.\n\n```\nimport {IAddressConfig} from \"@devprotocol/protocol/contracts/interface/IAddressConfig.sol\";\nimport {IPropertyGroup} from \"@devprotocol/protocol/contracts/interface/IPropertyGroup.sol\";\n\ncontract TestContract {\n\tfunction validatePropertyAddress(address _property) external view {\n\t\tIAddressConfig addressConfig = IAddressConfig(0x1D415aa39D647834786EB9B5a333A50e9935b796);\n\t\tIPropertyGroup propertyGroup = IPropertyGroup(addressConfig.propertyGroup());\n\t\trequire(propertyGroup.isGroup(_property), \"not property address\");\n\t}\n}\n```\n\nThis is an example of logic that uses the PropertyGroup contract feature of the Dev Protocol to validate if it is a Property address.\n\nThe available interfaces can be found in \"node_modules/@devprotocol/protocol/contracts/interface/\".\n\nAddressConfig holds the addresses of the contracts used in the Dev Protocol.\n\n```\nAddressConfig address\nmainnet：0x1D415aa39D647834786EB9B5a333A50e9935b796\nRopsten：0xD6D07f1c048bDF2B3d5d9B6c25eD1FC5348D0A70\n```\n\n## How to contribute:\n\nRead the [contributing guide](https://github.com/dev-protocol/protocol/blob/main/.github/CONTRIBUTING.md), and create PR when you have time. 🧚✨\n\n## How to setup\n\nExecuting the following command will compile each contract.\n\n```\ngit clone https://github.com/dev-protocol/protocol.git\ncd protocol\nyarn\nyarn generate\n```\n\nrun the following command to test each contract.\n\n```\nyarn test\n```\n\nIf you use Visual Studio Code, we recommend that you install the following plug-ins:\n\n```\nEditorConfig\nvscode-eslint\nsolidity\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-protocol%2Fprotocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-protocol%2Fprotocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-protocol%2Fprotocol/lists"}