Type alias CustomSyncHandler
pub type CustomSyncHandler = unconstrained fn(AztecAddress, ComputeNoteHash, ComputeNoteNullifier, Option<CustomMessageHandler>, Option<OffchainInboxSync>, AztecAddress);
pub type CustomSyncHandler = unconstrained fn(AztecAddress, ComputeNoteHash, ComputeNoteNullifier, Option<CustomMessageHandler>, Option<OffchainInboxSync>, AztecAddress);
Custom state synchronization handler.
When set via
crate::macros::AztecConfig::custom_sync_state, the generatedsync_statefunction will call this handler instead ofdo_sync_state. It receives all of the same parameters, so it can run custom logic (e.g. fetching and decrypting custom logs) before, after, or instead of callingdo_sync_state.