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

Integrate Democracy Pallet into Runtime and Configuration #759

Merged
merged 16 commits into from
Sep 5, 2024

Conversation

asiniscalchi
Copy link
Member

@asiniscalchi asiniscalchi commented Sep 4, 2024

PR Type

enhancement, configuration changes


Description

  • Integrated the pallet_democracy into the runtime, including its configuration and weights.
  • Updated the collective council configuration with new voting proportion types.
  • Added pallet_democracy to the list of benchmarks and weights.
  • Updated Cargo.toml files to include pallet-democracy as a dependency.

Changes walkthrough 📝

Relevant files
Enhancement
5 files
benchmarks.rs
Include Democracy Pallet in Benchmarks                                     

runtime/laos/src/benchmarks.rs

  • Added pallet_democracy to the list of benchmarks.
+1/-0     
lib.rs
Integrate Democracy Pallet into Runtime                                   

runtime/laos/src/lib.rs

  • Added Democracy pallet to the runtime construction.
+1/-0     
mod.rs
Add Democracy Pallet to Weights Module                                     

runtime/laos/src/weights/mod.rs

  • Added pallet_democracy to the weights module.
+1/-0     
pallet_collective.rs
Update Weights for Collective Pallet                                         

runtime/laos/src/weights/pallet_collective.rs

  • Updated autogenerated weights for pallet_collective.
+56/-50 
pallet_democracy.rs
Add Weights for Democracy Pallet                                                 

runtime/laos/src/weights/pallet_democracy.rs

  • Added autogenerated weights for pallet_democracy.
+488/-0 
Configuration changes
4 files
collective_council.rs
Define Council Voting Proportion Types                                     

runtime/laos/src/configs/collective_council.rs

  • Defined new types for council voting proportions.
+9/-0     
democracy.rs
Add Democracy Pallet Configuration                                             

runtime/laos/src/configs/democracy.rs

  • Added configuration for pallet_democracy.
  • Defined parameter types and implemented the Config trait.
  • +85/-0   
    mod.rs
    Add Democracy Module to Configurations                                     

    runtime/laos/src/configs/mod.rs

    • Added democracy module to the configuration.
    +1/-0     
    treasury.rs
    Update Treasury Origins to Use Council Majority                   

    runtime/laos/src/configs/treasury.rs

  • Updated ApproveOrigin and RejectOrigin to use CouncilMajority.
  • +1/-3     
    Dependencies
    2 files
    Cargo.toml
    Add Democracy Pallet Dependency                                                   

    Cargo.toml

    • Added pallet-democracy dependency.
    +1/-0     
    Cargo.toml
    Include Democracy Pallet in Workspace                                       

    runtime/laos/Cargo.toml

    • Added pallet-democracy to workspace members and features.
    +4/-0     

    💡 PR-Agent usage:
    Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    @asiniscalchi asiniscalchi force-pushed the feature/add_democracy_pallet branch from 9767277 to 929313b Compare September 4, 2024 13:42
    @asiniscalchi
    Copy link
    Member Author

    /describe

    @github-actions github-actions bot changed the title Feature/add democracy pallet Integrate Democracy Pallet into Runtime and Configuration Sep 4, 2024
    Copy link

    github-actions bot commented Sep 4, 2024

    PR Description updated to latest commit (d833427)

    @asiniscalchi asiniscalchi marked this pull request as ready for review September 5, 2024 09:09
    Base automatically changed from feature/add_scheduler to main September 5, 2024 09:12
    @asiniscalchi asiniscalchi linked an issue Sep 5, 2024 that may be closed by this pull request
    magecnion
    magecnion previously approved these changes Sep 5, 2024
    @asiniscalchi asiniscalchi merged commit e988c40 into main Sep 5, 2024
    9 checks passed
    @asiniscalchi asiniscalchi deleted the feature/add_democracy_pallet branch September 5, 2024 13:53
    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.

    Integrate Democracy for Decision-Making in the Parachain
    3 participants