Skip to content
Snippets Groups Projects
Unverified Commit f90a785c authored by Santi Balaguer's avatar Santi Balaguer Committed by GitHub
Browse files

added new proxy ParaRegistration to Westend (#6995)


This adds a new Proxy type to Westend Runtime called ParaRegistration.
This is related to:
https://github.com/polkadot-fellows/runtimes/pull/520.

This new proxy allows:
1. Reserve paraID
2. Register Parachain
3. Leverage Utilites pallet
4. Remove proxy.

---------

Co-authored-by: command-bot <>
Co-authored-by: default avatarDónal Murray <donal.murray@parity.io>
parent 0047c4cb
No related merge requests found
Pipeline #512387 waiting for manual action with stages
in 15 minutes and 19 seconds
......@@ -1087,6 +1087,7 @@ pub enum ProxyType {
CancelProxy,
Auction,
NominationPools,
ParaRegistration,
}
impl Default for ProxyType {
fn default() -> Self {
......@@ -1183,6 +1184,15 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::Registrar(..) |
RuntimeCall::Slots(..)
),
ProxyType::ParaRegistration => matches!(
c,
RuntimeCall::Registrar(paras_registrar::Call::reserve { .. }) |
RuntimeCall::Registrar(paras_registrar::Call::register { .. }) |
RuntimeCall::Utility(pallet_utility::Call::batch { .. }) |
RuntimeCall::Utility(pallet_utility::Call::batch_all { .. }) |
RuntimeCall::Utility(pallet_utility::Call::force_batch { .. }) |
RuntimeCall::Proxy(pallet_proxy::Call::remove_proxy { .. })
),
}
}
fn is_superset(&self, o: &Self) -> bool {
......
title: added new proxy ParaRegistration to Westend
doc:
- audience: Runtime User
description: |-
This adds a new Proxy type to Westend Runtime called ParaRegistration. This is related to: https://github.com/polkadot-fellows/runtimes/pull/520.
This new proxy allows:
1. Reserve paraID
2. Register Parachain
3. Leverage Utilites pallet
4. Remove proxy.
crates:
- name: westend-runtime
bump: major
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment