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

Use aggregated types for RuntimeFreezeReason and better examples of MaxFreezes #4615

Merged
merged 13 commits into from
Jun 13, 2024

Conversation

bkontur
Copy link
Contributor

@bkontur bkontur commented May 28, 2024

This PR aligns the settings for MaxFreezes, RuntimeFreezeReason, and FreezeIdentifier.

Future work and improvements

#2997 (remove MaxFreezes and FreezeIdentifier)

@bkontur bkontur added the R0-silent Changes should not be mentioned in any release notes label May 28, 2024
@bkontur bkontur self-assigned this May 28, 2024
@bkontur bkontur requested a review from a team as a code owner May 28, 2024 10:26
@@ -222,13 +222,13 @@ pub mod pallet {
type ExistentialDeposit = ConstU64<1>;

type ReserveIdentifier = ();
type FreezeIdentifier = ();
type FreezeIdentifier = Self::RuntimeFreezeReason;
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like there is still a few pallets that don't use TestDefaultConfig, reasonable to update them as a part of this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems like there is still a few pallets that don't use TestDefaultConfig, reasonable to update them as a part of this PR?

yes, good point, I will do that here

Copy link
Contributor Author

@bkontur bkontur Jun 12, 2024

Choose a reason for hiding this comment

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

@kianenigma I updated all (hopefully) pallets for pallet_balances::Config and TestDefaultConfig, please take a look

@paritytech-review-bot paritytech-review-bot bot requested a review from a team May 29, 2024 10:17
@bkontur bkontur requested a review from a team as a code owner June 11, 2024 09:44
@bkontur bkontur requested review from athei and acatangiu as code owners June 12, 2024 12:38
@paritytech-review-bot paritytech-review-bot bot requested a review from a team June 12, 2024 12:38
@paritytech-cicd-pr
Copy link

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

@bkontur bkontur requested a review from kianenigma June 12, 2024 14:17
impl pallet_balances::Config for Test {
type MaxLocks = ();
Copy link
Contributor

Choose a reason for hiding this comment

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

HELL YEAH, thank you for moving all of this to derive_impl!

@bkontur bkontur added this pull request to the merge queue Jun 13, 2024
Merged via the queue into master with commit 988103d Jun 13, 2024
160 of 161 checks passed
@bkontur bkontur deleted the bko-holds-freezes-nits branch June 13, 2024 09:15
ordian added a commit that referenced this pull request Jun 13, 2024
* master:
  [Backport] Version bumps and prdoc reorg from 1.13.0 (#4784)
  Add `--version` to the `ChainSpecBuilder` command for `staging-chain-spec-builder` (#4752)
  Use aggregated types for `RuntimeFreezeReason` and better examples of `MaxFreezes` (#4615)
  Update the pallet guide in `sdk-docs` (#4735)
  Hide `tuplex` dependency and re-export by macro (#4774)
Ank4n pushed a commit that referenced this pull request Jun 14, 2024
… `MaxFreezes` (#4615)

This PR aligns the settings for `MaxFreezes`, `RuntimeFreezeReason`, and
`FreezeIdentifier`.

#### Future work and improvements
#2997 (remove
`MaxFreezes` and `FreezeIdentifier`)
TarekkMA pushed a commit to moonbeam-foundation/polkadot-sdk that referenced this pull request Aug 2, 2024
… `MaxFreezes` (paritytech#4615)

This PR aligns the settings for `MaxFreezes`, `RuntimeFreezeReason`, and
`FreezeIdentifier`.

#### Future work and improvements
paritytech#2997 (remove
`MaxFreezes` and `FreezeIdentifier`)
sfffaaa pushed a commit to peaqnetwork/polkadot-sdk that referenced this pull request Dec 27, 2024
… `MaxFreezes` (paritytech#4615)

This PR aligns the settings for `MaxFreezes`, `RuntimeFreezeReason`, and
`FreezeIdentifier`.

#### Future work and improvements
paritytech#2997 (remove
`MaxFreezes` and `FreezeIdentifier`)
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants