Kagome
Polkadot Runtime Engine in C++17
kagome_application_impl.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_APPLICATION_ALLINONEAPPLICATION
7 #define KAGOME_APPLICATION_ALLINONEAPPLICATION
8 
10 
15 
16 namespace kagome::application {
17 
19  template <class T>
20  using sptr = std::shared_ptr<T>;
21 
22  template <class T>
23  using uptr = std::unique_ptr<T>;
24 
25  public:
26  ~KagomeApplicationImpl() override = default;
27 
28  explicit KagomeApplicationImpl(const AppConfiguration &config);
29 
30  int chainInfo() override;
31 
32  int recovery() override;
33 
34  void run() override;
35 
36  private:
40 
57  };
58 
59 } // namespace kagome::application
60 
61 #endif // KAGOME_APPLICATION_ALLINONEAPPLICATION
sptr< consensus::grandpa::Grandpa > grandpa_
sptr< metrics::MetricsWatcher > metrics_watcher_
int recovery() override
Runs recovery mode.
sptr< network::StateProtocolObserver > state_observer_
sptr< network::SyncProtocolObserver > sync_observer_
sptr< telemetry::TelemetryService > telemetry_service_
std::shared_ptr< soralog::Logger > Logger
Definition: logger.hpp:23
uptr< injector::KagomeNodeInjector > injector_
KagomeApplicationImpl(const AppConfiguration &config)
sptr< parachain::ParachainProcessorImpl > parachain_processor_
sptr< parachain::ParachainObserverImpl > parachain_observer_