pub struct L1TransactionReceipt { /* private fields */ }Expand description
A wrapper struct to hold L1 transaction receipt and L2 provider which is used by the associated functions.
Implementations§
Source§impl L1TransactionReceipt
impl L1TransactionReceipt
Sourcepub fn new(
tx_receipt: TransactionReceipt,
l2_provider: RootProvider<Zksync>,
) -> Self
pub fn new( tx_receipt: TransactionReceipt, l2_provider: RootProvider<Zksync>, ) -> Self
Creates a new L1TransactionReceipt object.
Sourcepub fn get_receipt(&self) -> &TransactionReceipt
pub fn get_receipt(&self) -> &TransactionReceipt
Returns a receipt for the L1 operation.
Sourcepub fn get_l2_tx(
&self,
) -> Result<PendingTransactionBuilder<Zksync>, L1CommunicationError>
pub fn get_l2_tx( &self, ) -> Result<PendingTransactionBuilder<Zksync>, L1CommunicationError>
Returns a PendingTransactionBuilder
for the L2 transaction, which can be used to await the transaction on L2.
Will return an error if the transaction request used to create the object does not contain priority operation information (e.g. it doesn’t correspond to an L1->L2 transaction).
Auto Trait Implementations§
impl Freeze for L1TransactionReceipt
impl !RefUnwindSafe for L1TransactionReceipt
impl Send for L1TransactionReceipt
impl Sync for L1TransactionReceipt
impl Unpin for L1TransactionReceipt
impl !UnwindSafe for L1TransactionReceipt
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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