mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-05 16:18:13 -07:00
global: add hash related datasets
This commit is contained in:
@@ -32,7 +32,10 @@
|
||||
* "Timestamp" |
|
||||
* "tx" |
|
||||
* "Type" |
|
||||
* "USD / (PetaHash / Second)" |
|
||||
* "USD/(TH/s)/day" |
|
||||
* "USD/(PH/s)/day" |
|
||||
* "Sats/(TH/s)/day" |
|
||||
* "Sats/(PH/s)/day" |
|
||||
* "USD" |
|
||||
* "Version" |
|
||||
* "WU" |
|
||||
@@ -839,11 +842,12 @@ function createUtils() {
|
||||
(!unit || thoroughUnitCheck) &&
|
||||
(id === "price_drawdown" ||
|
||||
id === "difficulty_adjustment" ||
|
||||
id.endsWith("oscillator") ||
|
||||
id.endsWith("dominance") ||
|
||||
id.endsWith("returns") ||
|
||||
id.endsWith("volatility") ||
|
||||
id.endsWith("cagr"))
|
||||
id.endsWith("_oscillator") ||
|
||||
id.endsWith("_dominance") ||
|
||||
id.endsWith("_returns") ||
|
||||
id.endsWith("_rebound") ||
|
||||
id.endsWith("_volatility") ||
|
||||
id.endsWith("_cagr"))
|
||||
) {
|
||||
setUnit("percentage");
|
||||
}
|
||||
@@ -980,6 +984,19 @@ function createUtils() {
|
||||
if ((!unit || thoroughUnitCheck) && id === "blockhash") {
|
||||
setUnit("Hash");
|
||||
}
|
||||
if ((!unit || thoroughUnitCheck) && id.startsWith("hash_price_phs")) {
|
||||
setUnit("USD/(PH/s)/day");
|
||||
}
|
||||
if ((!unit || thoroughUnitCheck) && id.startsWith("hash_price_ths")) {
|
||||
setUnit("USD/(TH/s)/day");
|
||||
}
|
||||
if ((!unit || thoroughUnitCheck) && id.startsWith("hash_value_phs")) {
|
||||
setUnit("Sats/(PH/s)/day");
|
||||
}
|
||||
if ((!unit || thoroughUnitCheck) && id.startsWith("hash_value_ths")) {
|
||||
setUnit("Sats/(TH/s)/day");
|
||||
}
|
||||
|
||||
if (
|
||||
(!unit || thoroughUnitCheck) &&
|
||||
(id.includes("days_between") ||
|
||||
|
||||
@@ -3752,6 +3752,24 @@ function createPartialOptions({ env, colors, vecIdToIndexes, pools }) {
|
||||
}),
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Halving",
|
||||
title: "Halving Epoch",
|
||||
bottom: [
|
||||
createBaseSeries({
|
||||
key: "halvingepoch",
|
||||
name: "Halving",
|
||||
}),
|
||||
createBaseSeries({
|
||||
key: "blocks_before_next_halving",
|
||||
name: "Before next",
|
||||
}),
|
||||
createBaseSeries({
|
||||
key: "days_before_next_halving",
|
||||
name: "Before next",
|
||||
}),
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Difficulty",
|
||||
title: "Difficulty",
|
||||
@@ -3762,13 +3780,8 @@ function createPartialOptions({ env, colors, vecIdToIndexes, pools }) {
|
||||
}),
|
||||
createBaseSeries({
|
||||
key: "difficultyepoch",
|
||||
name: "Epoch",
|
||||
name: "Difficulty",
|
||||
}),
|
||||
{
|
||||
key: "difficulty_adjustment",
|
||||
title: "Adjustment",
|
||||
type: "Baseline",
|
||||
},
|
||||
createBaseSeries({
|
||||
key: "blocks_before_next_difficulty_adjustment",
|
||||
name: "Before next",
|
||||
@@ -3779,6 +3792,17 @@ function createPartialOptions({ env, colors, vecIdToIndexes, pools }) {
|
||||
}),
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "adjustment",
|
||||
title: "Difficulty adjustment",
|
||||
bottom: [
|
||||
{
|
||||
key: "difficulty_adjustment",
|
||||
title: "difficulty change",
|
||||
type: "Baseline",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "hash",
|
||||
tree: [
|
||||
@@ -3824,16 +3848,80 @@ function createPartialOptions({ env, colors, vecIdToIndexes, pools }) {
|
||||
}),
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Halving Epoch",
|
||||
title: "Halving Epoch",
|
||||
bottom: [
|
||||
createBaseSeries({
|
||||
key: "halvingepoch",
|
||||
name: "Epoch",
|
||||
}),
|
||||
{
|
||||
name: "Price",
|
||||
title: "Hash Price",
|
||||
bottom: [
|
||||
createBaseSeries({
|
||||
key: "hash_price_ths",
|
||||
name: "Dollars",
|
||||
color: colors.emerald,
|
||||
}),
|
||||
createBaseSeries({
|
||||
key: "hash_price_phs",
|
||||
name: "Dollars",
|
||||
color: colors.emerald,
|
||||
}),
|
||||
createBaseSeries({
|
||||
key: "hash_price_rebound",
|
||||
name: "Rebound",
|
||||
color: colors.yellow,
|
||||
}),
|
||||
createBaseSeries({
|
||||
key: "hash_price_ths_min",
|
||||
name: "Min",
|
||||
color: colors.red,
|
||||
options: {
|
||||
lineStyle: 1,
|
||||
},
|
||||
}),
|
||||
createBaseSeries({
|
||||
key: "hash_price_phs_min",
|
||||
name: "Min",
|
||||
color: colors.red,
|
||||
options: {
|
||||
lineStyle: 1,
|
||||
},
|
||||
}),
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Value",
|
||||
title: "Hash Value",
|
||||
bottom: [
|
||||
createBaseSeries({
|
||||
key: "hash_value_ths",
|
||||
name: "Sats",
|
||||
color: colors.orange,
|
||||
}),
|
||||
createBaseSeries({
|
||||
key: "hash_value_phs",
|
||||
name: "Sats",
|
||||
color: colors.orange,
|
||||
}),
|
||||
createBaseSeries({
|
||||
key: "hash_value_rebound",
|
||||
name: "Rebound",
|
||||
color: colors.yellow,
|
||||
}),
|
||||
createBaseSeries({
|
||||
key: "hash_value_ths_min",
|
||||
name: "Min",
|
||||
color: colors.red,
|
||||
options: {
|
||||
lineStyle: 1,
|
||||
},
|
||||
}),
|
||||
createBaseSeries({
|
||||
key: "hash_value_phs_min",
|
||||
name: "Min",
|
||||
color: colors.red,
|
||||
options: {
|
||||
lineStyle: 1,
|
||||
},
|
||||
}),
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user