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.
Problem
Both
ocr_list_assetsandocr_get_subscriptionsfall back to on-chain event scanning whenINDEXER_URLis not set. A real Ponder instance is running, but the indexer code path has never been tested against the actual schema.What to do
subscriptionsandassetscollectionsgetSubscriptionsFromIndexerand the equivalent inlistAssetsto match the real field names and query shapeINDEXER_URLsetisActiveis returned accurately (Ponder already tracksSubscriptionRevoked)Why
Ponder is the right data source for list queries. It gives accurate
isActivefor 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.