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
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§
impl Freeze for DependencyContainer
impl !RefUnwindSafe for DependencyContainer
impl Send for DependencyContainer
impl Sync for DependencyContainer
impl Unpin for DependencyContainer
impl !UnwindSafe for DependencyContainer
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
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>,
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>
§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>
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>
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