Skip to content

secsec2025/lido-subgraph-migration

Repository files navigation

LIDO Subgraph Migration

A quest to migrate Lido subgraph to Subsquid

Introduction

This is the squid implementation of the Lido subgraph. https://thegraph.com/explorer/subgraphs/HXfMc1jPHfFQoccWd7VMv66km75FoxVHDMvsJj5vG5vf?view=Overview&chain=mainnet

What is Changed?

  • Batch Processing is used.
  • An EntityCache is used to store the entities in memory to improve performance.

How to start?

  • Please make sure to add the necessary DB config to .env file.
  • Set DATASOURCE_NAME as mainnet or the relevant chain name (Ex - goerli) in .env file.
git clone https://github.com/secsec2025/lido-subgraph-migration.git
cd lido-subgraph-migration
npm ci
sqd up
sqd process &
sqd serve

GraphQL Schema Changes

  • The core structure stays same with the Subgraph.
  • Byte fields have been changed to String.

Squid Stats

  • Time to fully sync - Less than 1.5 hours
  • You can download the fully synced Postgres database (up to 18720600 block) here.

What's Next to Do?

  • Add more sample queries. queries.md

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published