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
EntityCache
is used to store the entities in memory to improve performance.
- Please make sure to add the necessary DB config to
.env
file. - Set
DATASOURCE_NAME
asmainnet
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
- The core structure stays same with the Subgraph.
Byte
fields 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