Kagome
Polkadot Runtime Engine in C++17
author_api_primitives.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_PRIMITIVES_EXTRINSIC_API_PRIMITIVES_HPP
7 #define KAGOME_CORE_PRIMITIVES_EXTRINSIC_API_PRIMITIVES_HPP
8 
9 #include <memory>
10 
11 #include <boost/variant.hpp>
12 #include <optional>
13 
18 namespace kagome::primitives {
22  using SubscriptionId = uint64_t;
23 
27  struct Session {
28  uint32_t id{};
29  };
30  // TODO(yuraz): PRE-221 investigate and implement Session primitive
31 
35  using Metadata = std::optional<std::shared_ptr<Session>>;
36 
40  using ExtrinsicKey = std::vector<uint8_t>;
41 
42 } // namespace kagome::primitives
43 
44 #endif // KAGOME_CORE_PRIMITIVES_EXTRINSIC_API_PRIMITIVES_HPP
std::optional< std::shared_ptr< Session >> Metadata
Metadata primitive.
std::vector< uint8_t > ExtrinsicKey
ExtrinsicKey is used as a key to search extrinsic.
uint64_t SubscriptionId
SubscriptionId primitive.