Skip to content

Default Config for Staking#1599

Closed
Ank4n wants to merge 5 commits intomasterfrom
ankan/derive-impl
Closed

Default Config for Staking#1599
Ank4n wants to merge 5 commits intomasterfrom
ankan/derive-impl

Conversation

@Ank4n
Copy link
Copy Markdown
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
Copy Markdown

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

type BlockWeights = ();
type BlockLength = ();
type DbWeight = ();
type RuntimeOrigin = RuntimeOrigin;
Copy link
Copy Markdown
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.

#[pallet::config(with_default)]
pub trait Config: frame_system::Config {
/// The staking balance.
#[pallet::no_default]
Copy link
Copy Markdown
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.

}

#[pallet::config]
/// Some default provided implementations of [`DefaultConfig`], which can be used to implement
Copy link
Copy Markdown
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
Copy Markdown
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