Skip to content

enoldev/solana-voting-app-sps

Repository files navigation

Solana Substreams-powered Subgraph (Solana Voting Application)

This is a Substreams-powered Subgraph that retrieves data from the Solana Foundation's Example Voting Application.

The Application

Get Started

The Substreams has been auto-generated (using the substreams init CLI) from the JSON Anchor IDL of the Voting Application, which is deployed in Solana Devnet with Program ID AaxYiadTQSPFswtmEpjZ15vQnjzkryHhgnJz2GjxxbeV.

Run the Substreams

Everything is already packeged in the my-project-v0.1.0.spkg file, which you can directly run using the Substreams CLI.

substreams gui ./my-project-v0.1.0.spkg map_program_data --start-block=337067528 --stop-block=+3000 -e devnet.sol.streamingfast.io:443

Run the Substreams-powered Subgraph

A Substreams-powered Subgraph (SpS) has been generated from the .spkg file by using the substreams codegen subgraph ./my-project-v0.1.0.spkg command, and the mappings.ts file has been updated to create the corresponding entities of the subgraph.

You can deploy the SpS using the standard graph deploy command, either on The Graph Studio or a local Graph Node.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published