A quest to migrate Lido subgraph to Subsquid
This is the squid implementation of the Lido subgraph. https://thegraph.com/explorer/subgraphs/HXfMc1jPHfFQoccWd7VMv66km75FoxVHDMvsJj5vG5vf?view=Overview&chain=mainnet
- Batch Processing is used.
- An
EntityCacheis used to store the entities in memory to improve performance.
- Please make sure to add the necessary DB config to
.envfile. - Set
DATASOURCE_NAMEasmainnetor the relevant chain name (Ex - goerli) in.envfile.
git clone https://github.com/secsec2025/lido-subgraph-migration.git
cd lido-subgraph-migration
npm ci
sqd up
sqd process &
sqd serve- The core structure stays same with the Subgraph.
Bytefields have been changed toString.
- Time to fully sync - Less than 1.5 hours
- You can download the fully synced Postgres database (up to 18720600 block) here.
- Add more sample queries.
queries.md