pub struct ChannelUpdateTransferTransaction<T: Transport> { /* private fields */ }
Expand description
Channel update transfer transaction type.
Trait Implementations§
source§impl<T> Transaction for ChannelUpdateTransferTransaction<T>
impl<T> Transaction for ChannelUpdateTransferTransaction<T>
§type Params = ChannelUpdateTransferTransactionParams
type Params = ChannelUpdateTransferTransactionParams
The params type to be passed down to transaction.
§type Data = ChannelUpdateTransferTransactionData
type Data = ChannelUpdateTransferTransactionData
The on-chain data placeholder.
source§fn onchain_data<'life0, 'async_trait>(
&'life0 self,
params: Self::Params,
at_block_hash: BlockHash
) -> Pin<Box<dyn Future<Output = Result<Self::Data, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn onchain_data<'life0, 'async_trait>(
&'life0 self,
params: Self::Params,
at_block_hash: BlockHash
) -> Pin<Box<dyn Future<Output = Result<Self::Data, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch data residing on-chain for validation prior / post execution.
source§fn validate_preconditions<'life0, 'async_trait>(
&'life0 self,
params: Self::Params,
data: Self::Data,
_block: BlockHash
) -> Pin<Box<dyn Future<Output = Result<(), ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn validate_preconditions<'life0, 'async_trait>(
&'life0 self,
params: Self::Params,
data: Self::Data,
_block: BlockHash
) -> Pin<Box<dyn Future<Output = Result<(), ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Validate pre-conditions needed to execute the transaction.
source§fn submit<'life0, 'async_trait>(
&'life0 self,
params: Self::Params,
_data: Self::Data,
gas_estimate: GasLimit,
gas_price: GasPrice
) -> Pin<Box<dyn Future<Output = Result<Self::Output, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn submit<'life0, 'async_trait>(
&'life0 self,
params: Self::Params,
_data: Self::Data,
gas_estimate: GasLimit,
gas_price: GasPrice
) -> Pin<Box<dyn Future<Output = Result<Self::Output, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Submit transaction on-chain.
source§fn validate_postconditions<'life0, 'async_trait>(
&'life0 self,
params: Self::Params,
_block: BlockHash
) -> Pin<Box<dyn Future<Output = Result<Self::Output, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn validate_postconditions<'life0, 'async_trait>(
&'life0 self,
params: Self::Params,
_block: BlockHash
) -> Pin<Box<dyn Future<Output = Result<Self::Output, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Validate conditions after the execution of the transaction in case the execution failed.
source§fn estimate_gas<'life0, 'async_trait>(
&'life0 self,
params: Self::Params,
_data: Self::Data
) -> Pin<Box<dyn Future<Output = Result<(GasLimit, GasPrice), ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn estimate_gas<'life0, 'async_trait>(
&'life0 self,
params: Self::Params,
_data: Self::Data
) -> Pin<Box<dyn Future<Output = Result<(GasLimit, GasPrice), ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Estimate gas for the transaction.
source§fn execute_prerequisite<'life0, 'async_trait>(
&'life0 self,
_params: Self::Params,
_data: Self::Data
) -> Pin<Box<dyn Future<Output = Result<(), ProxyError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn execute_prerequisite<'life0, 'async_trait>(
&'life0 self,
_params: Self::Params,
_data: Self::Data
) -> Pin<Box<dyn Future<Output = Result<(), ProxyError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Execute transactions that are required prior to executing the current one. Read more
source§fn execute<'life0, 'async_trait>(
&'life0 self,
params: Self::Params,
at_block_hash: H256
) -> Pin<Box<dyn Future<Output = Result<Self::Output, ProxyError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
params: Self::Params,
at_block_hash: H256
) -> Pin<Box<dyn Future<Output = Result<Self::Output, ProxyError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Validate preconditions, execute the transaction and if failed, validate post conditions.
Auto Trait Implementations§
impl<T> Freeze for ChannelUpdateTransferTransaction<T>where
T: Freeze,
impl<T> !RefUnwindSafe for ChannelUpdateTransferTransaction<T>
impl<T> Send for ChannelUpdateTransferTransaction<T>where
T: Send,
impl<T> Sync for ChannelUpdateTransferTransaction<T>where
T: Sync,
impl<T> Unpin for ChannelUpdateTransferTransaction<T>where
T: Unpin,
impl<T> !UnwindSafe for ChannelUpdateTransferTransaction<T>
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> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
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> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.