aztec-nr - noir_aztec::messages::processing::log_retrieval_request

Struct LogRetrievalRequest

pub struct LogRetrievalRequest {
    pub contract_address: AztecAddress,
    pub unsiloed_tag: Field,
    pub source: Field,
    pub from_block: Option<Field>,
    pub to_block: Option<Field>,
}

A request for the bulk_retrieve_logs oracle to fetch all logs matching a tag.

Fields

contract_address: AztecAddress
unsiloed_tag: Field
source: Field

Which log source to query: public, private, or both (the default). See LogSource.

from_block: Option<Field>

Inclusive lower bound on block number. When unset, logs from the first block are included.

to_block: Option<Field>

Exclusive upper bound on block number. When unset, logs up to the anchor block are included.

Implementations

impl LogRetrievalRequest

Trait implementations

impl Serialize for LogRetrievalRequest

pub fn serialize(self) -> [Field; 7] pub fn stream_serialize<let K: u32>(self, writer: &mut Writer<K>)