Skip to content

feat: add EventFinalized indexer handler and prize payout tracking #995

Merged
Olowodarey merged 2 commits into
Arena1X:mainfrom
Arowolokehinde:feat/issue-958-event-finalized-indexer-payout-tracking
Jun 18, 2026
Merged

feat: add EventFinalized indexer handler and prize payout tracking #995
Olowodarey merged 2 commits into
Arena1X:mainfrom
Arowolokehinde:feat/issue-958-event-finalized-indexer-payout-tracking

Conversation

@Arowolokehinde

Copy link
Copy Markdown
Contributor

Closes #958

  • Add CreatorEventPayout entity with FK to CreatorEventLeaderboardEntry
  • Add migration 1776000000000-CreateCreatorEventPayout
  • Detect and extract EventFinalized contract event in indexer
  • Implement handleEventFinalized with idempotency guard (payout count check)
  • Upsert CreatorEventLeaderboardEntry and create CreatorEventPayout per participant
  • Expose GET /creator-events/:id/payouts (paginated, ordered by rank)
  • Expose GET /creator-events/:id/payouts/:address (single address, 404 if missing)
  • Broadcast event:finalized over WebSocket on finalization

…rena1X#958)

- Add CreatorEventPayout entity with FK to CreatorEventLeaderboardEntry
- Add migration 1776000000000-CreateCreatorEventPayout
- Detect and extract EventFinalized contract event in indexer
- Implement handleEventFinalized with idempotency guard (payout count check)
- Upsert CreatorEventLeaderboardEntry and create CreatorEventPayout per participant
- Expose GET /creator-events/:id/payouts (paginated, ordered by rank)
- Expose GET /creator-events/:id/payouts/:address (single address, 404 if missing)
- Broadcast event:finalized over WebSocket on finalization
@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
insight-arena-4rll Ready Ready Preview, Comment Jun 18, 2026 1:31pm

@Olowodarey

Copy link
Copy Markdown
Collaborator

@Arowolokehinde pls run test locally

@Olowodarey Olowodarey merged commit 9498a3d into Arena1X:main Jun 18, 2026
5 checks passed
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.

[Backend] — EventFinalized indexer handler + prize payout tracking

2 participants