Description
Create a rewards module that manages stella-based token rewards distributed upon puzzle completion. Rewards are tied to difficulty and performance, serving as both in-game currency and a potential on-chain asset. The module needs clear rules for when rewards are granted, how they accumulate, and how they can be queried.
Acceptance Criteria
Description
Create a
rewardsmodule that manages stella-based token rewards distributed upon puzzle completion. Rewards are tied to difficulty and performance, serving as both in-game currency and a potential on-chain asset. The module needs clear rules for when rewards are granted, how they accumulate, and how they can be queried.Acceptance Criteria
rewardsmodule is scaffolded atsrc/rewards/Rewardentity includes id, userId, sessionId, type (stella), amount, and grantedAtGET /rewards/mereturns the authenticated user's reward history and total balanceGET /rewards/balancereturns a single total stella balance for the user