Skip to content

Commit

Permalink
Update ProxyType
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed Jan 10, 2024
1 parent d954a70 commit 27378a1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 23 deletions.
17 changes: 10 additions & 7 deletions runtime/crab/src/pallets/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,20 @@ impl frame_support::traits::InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::Balances(..)
| RuntimeCall::Assets(..)
| RuntimeCall::Vesting(pallet_vesting::Call::vested_transfer { .. })
| RuntimeCall::Deposit(..)
| RuntimeCall::DarwiniaStaking(..)
// Might contains transfer {
// Might contains transfer
| RuntimeCall::Utility(..)
| RuntimeCall::Proxy(..)
| RuntimeCall::PolkadotXcm(..)
| RuntimeCall::Ethereum(..) // }
| RuntimeCall::Ethereum(..)
),
ProxyType::Governance => matches!(
c,
RuntimeCall::ConvictionVoting(..)
| RuntimeCall::Referenda(..)
| RuntimeCall::TechnicalCommittee(..)
| RuntimeCall::Treasury(..)
| RuntimeCall::Whitelist(..)
),
ProxyType::Governance =>
matches!(c, |RuntimeCall::Referenda(..)| RuntimeCall::TechnicalCommittee(..)
| RuntimeCall::Treasury(..)),
ProxyType::Staking => {
matches!(
c,
Expand Down
11 changes: 6 additions & 5 deletions runtime/darwinia/src/pallets/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,21 @@ impl frame_support::traits::InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::Balances(..)
| RuntimeCall::Assets(..)
| RuntimeCall::Vesting(pallet_vesting::Call::vested_transfer { .. })
| RuntimeCall::Deposit(..)
| RuntimeCall::DarwiniaStaking(..)
// Might contains transfer {
// Might contains transfer
| RuntimeCall::Utility(..)
| RuntimeCall::Proxy(..)
| RuntimeCall::PolkadotXcm(..)
| RuntimeCall::Ethereum(..) // }
| RuntimeCall::Ethereum(..)
),
ProxyType::Governance => matches!(
c,
RuntimeCall::Democracy(..)
RuntimeCall::ConvictionVoting(..)
| RuntimeCall::Council(..)
| RuntimeCall::Democracy(..)
| RuntimeCall::Referenda(..)
| RuntimeCall::TechnicalCommittee(..)
| RuntimeCall::Treasury(..)
| RuntimeCall::Whitelist(..)
),
ProxyType::Staking => {
matches!(
Expand Down
11 changes: 5 additions & 6 deletions runtime/pangolin/src/pallets/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,19 @@ impl frame_support::traits::InstanceFilter<RuntimeCall> for ProxyType {
c,
RuntimeCall::Balances(..)
| RuntimeCall::Assets(..)
| RuntimeCall::Deposit(..)
| RuntimeCall::DarwiniaStaking(..)
// Might contains transfer {
// Might contains transfer
| RuntimeCall::Utility(..)
| RuntimeCall::Proxy(..)
| RuntimeCall::PolkadotXcm(..)
| RuntimeCall::Ethereum(..) // }
| RuntimeCall::Ethereum(..)
),
ProxyType::Governance => matches!(
c,
RuntimeCall::Referenda(..)
| RuntimeCall::ConvictionVoting(..)
RuntimeCall::ConvictionVoting(..)
| RuntimeCall::Referenda(..)
| RuntimeCall::TechnicalCommittee(..)
| RuntimeCall::Treasury(..)
| RuntimeCall::Whitelist(..)
),
ProxyType::Staking => {
matches!(
Expand Down
11 changes: 6 additions & 5 deletions runtime/pangoro/src/pallets/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,21 @@ impl frame_support::traits::InstanceFilter<RuntimeCall> for ProxyType {
c,
RuntimeCall::Balances(..)
| RuntimeCall::Assets(..)
| RuntimeCall::Deposit(..)
| RuntimeCall::DarwiniaStaking(..)
// Might contains transfer {
// Might contains transfer
| RuntimeCall::Utility(..)
| RuntimeCall::Proxy(..)
| RuntimeCall::PolkadotXcm(..)
| RuntimeCall::Ethereum(..) // }
| RuntimeCall::Ethereum(..)
),
ProxyType::Governance => matches!(
c,
RuntimeCall::Democracy(..)
RuntimeCall::ConvictionVoting(..)
| RuntimeCall::Council(..)
| RuntimeCall::Democracy(..)
| RuntimeCall::Referenda(..)
| RuntimeCall::TechnicalCommittee(..)
| RuntimeCall::Treasury(..)
| RuntimeCall::Whitelist(..)
),
ProxyType::Staking => {
matches!(
Expand Down

0 comments on commit 27378a1

Please sign in to comment.