hopr_api/chain/
events.rs

1pub use hopr_chain_types::chain_events::{ChainEventType, SignificantChainEvent};
2
3/// Allows subscribing to on-chain events.
4pub trait ChainEvents {
5    type Error: std::error::Error + Send + Sync;
6
7    /// Subscribe to on-chain events.
8    fn subscribe(&self) -> Result<impl futures::Stream<Item = SignificantChainEvent> + Send + 'static, Self::Error>;
9}