Skip to content

Achievement Points Ledger #402

Closed

Description

@Mkalbani

Location: contracts/points_ledger
Language: Rust (Soroban)
Labels: smart-contract, soroban, progressive
Estimated Time: 4 hours
Difficulty: Easy
Chain: 08 → 09

Description

Players earn points for on-chain actions such as completing puzzles or unlocking achievements. Points are tracked per player with a full history.

Tasks

  • Define points balance and entry structure
  • Implement authorized earn function
  • Record each earn event with reason code
  • Implement read functions for balance and history
  • Write unit tests

Acceptance Criteria

  • Only authorized contracts can award points
  • Balance equals sum of history entries
  • All tests pass

Activity

  1. added
    Stellar Wave
    on Nov 22, 2026
  2. yinkscss commented on Nov 22, 2026

    @yinkscss

    @yinkscss — Stellar Wave application (OSS contributor in this org).

    Applying for the current Wave. I have prior contributions here (last 10 months) and will open a draft PR within 48h.

  3. Phoniexeagle commented on Nov 23, 2026

    @Phoniexeagle

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

    I've carefully reviewed the requirements and I'll resolve the problem while making sure the final result meets every stated criterion. May I take this on?

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

  4. Nacho1499 commented on Nov 23, 2026

    @Nacho1499
    Contributor

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

    Hello maintainer. I am Nacho, a full-stack developer with experience in Rust, Stellar/Soroban smart contracts, and automated testing. I'd like to take ownership of #402 – Achievement Points Ledger.

    My approach will be to:

    1. Review the existing contracts/points_ledger structure and follow the project's Soroban contract conventions.
    2. Define the points balance and ledger entry structures, including the player address, points earned, reason code, and relevant record information.
    3. Implement an authorized earn function that allows only approved contracts to award points.
    4. Record every successful points award as a permanent history entry with its corresponding reason code.
    5. Implement read functions for retrieving an individual player's current balance and complete earning history.
    6. Ensure the balance always equals the sum of the player's recorded history entries.
    7. Add unit tests covering authorized and unauthorized awards, multiple earning events, reason codes, balance calculations, and history retrieval.

    I'll keep the implementation focused, follow the existing Soroban storage and authorization patterns, and ensure the contract is tested thoroughly.

    I'd appreciate the opportunity to work on this issue and contribute a reliable, transparent points ledger.

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

  5. drips-wave commented on Nov 23, 2026

    @drips-wave

    Congratulations, @Nacho1499! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.

    🧑‍💻 @Nacho1499: 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 🌊

  6. grantfox-oss commented on Nov 23, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @Nacho1499's PR #419 was approved and merged by @Mkalbani.

    🏆 @Nacho1499: You earned 40 FoxPoints for this contribution! Your current tier: Builder (2,062 total points). Track your full progress on GrantFox.

    👏 Great work, @Nacho1499! Keep contributing to MindFlowInteractive.

  7. drips-wave commented on Nov 23, 2026

    @drips-wave

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

    😎 @Nacho1499: 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 Wave

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions