Kagome
Polkadot Runtime Engine in C++17
parachain_host.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_PRIMITIVES_PARACHAIN_HOST_HPP
7 #define KAGOME_CORE_PRIMITIVES_PARACHAIN_HOST_HPP
8 
9 #include <cstdint>
10 #include <vector>
11 
12 #include <boost/variant.hpp>
13 #include <optional>
14 
15 #include "common/blob.hpp"
16 #include "common/buffer.hpp"
17 
23 
27  using ParaId = uint32_t;
28 
32  struct Relay {};
33  // TODO(yuraz): PRE-152 update Relay content when it updates in polkadot
35 
39  using Parachain = ParaId;
40 
44  using Chain = boost::variant<Relay, Parachain>;
45 
49  using DutyRoster = std::vector<Chain>;
50 } // namespace kagome::primitives::parachain
51 
52 #endif // KAGOME_CORE_PRIMITIVES_PARACHAIN_HOST_HPP
ParaId Parachain
Parachain primitive.
boost::variant< Relay, Parachain > Chain
Chain primitive.
Relay primitive is empty in polkadot for now.
std::vector< Chain > DutyRoster
DutyRoster primitive.
uint32_t ParaId
ParachainId primitive is an uint32_t.