Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pancakeswap/pancake-subgraph
📊 Pancake subgraph (blocks, profile, prediction, NFT's, ...)
https://github.com/pancakeswap/pancake-subgraph
graphprotocol pancakeswap
Last synced: 6 days ago
JSON representation
📊 Pancake subgraph (blocks, profile, prediction, NFT's, ...)
- Host: GitHub
- URL: https://github.com/pancakeswap/pancake-subgraph
- Owner: pancakeswap
- License: gpl-3.0
- Created: 2021-02-21T12:15:18.000Z (almost 4 years ago)
- Default Branch: v3
- Last Pushed: 2024-06-27T03:17:58.000Z (6 months ago)
- Last Synced: 2024-12-21T15:02:06.647Z (13 days ago)
- Topics: graphprotocol, pancakeswap
- Language: TypeScript
- Homepage:
- Size: 924 KB
- Stars: 337
- Watchers: 13
- Forks: 587
- Open Issues: 39
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# PancakeSwap Subgraph
TheGraph exposes a GraphQL endpoint to query the events and entities within the Binance Smart Chain and PancakeSwap ecosystem.
Currently, there are multiple subgraphs, but additional subgraphs can be added to this repository, following the current architecture.
## Subgraphs
- link - https://developer.pancakeswap.finance/apis/subgraph## Dependencies
- [Graph CLI](https://github.com/graphprotocol/graph-cli)
- Required to generate and build local GraphQL dependencies.```shell
yarn global add @graphprotocol/graph-cli
```## Deployment
For any of the subgraph: `blocks` as `[subgraph]`
1. Run the `cd subgraphs/[subgraph]` command to move to the subgraph directory.
2. Run the `yarn codegen` command to prepare the TypeScript sources for the GraphQL (generated/\*).
3. Run the `yarn build` command to build the subgraph, and check compilation errors before deploying.
4. Run `graph auth --product hosted-service ''`
5. Deploy via `yarn deploy`.
## v1
To 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.