Skip to content

PSI-Passive-Income/DPEX-subgraph

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSI Dex Subgraph

The Graph exposes a GraphQL endpoint to query the events and entities within the Binance Smart Chain and PSI Dex ecosystem.

Currently, there are multiple subgraphs, but additional subgraphs can be added to this repo:

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

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

  3. DexCandles: Tracks all the PSI Dex trades (event: Swap) with 5m / 15m / 1h / 4h / 1d / 1w candles.

BSC errors

Graph has issues with indexing the bsc chain, so currently our graph schemes are not working as they should: graphprotocol/graph-node#2517 https://status.thegraph.com

To setup and deploy

For any of the subgraph: blocks as [subgraph]

  1. Run the yarn run codegen:[subgraph] command to prepare the TypeScript sources for the GraphQL (generated/*).

  2. Run the yarn run build:[subgraph] command to build the subgraph, and check compilation errors before deploying.

  3. Run graph auth https://api.thegraph.com/deploy/ '<ACCESS_TOKEN>'

  4. Deploy via yarn run deploy:[subgraph].

About

📊 Pancake subgraph

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 100.0%