Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce new Proxy for Parachain Registration #516

Open
SBalaguer opened this issue Dec 23, 2024 · 1 comment
Open

Introduce new Proxy for Parachain Registration #516

SBalaguer opened this issue Dec 23, 2024 · 1 comment

Comments

@SBalaguer
Copy link
Contributor

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
			}
@bkchr
Copy link
Contributor

bkchr commented Dec 23, 2024

@SBalaguer feel free to open a pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants