mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-26 15:49:58 -07:00
global: utxos part 2
This commit is contained in:
@@ -270,8 +270,10 @@ export function init({
|
||||
?.timeScale()
|
||||
.subscribeVisibleLogicalRangeChange(
|
||||
utils.debounce((t) => {
|
||||
from.set(t.from);
|
||||
to.set(t.to);
|
||||
if (t) {
|
||||
from.set(t.from);
|
||||
to.set(t.to);
|
||||
}
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
@@ -739,7 +739,8 @@ function createUtils() {
|
||||
id.includes("fee") ||
|
||||
id.includes("coinbase") ||
|
||||
id.includes("subsidy") ||
|
||||
id.endsWith("stack")
|
||||
id.endsWith("stack") ||
|
||||
id.includes("supply")
|
||||
) {
|
||||
unit = "Sats";
|
||||
} else if (
|
||||
@@ -752,7 +753,8 @@ function createUtils() {
|
||||
id.includes("ath") ||
|
||||
id.includes("-sma") ||
|
||||
id.endsWith("-price") ||
|
||||
id.startsWith("price-")
|
||||
id.startsWith("price-") ||
|
||||
id.startsWith("realized-")
|
||||
) {
|
||||
unit = "USD";
|
||||
} else if (id.includes("count") || id.match(/v[1-3]/g)) {
|
||||
|
||||
@@ -1103,7 +1103,7 @@ function createPartialOptions(colors) {
|
||||
title: "Unspent Transaction Output Count",
|
||||
bottom: [
|
||||
createBaseSeries({
|
||||
key: "utxo-count-bis",
|
||||
key: "exact-utxo-count",
|
||||
name: "total",
|
||||
}),
|
||||
],
|
||||
@@ -1335,6 +1335,67 @@ function createPartialOptions(colors) {
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "UTXOs",
|
||||
tree: [
|
||||
{
|
||||
name: "supply",
|
||||
title: "Supply",
|
||||
bottom: [
|
||||
createBaseSeries({
|
||||
key: "supply",
|
||||
name: "Supply",
|
||||
}),
|
||||
createBaseSeries({
|
||||
key: "supply-in-btc",
|
||||
name: "Supply",
|
||||
}),
|
||||
createBaseSeries({
|
||||
key: "supply-in-usd",
|
||||
name: "Supply",
|
||||
}),
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "unspendable supply",
|
||||
title: "Unspendable Supply",
|
||||
bottom: [
|
||||
createBaseSeries({
|
||||
key: "unspendable-supply",
|
||||
name: "Supply",
|
||||
}),
|
||||
createBaseSeries({
|
||||
key: "unspendable-supply-in-btc",
|
||||
name: "Supply",
|
||||
}),
|
||||
createBaseSeries({
|
||||
key: "unspendable-supply-in-usd",
|
||||
name: "Supply",
|
||||
}),
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "count",
|
||||
title: "UTXO Count",
|
||||
bottom: [
|
||||
createBaseSeries({
|
||||
key: "utxo-count",
|
||||
name: "Count",
|
||||
}),
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "realized cap",
|
||||
title: "Realized Capitalization",
|
||||
bottom: [
|
||||
createBaseSeries({
|
||||
key: "realized-cap",
|
||||
name: "Realized Cap",
|
||||
}),
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -654,6 +654,7 @@ export function createVecIdToIndexes() {
|
||||
"emptyoutput-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"emptyoutput-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"emptyoutputindex": [EmptyOutputIndex],
|
||||
"exact-utxo-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"fee": [TxIndex],
|
||||
"fee-10p": [Height],
|
||||
"fee-25p": [Height],
|
||||
@@ -892,6 +893,7 @@ export function createVecIdToIndexes() {
|
||||
"price-8y-ago": [DateIndex, DecadeIndex, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"quarterindex": [MonthIndex, QuarterIndex],
|
||||
"rawlocktime": [TxIndex],
|
||||
"realized-cap": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"subsidy": [Height],
|
||||
"subsidy-10p": [DateIndex],
|
||||
"subsidy-25p": [DateIndex],
|
||||
@@ -922,6 +924,9 @@ export function createVecIdToIndexes() {
|
||||
"subsidy-median": [DateIndex],
|
||||
"subsidy-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"subsidy-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"supply": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"supply-in-btc": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"supply-in-usd": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"timestamp": [DateIndex, DecadeIndex, DifficultyEpoch, HalvingEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"timestamp-fixed": [Height],
|
||||
"total-block-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
@@ -1003,7 +1008,10 @@ export function createVecIdToIndexes() {
|
||||
"unknownoutput-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"unknownoutput-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"unknownoutputindex": [UnknownOutputIndex],
|
||||
"utxo-count-bis": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"unspendable-supply": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"unspendable-supply-in-btc": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"unspendable-supply-in-usd": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"utxo-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||
"value": [InputIndex, OutputIndex],
|
||||
"vbytes": [Height],
|
||||
"vsize": [TxIndex],
|
||||
|
||||
Reference in New Issue
Block a user