crates: snapshot

This commit is contained in:
nym21
2025-12-30 11:48:09 +01:00
parent d9f28e85af
commit bd376f86ea
36 changed files with 1372 additions and 1355 deletions

View File

@@ -6,7 +6,7 @@ use rustc_hash::FxHashMap;
use crate::stateful::{
address::{AddressTypeToTypeIndexMap, AddressesDataVecs, AnyAddressIndexesVecs},
compute::VecsReaders,
states::Transacted,
state::Transacted,
};
use super::{

View File

@@ -4,7 +4,7 @@ use brk_types::{Sats, TxIndex, TypeIndex};
use crate::stateful::{
address::{AddressTypeToTypeIndexMap, AddressesDataVecs, AnyAddressIndexesVecs},
compute::{TxOutData, VecsReaders},
states::Transacted,
state::Transacted,
};
use super::{

View File

@@ -14,7 +14,7 @@ use crate::{
Indexes,
grouped::{ComputedVecsFromHeight, Source, VecBuilderOptions},
indexes, price,
stateful::states::AddressCohortState,
stateful::state::AddressCohortState,
};
use super::{

View File

@@ -9,7 +9,7 @@ use vecdb::{AnyStoredVec, Database, Exit, IterableVec};
use crate::{
Indexes, indexes, price,
stateful::{CohortVecs, DynCohortVecs, states::UTXOCohortState},
stateful::{CohortVecs, DynCohortVecs, state::UTXOCohortState},
};
use super::super::metrics::{CohortMetrics, ImportConfig, SupplyMetrics};

View File

@@ -1,6 +1,6 @@
use brk_types::{Dollars, Height, Timestamp};
use crate::stateful::states::Transacted;
use crate::stateful::state::Transacted;
use super::UTXOCohorts;

View File

@@ -3,7 +3,7 @@ use rustc_hash::FxHashMap;
use vecdb::VecIndex;
use crate::{
stateful::states::{BlockState, Transacted},
stateful::state::{BlockState, Transacted},
utils::OptionExt,
};

View File

@@ -1,7 +1,7 @@
use brk_grouper::AGE_BOUNDARIES;
use brk_types::{ONE_DAY_IN_SEC, Timestamp};
use crate::stateful::states::BlockState;
use crate::stateful::state::BlockState;
use super::UTXOCohorts;

View File

@@ -13,11 +13,11 @@ use crate::{
stateful::{
address::AddressTypeToAddressCount,
compute::write::{process_address_updates, write},
process::{
block::{
AddressCache, InputsResult, process_inputs, process_outputs, process_received,
process_sent,
},
states::{BlockState, Transacted},
state::{BlockState, Transacted},
},
txins,
utils::OptionExt,

View File

@@ -8,11 +8,11 @@ use vecdb::{AnyStoredVec, GenericStoredVec, Stamp};
use crate::stateful::{
Vecs,
process::{
block::{
EmptyAddressDataWithSource, LoadedAddressDataWithSource, process_empty_addresses,
process_loaded_addresses,
},
states::BlockState,
state::BlockState,
};
use super::super::address::{AddressTypeToTypeIndexMap, AddressesDataVecs, AnyAddressIndexesVecs};

View File

@@ -21,7 +21,7 @@ use brk_types::{Bitcoin, DateIndex, Dollars, Height, Version};
use rayon::prelude::*;
use vecdb::{AnyStoredVec, Exit, IterableVec};
use crate::{Indexes, indexes, price, stateful::states::CohortState};
use crate::{Indexes, indexes, price, stateful::state::CohortState};
/// All metrics for a cohort, organized by category.
#[derive(Clone, Traversable)]

View File

@@ -9,7 +9,7 @@ use vecdb::{
use crate::{
Indexes,
grouped::{ComputedVecsFromHeight, PricePercentiles, Source, VecBuilderOptions},
stateful::states::CohortState,
stateful::state::CohortState,
};
use super::ImportConfig;

View File

@@ -15,7 +15,7 @@ use crate::{
VecBuilderOptions,
},
indexes, price,
stateful::states::RealizedState,
stateful::state::RealizedState,
utils::OptionExt,
};

View File

@@ -13,7 +13,7 @@ use crate::{
ComputedHeightValueVecs, ComputedValueVecsFromDateIndex, ComputedVecsFromDateIndex,
DollarsMinus, DollarsPlus, LazyVecsFromDateIndex, Source, VecBuilderOptions,
},
stateful::states::UnrealizedState,
stateful::state::UnrealizedState,
};
use super::ImportConfig;

View File

@@ -1,10 +1,10 @@
pub mod address;
mod block;
pub mod cohorts;
pub mod compute;
pub mod metrics;
mod process;
mod range_map;
mod states;
mod state;
mod vecs;
pub use range_map::RangeMap;

View File

@@ -4,7 +4,7 @@ use brk_error::Result;
use brk_types::{Dollars, Height, LoadedAddressData, Sats, SupplyState};
use vecdb::unlikely;
use crate::stateful::states::RealizedState;
use crate::stateful::state::RealizedState;
use super::CohortState;

View File

@@ -22,7 +22,7 @@ use crate::{
indexes, price,
stateful::{
compute::{StartMode, determine_start_mode, process_blocks, recover_state, reset_state},
states::BlockState,
state::BlockState,
},
txins,
utils::OptionExt,