pub trait EventNotificationSender: Send {
fn notify_events(
&mut self,
version: Version,
events: Vec<ContractEvent>
) -> Result<(), Error>;
fn notify_initial_configs(&mut self, version: Version) -> Result<(), Error>;
}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
fn notify_events(
&mut self,
version: Version,
events: Vec<ContractEvent>
) -> Result<(), Error>
fn notify_events(
&mut self,
version: Version,
events: Vec<ContractEvent>
) -> Result<(), Error>
Notify the subscription service of the events at the specified version.
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).