-
Notifications
You must be signed in to change notification settings - Fork 741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tracking] Migrate pallets to umbrella crate #6504
Comments
Can I pick this up @re-gius Thinking this should be a tracking issue as it involves more than one crate but happy to do it! |
Yes, it's going to be a tracking issue. You are more than welcome to start working at some pallets/crates, ideally one or two per PR. |
Are there still some pallets to work on or are you doing all of them? |
Because they hardcoded some of those things in the frame-support's macros. Suggest changing those marcos usage to |
Thanks for the quick response @AurevoirXavier
Should we not all do this then? |
I'm happy to see that. cc @kianenigma |
Maybe at the final stages, when all crates are ported then one PR can help correct all the other crates? |
Yes. |
taking pallet scheduler |
oh yeah i am having the same issue with the defensive! macro in frame support, i have no idea how to fix that without rewritting the macro to not use frame support |
Thanks for al your work on this PR. I should get a few reviews done by this week, and then pick up new PRs in January. I'll ask other engineers from Parity to help, but also notice that the end of December is usually an inactivity period for low-priority tasks like this. One important thing I want to mention is: read the guidelines. Don't be scared to add imports to the umbrella crate preludes, as longs as they are used across multiple pallets. If something like:
becomes
then you're probably doing it wrong. The ultimate goal is to only have something like |
Taking pallet-paged-list and pallet-paged-list-fuzzer since they go together |
Hi, I'd like to work on this. I will pickup |
Part of #6504 --------- Co-authored-by: Giuseppe Re <[email protected]>
Hi, I'd like to work on this. I will pickup |
Pick |
taking |
taking |
taking |
taking |
taking |
Migrate all pallets to
polkadot-sdk-frame
by adding types and preludes to it when necessary. As a reference, you can look into #5995.The guidelines of the umbrella crate are as follows:
polkadot-sdk/substrate/frame/src/lib.rs
Lines 134 to 150 in 06a68be
✅ Checklist:
polkadot-sdk-frame
to theCargo.toml
frame_support
,sp_runtime
and similar, and replace with the appropriateprelude::*
deps
Cargo.toml
to remove all unneeded dependencies.👉 If you want to work on this: Please check that there is not already a merge request for the pallet that you want to work on (here or in the comments below). Please pick only one or a small set of pallets - not all at once. This keeps review times low. Add a comment below to announce the pallets you're working on.
Pallet list
pallet-alliance
to umbrella crate #6541pallet-assets-freezer
to umbrella crate #6599pallet-atomic-swap
to umbrella crate #6601pallet-aura
to umbrella crate #6622pallet-authority-discovery
to umbrella crate #6619pallet-authorship
to umbrella crate #6620pallet-babe
&pallet-staking-reward-curve
#6412pallet-im-online
to umbrella crate #6736pallet-indices
to umbrella crate #6737pallet-insecure-randomness-collective-flip
to umbrella crate #6738pallet-proxy
andpallet-multisig
#5995pallet-proxy
andpallet-multisig
#5995pallet-babe
&pallet-staking-reward-curve
#6412pallet-timestamp
to umbrella crate #6523pallet-tips
to umbrella crate #6532pallet-tx-pause
to umbrella crate #6630pallet-verify-signature
to umbrella crate #6515pallet-whitelist
to umbrella crate #6514The text was updated successfully, but these errors were encountered: