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
Background
A quest tracks
total_claimsand is bounded byMAX_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)
Acceptance Criteria