6 #ifndef KAGOME_CORE_RUNTIME_WAVM_MODULE_FACTORY_IMPL_HPP 7 #define KAGOME_CORE_RUNTIME_WAVM_MODULE_FACTORY_IMPL_HPP 14 class AppConfiguration;
22 class CompartmentWrapper;
23 class InstanceEnvironmentFactory;
24 class IntrinsicModule;
31 std::shared_ptr<CompartmentWrapper> compartment,
32 std::shared_ptr<ModuleParams> module_params,
33 std::shared_ptr<const InstanceEnvironmentFactory> env_factory,
34 std::shared_ptr<IntrinsicModule> intrinsic_module,
35 std::optional<std::shared_ptr<ModuleCache>> module_cache,
36 std::shared_ptr<crypto::Hasher> hasher);
38 outcome::result<std::unique_ptr<Module>> make(
39 gsl::span<const uint8_t> code)
const override;
51 #endif // KAGOME_CORE_RUNTIME_WAVM_MODULE_FACTORY_IMPL_HPP std::shared_ptr< ModuleParams > module_params_
std::shared_ptr< CompartmentWrapper > compartment_
std::shared_ptr< IntrinsicModule > intrinsic_module_
std::shared_ptr< crypto::Hasher > hasher_
std::shared_ptr< const InstanceEnvironmentFactory > env_factory_