Skip to content

Implement community poll indexer and results REST API #1135

Closed

Description

@Chucks1093

Summary

Index PollCreated, PollVoteCast, and PollClosed contract events and expose REST endpoints for active polls, vote tallies, and wallet vote status per key.

Scope

  • Indexer processes all three events into key_polls and poll_votes tables
  • GET /keys/:key_id/polls — active and closed polls with tally and expiry
  • GET /keys/:key_id/polls/:poll_id — single poll detail with per-option results
  • GET /keys/:key_id/polls/:poll_id/votes/:wallet — wallet's vote and weight
  • Cache TTL 30s; invalidated on any poll event for key

Acceptance Criteria

  • All three events indexed with no gaps
  • Polls list returns accurate status and tally for all polls
  • Poll detail returns correct per-option results
  • Wallet vote endpoint returns correct vote and weight
  • Cache invalidates correctly on any poll event

ETA

12 hours

Activity

  1. reinaldyalt commented on Oct 19, 2026

    @reinaldyalt

    @reinaldyalt has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi, I'm reinaldyalt. I'd like to work on this issue: indexing PollCreated, PollVoteCast and PollClosed contract events into key_polls and poll_votes tables and exposing the polls, poll detail and wallet-vote REST endpoints, following the repo's existing indexer-service pattern with 30s cache invalidated on any poll event. I can start right away and deliver a tested PR within a couple of days.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @reinaldyalt to this issue.

  2. Stanley-Owoh commented on Oct 19, 2026

    @Stanley-Owoh
    Contributor

    @Stanley-Owoh has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Good day maintaner, please i would like to work on this, I have gone through the description and am sure i can handle this task
    I can work on it immediatly with clean code and positive result please assign this issue to me
    Thank you

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Stanley-Owoh to this issue.

  3. bright5455 commented on Oct 19, 2026

    @bright5455
    Contributor

    @bright5455 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    hello maintainer

    i have read and understand the issue
    im a front end engineer with five years of eperience,with my level of experience,i believe i can deliver a quality PR
    please kindly assign this task to me

    Thank you

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @bright5455 to this issue.

  4. DEV-CHIDIOFFICIAL commented on Oct 20, 2026

    @DEV-CHIDIOFFICIAL

    @DEV-CHIDIOFFICIAL has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    i would like to solve this task

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @DEV-CHIDIOFFICIAL to this issue.

  5. baling-1 commented on Oct 20, 2026

    @baling-1
    Contributor

    @baling-1 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi there, i would like to work on this issue , kindly assign please

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @baling-1 to this issue.

  6. horlad001 commented on Oct 20, 2026

    @horlad001

    @horlad001 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Please assign

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @horlad001 to this issue.

  7. Abiolawonders commented on Oct 20, 2026

    @Abiolawonders

    @Abiolawonders has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hello, I can help fix this. I've read the description and it's all something that I can easily work out.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Abiolawonders to this issue.

  8. DioChuks commented on Oct 20, 2026

    @DioChuks
    Contributor

    @DioChuks has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    (Senior SWE)Hi, i would like to tackle this issue, and be able to resolve it by ensuring:
    All three events indexed with no gaps, Polls list returns accurate status and tally for all polls, Poll detail returns correct per-option results, Wallet vote endpoint returns correct vote and weight, Cache invalidates correctly on any poll event(As expected of the criteria acceptance).

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @DioChuks to this issue.

  9. drips-wave commented on Oct 20, 2026

    @drips-wave

    Congratulations, @DioChuks! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

    🧑‍💻 @DioChuks: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  10. grantfox-oss commented on Oct 22, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @DioChuks's PR #1204 was approved and merged by @Chucks1093.

    🏆 @DioChuks: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (567 total points). Track your full progress on GrantFox.

    👏 Great work, @DioChuks! Keep contributing to accesslayerorg.

  11. drips-wave commented on Oct 22, 2026

    @drips-wave

    This issue has been completed by @DioChuks as part of the Stellar Wave Program's 10th Wave 🥳

    😎 @DioChuks: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions