global: snapshot

This commit is contained in:
nym21
2026-03-09 15:38:23 +01:00
parent cc51cc81f9
commit 961dea6934
16 changed files with 51 additions and 65 deletions
@@ -2,13 +2,9 @@ use brk_traversable::Traversable;
#[derive(Clone, Traversable)]
pub struct Windows<A> {
#[traversable(rename = "24h")]
pub _24h: A,
#[traversable(rename = "1w")]
pub _1w: A,
#[traversable(rename = "1m")]
pub _1m: A,
#[traversable(rename = "1y")]
pub _1y: A,
}
@@ -67,7 +67,6 @@ pub struct RollingWindow24h<T, M: StorageMode = Rw>
where
T: ComputedVecValue + PartialOrd + JsonSchema,
{
#[traversable(rename = "24h")]
pub _24h: ComputedPerBlock<T, M>,
}
@@ -114,11 +113,8 @@ pub struct RollingWindowsFrom1w<T, M: StorageMode = Rw>
where
T: ComputedVecValue + PartialOrd + JsonSchema,
{
#[traversable(rename = "1w")]
pub _1w: ComputedPerBlock<T, M>,
#[traversable(rename = "1m")]
pub _1m: ComputedPerBlock<T, M>,
#[traversable(rename = "1y")]
pub _1y: ComputedPerBlock<T, M>,
}
@@ -22,7 +22,6 @@ pub struct BlockRollingDistribution<T, M: StorageMode = Rw>
where
T: ComputedVecValue + PartialOrd + JsonSchema,
{
#[traversable(rename = "6b")]
pub _6b: Distribution<Height, T, M>,
}