Skip to content

Commit

Permalink
Release v6.5.1 (#1338)
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav authored Dec 5, 2023
1 parent 31010a1 commit e0d2012
Show file tree
Hide file tree
Showing 113 changed files with 4,057 additions and 3,330 deletions.
44 changes: 22 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ edition = "2021"
homepage = "https://darwinia.network"
license = "GPL-3.0"
repository = "https://github.com/darwinia-network/darwinia"
version = "6.5.0-1"
version = "6.5.1"

[workspace.dependencies]
# crates.io
Expand Down
5 changes: 4 additions & 1 deletion runtime/crab/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub const VERSION: sp_version::RuntimeVersion = sp_version::RuntimeVersion {
spec_name: sp_runtime::create_runtime_str!("Crab2"),
impl_name: sp_runtime::create_runtime_str!("DarwiniaOfficialRust"),
authoring_version: 0,
spec_version: 6_5_0_1,
spec_version: 6_5_1_0,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 0,
Expand Down Expand Up @@ -193,16 +193,19 @@ frame_benchmarking::define_benchmarks! {
[pallet_balances, Balances]
[pallet_collective, Council]
[pallet_collective, TechnicalCommittee]
[pallet_conviction_voting, ConvictionVoting]
[pallet_democracy, Democracy]
[pallet_identity, Identity]
[pallet_preimage, Preimage]
[pallet_proxy, Proxy]
[pallet_referenda, Referenda]
[pallet_scheduler, Scheduler]
[pallet_treasury, Treasury]
[pallet_utility, Utility]
[pallet_vesting, Vesting]
[pallet_session, SessionBench::<Runtime>]
[pallet_timestamp, Timestamp]
[pallet_whitelist, Whitelist]
}

impl_self_contained_call!();
Expand Down
4 changes: 4 additions & 0 deletions runtime/crab/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
fn migrate() -> frame_support::weights::Weight {
// core
use core::str::FromStr;
// substrate
use frame_support::pallet_prelude::StorageVersion;

let _ = migration::clear_storage_prefix(b"PhragmenElection", b"Members", &[], None, None);
let _ = migration::clear_storage_prefix(b"PhragmenElection", b"RunnersUp", &[], None, None);
Expand All @@ -53,6 +55,8 @@ fn migrate() -> frame_support::weights::Weight {
let _ = migration::clear_storage_prefix(b"TechnicalMembership", b"Members", &[], None, None);
let _ = migration::clear_storage_prefix(b"TechnicalMembership", b"Prime", &[], None, None);

StorageVersion::new(1).put::<pallet_referenda::Pallet<Runtime>>();

const REVERT_BYTECODE: [u8; 5] = [0x60, 0x00, 0x60, 0x00, 0xFD];
// CONVICTION_VOTING_ADDRESS equals to the addr(0x602) in the pallet-evm runtime.
const CONVICTION_VOTING_ADDRESS: &str = "0x0000000000000000000000000000000000000602";
Expand Down
9 changes: 3 additions & 6 deletions runtime/crab/src/pallets/governance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ impl pallet_conviction_voting::Config for Runtime {
type Polls = Referenda;
type RuntimeEvent = RuntimeEvent;
type VoteLockingPeriod = ConstU32<{ DAYS }>;
type WeightInfo = ();
// type WeightInfo = weights::pallet_conviction_voting::WeightInfo<Self>;
type WeightInfo = weights::pallet_conviction_voting::WeightInfo<Self>;
}

pallet_referenda::impl_tracksinfo_get!(TracksInfo, Balance, BlockNumber);
Expand All @@ -97,8 +96,7 @@ impl pallet_referenda::Config for Runtime {
type Tracks = TracksInfo;
type UndecidingTimeout = ConstU32<{ 14 * DAYS }>;
type Votes = pallet_conviction_voting::VotesOf<Self>;
type WeightInfo = ();
// type WeightInfo = weights::pallet_referenda::WeightInfo<Self>;
type WeightInfo = weights::pallet_referenda::WeightInfo<Self>;
}

impl custom_origins::Config for Runtime {}
Expand All @@ -110,7 +108,6 @@ impl pallet_whitelist::Config for Runtime {
type Preimages = Preimage;
type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent;
type WeightInfo = ();
// type WeightInfo = weights::pallet_whitelist::WeightInfo<Self>;
type WeightInfo = weights::pallet_whitelist::WeightInfo<Self>;
type WhitelistOrigin = RootOrAtLeastFourFifth<TechnicalCollective>;
}
3 changes: 3 additions & 0 deletions runtime/crab/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,17 @@ pub mod pallet_balances;
pub mod pallet_bridge_grandpa;
pub mod pallet_collective_council;
pub mod pallet_collective_technical_committee;
pub mod pallet_conviction_voting;
pub mod pallet_democracy;
pub mod pallet_fee_market;
pub mod pallet_identity;
pub mod pallet_preimage;
pub mod pallet_proxy;
pub mod pallet_referenda;
pub mod pallet_scheduler;
pub mod pallet_session;
pub mod pallet_timestamp;
pub mod pallet_treasury;
pub mod pallet_utility;
pub mod pallet_vesting;
pub mod pallet_whitelist;
11 changes: 5 additions & 6 deletions runtime/crab/src/weights/cumulus_pallet_xcmp_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-11-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-12-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `inv.cafe`, CPU: `Intel(R) Core(TM) i9-14900KF`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("crab-dev")`, DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -62,8 +61,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `42`
// Estimated: `1527`
// Minimum execution time: 3_785_000 picoseconds.
Weight::from_parts(3_964_000, 0)
// Minimum execution time: 5_000_000 picoseconds.
Weight::from_parts(5_000_000, 0)
.saturating_add(Weight::from_parts(0, 1527))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -74,8 +73,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `42`
// Estimated: `1527`
// Minimum execution time: 3_745_000 picoseconds.
Weight::from_parts(3_959_000, 0)
// Minimum execution time: 5_000_000 picoseconds.
Weight::from_parts(5_000_000, 0)
.saturating_add(Weight::from_parts(0, 1527))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand Down
19 changes: 9 additions & 10 deletions runtime/crab/src/weights/darwinia_account_migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
//! Autogenerated weights for `darwinia_account_migration`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-11-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-12-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `inv.cafe`, CPU: `Intel(R) Core(TM) i9-14900KF`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("crab-dev")`, DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -84,8 +83,8 @@ impl<T: frame_system::Config> darwinia_account_migration::WeightInfo for WeightI
// Proof Size summary in bytes:
// Measured: `29142`
// Estimated: `32607`
// Minimum execution time: 141_109_000 picoseconds.
Weight::from_parts(145_532_000, 0)
// Minimum execution time: 198_000_000 picoseconds.
Weight::from_parts(203_000_000, 0)
.saturating_add(Weight::from_parts(0, 32607))
.saturating_add(T::DbWeight::get().reads(10))
.saturating_add(T::DbWeight::get().writes(15))
Expand Down Expand Up @@ -123,11 +122,11 @@ impl<T: frame_system::Config> darwinia_account_migration::WeightInfo for WeightI
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `2 + x * (165 ±0) + z * (165 ±0)`
// Minimum execution time: 6_849_000 picoseconds.
Weight::from_parts(21_734_568, 0)
// Minimum execution time: 8_000_000 picoseconds.
Weight::from_parts(29_213_918, 0)
.saturating_add(Weight::from_parts(0, 2))
// Standard Error: 12_379
.saturating_add(Weight::from_parts(7_344, 0).saturating_mul(x.into()))
// Standard Error: 17_131
.saturating_add(Weight::from_parts(1_050, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(Weight::from_parts(0, 165).saturating_mul(x.into()))
Expand All @@ -141,8 +140,8 @@ impl<T: frame_system::Config> darwinia_account_migration::WeightInfo for WeightI
// Proof Size summary in bytes:
// Measured: `3499`
// Estimated: `6964`
// Minimum execution time: 8_392_000 picoseconds.
Weight::from_parts(8_851_000, 0)
// Minimum execution time: 11_000_000 picoseconds.
Weight::from_parts(12_000_000, 0)
.saturating_add(Weight::from_parts(0, 6964))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
Expand Down
Loading

0 comments on commit e0d2012

Please sign in to comment.