Skip to content

feat: Add achievement badge NFT system - #1044

Open
hkyuni wants to merge 3 commits into
bakeronchain:mainfrom
hkyuni:feature/achievement-badges
Open

feat: Add achievement badge NFT system#1044
hkyuni wants to merge 3 commits into
bakeronchain:mainfrom
hkyuni:feature/achievement-badges

Conversation

@hkyuni

@hkyuni hkyuni commented Jul 18, 2026

Copy link
Copy Markdown

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.

- 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
@Anuoluwapo25

Copy link
Copy Markdown
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
@Anuoluwapo25

Copy link
Copy Markdown
Contributor

Hi @hkyuni , Just want to confirm if you are still working on this issue

@hkyuni

hkyuni commented Jul 27, 2026

Copy link
Copy Markdown
Author

Hi @hkyuni , Just want to confirm if you are still working on this issue

Yes I am on it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Achievement badge NFTs — soulbound badges for learning milestones

2 participants