Skip to content

๐Ÿ“Š Pancake subgraph (blocks, profile, prediction, NFT's, ...)

License

Notifications You must be signed in to change notification settings

pancakeswap/pancake-subgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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

Dependencies

  • Graph CLI
    • Required to generate and build local GraphQL dependencies.
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 '<ACCESS_TOKEN>'

  5. Deploy via yarn deploy.

v1

To access subgraphs related to PancakeSwap v1 ecosystem (article), use v1 branch.

About

๐Ÿ“Š Pancake subgraph (blocks, profile, prediction, NFT's, ...)

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published