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

Default Config for Staking #1599

Closed
wants to merge 5 commits into from
Closed

Default Config for Staking #1599

wants to merge 5 commits into from

Conversation

Ank4n
Copy link
Contributor

@Ank4n Ank4n commented Sep 16, 2023

No description provided.

@Ank4n Ank4n added the T1-FRAME This PR/Issue is related to core FRAME, the framework. label Sep 16, 2023
@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable 3/3
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3720675

impl frame_system::Config for Test {
type BaseCallFilter = frame_support::traits::Everything;
type BlockWeights = ();
type BlockLength = ();
type DbWeight = ();
type RuntimeOrigin = RuntimeOrigin;
Copy link
Contributor

Choose a reason for hiding this comment

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

RuntimeOrigin, RuntimeCall and RuntimeEvent can also be removed now.

pub trait Config: frame_system::Config {
/// The staking balance.
#[pallet::no_default]
Copy link
Contributor

Choose a reason for hiding this comment

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

We can try using no_default_bounds for a number of them.

@@ -82,9 +82,36 @@ pub mod pallet {
Remove,
}

#[pallet::config]
/// Some default provided implementations of [`DefaultConfig`], which can be used to implement
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be then applies in a couple of pallets, like grandpa etc?

Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

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

Thanks!

Please update #171 once done.

davxy added a commit that referenced this pull request Sep 19, 2023
@Ank4n Ank4n closed this Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T1-FRAME This PR/Issue is related to core FRAME, the framework.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants