mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-26 09:44:45 -07:00
global: snapshot
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
* @typedef {Object} PartialChartOptionSpecific
|
||||
* @property {"chart"} [kind]
|
||||
* @property {Unit} [unit]
|
||||
* @property {string} [title]
|
||||
* @property {string} title
|
||||
* @property {AnyFetchedSeriesBlueprint[]} [top]
|
||||
* @property {AnyFetchedSeriesBlueprint[]} [bottom]
|
||||
* @typedef {PartialOption & PartialChartOptionSpecific} PartialChartOption
|
||||
@@ -668,7 +668,20 @@ function createPartialOptions(colors) {
|
||||
name: "Blocks",
|
||||
tree: [
|
||||
{
|
||||
name: "Block Interval",
|
||||
name: "Count",
|
||||
title: "Block Count",
|
||||
bottom: [
|
||||
{ key: "block-count", title: "Count", color: colors.bitcoin },
|
||||
{
|
||||
key: "total-block-count",
|
||||
title: "Total",
|
||||
color: colors.bitcoin,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Interval",
|
||||
title: "Block Interval",
|
||||
bottom: [
|
||||
{
|
||||
key: "block-interval",
|
||||
@@ -1066,6 +1079,8 @@ export function initOptions({
|
||||
anyPartial.unit = "Seconds";
|
||||
} else if (key.startsWith("sats-")) {
|
||||
anyPartial.unit = "Satoshis";
|
||||
} else if (key.includes("count")) {
|
||||
anyPartial.unit = "Count";
|
||||
} else {
|
||||
console.log(anyPartial);
|
||||
throw Error("Unit not set");
|
||||
|
||||
@@ -945,7 +945,7 @@ export function init({
|
||||
p3.innerHTML = `You would've been ${serProfitableDaysRatio} of the time profitable and ${serUnprofitableDaysRatio} of the time unprofitable.`;
|
||||
|
||||
signals.createEffect(
|
||||
() => 0.2368,
|
||||
() => 0.073,
|
||||
(lowestAnnual4YReturn) => {
|
||||
const serLowestAnnual4YReturn = c(
|
||||
"cyan",
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
//
|
||||
// File auto-generated, any modification will be overwritten
|
||||
//
|
||||
|
||||
/** @typedef {0} Height */
|
||||
/** @typedef {1} Dateindex */
|
||||
/** @typedef {2} Weekindex */
|
||||
@@ -72,7 +76,6 @@ export function createVecIdToIndexes() {
|
||||
"first-height": [Dateindex, Difficultyepoch, Halvingepoch],
|
||||
"first-monthindex": [Quarterindex, Yearindex],
|
||||
"first-multisigindex": [Height],
|
||||
"first-open": [Weekindex, Monthindex, Quarterindex, Yearindex, Decadeindex, Difficultyepoch],
|
||||
"first-opreturnindex": [Height],
|
||||
"first-p2pk33index": [Height],
|
||||
"first-p2pk65index": [Height],
|
||||
@@ -91,9 +94,8 @@ export function createVecIdToIndexes() {
|
||||
"fixed-timestamp": [Height],
|
||||
halvingepoch: [Height, Halvingepoch],
|
||||
height: [Addressindex, Height, Txindex],
|
||||
high: [Dateindex, Height],
|
||||
high: [Dateindex, Height, Weekindex, Monthindex, Quarterindex, Yearindex, Decadeindex, Difficultyepoch],
|
||||
"high-in-cents": [Dateindex, Height],
|
||||
"high-max": [Weekindex, Monthindex, Quarterindex, Yearindex, Decadeindex, Difficultyepoch],
|
||||
"inputs-count": [Txindex],
|
||||
"is-coinbase": [Txindex],
|
||||
"is-explicitly-rbf": [Txindex],
|
||||
@@ -105,13 +107,12 @@ export function createVecIdToIndexes() {
|
||||
"last-txoutindex": [Txindex],
|
||||
"last-yearindex": [Decadeindex],
|
||||
locktime: [Txindex],
|
||||
low: [Dateindex, Height],
|
||||
low: [Dateindex, Height, Weekindex, Monthindex, Quarterindex, Yearindex, Decadeindex, Difficultyepoch],
|
||||
"low-in-cents": [Dateindex, Height],
|
||||
"low-min": [Weekindex, Monthindex, Quarterindex, Yearindex, Decadeindex, Difficultyepoch],
|
||||
monthindex: [Dateindex, Monthindex],
|
||||
ohlc: [Dateindex, Height, Weekindex, Monthindex, Quarterindex, Yearindex, Decadeindex, Difficultyepoch],
|
||||
"ohlc-in-cents": [Dateindex, Height],
|
||||
open: [Dateindex, Height],
|
||||
open: [Dateindex, Height, Weekindex, Monthindex, Quarterindex, Yearindex, Decadeindex, Difficultyepoch],
|
||||
"open-in-cents": [Dateindex, Height],
|
||||
"outputs-count": [Txindex],
|
||||
p2pk33addressbytes: [P2PK33index],
|
||||
|
||||
Reference in New Issue
Block a user