Kagome
Polkadot Runtime Engine in C++17
kagome::runtime::OffchainWorkerApiImpl Class Referencefinal

#include <offchain_worker_api.hpp>

Inheritance diagram for kagome::runtime::OffchainWorkerApiImpl:
Collaboration diagram for kagome::runtime::OffchainWorkerApiImpl:

Public Member Functions

 OffchainWorkerApiImpl (const application::AppConfiguration &app_config, std::shared_ptr< offchain::OffchainWorkerFactory > ocw_factory, std::shared_ptr< Executor > executor)
 
outcome::result< void > offchain_worker (const primitives::BlockHash &block, const primitives::BlockHeader &header) override
 calls offchain_worker method of OffchainWorker runtime api More...
 
- Public Member Functions inherited from kagome::runtime::OffchainWorkerApi
virtual ~OffchainWorkerApi ()=default
 

Private Attributes

const application::AppConfigurationapp_config_
 
std::shared_ptr< offchain::OffchainWorkerFactoryocw_factory_
 
std::shared_ptr< Executorexecutor_
 

Detailed Description

Definition at line 22 of file offchain_worker_api.hpp.

Constructor & Destructor Documentation

kagome::runtime::OffchainWorkerApiImpl::OffchainWorkerApiImpl ( const application::AppConfiguration app_config,
std::shared_ptr< offchain::OffchainWorkerFactory ocw_factory,
std::shared_ptr< Executor executor 
)

Definition at line 13 of file offchain_worker_api.cpp.

Member Function Documentation

outcome::result< void > kagome::runtime::OffchainWorkerApiImpl::offchain_worker ( const primitives::BlockHash block,
const primitives::BlockHeader header 
)
overridevirtual

calls offchain_worker method of OffchainWorker runtime api

Parameters
headerheader of related block
Returns
success or error

Implements kagome::runtime::OffchainWorkerApi.

Definition at line 24 of file offchain_worker_api.cpp.

Member Data Documentation

const application::AppConfiguration& kagome::runtime::OffchainWorkerApiImpl::app_config_
private

Definition at line 36 of file offchain_worker_api.hpp.

std::shared_ptr<Executor> kagome::runtime::OffchainWorkerApiImpl::executor_
private

Definition at line 38 of file offchain_worker_api.hpp.

std::shared_ptr<offchain::OffchainWorkerFactory> kagome::runtime::OffchainWorkerApiImpl::ocw_factory_
private

Definition at line 37 of file offchain_worker_api.hpp.


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