mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 07:01:03 +00:00
Proxy for Nomination Pools (#6846)
* add proxy for nomination pools * fmt --------- Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -765,6 +765,7 @@ pub enum ProxyType {
|
||||
IdentityJudgement,
|
||||
CancelProxy,
|
||||
Auction,
|
||||
NominationPools,
|
||||
}
|
||||
impl Default for ProxyType {
|
||||
fn default() -> Self {
|
||||
@@ -824,6 +825,9 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
|
||||
RuntimeCall::FastUnstake(..)
|
||||
)
|
||||
},
|
||||
ProxyType::NominationPools => {
|
||||
matches!(c, RuntimeCall::NominationPools(..) | RuntimeCall::Utility(..))
|
||||
},
|
||||
ProxyType::SudoBalances => match c {
|
||||
RuntimeCall::Sudo(pallet_sudo::Call::sudo { call: ref x }) => {
|
||||
matches!(x.as_ref(), &RuntimeCall::Balances(..))
|
||||
|
||||
Reference in New Issue
Block a user