{"id":18493065,"url":"https://github.com/graphprotocol/adchain-subgraph","last_synced_at":"2025-09-11T14:20:20.103Z","repository":{"id":43018912,"uuid":"142941787","full_name":"graphprotocol/adchain-subgraph","owner":"graphprotocol","description":"Example subgraph project for querying the AdChain TCR","archived":false,"fork":false,"pushed_at":"2022-03-23T00:16:26.000Z","size":103,"stargazers_count":3,"open_issues_count":2,"forks_count":7,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-23T18:51:51.124Z","etag":null,"topics":[],"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/graphprotocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-31T00:27:04.000Z","updated_at":"2024-09-09T18:52:42.000Z","dependencies_parsed_at":"2022-09-09T13:40:25.025Z","dependency_job_id":null,"html_url":"https://github.com/graphprotocol/adchain-subgraph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fadchain-subgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fadchain-subgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fadchain-subgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fadchain-subgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphprotocol","download_url":"https://codeload.github.com/graphprotocol/adchain-subgraph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247939777,"owners_count":21021844,"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-06T13:12:29.393Z","updated_at":"2025-04-08T22:30:37.324Z","avatar_url":"https://github.com/graphprotocol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AdChain\nAdChain subgraph manifest for The Graph\n\nThis is an example subgraph which demonstrates how to write\n* A subgraph manifest\n* A GraphQL schema\n* A mapping script\n\nThis example uses the [AdChain](https://publisher.adchain.com/registry) that was recently deployed to mainnet. This registry keeps a list of websites that are deemed to not be committing ad fraud. Any AdChain token holder can submit an application to include a new website onto the list. Those applications can be challenged by other token holders. All of this data can be queried using The Graph.\n\nThe [Graph Node](https://github.com/graphprotocol/graph-node) contains instructions for running everything. Additionally see the [Getting Started Guide](https://github.com/graphprotocol/graph-node/blob/master/docs/getting-started.md) for a detailed walkthrough of how the pieces fit together.\n\n\nOnce you have built the subgraph and started a Graph Node you may open a GraphiQL browser at `127.0.0.1:8000` and get started with these example queries.\n```\n{\n  challenges(first: 50, where: {outcome: \"failed\"}) {\n    id\n    challenger\n    commitEndDate\n    revealEndDate\n    challenger\n    outcome\n    rewardPool   \n    totalTokens\n    application {\n      id,\n      whitelisted,\n      deposit\n    }\n  }\n}\n```\n\n```\n{\n  applications(first: 100,\n    where: {\n        deposit_gt: \"10000000000\",\n        owner_in: [\"0x7609e21921c7efcf73a588833bf7709889291781\", \"0x1a5cdcfba600e0c669795e0b65c344d5a37a4d5a\"]\n   }) {\n    id\n    whitelisted\n    deposit\n    owner\n    challenges {\n      id\n      outcome\n      rewardPool\n    }\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphprotocol%2Fadchain-subgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphprotocol%2Fadchain-subgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphprotocol%2Fadchain-subgraph/lists"}