mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 06:39:58 -07:00
30 lines
1.1 KiB
Rust
30 lines
1.1 KiB
Rust
use brk_traversable::Traversable;
|
|
use brk_types::{BasisPoints16, BasisPoints32, StoredF32};
|
|
use vecdb::{Database, Rw, StorageMode};
|
|
|
|
use super::realized_envelope::RealizedEnvelope;
|
|
use crate::internal::{PerBlock, PercentPerBlock, RatioPerBlock};
|
|
|
|
#[derive(Traversable)]
|
|
pub struct DormancyVecs<M: StorageMode = Rw> {
|
|
pub supply_adjusted: PerBlock<StoredF32, M>,
|
|
pub flow: PerBlock<StoredF32, M>,
|
|
}
|
|
|
|
#[derive(Traversable)]
|
|
pub struct Vecs<M: StorageMode = Rw> {
|
|
#[traversable(skip)]
|
|
pub(crate) db: Database,
|
|
pub puell_multiple: RatioPerBlock<BasisPoints32, M>,
|
|
pub nvt: RatioPerBlock<BasisPoints32, M>,
|
|
pub gini: PercentPerBlock<BasisPoints16, M>,
|
|
pub rhodl_ratio: RatioPerBlock<BasisPoints32, M>,
|
|
pub thermo_cap_multiple: RatioPerBlock<BasisPoints32, M>,
|
|
pub coindays_destroyed_supply_adjusted: PerBlock<StoredF32, M>,
|
|
pub coinyears_destroyed_supply_adjusted: PerBlock<StoredF32, M>,
|
|
pub dormancy: DormancyVecs<M>,
|
|
pub stock_to_flow: PerBlock<StoredF32, M>,
|
|
pub seller_exhaustion: PerBlock<StoredF32, M>,
|
|
pub realized_envelope: RealizedEnvelope<M>,
|
|
}
|