Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Kagome
Consensus
core
Development guide
Guide for `outcome::result<T>`
Rules
Terms
Tooling
Overview
Your first Kagome chain
Runing Kagome in docker container
Start private Kagome network
Namespaces
Classes
Files
File List
core
api
application
assets
authority_discovery
authorship
blockchain
clock
common
consensus
containers
crypto
filesystem
host_api
injector
log
macro
metrics
network
offchain
outcome
parachain
primitives
account.hpp
apply_result.hpp
arithmetic_error.cpp
arithmetic_error.hpp
author_api_primitives.hpp
authority.hpp
authority_discovery_id.hpp
babe_configuration.hpp
block.hpp
block_data.hpp
block_header.cpp
block_header.hpp
block_id.hpp
check_inherents_result.hpp
code_substitutes.hpp
common.hpp
compact_integer.hpp
digest.hpp
event_types.hpp
extrinsic.hpp
inherent_data.cpp
inherent_data.hpp
justification.hpp
math.hpp
opaque_metadata.hpp
parachain_host.hpp
rpc_methods.hpp
runtime_dispatch_info.hpp
scheduled_change.hpp
session_key.hpp
ss58_codec.cpp
ss58_codec.hpp
strobe.hpp
token_error.cpp
token_error.hpp
transaction.hpp
transaction_validity.cpp
transaction_validity.hpp
transcript.hpp
version.cpp
version.hpp
runtime
scale
storage
subscription
telemetry
transaction_pool
utils
docs
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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