Trait LCV3StateRelayServerDataSource

Source
pub trait LCV3StateRelayServerDataSource {
    // Required methods
    fn get_latest_signature_bundle(
        &self,
    ) -> Result<LCV3StateSignaturesBundle, ServerError>;
    fn post_signature<'life0, 'async_trait>(
        &'life0 mut self,
        req: LCV3StateSignatureRequestBody,
    ) -> Pin<Box<dyn Future<Output = Result<(), ServerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get_latest_signature_bundle( &self, ) -> Result<LCV3StateSignaturesBundle, ServerError>

Get the latest available signatures bundle.

§Errors

Errors if there’s no available signatures bundle.

Source

fn post_signature<'life0, 'async_trait>( &'life0 mut self, req: LCV3StateSignatureRequestBody, ) -> Pin<Box<dyn Future<Output = Result<(), ServerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Post a signature to the relay server

§Errors

Errors if the signature is invalid, already posted, or no longer needed.

Implementors§