celo-poll/types/achievement.ts
2025-12-08 16:31:30 +03:00

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 },
]