Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

New Proxy for Auctions + Crowdloans + Registrar + Slots #3683

Merged
1 commit merged into from
Aug 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,7 @@ pub enum ProxyType {
Staking,
IdentityJudgement,
CancelProxy,
Auction,
}
impl Default for ProxyType {
fn default() -> Self {
Expand Down Expand Up @@ -1052,6 +1053,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 {
Expand Down
5 changes: 5 additions & 0 deletions runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,7 @@ parameter_types! {
pub enum ProxyType {
Any,
CancelProxy,
Auction,
}
impl Default for ProxyType {
fn default() -> Self {
Expand All @@ -1042,6 +1043,10 @@ impl InstanceFilter<Call> 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 {
Expand Down
5 changes: 5 additions & 0 deletions runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ pub enum ProxyType {
SudoBalances,
IdentityJudgement,
CancelProxy,
Auction,
}
impl Default for ProxyType {
fn default() -> Self {
Expand Down Expand Up @@ -724,6 +725,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 {
Expand Down