Kagome
Polkadot Runtime Engine in C++17
|
#include <offchain_worker_api.hpp>
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::AppConfiguration & | app_config_ |
std::shared_ptr< offchain::OffchainWorkerFactory > | ocw_factory_ |
std::shared_ptr< Executor > | executor_ |
Definition at line 22 of file offchain_worker_api.hpp.
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.
|
overridevirtual |
calls offchain_worker method of OffchainWorker runtime api
header | header of related block |
Implements kagome::runtime::OffchainWorkerApi.
Definition at line 24 of file offchain_worker_api.cpp.
|
private |
Definition at line 36 of file offchain_worker_api.hpp.
|
private |
Definition at line 38 of file offchain_worker_api.hpp.
|
private |
Definition at line 37 of file offchain_worker_api.hpp.