Trait finality_relay::TargetClient
source · pub trait TargetClient<P: FinalitySyncPipeline>: RelayClient {
type TransactionTracker: TransactionTracker;
// Required methods
fn best_finalized_source_block_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HeaderId<P::Hash, P::Number>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn free_source_headers_interval<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<P::Number>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn submit_finality_proof<'life0, 'async_trait>(
&'life0 self,
header: P::Header,
proof: P::FinalityProof,
is_free_execution_expected: bool,
) -> Pin<Box<dyn Future<Output = Result<Self::TransactionTracker, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Target client used in finality synchronization loop.
Required Associated Types§
sourcetype TransactionTracker: TransactionTracker
type TransactionTracker: TransactionTracker
Transaction tracker to track submitted transactions.
Required Methods§
sourcefn best_finalized_source_block_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HeaderId<P::Hash, P::Number>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn best_finalized_source_block_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HeaderId<P::Hash, P::Number>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get best finalized source block number.
sourcefn free_source_headers_interval<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<P::Number>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn free_source_headers_interval<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<P::Number>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get free source headers submission interval, if it is configured in the target runtime.
sourcefn submit_finality_proof<'life0, 'async_trait>(
&'life0 self,
header: P::Header,
proof: P::FinalityProof,
is_free_execution_expected: bool,
) -> Pin<Box<dyn Future<Output = Result<Self::TransactionTracker, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn submit_finality_proof<'life0, 'async_trait>(
&'life0 self,
header: P::Header,
proof: P::FinalityProof,
is_free_execution_expected: bool,
) -> Pin<Box<dyn Future<Output = Result<Self::TransactionTracker, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Submit header finality proof.
Object Safety§
This trait is not object safe.