mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
Add registrar proxy (#1296)
* Add registrar proxy * Add proxy filter for registrar for polkadot and westend * Renaming + allow batch calls for Kusama * Add batch calls for other chains
This commit is contained in:
@@ -799,6 +799,7 @@ pub enum ProxyType {
|
||||
NonTransfer,
|
||||
Governance,
|
||||
Staking,
|
||||
IdentityJudgement,
|
||||
}
|
||||
impl Default for ProxyType { fn default() -> Self { Self::Any } }
|
||||
impl InstanceFilter<Call> for ProxyType {
|
||||
@@ -857,6 +858,10 @@ impl InstanceFilter<Call> for ProxyType {
|
||||
ProxyType::Staking => matches!(c,
|
||||
Call::Staking(..) | Call::Utility(..)
|
||||
),
|
||||
ProxyType::IdentityJudgement => matches!(c,
|
||||
Call::Identity(identity::Call::provide_judgement(..))
|
||||
| Call::Utility(utility::Call::batch(..))
|
||||
)
|
||||
}
|
||||
}
|
||||
fn is_superset(&self, o: &Self) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user