mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-27 02:38:10 -07:00
25 lines
839 B
Rust
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>,
|
|
}
|