Kagome
Polkadot Runtime Engine in C++17
version.hpp File Reference
#include <array>
#include <optional>
#include <string>
#include <vector>
#include "common/blob.hpp"
Include dependency graph for version.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kagome::primitives::Version
 

Namespaces

 kagome::primitives
 
 kagome::primitives::detail
 

Typedefs

using kagome::primitives::ApiId = common::Blob< 8u >
 The identity of a particular API interface that the runtime might provide. More...
 
using kagome::primitives::Api = std::pair< ApiId, uint32_t >
 single Api item More...
 
using kagome::primitives::ApisVec = std::vector< Api >
 A vector of pairs of ApiId and a u32 for version. More...
 

Functions

std::optional< uint32_t > kagome::primitives::detail::coreVersionFromApis (const ApisVec &apis)
 
template<class Stream , typename = std::enable_if_t<Stream::is_encoder_stream>>
Stream & kagome::primitives::operator<< (Stream &s, const Version &v)
 outputs object of type Version to stream More...
 
template<class Stream , typename = std::enable_if_t<Stream::is_decoder_stream>>
Stream & kagome::primitives::operator>> (Stream &s, Version &v)
 decodes object of type Version from stream More...