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

[AHM] Make pallet types public #7579

Merged
merged 14 commits into from
Feb 17, 2025
Merged

[AHM] Make pallet types public #7579

merged 14 commits into from
Feb 17, 2025

Conversation

ggwpez
Copy link
Member

@ggwpez ggwpez commented Feb 14, 2025

Preparation for AHM and making stuff public.

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez
Copy link
Member Author

ggwpez commented Feb 14, 2025

/cmd prdoc --bump minor --audience runtime-dev

Copy link
Contributor

Command "prdoc --bump minor --audience runtime-dev" has failed ❌! See logs here

@ggwpez
Copy link
Member Author

ggwpez commented Feb 14, 2025

/cmd prdoc --bump minor --audience runtime_dev

@ggwpez ggwpez added the T2-pallets This PR/Issue is related to a particular pallet. label Feb 14, 2025
@ggwpez ggwpez marked this pull request as ready for review February 14, 2025 18:37
@ggwpez ggwpez requested review from a team as code owners February 14, 2025 18:37
<<T as Config<I>>::Currency as Currency<<T as frame_system::Config>::AccountId>>::Balance;
type VotingOf<T, I = ()> = Voting<
pub type VotingOf<T, I = ()> = Voting<
Copy link
Contributor

Choose a reason for hiding this comment

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

we also have some problem here with clone impl because of MaxVotes

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea I remember, I tried it but it introduces a lot of code since we have to manually implement Clone, Debug, PartialEq and Eq. Not really worth it in this case i think we can keep the aliases.

@@ -157,7 +157,28 @@ pub mod pallet {
/// Weight information for extrinsics in this pallet.
type WeightInfo: weights::WeightInfo;

/// Provider for the block number. Normally this is the `frame_system` pallet.
/// Query the current block number.
Copy link
Contributor

Choose a reason for hiding this comment

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

nice. can you copy this doc for all block number provider config types?

Copy link
Member Author

Choose a reason for hiding this comment

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

Coped it to proxy, recovery and vesting now. Would have to check for the other pallets since it maybe needs to be tweaked first.

ggwpez and others added 5 commits February 17, 2025 13:05
Co-authored-by: Dónal Murray <donal.murray@parity.io>
Co-authored-by: Dónal Murray <donal.murray@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/13370809661
Failed job name: test-linux-stable

1 similar comment
@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/13370809661
Failed job name: test-linux-stable

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez enabled auto-merge February 17, 2025 14:20
@ggwpez ggwpez added this pull request to the merge queue Feb 17, 2025
Merged via the queue into master with commit ca91d4b Feb 17, 2025
221 of 232 checks passed
@ggwpez ggwpez deleted the oty-ahm-fixes branch February 17, 2025 15:02
clangenb pushed a commit to clangenb/polkadot-sdk that referenced this pull request Feb 19, 2025
Preparation for AHM and making stuff public.

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dónal Murray <donal.murray@parity.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T2-pallets This PR/Issue is related to a particular pallet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants