Kagome
Polkadot Runtime Engine in C++17
kagome::host_api::HostApiFactoryImpl Class Referencefinal

#include <host_api_factory_impl.hpp>

Inheritance diagram for kagome::host_api::HostApiFactoryImpl:
Collaboration diagram for kagome::host_api::HostApiFactoryImpl:

Public Member Functions

 ~HostApiFactoryImpl () override=default
 
 HostApiFactoryImpl (const OffchainExtensionConfig &offchain_config, std::shared_ptr< crypto::Sr25519Provider > sr25519_provider, std::shared_ptr< crypto::EcdsaProvider > ecdsa_provider, std::shared_ptr< crypto::Ed25519Provider > ed25519_provider, std::shared_ptr< crypto::Secp256k1Provider > secp256k1_provider, std::shared_ptr< crypto::Hasher > hasher, std::shared_ptr< crypto::CryptoStore > crypto_store, std::shared_ptr< crypto::Bip39Provider > bip39_provider, std::shared_ptr< offchain::OffchainPersistentStorage > offchain_persistent_storage, std::shared_ptr< offchain::OffchainWorkerPool > offchain_worker_pool)
 
std::unique_ptr< HostApimake (std::shared_ptr< const runtime::CoreApiFactory > core_factory, std::shared_ptr< const runtime::MemoryProvider > memory_provider, std::shared_ptr< runtime::TrieStorageProvider > storage_provider) const override
 
- Public Member Functions inherited from kagome::host_api::HostApiFactory
virtual ~HostApiFactory ()=default
 

Private Attributes

OffchainExtensionConfig offchain_config_
 
std::shared_ptr< crypto::Sr25519Providersr25519_provider_
 
std::shared_ptr< crypto::EcdsaProviderecdsa_provider_
 
std::shared_ptr< crypto::Ed25519Providered25519_provider_
 
std::shared_ptr< crypto::Secp256k1Providersecp256k1_provider_
 
std::shared_ptr< crypto::Hasherhasher_
 
std::shared_ptr< crypto::CryptoStorecrypto_store_
 
std::shared_ptr< crypto::Bip39Providerbip39_provider_
 
std::shared_ptr< offchain::OffchainPersistentStorageoffchain_persistent_storage_
 
std::shared_ptr< offchain::OffchainWorkerPooloffchain_worker_pool_
 

Detailed Description

Definition at line 27 of file host_api_factory_impl.hpp.

Constructor & Destructor Documentation

kagome::host_api::HostApiFactoryImpl::~HostApiFactoryImpl ( )
overridedefault
kagome::host_api::HostApiFactoryImpl::HostApiFactoryImpl ( const OffchainExtensionConfig offchain_config,
std::shared_ptr< crypto::Sr25519Provider sr25519_provider,
std::shared_ptr< crypto::EcdsaProvider ecdsa_provider,
std::shared_ptr< crypto::Ed25519Provider ed25519_provider,
std::shared_ptr< crypto::Secp256k1Provider secp256k1_provider,
std::shared_ptr< crypto::Hasher hasher,
std::shared_ptr< crypto::CryptoStore crypto_store,
std::shared_ptr< crypto::Bip39Provider bip39_provider,
std::shared_ptr< offchain::OffchainPersistentStorage offchain_persistent_storage,
std::shared_ptr< offchain::OffchainWorkerPool offchain_worker_pool 
)

Definition at line 12 of file host_api_factory_impl.cpp.

Member Function Documentation

std::unique_ptr< HostApi > kagome::host_api::HostApiFactoryImpl::make ( std::shared_ptr< const runtime::CoreApiFactory core_provider,
std::shared_ptr< const runtime::MemoryProvider memory_provider,
std::shared_ptr< runtime::TrieStorageProvider storage_provider 
) const
overridevirtual

Takes

Parameters
memoryand creates
Returns
extension using this memory

Implements kagome::host_api::HostApiFactory.

Definition at line 44 of file host_api_factory_impl.cpp.

Member Data Documentation

std::shared_ptr<crypto::Bip39Provider> kagome::host_api::HostApiFactoryImpl::bip39_provider_
private

Definition at line 58 of file host_api_factory_impl.hpp.

std::shared_ptr<crypto::CryptoStore> kagome::host_api::HostApiFactoryImpl::crypto_store_
private

Definition at line 57 of file host_api_factory_impl.hpp.

std::shared_ptr<crypto::EcdsaProvider> kagome::host_api::HostApiFactoryImpl::ecdsa_provider_
private

Definition at line 53 of file host_api_factory_impl.hpp.

std::shared_ptr<crypto::Ed25519Provider> kagome::host_api::HostApiFactoryImpl::ed25519_provider_
private

Definition at line 54 of file host_api_factory_impl.hpp.

std::shared_ptr<crypto::Hasher> kagome::host_api::HostApiFactoryImpl::hasher_
private

Definition at line 56 of file host_api_factory_impl.hpp.

OffchainExtensionConfig kagome::host_api::HostApiFactoryImpl::offchain_config_
private

Definition at line 51 of file host_api_factory_impl.hpp.

std::shared_ptr<offchain::OffchainPersistentStorage> kagome::host_api::HostApiFactoryImpl::offchain_persistent_storage_
private

Definition at line 60 of file host_api_factory_impl.hpp.

std::shared_ptr<offchain::OffchainWorkerPool> kagome::host_api::HostApiFactoryImpl::offchain_worker_pool_
private

Definition at line 61 of file host_api_factory_impl.hpp.

std::shared_ptr<crypto::Secp256k1Provider> kagome::host_api::HostApiFactoryImpl::secp256k1_provider_
private

Definition at line 55 of file host_api_factory_impl.hpp.

std::shared_ptr<crypto::Sr25519Provider> kagome::host_api::HostApiFactoryImpl::sr25519_provider_
private

Definition at line 52 of file host_api_factory_impl.hpp.


The documentation for this class was generated from the following files: