commonware-glue 2026.5.0

Default constructions that span multiple primitives.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Processed-height introspection for simulation state.

use std::future::Future;

/// Access the latest application-acknowledged processed height.
pub trait ProcessedHeight: Send + Sync {
    /// Returns the latest processed height.
    fn processed_height(&self) -> impl Future<Output = u64> + Send;
}

impl ProcessedHeight for () {
    async fn processed_height(&self) -> u64 {
        0
    }
}