Skip to content

Introduce new Proxy for Parachain Registration #516

@SBalaguer

Description

@SBalaguer

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions