6 #ifndef KAGOME_CORE_PRIMITIVES_VERSION_HPP 7 #define KAGOME_CORE_PRIMITIVES_VERSION_HPP 31 using Api = std::pair<ApiId, uint32_t>;
116 typename = std::enable_if_t<Stream::is_encoder_stream>>
131 typename = std::enable_if_t<Stream::is_decoder_stream>>
139 if (core_version.has_value() and core_version.value() >= 3
145 if (core_version.has_value() and core_version.value() >= 4
155 #endif // KAGOME_CORE_PRIMITIVES_VERSION_HPP
Stream & operator>>(Stream &s, ArithmeticError &v)
ApisVec apis
List of supported API "features" along with their versions.
uint8_t state_version
Version of the state implementation used by this runtime.
bool operator!=(const Version &rhs) const
std::vector< Api > ApisVec
A vector of pairs of ApiId and a u32 for version.
bool operator==(const Version &rhs) const
uint32_t transaction_version
std::pair< ApiId, uint32_t > Api
single Api item
uint32_t authoring_version
authoring_version is the version of the authorship interface
Stream & operator<<(Stream &s, const ArithmeticError &v)
libp2p::connection::Stream Stream
std::optional< uint32_t > coreVersionFromApis(const ApisVec &apis)