-
Notifications
You must be signed in to change notification settings - Fork 132
Closed
Description
With the development of interfaces to aid the deployment of parachain projects, it would be beneficial to have a new proxy type that allows only restricted actions that pertain to deploying a parachain. Currently the only option other than "Any" is a proxy of type "NonTransfer" which is very permissive.
Suggested Solution
impl InstanceFilter<RuntimeCall> for ProxyType {
fn filter(&self, c: &RuntimeCall) -> bool {
match self {
[...], // --> other proxy types
ProxyType::ParaRegistration => matches!(
c,
RuntimeCall::Registrar(paras_registrar::Call::reserve { .. }) | // --> gets the paraID
RuntimeCall::Registrar(paras_registrar::Call::register { .. }) | // --> registers wasm/head
RuntimeCall::Proxy(pallet_proxy::Call::remove_proxy { .. }) | // --> removes proxy
),
[...] // --> other proxy types
}Metadata
Metadata
Assignees
Labels
No labels