Skip to content

Add a view returning a quest’s remaining claim capacity #2365

Description

@RUKAYAT-CODER

Background

A quest tracks total_claims and is bounded by MAX_QUEST_CLAIMS, but there is no read-only way to see how many claims a quest has left. Add a view that returns the remaining claim capacity for a quest id so clients can show availability without inspecting raw storage.

Files to modify (2)

  • contracts/earn-quest/src/lib.rs
  • contracts/earn-quest/src/quest.rs

Acceptance Criteria

  • Implemented across the listed files
  • Unit/integration tests added or updated and passing
  • No regression; follows project coding standards

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions