Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
offchain_worker_api.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_RUNTIME_OFFCHAINWORKERAPI
7
#define KAGOME_RUNTIME_OFFCHAINWORKERAPI
8
9
#include "
outcome/outcome.hpp
"
10
#include "
primitives/block_header.hpp
"
11
#include "
primitives/common.hpp
"
12
13
namespace
kagome::runtime
{
14
15
class
OffchainWorkerApi
{
16
public
:
17
virtual
~OffchainWorkerApi
() =
default
;
18
24
virtual
outcome::result<void>
offchain_worker
(
25
const
primitives::BlockHash
&block,
26
const
primitives::BlockHeader
&header) = 0;
27
};
28
29
}
// namespace kagome::runtime
30
31
#endif // KAGOME_RUNTIME_OFFCHAINWORKER
common.hpp
kagome::common::Blob< 32 >
kagome::runtime
Definition:
author_api_impl.hpp:43
outcome.hpp
kagome::runtime::OffchainWorkerApi::offchain_worker
virtual outcome::result< void > offchain_worker(const primitives::BlockHash &block, const primitives::BlockHeader &header)=0
calls offchain_worker method of OffchainWorker runtime api
block_header.hpp
kagome::runtime::OffchainWorkerApi
Definition:
offchain_worker_api.hpp:15
kagome::runtime::OffchainWorkerApi::~OffchainWorkerApi
virtual ~OffchainWorkerApi()=default
kagome::primitives::BlockHeader
Definition:
block_header.hpp:25
core
runtime
runtime_api
offchain_worker_api.hpp
Generated by
1.8.11