pub trait EventNotificationSender: Send {
    // Required methods
    fn notify_events<'life0, 'async_trait>(
        &'life0 mut self,
        version: Version,
        events: Vec<ContractEvent>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn notify_initial_configs<'life0, 'async_trait>(
        &'life0 mut self,
        version: Version
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

The interface between state sync and the subscription notification service, allowing state sync to notify the subscription service of new events.

Required Methods§

source

fn notify_events<'life0, 'async_trait>( &'life0 mut self, version: Version, events: Vec<ContractEvent> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Notify the subscription service of the events at the specified version.

source

fn notify_initial_configs<'life0, 'async_trait>( &'life0 mut self, version: Version ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Forces the subscription service to notify subscribers of the current on-chain configurations at the specified version. This is useful for forcing reconfiguration notifications even if no reconfiguration event was processed (e.g., on startup).

Implementors§