From 46e6476f5eb186810e53a24423938e9ee005bacf Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Fri, 20 Aug 2021 23:13:09 +0200 Subject: [PATCH] new proxy for auctions, crowdloans, registrar, slots --- runtime/kusama/src/lib.rs | 5 +++++ runtime/rococo/src/lib.rs | 5 +++++ runtime/westend/src/lib.rs | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index f259fc8285da..60f78769313a 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -975,6 +975,7 @@ pub enum ProxyType { Staking, IdentityJudgement, CancelProxy, + Auction, } impl Default for ProxyType { fn default() -> Self { @@ -1052,6 +1053,10 @@ impl InstanceFilter 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 { diff --git a/runtime/rococo/src/lib.rs b/runtime/rococo/src/lib.rs index 68d4ee3cbf85..846af81ea9fb 100644 --- a/runtime/rococo/src/lib.rs +++ b/runtime/rococo/src/lib.rs @@ -1030,6 +1030,7 @@ parameter_types! { pub enum ProxyType { Any, CancelProxy, + Auction, } impl Default for ProxyType { fn default() -> Self { @@ -1042,6 +1043,10 @@ impl InstanceFilter for ProxyType { ProxyType::Any => true, 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 { diff --git a/runtime/westend/src/lib.rs b/runtime/westend/src/lib.rs index 77be0b1dafe9..2c866df2200a 100644 --- a/runtime/westend/src/lib.rs +++ b/runtime/westend/src/lib.rs @@ -658,6 +658,7 @@ pub enum ProxyType { SudoBalances, IdentityJudgement, CancelProxy, + Auction, } impl Default for ProxyType { fn default() -> Self { @@ -724,6 +725,10 @@ impl InstanceFilter 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 {