Files
brk/website/scripts/options/age-ranges.js
T
2026-07-29 10:50:14 +02:00

19 lines
536 B
JavaScript

import { entries } from "../utils/array.js";
import { brk } from "../utils/client.js";
import { colors } from "../utils/colors.js";
/**
* Shared display metadata for every UTXO age range.
*
* Consumers attach their own tree because Distribution, Cointime, and
* Coinflow expose different metrics for the same ranges.
*/
export const ageRanges = entries(brk.AGE_RANGE_NAMES).map(
([key, names], index, all) => ({
key,
name: names.short,
title: `UTXOs ${names.long}`,
color: colors.at(index, all.length),
}),
);