diff --git a/crates/brk_computer/src/storage/vecs/blocks.rs b/crates/brk_computer/src/storage/vecs/blocks.rs index b56122774..6059b2422 100644 --- a/crates/brk_computer/src/storage/vecs/blocks.rs +++ b/crates/brk_computer/src/storage/vecs/blocks.rs @@ -152,7 +152,7 @@ impl Vecs { self.height_to_interval.compute_transform( starting_indexes.height, indexer_vecs.height_to_timestamp.vec(), - |(height, timestamp)| { + |(height, timestamp, ..)| { let interval = height.decremented().map_or(Timestamp::ZERO, |prev_h| { let prev_timestamp = height_to_timestamp_iter.unwrap_get_inner(prev_h); timestamp diff --git a/crates/brk_computer/src/storage/vecs/grouped/builder.rs b/crates/brk_computer/src/storage/vecs/grouped/builder.rs index 51d5be4c5..7abefed61 100644 --- a/crates/brk_computer/src/storage/vecs/grouped/builder.rs +++ b/crates/brk_computer/src/storage/vecs/grouped/builder.rs @@ -196,8 +196,20 @@ where } if let Some(last) = self.last.as_mut() { - let last_index = first_index + *count_index; - let v = source_iter.get(last_index).unwrap().1.into_inner(); + let count_index = *count_index; + if count_index == 0 { + panic!("should compute last if count can be 0") + } + let last_index = first_index + (count_index - 1); + let v = source_iter + .get(last_index) + .context("to work") + .inspect_err(|_| { + dbg!(first_index, count_index, last_index); + }) + .unwrap() + .1 + .into_inner(); last.forced_push_at(index, v, exit)?; } @@ -356,7 +368,11 @@ where } if let Some(last) = self.last.as_mut() { - let last_index = first_index + *count_index; + let count_index = *count_index; + if count_index == 0 { + panic!("should compute last if count can be 0") + } + let last_index = first_index + (count_index - 1); let v = source_last_iter .as_mut() .unwrap() diff --git a/crates/brk_computer/src/storage/vecs/indexes.rs b/crates/brk_computer/src/storage/vecs/indexes.rs index c414ba7d6..00f59ee93 100644 --- a/crates/brk_computer/src/storage/vecs/indexes.rs +++ b/crates/brk_computer/src/storage/vecs/indexes.rs @@ -500,16 +500,24 @@ impl Vecs { exit, )?; - let mut height_to_timestamp_iter = indexer_vecs.height_to_timestamp.iter(); + let mut prev_timestamp_fixed = None; self.height_to_timestamp_fixed.compute_transform( starting_indexes.height, indexer_vecs.height_to_timestamp.vec(), - |(h, timestamp, ..)| { - let timestamp = h - .decremented() - .map(|h| height_to_timestamp_iter.unwrap_get_inner(h)) - .map_or(timestamp, |prev_d| prev_d.max(timestamp)); - (h, timestamp) + |(h, timestamp, height_to_timestamp_fixed_iter)| { + if prev_timestamp_fixed.is_none() { + if let Some(prev_h) = h.decremented() { + prev_timestamp_fixed.replace( + height_to_timestamp_fixed_iter + .iter() + .unwrap_get_inner(prev_h), + ); + } + } + let timestamp_fixed = + prev_timestamp_fixed.map_or(timestamp, |prev_d| prev_d.max(timestamp)); + prev_timestamp_fixed.replace(timestamp_fixed); + (h, timestamp_fixed) }, exit, )?; @@ -862,32 +870,36 @@ impl Vecs { self.dateindex_to_date.any_vec(), self.dateindex_to_dateindex.any_vec(), self.dateindex_to_first_height.any_vec(), - self.height_to_dateindex.any_vec(), - self.height_to_date_fixed.any_vec(), - self.height_to_height.any_vec(), - self.height_to_date.any_vec(), - self.difficultyepoch_to_first_height.any_vec(), - self.halvingepoch_to_first_height.any_vec(), - self.weekindex_to_first_dateindex.any_vec(), - self.monthindex_to_first_dateindex.any_vec(), - self.yearindex_to_first_monthindex.any_vec(), - self.decadeindex_to_first_yearindex.any_vec(), - self.dateindex_to_weekindex.any_vec(), + self.dateindex_to_height_count.any_vec(), self.dateindex_to_monthindex.any_vec(), - self.monthindex_to_yearindex.any_vec(), - self.yearindex_to_decadeindex.any_vec(), + self.dateindex_to_weekindex.any_vec(), + self.decadeindex_to_decadeindex.any_vec(), + self.decadeindex_to_first_yearindex.any_vec(), + self.decadeindex_to_yearindex_count.any_vec(), + self.difficultyepoch_to_difficultyepoch.any_vec(), + self.difficultyepoch_to_first_height.any_vec(), + self.difficultyepoch_to_height_count.any_vec(), + self.emptyoutputindex_to_emptyoutputindex.any_vec(), + self.halvingepoch_to_first_height.any_vec(), + self.halvingepoch_to_halvingepoch.any_vec(), + self.height_to_date.any_vec(), + self.height_to_date_fixed.any_vec(), + self.height_to_dateindex.any_vec(), self.height_to_difficultyepoch.any_vec(), self.height_to_halvingepoch.any_vec(), - self.weekindex_to_weekindex.any_vec(), - self.monthindex_to_monthindex.any_vec(), - self.yearindex_to_yearindex.any_vec(), - self.decadeindex_to_decadeindex.any_vec(), - self.difficultyepoch_to_difficultyepoch.any_vec(), - self.halvingepoch_to_halvingepoch.any_vec(), + self.height_to_height.any_vec(), self.height_to_timestamp_fixed.any_vec(), + self.height_to_txindex_count.any_vec(), + self.inputindex_to_inputindex.any_vec(), + self.monthindex_to_dateindex_count.any_vec(), + self.monthindex_to_first_dateindex.any_vec(), + self.monthindex_to_monthindex.any_vec(), self.monthindex_to_quarterindex.any_vec(), - self.quarterindex_to_first_monthindex.any_vec(), - self.quarterindex_to_quarterindex.any_vec(), + self.monthindex_to_yearindex.any_vec(), + self.opreturnindex_to_opreturnindex.any_vec(), + self.outputindex_to_outputindex.any_vec(), + self.p2aindex_to_p2aindex.any_vec(), + self.p2msindex_to_p2msindex.any_vec(), self.p2pk33index_to_p2pk33index.any_vec(), self.p2pk65index_to_p2pk65index.any_vec(), self.p2pkhindex_to_p2pkhindex.any_vec(), @@ -895,22 +907,19 @@ impl Vecs { self.p2trindex_to_p2trindex.any_vec(), self.p2wpkhindex_to_p2wpkhindex.any_vec(), self.p2wshindex_to_p2wshindex.any_vec(), - self.txindex_to_txindex.any_vec(), - self.inputindex_to_inputindex.any_vec(), - self.emptyoutputindex_to_emptyoutputindex.any_vec(), - self.p2msindex_to_p2msindex.any_vec(), - self.opreturnindex_to_opreturnindex.any_vec(), - self.p2aindex_to_p2aindex.any_vec(), - self.unknownoutputindex_to_unknownoutputindex.any_vec(), - self.outputindex_to_outputindex.any_vec(), - self.height_to_txindex_count.any_vec(), - self.dateindex_to_height_count.any_vec(), - self.weekindex_to_dateindex_count.any_vec(), - self.difficultyepoch_to_height_count.any_vec(), - self.monthindex_to_dateindex_count.any_vec(), + self.quarterindex_to_first_monthindex.any_vec(), self.quarterindex_to_monthindex_count.any_vec(), + self.quarterindex_to_quarterindex.any_vec(), + self.txindex_to_height.any_vec(), + self.txindex_to_txindex.any_vec(), + self.unknownoutputindex_to_unknownoutputindex.any_vec(), + self.weekindex_to_dateindex_count.any_vec(), + self.weekindex_to_first_dateindex.any_vec(), + self.weekindex_to_weekindex.any_vec(), + self.yearindex_to_decadeindex.any_vec(), + self.yearindex_to_first_monthindex.any_vec(), self.yearindex_to_monthindex_count.any_vec(), - self.decadeindex_to_yearindex_count.any_vec(), + self.yearindex_to_yearindex.any_vec(), ] } } diff --git a/crates/brk_computer/src/storage/vecs/marketprice.rs b/crates/brk_computer/src/storage/vecs/marketprice.rs index 6d7ccc06b..4d38057a8 100644 --- a/crates/brk_computer/src/storage/vecs/marketprice.rs +++ b/crates/brk_computer/src/storage/vecs/marketprice.rs @@ -337,7 +337,7 @@ impl Vecs { self.height_to_ohlc_in_cents.compute_transform( starting_indexes.height, indexer_vecs.height_to_timestamp.vec(), - |(h, t)| { + |(h, t, ..)| { let ohlc = fetcher .get_height( h, diff --git a/crates/brk_computer/src/storage/vecs/mining.rs b/crates/brk_computer/src/storage/vecs/mining.rs index 9bdb83e9c..2644c18ea 100644 --- a/crates/brk_computer/src/storage/vecs/mining.rs +++ b/crates/brk_computer/src/storage/vecs/mining.rs @@ -62,17 +62,16 @@ impl Vecs { starting_indexes, exit, |vec, _, indexes, starting_indexes, exit| { + let mut height_count_iter = indexes.dateindex_to_height_count.iter(); vec.compute_transform( starting_indexes.dateindex, indexes.dateindex_to_first_height.vec(), |(di, height, ..)| { ( di, - height_to_difficultyepoch_iter - .get(height) - .unwrap() - .1 - .into_inner(), + height_to_difficultyepoch_iter.unwrap_get_inner( + height + (*height_count_iter.unwrap_get_inner(di) - 1), + ), ) }, exit, @@ -87,10 +86,18 @@ impl Vecs { starting_indexes, exit, |vec, _, indexes, starting_indexes, exit| { + let mut height_count_iter = indexes.dateindex_to_height_count.iter(); vec.compute_transform( starting_indexes.dateindex, indexes.dateindex_to_first_height.vec(), - |(di, height, ..)| (di, height_to_halvingepoch_iter.unwrap_get_inner(height)), + |(di, height, ..)| { + ( + di, + height_to_halvingepoch_iter.unwrap_get_inner( + height + (*height_count_iter.unwrap_get_inner(di) - 1), + ), + ) + }, exit, ) }, diff --git a/crates/brk_computer/src/storage/vecs/mod.rs b/crates/brk_computer/src/storage/vecs/mod.rs index ce669772a..7289b0450 100644 --- a/crates/brk_computer/src/storage/vecs/mod.rs +++ b/crates/brk_computer/src/storage/vecs/mod.rs @@ -19,10 +19,10 @@ pub use vec::*; #[derive(Clone)] pub struct Vecs { pub indexes: indexes::Vecs, - // pub blocks: blocks::Vecs, - // pub mining: mining::Vecs, - // pub transactions: transactions::Vecs, - // pub marketprice: Option, + pub blocks: blocks::Vecs, + pub mining: mining::Vecs, + pub transactions: transactions::Vecs, + pub marketprice: Option, } impl Vecs { @@ -30,11 +30,11 @@ impl Vecs { fs::create_dir_all(path)?; Ok(Self { - // blocks: blocks::Vecs::forced_import(path, compressed)?, + blocks: blocks::Vecs::forced_import(path, compressed)?, indexes: indexes::Vecs::forced_import(path, compressed)?, - // mining: mining::Vecs::forced_import(path, compressed)?, - // transactions: transactions::Vecs::forced_import(path, compressed, fetch)?, - // marketprice: fetch.then(|| marketprice::Vecs::forced_import(path, compressed).unwrap()), + mining: mining::Vecs::forced_import(path, compressed)?, + transactions: transactions::Vecs::forced_import(path, compressed, fetch)?, + marketprice: fetch.then(|| marketprice::Vecs::forced_import(path, compressed).unwrap()), }) } @@ -47,29 +47,29 @@ impl Vecs { ) -> color_eyre::Result<()> { let starting_indexes = self.indexes.compute(indexer, starting_indexes, exit)?; - // self.blocks - // .compute(indexer, &self.indexes, &starting_indexes, exit)?; + self.blocks + .compute(indexer, &self.indexes, &starting_indexes, exit)?; - // self.mining - // .compute(indexer, &self.indexes, &starting_indexes, exit)?; + self.mining + .compute(indexer, &self.indexes, &starting_indexes, exit)?; - // if let Some(marketprice) = self.marketprice.as_mut() { - // marketprice.compute( - // indexer, - // &self.indexes, - // &starting_indexes, - // fetcher.unwrap(), - // exit, - // )?; - // } + if let Some(marketprice) = self.marketprice.as_mut() { + marketprice.compute( + indexer, + &self.indexes, + &starting_indexes, + fetcher.unwrap(), + exit, + )?; + } - // self.transactions.compute( - // indexer, - // &self.indexes, - // &starting_indexes, - // self.marketprice.as_ref(), - // exit, - // )?; + self.transactions.compute( + indexer, + &self.indexes, + &starting_indexes, + self.marketprice.as_ref(), + exit, + )?; Ok(()) } @@ -77,12 +77,12 @@ impl Vecs { pub fn as_any_vecs(&self) -> Vec<&dyn AnyStoredVec> { [ self.indexes.as_any_vecs(), - // self.blocks.as_any_vecs(), - // self.mining.as_any_vecs(), - // self.transactions.as_any_vecs(), - // self.marketprice - // .as_ref() - // .map_or(vec![], |v| v.as_any_vecs()), + self.blocks.as_any_vecs(), + self.mining.as_any_vecs(), + self.transactions.as_any_vecs(), + self.marketprice + .as_ref() + .map_or(vec![], |v| v.as_any_vecs()), ] .concat() } diff --git a/crates/brk_computer/src/storage/vecs/transactions.rs b/crates/brk_computer/src/storage/vecs/transactions.rs index 130d5552d..d1e13f3c3 100644 --- a/crates/brk_computer/src/storage/vecs/transactions.rs +++ b/crates/brk_computer/src/storage/vecs/transactions.rs @@ -530,7 +530,7 @@ impl Vecs { self.inputindex_to_value.compute_transform( starting_indexes.inputindex, indexer.vecs().inputindex_to_outputindex.vec(), - |(inputindex, outputindex)| { + |(inputindex, outputindex, ..)| { let value = if outputindex == OutputIndex::COINBASE { Sats::ZERO } else if let Some((_, value)) = outputindex_to_value_iter.get(outputindex) { diff --git a/crates/brk_computer/src/storage/vecs/vec/eager.rs b/crates/brk_computer/src/storage/vecs/vec/eager.rs index 3f7c5764f..91e0a2013 100644 --- a/crates/brk_computer/src/storage/vecs/vec/eager.rs +++ b/crates/brk_computer/src/storage/vecs/vec/eager.rs @@ -182,7 +182,7 @@ where where A: StoredIndex, B: StoredType, - F: FnMut((A, B)) -> (I, T), + F: FnMut((A, B, &Self)) -> (I, T), { self.validate_computed_version_or_reset_file( Version::ZERO + self.version() + other.version(), @@ -190,7 +190,7 @@ where let index = max_from.min(A::from(self.len())); other.iter_at(index).try_for_each(|(a, b)| { - let (i, v) = t((a, b.into_inner())); + let (i, v) = t((a, b.into_inner(), self)); self.forced_push_at(i, v, exit) })?; @@ -217,9 +217,21 @@ where .last() .map_or_else(T::default, |(_, v)| v.into_inner()), ); - other.iter_at(index).try_for_each(|(v, i)| { + let mut prev_i = None; + other.iter_at(index).try_for_each(|(v, i)| -> Result<()> { let i = i.into_inner(); - self.forced_push_at(i, v, exit) + if prev_i.is_some_and(|prev_i| prev_i == i) { + return Ok(()); + } + if self + .inner + .get(i)? + .is_none_or(|old_v| old_v.into_inner() > v) + { + self.forced_push_at(i, v, exit)?; + } + prev_i.replace(i); + Ok(()) })?; self.safe_flush(exit) diff --git a/crates/brk_vec/src/variants/compressed.rs b/crates/brk_vec/src/variants/compressed.rs index b0c6689e0..f0a1dca18 100644 --- a/crates/brk_vec/src/variants/compressed.rs +++ b/crates/brk_vec/src/variants/compressed.rs @@ -552,6 +552,19 @@ where result } + + #[inline] + fn last(mut self) -> Option + where + Self: Sized, + { + let len = self.vec.len(); + if len == 0 { + return None; + } + self.get_(len - 1) + .map(|(i, v)| (i, Value::Owned(v.into_inner()))) + } } impl<'a, I, T> IntoIterator for &'a CompressedVec diff --git a/crates/brk_vec/src/variants/raw.rs b/crates/brk_vec/src/variants/raw.rs index 530fecfa7..98f8fcf51 100644 --- a/crates/brk_vec/src/variants/raw.rs +++ b/crates/brk_vec/src/variants/raw.rs @@ -293,6 +293,7 @@ where result } + #[inline] fn last(mut self) -> Option where Self: Sized, diff --git a/websites/kibo.money/packages/lightweight-charts/wrapper.js b/websites/kibo.money/packages/lightweight-charts/wrapper.js index 9a55b1c39..ede11baea 100644 --- a/websites/kibo.money/packages/lightweight-charts/wrapper.js +++ b/websites/kibo.money/packages/lightweight-charts/wrapper.js @@ -196,6 +196,8 @@ export default import("./v5.0.6-treeshaked/script.js").then((lc) => { */ function createSetFetchedDataEffect(series, valuesResource) { const fetchedKey = vecsResources.defaultFetchedKey; + console.log(fetchedKey); + signals.runWithOwner(owner, () => signals.createEffect( () => [ @@ -211,9 +213,10 @@ export default import("./v5.0.6-treeshaked/script.js").then((lc) => { const data = new Array(length); let prevTime = null; let offset = 0; + for (let i = 0; i < length; i++) { const time = indexes[i]; - if (prevTime && prevTime === time) { + if (prevTime === time) { offset += 1; } const v = ohlcs[i]; @@ -233,8 +236,10 @@ export default import("./v5.0.6-treeshaked/script.js").then((lc) => { } prevTime = time; } + data.length -= offset; series.setData(data); + timeScaleSetCallback?.(() => { if ( !timeScaleSet && @@ -428,7 +433,6 @@ export default import("./v5.0.6-treeshaked/script.js").then((lc) => { valuesResource.fetch(); activeResources.push(valuesResource); createSetFetchedDataEffect(series, valuesResource); - url = valuesResource.url; } else if (data) { signals.runWithOwner(owner, () => diff --git a/websites/kibo.money/scripts/vecid-to-indexes.js b/websites/kibo.money/scripts/vecid-to-indexes.js index dcc3c2680..7317a0dc4 100644 --- a/websites/kibo.money/scripts/vecid-to-indexes.js +++ b/websites/kibo.money/scripts/vecid-to-indexes.js @@ -57,15 +57,110 @@ export function createVecIdToIndexes() { return /** @type {const} */ ({ "base-size": [TxIndex], + "block-count": [Height], + "block-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "block-interval-10p": [DateIndex], + "block-interval-25p": [DateIndex], + "block-interval-75p": [DateIndex], + "block-interval-90p": [DateIndex], + "block-interval-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "block-interval-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "block-interval-median": [DateIndex], + "block-interval-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "block-size-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "block-vbytes-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "block-weight-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], blockhash: [Height], + close: [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "close-in-cents": [DateIndex, Height], + "close-in-sats": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + coinbase: [Height], + "coinbase-10p": [DateIndex], + "coinbase-25p": [DateIndex], + "coinbase-75p": [DateIndex], + "coinbase-90p": [DateIndex], + "coinbase-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "coinbase-in-btc": [Height], + "coinbase-in-btc-10p": [DateIndex], + "coinbase-in-btc-25p": [DateIndex], + "coinbase-in-btc-75p": [DateIndex], + "coinbase-in-btc-90p": [DateIndex], + "coinbase-in-btc-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "coinbase-in-btc-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "coinbase-in-btc-median": [DateIndex], + "coinbase-in-btc-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "coinbase-in-btc-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "coinbase-in-usd": [Height], + "coinbase-in-usd-10p": [DateIndex], + "coinbase-in-usd-25p": [DateIndex], + "coinbase-in-usd-75p": [DateIndex], + "coinbase-in-usd-90p": [DateIndex], + "coinbase-in-usd-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "coinbase-in-usd-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "coinbase-in-usd-median": [DateIndex], + "coinbase-in-usd-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "coinbase-in-usd-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "coinbase-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "coinbase-median": [DateIndex], + "coinbase-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "coinbase-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], date: [DateIndex, Height], "date-fixed": [Height], dateindex: [DateIndex, Height], "dateindex-count": [MonthIndex, WeekIndex], decadeindex: [DecadeIndex, YearIndex], - difficulty: [Height], - difficultyepoch: [DifficultyEpoch, Height], + difficulty: [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + difficultyepoch: [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "emptyoutput-count": [Height], + "emptyoutput-count-10p": [DateIndex], + "emptyoutput-count-25p": [DateIndex], + "emptyoutput-count-75p": [DateIndex], + "emptyoutput-count-90p": [DateIndex], + "emptyoutput-count-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "emptyoutput-count-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "emptyoutput-count-median": [DateIndex], + "emptyoutput-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "emptyoutput-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], emptyoutputindex: [EmptyOutputIndex], + fee: [TxIndex], + "fee-10p": [Height], + "fee-25p": [Height], + "fee-75p": [Height], + "fee-90p": [Height], + "fee-average": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "fee-in-btc": [TxIndex], + "fee-in-btc-10p": [Height], + "fee-in-btc-25p": [Height], + "fee-in-btc-75p": [Height], + "fee-in-btc-90p": [Height], + "fee-in-btc-average": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "fee-in-btc-max": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "fee-in-btc-median": [Height], + "fee-in-btc-min": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "fee-in-btc-sum": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "fee-in-usd": [TxIndex], + "fee-in-usd-10p": [Height], + "fee-in-usd-25p": [Height], + "fee-in-usd-75p": [Height], + "fee-in-usd-90p": [Height], + "fee-in-usd-average": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "fee-in-usd-max": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "fee-in-usd-median": [Height], + "fee-in-usd-min": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "fee-in-usd-sum": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "fee-max": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "fee-median": [Height], + "fee-min": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "fee-sum": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + feerate: [TxIndex], + "feerate-10p": [Height], + "feerate-25p": [Height], + "feerate-75p": [Height], + "feerate-90p": [Height], + "feerate-average": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "feerate-max": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "feerate-median": [Height], + "feerate-min": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], "first-dateindex": [MonthIndex, WeekIndex], "first-emptyoutputindex": [Height], "first-height": [DateIndex, DifficultyEpoch, HalvingEpoch], @@ -85,47 +180,294 @@ export function createVecIdToIndexes() { "first-txindex": [Height], "first-unknownoutputindex": [Height], "first-yearindex": [DecadeIndex], - halvingepoch: [HalvingEpoch, Height], - height: [Height], + halvingepoch: [DateIndex, DecadeIndex, HalvingEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + height: [Height, TxIndex], "height-count": [DateIndex, DifficultyEpoch], + high: [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "high-in-cents": [DateIndex, Height], + "high-in-sats": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "input-count": [TxIndex], + "input-count-10p": [Height], + "input-count-25p": [Height], + "input-count-75p": [Height], + "input-count-90p": [Height], + "input-count-average": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "input-count-max": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "input-count-median": [Height], + "input-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "input-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "input-value": [TxIndex], + "input-value-average": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "input-value-sum": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], inputindex: [InputIndex], + interval: [Height], + "is-coinbase": [TxIndex], "is-explicitly-rbf": [TxIndex], + low: [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "low-in-cents": [DateIndex, Height], + "low-in-sats": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], monthindex: [DateIndex, MonthIndex], "monthindex-count": [QuarterIndex, YearIndex], + ohlc: [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "ohlc-in-cents": [DateIndex, Height], + "ohlc-in-sats": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + open: [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "open-in-cents": [DateIndex, Height], + "open-in-sats": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "opreturn-count": [Height], + "opreturn-count-10p": [DateIndex], + "opreturn-count-25p": [DateIndex], + "opreturn-count-75p": [DateIndex], + "opreturn-count-90p": [DateIndex], + "opreturn-count-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "opreturn-count-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "opreturn-count-median": [DateIndex], + "opreturn-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "opreturn-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], opreturnindex: [OpReturnIndex], + "output-count": [TxIndex], + "output-count-10p": [Height], + "output-count-25p": [Height], + "output-count-75p": [Height], + "output-count-90p": [Height], + "output-count-average": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "output-count-max": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "output-count-median": [Height], + "output-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "output-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "output-value": [TxIndex], + "output-value-average": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "output-value-sum": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], outputindex: [InputIndex, OutputIndex], outputtype: [OutputIndex], outputtypeindex: [OutputIndex], + "p2a-count": [Height], + "p2a-count-10p": [DateIndex], + "p2a-count-25p": [DateIndex], + "p2a-count-75p": [DateIndex], + "p2a-count-90p": [DateIndex], + "p2a-count-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2a-count-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2a-count-median": [DateIndex], + "p2a-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2a-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], p2abytes: [P2AIndex], p2aindex: [P2AIndex], + "p2ms-count": [Height], + "p2ms-count-10p": [DateIndex], + "p2ms-count-25p": [DateIndex], + "p2ms-count-75p": [DateIndex], + "p2ms-count-90p": [DateIndex], + "p2ms-count-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2ms-count-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2ms-count-median": [DateIndex], + "p2ms-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2ms-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], p2msindex: [P2MSIndex], + "p2pk33-count": [Height], + "p2pk33-count-10p": [DateIndex], + "p2pk33-count-25p": [DateIndex], + "p2pk33-count-75p": [DateIndex], + "p2pk33-count-90p": [DateIndex], + "p2pk33-count-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2pk33-count-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2pk33-count-median": [DateIndex], + "p2pk33-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2pk33-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], p2pk33bytes: [P2PK33Index], p2pk33index: [P2PK33Index], + "p2pk65-count": [Height], + "p2pk65-count-10p": [DateIndex], + "p2pk65-count-25p": [DateIndex], + "p2pk65-count-75p": [DateIndex], + "p2pk65-count-90p": [DateIndex], + "p2pk65-count-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2pk65-count-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2pk65-count-median": [DateIndex], + "p2pk65-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2pk65-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], p2pk65bytes: [P2PK65Index], p2pk65index: [P2PK65Index], + "p2pkh-count": [Height], + "p2pkh-count-10p": [DateIndex], + "p2pkh-count-25p": [DateIndex], + "p2pkh-count-75p": [DateIndex], + "p2pkh-count-90p": [DateIndex], + "p2pkh-count-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2pkh-count-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2pkh-count-median": [DateIndex], + "p2pkh-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2pkh-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], p2pkhbytes: [P2PKHIndex], p2pkhindex: [P2PKHIndex], + "p2sh-count": [Height], + "p2sh-count-10p": [DateIndex], + "p2sh-count-25p": [DateIndex], + "p2sh-count-75p": [DateIndex], + "p2sh-count-90p": [DateIndex], + "p2sh-count-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2sh-count-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2sh-count-median": [DateIndex], + "p2sh-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2sh-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], p2shbytes: [P2SHIndex], p2shindex: [P2SHIndex], + "p2tr-count": [Height], + "p2tr-count-10p": [DateIndex], + "p2tr-count-25p": [DateIndex], + "p2tr-count-75p": [DateIndex], + "p2tr-count-90p": [DateIndex], + "p2tr-count-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2tr-count-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2tr-count-median": [DateIndex], + "p2tr-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2tr-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], p2trbytes: [P2TRIndex], p2trindex: [P2TRIndex], + "p2wpkh-count": [Height], + "p2wpkh-count-10p": [DateIndex], + "p2wpkh-count-25p": [DateIndex], + "p2wpkh-count-75p": [DateIndex], + "p2wpkh-count-90p": [DateIndex], + "p2wpkh-count-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2wpkh-count-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2wpkh-count-median": [DateIndex], + "p2wpkh-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2wpkh-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], p2wpkhbytes: [P2WPKHIndex], p2wpkhindex: [P2WPKHIndex], + "p2wsh-count": [Height], + "p2wsh-count-10p": [DateIndex], + "p2wsh-count-25p": [DateIndex], + "p2wsh-count-75p": [DateIndex], + "p2wsh-count-90p": [DateIndex], + "p2wsh-count-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2wsh-count-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2wsh-count-median": [DateIndex], + "p2wsh-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "p2wsh-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], p2wshbytes: [P2WSHIndex], p2wshindex: [P2WSHIndex], quarterindex: [MonthIndex, QuarterIndex], rawlocktime: [TxIndex], - timestamp: [Height], + subsidy: [Height], + "subsidy-10p": [DateIndex], + "subsidy-25p": [DateIndex], + "subsidy-75p": [DateIndex], + "subsidy-90p": [DateIndex], + "subsidy-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "subsidy-in-btc": [Height], + "subsidy-in-btc-10p": [DateIndex], + "subsidy-in-btc-25p": [DateIndex], + "subsidy-in-btc-75p": [DateIndex], + "subsidy-in-btc-90p": [DateIndex], + "subsidy-in-btc-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "subsidy-in-btc-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "subsidy-in-btc-median": [DateIndex], + "subsidy-in-btc-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "subsidy-in-btc-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "subsidy-in-usd": [Height], + "subsidy-in-usd-10p": [DateIndex], + "subsidy-in-usd-25p": [DateIndex], + "subsidy-in-usd-75p": [DateIndex], + "subsidy-in-usd-90p": [DateIndex], + "subsidy-in-usd-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "subsidy-in-usd-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "subsidy-in-usd-median": [DateIndex], + "subsidy-in-usd-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "subsidy-in-usd-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "subsidy-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "subsidy-median": [DateIndex], + "subsidy-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "subsidy-sum": [DateIndex, DecadeIndex, DifficultyEpoch, 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], + "total-block-size": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-block-vbytes": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-block-weight": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-coinbase": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-coinbase-in-btc": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-coinbase-in-usd": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-emptyoutput-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-fee": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-fee-in-btc": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-fee-in-usd": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-input-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-input-value": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-opreturn-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-output-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-output-value": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-p2a-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-p2ms-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-p2pk33-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-p2pk65-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-p2pkh-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-p2sh-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-p2tr-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-p2wpkh-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-p2wsh-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], "total-size": [Height, TxIndex], + "total-subsidy": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-subsidy-in-btc": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-subsidy-in-usd": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-tx-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-tx-v1": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-tx-v2": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-tx-v3": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "total-unknownoutput-count": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "tx-count": [Height], + "tx-count-10p": [DateIndex], + "tx-count-25p": [DateIndex], + "tx-count-75p": [DateIndex], + "tx-count-90p": [DateIndex], + "tx-count-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "tx-count-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "tx-count-median": [DateIndex], + "tx-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "tx-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "tx-v1": [Height], + "tx-v1-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "tx-v2": [Height], + "tx-v2-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "tx-v3": [Height], + "tx-v3-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "tx-vsize-10p": [Height], + "tx-vsize-25p": [Height], + "tx-vsize-75p": [Height], + "tx-vsize-90p": [Height], + "tx-vsize-average": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "tx-vsize-max": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "tx-vsize-median": [Height], + "tx-vsize-min": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "tx-weight-10p": [Height], + "tx-weight-25p": [Height], + "tx-weight-75p": [Height], + "tx-weight-90p": [Height], + "tx-weight-average": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "tx-weight-max": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "tx-weight-median": [Height], + "tx-weight-min": [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex], txid: [TxIndex], txindex: [EmptyOutputIndex, OpReturnIndex, P2MSIndex, TxIndex, UnknownOutputIndex], "txindex-count": [Height], txversion: [TxIndex], + "unknownoutput-count": [Height], + "unknownoutput-count-10p": [DateIndex], + "unknownoutput-count-25p": [DateIndex], + "unknownoutput-count-75p": [DateIndex], + "unknownoutput-count-90p": [DateIndex], + "unknownoutput-count-average": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "unknownoutput-count-max": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "unknownoutput-count-median": [DateIndex], + "unknownoutput-count-min": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], + "unknownoutput-count-sum": [DateIndex, DecadeIndex, DifficultyEpoch, MonthIndex, QuarterIndex, WeekIndex, YearIndex], unknownoutputindex: [UnknownOutputIndex], - value: [OutputIndex], + value: [InputIndex, OutputIndex], + vbytes: [Height], + vsize: [TxIndex], weekindex: [DateIndex, WeekIndex], - weight: [Height], + weight: [Height, TxIndex], yearindex: [MonthIndex, YearIndex], "yearindex-count": [DecadeIndex], });