mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
Make Proxy NonTransfer filter explicit (#1303)
* Make kusama proxy explicit * Make polkadot explicit * Make westend explicit * bump spec
This commit is contained in:
@@ -587,8 +587,42 @@ impl InstanceFilter<Call> for ProxyType {
|
||||
fn filter(&self, c: &Call) -> bool {
|
||||
match self {
|
||||
ProxyType::Any => true,
|
||||
ProxyType::NonTransfer => !matches!(c,
|
||||
Call::Balances(..) | Call::Indices(indices::Call::transfer(..))
|
||||
ProxyType::NonTransfer => matches!(c,
|
||||
Call::System(..) |
|
||||
Call::Babe(..) |
|
||||
Call::Timestamp(..) |
|
||||
Call::Indices(indices::Call::claim(..)) |
|
||||
Call::Indices(indices::Call::free(..)) |
|
||||
Call::Indices(indices::Call::freeze(..)) |
|
||||
// Specifically omitting Indices `transfer`, `force_transfer`
|
||||
// Specifically omitting the entire Balances pallet
|
||||
Call::Authorship(..) |
|
||||
Call::Staking(..) |
|
||||
Call::Offences(..) |
|
||||
Call::Session(..) |
|
||||
Call::FinalityTracker(..) |
|
||||
Call::Grandpa(..) |
|
||||
Call::ImOnline(..) |
|
||||
Call::AuthorityDiscovery(..) |
|
||||
Call::Parachains(..) |
|
||||
Call::Attestations(..) |
|
||||
Call::Registrar(..) |
|
||||
Call::Utility(..) |
|
||||
Call::Identity(..) |
|
||||
Call::Recovery(recovery::Call::as_recovered(..)) |
|
||||
Call::Recovery(recovery::Call::vouch_recovery(..)) |
|
||||
Call::Recovery(recovery::Call::claim_recovery(..)) |
|
||||
Call::Recovery(recovery::Call::close_recovery(..)) |
|
||||
Call::Recovery(recovery::Call::remove_recovery(..)) |
|
||||
Call::Recovery(recovery::Call::cancel_recovered(..)) |
|
||||
// Specifically omitting Recovery `create_recovery`, `initiate_recovery`
|
||||
Call::Vesting(vesting::Call::vest(..)) |
|
||||
Call::Vesting(vesting::Call::vest_other(..)) |
|
||||
// Specifically omitting Vesting `vested_transfer`, and `force_vested_transfer`
|
||||
Call::Scheduler(..) |
|
||||
// Specifically omitting Sudo pallet
|
||||
Call::Proxy(..) |
|
||||
Call::Multisig(..)
|
||||
),
|
||||
ProxyType::Staking => matches!(c,
|
||||
Call::Staking(..) | Call::Utility(utility::Call::batch(..))
|
||||
|
||||
Reference in New Issue
Block a user