mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-21 07:14:47 -07:00
global: fixes
This commit is contained in:
@@ -152,7 +152,7 @@ impl Vecs {
|
|||||||
self.height_to_interval.compute_transform(
|
self.height_to_interval.compute_transform(
|
||||||
starting_indexes.height,
|
starting_indexes.height,
|
||||||
indexer_vecs.height_to_timestamp.vec(),
|
indexer_vecs.height_to_timestamp.vec(),
|
||||||
|(height, timestamp)| {
|
|(height, timestamp, ..)| {
|
||||||
let interval = height.decremented().map_or(Timestamp::ZERO, |prev_h| {
|
let interval = height.decremented().map_or(Timestamp::ZERO, |prev_h| {
|
||||||
let prev_timestamp = height_to_timestamp_iter.unwrap_get_inner(prev_h);
|
let prev_timestamp = height_to_timestamp_iter.unwrap_get_inner(prev_h);
|
||||||
timestamp
|
timestamp
|
||||||
|
|||||||
@@ -196,8 +196,20 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Some(last) = self.last.as_mut() {
|
if let Some(last) = self.last.as_mut() {
|
||||||
let last_index = first_index + *count_index;
|
let count_index = *count_index;
|
||||||
let v = source_iter.get(last_index).unwrap().1.into_inner();
|
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)?;
|
last.forced_push_at(index, v, exit)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -356,7 +368,11 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Some(last) = self.last.as_mut() {
|
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
|
let v = source_last_iter
|
||||||
.as_mut()
|
.as_mut()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
|||||||
@@ -500,16 +500,24 @@ impl Vecs {
|
|||||||
exit,
|
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(
|
self.height_to_timestamp_fixed.compute_transform(
|
||||||
starting_indexes.height,
|
starting_indexes.height,
|
||||||
indexer_vecs.height_to_timestamp.vec(),
|
indexer_vecs.height_to_timestamp.vec(),
|
||||||
|(h, timestamp, ..)| {
|
|(h, timestamp, height_to_timestamp_fixed_iter)| {
|
||||||
let timestamp = h
|
if prev_timestamp_fixed.is_none() {
|
||||||
.decremented()
|
if let Some(prev_h) = h.decremented() {
|
||||||
.map(|h| height_to_timestamp_iter.unwrap_get_inner(h))
|
prev_timestamp_fixed.replace(
|
||||||
.map_or(timestamp, |prev_d| prev_d.max(timestamp));
|
height_to_timestamp_fixed_iter
|
||||||
(h, timestamp)
|
.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,
|
exit,
|
||||||
)?;
|
)?;
|
||||||
@@ -862,32 +870,36 @@ impl Vecs {
|
|||||||
self.dateindex_to_date.any_vec(),
|
self.dateindex_to_date.any_vec(),
|
||||||
self.dateindex_to_dateindex.any_vec(),
|
self.dateindex_to_dateindex.any_vec(),
|
||||||
self.dateindex_to_first_height.any_vec(),
|
self.dateindex_to_first_height.any_vec(),
|
||||||
self.height_to_dateindex.any_vec(),
|
self.dateindex_to_height_count.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_monthindex.any_vec(),
|
self.dateindex_to_monthindex.any_vec(),
|
||||||
self.monthindex_to_yearindex.any_vec(),
|
self.dateindex_to_weekindex.any_vec(),
|
||||||
self.yearindex_to_decadeindex.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_difficultyepoch.any_vec(),
|
||||||
self.height_to_halvingepoch.any_vec(),
|
self.height_to_halvingepoch.any_vec(),
|
||||||
self.weekindex_to_weekindex.any_vec(),
|
self.height_to_height.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_timestamp_fixed.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.monthindex_to_quarterindex.any_vec(),
|
||||||
self.quarterindex_to_first_monthindex.any_vec(),
|
self.monthindex_to_yearindex.any_vec(),
|
||||||
self.quarterindex_to_quarterindex.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.p2pk33index_to_p2pk33index.any_vec(),
|
||||||
self.p2pk65index_to_p2pk65index.any_vec(),
|
self.p2pk65index_to_p2pk65index.any_vec(),
|
||||||
self.p2pkhindex_to_p2pkhindex.any_vec(),
|
self.p2pkhindex_to_p2pkhindex.any_vec(),
|
||||||
@@ -895,22 +907,19 @@ impl Vecs {
|
|||||||
self.p2trindex_to_p2trindex.any_vec(),
|
self.p2trindex_to_p2trindex.any_vec(),
|
||||||
self.p2wpkhindex_to_p2wpkhindex.any_vec(),
|
self.p2wpkhindex_to_p2wpkhindex.any_vec(),
|
||||||
self.p2wshindex_to_p2wshindex.any_vec(),
|
self.p2wshindex_to_p2wshindex.any_vec(),
|
||||||
self.txindex_to_txindex.any_vec(),
|
self.quarterindex_to_first_monthindex.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_monthindex_count.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.yearindex_to_monthindex_count.any_vec(),
|
||||||
self.decadeindex_to_yearindex_count.any_vec(),
|
self.yearindex_to_yearindex.any_vec(),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -337,7 +337,7 @@ impl Vecs {
|
|||||||
self.height_to_ohlc_in_cents.compute_transform(
|
self.height_to_ohlc_in_cents.compute_transform(
|
||||||
starting_indexes.height,
|
starting_indexes.height,
|
||||||
indexer_vecs.height_to_timestamp.vec(),
|
indexer_vecs.height_to_timestamp.vec(),
|
||||||
|(h, t)| {
|
|(h, t, ..)| {
|
||||||
let ohlc = fetcher
|
let ohlc = fetcher
|
||||||
.get_height(
|
.get_height(
|
||||||
h,
|
h,
|
||||||
|
|||||||
@@ -62,17 +62,16 @@ impl Vecs {
|
|||||||
starting_indexes,
|
starting_indexes,
|
||||||
exit,
|
exit,
|
||||||
|vec, _, indexes, starting_indexes, exit| {
|
|vec, _, indexes, starting_indexes, exit| {
|
||||||
|
let mut height_count_iter = indexes.dateindex_to_height_count.iter();
|
||||||
vec.compute_transform(
|
vec.compute_transform(
|
||||||
starting_indexes.dateindex,
|
starting_indexes.dateindex,
|
||||||
indexes.dateindex_to_first_height.vec(),
|
indexes.dateindex_to_first_height.vec(),
|
||||||
|(di, height, ..)| {
|
|(di, height, ..)| {
|
||||||
(
|
(
|
||||||
di,
|
di,
|
||||||
height_to_difficultyepoch_iter
|
height_to_difficultyepoch_iter.unwrap_get_inner(
|
||||||
.get(height)
|
height + (*height_count_iter.unwrap_get_inner(di) - 1),
|
||||||
.unwrap()
|
),
|
||||||
.1
|
|
||||||
.into_inner(),
|
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
exit,
|
exit,
|
||||||
@@ -87,10 +86,18 @@ impl Vecs {
|
|||||||
starting_indexes,
|
starting_indexes,
|
||||||
exit,
|
exit,
|
||||||
|vec, _, indexes, starting_indexes, exit| {
|
|vec, _, indexes, starting_indexes, exit| {
|
||||||
|
let mut height_count_iter = indexes.dateindex_to_height_count.iter();
|
||||||
vec.compute_transform(
|
vec.compute_transform(
|
||||||
starting_indexes.dateindex,
|
starting_indexes.dateindex,
|
||||||
indexes.dateindex_to_first_height.vec(),
|
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,
|
exit,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -19,10 +19,10 @@ pub use vec::*;
|
|||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct Vecs {
|
pub struct Vecs {
|
||||||
pub indexes: indexes::Vecs,
|
pub indexes: indexes::Vecs,
|
||||||
// pub blocks: blocks::Vecs,
|
pub blocks: blocks::Vecs,
|
||||||
// pub mining: mining::Vecs,
|
pub mining: mining::Vecs,
|
||||||
// pub transactions: transactions::Vecs,
|
pub transactions: transactions::Vecs,
|
||||||
// pub marketprice: Option<marketprice::Vecs>,
|
pub marketprice: Option<marketprice::Vecs>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Vecs {
|
impl Vecs {
|
||||||
@@ -30,11 +30,11 @@ impl Vecs {
|
|||||||
fs::create_dir_all(path)?;
|
fs::create_dir_all(path)?;
|
||||||
|
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
// blocks: blocks::Vecs::forced_import(path, compressed)?,
|
blocks: blocks::Vecs::forced_import(path, compressed)?,
|
||||||
indexes: indexes::Vecs::forced_import(path, compressed)?,
|
indexes: indexes::Vecs::forced_import(path, compressed)?,
|
||||||
// mining: mining::Vecs::forced_import(path, compressed)?,
|
mining: mining::Vecs::forced_import(path, compressed)?,
|
||||||
// transactions: transactions::Vecs::forced_import(path, compressed, fetch)?,
|
transactions: transactions::Vecs::forced_import(path, compressed, fetch)?,
|
||||||
// marketprice: fetch.then(|| marketprice::Vecs::forced_import(path, compressed).unwrap()),
|
marketprice: fetch.then(|| marketprice::Vecs::forced_import(path, compressed).unwrap()),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,29 +47,29 @@ impl Vecs {
|
|||||||
) -> color_eyre::Result<()> {
|
) -> color_eyre::Result<()> {
|
||||||
let starting_indexes = self.indexes.compute(indexer, starting_indexes, exit)?;
|
let starting_indexes = self.indexes.compute(indexer, starting_indexes, exit)?;
|
||||||
|
|
||||||
// self.blocks
|
self.blocks
|
||||||
// .compute(indexer, &self.indexes, &starting_indexes, exit)?;
|
.compute(indexer, &self.indexes, &starting_indexes, exit)?;
|
||||||
|
|
||||||
// self.mining
|
self.mining
|
||||||
// .compute(indexer, &self.indexes, &starting_indexes, exit)?;
|
.compute(indexer, &self.indexes, &starting_indexes, exit)?;
|
||||||
|
|
||||||
// if let Some(marketprice) = self.marketprice.as_mut() {
|
if let Some(marketprice) = self.marketprice.as_mut() {
|
||||||
// marketprice.compute(
|
marketprice.compute(
|
||||||
// indexer,
|
indexer,
|
||||||
// &self.indexes,
|
&self.indexes,
|
||||||
// &starting_indexes,
|
&starting_indexes,
|
||||||
// fetcher.unwrap(),
|
fetcher.unwrap(),
|
||||||
// exit,
|
exit,
|
||||||
// )?;
|
)?;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// self.transactions.compute(
|
self.transactions.compute(
|
||||||
// indexer,
|
indexer,
|
||||||
// &self.indexes,
|
&self.indexes,
|
||||||
// &starting_indexes,
|
&starting_indexes,
|
||||||
// self.marketprice.as_ref(),
|
self.marketprice.as_ref(),
|
||||||
// exit,
|
exit,
|
||||||
// )?;
|
)?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
@@ -77,12 +77,12 @@ impl Vecs {
|
|||||||
pub fn as_any_vecs(&self) -> Vec<&dyn AnyStoredVec> {
|
pub fn as_any_vecs(&self) -> Vec<&dyn AnyStoredVec> {
|
||||||
[
|
[
|
||||||
self.indexes.as_any_vecs(),
|
self.indexes.as_any_vecs(),
|
||||||
// self.blocks.as_any_vecs(),
|
self.blocks.as_any_vecs(),
|
||||||
// self.mining.as_any_vecs(),
|
self.mining.as_any_vecs(),
|
||||||
// self.transactions.as_any_vecs(),
|
self.transactions.as_any_vecs(),
|
||||||
// self.marketprice
|
self.marketprice
|
||||||
// .as_ref()
|
.as_ref()
|
||||||
// .map_or(vec![], |v| v.as_any_vecs()),
|
.map_or(vec![], |v| v.as_any_vecs()),
|
||||||
]
|
]
|
||||||
.concat()
|
.concat()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -530,7 +530,7 @@ impl Vecs {
|
|||||||
self.inputindex_to_value.compute_transform(
|
self.inputindex_to_value.compute_transform(
|
||||||
starting_indexes.inputindex,
|
starting_indexes.inputindex,
|
||||||
indexer.vecs().inputindex_to_outputindex.vec(),
|
indexer.vecs().inputindex_to_outputindex.vec(),
|
||||||
|(inputindex, outputindex)| {
|
|(inputindex, outputindex, ..)| {
|
||||||
let value = if outputindex == OutputIndex::COINBASE {
|
let value = if outputindex == OutputIndex::COINBASE {
|
||||||
Sats::ZERO
|
Sats::ZERO
|
||||||
} else if let Some((_, value)) = outputindex_to_value_iter.get(outputindex) {
|
} else if let Some((_, value)) = outputindex_to_value_iter.get(outputindex) {
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ where
|
|||||||
where
|
where
|
||||||
A: StoredIndex,
|
A: StoredIndex,
|
||||||
B: StoredType,
|
B: StoredType,
|
||||||
F: FnMut((A, B)) -> (I, T),
|
F: FnMut((A, B, &Self)) -> (I, T),
|
||||||
{
|
{
|
||||||
self.validate_computed_version_or_reset_file(
|
self.validate_computed_version_or_reset_file(
|
||||||
Version::ZERO + self.version() + other.version(),
|
Version::ZERO + self.version() + other.version(),
|
||||||
@@ -190,7 +190,7 @@ where
|
|||||||
|
|
||||||
let index = max_from.min(A::from(self.len()));
|
let index = max_from.min(A::from(self.len()));
|
||||||
other.iter_at(index).try_for_each(|(a, b)| {
|
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)
|
self.forced_push_at(i, v, exit)
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
@@ -217,9 +217,21 @@ where
|
|||||||
.last()
|
.last()
|
||||||
.map_or_else(T::default, |(_, v)| v.into_inner()),
|
.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();
|
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)
|
self.safe_flush(exit)
|
||||||
|
|||||||
@@ -552,6 +552,19 @@ where
|
|||||||
|
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
fn last(mut self) -> Option<Self::Item>
|
||||||
|
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<I, T>
|
impl<'a, I, T> IntoIterator for &'a CompressedVec<I, T>
|
||||||
|
|||||||
@@ -293,6 +293,7 @@ where
|
|||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
fn last(mut self) -> Option<Self::Item>
|
fn last(mut self) -> Option<Self::Item>
|
||||||
where
|
where
|
||||||
Self: Sized,
|
Self: Sized,
|
||||||
|
|||||||
@@ -196,6 +196,8 @@ export default import("./v5.0.6-treeshaked/script.js").then((lc) => {
|
|||||||
*/
|
*/
|
||||||
function createSetFetchedDataEffect(series, valuesResource) {
|
function createSetFetchedDataEffect(series, valuesResource) {
|
||||||
const fetchedKey = vecsResources.defaultFetchedKey;
|
const fetchedKey = vecsResources.defaultFetchedKey;
|
||||||
|
console.log(fetchedKey);
|
||||||
|
|
||||||
signals.runWithOwner(owner, () =>
|
signals.runWithOwner(owner, () =>
|
||||||
signals.createEffect(
|
signals.createEffect(
|
||||||
() => [
|
() => [
|
||||||
@@ -211,9 +213,10 @@ export default import("./v5.0.6-treeshaked/script.js").then((lc) => {
|
|||||||
const data = new Array(length);
|
const data = new Array(length);
|
||||||
let prevTime = null;
|
let prevTime = null;
|
||||||
let offset = 0;
|
let offset = 0;
|
||||||
|
|
||||||
for (let i = 0; i < length; i++) {
|
for (let i = 0; i < length; i++) {
|
||||||
const time = indexes[i];
|
const time = indexes[i];
|
||||||
if (prevTime && prevTime === time) {
|
if (prevTime === time) {
|
||||||
offset += 1;
|
offset += 1;
|
||||||
}
|
}
|
||||||
const v = ohlcs[i];
|
const v = ohlcs[i];
|
||||||
@@ -233,8 +236,10 @@ export default import("./v5.0.6-treeshaked/script.js").then((lc) => {
|
|||||||
}
|
}
|
||||||
prevTime = time;
|
prevTime = time;
|
||||||
}
|
}
|
||||||
|
|
||||||
data.length -= offset;
|
data.length -= offset;
|
||||||
series.setData(data);
|
series.setData(data);
|
||||||
|
|
||||||
timeScaleSetCallback?.(() => {
|
timeScaleSetCallback?.(() => {
|
||||||
if (
|
if (
|
||||||
!timeScaleSet &&
|
!timeScaleSet &&
|
||||||
@@ -428,7 +433,6 @@ export default import("./v5.0.6-treeshaked/script.js").then((lc) => {
|
|||||||
valuesResource.fetch();
|
valuesResource.fetch();
|
||||||
activeResources.push(valuesResource);
|
activeResources.push(valuesResource);
|
||||||
createSetFetchedDataEffect(series, valuesResource);
|
createSetFetchedDataEffect(series, valuesResource);
|
||||||
|
|
||||||
url = valuesResource.url;
|
url = valuesResource.url;
|
||||||
} else if (data) {
|
} else if (data) {
|
||||||
signals.runWithOwner(owner, () =>
|
signals.runWithOwner(owner, () =>
|
||||||
|
|||||||
@@ -57,15 +57,110 @@ export function createVecIdToIndexes() {
|
|||||||
|
|
||||||
return /** @type {const} */ ({
|
return /** @type {const} */ ({
|
||||||
"base-size": [TxIndex],
|
"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],
|
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: [DateIndex, Height],
|
||||||
"date-fixed": [Height],
|
"date-fixed": [Height],
|
||||||
dateindex: [DateIndex, Height],
|
dateindex: [DateIndex, Height],
|
||||||
"dateindex-count": [MonthIndex, WeekIndex],
|
"dateindex-count": [MonthIndex, WeekIndex],
|
||||||
decadeindex: [DecadeIndex, YearIndex],
|
decadeindex: [DecadeIndex, YearIndex],
|
||||||
difficulty: [Height],
|
difficulty: [DateIndex, DecadeIndex, DifficultyEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||||
difficultyepoch: [DifficultyEpoch, Height],
|
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],
|
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-dateindex": [MonthIndex, WeekIndex],
|
||||||
"first-emptyoutputindex": [Height],
|
"first-emptyoutputindex": [Height],
|
||||||
"first-height": [DateIndex, DifficultyEpoch, HalvingEpoch],
|
"first-height": [DateIndex, DifficultyEpoch, HalvingEpoch],
|
||||||
@@ -85,47 +180,294 @@ export function createVecIdToIndexes() {
|
|||||||
"first-txindex": [Height],
|
"first-txindex": [Height],
|
||||||
"first-unknownoutputindex": [Height],
|
"first-unknownoutputindex": [Height],
|
||||||
"first-yearindex": [DecadeIndex],
|
"first-yearindex": [DecadeIndex],
|
||||||
halvingepoch: [HalvingEpoch, Height],
|
halvingepoch: [DateIndex, DecadeIndex, HalvingEpoch, Height, MonthIndex, QuarterIndex, WeekIndex, YearIndex],
|
||||||
height: [Height],
|
height: [Height, TxIndex],
|
||||||
"height-count": [DateIndex, DifficultyEpoch],
|
"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],
|
inputindex: [InputIndex],
|
||||||
|
interval: [Height],
|
||||||
|
"is-coinbase": [TxIndex],
|
||||||
"is-explicitly-rbf": [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: [DateIndex, MonthIndex],
|
||||||
"monthindex-count": [QuarterIndex, YearIndex],
|
"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],
|
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],
|
outputindex: [InputIndex, OutputIndex],
|
||||||
outputtype: [OutputIndex],
|
outputtype: [OutputIndex],
|
||||||
outputtypeindex: [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],
|
p2abytes: [P2AIndex],
|
||||||
p2aindex: [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],
|
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],
|
p2pk33bytes: [P2PK33Index],
|
||||||
p2pk33index: [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],
|
p2pk65bytes: [P2PK65Index],
|
||||||
p2pk65index: [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],
|
p2pkhbytes: [P2PKHIndex],
|
||||||
p2pkhindex: [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],
|
p2shbytes: [P2SHIndex],
|
||||||
p2shindex: [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],
|
p2trbytes: [P2TRIndex],
|
||||||
p2trindex: [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],
|
p2wpkhbytes: [P2WPKHIndex],
|
||||||
p2wpkhindex: [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],
|
p2wshbytes: [P2WSHIndex],
|
||||||
p2wshindex: [P2WSHIndex],
|
p2wshindex: [P2WSHIndex],
|
||||||
quarterindex: [MonthIndex, QuarterIndex],
|
quarterindex: [MonthIndex, QuarterIndex],
|
||||||
rawlocktime: [TxIndex],
|
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],
|
"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-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],
|
txid: [TxIndex],
|
||||||
txindex: [EmptyOutputIndex, OpReturnIndex, P2MSIndex, TxIndex, UnknownOutputIndex],
|
txindex: [EmptyOutputIndex, OpReturnIndex, P2MSIndex, TxIndex, UnknownOutputIndex],
|
||||||
"txindex-count": [Height],
|
"txindex-count": [Height],
|
||||||
txversion: [TxIndex],
|
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],
|
unknownoutputindex: [UnknownOutputIndex],
|
||||||
value: [OutputIndex],
|
value: [InputIndex, OutputIndex],
|
||||||
|
vbytes: [Height],
|
||||||
|
vsize: [TxIndex],
|
||||||
weekindex: [DateIndex, WeekIndex],
|
weekindex: [DateIndex, WeekIndex],
|
||||||
weight: [Height],
|
weight: [Height, TxIndex],
|
||||||
yearindex: [MonthIndex, YearIndex],
|
yearindex: [MonthIndex, YearIndex],
|
||||||
"yearindex-count": [DecadeIndex],
|
"yearindex-count": [DecadeIndex],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user