migrate pallet-mixnet to umbrella crate#6986
Merged
UtkarshBhardwaj007 merged 16 commits intoJan 3, 2025
Merged
Conversation
Member
Author
|
Part of #6504 |
seadanda
reviewed
Dec 24, 2024
Co-authored-by: Dónal Murray <donalm@seadanda.dev>
Co-authored-by: Dónal Murray <donalm@seadanda.dev>
Co-authored-by: Dónal Murray <donalm@seadanda.dev>
Co-authored-by: Dónal Murray <donalm@seadanda.dev>
kianenigma
reviewed
Dec 26, 2024
kianenigma
reviewed
Dec 26, 2024
kianenigma
reviewed
Dec 31, 2024
| //////////////////////////////////////////////////////////////////////////////// | ||
|
|
||
| #[frame_support::pallet(dev_mode)] | ||
| #[frame::pallet(dev_mode)] |
Contributor
There was a problem hiding this comment.
This dev_mode is not really good for production as well 🙈 not in scope for now, but should be removed later.
Member
Author
There was a problem hiding this comment.
I see, will have to dig in the code to understand why but we could create an issue for it if there's isn't one already.
Contributor
There was a problem hiding this comment.
Think this is just because I never got around to adding weights.
kianenigma
approved these changes
Dec 31, 2024
Contributor
|
Review required! Latest push from author must always be reviewed |
ggwpez
reviewed
Jan 2, 2025
ggwpez
approved these changes
Jan 2, 2025
ggwpez
reviewed
Jan 2, 2025
48 tasks
re-gius
approved these changes
Jan 3, 2025
dudo50
pushed a commit
to paraspell-research/polkadot-sdk
that referenced
this pull request
Jan 4, 2025
# Description Migrate pallet-mixnet to use umbrella crate whilst adding a few types and traits in the frame prelude that are used by other pallets as well. ## Review Notes * This PR migrates `pallet-mixnet` to use the umbrella crate. * Note that some imports like `use sp_application_crypto::RuntimeAppPublic;` and imports from `sp_mixnet::types::` have not been migrated to the umbrella crate as they are not used in any / many other places and are relevant only to the `pallet-mixnet`. * Transaction related helpers to submit transactions from `frame-system` have been added to the main `prelude` as they have usage across various pallets. ```Rust pub use frame_system::offchain::*; ``` * Exporting `arithmetic` module in the main `prelude` since this is used a lot throughout various pallets. * Nightly formatting has been applied using `cargo fmt` * Benchmarking dependencies have been removed from`palet-mixnet` as there is no benchmarking.rs present for `pallet-mixnet`. For the same reason, `"pallet-mixnet?/runtime-benchmarks"` has been removed from `umbrella/Cargo.toml`. --------- Co-authored-by: Dónal Murray <donalm@seadanda.dev>
ordian
added a commit
that referenced
this pull request
Jan 7, 2025
* master: (256 commits) fix chunk fetching network compatibility zombienet test (#6988) chore: delete repeat words (#7034) Print taplo version in CI (#7041) Implement cumulus StorageWeightReclaim as wrapping transaction extension + frame system ReclaimWeight (#6140) Make `TransactionExtension` tuple of tuple transparent for implication (#7028) Replace duplicated whitelist with whitelisted_storage_keys (#7024) [WIP] Fix networking-benchmarks (#7036) [docs] Fix release naming (#7032) migrate pallet-mixnet to umbrella crate (#6986) Improve remote externalities logging (#7021) Fix polkadot sdk doc. (#7022) Remove warning log from frame-omni-bencher CLI (#7020) [pallet-revive] fix file case (#6981) Add workflow for networking benchmarks (#7029) [CI] Skip SemVer on R0-silent and update docs (#6285) correct path in cumulus README (#7001) sync: Send already connected peers to new subscribers (#7011) Excluding chainlink domain for link checker CI (#6524) pallet-bounties: Fix benchmarks for 0 ED (#7013) Log peerset set ID -> protocol name mapping (#7005) ...
7 tasks
This was referenced Jul 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Migrate pallet-mixnet to use umbrella crate whilst adding a few types and traits in the frame prelude that are used by other pallets as well.
Review Notes
pallet-mixnetto use the umbrella crate.use sp_application_crypto::RuntimeAppPublic;and imports fromsp_mixnet::types::have not been migrated to the umbrella crate as they are not used in any / many other places and are relevant only to thepallet-mixnet.frame-systemhave been added to the mainpreludeas they have usage across various pallets.arithmeticmodule in the mainpreludesince this is used a lot throughout various pallets.cargo fmtpalet-mixnetas there is no benchmarking.rs present forpallet-mixnet. For the same reason,"pallet-mixnet?/runtime-benchmarks"has been removed fromumbrella/Cargo.toml.