pub struct LogService<'a, N: AztecNode> { /* private fields */ }Expand description
Service for log retrieval operations using the tagging protocol.
Implementations§
Source§impl<'a, N: AztecNode> LogService<'a, N>
impl<'a, N: AztecNode> LogService<'a, N>
pub fn new( node: &'a N, sender_store: &'a SenderStore, sender_tagging_store: &'a SenderTaggingStore, recipient_tagging_store: &'a RecipientTaggingStore, capsule_store: &'a CapsuleStore, ) -> Self
Sourcepub async fn bulk_retrieve_logs(
&self,
requests: &[LogRetrievalRequest],
) -> Result<Vec<Vec<TaggedLog>>, Error>
pub async fn bulk_retrieve_logs( &self, requests: &[LogRetrievalRequest], ) -> Result<Vec<Vec<TaggedLog>>, Error>
Bulk retrieve logs by tags.
Fetches both public and private logs for multiple tag requests, handling pagination automatically.
Sourcepub async fn fetch_tagged_logs(
&self,
contract_address: &AztecAddress,
recipient: &AztecAddress,
tagging_secrets: &[Fr],
) -> Result<Vec<TaggedLog>, Error>
pub async fn fetch_tagged_logs( &self, contract_address: &AztecAddress, recipient: &AztecAddress, tagging_secrets: &[Fr], ) -> Result<Vec<TaggedLog>, Error>
Fetch all tagged logs for a contract, handling multiple recipients and senders.
This is the main entry point for note discovery via the tagging protocol.
Sourcepub async fn get_senders(&self) -> Result<Vec<AztecAddress>, Error>
pub async fn get_senders(&self) -> Result<Vec<AztecAddress>, Error>
Get all registered senders.
Auto Trait Implementations§
impl<'a, N> Freeze for LogService<'a, N>
impl<'a, N> !RefUnwindSafe for LogService<'a, N>
impl<'a, N> Send for LogService<'a, N>
impl<'a, N> Sync for LogService<'a, N>
impl<'a, N> Unpin for LogService<'a, N>
impl<'a, N> !UnwindSafe for LogService<'a, N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more