brk_computer 0.11.0

A Bitcoin dataset computer built on top of brk_indexer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use brk_traversable::Traversable;
use brk_types::{Cents, PartsPerMillion32};
use vecdb::{Rw, StorageMode};

use crate::internal::{FiatPerBlock, LazyFiatPerBlock, RatioPerBlock};

#[derive(Traversable)]
pub struct Vecs<M: StorageMode = Rw> {
    pub thermo: LazyFiatPerBlock<Cents>,
    pub investor: FiatPerBlock<Cents, M>,
    pub vaulted: FiatPerBlock<Cents, M>,
    pub active: FiatPerBlock<Cents, M>,
    pub cointime: FiatPerBlock<Cents, M>,
    pub aviv: RatioPerBlock<PartsPerMillion32, M>,
}