mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-08-04 22:53:05 -07:00
19 lines
536 B
JavaScript
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),
|
|
}),
|
|
);
|