openzeppelin_relayer::services

Trait WebhookNotificationServiceTrait

Source
pub trait WebhookNotificationServiceTrait: Send + Sync {
    // Required methods
    fn send_notification<'life0, 'async_trait>(
        &'life0 self,
        notification: WebhookNotification,
    ) -> Pin<Box<dyn Future<Output = Result<WebhookResponse, WebhookNotificationError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn sign_payload(
        &self,
        payload: &str,
        secret_key: &SecretString,
    ) -> Result<String, WebhookNotificationError>;
}

Required Methods§

Source

fn send_notification<'life0, 'async_trait>( &'life0 self, notification: WebhookNotification, ) -> Pin<Box<dyn Future<Output = Result<WebhookResponse, WebhookNotificationError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn sign_payload( &self, payload: &str, secret_key: &SecretString, ) -> Result<String, WebhookNotificationError>

Implementors§