pub struct Deposit<T> { /* private fields */ }Expand description
A prepared deposit ready to be submitted on-chain.
Obtained from TridentClient::deposit. Call
send to submit the transaction; await .get_receipt() on the
returned builder to block until inclusion.
Implementations§
Source§impl Deposit<Address>
impl Deposit<Address>
Sourcepub async fn send(
self,
) -> Result<PendingTransactionBuilder<AnyNetwork>, EvmDepositError>
pub async fn send( self, ) -> Result<PendingTransactionBuilder<AnyNetwork>, EvmDepositError>
Submits the deposit on-chain, approving the deposit contract first if
the current ERC-20 allowance is below amount. Returns the deposit
transaction as a PendingTransactionBuilder; the caller awaits
inclusion via .get_receipt() or .watch().
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Deposit<T>
impl<T> !UnwindSafe for Deposit<T>
impl<T> Freeze for Deposit<T>where
PhantomData<T>: Freeze,
impl<T> Send for Deposit<T>where
PhantomData<T>: Send,
impl<T> Sync for Deposit<T>where
PhantomData<T>: Sync,
impl<T> Unpin for Deposit<T>where
PhantomData<T>: Unpin,
impl<T> UnsafeUnpin for Deposit<T>where
PhantomData<T>: UnsafeUnpin,
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
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request