38 lines
2.3 KiB
TypeScript
38 lines
2.3 KiB
TypeScript
export interface Achievement {
|
|
id: string
|
|
name: string
|
|
description: string
|
|
emoji: string
|
|
category: 'voting' | 'winning' | 'social' | 'streak' | 'special'
|
|
requirement: number
|
|
reward?: string
|
|
}
|
|
|
|
export interface UserAchievement {
|
|
achievementId: string
|
|
unlockedAt: string
|
|
progress: number
|
|
}
|
|
|
|
export const ACHIEVEMENTS: Achievement[] = [
|
|
{ id: 'first_vote', name: 'First Vote', description: 'Cast your first vote', emoji: '๐ฏ', category: 'voting', requirement: 1 },
|
|
{ id: 'voter_10', name: 'Active Voter', description: 'Vote on 10 polls', emoji: '๐ณ๏ธ', category: 'voting', requirement: 10 },
|
|
{ id: 'voter_50', name: 'Poll Addict', description: 'Vote on 50 polls', emoji: '๐ฅ', category: 'voting', requirement: 50 },
|
|
{ id: 'voter_100', name: 'Century', description: 'Vote on 100 polls', emoji: '๐ฏ', category: 'voting', requirement: 100 },
|
|
|
|
{ id: 'first_win', name: 'First Win', description: 'Win your first poll', emoji: '๐', category: 'winning', requirement: 1 },
|
|
{ id: 'winner_10', name: 'Lucky Streak', description: 'Win 10 polls', emoji: '๐', category: 'winning', requirement: 10 },
|
|
{ id: 'winner_50', name: 'Oracle', description: 'Win 50 polls', emoji: '๐ฎ', category: 'winning', requirement: 50 },
|
|
|
|
{ id: 'streak_3', name: '3-Day Streak', description: 'Vote 3 days in a row', emoji: '๐ฅ', category: 'streak', requirement: 3 },
|
|
{ id: 'streak_7', name: 'Week Warrior', description: 'Vote 7 days in a row', emoji: 'โก', category: 'streak', requirement: 7 },
|
|
{ id: 'streak_30', name: 'Monthly Master', description: 'Vote 30 days in a row', emoji: '๐', category: 'streak', requirement: 30 },
|
|
|
|
{ id: 'social_10', name: 'Commentator', description: 'Post 10 comments', emoji: '๐ฌ', category: 'social', requirement: 10 },
|
|
{ id: 'social_follow_10', name: 'Networker', description: 'Follow 10 users', emoji: '๐ค', category: 'social', requirement: 10 },
|
|
{ id: 'referral_5', name: 'Influencer', description: 'Refer 5 friends', emoji: '๐', category: 'social', requirement: 5 },
|
|
|
|
{ id: 'whale', name: 'Whale', description: 'Vote with 1+ cUSD total', emoji: '๐', category: 'special', requirement: 1, reward: '0.05 cUSD' },
|
|
{ id: 'early_bird', name: 'Early Bird', description: 'Vote in first hour', emoji: '๐ฆ', category: 'special', requirement: 10 },
|
|
]
|