pub struct UtilityExecutionOracle<'a, N>where
N: AztecNode,{ /* private fields */ }Expand description
Oracle for utility function execution (read-only, no side effects).
Implementations§
Source§impl<'a, N> UtilityExecutionOracle<'a, N>where
N: AztecNode,
impl<'a, N> UtilityExecutionOracle<'a, N>where
N: AztecNode,
pub fn new( node: &'a N, contract_store: &'a ContractStore, key_store: &'a KeyStore, note_store: &'a NoteStore, address_store: &'a AddressStore, capsule_store: &'a CapsuleStore, sender_store: &'a SenderStore, sender_tagging_store: &'a SenderTaggingStore, recipient_tagging_store: &'a RecipientTaggingStore, private_event_store: &'a PrivateEventStore, anchor_block_store: &'a AnchorBlockStore, block_header: Value, contract_address: AztecAddress, scopes: Vec<AztecAddress>, ) -> UtilityExecutionOracle<'a, N>
Trait Implementations§
Source§impl<'a, N> OracleCallback for UtilityExecutionOracle<'a, N>
impl<'a, N> OracleCallback for UtilityExecutionOracle<'a, N>
fn handle_foreign_call<'life0, 'life1, 'async_trait>(
&'life0 mut self,
function: &'life1 str,
inputs: Vec<Vec<Fr>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<Fr>>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
UtilityExecutionOracle<'a, N>: 'async_trait,
Auto Trait Implementations§
impl<'a, N> Freeze for UtilityExecutionOracle<'a, N>
impl<'a, N> !RefUnwindSafe for UtilityExecutionOracle<'a, N>
impl<'a, N> Send for UtilityExecutionOracle<'a, N>
impl<'a, N> Sync for UtilityExecutionOracle<'a, N>
impl<'a, N> Unpin for UtilityExecutionOracle<'a, N>
impl<'a, N> !UnwindSafe for UtilityExecutionOracle<'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