Skip to content

DenisCarriere/defibox-subgraph

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 repo:

  1. Blocks: Tracks all blocks on Binance Smart Chain.

  2. Exchange: Tracks all PancakeSwap Exchange data with price, volume, liquidity, ...

  3. Farm Auctions: Tracks all PancakeSwap Farm Auctions with auctions and bids.

  4. Lottery: Tracks all PancakeSwap Lottery with rounds, draws and tickets.

  5. Pairs: Tracks all PancakeSwap Pairs and Tokens.

  6. Prediction (v1): Tracks all PancakeSwap Prediction (v1) with market, rounds, and bets.

  7. Prediction (v2): Tracks all PancakeSwap Prediction (v2) with market, rounds, and bets.

  8. Profile: Tracks all PancakeSwap Profile with teams, users, points and campaigns.

  9. SmartChef: Tracks all PancakeSwap SmartChef (a.k.a. Syrup Pools) with tokens and rewards.

  10. Timelock: Tracks all PancakeSwap Timelock queued, executed, and cancelled transactions.

  11. Trading Competition (v1): Tracks all metrics for the Easter Battle (April 07—14, 2021).

v1

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

To setup and deploy

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.

About

📊 Defibox subgraph

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.9%
  • Shell 0.1%