global: snapshot

This commit is contained in:
nym21
2026-03-03 22:10:05 +01:00
parent 28f6b0f18b
commit 269c1d5fdf
99 changed files with 1565 additions and 1146 deletions
+6 -6
View File
@@ -1,10 +1,10 @@
use brk_traversable::Traversable;
use brk_types::{Dollars, StoredF32};
use brk_types::{BasisPointsSigned32, Dollars};
use vecdb::{Database, Rw, StorageMode};
use super::{burned, velocity};
use crate::internal::{
ComputedFromHeight, LazyFromHeight, LazyValueFromHeight,
ComputedFromHeight, LazyFromHeight, LazyValueFromHeight, PercentFromHeight,
};
#[derive(Traversable)]
@@ -14,10 +14,10 @@ pub struct Vecs<M: StorageMode = Rw> {
pub circulating: LazyValueFromHeight,
pub burned: burned::Vecs<M>,
pub inflation: ComputedFromHeight<StoredF32, M>,
pub inflation_rate: PercentFromHeight<BasisPointsSigned32, M>,
pub velocity: velocity::Vecs<M>,
pub market_cap: LazyFromHeight<Dollars>,
pub market_cap_growth_rate: ComputedFromHeight<StoredF32, M>,
pub realized_cap_growth_rate: ComputedFromHeight<StoredF32, M>,
pub cap_growth_rate_diff: ComputedFromHeight<StoredF32, M>,
pub market_cap_growth_rate: PercentFromHeight<BasisPointsSigned32, M>,
pub realized_cap_growth_rate: PercentFromHeight<BasisPointsSigned32, M>,
pub market_minus_realized_cap_growth_rate: ComputedFromHeight<BasisPointsSigned32, M>,
}