Skip to content

Conversation

@pikonha
Copy link
Member

@pikonha pikonha commented Feb 9, 2026

Summary

Adds a full-stack activity feed backend for governance events, covering indexing, storage, and API querying with relevance-based filtering.

Indexer (apps/indexer)

  • New feed_event table with txHash, logIndex, type (VOTE, PROPOSAL, DELEGATION, TRANSFER), value, and timestamp, indexed for efficient querying
  • Event handlers updated to emit feed_event records on every vote cast, proposal created, delegation change, and token transfer across all governor indexers (ENS, UNI, OP, SCR, COMP, OBOL, ZK, Nouns, GTC)
  • logIndex now passed through from all governor event handlers to support composite primary keys

API (apps/api)

  • GET /feed/events endpoint with pagination (skip, limit), ordering (timestamp/value, asc/desc), date range filtering (fromDate/toDate), event type filtering, and relevance filtering
  • Relevance system: per-DAO token thresholds (LOW/MEDIUM/HIGH) for transfers, delegations, and votes — proposals are always included as high relevance
  • Service layer computes relevance per item and maps DB rows to API responses
  • Repository layer builds dynamic SQL filters combining type + value threshold conditions using Drizzle ORM

Test plan

  • Verify indexer inserts feed_event rows for votes, proposals, delegations, and transfers
  • Query GET /feed/events with different relevance levels (LOW, MEDIUM, HIGH) and confirm correct filtering
  • Test pagination, ordering, type filtering, and date range params
  • Confirm proposals always appear regardless of relevance level

Deployed for Obol on dev.

@vercel
Copy link

vercel bot commented Feb 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
anticapture Ready Ready Preview, Comment Feb 12, 2026 2:56pm
anticapture-storybook Ready Ready Preview, Comment Feb 12, 2026 2:56pm

Request Review

@pikonha pikonha changed the base branch from dev to chore/agents-md February 10, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant