mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 06:39:58 -07:00
22 lines
864 B
Rust
22 lines
864 B
Rust
use brk_traversable::Traversable;
|
|
use brk_types::{BasisPoints16, Cents};
|
|
use vecdb::{Rw, StorageMode};
|
|
|
|
use crate::internal::{
|
|
AmountFromHeightCumulative, AmountFromHeightCumulativeSum, AmountFromHeightFull,
|
|
FiatFromHeight, PercentFromHeight, PercentRollingWindows,
|
|
};
|
|
|
|
#[derive(Traversable)]
|
|
pub struct Vecs<M: StorageMode = Rw> {
|
|
pub coinbase: AmountFromHeightCumulativeSum<M>,
|
|
pub subsidy: AmountFromHeightCumulative<M>,
|
|
pub fees: AmountFromHeightFull<M>,
|
|
pub unclaimed_rewards: AmountFromHeightCumulativeSum<M>,
|
|
pub fee_dominance: PercentFromHeight<BasisPoints16, M>,
|
|
pub fee_dominance_rolling: PercentRollingWindows<BasisPoints16, M>,
|
|
pub subsidy_dominance: PercentFromHeight<BasisPoints16, M>,
|
|
pub subsidy_dominance_rolling: PercentRollingWindows<BasisPoints16, M>,
|
|
pub subsidy_sma_1y: FiatFromHeight<Cents, M>,
|
|
}
|