{"id":19167935,"url":"https://github.com/pancakeswap/pancake-subgraph","last_synced_at":"2025-05-16T14:05:00.541Z","repository":{"id":37104058,"uuid":"340893661","full_name":"pancakeswap/pancake-subgraph","owner":"pancakeswap","description":"📊 Pancake subgraph (blocks, profile, prediction, NFT's, ...)","archived":false,"fork":false,"pushed_at":"2024-06-27T03:17:58.000Z","size":946,"stargazers_count":340,"open_issues_count":38,"forks_count":582,"subscribers_count":11,"default_branch":"v3","last_synced_at":"2025-04-09T08:07:02.555Z","etag":null,"topics":["graphprotocol","pancakeswap"],"latest_commit_sha":null,"homepage":"","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/pancakeswap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-21T12:15:18.000Z","updated_at":"2025-04-04T04:33:20.000Z","dependencies_parsed_at":"2023-02-19T14:46:03.739Z","dependency_job_id":"e178b75b-819e-48ec-9ded-c80b3ed67bdb","html_url":"https://github.com/pancakeswap/pancake-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/pancakeswap%2Fpancake-subgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pancakeswap%2Fpancake-subgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pancakeswap%2Fpancake-subgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pancakeswap%2Fpancake-subgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pancakeswap","download_url":"https://codeload.github.com/pancakeswap/pancake-subgraph/tar.gz/refs/heads/v3","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254544146,"owners_count":22088807,"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":["graphprotocol","pancakeswap"],"created_at":"2024-11-09T09:40:15.420Z","updated_at":"2025-05-16T14:05:00.523Z","avatar_url":"https://github.com/pancakeswap.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PancakeSwap Subgraph\n\nTheGraph exposes a GraphQL endpoint to query the events and entities within the Binance Smart Chain and PancakeSwap ecosystem.\n\nCurrently, there are multiple subgraphs, but additional subgraphs can be added to this repository, following the current architecture.\n\n## Subgraphs \n- link - https://developer.pancakeswap.finance/apis/subgraph\n\n## Dependencies\n\n- [Graph CLI](https://github.com/graphprotocol/graph-cli)\n  - Required to generate and build local GraphQL dependencies.\n\n```shell\nyarn global add @graphprotocol/graph-cli\n```\n\n## Deployment\n\nFor any of the subgraph: `blocks` as `[subgraph]`\n\n1. Run the `cd subgraphs/[subgraph]` command to move to the subgraph directory.\n\n2. Run the `yarn codegen` command to prepare the TypeScript sources for the GraphQL (generated/\\*).\n\n3. Run the `yarn build` command to build the subgraph, and check compilation errors before deploying.\n\n4. Run `graph auth --product hosted-service '\u003cACCESS_TOKEN\u003e'`\n\n5. Deploy via `yarn deploy`.\n\n## v1\n\nTo access subgraphs related to PancakeSwap v1 ecosystem ([article](https://pancakeswap.medium.com/the-great-migration-vote-4093cb3edf23)), use [`v1`](https://github.com/pancakeswap/pancake-subgraph/tree/v1) branch.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpancakeswap%2Fpancake-subgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpancakeswap%2Fpancake-subgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpancakeswap%2Fpancake-subgraph/lists"}