feat: Add achievement badge NFT system - #1044
Open
hkyuni wants to merge 3 commits into
Open
Conversation
- Create achievement_badge Soroban contract with soulbound pattern - Add database migration for achievement_badges table - Implement badge rules engine for auto-awarding badges - Add badge API endpoints (GET /api/badges/:address, etc.) - Create frontend BadgeShelf component with earned/locked states - Add BadgeAwardToast component for milestone celebrations - Add useBadgeAwards hook for badge notification management - Add contract tests and backend service tests - Integrate badge routes into main router - Add ACHIEVEMENT_BADGE_CONTRACT_ID to stellar contract service Badge types: - first_completion: First course completed - streak_30: 30-day learning streak - first_scholarship_funded: First scholarship funded - top_10_leaderboard: Top-10 leaderboard finish
Contributor
|
please fix checks |
- Use AchievementBadgeClient instead of direct contract calls - Add MockAuth for authorization testing - Use #[should_panic] with expected error messages - Add setup helper function for test initialization - Add event emission test - Follow scholar_nft test patterns for consistency
Contributor
|
Hi @hkyuni , Just want to confirm if you are still working on this issue |
Author
Yes I am on it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
close #1030
The system is idempotent (no duplicate badges per learner), integrates with the existing event indexer for auto awarding, and provides a complete frontend experience with earned/locked states and celebration notifications.