diff --git a/Cargo.lock b/Cargo.lock index 7e463b608a..e693930b78 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -412,7 +412,7 @@ dependencies = [ [[package]] name = "astar-collator" -version = "5.28.0" +version = "5.29.0" dependencies = [ "astar-primitives", "astar-runtime", @@ -543,7 +543,7 @@ dependencies = [ [[package]] name = "astar-runtime" -version = "5.28.0" +version = "5.29.0" dependencies = [ "array-bytes 6.1.0", "astar-primitives", @@ -6032,7 +6032,7 @@ checksum = "09fc20d2ca12cb9f044c93e3bd6d32d523e6e2ec3db4f7b2939cd99026ecd3f0" [[package]] name = "local-runtime" -version = "5.28.0" +version = "5.29.0" dependencies = [ "array-bytes 6.1.0", "astar-primitives", @@ -13188,7 +13188,7 @@ dependencies = [ [[package]] name = "shibuya-runtime" -version = "5.28.0" +version = "5.29.0" dependencies = [ "array-bytes 6.1.0", "astar-primitives", @@ -13230,9 +13230,7 @@ dependencies = [ "pallet-collective", "pallet-contracts", "pallet-contracts-primitives", - "pallet-dapp-staking-migration", "pallet-dapp-staking-v3", - "pallet-dapps-staking", "pallet-democracy", "pallet-dynamic-evm-base-fee", "pallet-ethereum", @@ -13304,7 +13302,7 @@ dependencies = [ [[package]] name = "shiden-runtime" -version = "5.28.0" +version = "5.29.0" dependencies = [ "array-bytes 6.1.0", "astar-primitives", diff --git a/bin/collator/Cargo.toml b/bin/collator/Cargo.toml index e3df85e385..46024a97ca 100644 --- a/bin/collator/Cargo.toml +++ b/bin/collator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "astar-collator" -version = "5.28.0" +version = "5.29.0" description = "Astar collator implementation in Rust." build = "build.rs" default-run = "astar-collator" diff --git a/pallets/dapp-staking-v3/src/weights.rs b/pallets/dapp-staking-v3/src/weights.rs index 8c5c926f3c..624f90020c 100644 --- a/pallets/dapp-staking-v3/src/weights.rs +++ b/pallets/dapp-staking-v3/src/weights.rs @@ -20,7 +20,7 @@ //! Autogenerated weights for pallet_dapp_staking_v3 //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-01-17, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `gh-runner-01-ovh`, CPU: `Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("shibuya-dev"), DB CACHE: 1024 @@ -81,8 +81,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_265_000 picoseconds. - Weight::from_parts(9_422_000, 0) + // Minimum execution time: 8_765_000 picoseconds. + Weight::from_parts(9_104_000, 0) } /// Storage: DappStaking IntegratedDApps (r:1 w:1) /// Proof: DappStaking IntegratedDApps (max_values: Some(65535), max_size: Some(121), added: 2101, mode: MaxEncodedLen) @@ -94,8 +94,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3091` - // Minimum execution time: 17_285_000 picoseconds. - Weight::from_parts(17_628_000, 3091) + // Minimum execution time: 17_156_000 picoseconds. + Weight::from_parts(17_426_000, 3091) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -105,8 +105,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `75` // Estimated: `3091` - // Minimum execution time: 13_521_000 picoseconds. - Weight::from_parts(13_819_000, 3091) + // Minimum execution time: 13_565_000 picoseconds. + Weight::from_parts(13_804_000, 3091) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -116,8 +116,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `75` // Estimated: `3091` - // Minimum execution time: 13_797_000 picoseconds. - Weight::from_parts(14_051_000, 3091) + // Minimum execution time: 13_824_000 picoseconds. + Weight::from_parts(14_132_000, 3091) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -129,8 +129,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `75` // Estimated: `3091` - // Minimum execution time: 17_242_000 picoseconds. - Weight::from_parts(17_628_000, 3091) + // Minimum execution time: 17_255_000 picoseconds. + Weight::from_parts(17_659_000, 3091) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -146,8 +146,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `12` // Estimated: `4764` - // Minimum execution time: 32_138_000 picoseconds. - Weight::from_parts(32_677_000, 4764) + // Minimum execution time: 33_281_000 picoseconds. + Weight::from_parts(33_759_000, 4764) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -163,8 +163,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `156` // Estimated: `4764` - // Minimum execution time: 33_789_000 picoseconds. - Weight::from_parts(34_052_000, 4764) + // Minimum execution time: 34_451_000 picoseconds. + Weight::from_parts(34_926_000, 4764) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -181,10 +181,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `187` // Estimated: `4764` - // Minimum execution time: 35_048_000 picoseconds. - Weight::from_parts(36_286_241, 4764) - // Standard Error: 6_246 - .saturating_add(Weight::from_parts(176_805, 0).saturating_mul(x.into())) + // Minimum execution time: 37_641_000 picoseconds. + Weight::from_parts(38_890_045, 4764) + // Standard Error: 7_639 + .saturating_add(Weight::from_parts(183_994, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -200,8 +200,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `182` // Estimated: `4764` - // Minimum execution time: 30_390_000 picoseconds. - Weight::from_parts(30_712_000, 4764) + // Minimum execution time: 33_528_000 picoseconds. + Weight::from_parts(33_929_000, 4764) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -223,8 +223,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `250` // Estimated: `4764` - // Minimum execution time: 44_866_000 picoseconds. - Weight::from_parts(45_342_000, 4764) + // Minimum execution time: 45_984_000 picoseconds. + Weight::from_parts(46_329_000, 4764) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -246,8 +246,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `427` // Estimated: `4764` - // Minimum execution time: 48_475_000 picoseconds. - Weight::from_parts(49_000_000, 4764) + // Minimum execution time: 48_584_000 picoseconds. + Weight::from_parts(49_635_000, 4764) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -266,10 +266,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `560` // Estimated: `4764` - // Minimum execution time: 51_987_000 picoseconds. - Weight::from_parts(49_569_909, 4764) - // Standard Error: 5_547 - .saturating_add(Weight::from_parts(3_433_220, 0).saturating_mul(x.into())) + // Minimum execution time: 51_711_000 picoseconds. + Weight::from_parts(50_255_137, 4764) + // Standard Error: 5_418 + .saturating_add(Weight::from_parts(3_166_243, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -286,10 +286,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `501` // Estimated: `4764` - // Minimum execution time: 48_592_000 picoseconds. - Weight::from_parts(46_136_422, 4764) - // Standard Error: 4_476 - .saturating_add(Weight::from_parts(3_444_512, 0).saturating_mul(x.into())) + // Minimum execution time: 48_656_000 picoseconds. + Weight::from_parts(46_590_994, 4764) + // Standard Error: 4_829 + .saturating_add(Weight::from_parts(3_197_956, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -303,8 +303,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `267` // Estimated: `3775` - // Minimum execution time: 38_973_000 picoseconds. - Weight::from_parts(39_533_000, 3775) + // Minimum execution time: 41_921_000 picoseconds. + Weight::from_parts(42_440_000, 3775) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -316,8 +316,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2585` // Estimated: `5048` - // Minimum execution time: 54_909_000 picoseconds. - Weight::from_parts(55_839_000, 5048) + // Minimum execution time: 58_409_000 picoseconds. + Weight::from_parts(60_103_000, 5048) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -337,8 +337,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `389` // Estimated: `4764` - // Minimum execution time: 42_755_000 picoseconds. - Weight::from_parts(43_230_000, 4764) + // Minimum execution time: 43_579_000 picoseconds. + Weight::from_parts(44_128_000, 4764) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -355,10 +355,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `255 + x * (69 ±0)` // Estimated: `4764 + x * (2613 ±0)` - // Minimum execution time: 39_922_000 picoseconds. - Weight::from_parts(36_255_858, 4764) - // Standard Error: 14_366 - .saturating_add(Weight::from_parts(5_135_083, 0).saturating_mul(x.into())) + // Minimum execution time: 43_019_000 picoseconds. + Weight::from_parts(39_628_074, 4764) + // Standard Error: 15_327 + .saturating_add(Weight::from_parts(4_990_892, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(T::DbWeight::get().writes(2_u64)) @@ -369,8 +369,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_519_000 picoseconds. - Weight::from_parts(11_865_000, 0) + // Minimum execution time: 11_301_000 picoseconds. + Weight::from_parts(11_607_000, 0) } /// Storage: DappStaking CurrentEraInfo (r:1 w:1) /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) @@ -380,8 +380,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `16` // Estimated: `4254` - // Minimum execution time: 17_823_000 picoseconds. - Weight::from_parts(18_413_000, 4254) + // Minimum execution time: 17_997_000 picoseconds. + Weight::from_parts(18_491_000, 4254) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -391,20 +391,22 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking StaticTierParams (max_values: Some(1), max_size: Some(167), added: 662, mode: MaxEncodedLen) /// Storage: DappStaking TierConfig (r:1 w:1) /// Proof: DappStaking TierConfig (max_values: Some(1), max_size: Some(161), added: 656, mode: MaxEncodedLen) + /// Storage: DappStaking PeriodEnd (r:1 w:2) + /// Proof: DappStaking PeriodEnd (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: DappStaking HistoryCleanupMarker (r:1 w:1) + /// Proof: DappStaking HistoryCleanupMarker (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) /// Storage: DappStaking EraRewards (r:1 w:1) /// Proof: DappStaking EraRewards (max_values: None, max_size: Some(789), added: 3264, mode: MaxEncodedLen) - /// Storage: DappStaking PeriodEnd (r:0 w:1) - /// Proof: DappStaking PeriodEnd (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) /// Storage: DappStaking DAppTiers (r:0 w:1) /// Proof: DappStaking DAppTiers (max_values: None, max_size: Some(1583), added: 4058, mode: MaxEncodedLen) fn on_initialize_build_and_earn_to_voting() -> Weight { // Proof Size summary in bytes: - // Measured: `550` + // Measured: `627` // Estimated: `4254` - // Minimum execution time: 41_147_000 picoseconds. - Weight::from_parts(42_304_000, 4254) - .saturating_add(T::DbWeight::get().reads(4_u64)) - .saturating_add(T::DbWeight::get().writes(5_u64)) + // Minimum execution time: 45_396_000 picoseconds. + Weight::from_parts(46_230_000, 4254) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(7_u64)) } /// Storage: DappStaking CurrentEraInfo (r:1 w:1) /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) @@ -416,8 +418,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `68` // Estimated: `4254` - // Minimum execution time: 23_807_000 picoseconds. - Weight::from_parts(24_367_000, 4254) + // Minimum execution time: 24_161_000 picoseconds. + Weight::from_parts(24_565_000, 4254) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -430,30 +432,28 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `152 + x * (32 ±0)` // Estimated: `3061 + x * (2071 ±0)` - // Minimum execution time: 7_821_000 picoseconds. - Weight::from_parts(12_000_144, 3061) - // Standard Error: 3_553 - .saturating_add(Weight::from_parts(2_396_421, 0).saturating_mul(x.into())) + // Minimum execution time: 7_878_000 picoseconds. + Weight::from_parts(12_213_692, 3061) + // Standard Error: 3_051 + .saturating_add(Weight::from_parts(2_363_936, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(Weight::from_parts(0, 2071).saturating_mul(x.into())) } /// Storage: DappStaking HistoryCleanupMarker (r:1 w:1) - /// Proof: DappStaking HistoryCleanupMarker (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - /// Storage: DappStaking PeriodEnd (r:1 w:1) - /// Proof: DappStaking PeriodEnd (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Proof: DappStaking HistoryCleanupMarker (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) /// Storage: DappStaking EraRewards (r:1 w:1) /// Proof: DappStaking EraRewards (max_values: None, max_size: Some(789), added: 3264, mode: MaxEncodedLen) /// Storage: DappStaking DAppTiers (r:0 w:1) /// Proof: DappStaking DAppTiers (max_values: None, max_size: Some(1583), added: 4058, mode: MaxEncodedLen) fn on_idle_cleanup() -> Weight { // Proof Size summary in bytes: - // Measured: `473` + // Measured: `293` // Estimated: `4254` - // Minimum execution time: 17_154_000 picoseconds. - Weight::from_parts(17_535_000, 4254) - .saturating_add(T::DbWeight::get().reads(3_u64)) - .saturating_add(T::DbWeight::get().writes(4_u64)) + // Minimum execution time: 8_839_000 picoseconds. + Weight::from_parts(8_975_000, 4254) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) } } @@ -463,8 +463,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_265_000 picoseconds. - Weight::from_parts(9_422_000, 0) + // Minimum execution time: 8_765_000 picoseconds. + Weight::from_parts(9_104_000, 0) } /// Storage: DappStaking IntegratedDApps (r:1 w:1) /// Proof: DappStaking IntegratedDApps (max_values: Some(65535), max_size: Some(121), added: 2101, mode: MaxEncodedLen) @@ -476,8 +476,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3091` - // Minimum execution time: 17_285_000 picoseconds. - Weight::from_parts(17_628_000, 3091) + // Minimum execution time: 17_156_000 picoseconds. + Weight::from_parts(17_426_000, 3091) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -487,8 +487,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `75` // Estimated: `3091` - // Minimum execution time: 13_521_000 picoseconds. - Weight::from_parts(13_819_000, 3091) + // Minimum execution time: 13_565_000 picoseconds. + Weight::from_parts(13_804_000, 3091) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -498,8 +498,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `75` // Estimated: `3091` - // Minimum execution time: 13_797_000 picoseconds. - Weight::from_parts(14_051_000, 3091) + // Minimum execution time: 13_824_000 picoseconds. + Weight::from_parts(14_132_000, 3091) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -511,8 +511,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `75` // Estimated: `3091` - // Minimum execution time: 17_242_000 picoseconds. - Weight::from_parts(17_628_000, 3091) + // Minimum execution time: 17_255_000 picoseconds. + Weight::from_parts(17_659_000, 3091) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -528,8 +528,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `12` // Estimated: `4764` - // Minimum execution time: 32_138_000 picoseconds. - Weight::from_parts(32_677_000, 4764) + // Minimum execution time: 33_281_000 picoseconds. + Weight::from_parts(33_759_000, 4764) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -545,8 +545,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `156` // Estimated: `4764` - // Minimum execution time: 33_789_000 picoseconds. - Weight::from_parts(34_052_000, 4764) + // Minimum execution time: 34_451_000 picoseconds. + Weight::from_parts(34_926_000, 4764) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -563,10 +563,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `187` // Estimated: `4764` - // Minimum execution time: 35_048_000 picoseconds. - Weight::from_parts(36_286_241, 4764) - // Standard Error: 6_246 - .saturating_add(Weight::from_parts(176_805, 0).saturating_mul(x.into())) + // Minimum execution time: 37_641_000 picoseconds. + Weight::from_parts(38_890_045, 4764) + // Standard Error: 7_639 + .saturating_add(Weight::from_parts(183_994, 0).saturating_mul(x.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -582,8 +582,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `182` // Estimated: `4764` - // Minimum execution time: 30_390_000 picoseconds. - Weight::from_parts(30_712_000, 4764) + // Minimum execution time: 33_528_000 picoseconds. + Weight::from_parts(33_929_000, 4764) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -605,8 +605,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `250` // Estimated: `4764` - // Minimum execution time: 44_866_000 picoseconds. - Weight::from_parts(45_342_000, 4764) + // Minimum execution time: 45_984_000 picoseconds. + Weight::from_parts(46_329_000, 4764) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -628,8 +628,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `427` // Estimated: `4764` - // Minimum execution time: 48_475_000 picoseconds. - Weight::from_parts(49_000_000, 4764) + // Minimum execution time: 48_584_000 picoseconds. + Weight::from_parts(49_635_000, 4764) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -648,10 +648,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `560` // Estimated: `4764` - // Minimum execution time: 51_987_000 picoseconds. - Weight::from_parts(49_569_909, 4764) - // Standard Error: 5_547 - .saturating_add(Weight::from_parts(3_433_220, 0).saturating_mul(x.into())) + // Minimum execution time: 51_711_000 picoseconds. + Weight::from_parts(50_255_137, 4764) + // Standard Error: 5_418 + .saturating_add(Weight::from_parts(3_166_243, 0).saturating_mul(x.into())) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -668,10 +668,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `501` // Estimated: `4764` - // Minimum execution time: 48_592_000 picoseconds. - Weight::from_parts(46_136_422, 4764) - // Standard Error: 4_476 - .saturating_add(Weight::from_parts(3_444_512, 0).saturating_mul(x.into())) + // Minimum execution time: 48_656_000 picoseconds. + Weight::from_parts(46_590_994, 4764) + // Standard Error: 4_829 + .saturating_add(Weight::from_parts(3_197_956, 0).saturating_mul(x.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -685,8 +685,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `267` // Estimated: `3775` - // Minimum execution time: 38_973_000 picoseconds. - Weight::from_parts(39_533_000, 3775) + // Minimum execution time: 41_921_000 picoseconds. + Weight::from_parts(42_440_000, 3775) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -698,8 +698,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2585` // Estimated: `5048` - // Minimum execution time: 54_909_000 picoseconds. - Weight::from_parts(55_839_000, 5048) + // Minimum execution time: 58_409_000 picoseconds. + Weight::from_parts(60_103_000, 5048) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -719,8 +719,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `389` // Estimated: `4764` - // Minimum execution time: 42_755_000 picoseconds. - Weight::from_parts(43_230_000, 4764) + // Minimum execution time: 43_579_000 picoseconds. + Weight::from_parts(44_128_000, 4764) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -737,10 +737,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `255 + x * (69 ±0)` // Estimated: `4764 + x * (2613 ±0)` - // Minimum execution time: 39_922_000 picoseconds. - Weight::from_parts(36_255_858, 4764) - // Standard Error: 14_366 - .saturating_add(Weight::from_parts(5_135_083, 0).saturating_mul(x.into())) + // Minimum execution time: 43_019_000 picoseconds. + Weight::from_parts(39_628_074, 4764) + // Standard Error: 15_327 + .saturating_add(Weight::from_parts(4_990_892, 0).saturating_mul(x.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(RocksDbWeight::get().writes(2_u64)) @@ -751,8 +751,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_519_000 picoseconds. - Weight::from_parts(11_865_000, 0) + // Minimum execution time: 11_301_000 picoseconds. + Weight::from_parts(11_607_000, 0) } /// Storage: DappStaking CurrentEraInfo (r:1 w:1) /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) @@ -762,8 +762,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `16` // Estimated: `4254` - // Minimum execution time: 17_823_000 picoseconds. - Weight::from_parts(18_413_000, 4254) + // Minimum execution time: 17_997_000 picoseconds. + Weight::from_parts(18_491_000, 4254) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -773,20 +773,22 @@ impl WeightInfo for () { /// Proof: DappStaking StaticTierParams (max_values: Some(1), max_size: Some(167), added: 662, mode: MaxEncodedLen) /// Storage: DappStaking TierConfig (r:1 w:1) /// Proof: DappStaking TierConfig (max_values: Some(1), max_size: Some(161), added: 656, mode: MaxEncodedLen) + /// Storage: DappStaking PeriodEnd (r:1 w:2) + /// Proof: DappStaking PeriodEnd (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: DappStaking HistoryCleanupMarker (r:1 w:1) + /// Proof: DappStaking HistoryCleanupMarker (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) /// Storage: DappStaking EraRewards (r:1 w:1) /// Proof: DappStaking EraRewards (max_values: None, max_size: Some(789), added: 3264, mode: MaxEncodedLen) - /// Storage: DappStaking PeriodEnd (r:0 w:1) - /// Proof: DappStaking PeriodEnd (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) /// Storage: DappStaking DAppTiers (r:0 w:1) /// Proof: DappStaking DAppTiers (max_values: None, max_size: Some(1583), added: 4058, mode: MaxEncodedLen) fn on_initialize_build_and_earn_to_voting() -> Weight { // Proof Size summary in bytes: - // Measured: `550` + // Measured: `627` // Estimated: `4254` - // Minimum execution time: 41_147_000 picoseconds. - Weight::from_parts(42_304_000, 4254) - .saturating_add(RocksDbWeight::get().reads(4_u64)) - .saturating_add(RocksDbWeight::get().writes(5_u64)) + // Minimum execution time: 45_396_000 picoseconds. + Weight::from_parts(46_230_000, 4254) + .saturating_add(RocksDbWeight::get().reads(6_u64)) + .saturating_add(RocksDbWeight::get().writes(7_u64)) } /// Storage: DappStaking CurrentEraInfo (r:1 w:1) /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) @@ -798,8 +800,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `68` // Estimated: `4254` - // Minimum execution time: 23_807_000 picoseconds. - Weight::from_parts(24_367_000, 4254) + // Minimum execution time: 24_161_000 picoseconds. + Weight::from_parts(24_565_000, 4254) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -812,29 +814,27 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `152 + x * (32 ±0)` // Estimated: `3061 + x * (2071 ±0)` - // Minimum execution time: 7_821_000 picoseconds. - Weight::from_parts(12_000_144, 3061) - // Standard Error: 3_553 - .saturating_add(Weight::from_parts(2_396_421, 0).saturating_mul(x.into())) + // Minimum execution time: 7_878_000 picoseconds. + Weight::from_parts(12_213_692, 3061) + // Standard Error: 3_051 + .saturating_add(Weight::from_parts(2_363_936, 0).saturating_mul(x.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(Weight::from_parts(0, 2071).saturating_mul(x.into())) } /// Storage: DappStaking HistoryCleanupMarker (r:1 w:1) - /// Proof: DappStaking HistoryCleanupMarker (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - /// Storage: DappStaking PeriodEnd (r:1 w:1) - /// Proof: DappStaking PeriodEnd (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Proof: DappStaking HistoryCleanupMarker (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) /// Storage: DappStaking EraRewards (r:1 w:1) /// Proof: DappStaking EraRewards (max_values: None, max_size: Some(789), added: 3264, mode: MaxEncodedLen) /// Storage: DappStaking DAppTiers (r:0 w:1) /// Proof: DappStaking DAppTiers (max_values: None, max_size: Some(1583), added: 4058, mode: MaxEncodedLen) fn on_idle_cleanup() -> Weight { // Proof Size summary in bytes: - // Measured: `473` + // Measured: `293` // Estimated: `4254` - // Minimum execution time: 17_154_000 picoseconds. - Weight::from_parts(17_535_000, 4254) - .saturating_add(RocksDbWeight::get().reads(3_u64)) - .saturating_add(RocksDbWeight::get().writes(4_u64)) + // Minimum execution time: 8_839_000 picoseconds. + Weight::from_parts(8_975_000, 4254) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) } } diff --git a/runtime/astar/Cargo.toml b/runtime/astar/Cargo.toml index 141760afde..edc91edf72 100644 --- a/runtime/astar/Cargo.toml +++ b/runtime/astar/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "astar-runtime" -version = "5.28.0" +version = "5.29.0" build = "build.rs" authors.workspace = true edition.workspace = true diff --git a/runtime/astar/src/lib.rs b/runtime/astar/src/lib.rs index 25c401c0f8..3dedf85630 100644 --- a/runtime/astar/src/lib.rs +++ b/runtime/astar/src/lib.rs @@ -138,7 +138,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("astar"), impl_name: create_runtime_str!("astar"), authoring_version: 1, - spec_version: 75, + spec_version: 76, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 2, diff --git a/runtime/local/Cargo.toml b/runtime/local/Cargo.toml index 14967b8a6c..9199907389 100644 --- a/runtime/local/Cargo.toml +++ b/runtime/local/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "local-runtime" -version = "5.28.0" +version = "5.29.0" build = "build.rs" authors.workspace = true edition.workspace = true diff --git a/runtime/shibuya/Cargo.toml b/runtime/shibuya/Cargo.toml index 1996fab9fa..4eafb194fa 100644 --- a/runtime/shibuya/Cargo.toml +++ b/runtime/shibuya/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shibuya-runtime" -version = "5.28.0" +version = "5.29.0" build = "build.rs" authors.workspace = true edition.workspace = true @@ -101,9 +101,7 @@ astar-xcm-benchmarks = { workspace = true, optional = true } pallet-chain-extension-unified-accounts = { workspace = true } pallet-chain-extension-xvm = { workspace = true } pallet-collator-selection = { workspace = true } -pallet-dapp-staking-migration = { workspace = true } pallet-dapp-staking-v3 = { workspace = true } -pallet-dapps-staking = { workspace = true } pallet-dynamic-evm-base-fee = { workspace = true } pallet-ethereum-checked = { workspace = true } pallet-evm-precompile-assets-erc20 = { workspace = true } @@ -193,9 +191,7 @@ std = [ "pallet-evm-precompile-xcm/std", "pallet-evm-precompile-xvm/std", "pallet-evm-precompile-unified-accounts/std", - "pallet-dapps-staking/std", "pallet-dapp-staking-v3/std", - "pallet-dapp-staking-migration/std", "dapp-staking-v3-runtime-api/std", "pallet-inflation/std", "pallet-static-price-provider/std", @@ -256,9 +252,7 @@ runtime-benchmarks = [ "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "pallet-dapps-staking/runtime-benchmarks", "pallet-dapp-staking-v3/runtime-benchmarks", - "pallet-dapp-staking-migration/runtime-benchmarks", "pallet-inflation/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", @@ -286,9 +280,7 @@ try-runtime = [ "frame-system/try-runtime", "pallet-aura/try-runtime", "pallet-balances/try-runtime", - "pallet-dapps-staking/try-runtime", "pallet-dapp-staking-v3/try-runtime", - "pallet-dapp-staking-migration/try-runtime", "pallet-inflation/try-runtime", "pallet-static-price-provider/try-runtime", "pallet-sudo/try-runtime", diff --git a/runtime/shibuya/src/lib.rs b/runtime/shibuya/src/lib.rs index ef88bce2a0..c6e969308b 100644 --- a/runtime/shibuya/src/lib.rs +++ b/runtime/shibuya/src/lib.rs @@ -171,7 +171,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("shibuya"), impl_name: create_runtime_str!("shibuya"), authoring_version: 1, - spec_version: 118, + spec_version: 119, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 2, @@ -380,39 +380,6 @@ impl pallet_preimage::Config for Runtime { type ByteDeposit = PreimageByteDeposit; } -parameter_types! { - pub const BlockPerEra: BlockNumber = 4 * HOURS; - pub const RegisterDeposit: Balance = 100 * SBY; - pub const MaxNumberOfStakersPerContract: u32 = 2048; - pub const MinimumStakingAmount: Balance = 5 * SBY; - pub const MinimumRemainingAmount: Balance = SBY; - pub const MaxEraStakeValues: u32 = 5; - pub const MaxUnlockingChunks: u32 = 32; - pub const UnbondingPeriod: u32 = 2; -} - -impl pallet_dapps_staking::Config for Runtime { - type Currency = Balances; - type BlockPerEra = BlockPerEra; - type SmartContract = SmartContract; - type RegisterDeposit = RegisterDeposit; - type RuntimeEvent = RuntimeEvent; - type WeightInfo = pallet_dapps_staking::weights::SubstrateWeight; - type MaxNumberOfStakersPerContract = MaxNumberOfStakersPerContract; - type MinimumStakingAmount = MinimumStakingAmount; - type PalletId = DappsStakingPalletId; - type MaxUnlockingChunks = MaxUnlockingChunks; - type UnbondingPeriod = UnbondingPeriod; - type MinimumRemainingAmount = MinimumRemainingAmount; - type MaxEraStakeValues = MaxEraStakeValues; - type UnregisteredDappRewardRetention = ConstU32<10>; - // Needed so benchmark can use the pallets extrinsics - #[cfg(feature = "runtime-benchmarks")] - type ForcePalletDisabled = ConstBool; - #[cfg(not(feature = "runtime-benchmarks"))] - type ForcePalletDisabled = ConstBool; -} - impl pallet_static_price_provider::Config for Runtime { type RuntimeEvent = RuntimeEvent; } @@ -438,6 +405,10 @@ impl pallet_dapp_staking_v3::BenchmarkHelper, AccountId } } +parameter_types! { + pub const MinimumStakingAmount: Balance = 5 * SBY; +} + impl pallet_dapp_staking_v3::Config for Runtime { type RuntimeEvent = RuntimeEvent; type RuntimeFreezeReason = RuntimeFreezeReason; @@ -452,7 +423,7 @@ impl pallet_dapp_staking_v3::Config for Runtime { type RewardRetentionInPeriods = ConstU32<2>; // Low enough value so we can get some expired rewards during testing type MaxNumberOfContracts = ConstU32<500>; type MaxUnlockingChunks = ConstU32<8>; - type MinimumLockedAmount = MinimumStakingAmount; // Keep the same as the old pallet + type MinimumLockedAmount = MinimumStakingAmount; type UnlockingPeriod = ConstU32<4>; // Keep it low so it's easier to test type MaxNumberOfStakedContracts = ConstU32<8>; type MinimumStakeAmount = MinimumStakingAmount; @@ -500,11 +471,6 @@ impl pallet_inflation::Config for Runtime { type WeightInfo = pallet_inflation::weights::SubstrateWeight; } -impl pallet_dapp_staking_migration::Config for Runtime { - type RuntimeEvent = RuntimeEvent; - type WeightInfo = pallet_dapp_staking_migration::weights::SubstrateWeight; -} - impl pallet_utility::Config for Runtime { type RuntimeEvent = RuntimeEvent; type RuntimeCall = RuntimeCall; @@ -1114,7 +1080,7 @@ pub enum ProxyType { Balances, /// All Runtime calls from Pallet Assets allowed for proxy account Assets, - /// Only Runtime Calls related to goverance for proxy account + /// Only Runtime Calls related to governance for proxy account /// To know exact calls check InstanceFilter implementation for ProxyTypes Governance, /// Only provide_judgement call from pallet identity allowed for proxy account @@ -1334,10 +1300,6 @@ construct_runtime!( // To be removed & cleaned up once proper oracle is implemented StaticPriceProvider: pallet_static_price_provider = 253, - // To be removed & cleaned up after migration has been finished - DappStakingMigration: pallet_dapp_staking_migration = 254, - // Legacy dApps staking v2, to be removed after migration has been finished - DappsStaking: pallet_dapps_staking = 255, } ); @@ -1384,11 +1346,25 @@ impl Get for InitActivePriceGet { FixedU64::from_rational(1, 10) } } + +parameter_types! { + pub const DappsStakingV2Name: &'static str = "DappsStaking"; + pub const DappStakingMigrationName: &'static str = "DappStakingMigration"; +} + pub type Migrations = ( pallet_static_price_provider::InitActivePrice, pallet_dapp_staking_v3::migrations::DappStakingV3TierRewardAsTree, pallet_dapp_staking_v3::migrations::DappStakingV3HistoryCleanupMarkerReset, pallet_inflation::PalletInflationShibuyaMigration, + frame_support::migrations::RemovePallet< + DappsStakingV2Name, + ::DbWeight, + >, + frame_support::migrations::RemovePallet< + DappStakingMigrationName, + ::DbWeight, + >, ); pub struct NextEraProvider; @@ -1514,10 +1490,8 @@ mod benches { [pallet_assets, Assets] [pallet_balances, Balances] [pallet_timestamp, Timestamp] - [pallet_dapps_staking, DappsStaking] [pallet_dapp_staking_v3, DappStaking] [pallet_inflation, Inflation] - [pallet_dapp_staking_migration, DappStakingMigration] [pallet_xc_asset_config, XcAssetConfig] [pallet_collator_selection, CollatorSelection] [pallet_xcm, PolkadotXcm] diff --git a/runtime/shibuya/src/weights/mod.rs b/runtime/shibuya/src/weights/mod.rs index 11722c07a3..e364758f8b 100644 --- a/runtime/shibuya/src/weights/mod.rs +++ b/runtime/shibuya/src/weights/mod.rs @@ -18,7 +18,6 @@ pub mod pallet_assets; pub mod pallet_balances; -pub mod pallet_dapp_staking_migration; pub mod pallet_dapp_staking_v3; pub mod pallet_inflation; pub mod pallet_xcm; diff --git a/runtime/shibuya/src/weights/pallet_dapp_staking_migration.rs b/runtime/shibuya/src/weights/pallet_dapp_staking_migration.rs deleted file mode 100644 index ca4493a333..0000000000 --- a/runtime/shibuya/src/weights/pallet_dapp_staking_migration.rs +++ /dev/null @@ -1,138 +0,0 @@ - -// This file is part of Astar. - -// Copyright (C) 2019-2023 Stake Technologies Pte.Ltd. -// SPDX-License-Identifier: GPL-3.0-or-later - -// Astar is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// Astar is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with Astar. If not, see . - -//! Autogenerated weights for pallet_dapp_staking_migration -//! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-12-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `devserver-01`, CPU: `Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("shibuya-dev"), DB CACHE: 1024 - -// Executed Command: -// ./target/release/astar-collator -// benchmark -// pallet -// --chain=shibuya-dev -// --steps=50 -// --repeat=20 -// --pallet=pallet_dapp_staking_migration -// --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --output=./benchmark-results/shibuya-dev/dapp_staking_migration_weights.rs -// --template=./scripts/templates/weight-template.hbs - - -#![cfg_attr(rustfmt, rustfmt_skip)] -#![allow(unused_parens)] -#![allow(unused_imports)] - -use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; -use core::marker::PhantomData; -use pallet_dapp_staking_migration::WeightInfo; - -/// Weights for pallet_dapp_staking_migration using the Substrate node and recommended hardware. -pub struct SubstrateWeight(PhantomData); -impl WeightInfo for SubstrateWeight { - /// Storage: DappsStaking RegisteredDapps (r:2 w:1) - /// Proof: DappsStaking RegisteredDapps (max_values: None, max_size: Some(86), added: 2561, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: DappStaking IntegratedDApps (r:1 w:1) - /// Proof: DappStaking IntegratedDApps (max_values: Some(65535), max_size: Some(121), added: 2101, mode: MaxEncodedLen) - /// Storage: DappStaking CounterForIntegratedDApps (r:1 w:1) - /// Proof: DappStaking CounterForIntegratedDApps (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: DappStaking NextDAppId (r:1 w:1) - /// Proof: DappStaking NextDAppId (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) - fn migrate_dapps_success() -> Weight { - // Proof Size summary in bytes: - // Measured: `558` - // Estimated: `6112` - // Minimum execution time: 46_832_000 picoseconds. - Weight::from_parts(47_613_000, 6112) - .saturating_add(T::DbWeight::get().reads(6_u64)) - .saturating_add(T::DbWeight::get().writes(5_u64)) - } - /// Storage: DappsStaking RegisteredDapps (r:1 w:0) - /// Proof: DappsStaking RegisteredDapps (max_values: None, max_size: Some(86), added: 2561, mode: MaxEncodedLen) - fn migrate_dapps_noop() -> Weight { - // Proof Size summary in bytes: - // Measured: `0` - // Estimated: `3551` - // Minimum execution time: 6_296_000 picoseconds. - Weight::from_parts(6_626_000, 3551) - .saturating_add(T::DbWeight::get().reads(1_u64)) - } - /// Storage: DappsStaking Ledger (r:2 w:1) - /// Proof: DappsStaking Ledger (max_values: None, max_size: Some(266), added: 2741, 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:1) - /// Proof: Balances Freezes (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: DappStaking Ledger (r:1 w:1) - /// Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) - /// Storage: DappStaking CurrentEraInfo (r:1 w:1) - /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) - fn migrate_ledger_success() -> Weight { - // Proof Size summary in bytes: - // Measured: `1748` - // Estimated: `6472` - // Minimum execution time: 70_686_000 picoseconds. - Weight::from_parts(71_976_000, 6472) - .saturating_add(T::DbWeight::get().reads(7_u64)) - .saturating_add(T::DbWeight::get().writes(6_u64)) - } - /// Storage: DappsStaking Ledger (r:1 w:0) - /// Proof: DappsStaking Ledger (max_values: None, max_size: Some(266), added: 2741, mode: MaxEncodedLen) - fn migrate_ledger_noop() -> Weight { - // Proof Size summary in bytes: - // Measured: `0` - // Estimated: `3731` - // Minimum execution time: 2_801_000 picoseconds. - Weight::from_parts(3_072_000, 3731) - .saturating_add(T::DbWeight::get().reads(1_u64)) - } - /// Storage: DappsStaking Ledger (r:6 w:5) - /// Proof: DappsStaking Ledger (max_values: None, max_size: Some(266), added: 2741, mode: MaxEncodedLen) - /// The range of component `x` is `[1, 5]`. - fn cleanup_old_storage_success(x: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `699 + x * (39 ±0)` - // Estimated: `3731 + x * (2741 ±0)` - // Minimum execution time: 7_303_000 picoseconds. - Weight::from_parts(6_916_878, 3731) - // Standard Error: 7_249 - .saturating_add(Weight::from_parts(675_810, 0).saturating_mul(x.into())) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) - .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into()))) - .saturating_add(Weight::from_parts(0, 2741).saturating_mul(x.into())) - } - fn cleanup_old_storage_noop() -> Weight { - // Proof Size summary in bytes: - // Measured: `0` - // Estimated: `0` - // Minimum execution time: 2_094_000 picoseconds. - Weight::from_parts(2_182_000, 0) - } -} \ No newline at end of file diff --git a/runtime/shibuya/src/weights/pallet_dapp_staking_v3.rs b/runtime/shibuya/src/weights/pallet_dapp_staking_v3.rs index a922b3e6ca..88fdf31674 100644 --- a/runtime/shibuya/src/weights/pallet_dapp_staking_v3.rs +++ b/runtime/shibuya/src/weights/pallet_dapp_staking_v3.rs @@ -55,8 +55,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_265_000 picoseconds. - Weight::from_parts(9_422_000, 0) + // Minimum execution time: 8_765_000 picoseconds. + Weight::from_parts(9_104_000, 0) } /// Storage: DappStaking IntegratedDApps (r:1 w:1) /// Proof: DappStaking IntegratedDApps (max_values: Some(65535), max_size: Some(121), added: 2101, mode: MaxEncodedLen) @@ -68,8 +68,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3091` - // Minimum execution time: 17_285_000 picoseconds. - Weight::from_parts(17_628_000, 3091) + // Minimum execution time: 17_156_000 picoseconds. + Weight::from_parts(17_426_000, 3091) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -79,8 +79,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `75` // Estimated: `3091` - // Minimum execution time: 13_521_000 picoseconds. - Weight::from_parts(13_819_000, 3091) + // Minimum execution time: 13_565_000 picoseconds. + Weight::from_parts(13_804_000, 3091) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -90,8 +90,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `75` // Estimated: `3091` - // Minimum execution time: 13_797_000 picoseconds. - Weight::from_parts(14_051_000, 3091) + // Minimum execution time: 13_824_000 picoseconds. + Weight::from_parts(14_132_000, 3091) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -103,8 +103,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `75` // Estimated: `3091` - // Minimum execution time: 17_242_000 picoseconds. - Weight::from_parts(17_628_000, 3091) + // Minimum execution time: 17_255_000 picoseconds. + Weight::from_parts(17_659_000, 3091) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -120,8 +120,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `12` // Estimated: `4764` - // Minimum execution time: 32_138_000 picoseconds. - Weight::from_parts(32_677_000, 4764) + // Minimum execution time: 33_281_000 picoseconds. + Weight::from_parts(33_759_000, 4764) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -137,8 +137,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `156` // Estimated: `4764` - // Minimum execution time: 33_789_000 picoseconds. - Weight::from_parts(34_052_000, 4764) + // Minimum execution time: 34_451_000 picoseconds. + Weight::from_parts(34_926_000, 4764) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -155,10 +155,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `187` // Estimated: `4764` - // Minimum execution time: 35_048_000 picoseconds. - Weight::from_parts(36_286_241, 4764) - // Standard Error: 6_246 - .saturating_add(Weight::from_parts(176_805, 0).saturating_mul(x.into())) + // Minimum execution time: 37_641_000 picoseconds. + Weight::from_parts(38_890_045, 4764) + // Standard Error: 7_639 + .saturating_add(Weight::from_parts(183_994, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -174,8 +174,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `182` // Estimated: `4764` - // Minimum execution time: 30_390_000 picoseconds. - Weight::from_parts(30_712_000, 4764) + // Minimum execution time: 33_528_000 picoseconds. + Weight::from_parts(33_929_000, 4764) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -197,8 +197,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `250` // Estimated: `4764` - // Minimum execution time: 44_866_000 picoseconds. - Weight::from_parts(45_342_000, 4764) + // Minimum execution time: 45_984_000 picoseconds. + Weight::from_parts(46_329_000, 4764) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -220,8 +220,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `427` // Estimated: `4764` - // Minimum execution time: 48_475_000 picoseconds. - Weight::from_parts(49_000_000, 4764) + // Minimum execution time: 48_584_000 picoseconds. + Weight::from_parts(49_635_000, 4764) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -240,10 +240,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `560` // Estimated: `4764` - // Minimum execution time: 51_987_000 picoseconds. - Weight::from_parts(49_569_909, 4764) - // Standard Error: 5_547 - .saturating_add(Weight::from_parts(3_433_220, 0).saturating_mul(x.into())) + // Minimum execution time: 51_711_000 picoseconds. + Weight::from_parts(50_255_137, 4764) + // Standard Error: 5_418 + .saturating_add(Weight::from_parts(3_166_243, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -260,10 +260,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `501` // Estimated: `4764` - // Minimum execution time: 48_592_000 picoseconds. - Weight::from_parts(46_136_422, 4764) - // Standard Error: 4_476 - .saturating_add(Weight::from_parts(3_444_512, 0).saturating_mul(x.into())) + // Minimum execution time: 48_656_000 picoseconds. + Weight::from_parts(46_590_994, 4764) + // Standard Error: 4_829 + .saturating_add(Weight::from_parts(3_197_956, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -277,8 +277,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `267` // Estimated: `3775` - // Minimum execution time: 38_973_000 picoseconds. - Weight::from_parts(39_533_000, 3775) + // Minimum execution time: 41_921_000 picoseconds. + Weight::from_parts(42_440_000, 3775) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -290,8 +290,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2585` // Estimated: `5048` - // Minimum execution time: 54_909_000 picoseconds. - Weight::from_parts(55_839_000, 5048) + // Minimum execution time: 58_409_000 picoseconds. + Weight::from_parts(60_103_000, 5048) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -311,8 +311,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `389` // Estimated: `4764` - // Minimum execution time: 42_755_000 picoseconds. - Weight::from_parts(43_230_000, 4764) + // Minimum execution time: 43_579_000 picoseconds. + Weight::from_parts(44_128_000, 4764) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -329,10 +329,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `255 + x * (69 ±0)` // Estimated: `4764 + x * (2613 ±0)` - // Minimum execution time: 39_922_000 picoseconds. - Weight::from_parts(36_255_858, 4764) - // Standard Error: 14_366 - .saturating_add(Weight::from_parts(5_135_083, 0).saturating_mul(x.into())) + // Minimum execution time: 43_019_000 picoseconds. + Weight::from_parts(39_628_074, 4764) + // Standard Error: 15_327 + .saturating_add(Weight::from_parts(4_990_892, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(T::DbWeight::get().writes(2_u64)) @@ -343,8 +343,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_519_000 picoseconds. - Weight::from_parts(11_865_000, 0) + // Minimum execution time: 11_301_000 picoseconds. + Weight::from_parts(11_607_000, 0) } /// Storage: DappStaking CurrentEraInfo (r:1 w:1) /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) @@ -354,8 +354,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `16` // Estimated: `4254` - // Minimum execution time: 17_823_000 picoseconds. - Weight::from_parts(18_413_000, 4254) + // Minimum execution time: 17_997_000 picoseconds. + Weight::from_parts(18_491_000, 4254) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -365,20 +365,22 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking StaticTierParams (max_values: Some(1), max_size: Some(167), added: 662, mode: MaxEncodedLen) /// Storage: DappStaking TierConfig (r:1 w:1) /// Proof: DappStaking TierConfig (max_values: Some(1), max_size: Some(161), added: 656, mode: MaxEncodedLen) + /// Storage: DappStaking PeriodEnd (r:1 w:2) + /// Proof: DappStaking PeriodEnd (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: DappStaking HistoryCleanupMarker (r:1 w:1) + /// Proof: DappStaking HistoryCleanupMarker (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) /// Storage: DappStaking EraRewards (r:1 w:1) /// Proof: DappStaking EraRewards (max_values: None, max_size: Some(789), added: 3264, mode: MaxEncodedLen) - /// Storage: DappStaking PeriodEnd (r:0 w:1) - /// Proof: DappStaking PeriodEnd (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) /// Storage: DappStaking DAppTiers (r:0 w:1) /// Proof: DappStaking DAppTiers (max_values: None, max_size: Some(1583), added: 4058, mode: MaxEncodedLen) fn on_initialize_build_and_earn_to_voting() -> Weight { // Proof Size summary in bytes: - // Measured: `550` + // Measured: `627` // Estimated: `4254` - // Minimum execution time: 41_147_000 picoseconds. - Weight::from_parts(42_304_000, 4254) - .saturating_add(T::DbWeight::get().reads(4_u64)) - .saturating_add(T::DbWeight::get().writes(5_u64)) + // Minimum execution time: 45_396_000 picoseconds. + Weight::from_parts(46_230_000, 4254) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(7_u64)) } /// Storage: DappStaking CurrentEraInfo (r:1 w:1) /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) @@ -390,8 +392,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `68` // Estimated: `4254` - // Minimum execution time: 23_807_000 picoseconds. - Weight::from_parts(24_367_000, 4254) + // Minimum execution time: 24_161_000 picoseconds. + Weight::from_parts(24_565_000, 4254) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -404,29 +406,27 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `152 + x * (32 ±0)` // Estimated: `3061 + x * (2071 ±0)` - // Minimum execution time: 7_821_000 picoseconds. - Weight::from_parts(12_000_144, 3061) - // Standard Error: 3_553 - .saturating_add(Weight::from_parts(2_396_421, 0).saturating_mul(x.into())) + // Minimum execution time: 7_878_000 picoseconds. + Weight::from_parts(12_213_692, 3061) + // Standard Error: 3_051 + .saturating_add(Weight::from_parts(2_363_936, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(Weight::from_parts(0, 2071).saturating_mul(x.into())) } /// Storage: DappStaking HistoryCleanupMarker (r:1 w:1) - /// Proof: DappStaking HistoryCleanupMarker (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - /// Storage: DappStaking PeriodEnd (r:1 w:1) - /// Proof: DappStaking PeriodEnd (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Proof: DappStaking HistoryCleanupMarker (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) /// Storage: DappStaking EraRewards (r:1 w:1) /// Proof: DappStaking EraRewards (max_values: None, max_size: Some(789), added: 3264, mode: MaxEncodedLen) /// Storage: DappStaking DAppTiers (r:0 w:1) /// Proof: DappStaking DAppTiers (max_values: None, max_size: Some(1583), added: 4058, mode: MaxEncodedLen) fn on_idle_cleanup() -> Weight { // Proof Size summary in bytes: - // Measured: `473` + // Measured: `293` // Estimated: `4254` - // Minimum execution time: 17_154_000 picoseconds. - Weight::from_parts(17_535_000, 4254) - .saturating_add(T::DbWeight::get().reads(3_u64)) - .saturating_add(T::DbWeight::get().writes(4_u64)) + // Minimum execution time: 8_839_000 picoseconds. + Weight::from_parts(8_975_000, 4254) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) } } \ No newline at end of file diff --git a/runtime/shiden/Cargo.toml b/runtime/shiden/Cargo.toml index 3d12b3600d..d923334d55 100644 --- a/runtime/shiden/Cargo.toml +++ b/runtime/shiden/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shiden-runtime" -version = "5.28.0" +version = "5.29.0" build = "build.rs" authors.workspace = true edition.workspace = true diff --git a/runtime/shiden/src/lib.rs b/runtime/shiden/src/lib.rs index dc13cfe101..81267a40a4 100644 --- a/runtime/shiden/src/lib.rs +++ b/runtime/shiden/src/lib.rs @@ -140,7 +140,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("shiden"), impl_name: create_runtime_str!("shiden"), authoring_version: 1, - spec_version: 115, + spec_version: 116, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 2,