mithril_aggregator::dependency_injection

Struct DependencyContainer

source
pub struct DependencyContainer {
Show 41 fields pub config: Configuration, pub root_logger: Logger, pub sqlite_connection: Arc<SqliteConnection>, pub sqlite_connection_cardano_transaction_pool: Arc<SqliteConnectionPool>, pub stake_store: Arc<StakePoolStore>, pub snapshot_uploader: Arc<dyn FileUploader>, pub multi_signer: Arc<dyn MultiSigner>, pub certificate_pending_store: Arc<dyn CertificatePendingStorer>, pub certificate_repository: Arc<CertificateRepository>, pub open_message_repository: Arc<OpenMessageRepository>, pub verification_key_store: Arc<dyn VerificationKeyStorer>, pub epoch_settings_storer: Arc<dyn EpochSettingsStorer>, pub chain_observer: Arc<dyn ChainObserver>, pub transaction_store: Arc<dyn TransactionStore>, pub block_scanner: Arc<dyn BlockScanner>, pub immutable_file_observer: Arc<dyn ImmutableFileObserver>, pub digester: Arc<dyn ImmutableDigester>, pub snapshotter: Arc<dyn Snapshotter>, pub certificate_verifier: Arc<dyn CertificateVerifier>, pub genesis_verifier: Arc<ProtocolGenesisVerifier>, pub signer_registerer: Arc<dyn SignerRegisterer>, pub signer_registration_round_opener: Arc<dyn SignerRegistrationRoundOpener>, pub era_checker: Arc<EraChecker>, pub era_reader: Arc<EraReader>, pub event_transmitter: Arc<TransmitterService<EventMessage>>, pub api_version_provider: Arc<APIVersionProvider>, pub stake_distribution_service: Arc<dyn StakeDistributionService>, pub signer_recorder: Arc<dyn SignerRecorder>, pub signable_builder_service: Arc<dyn SignableBuilderService>, pub signed_entity_service: Arc<dyn SignedEntityService>, pub certifier_service: Arc<dyn CertifierService>, pub epoch_service: EpochServiceWrapper, pub ticker_service: Arc<dyn TickerService>, pub signed_entity_storer: Arc<dyn SignedEntityStorer>, pub signer_getter: Arc<dyn SignerGetter>, pub message_service: Arc<dyn MessageService>, pub prover_service: Arc<dyn ProverService>, pub signed_entity_type_lock: Arc<SignedEntityTypeLock>, pub upkeep_service: Arc<dyn UpkeepService>, pub single_signer_authenticator: Arc<SingleSignatureAuthenticator>, pub metrics_service: Arc<MetricsService>,
}
Expand description

DependencyManager handles the dependencies

Fields§

§config: Configuration
👎Deprecated

Configuration structure.

§root_logger: Logger

Application root logger

§sqlite_connection: Arc<SqliteConnection>

SQLite database connection

This is not a real service, but it is needed to instantiate all store services. Should be a private dependency.

§sqlite_connection_cardano_transaction_pool: Arc<SqliteConnectionPool>

Cardano transactions SQLite database connection pool

§stake_store: Arc<StakePoolStore>

Stake Store used by the StakeDistributionService It shall be a private dependency.

§snapshot_uploader: Arc<dyn FileUploader>

Snapshot uploader service.

§multi_signer: Arc<dyn MultiSigner>

Multisigner service.

§certificate_pending_store: Arc<dyn CertificatePendingStorer>

Certificate pending store.

§certificate_repository: Arc<CertificateRepository>

Certificate store.

§open_message_repository: Arc<OpenMessageRepository>

Open message store.

§verification_key_store: Arc<dyn VerificationKeyStorer>

Verification key store.

§epoch_settings_storer: Arc<dyn EpochSettingsStorer>

Epoch settings storer.

§chain_observer: Arc<dyn ChainObserver>

Chain observer service.

§transaction_store: Arc<dyn TransactionStore>

Cardano transactions store.

§block_scanner: Arc<dyn BlockScanner>

Cardano block scanner.

§immutable_file_observer: Arc<dyn ImmutableFileObserver>

Immutable file observer service.

§digester: Arc<dyn ImmutableDigester>

Digester service.

§snapshotter: Arc<dyn Snapshotter>

Snapshotter service.

§certificate_verifier: Arc<dyn CertificateVerifier>

Certificate verifier service.

§genesis_verifier: Arc<ProtocolGenesisVerifier>

Genesis signature verifier service.

§signer_registerer: Arc<dyn SignerRegisterer>

Signer registerer service

§signer_registration_round_opener: Arc<dyn SignerRegistrationRoundOpener>

Signer registration round opener service

§era_checker: Arc<EraChecker>

Era checker service

§era_reader: Arc<EraReader>

Era reader service

§event_transmitter: Arc<TransmitterService<EventMessage>>

Event Transmitter Service

§api_version_provider: Arc<APIVersionProvider>

API Version provider

§stake_distribution_service: Arc<dyn StakeDistributionService>

Stake Distribution Service

§signer_recorder: Arc<dyn SignerRecorder>

Signer Recorder

§signable_builder_service: Arc<dyn SignableBuilderService>

Signable Builder Service

§signed_entity_service: Arc<dyn SignedEntityService>

Signed Entity Service

§certifier_service: Arc<dyn CertifierService>

Certifier Service

§epoch_service: EpochServiceWrapper

Epoch service

§ticker_service: Arc<dyn TickerService>

Ticker Service

§signed_entity_storer: Arc<dyn SignedEntityStorer>

Signed Entity storer

§signer_getter: Arc<dyn SignerGetter>

Signer getter service

§message_service: Arc<dyn MessageService>

HTTP message service

§prover_service: Arc<dyn ProverService>

Prover service

§signed_entity_type_lock: Arc<SignedEntityTypeLock>

Signed Entity Type Lock

§upkeep_service: Arc<dyn UpkeepService>

Upkeep service

§single_signer_authenticator: Arc<SingleSignatureAuthenticator>

Single signer authenticator

§metrics_service: Arc<MetricsService>

Metrics service

Auto Trait Implementations§

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

impl<T> Az for T

source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
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
source§

impl<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

source§

fn cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> CheckedAs for T

source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
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
source§

impl<Src, Dst> LosslessTryInto<Dst> for Src
where Dst: LosslessTryFrom<Src>,

source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
source§

impl<Src, Dst> LossyInto<Dst> for Src
where Dst: LossyFrom<Src>,

source§

fn lossy_into(self) -> Dst

Performs the conversion.
source§

impl<T> OverflowingAs for T

source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
§

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

impl<T> SaturatingAs for T

source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
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.
source§

impl<T> UnwrappedAs for T

source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
§

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

impl<T> WrappingAs for T

source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.
§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T