Unverified Commit c6b29c7b authored by Chevdor's avatar Chevdor Committed by GitHub
Browse files

Add registrar proxy (#1296)

* Add registrar proxy

* Add proxy filter for registrar for polkadot and westend

* Renaming + allow batch calls for Kusama

* Add batch calls for other chains
parent 40861d19
Pipeline #98968 passed with stages
in 25 minutes and 27 seconds
......@@ -799,6 +799,7 @@ pub enum ProxyType {
NonTransfer,
Governance,
Staking,
IdentityJudgement,
}
impl Default for ProxyType { fn default() -> Self { Self::Any } }
impl InstanceFilter<Call> for ProxyType {
......@@ -857,6 +858,10 @@ impl InstanceFilter<Call> for ProxyType {
ProxyType::Staking => matches!(c,
Call::Staking(..) | Call::Utility(..)
),
ProxyType::IdentityJudgement => matches!(c,
Call::Identity(identity::Call::provide_judgement(..))
| Call::Utility(utility::Call::batch(..))
)
}
}
fn is_superset(&self, o: &Self) -> bool {
......
......@@ -806,6 +806,7 @@ pub enum ProxyType {
Governance,
Staking,
SudoBalances,
IdentityJudgement,
}
impl Default for ProxyType { fn default() -> Self { Self::Any } }
impl InstanceFilter<Call> for ProxyType {
......@@ -862,6 +863,10 @@ impl InstanceFilter<Call> for ProxyType {
Call::Utility(..) => true,
_ => false,
},
ProxyType::IdentityJudgement => matches!(c,
Call::Identity(identity::Call::provide_judgement(..))
| Call::Utility(utility::Call::batch(..))
)
}
}
fn is_superset(&self, o: &Self) -> bool {
......
......@@ -581,6 +581,7 @@ pub enum ProxyType {
NonTransfer,
Staking,
SudoBalances,
IdentityJudgement,
}
impl Default for ProxyType { fn default() -> Self { Self::Any } }
impl InstanceFilter<Call> for ProxyType {
......@@ -632,6 +633,10 @@ impl InstanceFilter<Call> for ProxyType {
Call::Utility(..) => true,
_ => false,
},
ProxyType::IdentityJudgement => matches!(c,
Call::Identity(identity::Call::provide_judgement(..))
| Call::Utility(utility::Call::batch(..))
)
}
}
fn is_superset(&self, o: &Self) -> bool {
......
Supports Markdown
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