{"id":18768756,"url":"https://github.com/interep-project/subgraph","last_synced_at":"2025-04-13T07:31:03.056Z","repository":{"id":42665491,"uuid":"416664574","full_name":"interep-project/subgraph","owner":"interep-project","description":"Interep subgraph definition (The Graph).","archived":false,"fork":false,"pushed_at":"2023-02-27T10:36:08.000Z","size":205,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-03-06T18:26:35.345Z","etag":null,"topics":["api","interrep","subgraph","thegraph"],"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-10-13T09:07:20.000Z","updated_at":"2023-03-06T18:26:35.345Z","dependencies_parsed_at":"2022-09-21T22:31:28.007Z","dependency_job_id":null,"html_url":"https://github.com/interep-project/subgraph","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interep-project%2Fsubgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interep-project%2Fsubgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interep-project%2Fsubgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interep-project%2Fsubgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interep-project","download_url":"https://codeload.github.com/interep-project/subgraph/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223573806,"owners_count":17167369,"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":["api","interrep","subgraph","thegraph"],"created_at":"2024-11-07T19:13:55.219Z","updated_at":"2024-11-07T19:13:56.222Z","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 subgraph\n    \u003c/h1\u003e\n    \u003cp align=\"center\"\u003eInterep subgraph definition (The Graph).\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://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/subgraph?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\nThe Interep subgraph allows on-chain Merkle trees to be queried using GraphQL.\n\n| Kovan | Goerli | Arbitrum One |\n| ------- | ----- | ------ |\n| [interep-groups-kovan](https://thegraph.com/hosted-service/subgraph/interep-project/interep-groups-kovan) | [interep-groups-goerli](https://thegraph.com/hosted-service/subgraph/interep-project/interep-groups-goerli) |              |\n\n---\n\n## Install\n\nClone this repository and install the dependencies:\n\n```bash\n$ git clone https://github.com/interep-project/subgraph.git\n$ cd subgraph\n$ yarn # or `npm i`\n```\n\n## Usage\n\nThe subgraph definition consists of a few files:\n\n-   `subgraph.yaml`: a YAML file containing the subgraph manifest,\n-   `schema.graphql`: a GraphQL schema that defines what data is stored for the subgraph, and how to query it via GraphQL,\n-   `src/mappings.ts`: AssemblyScript code that translates from the event data to the entities defined in the schema.\n\n### Lint\n\nLint the `src` AssemblyScript code:\n\n```bash\nyarn lint\n```\n\n### Network\n\nPrepare your network:\n\n```bash\nyarn prepare:kovan\n# or\nyarn prepare:goerli\n```\n\n### Code generation\n\nGenerate AssemblyScript types for the subgraph (required every time the schema changes):\n\n```bash\nyarn codegen\n```\n\n### Authorization\n\nSet the authorisation code that links your account on thegraph.com:\n\n```bash\nyarn auth \u003caccess-token\u003e\n```\n\n### Deploy\n\nDeploy the subgraph to the [hosted service](https://thegraph.com/docs/hostedservice/deploy-subgraph-hosted):\n\n```bash\nyarn deploy:kovan\n// or\nyarn deploy:goerli\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterep-project%2Fsubgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterep-project%2Fsubgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterep-project%2Fsubgraph/lists"}