Code Monkey home page Code Monkey logo

pancake-subgraph's Introduction

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

  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. NFT Market (v1): Tracks all PancakeSwap NFT Market for ERC-721.

  6. Pairs: Tracks all PancakeSwap Pairs and Tokens.

  7. Pancake Squad: Tracks all Pancake Squad metrics with Owners, Tokens (including metadata), and Transactions.

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

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

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

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

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

  13. Trading Competition (v1): Tracks all metrics for the Easter Battle (April 07โ€”14, 2021).

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.

pancake-subgraph's People

Contributors

chef-huan avatar chef-jojo avatar chefkai avatar chefnyan avatar dependabot[bot] avatar schmidsi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.