proxy types: refactor whitelist of calls#646
Conversation
bkchr
left a comment
There was a problem hiding this comment.
I would not add pallets to the whitelist that have no callable functions for users.
Also this pr requires a CHANGELOG entry.
| RuntimeCall::Aura(_) | | ||
| RuntimeCall::AuraExt(_) | | ||
| RuntimeCall::XcmpQueue(_) | | ||
| RuntimeCall::CumulusXcm(_) | | ||
| RuntimeCall::ToPolkadotXcmRouter(_) | | ||
| RuntimeCall::MessageQueue(_) | |
There was a problem hiding this comment.
There is no functionality for users.
There was a problem hiding this comment.
Yes done: 10a4767
But I didn't look extremely carefully for each pallet but I think I didn't miss any.
| RuntimeCall::Multisig(_) | | ||
| RuntimeCall::Proxy(_) | | ||
| RuntimeCall::RemoteProxyRelayChain(_) | | ||
| RuntimeCall::StateTrieMigration(_) |
There was a problem hiding this comment.
| RuntimeCall::StateTrieMigration(_) |
|
@gui1117 CI is not happy. |
|
Review required! Latest push from author must always be reviewed |
|
Yes sorry fixed. ecosystem tests seems hanging, I will look into it later. EDIT: some timeout error, let's re-run |
| RuntimeCall::Broker(pallet_broker::Call::claim_revenue { .. }) | | ||
| RuntimeCall::Broker(pallet_broker::Call::drop_region { .. }) | | ||
| RuntimeCall::Broker(pallet_broker::Call::drop_contribution { .. }) | | ||
| RuntimeCall::Broker(pallet_broker::Call::drop_history { .. }) | | ||
| RuntimeCall::Broker(pallet_broker::Call::drop_renewal { .. }) | |
There was a problem hiding this comment.
Besides this one, the other calls should not be required.
There was a problem hiding this comment.
yes ok, partition could be added, but I kept it removed. done 48b9837
| RuntimeCall::Broker(pallet_broker::Call::set_lease { .. }) | | ||
| RuntimeCall::Broker(pallet_broker::Call::start_sales { .. }) | | ||
| RuntimeCall::Broker(pallet_broker::Call::partition { .. }) | | ||
| RuntimeCall::Broker(pallet_broker::Call::claim_revenue { .. }) | |
| RuntimeCall::EncointerScheduler(_) | | ||
| RuntimeCall::EncointerCeremonies(_) | | ||
| RuntimeCall::EncointerCommunities(_) | | ||
| RuntimeCall::EncointerBazaar(_) | | ||
| RuntimeCall::EncointerReputationCommitments(_) | | ||
| RuntimeCall::EncointerFaucet(_) | | ||
| RuntimeCall::EncointerDemocracy(_) | | ||
| RuntimeCall::EncointerTreasuries(_) |
Co-authored-by: Bastian Köcher <git@kchr.de>
| RuntimeCall::EncointerScheduler(_) | | ||
| RuntimeCall::EncointerCeremonies(_) | | ||
| RuntimeCall::EncointerCommunities(_) | | ||
| RuntimeCall::EncointerBazaar(_) | | ||
| RuntimeCall::EncointerReputationCommitments(_) | | ||
| RuntimeCall::EncointerFaucet(_) | | ||
| RuntimeCall::EncointerDemocracy(_) | | ||
| RuntimeCall::EncointerTreasuries(_) |
| - Disable MBM migrations for all runtimes for check-migrations CI ([polkadot-fellows/runtimes/pull/590](https://github.com/polkadot-fellows/runtimes/pull/590)) | ||
| - chain-spec-generator supports conditional building (`--no-default-features --features <runtime>` or `--no-default-features --features all-runtimes` or | ||
| `--no-default-features --features all-polkadot` or `--no-default-features --features all-kusama`)([polkadot-fellows/runtimes/pull/637](https://github.com/polkadot-fellows/runtimes/pull/637)) | ||
| - Proxy type `NonTranfer`: Use a whitelist of calls and remove calls to pallets with not useful calls ([polkadot-fellows/runtimes/pull/646](https://github.com/polkadot-fellows/runtimes/pull/646)) |
There was a problem hiding this comment.
please move this to its right place in the changelog (under "unreleased")
|
and please a more descriptive title/description for the PR 😄 |
|
/merge |
|
Enabled Available commands
For more information see the documentation |
1759908
into
polkadot-fellows:main
| match self { | ||
| ProxyType::Any => true, | ||
| ProxyType::NonTransfer => !matches!( | ||
| ProxyType::NonTransfer => matches!( |
There was a problem hiding this comment.
This conflicts with the changes in the call filter of the asset hub migration... can we please pause doing refactors until AHM is done.
There was a problem hiding this comment.
yes, you're right, sorry about that Oli!
Simply refactor the whitelist of calls in proxy types.
Whitelist is a better practice than blacklist in this context.