pub struct EthereumTransactionExecutor<T, C, PGen>{ /* private fields */ }
Expand description
Implementation of TransactionExecutor
using the given EthereumClient
and corresponding
PayloadGenerator
.
Implementations§
Source§impl<T, C, PGen> EthereumTransactionExecutor<T, C, PGen>
impl<T, C, PGen> EthereumTransactionExecutor<T, C, PGen>
Trait Implementations§
Source§impl<T, C, PGen> Clone for EthereumTransactionExecutor<T, C, PGen>where
T: Into<TransactionRequest> + Clone,
C: EthereumClient<T> + Clone + Clone,
PGen: PayloadGenerator<T> + Clone + Clone,
impl<T, C, PGen> Clone for EthereumTransactionExecutor<T, C, PGen>where
T: Into<TransactionRequest> + Clone,
C: EthereumClient<T> + Clone + Clone,
PGen: PayloadGenerator<T> + Clone + Clone,
Source§fn clone(&self) -> EthereumTransactionExecutor<T, C, PGen>
fn clone(&self) -> EthereumTransactionExecutor<T, C, PGen>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T, C, PGen> Debug for EthereumTransactionExecutor<T, C, PGen>where
T: Into<TransactionRequest> + Debug,
C: EthereumClient<T> + Clone + Debug,
PGen: PayloadGenerator<T> + Clone + Debug,
impl<T, C, PGen> Debug for EthereumTransactionExecutor<T, C, PGen>where
T: Into<TransactionRequest> + Debug,
C: EthereumClient<T> + Clone + Debug,
PGen: PayloadGenerator<T> + Clone + Debug,
Source§impl<T, C, PGen> TransactionExecutor for EthereumTransactionExecutor<T, C, PGen>
impl<T, C, PGen> TransactionExecutor for EthereumTransactionExecutor<T, C, PGen>
Source§fn redeem_ticket<'life0, 'async_trait>(
&'life0 self,
acked_ticket: RedeemableTicket,
) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn redeem_ticket<'life0, 'async_trait>(
&'life0 self,
acked_ticket: RedeemableTicket,
) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Executes ticket redemption transaction given a ticket.
Source§fn fund_channel<'life0, 'async_trait>(
&'life0 self,
destination: Address,
balance: HoprBalance,
) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fund_channel<'life0, 'async_trait>(
&'life0 self,
destination: Address,
balance: HoprBalance,
) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Executes channel funding transaction (or channel opening) to the given
destination
and stake.
Channel funding and channel opening are both same transactions.Source§fn initiate_outgoing_channel_closure<'life0, 'async_trait>(
&'life0 self,
dst: Address,
) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn initiate_outgoing_channel_closure<'life0, 'async_trait>(
&'life0 self,
dst: Address,
) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Initiates closure of an outgoing channel.
Source§fn finalize_outgoing_channel_closure<'life0, 'async_trait>(
&'life0 self,
dst: Address,
) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn finalize_outgoing_channel_closure<'life0, 'async_trait>(
&'life0 self,
dst: Address,
) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Finalizes closure of an outgoing channel.
Source§fn close_incoming_channel<'life0, 'async_trait>(
&'life0 self,
src: Address,
) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn close_incoming_channel<'life0, 'async_trait>(
&'life0 self,
src: Address,
) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Closes incoming channel.
Source§fn withdraw<'life0, 'async_trait, Cr>(
&'life0 self,
recipient: Address,
amount: Balance<Cr>,
) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>where
Cr: 'async_trait + Currency + Send,
Self: 'async_trait,
'life0: 'async_trait,
fn withdraw<'life0, 'async_trait, Cr>(
&'life0 self,
recipient: Address,
amount: Balance<Cr>,
) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>where
Cr: 'async_trait + Currency + Send,
Self: 'async_trait,
'life0: 'async_trait,
Performs withdrawal of a certain amount from an address.
Note that this transaction is typically awaited via polling and is not tracked
by the Indexer.
Auto Trait Implementations§
impl<T, C, PGen> Freeze for EthereumTransactionExecutor<T, C, PGen>
impl<T, C, PGen> RefUnwindSafe for EthereumTransactionExecutor<T, C, PGen>
impl<T, C, PGen> Send for EthereumTransactionExecutor<T, C, PGen>
impl<T, C, PGen> Sync for EthereumTransactionExecutor<T, C, PGen>
impl<T, C, PGen> Unpin for EthereumTransactionExecutor<T, C, PGen>
impl<T, C, PGen> UnwindSafe for EthereumTransactionExecutor<T, C, PGen>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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