const fairxOutcomes = [
  { id: "big", label: "大", range: "14—27", odds: 1.96, tone: "cyan" },
  { id: "small", label: "小", range: "0—13", odds: 1.96, tone: "violet" },
  { id: "odd", label: "单", range: "奇数", odds: 1.94, tone: "cyan" },
  { id: "even", label: "双", range: "偶数", odds: 1.94, tone: "violet" },
];

const fairxNumbers = Array.from({ length: 28 }, (_, index) => ({
  value: index,
  odds: index === 14 ? 9.9 : index % 4 === 0 ? 10.4 : 10.1,
}));

const fairxMarketRows = [
  ["0x92F1…8C41", "大", "1,000.00", "1.96", "960.00", "12 秒前"],
  ["0x67A4…19E2", "和值 14", "250.00", "9.90", "2,225.00", "38 秒前"],
  ["0x12B8…40D6", "双", "480.00", "1.94", "451.20", "1 分钟前"],
  ["0xB8D0…A112", "小单", "350.00", "3.74", "959.00", "2 分钟前"],
];

const fairxOracleVotes = [
  { node: "Northstar", value: "14", time: "21:04:02", state: "confirmed" },
  { node: "Atlas", value: "14", time: "21:04:03", state: "confirmed" },
  { node: "Axiom", value: "14", time: "21:04:03", state: "confirmed" },
  { node: "Meridian", value: "14", time: "21:04:05", state: "confirmed" },
  { node: "Beacon", value: "—", time: "等待中", state: "waiting" },
];

const fairxProofTransactions = [
  ["MarketCreated", "0x8f2b…ca71", "21:00:00", "已确认"],
  ["RuleCommitted", "0x39de…80c2", "21:00:01", "已确认"],
  ["MarketClosed", "0x1bc0…ff92", "21:03:00", "已确认"],
  ["OutcomeFinalized", "0x6df4…a921", "21:04:07", "已确认"],
  ["SettlementExecuted", "0x91ea…134f", "21:04:09", "已确认"],
];

const fairxChartHeights = [32, 38, 35, 44, 48, 42, 51, 55, 49, 58, 61, 57, 66, 72, 69, 76, 71, 79, 84, 80, 88, 86, 92, 95];

Object.assign(window, {
  fairxOutcomes,
  fairxNumbers,
  fairxMarketRows,
  fairxOracleVotes,
  fairxProofTransactions,
  fairxChartHeights,
});
