ponder-gen

Generate Ponder indexer handlers from contract ABIs and schemas.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/LadderChaos/tora-skills --skill ponder-gen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ponder-gen
Source: https://github.com/LadderChaos/tora-skills/tree/main/ponder-gen
Command: npx skills add https://github.com/LadderChaos/tora-skills --skill ponder-gen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the generation and maintenance of Ponder indexer code from contract ABIs and a schema, enabling deterministic event indexing for blockchain projects.

Core Features & Use Cases

  • Automated handler generation: Generate type-safe event handlers and database schema mappings from ABIs.
  • Incremental updates: Regenerate handlers when ABIs or schemas change, keeping indexers in sync.
  • Use Case: When adding a new contract or updating existing contracts, use this skill to scaffold and update the indexer directory and tests.

Quick Start

Use the ponder-gen skill to generate indexer handlers from existing ABIs by following the steps described in the Skill body. Follow the Step 1-3 examples to add ABIs, configure ponder.config.ts, define the schema, and run the generator.

Frequently Asked Questions about ponder-gen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Ponder indexer handlers from contract ABIs?

To generate Ponder indexer handlers from contract ABIs, you add your ABIs, configure the ponder.config.ts file, define your storage schema, and run the generator to scaffold TypeScript handlers that map blockchain events to database tables.

What is the best way to update Ponder event listeners after an ABI change?

Updating Ponder event listeners after an ABI change is handled by regenerating handlers through the indexer generator. This performs incremental updates to keep your TypeScript handlers and schema mappings in sync with the modified contract ABIs.

Can I use this to set up indexers for multiple contracts in a single project?

Yes, you can set up indexers for multiple contracts in a single project. The generator supports maintaining event listeners across multiple contracts by configuring networks and contracts within your ponder.config.ts file.

How does schema definition work when mapping blockchain events to database tables?

Schema definition for mapping blockchain events to database tables requires you to define a storage schema. The generator then uses this schema alongside your ABIs to create type-safe TypeScript handlers that deterministically index events.

Do I need to manually write TypeScript handlers when adding a new contract to my Ponder project?

No, you do not need to manually write TypeScript handlers when adding a new contract. The generator automates the creation of type-safe event handlers and database schema mappings directly from the provided ABIs and schema.