Skip to content

Commit

Permalink
Altair: release v0.12.0 (#1896)
Browse files Browse the repository at this point in the history
* fix: altair chain spec

* chore: update gov2 weights

* chore: update dev OpenGov weights

* fix: weight declaration
  • Loading branch information
wischli authored Jul 2, 2024
1 parent d034784 commit 753a8b5
Show file tree
Hide file tree
Showing 19 changed files with 1,812 additions and 1,809 deletions.
9 changes: 3 additions & 6 deletions node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use runtime_common::account_conversion::AccountConverter;
use sc_chain_spec::{ChainSpecExtension, ChainSpecGroup};
use sc_service::{ChainType, Properties};
use serde::{Deserialize, Serialize};
use sp_core::{bounded_vec::BoundedVec, sr25519, Encode, Pair, Public};
use sp_core::{sr25519, Encode, Pair, Public};
use sp_runtime::{
traits::{IdentifyAccount, Verify},
FixedPointNumber,
Expand Down Expand Up @@ -393,7 +393,7 @@ fn altair_genesis(
serde_json::json!({
"balances": { "balances": balances },
"council": {
"members": council_members,
"members": council_members.clone(),
},
"fees": {
"initialFees": vec![(
Expand Down Expand Up @@ -451,11 +451,8 @@ fn altair_genesis(
"polkadotXcm": {
"safeXcmVersion": Some(SAFE_XCM_VERSION),
},
"techhnicalCommittee": {
"technicalCommittee": {
"members": council_members
},
"technicalCommitteeMembership": {
"members": BoundedVec::<_, altair_runtime::TechnicalMaxMembers>::truncate_from(council_members),
}
})
}
Expand Down
1 change: 0 additions & 1 deletion runtime/altair/src/weights/pallet_collective.rs

This file was deleted.

521 changes: 260 additions & 261 deletions runtime/altair/src/weights/pallet_collective_council.rs

Large diffs are not rendered by default.

517 changes: 256 additions & 261 deletions runtime/altair/src/weights/pallet_collective_technical_fellowship.rs

Large diffs are not rendered by default.

90 changes: 45 additions & 45 deletions runtime/altair/src/weights/pallet_conviction_voting.rs
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
//! Autogenerated weights for `pallet_collective`

//! Autogenerated weights for `pallet_conviction_voting`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2024-03-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-06-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("centrifuge-dev"), DB CACHE: 1024
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("development")`, DB CACHE: 1024

// Executed Command:
// target/release/centrifuge-chain
// benchmark
// pallet
// --chain=centrifuge-dev
// --chain=altair
// --steps=50
// --repeat=20
// --pallet=pallet_collective
// --pallet=pallet_conviction_voting
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=/tmp/runtime/centrifuge/src/weights/pallet_conviction_voting.rs
// --output=/tmp/runtime/development/src/weights/pallet_conviction_voting.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand All @@ -36,19 +36,19 @@ impl<T: frame_system::Config> pallet_conviction_voting::WeightInfo for WeightInf
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(311), added: 2786, mode: `MaxEncodedLen`)
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(149), added: 2624, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:1 w:1)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
fn vote_new() -> Weight {
// Proof Size summary in bytes:
// Measured: `13445`
// Measured: `13381`
// Estimated: `42428`
// Minimum execution time: 128_222_000 picoseconds.
Weight::from_parts(133_397_000, 0)
// Minimum execution time: 119_353_000 picoseconds.
Weight::from_parts(124_742_000, 0)
.saturating_add(Weight::from_parts(0, 42428))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(5))
Expand All @@ -58,19 +58,19 @@ impl<T: frame_system::Config> pallet_conviction_voting::WeightInfo for WeightInf
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(311), added: 2786, mode: `MaxEncodedLen`)
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(149), added: 2624, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:2 w:2)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
fn vote_existing() -> Weight {
// Proof Size summary in bytes:
// Measured: `14166`
// Measured: `14102`
// Estimated: `83866`
// Minimum execution time: 193_274_000 picoseconds.
Weight::from_parts(206_120_000, 0)
// Minimum execution time: 168_233_000 picoseconds.
Weight::from_parts(172_281_000, 0)
.saturating_add(Weight::from_parts(0, 83866))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(6))
Expand All @@ -83,10 +83,10 @@ impl<T: frame_system::Config> pallet_conviction_voting::WeightInfo for WeightInf
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
fn remove_vote() -> Weight {
// Proof Size summary in bytes:
// Measured: `13918`
// Measured: `13891`
// Estimated: `83866`
// Minimum execution time: 169_729_000 picoseconds.
Weight::from_parts(181_847_000, 0)
// Minimum execution time: 138_428_000 picoseconds.
Weight::from_parts(148_126_000, 0)
.saturating_add(Weight::from_parts(0, 83866))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(4))
Expand All @@ -97,36 +97,36 @@ impl<T: frame_system::Config> pallet_conviction_voting::WeightInfo for WeightInf
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(936), added: 3411, mode: `MaxEncodedLen`)
fn remove_other_vote() -> Weight {
// Proof Size summary in bytes:
// Measured: `13004`
// Measured: `13015`
// Estimated: `30706`
// Minimum execution time: 74_834_000 picoseconds.
Weight::from_parts(83_047_000, 0)
// Minimum execution time: 69_740_000 picoseconds.
Weight::from_parts(71_293_000, 0)
.saturating_add(Weight::from_parts(0, 30706))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: `ConvictionVoting::VotingFor` (r:2 w:2)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `Referenda::ReferendumInfoFor` (r:512 w:512)
/// Storage: `Referenda::ReferendumInfoFor` (r:20 w:20)
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(936), added: 3411, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:2 w:2)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(311), added: 2786, mode: `MaxEncodedLen`)
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(149), added: 2624, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// The range of component `r` is `[0, 512]`.
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`)
/// The range of component `r` is `[0, 20]`.
fn delegate(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `29640 + r * (365 ±0)`
// Measured: `1928 + r * (705 ±0)`
// Estimated: `83866 + r * (3411 ±0)`
// Minimum execution time: 65_741_000 picoseconds.
Weight::from_parts(1_683_585_056, 0)
// Minimum execution time: 60_683_000 picoseconds.
Weight::from_parts(49_152_901, 0)
.saturating_add(Weight::from_parts(0, 83866))
// Standard Error: 146_560
.saturating_add(Weight::from_parts(40_661_211, 0).saturating_mul(r.into()))
// Standard Error: 142_987
.saturating_add(Weight::from_parts(38_936_029, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(6))
Expand All @@ -135,20 +135,20 @@ impl<T: frame_system::Config> pallet_conviction_voting::WeightInfo for WeightInf
}
/// Storage: `ConvictionVoting::VotingFor` (r:2 w:2)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `Referenda::ReferendumInfoFor` (r:512 w:512)
/// Storage: `Referenda::ReferendumInfoFor` (r:20 w:20)
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(936), added: 3411, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:2 w:2)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
/// The range of component `r` is `[0, 512]`.
/// The range of component `r` is `[0, 20]`.
fn undelegate(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `29555 + r * (365 ±0)`
// Measured: `1881 + r * (705 ±0)`
// Estimated: `83866 + r * (3411 ±0)`
// Minimum execution time: 38_557_000 picoseconds.
Weight::from_parts(1_664_510_198, 0)
// Minimum execution time: 30_417_000 picoseconds.
Weight::from_parts(11_657_082, 0)
.saturating_add(Weight::from_parts(0, 83866))
// Standard Error: 147_721
.saturating_add(Weight::from_parts(40_405_805, 0).saturating_mul(r.into()))
// Standard Error: 148_364
.saturating_add(Weight::from_parts(38_985_936, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(4))
Expand All @@ -158,17 +158,17 @@ impl<T: frame_system::Config> pallet_conviction_voting::WeightInfo for WeightInf
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(311), added: 2786, mode: `MaxEncodedLen`)
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(149), added: 2624, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`)
fn unlock() -> Weight {
// Proof Size summary in bytes:
// Measured: `12218`
// Measured: `11959`
// Estimated: `30706`
// Minimum execution time: 94_790_000 picoseconds.
Weight::from_parts(100_982_000, 0)
// Minimum execution time: 87_544_000 picoseconds.
Weight::from_parts(90_088_000, 0)
.saturating_add(Weight::from_parts(0, 30706))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
Expand Down
Loading

0 comments on commit 753a8b5

Please sign in to comment.