A monorepo template for indexing Morpho v1 (morpho-blue and metamorpho) state with Ponder. This setup has been used in the open-source liquidation and reallocation bots. If you're interested in fully worked-out examples and usage, check out those repos.
This is meant as a starting point for new indexing projects, but can be run as-is if you just want a GraphQL API into Morpho v1 data.
To get started:
git clone https://github.com/morpho-org/ponder-for-morpho-v1.git
cd ponder-for-morpho-v1
# Install packages
pnpm install
# Run
cd apps/ponder
pnpm run devAfter running the commands above, open http://localhost:42069/ in your browser to use the GraphQL playground.
- 📦 Configured as a monorepo to ease further development
- ℹ️
ponder.config.tsprefilled with Morpho addresses and ABIs - 💾 Example indexing functions for multiple Morpho contracts
- 📊 GraphQL endpoint for (almost) all Morpho v1 state 💡 add schemas for historical data
- 💧 Liquidation endpoint used by the liquidation bot
This template is intended primarily for internal use at Morpho. Ponder has some great resources for getting started with indexing, building, and deploying your own projects.