Package Logo
my-flip-test-substream
my-flip-test-substream@v0.1.1
Total Downloads
5
Published
yesterday

Readme

Flipper Substreams Indexer

A Substreams-based indexer for the Flipper program on Solana Mainnet Beta.

Quick Start

Prerequisites

  • Docker Desktop
  • VS Code with Dev Containers extension
  • Or install Substreams CLI locally

Usage

# Run the GUI to test
substreams gui substreams.yaml map_program_data -t +100

Documentation

Modules

Maps icon
Maps

map
map_program_data

323a96974d5bc24df925d371ed056fbf0fb112e6
map map_program_data (
solana:blocks_without_votessf.solana.type.v1.Block
)  -> substreams.v1.program.Data

This module filters Solana blocks for transactions involving the Flipper program and extracts structured data including:

  • Adapter configuration and disable events
  • Limit order creation, execution, and cancellation events
  • Swap events across various AMM protocols
  • Operator management events
  • Fee collection events

The module processes instructions and logs to build a comprehensive view of Flipper activity.

Try running this module with:

substreams gui substreams.yaml map_program_data -t +1000
substreams gui my-flip-test-substream@v0.1.1 map_program_data

map
db_out

bb29c9838d8bb68fbb65f54b9bf6c6b43b65de03

This module takes the processed Flipper data and converts it into database change operations. It prepares INSERT, UPDATE, and DELETE statements for SQL database persistence.

The module handles:

  • Creation of appropriate tables based on protobuf schema
  • Efficient batching of database operations
  • Conflict resolution and idempotent operations

This module is designed to work with the SQL sink to populate your database with Flipper data.

substreams gui my-flip-test-substream@v0.1.1 db_out

map
solana:blocks_without_votes

0be93a73c65aa8ec2de4b1a47209edeea493ff29
map solana:blocks_without_votes (
)  -> sf.solana.type.v1.Block
substreams gui my-flip-test-substream@v0.1.1 solana:blocks_without_votes

map
solana:v020:blocks_without_votes

0be93a73c65aa8ec2de4b1a47209edeea493ff29
map solana:v020:blocks_without_votes (
)  -> sf.solana.type.v1.Block

blocks_without_votes allows you to consume a full Solana Block without Vote instructions (Vote111111111111111111111111111111111111111). If you consume it on HISTORICAL data (+1000 blocks from HEAD), you will be reading from the StreamingFast cache, thus saving costs on the amount of TB read.

substreams gui my-flip-test-substream@v0.1.1 solana:v020:blocks_without_votes
Block Indexes icon
Block Indexes

blockIndex
solana:program_ids_without_votes

811466d12743a8b02be8ba6649cfa9a24aa1af62
substreams gui my-flip-test-substream@v0.1.1 solana:program_ids_without_votes
Protobuf

Protobuf Docs Explorer

substreams.v1.program
sf.solana.type.v1
sol.instructions.v1
sol.transactions.v1