mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-09 05:57:59 +00:00
support opengov calls in proxy definitions (#6366)
This commit is contained in:
@@ -1005,6 +1005,11 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
|
||||
RuntimeCall::Bounties(..) |
|
||||
RuntimeCall::ChildBounties(..) |
|
||||
RuntimeCall::Tips(..) |
|
||||
RuntimeCall::ConvictionVoting(..) |
|
||||
RuntimeCall::Referenda(..) |
|
||||
RuntimeCall::FellowshipCollective(..) |
|
||||
RuntimeCall::FellowshipReferenda(..) |
|
||||
RuntimeCall::Whitelist(..) |
|
||||
RuntimeCall::Claims(..) |
|
||||
RuntimeCall::Utility(..) |
|
||||
RuntimeCall::Identity(..) |
|
||||
@@ -1034,17 +1039,22 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
|
||||
RuntimeCall::NominationPools(..) |
|
||||
RuntimeCall::FastUnstake(..)
|
||||
),
|
||||
ProxyType::Governance =>
|
||||
matches!(
|
||||
c,
|
||||
RuntimeCall::Democracy(..) |
|
||||
RuntimeCall::Council(..) | RuntimeCall::TechnicalCommittee(..) |
|
||||
RuntimeCall::PhragmenElection(..) |
|
||||
RuntimeCall::Treasury(..) |
|
||||
RuntimeCall::Bounties(..) |
|
||||
RuntimeCall::Tips(..) | RuntimeCall::Utility(..) |
|
||||
RuntimeCall::ChildBounties(..)
|
||||
),
|
||||
ProxyType::Governance => matches!(
|
||||
c,
|
||||
RuntimeCall::Democracy(..) |
|
||||
RuntimeCall::Council(..) | RuntimeCall::TechnicalCommittee(..) |
|
||||
RuntimeCall::PhragmenElection(..) |
|
||||
RuntimeCall::Treasury(..) |
|
||||
RuntimeCall::Bounties(..) |
|
||||
RuntimeCall::Tips(..) | RuntimeCall::Utility(..) |
|
||||
RuntimeCall::ChildBounties(..) |
|
||||
// OpenGov calls
|
||||
RuntimeCall::ConvictionVoting(..) |
|
||||
RuntimeCall::Referenda(..) |
|
||||
RuntimeCall::FellowshipCollective(..) |
|
||||
RuntimeCall::FellowshipReferenda(..) |
|
||||
RuntimeCall::Whitelist(..)
|
||||
),
|
||||
ProxyType::Staking => {
|
||||
matches!(
|
||||
c,
|
||||
|
||||
Reference in New Issue
Block a user