Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
18
namespace
kagome::primitives::parachain
{
22
using
ValidatorId
=
common::Blob<32>
;
23
27
using
ParaId
= uint32_t;
28
32
struct
Relay
{};
33
// TODO(yuraz): PRE-152 update Relay content when it updates in polkadot
34
SCALE_EMPTY_CODER
(
Relay
);
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
kagome::primitives::parachain
Definition:
parachain_host.hpp:18
kagome::common::Blob< 32 >
kagome::primitives::parachain::Parachain
ParaId Parachain
Parachain primitive.
Definition:
parachain_host.hpp:39
kagome::primitives::parachain::Chain
boost::variant< Relay, Parachain > Chain
Chain primitive.
Definition:
parachain_host.hpp:44
kagome::primitives::parachain::Relay
Relay primitive is empty in polkadot for now.
Definition:
parachain_host.hpp:32
blob.hpp
buffer.hpp
kagome::primitives::parachain::DutyRoster
std::vector< Chain > DutyRoster
DutyRoster primitive.
Definition:
parachain_host.hpp:49
kagome::primitives::parachain::SCALE_EMPTY_CODER
SCALE_EMPTY_CODER(Relay)
kagome::primitives::parachain::ParaId
uint32_t ParaId
ParachainId primitive is an uint32_t.
Definition:
parachain_host.hpp:27
core
primitives
parachain_host.hpp
Generated by
1.8.11