mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
Cancel Proxy Type (#2334)
* cancel proxy * fix * Remove reject_announcement and add CancelProxy to westend Co-authored-by: David Dorgan <david@parity.io>
This commit is contained in:
@@ -846,6 +846,7 @@ pub enum ProxyType {
|
|||||||
Governance,
|
Governance,
|
||||||
Staking,
|
Staking,
|
||||||
IdentityJudgement,
|
IdentityJudgement,
|
||||||
|
CancelProxy,
|
||||||
}
|
}
|
||||||
impl Default for ProxyType { fn default() -> Self { Self::Any } }
|
impl Default for ProxyType { fn default() -> Self { Self::Any } }
|
||||||
impl InstanceFilter<Call> for ProxyType {
|
impl InstanceFilter<Call> for ProxyType {
|
||||||
@@ -912,6 +913,9 @@ impl InstanceFilter<Call> for ProxyType {
|
|||||||
ProxyType::IdentityJudgement => matches!(c,
|
ProxyType::IdentityJudgement => matches!(c,
|
||||||
Call::Identity(pallet_identity::Call::provide_judgement(..)) |
|
Call::Identity(pallet_identity::Call::provide_judgement(..)) |
|
||||||
Call::Utility(..)
|
Call::Utility(..)
|
||||||
|
),
|
||||||
|
ProxyType::CancelProxy => matches!(c,
|
||||||
|
Call::Proxy(pallet_proxy::Call::remove_announcement(..))
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -828,6 +828,7 @@ pub enum ProxyType {
|
|||||||
Staking = 3,
|
Staking = 3,
|
||||||
// Skip 4 as it is now removed (was SudoBalances)
|
// Skip 4 as it is now removed (was SudoBalances)
|
||||||
IdentityJudgement = 5,
|
IdentityJudgement = 5,
|
||||||
|
CancelProxy = 6,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
@@ -916,6 +917,9 @@ impl InstanceFilter<Call> for ProxyType {
|
|||||||
ProxyType::IdentityJudgement => matches!(c,
|
ProxyType::IdentityJudgement => matches!(c,
|
||||||
Call::Identity(pallet_identity::Call::provide_judgement(..)) |
|
Call::Identity(pallet_identity::Call::provide_judgement(..)) |
|
||||||
Call::Utility(..)
|
Call::Utility(..)
|
||||||
|
),
|
||||||
|
ProxyType::CancelProxy => matches!(c,
|
||||||
|
Call::Proxy(pallet_proxy::Call::remove_announcement(..))
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -591,6 +591,7 @@ pub enum ProxyType {
|
|||||||
Staking,
|
Staking,
|
||||||
SudoBalances,
|
SudoBalances,
|
||||||
IdentityJudgement,
|
IdentityJudgement,
|
||||||
|
CancelProxy,
|
||||||
}
|
}
|
||||||
impl Default for ProxyType { fn default() -> Self { Self::Any } }
|
impl Default for ProxyType { fn default() -> Self { Self::Any } }
|
||||||
impl InstanceFilter<Call> for ProxyType {
|
impl InstanceFilter<Call> for ProxyType {
|
||||||
@@ -643,6 +644,9 @@ impl InstanceFilter<Call> for ProxyType {
|
|||||||
ProxyType::IdentityJudgement => matches!(c,
|
ProxyType::IdentityJudgement => matches!(c,
|
||||||
Call::Identity(pallet_identity::Call::provide_judgement(..)) |
|
Call::Identity(pallet_identity::Call::provide_judgement(..)) |
|
||||||
Call::Utility(..)
|
Call::Utility(..)
|
||||||
|
),
|
||||||
|
ProxyType::CancelProxy => matches!(c,
|
||||||
|
Call::Proxy(pallet_proxy::Call::remove_announcement(..))
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user