{"id":21532360,"url":"https://github.com/windingtree/orgid-subgraph","last_synced_at":"2026-05-12T04:32:21.264Z","repository":{"id":54678398,"uuid":"295148241","full_name":"windingtree/orgid-subgraph","owner":"windingtree","description":"This subgraph of The Graph allows querying information from the Winding Tree ecosystem using the GraphQL language.","archived":false,"fork":false,"pushed_at":"2021-02-04T11:43:50.000Z","size":314,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-17T19:35:25.830Z","etag":null,"topics":["ethereum","graph-node","graphql","ingestion","subgraph","travel"],"latest_commit_sha":null,"homepage":"https://thegraph.com/explorer/subgraph/windingtree/orgid-subgraph","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/windingtree.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":"2020-09-13T12:37:39.000Z","updated_at":"2021-02-04T11:43:52.000Z","dependencies_parsed_at":"2022-08-13T23:40:53.711Z","dependency_job_id":null,"html_url":"https://github.com/windingtree/orgid-subgraph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/windingtree/orgid-subgraph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windingtree%2Forgid-subgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windingtree%2Forgid-subgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windingtree%2Forgid-subgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windingtree%2Forgid-subgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/windingtree","download_url":"https://codeload.github.com/windingtree/orgid-subgraph/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windingtree%2Forgid-subgraph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32923784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-11T17:09:15.040Z","status":"online","status_checked_at":"2026-05-12T02:00:06.338Z","response_time":102,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","graph-node","graphql","ingestion","subgraph","travel"],"created_at":"2024-11-24T02:19:41.985Z","updated_at":"2026-05-12T04:32:21.244Z","avatar_url":"https://github.com/windingtree.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ORGiD Subgraph\n\nThis subgraph tracks events occuring on Winding Tree's ORGiD contract.\n\nThe data can later be queried using a GraphQL API.\n\n## Usage Example\n\nGet 5 random ORGiDs, their owner and the country of the legal entity:\n\n```shell\ncurl -X POST \\\n    -d '{ \"query\": \"query { organizations(first: 5) { id owner legalEntity { legalName } service {id} }}\" }' \\\n    https://api.thegraph.com/subgraphs/name/windingtree/orgid-subgraph\n```\n\n## Installation\n\nThe below instructions are adapted from [The Graph quickstart](https://thegraph.com/docs/quick-start#local-development).\n\nClone the source code:\n\n```shell\ngit clone git@github.com:windingtree/orgid-subgraph.git\n```\n\nInstall dependencies:\n\n```shell\nyarn install\n```\n\n## Local Development\n\n### Start a local Graph Node\n\nIn a dedicated terminal:\n\n```shell\n# Clone the Graph Node repository\ncd /tmp\ngit clone https://github.com/graphprotocol/graph-node/\n\n# Change directory to Docker\ncd graph-node/docker\n```\n\nBy default, the ethereum node will be assumed to be the docker host IP and the network mainnet, but you can update it in the `docker-compose.yml` file.\n\n__For Linux__: the docket host IP must be updated using the `setup.sh` script:\n\n```shell\n# ! Linux Only ! run setup.sh to update the host IP in docker settings\n./setup.sh\n```\n\nFor an externally hosted node type infura, the ethereum node URL must be updated in the `docker-compose.yml` file.\n\nThen launch the node:\n\n```shell\n# Start the graph node\ndocker-compose up\n```\n\n### Initialize the subgraph\n\nGenerate code:\n\n```shell\nyarn codegen:mainnet\n```\n\nBuild the subgraph:\n\n```shell\nyarn build\n```\n\nAllocate the subgraph in the Graph Node with:\n\n```shell\nyarn create-local\n```\n\nDeploy the subgraph locally:\n\n```shell\nyarn deploy-local\n```\n\nThis will trigger the indexing of the subgraph in the Graph node and can take some time. Check the Graph node logs to check when data ingestion is completed.\n\nOnce the ingestion is completed, you can query the Graph Node, for example to get all organizations:\n\n```shell\ncurl -X POST \\\n    -d '{ \"query\": \"{organizations {id, owner, isActive}}\" }' \\\n    http://localhost:8000/subgraphs/name/windingtree/orgid-subgraph\n```\n\n## Deploy to The Graph\n\nCreate an access token and store it locally. `\u003cACCESS_TOKEN\u003e` is from [The Graph Dashboard](https://thegraph.com/explorer/dashboard).\n\n```shell\ngraph auth https://api.thegraph.com/deploy/ \u003cACCESS_TOKEN\u003e\n```\n\nThen deploy, for example in Mainnet:\n\n```shell\nyarn deploy:mainnet\n```\n\nFor Ropten:\n\n```shell\nyarn deploy:ropsten\n```\n\nStatus on the syncronization can be retrieved using:\n\n```shell\ncurl -X POST \\\n    -d '{ \"query\": \"query { indexingStatusForPendingVersion(subgraphName: \\\"windingtree/orgid-subgraph\\\") { synced health fatalError { message handler} }}\" }' \\\n    https://api.thegraph.com/index-node/graphql\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindingtree%2Forgid-subgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindingtree%2Forgid-subgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindingtree%2Forgid-subgraph/lists"}