Skip to content

feat: wire up Ponder indexer for ocr_list_assets and ocr_get_subscriptions #1

@boorich

Description

@boorich

Problem

Both ocr_list_assets and ocr_get_subscriptions fall back to on-chain event scanning when INDEXER_URL is not set. A real Ponder instance is running, but the indexer code path has never been tested against the actual schema.

What to do

  • Identify the live Ponder GraphQL schema for subscriptions and assets collections
  • Update getSubscriptionsFromIndexer and the equivalent in listAssets to match the real field names and query shape
  • Test against the running instance with INDEXER_URL set
  • Confirm isActive is returned accurately (Ponder already tracks SubscriptionRevoked)

Why

Ponder is the right data source for list queries. It gives accurate isActive for free, avoids unbounded event scans, and scales with subscriber growth. The fallback path stays for local/offline use.

Related

Fallback accuracy improvement tracked in a separate issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: FeatureAdded to issues and PRs to identify that the change is a new feature.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions