mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 06:39:58 -07:00
crates: snapshot
This commit is contained in:
@@ -6,7 +6,7 @@ use rustc_hash::FxHashMap;
|
||||
use crate::stateful::{
|
||||
address::{AddressTypeToTypeIndexMap, AddressesDataVecs, AnyAddressIndexesVecs},
|
||||
compute::VecsReaders,
|
||||
states::Transacted,
|
||||
state::Transacted,
|
||||
};
|
||||
|
||||
use super::{
|
||||
@@ -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::{
|
||||
@@ -14,7 +14,7 @@ use crate::{
|
||||
Indexes,
|
||||
grouped::{ComputedVecsFromHeight, Source, VecBuilderOptions},
|
||||
indexes, price,
|
||||
stateful::states::AddressCohortState,
|
||||
stateful::state::AddressCohortState,
|
||||
};
|
||||
|
||||
use super::{
|
||||
|
||||
@@ -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};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use brk_types::{Dollars, Height, Timestamp};
|
||||
|
||||
use crate::stateful::states::Transacted;
|
||||
use crate::stateful::state::Transacted;
|
||||
|
||||
use super::UTXOCohorts;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ use rustc_hash::FxHashMap;
|
||||
use vecdb::VecIndex;
|
||||
|
||||
use crate::{
|
||||
stateful::states::{BlockState, Transacted},
|
||||
stateful::state::{BlockState, Transacted},
|
||||
utils::OptionExt,
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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};
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -9,7 +9,7 @@ use vecdb::{
|
||||
use crate::{
|
||||
Indexes,
|
||||
grouped::{ComputedVecsFromHeight, PricePercentiles, Source, VecBuilderOptions},
|
||||
stateful::states::CohortState,
|
||||
stateful::state::CohortState,
|
||||
};
|
||||
|
||||
use super::ImportConfig;
|
||||
|
||||
@@ -15,7 +15,7 @@ use crate::{
|
||||
VecBuilderOptions,
|
||||
},
|
||||
indexes, price,
|
||||
stateful::states::RealizedState,
|
||||
stateful::state::RealizedState,
|
||||
utils::OptionExt,
|
||||
};
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ use crate::{
|
||||
ComputedHeightValueVecs, ComputedValueVecsFromDateIndex, ComputedVecsFromDateIndex,
|
||||
DollarsMinus, DollarsPlus, LazyVecsFromDateIndex, Source, VecBuilderOptions,
|
||||
},
|
||||
stateful::states::UnrealizedState,
|
||||
stateful::state::UnrealizedState,
|
||||
};
|
||||
|
||||
use super::ImportConfig;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user