From 62f375935163997169f04939228e8cd0a012ffc3 Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Tue, 31 Aug 2021 10:33:57 -0400 Subject: [PATCH] new proxy for auctions, crowdloans, registrar, slots (#3683) --- polkadot/runtime/kusama/src/lib.rs | 5 +++++ polkadot/runtime/rococo/src/lib.rs | 5 +++++ polkadot/runtime/westend/src/lib.rs | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/polkadot/runtime/kusama/src/lib.rs b/polkadot/runtime/kusama/src/lib.rs index 882a3b06a0..2dccf4192a 100644 --- a/polkadot/runtime/kusama/src/lib.rs +++ b/polkadot/runtime/kusama/src/lib.rs @@ -979,6 +979,7 @@ pub enum ProxyType { Staking, IdentityJudgement, CancelProxy, + Auction, } impl Default for ProxyType { fn default() -> Self { @@ -1056,6 +1057,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/polkadot/runtime/rococo/src/lib.rs b/polkadot/runtime/rococo/src/lib.rs index 9ed7da1248..5285e669a9 100644 --- a/polkadot/runtime/rococo/src/lib.rs +++ b/polkadot/runtime/rococo/src/lib.rs @@ -1038,6 +1038,7 @@ parameter_types! { pub enum ProxyType { Any, CancelProxy, + Auction, } impl Default for ProxyType { fn default() -> Self { @@ -1050,6 +1051,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/polkadot/runtime/westend/src/lib.rs b/polkadot/runtime/westend/src/lib.rs index eec2d5706b..da16fe5bc1 100644 --- a/polkadot/runtime/westend/src/lib.rs +++ b/polkadot/runtime/westend/src/lib.rs @@ -662,6 +662,7 @@ pub enum ProxyType { SudoBalances, IdentityJudgement, CancelProxy, + Auction, } impl Default for ProxyType { fn default() -> Self { @@ -728,6 +729,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 {