Kagome
Polkadot Runtime Engine in C++17
kagome::runtime Namespace Reference

Namespaces

 binaryen
 
 wavm
 

Classes

class  AccountNonceApi
 
class  AccountNonceApiImpl
 
class  AuthorityDiscoveryApi
 
class  AuthorityDiscoveryApiImpl
 
class  BabeApi
 
class  BabeApiImpl
 
class  BlockBuilder
 
class  BlockBuilderImpl
 
class  BorrowedInstance
 Wrapper type over sptr<ModuleInstance>. Allows to return instance back to the ModuleInstancePool upon destruction of BorrowedInstance. More...
 
struct  Candidate
 
struct  CandidateBacked
 
struct  CandidateCommitments
 
struct  CandidateDescriptor
 
struct  CandidateIncluded
 
struct  CandidateReceipt
 
struct  CandidateTimedOut
 
struct  CommittedCandidateReceipt
 
class  ConstantCodeProvider
 
class  Core
 
class  CoreApiFactory
 
class  CoreImpl
 
class  Executor
 
class  GrandpaApi
 interface for Grandpa runtime functions More...
 
class  GrandpaApiImpl
 
struct  InboundDownwardMessage
 
struct  InboundHrmpMessage
 
struct  InstanceEnvironment
 
class  Memory
 
class  MemoryAllocator
 
class  MemoryProvider
 
class  Metadata
 
class  MetadataImpl
 
class  Module
 
class  ModuleFactory
 
class  ModuleInstance
 
class  ModuleRepository
 
class  ModuleRepositoryImpl
 
struct  OccupiedCore
 Information about a core which is currently occupied. More...
 
class  OffchainWorkerApi
 
class  OffchainWorkerApiImpl
 
struct  OutboundHrmpMessage
 
class  ParachainHost
 
class  ParachainHostImpl
 
struct  PersistedValidationData
 
struct  PersistentResult
 
struct  PersistentResult< void >
 
struct  PtrSize
 
class  RawExecutor
 
class  RuntimeCodeProvider
 
class  RuntimeEnvironment
 
class  RuntimeEnvironmentFactory
 
class  RuntimeInstancesPool
 Pool of runtime instances - per state. Incapsulates modules cache. More...
 
class  RuntimePropertiesCache
 
class  RuntimePropertiesCacheImpl
 
class  RuntimeUpgradeTracker
 
class  RuntimeUpgradeTrackerImpl
 
struct  ScheduledCore
 Information about a core which is currently occupied. More...
 
struct  SessionInfo
 
class  SessionKeysApi
 
class  SessionKeysApiImpl
 
class  SingleModuleCache
 
struct  SmallLruCache
 
class  StorageCodeProvider
 
class  TaggedTransactionQueue
 
class  TaggedTransactionQueueImpl
 
class  TransactionPaymentApi
 
class  TransactionPaymentApiImpl
 
class  TrieStorageProvider
 
class  TrieStorageProviderImpl
 

Typedefs

using WasmValue = boost::variant< int32_t, int64_t, float, double >
 
using Buffer = common::Buffer
 
using ValidatorId = primitives::parachain::ValidatorId
 
using DutyRoster = primitives::parachain::DutyRoster
 
using ParachainId = primitives::parachain::ParaId
 
using GroupIndex = uint32_t
 
using CollatorId = common::Blob< 32 >
 
using Hash = common::Hash256
 
using CollatorSignature = common::Hash256
 
using ValidationCodeHash = common::Hash256
 
using BlockNumber = primitives::BlockNumber
 
using CandidateHash = common::Hash256
 
using HeadData = Buffer
 
using GroupRotatePeriod = uint32_t
 
using UpwardMessage = Buffer
 
using ValidationCode = Buffer
 
using SessionIndex = uint32_t
 
using CoreIndex = uint32_t
 
using GroupDescriptor = std::tuple< BlockNumber, GroupRotatePeriod, BlockNumber >
 
using ValidatorGroup = std::tuple< std::vector< ValidatorId >, GroupDescriptor >
 
using CoreState = boost::variant< OccupiedCore, ScheduledCore, Unused< 2 >>
 
using CandidateEvent = boost::variant< CandidateBacked, CandidateIncluded, CandidateTimedOut >
 
using ValidatorIndex = uint32_t
 
using AssignmentId = common::Blob< 32 >
 
using DownwardMessage = Buffer
 
using WasmPointer = uint32_t
 type of wasm memory is 32 bit integer More...
 
using WasmSpan = uint64_t
 combination of pointer and size, where less significant part represents wasm pointer, and most significant represents size More...
 
using WasmSize = uint32_t
 Size type is uint32_t because we are working in 32 bit address space. More...
 
using WasmEnum = uint32_t
 Enum value is uint32_t. More...
 
using WasmOffset = uint32_t
 Offset type is uint32_t because we are working in 32 bit address space. More...
 
using WasmI32 = int32_t
 
using WasmU64 = uint64_t
 

Enumerations

enum  RuntimeTransactionError { RuntimeTransactionError::NO_TRANSACTIONS_WERE_STARTED = 1 }
 RuntimeTransactionError enum provides error codes for storage transactions mechanism. More...
 
enum  UncompressError : uint8_t { UncompressError::ZSTD_ERROR }
 
enum  OccupiedCoreAssumption { OccupiedCoreAssumption::Included, OccupiedCoreAssumption::TimedOut, OccupiedCoreAssumption::Unused }
 
enum  RuntimeUpgradeTrackerError { RuntimeUpgradeTrackerError::NOT_FOUND = 1 }
 
enum  WasmLogLevel {
  WasmLogLevel::Error = 0, WasmLogLevel::Warn = 1, WasmLogLevel::Info = 2, WasmLogLevel::Debug = 3,
  WasmLogLevel::Trace = 4
}
 type of wasm log levels More...
 

Functions

template<typename T >
static constexpr T roundUpAlign (T t)
 
outcome::result< void > uncompressCodeIfNeeded (common::BufferView buf, common::Buffer &res)
 
::scale::ScaleEncoderStream & operator<< (::scale::ScaleEncoderStream &s, const ScheduledCore &val)
 
::scale::ScaleDecoderStream & operator>> (::scale::ScaleDecoderStream &s, ScheduledCore &val)
 
::scale::ScaleEncoderStream & operator<< (::scale::ScaleEncoderStream &s, const CandidateDescriptor &val)
 
::scale::ScaleDecoderStream & operator>> (::scale::ScaleDecoderStream &s, CandidateDescriptor &val)
 
::scale::ScaleEncoderStream & operator<< (::scale::ScaleEncoderStream &s, const OccupiedCore &val)
 
::scale::ScaleDecoderStream & operator>> (::scale::ScaleDecoderStream &s, OccupiedCore &val)
 
::scale::ScaleEncoderStream & operator<< (::scale::ScaleEncoderStream &s, const PersistedValidationData &val)
 
::scale::ScaleDecoderStream & operator>> (::scale::ScaleDecoderStream &s, PersistedValidationData &val)
 
::scale::ScaleEncoderStream & operator<< (::scale::ScaleEncoderStream &s, const OutboundHrmpMessage &val)
 
::scale::ScaleDecoderStream & operator>> (::scale::ScaleDecoderStream &s, OutboundHrmpMessage &val)
 
::scale::ScaleEncoderStream & operator<< (::scale::ScaleEncoderStream &s, const CandidateCommitments &val)
 
::scale::ScaleDecoderStream & operator>> (::scale::ScaleDecoderStream &s, CandidateCommitments &val)
 
::scale::ScaleEncoderStream & operator<< (::scale::ScaleEncoderStream &s, const CommittedCandidateReceipt &val)
 
::scale::ScaleDecoderStream & operator>> (::scale::ScaleDecoderStream &s, CommittedCandidateReceipt &val)
 
::scale::ScaleEncoderStream & operator<< (::scale::ScaleEncoderStream &s, const CandidateReceipt &val)
 
::scale::ScaleDecoderStream & operator>> (::scale::ScaleDecoderStream &s, CandidateReceipt &val)
 
::scale::ScaleEncoderStream & operator<< (::scale::ScaleEncoderStream &s, const Candidate &val)
 
::scale::ScaleDecoderStream & operator>> (::scale::ScaleDecoderStream &s, Candidate &val)
 
::scale::ScaleEncoderStream & operator<< (::scale::ScaleEncoderStream &s, const CandidateBacked &val)
 
::scale::ScaleDecoderStream & operator>> (::scale::ScaleDecoderStream &s, CandidateBacked &val)
 
::scale::ScaleEncoderStream & operator<< (::scale::ScaleEncoderStream &s, const CandidateIncluded &val)
 
::scale::ScaleDecoderStream & operator>> (::scale::ScaleDecoderStream &s, CandidateIncluded &val)
 
::scale::ScaleEncoderStream & operator<< (::scale::ScaleEncoderStream &s, const SessionInfo &val)
 
::scale::ScaleDecoderStream & operator>> (::scale::ScaleDecoderStream &s, SessionInfo &val)
 
::scale::ScaleEncoderStream & operator<< (::scale::ScaleEncoderStream &s, const InboundDownwardMessage &val)
 
::scale::ScaleDecoderStream & operator>> (::scale::ScaleDecoderStream &s, InboundDownwardMessage &val)
 
::scale::ScaleEncoderStream & operator<< (::scale::ScaleEncoderStream &s, const InboundHrmpMessage &val)
 
::scale::ScaleDecoderStream & operator>> (::scale::ScaleDecoderStream &s, InboundHrmpMessage &val)
 
static constexpr std::pair< WasmPointer, WasmSizesplitSpan (WasmSpan span)
 

Variables

constexpr uint8_t kAlignment = sizeof(size_t)
 
constexpr size_t kDefaultHeapBase
 
constexpr uint8_t kZstdPrefixSize = 8
 
constexpr uint8_t kZstdPrefix [kZstdPrefixSize]
 
constexpr size_t kCodeBlobBombLimit = 50 * 1024 * 1024
 
constexpr size_t kInitialMemorySize
 
constexpr size_t kMemoryPageSize
 

Detailed Description

Copyright Soramitsu Co., Ltd. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Soramitsu Co., Ltd. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 Copyright Soramitsu Co., Ltd. All Rights Reserved. SPDX-License-Identifier: Apache-2.0


Class Documentation

struct kagome::runtime::CandidateCommitments

Definition at line 129 of file parachain_host_types.hpp.

Collaboration diagram for kagome::runtime::CandidateCommitments:
Class Members
HeadData head_data The head-data produced as a result of execution.
vector< OutboundHrmpMessage > horizontal_messages Horizontal messages sent by the parachain.
BlockNumber hrmp_watermark

The mark which specifies the block number up to which all inbound HRMP messages are processed.

optional< ValidationCode > new_validation_code New validation code.
uint32_t processed_downward_messages The number of messages processed from the DMQ.
vector< UpwardMessage > upward_messages Messages destined to be interpreted by the Relay chain itself.
struct kagome::runtime::CandidateDescriptor

Definition at line 46 of file parachain_host_types.hpp.

Collaboration diagram for kagome::runtime::CandidateDescriptor:
Class Members
CollatorId collator The collator's sr25519 public key.
Hash erasure_root The root of a block's erasure encoding Merkle tree.
Hash para_head Hash of the para header that is being generated by this candidate.
ParachainId para_id The ID of the para this is a candidate for.
Hash persisted_validation_data_hash

The blake2-256 hash of the persisted validation data. This is extra data derived from relay-chain state which may vary based on bitfields included before the candidate. Thus it cannot be derived entirely from the relay-parent.

Hash pov_hash The blake2-256 hash of the PoV.
Hash relay_parent The hash of the relay-chain block this is executed in the context of.
CollatorSignature signature

Signature on blake2-256 of components of this receipt: The parachain index, the relay parent, the validation data hash, and the pov_hash.

ValidationCodeHash validation_code_hash The blake2-256 hash of the validation code bytes.
struct kagome::runtime::CandidateReceipt

Definition at line 152 of file parachain_host_types.hpp.

Collaboration diagram for kagome::runtime::CandidateReceipt:
Class Members
Hash commitments_hash

The hash of the encoded commitments made as a result of candidate execution.

CandidateDescriptor descriptor The descriptor of the candidate.
struct kagome::runtime::CommittedCandidateReceipt

Definition at line 145 of file parachain_host_types.hpp.

Collaboration diagram for kagome::runtime::CommittedCandidateReceipt:
Class Members
CandidateCommitments commitments The commitments of the candidate receipt.
CandidateDescriptor descriptor The descriptor of the candidate.
struct kagome::runtime::InboundDownwardMessage

Definition at line 254 of file parachain_host_types.hpp.

Collaboration diagram for kagome::runtime::InboundDownwardMessage:
Class Members
DownwardMessage msg The actual downward message to processes.
BlockNumber sent_at

The block number at which these messages were put into the downward message queue.

struct kagome::runtime::InboundHrmpMessage

Definition at line 262 of file parachain_host_types.hpp.

Collaboration diagram for kagome::runtime::InboundHrmpMessage:
Class Members
Buffer data The message payload.
BlockNumber sent_at

The block number at which this message was sent. Specifically, it is the block number at which the candidate that sends this message was enacted.

struct kagome::runtime::OccupiedCore

Information about a core which is currently occupied.

Definition at line 73 of file parachain_host_types.hpp.

Collaboration diagram for kagome::runtime::OccupiedCore:
Class Members
BitVec availability

A bitfield with 1 bit for each validator in the set. 1 bits mean that the corresponding validators has attested to availability on-chain. A 2/3+ majority of 1 bits means that this will be available.

CandidateDescriptor candidate_descriptor The descriptor of the candidate occupying the core.
CandidateHash candidate_hash The hash of the candidate occupying the core.
GroupIndex group_responsible The group assigned to distribute availability pieces of this candidate.
optional< ScheduledCore > next_up_on_available

If this core is freed by availability, this is the assignment that is next up on this core, if any. None if there is nothing queued for this core.

optional< ScheduledCore > next_up_on_time_out

If this core is freed by being timed-out, this is the assignment that is next up on this core. None if there is nothing queued for this core or there is no possibility of timing out.

BlockNumber occupied_since The relay-chain block number this began occupying the core at.
BlockNumber time_out_at The relay-chain block this will time-out at, if any.
struct kagome::runtime::OutboundHrmpMessage

Definition at line 122 of file parachain_host_types.hpp.

Collaboration diagram for kagome::runtime::OutboundHrmpMessage:
Class Members
Buffer data The message payload.
ParachainId recipient The para that will get this message in its downward message queue.
struct kagome::runtime::PersistedValidationData

Definition at line 111 of file parachain_host_types.hpp.

Collaboration diagram for kagome::runtime::PersistedValidationData:
Class Members
uint32_t max_pov_size The maximum legal size of a POV block, in bytes.
HeadData parent_head The parent head-data.
BlockNumber relay_parent_number The relay-chain block number this is in the context of.
Hash relay_parent_storage_root The relay-chain block storage root this is in the context of.
struct kagome::runtime::PersistentResult

template<typename Result>
struct kagome::runtime::PersistentResult< Result >

Definition at line 12 of file persistent_result.hpp.

Collaboration diagram for kagome::runtime::PersistentResult< Result >:
Class Members
RootHash new_storage_root
Result result
struct kagome::runtime::PersistentResult< void >

template<>
struct kagome::runtime::PersistentResult< void >

Definition at line 18 of file persistent_result.hpp.

Collaboration diagram for kagome::runtime::PersistentResult< void >:
Class Members
RootHash new_storage_root
struct kagome::runtime::ScheduledCore

Information about a core which is currently occupied.

Definition at line 39 of file parachain_host_types.hpp.

Collaboration diagram for kagome::runtime::ScheduledCore:
Class Members
optional< CollatorId > collator The collator required to author the block, if any.
ParachainId para_id The ID of a para scheduled.
struct kagome::runtime::SessionInfo

Definition at line 192 of file parachain_host_types.hpp.

Collaboration diagram for kagome::runtime::SessionInfo:
Class Members
vector< ValidatorIndex > active_validator_indices

All the validators actively participating in parachain consensus. Indices are into the broader validator set.

vector< AssignmentId > assignment_keys

The assignment keys for validators.

NOTE: There might be more authorities in the current session, than validators participating in parachain consensus. See max_validators.

Therefore:

1  assignment_keys.len() == validators.len() && validators.len() <=
2 discovery_keys.len()
vector< AuthorityDiscoveryId > discovery_keys

Validators' authority discovery keys for the session in canonical ordering.

NOTE: The first validators.len() entries will match the corresponding validators in validators, afterwards any remaining authorities can be found. This is any authorities not participating in parachain consensus

SessionIndex dispute_period The amount of sessions to keep for disputes.
uint32_t n_cores

The number of availability cores used by the protocol during this session.

uint32_t n_delay_tranches The number of delay tranches in total.
uint32_t needed_approvals The number of validators needed to approve a block.
uint32_t no_show_slots

How many slots (BABE / SASSAFRAS) must pass before an assignment is considered a no-show.

Blob< 32 > random_seed A secure random seed for the session, gathered from BABE.
uint32_t relay_vrf_modulo_samples The number of samples we do of relay_vrf_modulo.
vector< vector< ValidatorIndex > > validator_groups

Validators in shuffled ordering - these are the validator groups as produced by the Scheduler module for the session and are typically referred to by GroupIndex.

vector< ValidatorId > validators

Validators in canonical ordering.

NOTE: There might be more authorities in the current session, than validators participating in parachain consensus. See max_validators.

SessionInfo::validators will be limited to to max_validators when set.

uint32_t zeroth_delay_tranche_width The zeroth delay tranche width.

Typedef Documentation

Definition at line 191 of file parachain_host_types.hpp.

Definition at line 20 of file parachain_host_types.hpp.

Definition at line 30 of file parachain_host_types.hpp.

Definition at line 25 of file parachain_host_types.hpp.

using kagome::runtime::CoreIndex = typedef uint32_t

Definition at line 36 of file parachain_host_types.hpp.

using kagome::runtime::CoreState = typedef boost::variant<OccupiedCore, ScheduledCore, Unused<2>>

Definition at line 105 of file parachain_host_types.hpp.

Definition at line 253 of file parachain_host_types.hpp.

using kagome::runtime::GroupIndex = typedef uint32_t

Definition at line 24 of file parachain_host_types.hpp.

using kagome::runtime::GroupRotatePeriod = typedef uint32_t

Definition at line 32 of file parachain_host_types.hpp.

Definition at line 26 of file parachain_host_types.hpp.

Definition at line 31 of file parachain_host_types.hpp.

using kagome::runtime::SessionIndex = typedef uint32_t

Definition at line 35 of file parachain_host_types.hpp.

Definition at line 33 of file parachain_host_types.hpp.

Definition at line 34 of file parachain_host_types.hpp.

using kagome::runtime::ValidatorGroup = typedef std::tuple<std::vector<ValidatorId>, GroupDescriptor>

Definition at line 102 of file parachain_host_types.hpp.

using kagome::runtime::ValidatorIndex = typedef uint32_t

Definition at line 190 of file parachain_host_types.hpp.

using kagome::runtime::WasmEnum = typedef uint32_t

Enum value is uint32_t.

Definition at line 39 of file types.hpp.

using kagome::runtime::WasmI32 = typedef int32_t

Definition at line 46 of file types.hpp.

using kagome::runtime::WasmOffset = typedef uint32_t

Offset type is uint32_t because we are working in 32 bit address space.

Definition at line 44 of file types.hpp.

using kagome::runtime::WasmPointer = typedef uint32_t

type of wasm memory is 32 bit integer

Definition at line 26 of file types.hpp.

using kagome::runtime::WasmSize = typedef uint32_t

Size type is uint32_t because we are working in 32 bit address space.

Definition at line 35 of file types.hpp.

using kagome::runtime::WasmSpan = typedef uint64_t

combination of pointer and size, where less significant part represents wasm pointer, and most significant represents size

Definition at line 31 of file types.hpp.

using kagome::runtime::WasmU64 = typedef uint64_t

Definition at line 47 of file types.hpp.

using kagome::runtime::WasmValue = typedef boost::variant<int32_t, int64_t, float, double>

Definition at line 24 of file module_instance.hpp.

Enumeration Type Documentation

Enumerator
Included 
TimedOut 
Unused 

Definition at line 106 of file parachain_host_types.hpp.

RuntimeTransactionError enum provides error codes for storage transactions mechanism.

Enumerator
NO_TRANSACTIONS_WERE_STARTED 

Definition at line 17 of file runtime_transaction_error.hpp.

Enumerator
NOT_FOUND 

Definition at line 34 of file runtime_upgrade_tracker.hpp.

enum kagome::runtime::UncompressError : uint8_t
strong
Enumerator
ZSTD_ERROR 

Definition at line 12 of file uncompress_code_if_needed.hpp.

type of wasm log levels

Enumerator
Error 
Warn 
Info 
Debug 
Trace 

Definition at line 16 of file types.hpp.

Function Documentation

scale::ScaleEncoderStream & kagome::runtime::operator<< ( ::scale::ScaleEncoderStream &  s,
const ScheduledCore val 
)

Definition at line 10 of file parachain_host_types_serde.cpp.

scale::ScaleEncoderStream & kagome::runtime::operator<< ( ::scale::ScaleEncoderStream &  s,
const CandidateDescriptor val 
)

Definition at line 21 of file parachain_host_types_serde.cpp.

scale::ScaleEncoderStream & kagome::runtime::operator<< ( ::scale::ScaleEncoderStream &  s,
const OccupiedCore val 
)

Definition at line 37 of file parachain_host_types_serde.cpp.

scale::ScaleEncoderStream & kagome::runtime::operator<< ( ::scale::ScaleEncoderStream &  s,
const PersistedValidationData val 
)

Definition at line 53 of file parachain_host_types_serde.cpp.

scale::ScaleEncoderStream & kagome::runtime::operator<< ( ::scale::ScaleEncoderStream &  s,
const OutboundHrmpMessage val 
)

Definition at line 66 of file parachain_host_types_serde.cpp.

scale::ScaleEncoderStream & kagome::runtime::operator<< ( ::scale::ScaleEncoderStream &  s,
const CandidateCommitments val 
)

Definition at line 77 of file parachain_host_types_serde.cpp.

scale::ScaleEncoderStream & kagome::runtime::operator<< ( ::scale::ScaleEncoderStream &  s,
const CommittedCandidateReceipt val 
)

Definition at line 92 of file parachain_host_types_serde.cpp.

scale::ScaleEncoderStream & kagome::runtime::operator<< ( ::scale::ScaleEncoderStream &  s,
const CandidateReceipt val 
)

Definition at line 103 of file parachain_host_types_serde.cpp.

scale::ScaleEncoderStream & kagome::runtime::operator<< ( ::scale::ScaleEncoderStream &  s,
const Candidate val 
)

Definition at line 114 of file parachain_host_types_serde.cpp.

scale::ScaleEncoderStream & kagome::runtime::operator<< ( ::scale::ScaleEncoderStream &  s,
const CandidateBacked val 
)

Definition at line 125 of file parachain_host_types_serde.cpp.

scale::ScaleEncoderStream & kagome::runtime::operator<< ( ::scale::ScaleEncoderStream &  s,
const CandidateIncluded val 
)

Definition at line 136 of file parachain_host_types_serde.cpp.

scale::ScaleEncoderStream & kagome::runtime::operator<< ( ::scale::ScaleEncoderStream &  s,
const SessionInfo val 
)

Definition at line 148 of file parachain_host_types_serde.cpp.

scale::ScaleEncoderStream & kagome::runtime::operator<< ( ::scale::ScaleEncoderStream &  s,
const InboundDownwardMessage val 
)

Definition at line 167 of file parachain_host_types_serde.cpp.

scale::ScaleEncoderStream & kagome::runtime::operator<< ( ::scale::ScaleEncoderStream &  s,
const InboundHrmpMessage val 
)

Definition at line 178 of file parachain_host_types_serde.cpp.

scale::ScaleDecoderStream & kagome::runtime::operator>> ( ::scale::ScaleDecoderStream &  s,
ScheduledCore val 
)

Definition at line 16 of file parachain_host_types_serde.cpp.

scale::ScaleDecoderStream & kagome::runtime::operator>> ( ::scale::ScaleDecoderStream &  s,
CandidateDescriptor val 
)

Definition at line 29 of file parachain_host_types_serde.cpp.

scale::ScaleDecoderStream & kagome::runtime::operator>> ( ::scale::ScaleDecoderStream &  s,
OccupiedCore val 
)

Definition at line 45 of file parachain_host_types_serde.cpp.

scale::ScaleDecoderStream & kagome::runtime::operator>> ( ::scale::ScaleDecoderStream &  s,
PersistedValidationData val 
)

Definition at line 60 of file parachain_host_types_serde.cpp.

scale::ScaleDecoderStream & kagome::runtime::operator>> ( ::scale::ScaleDecoderStream &  s,
OutboundHrmpMessage val 
)

Definition at line 72 of file parachain_host_types_serde.cpp.

scale::ScaleDecoderStream & kagome::runtime::operator>> ( ::scale::ScaleDecoderStream &  s,
CandidateCommitments val 
)

Definition at line 85 of file parachain_host_types_serde.cpp.

scale::ScaleDecoderStream & kagome::runtime::operator>> ( ::scale::ScaleDecoderStream &  s,
CommittedCandidateReceipt val 
)

Definition at line 98 of file parachain_host_types_serde.cpp.

scale::ScaleDecoderStream & kagome::runtime::operator>> ( ::scale::ScaleDecoderStream &  s,
CandidateReceipt val 
)

Definition at line 109 of file parachain_host_types_serde.cpp.

scale::ScaleDecoderStream & kagome::runtime::operator>> ( ::scale::ScaleDecoderStream &  s,
Candidate val 
)

Definition at line 120 of file parachain_host_types_serde.cpp.

scale::ScaleDecoderStream & kagome::runtime::operator>> ( ::scale::ScaleDecoderStream &  s,
CandidateBacked val 
)

Definition at line 131 of file parachain_host_types_serde.cpp.

scale::ScaleDecoderStream & kagome::runtime::operator>> ( ::scale::ScaleDecoderStream &  s,
CandidateIncluded val 
)

Definition at line 143 of file parachain_host_types_serde.cpp.

scale::ScaleDecoderStream & kagome::runtime::operator>> ( ::scale::ScaleDecoderStream &  s,
SessionInfo val 
)

Definition at line 158 of file parachain_host_types_serde.cpp.

scale::ScaleDecoderStream & kagome::runtime::operator>> ( ::scale::ScaleDecoderStream &  s,
InboundDownwardMessage val 
)

Definition at line 173 of file parachain_host_types_serde.cpp.

scale::ScaleDecoderStream & kagome::runtime::operator>> ( ::scale::ScaleDecoderStream &  s,
InboundHrmpMessage val 
)

Definition at line 184 of file parachain_host_types_serde.cpp.

template<typename T >
static constexpr T kagome::runtime::roundUpAlign ( t)
static

Obtain closest multiple of kAlignment that is greater or equal to given number

Template Parameters
TT type of number
Parameters
tgiven number
Returns
closest multiple

Definition at line 37 of file memory_allocator.hpp.

static constexpr std::pair<WasmPointer, WasmSize> kagome::runtime::splitSpan ( WasmSpan  span)
static

Splits 64 bit wasm span on 32 bit pointer and 32 bit address

Definition at line 52 of file types.hpp.

outcome::result< void > kagome::runtime::uncompressCodeIfNeeded ( common::BufferView  buf,
common::Buffer res 
)

Definition at line 30 of file uncompress_code_if_needed.cpp.

Variable Documentation

constexpr uint8_t kagome::runtime::kAlignment = sizeof(size_t)

Definition at line 23 of file memory_allocator.hpp.

constexpr size_t kagome::runtime::kCodeBlobBombLimit = 50 * 1024 * 1024

Definition at line 28 of file uncompress_code_if_needed.cpp.

constexpr size_t kagome::runtime::kDefaultHeapBase
Initial value:
= [] {
using namespace kagome::common::literals;
return 1_MB;
}()

Definition at line 24 of file memory_allocator.hpp.

constexpr size_t kagome::runtime::kInitialMemorySize
inline
Initial value:
= []() {
using kagome::common::literals::operator""_MB;
return 2_MB;
}()

Definition at line 20 of file memory.hpp.

constexpr size_t kagome::runtime::kMemoryPageSize
inline
Initial value:
= []() {
using kagome::common::literals::operator""_kB;
return 64_kB;
}()

Definition at line 26 of file memory.hpp.

constexpr uint8_t kagome::runtime::kZstdPrefix[kZstdPrefixSize]
Initial value:
= {
0x52, 0xBC, 0x53, 0x76, 0x46, 0xDB, 0x8E, 0x05}

Definition at line 24 of file uncompress_code_if_needed.cpp.

constexpr uint8_t kagome::runtime::kZstdPrefixSize = 8

Definition at line 23 of file uncompress_code_if_needed.cpp.