Skip to content

Add On-Chain Quest Rating System #223

@Mkalbani

Description

@Mkalbani

Description

Players have no way to provide feedback on quests, making it hard to surface quality content.

Expected Behavior

After completing a quest, players should be able to submit a rating (1–5). The contract should expose an average rating per quest.

Proposed Changes

mapping(uint => uint[]) private questRatings;
function rateQuest(uint questId, uint rating) external;
function getAverageRating(uint questId) external view returns (uint);

Acceptance Criteria

  • Only players who completed a quest can rate it
  • Ratings are between 1 and 5 (revert otherwise)
  • Average rating is correctly calculated on-chain
  • Tests cover rating submission and average calculation

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions