Files
brk/crates/brk_computer/src/supply/vecs.rs
T
2026-02-23 17:22:12 +01:00

25 lines
839 B
Rust

use brk_traversable::Traversable;
use brk_types::{Dollars, StoredF32};
use vecdb::{Database, Rw, StorageMode};
use super::{burned, velocity};
use crate::internal::{
ComputedFromHeightLast, LazyBinaryComputedFromHeightLast, LazyFromHeightLast,
LazyValueFromHeightLast,
};
#[derive(Traversable)]
pub struct Vecs<M: StorageMode = Rw> {
#[traversable(skip)]
pub(crate) db: Database,
pub circulating: LazyValueFromHeightLast,
pub burned: burned::Vecs<M>,
pub inflation: ComputedFromHeightLast<StoredF32, M>,
pub velocity: velocity::Vecs<M>,
pub market_cap: LazyFromHeightLast<Dollars>,
pub market_cap_growth_rate: ComputedFromHeightLast<StoredF32, M>,
pub realized_cap_growth_rate: ComputedFromHeightLast<StoredF32, M>,
pub cap_growth_rate_diff: LazyBinaryComputedFromHeightLast<StoredF32>,
}