Skip to content

Commit

Permalink
Cocos update (#199)
Browse files Browse the repository at this point in the history
* release 1.0.2

* update weights

* make clippy happy
  • Loading branch information
Szegoo authored Jul 18, 2024
1 parent ace91fe commit f7ece78
Show file tree
Hide file tree
Showing 20 changed files with 373 additions and 369 deletions.
12 changes: 7 additions & 5 deletions node/src/chain_spec/exported/cocos-raw.json

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions node/src/chain_spec/exported/cocos.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use crate::{

fn load_spec(id: &str) -> std::result::Result<Box<dyn ChainSpec>, String> {
Ok(match id {
"cocos" => Box::new(chain_spec::cocos::cocos_config(4459)),
"cocos" => Box::new(chain_spec::cocos::cocos_config(4479)),
"cocos-dev" | "dev" | "" => Box::new(chain_spec::cocos::development_config(2000)),
"cocos-local" | "local" => Box::new(chain_spec::cocos::local_testnet_config(2000)),
path =>
Expand Down
12 changes: 6 additions & 6 deletions runtime/cocos/src/weights/cumulus_pallet_parachain_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//! Autogenerated weights for `cumulus_pallet_parachain_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-06-20, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-07-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `cocos-instance-1`, CPU: `Intel(R) Xeon(R) CPU @ 2.80GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("cocos")`, DB CACHE: `1024`
Expand All @@ -38,7 +38,7 @@
// --header
// ./config/HEADER-GPL3
// --template
// ./config/frame-weight-template.hbs
// ./config/runtime-weight-template.hbs
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
Expand Down Expand Up @@ -69,10 +69,10 @@ impl<T: frame_system::Config> cumulus_pallet_parachain_system::WeightInfo for We
// Proof Size summary in bytes:
// Measured: `82`
// Estimated: `3517`
// Minimum execution time: 2_948_000 picoseconds.
Weight::from_parts(3_080_000, 3517)
// Standard Error: 21_336
.saturating_add(Weight::from_parts(200_862_475, 0).saturating_mul(n.into()))
// Minimum execution time: 2_877_000 picoseconds.
Weight::from_parts(1_069_271_403, 3517)
// Standard Error: 216_964
.saturating_add(Weight::from_parts(200_866_754, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
Expand Down
32 changes: 16 additions & 16 deletions runtime/cocos/src/weights/cumulus_pallet_xcmp_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-06-20, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-07-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `cocos-instance-1`, CPU: `Intel(R) Xeon(R) CPU @ 2.80GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("cocos")`, DB CACHE: `1024`
Expand All @@ -38,7 +38,7 @@
// --header
// ./config/HEADER-GPL3
// --template
// ./config/frame-weight-template.hbs
// ./config/runtime-weight-template.hbs
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
Expand All @@ -60,8 +60,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `1561`
// Minimum execution time: 5_633_000 picoseconds.
Weight::from_parts(5_919_000, 1561)
// Minimum execution time: 5_795_000 picoseconds.
Weight::from_parts(6_145_000, 1561)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -79,8 +79,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `82`
// Estimated: `3517`
// Minimum execution time: 15_413_000 picoseconds.
Weight::from_parts(15_950_000, 3517)
// Minimum execution time: 15_417_000 picoseconds.
Weight::from_parts(15_870_000, 3517)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
Expand All @@ -90,8 +90,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `1561`
// Minimum execution time: 3_286_000 picoseconds.
Weight::from_parts(3_433_000, 1561)
// Minimum execution time: 3_222_000 picoseconds.
Weight::from_parts(3_390_000, 1561)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -101,17 +101,17 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `111`
// Estimated: `1596`
// Minimum execution time: 4_174_000 picoseconds.
Weight::from_parts(4_303_000, 1596)
// Minimum execution time: 4_256_000 picoseconds.
Weight::from_parts(4_432_000, 1596)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
fn take_first_concatenated_xcm() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 56_387_000 picoseconds.
Weight::from_parts(56_686_000, 0)
// Minimum execution time: 56_993_000 picoseconds.
Weight::from_parts(57_263_000, 0)
}
/// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
Expand All @@ -131,8 +131,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `65711`
// Estimated: `69176`
// Minimum execution time: 122_603_000 picoseconds.
Weight::from_parts(124_947_000, 69176)
// Minimum execution time: 123_069_000 picoseconds.
Weight::from_parts(125_350_000, 69176)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
Expand All @@ -144,8 +144,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `65710`
// Estimated: `69175`
// Minimum execution time: 61_931_000 picoseconds.
Weight::from_parts(63_672_000, 69175)
// Minimum execution time: 61_875_000 picoseconds.
Weight::from_parts(63_208_000, 69175)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
Expand Down
58 changes: 29 additions & 29 deletions runtime/cocos/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//! Autogenerated weights for `frame_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-06-20, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-07-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `cocos-instance-1`, CPU: `Intel(R) Xeon(R) CPU @ 2.80GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("cocos")`, DB CACHE: `1024`
Expand All @@ -38,7 +38,7 @@
// --header
// ./config/HEADER-GPL3
// --template
// ./config/frame-weight-template.hbs
// ./config/runtime-weight-template.hbs
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
Expand All @@ -59,20 +59,20 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_610_000 picoseconds.
Weight::from_parts(2_729_039, 0)
// Minimum execution time: 2_883_000 picoseconds.
Weight::from_parts(3_069_000, 0)
// Standard Error: 0
.saturating_add(Weight::from_parts(446, 0).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(450, 0).saturating_mul(b.into()))
}
/// The range of component `b` is `[0, 3932160]`.
fn remark_with_event(b: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 7_118_000 picoseconds.
Weight::from_parts(35_311_910, 0)
// Standard Error: 5
.saturating_add(Weight::from_parts(1_586, 0).saturating_mul(b.into()))
// Minimum execution time: 7_320_000 picoseconds.
Weight::from_parts(7_503_000, 0)
// Standard Error: 3
.saturating_add(Weight::from_parts(1_862, 0).saturating_mul(b.into()))
}
/// Storage: `System::Digest` (r:1 w:1)
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Expand All @@ -82,8 +82,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `1485`
// Minimum execution time: 4_421_000 picoseconds.
Weight::from_parts(4_690_000, 1485)
// Minimum execution time: 4_626_000 picoseconds.
Weight::from_parts(5_098_000, 1485)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
Expand All @@ -103,8 +103,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `198`
// Estimated: `1683`
// Minimum execution time: 118_504_815_000 picoseconds.
Weight::from_parts(121_536_526_000, 1683)
// Minimum execution time: 127_666_550_000 picoseconds.
Weight::from_parts(131_367_099_000, 1683)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
Expand All @@ -115,10 +115,10 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_729_000 picoseconds.
Weight::from_parts(2_882_000, 0)
// Standard Error: 2_233
.saturating_add(Weight::from_parts(936_252, 0).saturating_mul(i.into()))
// Minimum execution time: 2_773_000 picoseconds.
Weight::from_parts(2_927_000, 0)
// Standard Error: 2_928
.saturating_add(Weight::from_parts(1_007_733, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
/// Storage: `Skipped::Metadata` (r:0 w:0)
Expand All @@ -128,10 +128,10 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_659_000 picoseconds.
Weight::from_parts(2_754_000, 0)
// Standard Error: 806
.saturating_add(Weight::from_parts(662_094, 0).saturating_mul(i.into()))
// Minimum execution time: 2_851_000 picoseconds.
Weight::from_parts(2_959_000, 0)
// Standard Error: 1_334
.saturating_add(Weight::from_parts(699_852, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
/// Storage: `Skipped::Metadata` (r:0 w:0)
Expand All @@ -141,10 +141,10 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `100 + p * (69 ±0)`
// Estimated: `91 + p * (70 ±0)`
// Minimum execution time: 5_032_000 picoseconds.
Weight::from_parts(5_177_000, 91)
// Standard Error: 1_139
.saturating_add(Weight::from_parts(1_203_759, 0).saturating_mul(p.into()))
// Minimum execution time: 5_492_000 picoseconds.
Weight::from_parts(5_658_000, 91)
// Standard Error: 1_936
.saturating_add(Weight::from_parts(1_320_489, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
Expand All @@ -155,8 +155,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 12_341_000 picoseconds.
Weight::from_parts(13_126_000, 0)
// Minimum execution time: 22_819_000 picoseconds.
Weight::from_parts(24_508_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
Expand All @@ -177,8 +177,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `220`
// Estimated: `1705`
// Minimum execution time: 123_438_899_000 picoseconds.
Weight::from_parts(126_066_128_000, 1705)
// Minimum execution time: 132_479_148_000 picoseconds.
Weight::from_parts(135_722_081_000, 1705)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
Expand Down
40 changes: 20 additions & 20 deletions runtime/cocos/src/weights/pallet_balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//! Autogenerated weights for `pallet_balances`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-06-20, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-07-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `cocos-instance-1`, CPU: `Intel(R) Xeon(R) CPU @ 2.80GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("cocos")`, DB CACHE: `1024`
Expand All @@ -38,7 +38,7 @@
// --header
// ./config/HEADER-GPL3
// --template
// ./config/frame-weight-template.hbs
// ./config/runtime-weight-template.hbs
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
Expand All @@ -60,8 +60,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3593`
// Minimum execution time: 64_772_000 picoseconds.
Weight::from_parts(65_647_000, 3593)
// Minimum execution time: 65_142_000 picoseconds.
Weight::from_parts(65_971_000, 3593)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -71,8 +71,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3593`
// Minimum execution time: 50_605_000 picoseconds.
Weight::from_parts(51_243_000, 3593)
// Minimum execution time: 51_712_000 picoseconds.
Weight::from_parts(52_742_000, 3593)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -82,8 +82,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `140`
// Estimated: `3593`
// Minimum execution time: 18_352_000 picoseconds.
Weight::from_parts(18_762_000, 3593)
// Minimum execution time: 18_499_000 picoseconds.
Weight::from_parts(19_042_000, 3593)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -93,8 +93,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `140`
// Estimated: `3593`
// Minimum execution time: 25_559_000 picoseconds.
Weight::from_parts(26_080_000, 3593)
// Minimum execution time: 25_910_000 picoseconds.
Weight::from_parts(26_844_000, 3593)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -104,8 +104,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `140`
// Estimated: `6196`
// Minimum execution time: 67_228_000 picoseconds.
Weight::from_parts(68_940_000, 6196)
// Minimum execution time: 68_905_000 picoseconds.
Weight::from_parts(70_475_000, 6196)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
Expand All @@ -115,8 +115,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3593`
// Minimum execution time: 63_360_000 picoseconds.
Weight::from_parts(63_775_000, 3593)
// Minimum execution time: 64_472_000 picoseconds.
Weight::from_parts(65_395_000, 3593)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -126,8 +126,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `140`
// Estimated: `3593`
// Minimum execution time: 22_413_000 picoseconds.
Weight::from_parts(22_962_000, 3593)
// Minimum execution time: 22_815_000 picoseconds.
Weight::from_parts(23_301_000, 3593)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -138,10 +138,10 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0 + u * (136 ±0)`
// Estimated: `990 + u * (2603 ±0)`
// Minimum execution time: 21_472_000 picoseconds.
Weight::from_parts(21_977_000, 990)
// Standard Error: 12_965
.saturating_add(Weight::from_parts(18_194_198, 0).saturating_mul(u.into()))
// Minimum execution time: 21_565_000 picoseconds.
Weight::from_parts(21_946_000, 990)
// Standard Error: 13_497
.saturating_add(Weight::from_parts(18_280_739, 0).saturating_mul(u.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
Expand Down
Loading

0 comments on commit f7ece78

Please sign in to comment.