mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-25 21:25:03 +00:00
Add proxy type for Kappa Sigma Mu (#4851)
This commit is contained in:
1 parent
0e49337a42
commit
da78d0a4dc
1 file changed
+4
@@ -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 {
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user