This repository contains subgraphs for indexing and querying data from various Solana protocols. Currently, it includes a subgraph for the Orca Whirlpool protocol.
Solana Subgraphs use The Graph protocol to index and query blockchain data efficiently. This project leverages Substreams technology from StreamingFast to process Solana blockchain data and generate entities for Graph Protocol indexing.
To build and run a subgraph:
- Navigate to the subgraph directory (e.g.,
cd orca-whirlpool
) - Generate protocol buffers:
make protogen
- Build the substream:
make build
- Pack the substream:
make pack
5(a). If you want to run the substream locally:make stream
5(b). If you want to deploy to The Graph:graph deploy --studio <location> --deploy-key <deployment key>
Refer to Substreams Docs for more information on setting up and running a substream.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.