Kagome
Polkadot Runtime Engine in C++17
kagome::runtime::OffchainWorkerApi Class Referenceabstract

#include <offchain_worker_api.hpp>

Inheritance diagram for kagome::runtime::OffchainWorkerApi:
Collaboration diagram for kagome::runtime::OffchainWorkerApi:

Public Member Functions

virtual ~OffchainWorkerApi ()=default
 
virtual outcome::result< void > offchain_worker (const primitives::BlockHash &block, const primitives::BlockHeader &header)=0
 calls offchain_worker method of OffchainWorker runtime api More...
 

Detailed Description

Definition at line 15 of file offchain_worker_api.hpp.

Constructor & Destructor Documentation

virtual kagome::runtime::OffchainWorkerApi::~OffchainWorkerApi ( )
virtualdefault

Member Function Documentation

virtual outcome::result<void> kagome::runtime::OffchainWorkerApi::offchain_worker ( const primitives::BlockHash block,
const primitives::BlockHeader header 
)
pure virtual

calls offchain_worker method of OffchainWorker runtime api

Parameters
headerheader of related block
Returns
success or error

Implemented in kagome::runtime::OffchainWorkerApiImpl.


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