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

feat: Sunset gov v1 #670

Merged
merged 10 commits into from
Sep 18, 2024
Merged

feat: Sunset gov v1 #670

merged 10 commits into from
Sep 18, 2024

Conversation

vgantchev
Copy link
Contributor

@vgantchev vgantchev commented Sep 17, 2024

This PR sunsets gov v1 and the Council, more specifically:

  • Removes the following pallets from the runtime: elections-phragmen, tips, collectives/council
  • Adds migrations to the locks on funds and clean the storage associated with the pallets above

pallet-democracy is left in the runtime for now, to be cleaned up later once the existing votes have expired (another max ~3 months)

@vgantchev vgantchev changed the title Sunset gov v1 feat: Sunset gov v1 Sep 17, 2024
Copy link

github-actions bot commented Sep 17, 2024

Crate versions that have been updated:

  • runtime-integration-tests: v1.0.3 -> v1.0.4
  • basilisk: v15.0.0 -> v16.0.0
  • basilisk-runtime: v119.0.0 -> v120.0.0

Runtime version has been increased.

Copy link
Member

@mrq1911 mrq1911 left a comment

Choose a reason for hiding this comment

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

fmt & bump versions & LGMT

@@ -170,13 +171,9 @@ construct_runtime!(
Treasury: pallet_treasury = 4,
Utility: pallet_utility = 5,
//NOTE: 6 - is used by Scheduler which must be after cumulus_pallet_parachain_system
Democracy: pallet_democracy exclude_parts { Config } = 7,
Copy link
Member

Choose a reason for hiding this comment

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

we should probably retire those pallet id's of removed pallets

Copy link
Contributor Author

Choose a reason for hiding this comment

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

wdym by retire the pallet IDs?

Copy link
Member

Choose a reason for hiding this comment

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

not use them in future

@@ -171,12 +172,9 @@ construct_runtime!(
Utility: pallet_utility = 5,
//NOTE: 6 - is used by Scheduler which must be after cumulus_pallet_parachain_system
Democracy: pallet_democracy exclude_parts { Config } = 7,
Elections: pallet_elections_phragmen = 8,
Copy link
Contributor

Choose a reason for hiding this comment

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

We should check the storage after we remove pallets, I think we'll need to clear it either by ref or by migration.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, I see later we do migration

@@ -19,29 +19,12 @@ use crate::governance::TechnicalCollective;
use crate::*;

use primitives::constants::{
currency::{CENTS, DOLLARS, UNITS},
currency::DOLLARS,
Copy link
Contributor

@jak-pan jak-pan Sep 18, 2024

Choose a reason for hiding this comment

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

Why remove this and then use imports directly?

@vgantchev vgantchev merged commit c7a0f1b into master Sep 18, 2024
6 checks passed
@vgantchev vgantchev deleted the sunset_govv1 branch September 18, 2024 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants