Skip to content
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

Migrate pallet-timestamp to umbrella crate #6523

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

bennethxyz
Copy link

@bennethxyz bennethxyz commented Nov 18, 2024

Description

Modify pallet-timestamp to use umbrella crate systems, following the guidelines regarding whole prelude imports.

Part of #6504

@cla-bot-2021
Copy link

cla-bot-2021 bot commented Nov 18, 2024

User @bennethxyz, please sign the CLA here.

@bennethxyz
Copy link
Author

bennethxyz commented Dec 5, 2024

@kianenigma @re-gius, I took note of the guidelines and hopefully recent changes serves as a reference to my understanding.

Please review.

Also realized that if systems are needed from the runtime::prelude and also prelude, just use runtime::prelude cause it imports top level prelude.

@bennethxyz bennethxyz marked this pull request as ready for review December 5, 2024 04:59
@bennethxyz bennethxyz requested a review from a team as a code owner December 5, 2024 04:59
@re-gius re-gius added R0-silent Changes should not be mentioned in any release notes T1-FRAME This PR/Issue is related to core FRAME, the framework. labels Dec 9, 2024
Copy link
Contributor

@re-gius re-gius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just fix AtLeast32Bit import and it's ok

use sp_runtime::traits::{AtLeast32Bit, SaturatedConversion, Scale, Zero};
use frame::{
runtime::prelude::*,
traits::{AtLeast32Bit, OnTimestampSet, Scale, Time, UnixTime},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AtLeast32Bit appears in many pallets, we should add it to the umbrella crate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes T1-FRAME This PR/Issue is related to core FRAME, the framework.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants