Skip to content
  • Gavin Wood's avatar
    Governance v2 (Kusama only) (#5205) · 5d2f8103
    Gavin Wood authored
    
    
    * First bits
    
    * Create new origins
    
    * Repot governance configs
    
    * Tests for treasury spends
    
    * Integrate treasury spend threshold origins
    
    * Bump deps
    
    * Add whitelist, configure treasury spend origins
    
    * Add governance curves
    
    * Enable curve's ceil to be configured
    
    * Make compile
    
    * Rest of new governance params
    
    * Build fixes
    
    * Fixes
    
    * Fix warning
    
    * Use new EnsureOrigin::try_successful_origin
    
    * Some repotting
    
    * Add files
    
    * Ready for initial review
    
    * Fixes
    
    * Formatting
    
    * Bump
    
    * rename
    
    * Derive MEL for Origin enum
    
    Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
    
    * Add benchmarks
    
    Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
    
    * ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_conviction_voting
    
    * Update Cargo.lock
    
    * Update runtime/kusama/src/governance/origins.rs
    
    Co-authored-by: default avatarXiliang Chen <[email protected]>
    
    * allow root to demote and promote, fixing benchmarks
    
    * fix whitelist origin benchmarks
    
    * typo
    
    * cargo update -p sp-io
    
    * add second referenda instance to benchmarks
    
    * allow root to act as a 9th dan in track
    
    * feature flag it
    
    * cargo update -p sp-io
    
    * fix merge
    
    * ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_referenda
    
    * ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_conviction_voting
    
    * allow root to create auction
    
    * Update mod.rs
    
    * more origin fixes
    
    * root isnt needed actually
    
    * cargo update -p sp-io
    
    * allow root to cancel slash
    
    * initial stuff
    
    * make copy data from kusama
    
    * ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_referenda
    
    * Update Cargo.lock
    
    * commit new weight files
    
    * more files
    
    * use weight files
    
    * ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_referenda
    
    * Update Cargo.lock
    
    * Update to latest master
    
    * Formatting
    
    * ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_ranked_collective
    
    * ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_conviction_voting
    
    * ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_conviction_voting
    
    * ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_whitelist
    
    * Rename Origin -> RuntimeOrigin
    
    This was done in Substrate and is now needed here as well.
    
    Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
    
    * cargo update -p sp-io
    
    Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
    
    * Tech Committee can promote to VI Dan
    
    * Update runtime/kusama/src/governance/mod.rs
    
    Co-authored-by: default avatarAmar Singh <[email protected]>
    
    * Formatting
    
    * Update runtime/kusama/src/governance/fellowship.rs
    
    Co-authored-by: default avatarAmar Singh <[email protected]>
    
    * Fixes
    
    * Avoid updating extraneous deps
    
    * Fix broken stuff
    
    * ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_referenda
    
    * Update runtime/kusama/src/governance/fellowship.rs
    
    * Reorder EitherOf origins
    
    Zero logic change to make the benchmarking work.
    It uses the first successful origin which can only promote to rank 6.
    By swapping the order we use Root which can always promote.
    
    Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
    
    * Revert param change and update doc
    
    Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
    Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
    Co-authored-by: command-bot <>
    Co-authored-by: default avatarShawn Tabrizi <[email protected]>
    Co-authored-by: default avatarXiliang Chen <[email protected]>
    Co-authored-by: default avatarKeith Yeung <[email protected]>
    Co-authored-by: default avatarAmar Singh <[email protected]>
    5d2f8103
This project manages its dependencies using Cargo. Learn more