Kagome
Polkadot Runtime Engine in C++17
kagome::primitives::detail Namespace Reference

Classes

struct  BlockInfoT
 
struct  DigestItemCommon
 

Functions

template<class Stream , typename Tag , typename = std::enable_if_t<Stream::is_encoder_stream>>
Stream & operator<< (Stream &s, const BlockInfoT< Tag > &msg)
 
template<class Stream , typename Tag , typename = std::enable_if_t<Stream::is_decoder_stream>>
Stream & operator>> (Stream &s, BlockInfoT< Tag > &msg)
 
std::optional< uint32_t > coreVersionFromApis (const ApisVec &apis)
 

Function Documentation

std::optional< uint32_t > kagome::primitives::detail::coreVersionFromApis ( const ApisVec apis)

Returns the version of the Core runtime API.

Parameters
apis- List of supported API "features" along with their versions
Returns
- version of Core API if listed

Definition at line 22 of file version.cpp.

template<class Stream , typename Tag , typename = std::enable_if_t<Stream::is_encoder_stream>>
Stream& kagome::primitives::detail::operator<< ( Stream &  s,
const BlockInfoT< Tag > &  msg 
)

Definition at line 51 of file common.hpp.

template<class Stream , typename Tag , typename = std::enable_if_t<Stream::is_decoder_stream>>
Stream& kagome::primitives::detail::operator>> ( Stream &  s,
BlockInfoT< Tag > &  msg 
)

Definition at line 58 of file common.hpp.