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

Commit

Permalink
Add proxy type for Kappa Sigma Mu
Browse files Browse the repository at this point in the history
  • Loading branch information
kianenigma committed Feb 5, 2022
1 parent 3b68869 commit 1d0cbff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1078,12 +1078,15 @@ pub enum ProxyType {
IdentityJudgement,
CancelProxy,
Auction,
Society,
}

impl Default for ProxyType {
fn default() -> Self {
Self::Any
}
}

impl InstanceFilter<Call> for ProxyType {
fn filter(&self, c: &Call) -> bool {
match self {
Expand Down Expand Up @@ -1160,6 +1163,7 @@ impl InstanceFilter<Call> for ProxyType {
c,
Call::Auctions(..) | Call::Crowdloan(..) | Call::Registrar(..) | Call::Slots(..)
),
ProxyType::Society => matches!(c, Call::Society(..)),
}
}
fn is_superset(&self, o: &Self) -> bool {
Expand Down

0 comments on commit 1d0cbff

Please sign in to comment.