6 #ifndef KAGOME_CORE_RUNTIME_MODULE_REPOSITORY_IMPL_HPP 7 #define KAGOME_CORE_RUNTIME_MODULE_REPOSITORY_IMPL_HPP 12 #include <unordered_map> 18 class RuntimeUpgradeTracker;
20 class SingleModuleCache;
21 class RuntimeInstancesPool;
26 std::shared_ptr<RuntimeInstancesPool> runtime_instances_pool,
27 std::shared_ptr<RuntimeUpgradeTracker> runtime_upgrade_tracker,
28 std::shared_ptr<const ModuleFactory> module_factory,
29 std::shared_ptr<SingleModuleCache> last_compiled_module);
31 outcome::result<std::shared_ptr<ModuleInstance>>
getInstanceAt(
32 std::shared_ptr<const RuntimeCodeProvider> code_provider,
46 #endif // KAGOME_CORE_RUNTIME_MODULE_REPOSITORY_IMPL_HPP
std::shared_ptr< RuntimeUpgradeTracker > runtime_upgrade_tracker_
std::shared_ptr< SingleModuleCache > last_compiled_module_
std::shared_ptr< soralog::Logger > Logger
outcome::result< std::shared_ptr< ModuleInstance > > getInstanceAt(std::shared_ptr< const RuntimeCodeProvider > code_provider, const primitives::BlockInfo &block, const primitives::BlockHeader &header) override
Returns a module instance for runtime at the.
ModuleRepositoryImpl(std::shared_ptr< RuntimeInstancesPool > runtime_instances_pool, std::shared_ptr< RuntimeUpgradeTracker > runtime_upgrade_tracker, std::shared_ptr< const ModuleFactory > module_factory, std::shared_ptr< SingleModuleCache > last_compiled_module)
std::shared_ptr< RuntimeInstancesPool > runtime_instances_pool_
std::shared_ptr< const ModuleFactory > module_factory_