referrerpolicy=no-referrer-when-downgrade

Crate registrar_primitives

Crate registrar_primitives 

Source
Expand description

§Parachain-registrar shared primitives

Types shared by the parachain registrar pallet (pallet-registrar-para) and relay-chain registrar pallet (pallet-registrar-relay). This crate is deliberately free of any FRAME, XCM, or network-specific dependency, so a single version of the wire types serves Westend, Kusama and Polkadot, and so both pallets can depend on it without forming a dependency cycle.

For the same reason the types here are plain: a para id is a u32 (byte-compatible with the relay chain’s Id newtype), head data and validation code are Vec<u8>, and a validation code hash is an [H256] (what ValidationCodeHash wraps). The same holds for ParachainRegistrar, the interface the relay pallet drives the registry through: conversion to the relay chain’s own types happens in the pallet implementing it.

Structs§

MigratedPara
One para, as it arrives from source chain that used to own the registry.

Enums§

FailureReason
Why a request was rejected by the relay chain.
MessageToPara
Registrar report messages sent back to the parachain.
MessageToParaV1
Version 1 payloads for MessageToPara.
MessageToRelay
Registrar control-plane messages sent to the relay chain.
MessageToRelayV1
Version 1 payloads for MessageToRelay.
MigratedParaState
State of migrated para at the source chain.

Traits§

ParachainRegistrar
The parachain registry, as pallet-registrar-relay needs to see it.
ReceiveMigratedParas
Takes migrated para ids into the pallet that owns registration on the destination.

Type Aliases§

Outcome
How a request ended.
ParaId
A parachain id.