Skip to content

Commit

Permalink
added new proxy ParaRegistration to Westend (paritytech#6995)
Browse files Browse the repository at this point in the history
This adds a new Proxy type to Westend Runtime called ParaRegistration.
This is related to:
polkadot-fellows/runtimes#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: Dónal Murray <[email protected]>
  • Loading branch information
2 people authored and Nathy-bajo committed Jan 21, 2025
1 parent 93d76de commit 237d2d9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions polkadot/runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,7 @@ pub enum ProxyType {
CancelProxy,
Auction,
NominationPools,
ParaRegistration,
}
impl Default for ProxyType {
fn default() -> Self {
Expand Down Expand Up @@ -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 {
Expand Down
14 changes: 14 additions & 0 deletions prdoc/pr_6995.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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 comments on commit 237d2d9

Please sign in to comment.