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

#include <metadata.hpp>

Inheritance diagram for kagome::runtime::MetadataImpl:
Collaboration diagram for kagome::runtime::MetadataImpl:

Public Member Functions

 MetadataImpl (std::shared_ptr< blockchain::BlockHeaderRepository > block_header_repo, std::shared_ptr< Executor > executor)
 
outcome::result< OpaqueMetadatametadata (const primitives::BlockHash &block_hash) override
 calls metadata method of Metadata runtime api More...
 

Private Attributes

std::shared_ptr< Executorexecutor_
 
std::shared_ptr< blockchain::BlockHeaderRepositoryblock_header_repo_
 

Additional Inherited Members

Detailed Description

Definition at line 17 of file metadata.hpp.

Constructor & Destructor Documentation

kagome::runtime::MetadataImpl::MetadataImpl ( std::shared_ptr< blockchain::BlockHeaderRepository block_header_repo,
std::shared_ptr< Executor executor 
)

Definition at line 12 of file metadata.cpp.

Member Function Documentation

outcome::result< Metadata::OpaqueMetadata > kagome::runtime::MetadataImpl::metadata ( const primitives::BlockHash block_hash)
overridevirtual

calls metadata method of Metadata runtime api

Returns
opaque metadata object or error

Implements kagome::runtime::Metadata.

Definition at line 21 of file metadata.cpp.

Member Data Documentation

std::shared_ptr<blockchain::BlockHeaderRepository> kagome::runtime::MetadataImpl::block_header_repo_
private

Definition at line 28 of file metadata.hpp.

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

Definition at line 27 of file metadata.hpp.


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