pub trait Registrar {
    type AccountId;

Show 14 methods fn manager_of(id: ParaId) -> Option<Self::AccountId>; fn parachains() -> Vec<ParaId> ; fn is_parathread(id: ParaId) -> bool; fn apply_lock(id: ParaId); fn remove_lock(id: ParaId); fn register(
        who: Self::AccountId,
        id: ParaId,
        genesis_head: HeadData,
        validation_code: ValidationCode
    ) -> DispatchResult; fn deregister(id: ParaId) -> DispatchResult; fn make_parachain(id: ParaId) -> DispatchResult; fn make_parathread(id: ParaId) -> DispatchResult; fn worst_head_data() -> HeadData; fn worst_validation_code() -> ValidationCode; fn execute_pending_transitions(); fn is_parachain(id: ParaId) -> bool { ... } fn is_registered(id: ParaId) -> bool { ... }
}
Expand description

Parachain registration API.

Required Associated Types§

The account ID type that encodes a parachain manager ID.

Required Methods§

Report the manager (permissioned owner) of a parachain, if there is one.

All parachains. Ordered ascending by ParaId. Parathreads are not included.

Return if a ParaId is a Parathread.

Apply a lock to the para registration so that it cannot be modified by the manager directly. Instead the para must use its sovereign governance or the governance of the relay chain.

Remove any lock on the para registration.

Register a Para ID under control of who. Registration may be be delayed by session rotation.

Deregister a Para ID, free any data, and return any deposits.

Elevate a para to parachain status.

Lower a para back to normal from parachain status.

Execute any pending state transitions for paras. For example onboarding to parathread, or parathread to parachain.

Provided Methods§

Return if a ParaId is a Parachain.

Return if a ParaId is registered in the system.

Implementors§