domain_client_operator

Struct OperatorParams

source
pub struct OperatorParams<Block, CBlock, Client, CClient, TransactionPool, Backend, E, IBNS, CIBNS, NSNS, ASS, CNR>
where Block: BlockT, CBlock: BlockT, IBNS: Stream<Item = (NumberFor<CBlock>, Sender<()>)> + Send + 'static, CIBNS: Stream<Item = BlockImportNotification<CBlock>> + Send + 'static, NSNS: Stream<Item = (Slot, PotOutput)> + Send + 'static, ASS: Stream<Item = Sender<()>> + Send + 'static, CNR: NetworkRequest + Send + Sync + 'static,
{
Show 24 fields pub domain_id: DomainId, pub domain_created_at: NumberFor<CBlock>, pub consensus_client: Arc<CClient>, pub consensus_offchain_tx_pool_factory: OffchainTransactionPoolFactory<CBlock>, pub domain_sync_oracle: Arc<dyn SyncOracle + Send + Sync>, pub client: Arc<Client>, pub transaction_pool: Arc<TransactionPool>, pub backend: Arc<Backend>, pub code_executor: Arc<E>, pub maybe_operator_id: Option<OperatorId>, pub keystore: KeystorePtr, pub bundle_sender: Arc<TracingUnboundedSender<Bundle<<Block as BlockT>::Extrinsic, NumberFor<CBlock>, <CBlock as BlockT>::Hash, <Block as BlockT>::Header, Balance>>>, pub operator_streams: OperatorStreams<CBlock, IBNS, CIBNS, NSNS, ASS>, pub domain_confirmation_depth: NumberFor<Block>, pub block_import: Arc<BoxBlockImport<Block>>, pub skip_empty_bundle_production: bool, pub skip_out_of_order_slot: bool, pub sync_service: Arc<SyncingService<Block>>, pub network_service: Arc<dyn NetworkService>, pub block_downloader: Arc<dyn BlockDownloader<Block>>, pub consensus_chain_sync_params: Option<ConsensusChainSyncParams<CBlock, CNR>>, pub domain_fork_id: Option<String>, pub domain_network_service_handle: NetworkServiceHandle, pub domain_execution_receipt_provider: Arc<dyn LastDomainBlockReceiptProvider<Block, CBlock>>,
}

Fields§

§domain_id: DomainId§domain_created_at: NumberFor<CBlock>§consensus_client: Arc<CClient>§consensus_offchain_tx_pool_factory: OffchainTransactionPoolFactory<CBlock>§domain_sync_oracle: Arc<dyn SyncOracle + Send + Sync>§client: Arc<Client>§transaction_pool: Arc<TransactionPool>§backend: Arc<Backend>§code_executor: Arc<E>§maybe_operator_id: Option<OperatorId>§keystore: KeystorePtr§bundle_sender: Arc<TracingUnboundedSender<Bundle<<Block as BlockT>::Extrinsic, NumberFor<CBlock>, <CBlock as BlockT>::Hash, <Block as BlockT>::Header, Balance>>>§operator_streams: OperatorStreams<CBlock, IBNS, CIBNS, NSNS, ASS>§domain_confirmation_depth: NumberFor<Block>§block_import: Arc<BoxBlockImport<Block>>§skip_empty_bundle_production: bool§skip_out_of_order_slot: bool§sync_service: Arc<SyncingService<Block>>§network_service: Arc<dyn NetworkService>§block_downloader: Arc<dyn BlockDownloader<Block>>§consensus_chain_sync_params: Option<ConsensusChainSyncParams<CBlock, CNR>>§domain_fork_id: Option<String>§domain_network_service_handle: NetworkServiceHandle§domain_execution_receipt_provider: Arc<dyn LastDomainBlockReceiptProvider<Block, CBlock>>

Auto Trait Implementations§

§

impl<Block, CBlock, Client, CClient, TransactionPool, Backend, E, IBNS, CIBNS, NSNS, ASS, CNR> Freeze for OperatorParams<Block, CBlock, Client, CClient, TransactionPool, Backend, E, IBNS, CIBNS, NSNS, ASS, CNR>
where <<CBlock as Block>::Header as Header>::Number: Freeze, <<Block as Block>::Header as Header>::Number: Freeze, IBNS: Freeze, CIBNS: Freeze, NSNS: Freeze, ASS: Freeze, CNR: Freeze,

§

impl<Block, CBlock, Client, CClient, TransactionPool, Backend, E, IBNS, CIBNS, NSNS, ASS, CNR> !RefUnwindSafe for OperatorParams<Block, CBlock, Client, CClient, TransactionPool, Backend, E, IBNS, CIBNS, NSNS, ASS, CNR>

§

impl<Block, CBlock, Client, CClient, TransactionPool, Backend, E, IBNS, CIBNS, NSNS, ASS, CNR> Send for OperatorParams<Block, CBlock, Client, CClient, TransactionPool, Backend, E, IBNS, CIBNS, NSNS, ASS, CNR>
where CClient: Sync + Send, Client: Sync + Send, TransactionPool: Sync + Send, Backend: Sync + Send, E: Sync + Send,

§

impl<Block, CBlock, Client, CClient, TransactionPool, Backend, E, IBNS, CIBNS, NSNS, ASS, CNR> Sync for OperatorParams<Block, CBlock, Client, CClient, TransactionPool, Backend, E, IBNS, CIBNS, NSNS, ASS, CNR>
where CClient: Sync + Send, Client: Sync + Send, TransactionPool: Sync + Send, Backend: Sync + Send, E: Sync + Send, IBNS: Sync, CIBNS: Sync, NSNS: Sync, ASS: Sync,

§

impl<Block, CBlock, Client, CClient, TransactionPool, Backend, E, IBNS, CIBNS, NSNS, ASS, CNR> Unpin for OperatorParams<Block, CBlock, Client, CClient, TransactionPool, Backend, E, IBNS, CIBNS, NSNS, ASS, CNR>
where <<CBlock as Block>::Header as Header>::Number: Unpin, <<Block as Block>::Header as Header>::Number: Unpin, IBNS: Unpin, CIBNS: Unpin, NSNS: Unpin, ASS: Unpin, CBlock: Unpin, CNR: Unpin,

§

impl<Block, CBlock, Client, CClient, TransactionPool, Backend, E, IBNS, CIBNS, NSNS, ASS, CNR> !UnwindSafe for OperatorParams<Block, CBlock, Client, CClient, TransactionPool, Backend, E, IBNS, CIBNS, NSNS, ASS, CNR>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Any for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CheckedConversion for T

§

fn checked_from<T>(t: T) -> Option<Self>
where Self: TryFrom<T>,

Convert from a value of T into an equivalent instance of Option<Self>. Read more
§

fn checked_into<T>(self) -> Option<T>
where Self: TryInto<T>,

Consume self to return Some equivalent value of Option<T>. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T, U> IntoKey<U> for T
where U: FromKey<T>,

§

fn into_key(self) -> U

§

impl<T> IsType<T> for T

§

fn from_ref(t: &T) -> &T

Cast reference.
§

fn into_ref(&self) -> &T

Cast reference.
§

fn from_mut(t: &mut T) -> &mut T

Cast mutable reference.
§

fn into_mut(&mut self) -> &mut T

Cast mutable reference.
§

impl<T, Outer> IsWrappedBy<Outer> for T
where Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,

§

fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

§

fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
§

impl<T> SaturatedConversion for T

§

fn saturated_from<T>(t: T) -> Self
where Self: UniqueSaturatedFrom<T>,

Convert from a value of T into an equivalent instance of Self. Read more
§

fn saturated_into<T>(self) -> T
where Self: UniqueSaturatedInto<T>,

Consume self to return an equivalent value of T. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T, U> TryIntoKey<U> for T
where U: TryFromKey<T>,

§

type Error = <U as TryFromKey<T>>::Error

§

fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>

§

impl<S, T> UncheckedInto<T> for S
where T: UncheckedFrom<S>,

§

fn unchecked_into(self) -> T

The counterpart to unchecked_from.
§

impl<T, S> UniqueSaturatedInto<T> for S
where T: Bounded, S: TryInto<T>,

§

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> JsonSchemaMaybe for T