All packages
my-flip-test-substream

my-flip-test-substream

SergeyPoslavskiy
v0.1.1/2 downloads

Package ref

my-flip-test-substream@v0.1.1

Run package

CLI

Run db_out from the command line.

substreams run my-flip-test-substream@v0.1.1 db_out -e solana --start-block -1
Authenticate by running substreams auth or directly on thegraph.market (see docs).

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

Modules

Execution graph

5 modules
mapMain

db_out

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.

from #385491672

Output

sf.substreams.sink.database.v1.DatabaseChanges

map

map_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 ```

from #385491672
Show 3 dependencies
map

solana:v020:blocks_without_votes

`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.