app: unignore paths.d.ts to allow to run app without needing the server first

This commit is contained in:
k
2024-08-08 09:48:36 +02:00
parent 1273da6e71
commit 597a750fff
21 changed files with 255 additions and 242 deletions
-1
View File
@@ -7,4 +7,3 @@ visualizer
# Local Netlify folder
.netlify
.wrangler
paths.d.ts
+1 -1
View File
@@ -6,8 +6,8 @@
"type": "module",
"scripts": {
"dev": "($npm_execpath outdated || read -p \"Press enter to ignore...\") && vite --host",
"build": "vite build",
"check": "tsc --noEmit --skipLibCheck --pretty",
"build": "$npm_execpath run check && vite build",
"check-watch": "$npm_execpath check --watch",
"format": "prettier --write './src'",
"prod": "$npm_execpath run build && vite preview --host",
@@ -155,7 +155,7 @@ export function Chart({
createEffect(on([exactRange, dark], debouncedSetMinMaxMarkers));
if (chartIndex === 0) {
const datasetPath: AnyDatasetPath = `/${scale}-to-price`;
const datasetPath: AnyDatasetPath = `${scale}-to-price`;
const dataset = datasets.getOrImport(scale, datasetPath);
+2 -2
View File
@@ -19,13 +19,13 @@ export function createResourceDataset<
const baseURL = `${
USE_LOCAL_URL && location.hostname === "localhost" ? LOCAL_URL : WEB_URL
}${path}`;
}/${path}`;
const backupURL = `${
USE_LOCAL_URL && location.hostname === "localhost"
? LOCAL_URL
: BACKUP_WEB_URL
}${path}`;
}/${path}`;
return createRoot((dispose) => {
const fetchedJSONs = new Array(
+5 -5
View File
@@ -21,7 +21,7 @@ export function createPresets(scale: ResourceScale): PartialPresetFolder {
{
title: `Total Non Empty Address`,
color: colors.bitcoin,
datasetPath: `/${scale}-to-address-count`,
datasetPath: `${scale}-to-address-count`,
},
],
},
@@ -36,7 +36,7 @@ export function createPresets(scale: ResourceScale): PartialPresetFolder {
{
title: `New Addresses`,
color: colors.bitcoin,
datasetPath: `/${scale}-to-new-addresses`,
datasetPath: `${scale}-to-new-addresses`,
},
],
},
@@ -51,7 +51,7 @@ export function createPresets(scale: ResourceScale): PartialPresetFolder {
{
title: `Total Addresses Created`,
color: colors.bitcoin,
datasetPath: `/${scale}-to-created-addresses`,
datasetPath: `${scale}-to-created-addresses`,
},
],
},
@@ -66,7 +66,7 @@ export function createPresets(scale: ResourceScale): PartialPresetFolder {
{
title: `Total Empty Addresses`,
color: colors.darkWhite,
datasetPath: `/${scale}-to-empty-addresses`,
datasetPath: `${scale}-to-empty-addresses`,
},
],
},
@@ -174,7 +174,7 @@ export function createAddressCountPreset({
const addressCount: SeriesConfig = {
title: "Address Count",
color,
datasetPath: `/${scale}-to-${datasetId}-address-count`,
datasetPath: `${scale}-to-${datasetId}-address-count`,
};
return {
+50 -50
View File
@@ -18,7 +18,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Height",
color: colors.bitcoin,
datasetPath: `/date-to-last-height`,
datasetPath: `date-to-last-height`,
},
],
},
@@ -37,7 +37,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Target",
color: colors.white,
datasetPath: `/date-to-blocks-mined-1d-target`,
datasetPath: `date-to-blocks-mined-1d-target`,
options: {
lineStyle: 3,
},
@@ -45,18 +45,18 @@ export function createPresets(scale: ResourceScale) {
{
title: "1W Avg.",
color: colors.momentumYellow,
datasetPath: `/date-to-blocks-mined-1w-sma`,
datasetPath: `date-to-blocks-mined-1w-sma`,
defaultVisible: false,
},
{
title: "1M Avg.",
color: colors.bitcoin,
datasetPath: `/date-to-blocks-mined-1m-sma`,
datasetPath: `date-to-blocks-mined-1m-sma`,
},
{
title: "Mined",
color: colors.darkBitcoin,
datasetPath: `/date-to-blocks-mined`,
datasetPath: `date-to-blocks-mined`,
},
],
},
@@ -71,7 +71,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Target",
color: colors.white,
datasetPath: `/date-to-blocks-mined-1w-target`,
datasetPath: `date-to-blocks-mined-1w-target`,
options: {
lineStyle: 3,
},
@@ -79,7 +79,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Sum Mined",
color: colors.bitcoin,
datasetPath: `/date-to-blocks-mined-1w-sum`,
datasetPath: `date-to-blocks-mined-1w-sum`,
},
],
},
@@ -94,7 +94,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Target",
color: colors.white,
datasetPath: `/date-to-blocks-mined-1m-target`,
datasetPath: `date-to-blocks-mined-1m-target`,
options: {
lineStyle: 3,
},
@@ -102,7 +102,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Sum Mined",
color: colors.bitcoin,
datasetPath: `/date-to-blocks-mined-1m-sum`,
datasetPath: `date-to-blocks-mined-1m-sum`,
},
],
},
@@ -117,7 +117,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Target",
color: colors.white,
datasetPath: `/date-to-blocks-mined-1y-target`,
datasetPath: `date-to-blocks-mined-1y-target`,
options: {
lineStyle: 3,
},
@@ -125,7 +125,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Sum Mined",
color: colors.bitcoin,
datasetPath: `/date-to-blocks-mined-1y-sum`,
datasetPath: `date-to-blocks-mined-1y-sum`,
},
],
},
@@ -140,7 +140,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Mined",
color: colors.bitcoin,
datasetPath: `/date-to-total-blocks-mined`,
datasetPath: `date-to-total-blocks-mined`,
},
],
},
@@ -154,15 +154,15 @@ export function createPresets(scale: ResourceScale) {
title: "Block Size",
color: colors.darkWhite,
unit: "Megabytes",
keySum: "/date-to-block-size-1d-sum",
keyAverage: "/date-to-block-size-1d-average",
keyMax: "/date-to-block-size-1d-max",
key90p: "/date-to-block-size-1d-90p",
key75p: "/date-to-block-size-1d-75p",
keyMedian: "/date-to-block-size-1d-median",
key25p: "/date-to-block-size-1d-25p",
key10p: "/date-to-block-size-1d-10p",
keyMin: "/date-to-block-size-1d-min",
keySum: "date-to-block-size-1d-sum",
keyAverage: "date-to-block-size-1d-average",
keyMax: "date-to-block-size-1d-max",
key90p: "date-to-block-size-1d-90p",
key75p: "date-to-block-size-1d-75p",
keyMedian: "date-to-block-size-1d-median",
key25p: "date-to-block-size-1d-25p",
key10p: "date-to-block-size-1d-10p",
keyMin: "date-to-block-size-1d-min",
}),
},
{
@@ -173,14 +173,14 @@ export function createPresets(scale: ResourceScale) {
title: "Block Weight",
color: colors.darkWhite,
unit: "Weight",
keyAverage: "/date-to-block-weight-1d-average",
keyMax: "/date-to-block-weight-1d-max",
key90p: "/date-to-block-weight-1d-90p",
key75p: "/date-to-block-weight-1d-75p",
keyMedian: "/date-to-block-weight-1d-median",
key25p: "/date-to-block-weight-1d-25p",
key10p: "/date-to-block-weight-1d-10p",
keyMin: "/date-to-block-weight-1d-min",
keyAverage: "date-to-block-weight-1d-average",
keyMax: "date-to-block-weight-1d-max",
key90p: "date-to-block-weight-1d-90p",
key75p: "date-to-block-weight-1d-75p",
keyMedian: "date-to-block-weight-1d-median",
key25p: "date-to-block-weight-1d-25p",
key10p: "date-to-block-weight-1d-10p",
keyMin: "date-to-block-weight-1d-min",
}),
},
{
@@ -191,14 +191,14 @@ export function createPresets(scale: ResourceScale) {
title: "Block VBytes",
color: colors.darkWhite,
unit: "Virtual Bytes",
keyAverage: "/date-to-block-vbytes-1d-average",
keyMax: "/date-to-block-vbytes-1d-max",
key90p: "/date-to-block-vbytes-1d-90p",
key75p: "/date-to-block-vbytes-1d-75p",
keyMedian: "/date-to-block-vbytes-1d-median",
key25p: "/date-to-block-vbytes-1d-25p",
key10p: "/date-to-block-vbytes-1d-10p",
keyMin: "/date-to-block-vbytes-1d-min",
keyAverage: "date-to-block-vbytes-1d-average",
keyMax: "date-to-block-vbytes-1d-max",
key90p: "date-to-block-vbytes-1d-90p",
key75p: "date-to-block-vbytes-1d-75p",
keyMedian: "date-to-block-vbytes-1d-median",
key25p: "date-to-block-vbytes-1d-25p",
key10p: "date-to-block-vbytes-1d-10p",
keyMin: "date-to-block-vbytes-1d-min",
}),
},
{
@@ -209,14 +209,14 @@ export function createPresets(scale: ResourceScale) {
title: "Block Interval",
color: colors.darkWhite,
unit: "Seconds",
keyAverage: "/date-to-block-interval-1d-average",
keyMax: "/date-to-block-interval-1d-max",
key90p: "/date-to-block-interval-1d-90p",
key75p: "/date-to-block-interval-1d-75p",
keyMedian: "/date-to-block-interval-1d-median",
key25p: "/date-to-block-interval-1d-25p",
key10p: "/date-to-block-interval-1d-10p",
keyMin: "/date-to-block-interval-1d-min",
keyAverage: "date-to-block-interval-1d-average",
keyMax: "date-to-block-interval-1d-max",
key90p: "date-to-block-interval-1d-90p",
key75p: "date-to-block-interval-1d-75p",
keyMedian: "date-to-block-interval-1d-median",
key25p: "date-to-block-interval-1d-25p",
key10p: "date-to-block-interval-1d-10p",
keyMin: "date-to-block-interval-1d-min",
}),
},
]
@@ -232,7 +232,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Size",
color: colors.darkWhite,
datasetPath: `/height-to-block-size`,
datasetPath: `height-to-block-size`,
},
],
},
@@ -247,7 +247,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Weight",
color: colors.darkWhite,
datasetPath: `/height-to-block-weight`,
datasetPath: `height-to-block-weight`,
},
],
},
@@ -262,7 +262,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "VBytes",
color: colors.darkWhite,
datasetPath: `/height-to-block-vbytes`,
datasetPath: `height-to-block-vbytes`,
},
],
},
@@ -277,7 +277,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Interval",
color: colors.darkWhite,
datasetPath: `/height-to-block-interval`,
datasetPath: `height-to-block-interval`,
},
],
},
@@ -293,7 +293,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Size",
color: colors.darkWhite,
datasetPath: `/${scale}-to-cumulative-block-size`,
datasetPath: `${scale}-to-cumulative-block-size`,
},
],
},
+66 -66
View File
@@ -20,27 +20,27 @@ export function createPresets(scale: ResourceScale) {
{
title: "Vaulted Price",
color: colors.vaultedness,
datasetPath: `/${scale}-to-vaulted-price`,
datasetPath: `${scale}-to-vaulted-price`,
},
{
title: "Active Price",
color: colors.liveliness,
datasetPath: `/${scale}-to-active-price`,
datasetPath: `${scale}-to-active-price`,
},
{
title: "True Market Mean",
color: colors.trueMarketMeanPrice,
datasetPath: `/${scale}-to-true-market-mean`,
datasetPath: `${scale}-to-true-market-mean`,
},
{
title: "Realized Price",
color: colors.bitcoin,
datasetPath: `/${scale}-to-realized-price`,
datasetPath: `${scale}-to-realized-price`,
},
{
title: "Cointime",
color: colors.cointimePrice,
datasetPath: `/${scale}-to-cointime-price`,
datasetPath: `${scale}-to-cointime-price`,
},
],
},
@@ -58,16 +58,16 @@ export function createPresets(scale: ResourceScale) {
{
title: "Active Price",
color: colors.liveliness,
datasetPath: `/${scale}-to-active-price`,
datasetPath: `${scale}-to-active-price`,
},
],
},
createRatioFolder({
color: colors.liveliness,
ratioDatasetPath: `/${scale}-to-market-price-to-active-price-ratio`,
ratioDatasetPath: `${scale}-to-market-price-to-active-price-ratio`,
scale,
title: "Active Price",
valueDatasetPath: `/${scale}-to-active-price`,
valueDatasetPath: `${scale}-to-active-price`,
}),
],
},
@@ -85,16 +85,16 @@ export function createPresets(scale: ResourceScale) {
{
title: "Vaulted Price",
color: colors.vaultedness,
datasetPath: `/${scale}-to-vaulted-price`,
datasetPath: `${scale}-to-vaulted-price`,
},
],
},
createRatioFolder({
color: colors.vaultedness,
ratioDatasetPath: `/${scale}-to-market-price-to-vaulted-price-ratio`,
ratioDatasetPath: `${scale}-to-market-price-to-vaulted-price-ratio`,
scale,
title: "Vaulted Price",
valueDatasetPath: `/${scale}-to-vaulted-price`,
valueDatasetPath: `${scale}-to-vaulted-price`,
}),
],
},
@@ -112,16 +112,16 @@ export function createPresets(scale: ResourceScale) {
{
title: "True Market Mean",
color: colors.trueMarketMeanPrice,
datasetPath: `/${scale}-to-true-market-mean`,
datasetPath: `${scale}-to-true-market-mean`,
},
],
},
createRatioFolder({
color: colors.liveliness,
ratioDatasetPath: `/${scale}-to-market-price-to-true-market-mean-ratio`,
ratioDatasetPath: `${scale}-to-market-price-to-true-market-mean-ratio`,
scale,
title: "True Market Mean",
valueDatasetPath: `/${scale}-to-true-market-mean`,
valueDatasetPath: `${scale}-to-true-market-mean`,
}),
],
},
@@ -139,16 +139,16 @@ export function createPresets(scale: ResourceScale) {
{
title: "Cointime",
color: colors.cointimePrice,
datasetPath: `/${scale}-to-cointime-price`,
datasetPath: `${scale}-to-cointime-price`,
},
],
},
createRatioFolder({
color: colors.cointimePrice,
ratioDatasetPath: `/${scale}-to-market-price-to-cointime-price-ratio`,
ratioDatasetPath: `${scale}-to-market-price-to-cointime-price-ratio`,
scale,
title: "Cointime",
valueDatasetPath: `/${scale}-to-cointime-price`,
valueDatasetPath: `${scale}-to-cointime-price`,
}),
],
},
@@ -168,22 +168,22 @@ export function createPresets(scale: ResourceScale) {
{
title: "Market Cap",
color: colors.white,
datasetPath: `/${scale}-to-market-cap`,
datasetPath: `${scale}-to-market-cap`,
},
{
title: "Realized Cap",
color: colors.realizedCap,
datasetPath: `/${scale}-to-realized-cap`,
datasetPath: `${scale}-to-realized-cap`,
},
{
title: "Investor Cap",
color: colors.investorCap,
datasetPath: `/${scale}-to-investor-cap`,
datasetPath: `${scale}-to-investor-cap`,
},
{
title: "Thermo Cap",
color: colors.thermoCap,
datasetPath: `/${scale}-to-thermo-cap`,
datasetPath: `${scale}-to-thermo-cap`,
},
],
},
@@ -198,7 +198,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Thermo Cap",
color: colors.thermoCap,
datasetPath: `/${scale}-to-thermo-cap`,
datasetPath: `${scale}-to-thermo-cap`,
},
],
},
@@ -213,7 +213,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Investor Cap",
color: colors.investorCap,
datasetPath: `/${scale}-to-investor-cap`,
datasetPath: `${scale}-to-investor-cap`,
},
],
},
@@ -228,7 +228,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Ratio",
color: colors.bitcoin,
datasetPath: `/${scale}-to-thermo-cap-to-investor-cap-ratio`,
datasetPath: `${scale}-to-thermo-cap-to-investor-cap-ratio`,
},
],
},
@@ -248,17 +248,17 @@ export function createPresets(scale: ResourceScale) {
{
title: "Coinblocks Created",
color: colors.coinblocksCreated,
datasetPath: `/${scale}-to-coinblocks-created`,
datasetPath: `${scale}-to-coinblocks-created`,
},
{
title: "Coinblocks Destroyed",
color: colors.coinblocksDestroyed,
datasetPath: `/${scale}-to-coinblocks-destroyed`,
datasetPath: `${scale}-to-coinblocks-destroyed`,
},
{
title: "Coinblocks Stored",
color: colors.coinblocksStored,
datasetPath: `/${scale}-to-coinblocks-stored`,
datasetPath: `${scale}-to-coinblocks-stored`,
},
],
},
@@ -273,7 +273,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Coinblocks Created",
color: colors.coinblocksCreated,
datasetPath: `/${scale}-to-coinblocks-created`,
datasetPath: `${scale}-to-coinblocks-created`,
},
],
},
@@ -288,7 +288,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Coinblocks Destroyed",
color: colors.coinblocksDestroyed,
datasetPath: `/${scale}-to-coinblocks-destroyed`,
datasetPath: `${scale}-to-coinblocks-destroyed`,
},
],
},
@@ -303,7 +303,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Coinblocks Stored",
color: colors.coinblocksStored,
datasetPath: `/${scale}-to-coinblocks-stored`,
datasetPath: `${scale}-to-coinblocks-stored`,
},
],
},
@@ -323,17 +323,17 @@ export function createPresets(scale: ResourceScale) {
{
title: "Cumulative Coinblocks Created",
color: colors.coinblocksCreated,
datasetPath: `/${scale}-to-cumulative-coinblocks-created`,
datasetPath: `${scale}-to-cumulative-coinblocks-created`,
},
{
title: "Cumulative Coinblocks Destroyed",
color: colors.coinblocksDestroyed,
datasetPath: `/${scale}-to-cumulative-coinblocks-destroyed`,
datasetPath: `${scale}-to-cumulative-coinblocks-destroyed`,
},
{
title: "Cumulative Coinblocks Stored",
color: colors.coinblocksStored,
datasetPath: `/${scale}-to-cumulative-coinblocks-stored`,
datasetPath: `${scale}-to-cumulative-coinblocks-stored`,
},
],
},
@@ -348,7 +348,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Cumulative Coinblocks Created",
color: colors.coinblocksCreated,
datasetPath: `/${scale}-to-cumulative-coinblocks-created`,
datasetPath: `${scale}-to-cumulative-coinblocks-created`,
},
],
},
@@ -363,7 +363,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Cumulative Coinblocks Destroyed",
color: colors.coinblocksDestroyed,
datasetPath: `/${scale}-to-cumulative-coinblocks-destroyed`,
datasetPath: `${scale}-to-cumulative-coinblocks-destroyed`,
},
],
},
@@ -378,7 +378,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Cumulative Coinblocks Stored",
color: colors.coinblocksStored,
datasetPath: `/${scale}-to-cumulative-coinblocks-stored`,
datasetPath: `${scale}-to-cumulative-coinblocks-stored`,
},
],
},
@@ -398,7 +398,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Liveliness",
color: colors.liveliness,
datasetPath: `/${scale}-to-liveliness`,
datasetPath: `${scale}-to-liveliness`,
},
],
},
@@ -413,7 +413,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Vaultedness",
color: colors.vaultedness,
datasetPath: `/${scale}-to-vaultedness`,
datasetPath: `${scale}-to-vaultedness`,
},
],
},
@@ -428,12 +428,12 @@ export function createPresets(scale: ResourceScale) {
{
title: "Liveliness",
color: colors.liveliness,
datasetPath: `/${scale}-to-liveliness`,
datasetPath: `${scale}-to-liveliness`,
},
{
title: "Vaultedness",
color: colors.vaultedness,
datasetPath: `/${scale}-to-vaultedness`,
datasetPath: `${scale}-to-vaultedness`,
},
],
},
@@ -448,7 +448,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Activity To Vaultedness Ratio",
color: colors.activityToVaultednessRatio,
datasetPath: `/${scale}-to-activity-to-vaultedness-ratio`,
datasetPath: `${scale}-to-activity-to-vaultedness-ratio`,
},
],
},
@@ -463,12 +463,12 @@ export function createPresets(scale: ResourceScale) {
{
title: "Concurrent Liveliness 14d Median",
color: colors.liveliness,
datasetPath: `/${scale}-to-concurrent-liveliness-2w-median`,
datasetPath: `${scale}-to-concurrent-liveliness-2w-median`,
},
{
title: "Concurrent Liveliness",
color: colors.darkLiveliness,
datasetPath: `/${scale}-to-concurrent-liveliness`,
datasetPath: `${scale}-to-concurrent-liveliness`,
},
],
},
@@ -484,13 +484,13 @@ export function createPresets(scale: ResourceScale) {
title: "Liveliness Incremental Change",
color: colors.darkLiveliness,
seriesType: SeriesType.Based,
datasetPath: `/${scale}-to-liveliness-net-change`,
datasetPath: `${scale}-to-liveliness-net-change`,
},
{
title: "Liveliness Incremental Change 14 Day Median",
color: colors.liveliness,
seriesType: SeriesType.Based,
datasetPath: `/${scale}-to-liveliness-net-change-2w-median`,
datasetPath: `${scale}-to-liveliness-net-change-2w-median`,
},
],
},
@@ -510,7 +510,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Vaulted Supply",
color: colors.vaultedness,
datasetPath: `/${scale}-to-vaulted-supply`,
datasetPath: `${scale}-to-vaulted-supply`,
},
],
},
@@ -525,7 +525,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Active Supply",
color: colors.liveliness,
datasetPath: `/${scale}-to-active-supply`,
datasetPath: `${scale}-to-active-supply`,
},
],
},
@@ -540,17 +540,17 @@ export function createPresets(scale: ResourceScale) {
{
title: "Circulating Supply",
color: colors.coinblocksCreated,
datasetPath: `/${scale}-to-supply`,
datasetPath: `${scale}-to-supply`,
},
{
title: "Vaulted Supply",
color: colors.vaultedness,
datasetPath: `/${scale}-to-vaulted-supply`,
datasetPath: `${scale}-to-vaulted-supply`,
},
{
title: "Active Supply",
color: colors.liveliness,
datasetPath: `/${scale}-to-active-supply`,
datasetPath: `${scale}-to-active-supply`,
},
],
},
@@ -595,7 +595,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Vaulted Supply Net Change",
color: colors.vaultedness,
datasetPath: `/${scale}-to-vaulted-supply-net-change`,
datasetPath: `${scale}-to-vaulted-supply-net-change`,
},
],
},
@@ -610,7 +610,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Active Supply Net Change",
color: colors.liveliness,
datasetPath: `/${scale}-to-active-supply-net-change`,
datasetPath: `${scale}-to-active-supply-net-change`,
},
],
},
@@ -625,14 +625,14 @@ export function createPresets(scale: ResourceScale) {
{
title: "Active Supply Net Change",
color: colors.liveliness,
datasetPath: `/${scale}-to-active-supply-3m-net-change`,
datasetPath: `${scale}-to-active-supply-3m-net-change`,
seriesType: SeriesType.Based,
},
{
title: "Vaulted Supply Net Change",
color: colors.vaultedPrice,
seriesType: SeriesType.Based,
datasetPath: `/${scale}-to-vaulted-supply-3m-net-change`,
datasetPath: `${scale}-to-vaulted-supply-3m-net-change`,
},
],
},
@@ -680,7 +680,7 @@ export function createPresets(scale: ResourceScale) {
// id: 'vaulting-rate',
// title: 'Vaulting Rate',
// color: colors.vaultedness,
// dataset: `/${scale}-to-vaultingRate,
// dataset: `${scale}-to-vaultingRate,
// },
// {
// id: 'nominal-inflation-rate',
@@ -727,7 +727,7 @@ export function createPresets(scale: ResourceScale) {
// // id: 'active',
// // title: 'Active Supply',
// // color: colors.liveliness,
// // dataset: `/${scale}-to-activeSupply,
// // dataset: `${scale}-to-activeSupply,
// // },
// ],
// })
@@ -745,17 +745,17 @@ export function createPresets(scale: ResourceScale) {
{
title: "Circulating Supply",
color: colors.coinblocksCreated,
datasetPath: `/${scale}-to-supply`,
datasetPath: `${scale}-to-supply`,
},
{
title: "Vaulted Supply",
color: colors.vaultedness,
datasetPath: `/${scale}-to-vaulted-supply`,
datasetPath: `${scale}-to-vaulted-supply`,
},
{
title: "Supply in profit",
color: colors.bitcoin,
datasetPath: `/${scale}-to-supply-in-profit`,
datasetPath: `${scale}-to-supply-in-profit`,
},
],
},
@@ -770,17 +770,17 @@ export function createPresets(scale: ResourceScale) {
{
title: "Circulating Supply",
color: colors.coinblocksCreated,
datasetPath: `/${scale}-to-supply`,
datasetPath: `${scale}-to-supply`,
},
{
title: "Active Supply",
color: colors.liveliness,
datasetPath: `/${scale}-to-active-supply`,
datasetPath: `${scale}-to-active-supply`,
},
{
title: "Supply in Loss",
color: colors.bitcoin,
datasetPath: `/${scale}-to-supply-in-loss`,
datasetPath: `${scale}-to-supply-in-loss`,
},
],
},
@@ -797,12 +797,12 @@ export function createPresets(scale: ResourceScale) {
{
title: "Cointime Adjusted",
color: colors.coinblocksCreated,
datasetPath: `/${scale}-to-cointime-adjusted-yearly-inflation-rate`,
datasetPath: `${scale}-to-cointime-adjusted-yearly-inflation-rate`,
},
{
title: "Nominal",
color: colors.bitcoin,
datasetPath: `/${scale}-to-yearly-inflation-rate`,
datasetPath: `${scale}-to-yearly-inflation-rate`,
},
],
},
@@ -817,12 +817,12 @@ export function createPresets(scale: ResourceScale) {
{
title: "Cointime Adjusted",
color: colors.coinblocksCreated,
datasetPath: `/${scale}-to-cointime-adjusted-velocity`,
datasetPath: `${scale}-to-cointime-adjusted-velocity`,
},
{
title: "Nominal",
color: colors.bitcoin,
datasetPath: `/${scale}-to-transaction-velocity`,
datasetPath: `${scale}-to-transaction-velocity`,
},
],
},
+3 -3
View File
@@ -23,20 +23,20 @@ export function createPresets(scale: ResourceScale) {
{
title: `24h`,
color: colors.up_to_1d,
datasetPath: `/${scale}-to-up-to-1d-supply-to-circulating-supply-ratio`,
datasetPath: `${scale}-to-up-to-1d-supply-to-circulating-supply-ratio`,
},
...fromXToYCohorts.map(({ key, id, name, legend }) => ({
title: legend,
color: colors[key],
datasetPath:
`/${scale}-to-${id}-supply-to-circulating-supply-ratio` as const,
`${scale}-to-${id}-supply-to-circulating-supply-ratio` as const,
})),
{
title: `15y+`,
color: colors.from_15y,
datasetPath: `/${scale}-to-from-15y-supply-to-circulating-supply-ratio`,
datasetPath: `${scale}-to-from-15y-supply-to-circulating-supply-ratio`,
},
],
},
@@ -17,7 +17,7 @@ export function createPresets(scale: ResourceScale): PartialPresetFolder {
top: averages.map((average) => ({
title: average.key.toUpperCase(),
color: colors[`_${average.key}`],
datasetPath: `/${scale}-to-price-${average.key}-sma`,
datasetPath: `${scale}-to-price-${average.key}-sma`,
})),
},
...averages.map(({ name, key }) =>
@@ -60,15 +60,15 @@ function createPresetFolder({
{
title: `SMA`,
color,
datasetPath: `/${scale}-to-price-${key}-sma`,
datasetPath: `${scale}-to-price-${key}-sma`,
},
],
},
createRatioFolder({
scale,
color,
ratioDatasetPath: `/${scale}-to-market-price-to-price-${key}-sma-ratio`,
valueDatasetPath: `/${scale}-to-price-${key}-sma`,
ratioDatasetPath: `${scale}-to-market-price-to-price-${key}-sma-ratio`,
valueDatasetPath: `${scale}-to-price-${key}-sma`,
title,
}),
],
+1 -1
View File
@@ -25,7 +25,7 @@ export function createPresets(scale: ResourceScale) {
bottom: [
{
title: "Market Cap.",
datasetPath: `/${scale}-to-market-cap`,
datasetPath: `${scale}-to-market-cap`,
color: colors.bitcoin,
},
],
@@ -61,7 +61,7 @@ function createPreset({
{
title: `Return`,
seriesType: SeriesType.Based,
datasetPath: `/date-to-price-${key}-return`,
datasetPath: `date-to-price-${key}-return`,
},
],
};
+37 -37
View File
@@ -24,7 +24,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Last",
color: colors.bitcoin,
datasetPath: `/${scale}-to-last-coinbase`,
datasetPath: `${scale}-to-last-coinbase`,
},
],
},
@@ -39,7 +39,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Last",
color: colors.dollars,
datasetPath: `/${scale}-to-last-coinbase-in-dollars`,
datasetPath: `${scale}-to-last-coinbase-in-dollars`,
},
],
},
@@ -60,7 +60,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Sum",
color: colors.bitcoin,
datasetPath: `/${scale}-to-coinbase`,
datasetPath: `${scale}-to-coinbase`,
},
],
},
@@ -75,7 +75,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Sum",
color: colors.dollars,
datasetPath: `/${scale}-to-coinbase-in-dollars`,
datasetPath: `${scale}-to-coinbase-in-dollars`,
},
],
},
@@ -96,7 +96,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Sum",
color: colors.bitcoin,
datasetPath: `/${scale}-to-coinbase-1y-sum`,
datasetPath: `${scale}-to-coinbase-1y-sum`,
},
],
},
@@ -111,7 +111,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Sum",
color: colors.dollars,
datasetPath: `/${scale}-to-coinbase-in-dollars-1y-sum`,
datasetPath: `${scale}-to-coinbase-in-dollars-1y-sum`,
},
],
},
@@ -132,7 +132,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Coinbases",
color: colors.bitcoin,
datasetPath: `/${scale}-to-cumulative-coinbase`,
datasetPath: `${scale}-to-cumulative-coinbase`,
},
],
},
@@ -147,7 +147,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Coinbases",
color: colors.dollars,
datasetPath: `/${scale}-to-cumulative-coinbase-in-dollars`,
datasetPath: `${scale}-to-cumulative-coinbase-in-dollars`,
},
],
},
@@ -177,7 +177,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Last",
color: colors.bitcoin,
datasetPath: `/${scale}-to-last-subsidy`,
datasetPath: `${scale}-to-last-subsidy`,
},
],
},
@@ -192,7 +192,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Last",
color: colors.dollars,
datasetPath: `/${scale}-to-last-subsidy-in-dollars`,
datasetPath: `${scale}-to-last-subsidy-in-dollars`,
},
],
},
@@ -213,7 +213,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Sum",
color: colors.bitcoin,
datasetPath: `/${scale}-to-subsidy`,
datasetPath: `${scale}-to-subsidy`,
},
],
},
@@ -228,7 +228,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Sum",
color: colors.dollars,
datasetPath: `/${scale}-to-subsidy-in-dollars`,
datasetPath: `${scale}-to-subsidy-in-dollars`,
},
],
},
@@ -249,7 +249,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Sum",
color: colors.bitcoin,
datasetPath: `/${scale}-to-subsidy-1y-sum`,
datasetPath: `${scale}-to-subsidy-1y-sum`,
},
],
},
@@ -264,7 +264,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Sum",
color: colors.dollars,
datasetPath: `/${scale}-to-subsidy-in-dollars-1y-sum`,
datasetPath: `${scale}-to-subsidy-in-dollars-1y-sum`,
},
],
},
@@ -285,7 +285,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Subsidies",
color: colors.bitcoin,
datasetPath: `/${scale}-to-cumulative-subsidy`,
datasetPath: `${scale}-to-cumulative-subsidy`,
},
],
},
@@ -300,7 +300,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Subsidies",
color: colors.dollars,
datasetPath: `/${scale}-to-cumulative-subsidy-in-dollars`,
datasetPath: `${scale}-to-cumulative-subsidy-in-dollars`,
},
],
},
@@ -330,7 +330,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Last",
color: colors.bitcoin,
datasetPath: `/${scale}-to-last-fees`,
datasetPath: `${scale}-to-last-fees`,
},
],
},
@@ -345,7 +345,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Last",
color: colors.dollars,
datasetPath: `/${scale}-to-last-fees-in-dollars`,
datasetPath: `${scale}-to-last-fees-in-dollars`,
},
],
},
@@ -366,7 +366,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Sum",
color: colors.bitcoin,
datasetPath: `/${scale}-to-fees`,
datasetPath: `${scale}-to-fees`,
},
],
},
@@ -381,7 +381,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Sum",
color: colors.dollars,
datasetPath: `/${scale}-to-fees-in-dollars`,
datasetPath: `${scale}-to-fees-in-dollars`,
},
],
},
@@ -402,7 +402,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Sum",
color: colors.bitcoin,
datasetPath: `/${scale}-to-fees-1y-sum`,
datasetPath: `${scale}-to-fees-1y-sum`,
},
],
},
@@ -417,7 +417,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Sum",
color: colors.dollars,
datasetPath: `/${scale}-to-fees-in-dollars-1y-sum`,
datasetPath: `${scale}-to-fees-in-dollars-1y-sum`,
},
],
},
@@ -438,7 +438,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Fees",
color: colors.bitcoin,
datasetPath: `/${scale}-to-cumulative-fees`,
datasetPath: `${scale}-to-cumulative-fees`,
},
],
},
@@ -453,7 +453,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Fees",
color: colors.dollars,
datasetPath: `/${scale}-to-cumulative-fees-in-dollars`,
datasetPath: `${scale}-to-cumulative-fees-in-dollars`,
},
],
},
@@ -475,12 +475,12 @@ export function createPresets(scale: ResourceScale) {
{
title: "Subsidy",
color: colors.bitcoin,
datasetPath: `/${scale}-to-subsidy-to-coinbase-ratio`,
datasetPath: `${scale}-to-subsidy-to-coinbase-ratio`,
},
{
title: "Fees",
color: colors.darkBitcoin,
datasetPath: `/${scale}-to-fees-to-coinbase-ratio`,
datasetPath: `${scale}-to-fees-to-coinbase-ratio`,
},
],
},
@@ -498,7 +498,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Multiple",
color: colors.bitcoin,
datasetPath: `/date-to-puell-multiple`,
datasetPath: `date-to-puell-multiple`,
},
],
},
@@ -514,17 +514,17 @@ export function createPresets(scale: ResourceScale) {
{
title: "1M SMA",
color: colors.momentumYellow,
datasetPath: `/date-to-hash-rate-1m-sma`,
datasetPath: `date-to-hash-rate-1m-sma`,
},
{
title: "1W SMA",
color: colors.bitcoin,
datasetPath: `/date-to-hash-rate-1w-sma`,
datasetPath: `date-to-hash-rate-1w-sma`,
},
{
title: "Rate",
color: colors.darkBitcoin,
datasetPath: `/date-to-hash-rate`,
datasetPath: `date-to-hash-rate`,
},
],
},
@@ -539,12 +539,12 @@ export function createPresets(scale: ResourceScale) {
{
title: "1M SMA",
color: colors.profit,
datasetPath: `/date-to-hash-rate-1m-sma`,
datasetPath: `date-to-hash-rate-1m-sma`,
},
{
title: "2M SMA",
color: colors.loss,
datasetPath: `/date-to-hash-rate-2m-sma`,
datasetPath: `date-to-hash-rate-2m-sma`,
},
],
},
@@ -559,7 +559,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Price",
color: colors.dollars,
datasetPath: `/date-to-hash-price`,
datasetPath: `date-to-hash-price`,
},
],
},
@@ -577,7 +577,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Difficulty",
color: colors.bitcoin,
datasetPath: `/${scale}-to-difficulty`,
datasetPath: `${scale}-to-difficulty`,
},
],
},
@@ -595,7 +595,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Adjustment",
seriesType: SeriesType.Based,
datasetPath: `/${scale}-to-difficulty-adjustment`,
datasetPath: `${scale}-to-difficulty-adjustment`,
},
],
},
@@ -613,7 +613,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Issuance",
color: colors.bitcoin,
datasetPath: `/${scale}-to-annualized-issuance`,
datasetPath: `${scale}-to-annualized-issuance`,
},
],
},
@@ -629,7 +629,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Rate",
color: colors.bitcoin,
datasetPath: `/${scale}-to-yearly-inflation-rate`,
datasetPath: `${scale}-to-yearly-inflation-rate`,
},
],
},
@@ -27,7 +27,7 @@ export function createCohortPresetPricesPaidFolder({
{
title: "Average",
color,
datasetPath: `/${scale as ResourceScale}-to-${datasetIdToPrefix(datasetId)}realized-price`,
datasetPath: `${scale as ResourceScale}-to-${datasetIdToPrefix(datasetId)}realized-price`,
},
],
},
@@ -78,5 +78,5 @@ function generatePath(
): AnyDatasetPath {
const datasetPrefix = datasetIdToPrefix(cohortId);
return `/${scale}-to-${datasetPrefix}${id}` as const;
return `${scale}-to-${datasetPrefix}${id}` as const;
}
@@ -31,15 +31,15 @@ export function createCohortPresetRealizedFolder({
{
title: "Realized Price",
color,
datasetPath: `/${scale}-to-${datasetPrefix}realized-price`,
datasetPath: `${scale}-to-${datasetPrefix}realized-price`,
},
],
},
createRatioFolder({
scale,
color,
ratioDatasetPath: `/${scale}-to-market-price-to-${datasetPrefix}realized-price-ratio`,
valueDatasetPath: `/${scale}-to-${datasetPrefix}realized-price`,
ratioDatasetPath: `${scale}-to-market-price-to-${datasetPrefix}realized-price-ratio`,
valueDatasetPath: `${scale}-to-${datasetPrefix}realized-price`,
title: `${title} Realized Price`,
}),
{
@@ -53,14 +53,14 @@ export function createCohortPresetRealizedFolder({
{
title: `${name} Realized Cap.`,
color,
datasetPath: `/${scale}-to-${datasetPrefix}realized-cap`,
datasetPath: `${scale}-to-${datasetPrefix}realized-cap`,
},
...(datasetId
? ([
{
title: "Realized Cap.",
color: colors.bitcoin,
datasetPath: `/${scale}-to-realized-cap`,
datasetPath: `${scale}-to-realized-cap`,
defaultVisible: false,
},
] as const)
@@ -78,7 +78,7 @@ export function createCohortPresetRealizedFolder({
{
title: `Net Change`,
seriesType: SeriesType.Based,
datasetPath: `/${scale}-to-${datasetPrefix}realized-cap-1m-net-change`,
datasetPath: `${scale}-to-${datasetPrefix}realized-cap-1m-net-change`,
},
],
},
@@ -92,7 +92,7 @@ export function createCohortPresetRealizedFolder({
bottom: [
{
title: "Realized Profit",
datasetPath: `/${scale}-to-${datasetPrefix}realized-profit`,
datasetPath: `${scale}-to-${datasetPrefix}realized-profit`,
color: colors.profit,
},
],
@@ -107,7 +107,7 @@ export function createCohortPresetRealizedFolder({
bottom: [
{
title: "Realized Loss",
datasetPath: `/${scale}-to-${datasetPrefix}realized-loss`,
datasetPath: `${scale}-to-${datasetPrefix}realized-loss`,
color: colors.loss,
},
],
@@ -123,13 +123,13 @@ export function createCohortPresetRealizedFolder({
{
title: "Profit",
color: colors.profit,
datasetPath: `/${scale}-to-${datasetPrefix}realized-profit`,
datasetPath: `${scale}-to-${datasetPrefix}realized-profit`,
seriesType: SeriesType.Based,
},
{
title: "Loss",
color: colors.loss,
datasetPath: `/${scale}-to-${datasetPrefix}negative-realized-loss`,
datasetPath: `${scale}-to-${datasetPrefix}negative-realized-loss`,
seriesType: SeriesType.Based,
},
],
@@ -145,7 +145,7 @@ export function createCohortPresetRealizedFolder({
{
title: "Net PNL",
seriesType: SeriesType.Based,
datasetPath: `/${scale}-to-${datasetPrefix}net-realized-profit-and-loss`,
datasetPath: `${scale}-to-${datasetPrefix}net-realized-profit-and-loss`,
},
],
},
@@ -160,7 +160,7 @@ export function createCohortPresetRealizedFolder({
{
title: "Net",
seriesType: SeriesType.Based,
datasetPath: `/${scale}-to-${datasetPrefix}net-realized-profit-and-loss-to-market-cap-ratio`,
datasetPath: `${scale}-to-${datasetPrefix}net-realized-profit-and-loss-to-market-cap-ratio`,
},
],
},
@@ -175,7 +175,7 @@ export function createCohortPresetRealizedFolder({
{
title: "Cumulative Realized Profit",
color: colors.profit,
datasetPath: `/${scale}-to-${datasetPrefix}cumulative-realized-profit`,
datasetPath: `${scale}-to-${datasetPrefix}cumulative-realized-profit`,
},
],
},
@@ -190,7 +190,7 @@ export function createCohortPresetRealizedFolder({
{
title: "Cumulative Realized Loss",
color: colors.loss,
datasetPath: `/${scale}-to-${datasetPrefix}cumulative-realized-loss`,
datasetPath: `${scale}-to-${datasetPrefix}cumulative-realized-loss`,
},
],
},
@@ -205,7 +205,7 @@ export function createCohortPresetRealizedFolder({
{
title: "Cumulative Net Realized PNL",
seriesType: SeriesType.Based,
datasetPath: `/${scale}-to-${datasetPrefix}cumulative-net-realized-profit-and-loss`,
datasetPath: `${scale}-to-${datasetPrefix}cumulative-net-realized-profit-and-loss`,
},
],
},
@@ -219,7 +219,7 @@ export function createCohortPresetRealizedFolder({
bottom: [
{
title: "Cumulative Net Realized PNL 30d Change",
datasetPath: `/${scale}-to-${datasetPrefix}cumulative-net-realized-profit-and-loss-1m-net-change`,
datasetPath: `${scale}-to-${datasetPrefix}cumulative-net-realized-profit-and-loss-1m-net-change`,
seriesType: SeriesType.Based,
},
],
@@ -235,7 +235,7 @@ export function createCohortPresetRealizedFolder({
{
title: "Value",
color: colors.profit,
datasetPath: `/${scale}-to-${datasetPrefix}value-created`,
datasetPath: `${scale}-to-${datasetPrefix}value-created`,
},
],
},
@@ -250,7 +250,7 @@ export function createCohortPresetRealizedFolder({
{
title: "Value",
color: colors.loss,
datasetPath: `/${scale}-to-${datasetPrefix}value-destroyed`,
datasetPath: `${scale}-to-${datasetPrefix}value-destroyed`,
},
],
},
@@ -264,7 +264,7 @@ export function createCohortPresetRealizedFolder({
bottom: [
{
title: "SOPR",
datasetPath: `/${scale}-to-${datasetPrefix}spent-output-profit-ratio`,
datasetPath: `${scale}-to-${datasetPrefix}spent-output-profit-ratio`,
seriesType: SeriesType.Based,
options: {
base: 1,
@@ -32,22 +32,22 @@ export function createCohortPresetSupplyFolder({
{
title: "In Profit",
color: colors.profit,
datasetPath: `/${scale}-to-${datasetPrefix}supply-in-profit`,
datasetPath: `${scale}-to-${datasetPrefix}supply-in-profit`,
},
{
title: "In Loss",
color: colors.loss,
datasetPath: `/${scale}-to-${datasetPrefix}supply-in-loss`,
datasetPath: `${scale}-to-${datasetPrefix}supply-in-loss`,
},
{
title: "Total",
color: colors.white,
datasetPath: `/${scale}-to-${datasetPrefix}supply`,
datasetPath: `${scale}-to-${datasetPrefix}supply`,
},
{
title: "Halved Total",
color: colors.gray,
datasetPath: `/${scale}-to-${datasetPrefix}halved-supply`,
datasetPath: `${scale}-to-${datasetPrefix}halved-supply`,
options: {
lineStyle: 4,
},
@@ -65,7 +65,7 @@ export function createCohortPresetSupplyFolder({
{
title: "Supply",
color,
datasetPath: `/${scale}-to-${datasetPrefix}supply`,
datasetPath: `${scale}-to-${datasetPrefix}supply`,
},
],
},
@@ -80,7 +80,7 @@ export function createCohortPresetSupplyFolder({
{
title: "Supply",
color: colors.profit,
datasetPath: `/${scale}-to-${datasetPrefix}supply-in-profit`,
datasetPath: `${scale}-to-${datasetPrefix}supply-in-profit`,
},
],
},
@@ -95,7 +95,7 @@ export function createCohortPresetSupplyFolder({
{
title: "Supply",
color: colors.loss,
datasetPath: `/${scale}-to-${datasetPrefix}supply-in-loss`,
datasetPath: `${scale}-to-${datasetPrefix}supply-in-loss`,
},
],
},
@@ -115,22 +115,22 @@ export function createCohortPresetSupplyFolder({
{
title: "In Profit",
color: colors.profit,
datasetPath: `/${scale}-to-${datasetPrefix}supply-in-profit-to-circulating-supply-ratio`,
datasetPath: `${scale}-to-${datasetPrefix}supply-in-profit-to-circulating-supply-ratio`,
},
{
title: "In Loss",
color: colors.loss,
datasetPath: `/${scale}-to-${datasetPrefix}supply-in-loss-to-circulating-supply-ratio`,
datasetPath: `${scale}-to-${datasetPrefix}supply-in-loss-to-circulating-supply-ratio`,
},
{
title: "100%",
color: colors.white,
datasetPath: `/${scale}-to-${datasetPrefix}supply-to-circulating-supply-ratio`,
datasetPath: `${scale}-to-${datasetPrefix}supply-to-circulating-supply-ratio`,
},
{
title: "50%",
color: colors.gray,
datasetPath: `/${scale}-to-${datasetPrefix}halved-supply-to-circulating-supply-ratio`,
datasetPath: `${scale}-to-${datasetPrefix}halved-supply-to-circulating-supply-ratio`,
options: {
lineStyle: 4,
},
@@ -148,7 +148,7 @@ export function createCohortPresetSupplyFolder({
{
title: "Supply",
color,
datasetPath: `/${scale}-to-${datasetPrefix}supply-to-circulating-supply-ratio`,
datasetPath: `${scale}-to-${datasetPrefix}supply-to-circulating-supply-ratio`,
},
],
},
@@ -163,7 +163,7 @@ export function createCohortPresetSupplyFolder({
{
title: "Supply",
color: colors.profit,
datasetPath: `/${scale}-to-${datasetPrefix}supply-in-profit-to-circulating-supply-ratio`,
datasetPath: `${scale}-to-${datasetPrefix}supply-in-profit-to-circulating-supply-ratio`,
},
],
},
@@ -178,7 +178,7 @@ export function createCohortPresetSupplyFolder({
{
title: "Supply",
color: colors.loss,
datasetPath: `/${scale}-to-${datasetPrefix}supply-in-loss-to-circulating-supply-ratio`,
datasetPath: `${scale}-to-${datasetPrefix}supply-in-loss-to-circulating-supply-ratio`,
},
],
},
@@ -198,17 +198,17 @@ export function createCohortPresetSupplyFolder({
{
title: "In Profit",
color: colors.profit,
datasetPath: `/${scale}-to-${datasetPrefix}supply-in-profit-to-own-supply-ratio`,
datasetPath: `${scale}-to-${datasetPrefix}supply-in-profit-to-own-supply-ratio`,
},
{
title: "In Loss",
color: colors.loss,
datasetPath: `/${scale}-to-${datasetPrefix}supply-in-loss-to-own-supply-ratio`,
datasetPath: `${scale}-to-${datasetPrefix}supply-in-loss-to-own-supply-ratio`,
},
{
title: "100%",
color: colors.white,
datasetPath: `/${scale}-to-100`,
datasetPath: `${scale}-to-100`,
options: {
lastValueVisible: false,
},
@@ -216,7 +216,7 @@ export function createCohortPresetSupplyFolder({
{
title: "50%",
color: colors.gray,
datasetPath: `/${scale}-to-50`,
datasetPath: `${scale}-to-50`,
options: {
lineStyle: 4,
lastValueVisible: false,
@@ -235,7 +235,7 @@ export function createCohortPresetSupplyFolder({
{
title: "Supply",
color: colors.profit,
datasetPath: `/${scale}-to-${datasetPrefix}supply-in-profit-to-own-supply-ratio`,
datasetPath: `${scale}-to-${datasetPrefix}supply-in-profit-to-own-supply-ratio`,
},
],
},
@@ -250,7 +250,7 @@ export function createCohortPresetSupplyFolder({
{
title: "Supply",
color: colors.loss,
datasetPath: `/${scale}-to-${datasetPrefix}supply-in-loss-to-own-supply-ratio`,
datasetPath: `${scale}-to-${datasetPrefix}supply-in-loss-to-own-supply-ratio`,
},
],
},
@@ -29,7 +29,7 @@ export function createCohortPresetUnrealizedFolder({
bottom: [
{
title: "Profit",
datasetPath: `/${scale}-to-${datasetPrefix}unrealized-profit`,
datasetPath: `${scale}-to-${datasetPrefix}unrealized-profit`,
color: colors.profit,
},
],
@@ -44,7 +44,7 @@ export function createCohortPresetUnrealizedFolder({
bottom: [
{
title: "Loss",
datasetPath: `/${scale}-to-${datasetPrefix}unrealized-loss`,
datasetPath: `${scale}-to-${datasetPrefix}unrealized-loss`,
color: colors.loss,
},
],
@@ -60,13 +60,13 @@ export function createCohortPresetUnrealizedFolder({
{
title: "Profit",
color: colors.profit,
datasetPath: `/${scale}-to-${datasetPrefix}unrealized-profit`,
datasetPath: `${scale}-to-${datasetPrefix}unrealized-profit`,
seriesType: SeriesType.Based,
},
{
title: "Loss",
color: colors.loss,
datasetPath: `/${scale}-to-${datasetPrefix}negative-unrealized-loss`,
datasetPath: `${scale}-to-${datasetPrefix}negative-unrealized-loss`,
seriesType: SeriesType.Based,
},
],
@@ -81,7 +81,7 @@ export function createCohortPresetUnrealizedFolder({
bottom: [
{
title: "Net Unrealized PNL",
datasetPath: `/${scale}-to-${datasetPrefix}net-unrealized-profit-and-loss`,
datasetPath: `${scale}-to-${datasetPrefix}net-unrealized-profit-and-loss`,
seriesType: SeriesType.Based,
},
],
@@ -96,7 +96,7 @@ export function createCohortPresetUnrealizedFolder({
bottom: [
{
title: "Relative Net Unrealized PNL",
datasetPath: `/${scale}-to-${datasetPrefix}net-unrealized-profit-and-loss-to-market-cap-ratio`,
datasetPath: `${scale}-to-${datasetPrefix}net-unrealized-profit-and-loss-to-market-cap-ratio`,
seriesType: SeriesType.Based,
},
],
@@ -27,7 +27,7 @@ export function createCohortPresetUTXOFolder({
{
title: "Count",
color,
datasetPath: `/${scale}-to-${datasetPrefix}utxo-count`,
datasetPath: `${scale}-to-${datasetPrefix}utxo-count`,
},
],
},
+3 -3
View File
@@ -43,7 +43,7 @@ export function createRatioFolder({
{
title: `Even`,
color: colors.white,
datasetPath: `/${scale}-to-1`,
datasetPath: `${scale}-to-1`,
options: {
lineStyle: 3,
lastValueVisible: false,
@@ -89,7 +89,7 @@ export function createRatioFolder({
{
title: `Even`,
color: colors.gray,
datasetPath: `/${scale}-to-1`,
datasetPath: `${scale}-to-1`,
options: {
lineStyle: 3,
lastValueVisible: false,
@@ -121,7 +121,7 @@ export function createRatioFolder({
{
title: `Base`,
color: colors.white,
datasetPath: `/${scale}-to-0`,
datasetPath: `${scale}-to-0`,
options: {
lineStyle: 3,
lastValueVisible: false,
+15 -15
View File
@@ -15,17 +15,17 @@ export function createPresets(scale: ResourceScale) {
{
title: "1M SMA",
color: colors.momentumYellow,
datasetPath: `/${scale}-to-transaction-count-1m-sma`,
datasetPath: `${scale}-to-transaction-count-1m-sma`,
},
{
title: "1W SMA",
color: colors.bitcoin,
datasetPath: `/${scale}-to-transaction-count-1w-sma`,
datasetPath: `${scale}-to-transaction-count-1w-sma`,
},
{
title: "Raw",
color: colors.darkBitcoin,
datasetPath: `/${scale}-to-transaction-count`,
datasetPath: `${scale}-to-transaction-count`,
},
],
},
@@ -44,17 +44,17 @@ export function createPresets(scale: ResourceScale) {
{
title: "1M SMA",
color: colors.momentumYellow,
datasetPath: `/${scale}-to-transaction-volume-1m-sma`,
datasetPath: `${scale}-to-transaction-volume-1m-sma`,
},
{
title: "1W SMA",
color: colors.bitcoin,
datasetPath: `/${scale}-to-transaction-volume-1w-sma`,
datasetPath: `${scale}-to-transaction-volume-1w-sma`,
},
{
title: "Raw",
color: colors.darkBitcoin,
datasetPath: `/${scale}-to-transaction-volume`,
datasetPath: `${scale}-to-transaction-volume`,
},
],
},
@@ -69,17 +69,17 @@ export function createPresets(scale: ResourceScale) {
{
title: "1M SMA",
color: colors.lightDollars,
datasetPath: `/${scale}-to-transaction-volume-in-dollars-1m-sma`,
datasetPath: `${scale}-to-transaction-volume-in-dollars-1m-sma`,
},
{
title: "1W SMA",
color: colors.dollars,
datasetPath: `/${scale}-to-transaction-volume-in-dollars-1w-sma`,
datasetPath: `${scale}-to-transaction-volume-in-dollars-1w-sma`,
},
{
title: "Raw",
color: colors.darkDollars,
datasetPath: `/${scale}-to-transaction-volume-in-dollars`,
datasetPath: `${scale}-to-transaction-volume-in-dollars`,
},
],
},
@@ -100,7 +100,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Volume",
color: colors.bitcoin,
datasetPath: `/${scale}-to-annualized-transaction-volume`,
datasetPath: `${scale}-to-annualized-transaction-volume`,
},
],
},
@@ -115,7 +115,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Volume",
color: colors.dollars,
datasetPath: `/${scale}-to-annualized-transaction-volume-in-dollars`,
datasetPath: `${scale}-to-annualized-transaction-volume-in-dollars`,
},
],
},
@@ -132,7 +132,7 @@ export function createPresets(scale: ResourceScale) {
{
title: "Transactions Velocity",
color: colors.bitcoin,
datasetPath: `/${scale}-to-transaction-velocity`,
datasetPath: `${scale}-to-transaction-velocity`,
},
],
},
@@ -147,17 +147,17 @@ export function createPresets(scale: ResourceScale) {
{
title: "1M SMA",
color: colors.lightBitcoin,
datasetPath: `/${scale}-to-transactions-per-second-1m-sma`,
datasetPath: `${scale}-to-transactions-per-second-1m-sma`,
},
{
title: "1W SMA",
color: colors.bitcoin,
datasetPath: `/${scale}-to-transactions-per-second-1w-sma`,
datasetPath: `${scale}-to-transactions-per-second-1w-sma`,
},
{
title: "Raw",
color: colors.darkBitcoin,
datasetPath: `/${scale}-to-transactions-per-second`,
datasetPath: `${scale}-to-transactions-per-second`,
},
],
},
+14
View File
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -57,7 +57,7 @@ impl Routes {
routes.date.insert(
map_key,
Route {
url_path: format!("/date-to-{url_path}"),
url_path: format!("date-to-{url_path}"),
file_path,
values_type,
serialization,
@@ -67,7 +67,7 @@ impl Routes {
routes.height.insert(
map_key,
Route {
url_path: format!("/height-to-{url_path}"),
url_path: format!("height-to-{url_path}"),
file_path,
values_type,
serialization,
@@ -77,7 +77,7 @@ impl Routes {
routes.last.insert(
map_key,
Route {
url_path: format!("/{url_path}"),
url_path,
file_path,
values_type,
serialization,
@@ -99,7 +99,7 @@ impl Routes {
.map(|route| format!("\"{}\"", route.url_path))
.join(" | ");
format!("type {}Path = {};\n", name, paths)
format!("// This file is auto generated by the server\n// Manual changes are forbidden\n\ntype {}Path = {};\n", name, paths)
};
let date_type = map_to_type("Date", &self.date);