new proxy for auctions, crowdloans, registrar, slots (#3683)

This commit is contained in:
Shawn Tabrizi
2021-08-31 10:33:57 -04:00
committed by GitHub
parent 2755cf801f
commit 62f3759351
3 changed files with 15 additions and 0 deletions
+5
View File
@@ -662,6 +662,7 @@ pub enum ProxyType {
SudoBalances,
IdentityJudgement,
CancelProxy,
Auction,
}
impl Default for ProxyType {
fn default() -> Self {
@@ -728,6 +729,10 @@ impl InstanceFilter<Call> for ProxyType {
ProxyType::CancelProxy => {
matches!(c, Call::Proxy(pallet_proxy::Call::reject_announcement(..)))
},
ProxyType::Auction => matches!(
c,
Call::Auctions(..) | Call::Crowdloan(..) | Call::Registrar(..) | Call::Slots(..)
),
}
}
fn is_superset(&self, o: &Self) -> bool {