Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Use named events in cumulus pallets #1260

Merged
merged 8 commits into from
May 23, 2022
Merged

Conversation

gilescope
Copy link
Contributor

This migrates cumulus pallets to use named events.

Partially fixes: paritytech/polkadot#5422

Reviewers please pay special attention to naming consistency with other naming event PRs:

paritytech/polkadot#5423
paritytech/polkadot#5461

@gilescope
Copy link
Contributor Author

(I pulled in the latest polkadot master as well, possibly that was not required)

@gilescope
Copy link
Contributor Author

Should we be calling things message_id or message_hash? Personally I think as it's not guaranteed to be unique we should be calling it what it is: a message hash. But there's an argument that it could change to something more unique in the future and then maybe message id is justified?

pallets/dmp-queue/src/lib.rs Outdated Show resolved Hide resolved
pallets/parachain-system/src/lib.rs Show resolved Hide resolved
pallets/xcm/src/lib.rs Outdated Show resolved Hide resolved
pallets/xcmp-queue/src/lib.rs Outdated Show resolved Hide resolved
@gilescope
Copy link
Contributor Author

gilescope commented May 16, 2022

I'm inclided to rename used and required to weight_used and required_weight. Otherwise I read used and have to wonder used what until I find the type.

@gilescope
Copy link
Contributor Author

bot merge

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate Pallets to Named Events
3 participants