export interface TierContribution {
  unlocked: string;
  pending: string;
}

export interface ContributionBreakdown {
  theory: string;
  unlocked: string;
  pending: string;
  tier1: TierContribution;
  tier2: TierContribution;
  tier3: TierContribution;
}

export interface DetailedContribution {
  totalTrees: number;
  // 全网算力（理论值）
  networkTotalTheory: string;
  // 个人算力（70%）
  personalTheory: string;
  personalActual: string;
  // 运营账户（12%）
  operationTheory: string;
  operationActual: string;
  // 省公司（1%）
  provinceTheory: string;
  provinceActual: string;
  // 市公司（2%）
  cityTheory: string;
  cityActual: string;
  // 层级算力（7.5%）
  level: ContributionBreakdown;
  // 团队奖励算力（7.5%）
  bonus: ContributionBreakdown;
}

export interface DashboardStats {
  totalUsers: number;
  adoptedUsers: number;
  totalTrees: number;
  networkEffectiveContribution: string;
  networkTotalContribution: string;
  networkLevelPending: string;
  networkBonusPending: string;
  totalDistributed: string;
  totalBurned: string;
  circulationPool: string;
  currentPrice: string;
  priceChange24h: number;
  totalOrders: number;
  totalTrades: number;
  // 详细算力分解
  detailedContribution?: DetailedContribution;
}

export interface RealtimeData {
  currentMinuteDistribution: string;
  currentMinuteBurn: string;
  activeOrders: number;
  pendingTrades: number;
  lastPriceUpdateAt: string;
}

export interface KlineData {
  time: string;
  open: string;
  high: string;
  low: string;
  close: string;
  volume: string;
}

export interface ChartDataPoint {
  time: string;
  value: number;
}
