Kagome
Polkadot Runtime Engine in C++17
|
#include <module_repository.hpp>
Public Member Functions | |
virtual | ~ModuleRepository ()=default |
virtual outcome::result< std::shared_ptr< ModuleInstance > > | getInstanceAt (std::shared_ptr< const RuntimeCodeProvider > code_provider, const primitives::BlockInfo &block, const primitives::BlockHeader &header)=0 |
Returns a module instance for runtime at the. More... | |
Repository for runtime modules Allows loading and compiling a module directly from its web assembly byte code and instantiating a runtime module at an arbitrary block
Definition at line 29 of file module_repository.hpp.
|
virtualdefault |
|
pure virtual |
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 |
Implemented in kagome::runtime::wavm::OneModuleRepository, kagome::runtime::binaryen::OneModuleRepository, and kagome::runtime::ModuleRepositoryImpl.