• Stars
    star
    292
  • Rank 142,152 (Top 3 %)
  • Language
    TypeScript
  • License
    GNU General Publi...
  • Created over 3 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

📊 Pancake subgraph (blocks, profile, prediction, NFT's, ...)

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 V2: Tracks all PancakeSwap V2 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).

  14. MasterChef (v2): Tracks data for MasterChefV2.

  15. MasterChef (v3): Tracks data for MasterChefV3.

  16. Exchange (v3): Tracks all PancakeSwap V3 Exchange data with price, volume, liquidity

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.

More Repositories

1

pancake-frontend

🥞 Pancake main features (farms, pools, IFO, lottery, profiles)
TypeScript
2,669
star
2

pancake-farm

Solidity
428
star
3

pancake-info-api

Serverless API implementation for PancakeSwap on-chain data query.
TypeScript
330
star
4

pancake-swap-interface-v1

🥞 Pancake trading interface V1
TypeScript
303
star
5

pancake-toolkit

⚒️ Pancake frontend packages
TypeScript
303
star
6

pancake-swap-core

Core smart contracts
TypeScript
264
star
7

pancake-smart-contracts

PancakeSwap Smart Contracts
TypeScript
202
star
8

pancake-swap-sdk

TypeScript
189
star
9

pancake-swap-periphery

Solidity
174
star
10

pancake-document

HTML
94
star
11

pancake-swap-lib

Solidity
85
star
12

lottery-contract

JavaScript
83
star
13

pancake-info-v1

JavaScript
77
star
14

pancake-uikit

💠 Set of UI components for pancake projects
TypeScript
77
star
15

token-list

TypeScript
69
star
16

pancake-contracts-move

Move
69
star
17

pancake-lottery-scheduler

🎰 Pancake Lottery scheduler
TypeScript
40
star
18

pancake-profile-api

🖼️ Serverless API implementation for PancakeSwap Profile contract
TypeScript
32
star
19

initial-farm-offering

🥞 IFO contract
JavaScript
25
star
20

PancakeSwap-Design

18
star
21

pancake-v2-subgraph

[ARCHIVED] PancakeSwap v2 subgraph
TypeScript
17
star
22

pancake-nft-api

Serverless API implementation for PancakeSwap NFT Marketplace contract
TypeScript
16
star
23

pancake-v4-periphery-deprecated

Solidity
13
star
24

pancake-v3-contracts

TypeScript
12
star
25

smart-router-example

Usage example of @pancakeswap/smart-router
TypeScript
9
star
26

pancake-nft-publish

Java
9
star
27

token-pocket-splash

TypeScript
6
star
28

Revelation-Hackathon-Bounties

PancakeSwap bounties for Revelation Hackathon by BNB Chain
6
star
29

pancake-taro-toolkit

pancake-toolkit for taro
TypeScript
3
star
30

eslint-config-pancake

Eslint config for PancakeSwap
JavaScript
3
star
31

airdrop-v3-users

TypeScript
2
star
32

permit2

🔑🔑🔑 next generation token approvals mechanism
Solidity
2
star
33

on-ramp-client-side-api

TypeScript
1
star
34

syrup-pool-data-api

TypeScript
1
star