https://github.com/morpho-org/ponder-for-morpho-v1
https://github.com/morpho-org/ponder-for-morpho-v1
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/morpho-org/ponder-for-morpho-v1
- Owner: morpho-org
- License: mit
- Created: 2025-05-13T03:43:25.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-20T16:10:53.000Z (10 months ago)
- Last Synced: 2025-08-20T16:17:02.258Z (10 months ago)
- Language: TypeScript
- Homepage:
- Size: 336 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Morpho Ponder Template
A monorepo template for indexing Morpho v1 ([morpho-blue](https://github.com/morpho-org/morpho-blue) and [metamorpho](https://github.com/morpho-org/metamorpho-v1.1))
state with [Ponder](https://ponder.sh). This setup has been used in the open-source [liquidation](https://github.com/morpho-org/morpho-blue-liquidation-bot) and
[reallocation](https://github.com/morpho-org/morpho-blue-reallocation-bot) 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.
## Installation
To get started:
```shell
git clone https://github.com/morpho-org/ponder-template.git
cd ponder-template
# Install packages
pnpm install
# Run
cd apps/ponder
pnpm run dev
```
After running the commands above, open [http://localhost:42069/](http://localhost:42069/) in your browser to use the GraphQL playground.
## Features
- đĻ Configured as a monorepo to ease further development
- âšī¸ `ponder.config.ts` prefilled 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](https://github.com/morpho-org/morpho-blue-liquidation-bot)
## Further Information
This template is intended primarily for internal use at Morpho. Ponder has some [great resources](https://ponder.sh/docs/get-started)
for getting started with indexing, building, and deploying your own projects.