Kagome
Polkadot Runtime Engine in C++17
|
#include <module_repository_impl.hpp>
Public Member Functions | |
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) | |
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. More... | |
Public Member Functions inherited from kagome::runtime::ModuleRepository | |
virtual | ~ModuleRepository ()=default |
Private Attributes | |
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_ |
log::Logger | logger_ |
Definition at line 23 of file module_repository_impl.hpp.
kagome::runtime::ModuleRepositoryImpl::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 | ||
) |
Definition at line 21 of file module_repository_impl.cpp.
|
overridevirtual |
Returns a module instance for runtime at the.
code_provider | the code provider used to extract the runtime code from the given block |
block | info of the block at which the runtime code should be extracted |
header | of the block at which the runtime code should be extracted |
Implements kagome::runtime::ModuleRepository.
Definition at line 38 of file module_repository_impl.cpp.
|
private |
Definition at line 40 of file module_repository_impl.hpp.
|
private |
Definition at line 41 of file module_repository_impl.hpp.
|
private |
Definition at line 39 of file module_repository_impl.hpp.
|
private |
Definition at line 37 of file module_repository_impl.hpp.
|
private |
Definition at line 38 of file module_repository_impl.hpp.