From c4f22df03d842d01f104e04e1253cb3e62ee6a2d Mon Sep 17 00:00:00 2001 From: Uncle Stinky Date: Sat, 5 Sep 2026 23:38:22 +0300 Subject: [PATCH] remove warnings from auto-generated code Signed-off-by: Uncle Stinky --- runtime/casper/Cargo.toml | 2 +- runtime/casper/constants/Cargo.toml | 2 +- .../constants/src/weights/block_weights.rs | 26 +++++----- .../src/weights/extrinsic_weights.rs | 26 +++++----- .../constants/src/weights/paritydb_weights.rs | 52 +++++++++---------- .../constants/src/weights/rocksdb_weights.rs | 52 +++++++++---------- runtime/casper/src/weights/ghost_weaver.rs | 2 +- runtime/casper/src/weights/pallet_babe.rs | 4 +- 8 files changed, 83 insertions(+), 83 deletions(-) diff --git a/runtime/casper/Cargo.toml b/runtime/casper/Cargo.toml index 75ad160..dadd223 100644 --- a/runtime/casper/Cargo.toml +++ b/runtime/casper/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "casper-runtime" -version = "4.0.3" +version = "4.0.4" build = "build.rs" description = "Runtime of the Casper Network" edition.workspace = true diff --git a/runtime/casper/constants/Cargo.toml b/runtime/casper/constants/Cargo.toml index 94006c4..d5fc1dd 100644 --- a/runtime/casper/constants/Cargo.toml +++ b/runtime/casper/constants/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "casper-runtime-constants" -version = "0.4.3" +version = "0.4.4" authors.workspace = true edition.workspace = true homepage.workspace = true diff --git a/runtime/casper/constants/src/weights/block_weights.rs b/runtime/casper/constants/src/weights/block_weights.rs index d49fe2c..196fd7e 100644 --- a/runtime/casper/constants/src/weights/block_weights.rs +++ b/runtime/casper/constants/src/weights/block_weights.rs @@ -37,19 +37,19 @@ use sp_core::parameter_types; use sp_weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight}; parameter_types! { - /// Time to execute an empty block. - /// Calculated by multiplying the *Average* with `1.0` and adding `0`. - /// - /// Stats nanoseconds: - /// Min, Max: 1_042_579, 1_101_962 - /// Average: 1_054_295 - /// Median: 1_051_534 - /// Std-Dev: 9476.68 - /// - /// Percentiles nanoseconds: - /// 99th: 1_091_162 - /// 95th: 1_069_117 - /// 75th: 1_057_964 + // Time to execute an empty block. + // Calculated by multiplying the *Average* with `1.0` and adding `0`. + // + // Stats nanoseconds: + // Min, Max: 1_042_579, 1_101_962 + // Average: 1_054_295 + // Median: 1_051_534 + // Std-Dev: 9476.68 + // + // Percentiles nanoseconds: + // 99th: 1_091_162 + // 95th: 1_069_117 + // 75th: 1_057_964 pub const BlockExecutionWeight: Weight = Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(1_054_295), 0); } diff --git a/runtime/casper/constants/src/weights/extrinsic_weights.rs b/runtime/casper/constants/src/weights/extrinsic_weights.rs index 5ac5ff3..3414bf6 100644 --- a/runtime/casper/constants/src/weights/extrinsic_weights.rs +++ b/runtime/casper/constants/src/weights/extrinsic_weights.rs @@ -37,19 +37,19 @@ use sp_core::parameter_types; use sp_weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight}; parameter_types! { - /// Time to execute a NO-OP extrinsic, for example `System::remark`. - /// Calculated by multiplying the *Average* with `1.0` and adding `0`. - /// - /// Stats nanoseconds: - /// Min, Max: 378_590, 384_849 - /// Average: 380_658 - /// Median: 380_461 - /// Std-Dev: 1202.24 - /// - /// Percentiles nanoseconds: - /// 99th: 383_191 - /// 95th: 382_552 - /// 75th: 381_384 + // Time to execute a NO-OP extrinsic, for example `System::remark`. + // Calculated by multiplying the *Average* with `1.0` and adding `0`. + // + // Stats nanoseconds: + // Min, Max: 378_590, 384_849 + // Average: 380_658 + // Median: 380_461 + // Std-Dev: 1202.24 + // + // Percentiles nanoseconds: + // 99th: 383_191 + // 95th: 382_552 + // 75th: 381_384 pub const ExtrinsicBaseWeight: Weight = Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(380_658), 0); } diff --git a/runtime/casper/constants/src/weights/paritydb_weights.rs b/runtime/casper/constants/src/weights/paritydb_weights.rs index 3aad452..db79348 100644 --- a/runtime/casper/constants/src/weights/paritydb_weights.rs +++ b/runtime/casper/constants/src/weights/paritydb_weights.rs @@ -45,34 +45,34 @@ pub mod constants { /// `ParityDB` can be enabled with a feature flag, but is still experimental. These weights /// are available for brave runtime engineers who may want to try this out as default. pub const ParityDbWeight: RuntimeDbWeight = RuntimeDbWeight { - /// Time to read one storage item. - /// Calculated by multiplying the *Average* of all values with `1.1` and adding `0`. - /// - /// Stats nanoseconds: - /// Min, Max: 3_485, 2_000_385 - /// Average: 26_775 - /// Median: 4_870 - /// Std-Dev: 205784.16 - /// - /// Percentiles nanoseconds: - /// 99th: 2_000_385 - /// 95th: 6_002 - /// 75th: 5_246 + // Time to read one storage item. + // Calculated by multiplying the *Average* of all values with `1.1` and adding `0`. + // + // Stats nanoseconds: + // Min, Max: 3_485, 2_000_385 + // Average: 26_775 + // Median: 4_870 + // Std-Dev: 205784.16 + // + // Percentiles nanoseconds: + // 99th: 2_000_385 + // 95th: 6_002 + // 75th: 5_246 read: 29_453 * constants::WEIGHT_REF_TIME_PER_NANOS, - /// Time to write one storage item. - /// Calculated by multiplying the *Average* of all values with `1.1` and adding `0`. - /// - /// Stats nanoseconds: - /// Min, Max: 16_322, 25_965_124 - /// Average: 308_302 - /// Median: 29_481 - /// Std-Dev: 2674917.65 - /// - /// Percentiles nanoseconds: - /// 99th: 25_965_124 - /// 95th: 42_210 - /// 75th: 33_525 + // Time to write one storage item. + // Calculated by multiplying the *Average* of all values with `1.1` and adding `0`. + // + // Stats nanoseconds: + // Min, Max: 16_322, 25_965_124 + // Average: 308_302 + // Median: 29_481 + // Std-Dev: 2674917.65 + // + // Percentiles nanoseconds: + // 99th: 25_965_124 + // 95th: 42_210 + // 75th: 33_525 write: 339_133 * constants::WEIGHT_REF_TIME_PER_NANOS, }; } diff --git a/runtime/casper/constants/src/weights/rocksdb_weights.rs b/runtime/casper/constants/src/weights/rocksdb_weights.rs index 225a631..1965826 100644 --- a/runtime/casper/constants/src/weights/rocksdb_weights.rs +++ b/runtime/casper/constants/src/weights/rocksdb_weights.rs @@ -44,34 +44,34 @@ pub mod constants { /// By default, Substrate uses `RocksDB`, so this will be the weight used throughout /// the runtime. pub const RocksDbWeight: RuntimeDbWeight = RuntimeDbWeight { - /// Time to read one storage item. - /// Calculated by multiplying the *Average* of all values with `1.1` and adding `0`. - /// - /// Stats nanoseconds: - /// Min, Max: 6_726, 2_902_682 - /// Average: 41_735 - /// Median: 10_059 - /// Std-Dev: 298297.77 - /// - /// Percentiles nanoseconds: - /// 99th: 2_902_682 - /// 95th: 14_199 - /// 75th: 11_422 + // Time to read one storage item. + // Calculated by multiplying the *Average* of all values with `1.1` and adding `0`. + // + // Stats nanoseconds: + // Min, Max: 6_726, 2_902_682 + // Average: 41_735 + // Median: 10_059 + // Std-Dev: 298297.77 + // + // Percentiles nanoseconds: + // 99th: 2_902_682 + // 95th: 14_199 + // 75th: 11_422 read: 45_909 * constants::WEIGHT_REF_TIME_PER_NANOS, - /// Time to write one storage item. - /// Calculated by multiplying the *Average* of all values with `1.1` and adding `0`. - /// - /// Stats nanoseconds: - /// Min, Max: 31_214, 45_912_915 - /// Average: 545_878 - /// Median: 51_543 - /// Std-Dev: 4729852.98 - /// - /// Percentiles nanoseconds: - /// 99th: 45_912_915 - /// 95th: 68_658 - /// 75th: 58_683 + // Time to write one storage item. + // Calculated by multiplying the *Average* of all values with `1.1` and adding `0`. + // + // Stats nanoseconds: + // Min, Max: 31_214, 45_912_915 + // Average: 545_878 + // Median: 51_543 + // Std-Dev: 4729852.98 + // + // Percentiles nanoseconds: + // 99th: 45_912_915 + // 95th: 68_658 + // 75th: 58_683 write: 600_466 * constants::WEIGHT_REF_TIME_PER_NANOS, }; } diff --git a/runtime/casper/src/weights/ghost_weaver.rs b/runtime/casper/src/weights/ghost_weaver.rs index 531578e..30edae2 100644 --- a/runtime/casper/src/weights/ghost_weaver.rs +++ b/runtime/casper/src/weights/ghost_weaver.rs @@ -131,7 +131,7 @@ impl ghost_weaver::WeightInfo for WeightInfo { /// Proof: `GhostNetworks::NetworkImbalance` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:1 w:0) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - fn pull_evm_thread() -> Weight { + fn pull_evm_thread(_a: u32) -> Weight { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3823` diff --git a/runtime/casper/src/weights/pallet_babe.rs b/runtime/casper/src/weights/pallet_babe.rs index 9045d2c..49db58e 100644 --- a/runtime/casper/src/weights/pallet_babe.rs +++ b/runtime/casper/src/weights/pallet_babe.rs @@ -41,7 +41,7 @@ #![allow(missing_docs)] use frame_support::{ - traits::Get, + traits::Get, weights::{Weight, constants::RocksDbWeight as DbWeight} }; use core::marker::PhantomData; @@ -67,7 +67,7 @@ impl pallet_babe::WeightInfo for WeightInfo { .saturating_add(T::DbWeight::get().writes((6_u64).saturating_mul(max_nominators_per_validator.into()))) .saturating_add(Weight::from_parts(0, 3774).saturating_mul(max_nominators_per_validator.into())); - /// The range of component `x` is `[0, 1]`. + // The range of component `x` is `[0, 1]`. // Proof Size summary in bytes: // Measured: `0` // Estimated: `0`