From b4f2aeacffab104907b15e65ede27f3d0bfc08b9 Mon Sep 17 00:00:00 2001 From: MrPai <1164934857@qq.com> Date: Thu, 21 Mar 2024 09:55:12 +0800 Subject: [PATCH] fix ci --- pallets/liquid-staking/src/benchmarking.rs | 6 ------ pallets/liquid-staking/src/weights.rs | 12 ------------ runtime/heiko/src/weights/pallet_liquid_staking.rs | 6 ------ runtime/kerria/src/weights/pallet_liquid_staking.rs | 6 ------ .../parallel/src/weights/pallet_liquid_staking.rs | 6 ------ runtime/vanilla/src/weights/pallet_liquid_staking.rs | 5 ----- 6 files changed, 41 deletions(-) diff --git a/pallets/liquid-staking/src/benchmarking.rs b/pallets/liquid-staking/src/benchmarking.rs index a5e55bf83..5a488be0a 100644 --- a/pallets/liquid-staking/src/benchmarking.rs +++ b/pallets/liquid-staking/src/benchmarking.rs @@ -267,12 +267,6 @@ benchmarks! { assert_eq!(CommissionRate::::get(), COMMISSION_RATE); } - update_incentive { - }: _(SystemOrigin::Root, BalanceOf::::one()) - verify { - assert_eq!(Incentive::::get(), BalanceOf::::one()); - } - update_staking_ledger_cap { }: _(SystemOrigin::Root, STAKING_LEDGER_CAP) verify { diff --git a/pallets/liquid-staking/src/weights.rs b/pallets/liquid-staking/src/weights.rs index ff452fa56..605265858 100644 --- a/pallets/liquid-staking/src/weights.rs +++ b/pallets/liquid-staking/src/weights.rs @@ -67,7 +67,6 @@ pub trait WeightInfo { fn cancel_unstake() -> Weight; fn update_commission_rate() -> Weight; fn fast_match_unstake(n: u32, ) -> Weight; - fn update_incentive() -> Weight; } /// Weights for pallet_liquid_staking using the Substrate node and recommended hardware. @@ -383,11 +382,6 @@ impl WeightInfo for SubstrateWeight { .saturating_add(T::DbWeight::get().writes(4 as u64)) .saturating_add(T::DbWeight::get().writes((4 as u64).saturating_mul(n as u64))) } - fn update_incentive() -> Weight { - Weight::from_ref_time(40_612_000 as u64) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } } // For backwards compatibility and tests @@ -702,10 +696,4 @@ impl WeightInfo for () { .saturating_add(RocksDbWeight::get().writes(4 as u64)) .saturating_add(RocksDbWeight::get().writes((4 as u64).saturating_mul(n as u64))) } - - fn update_incentive() -> Weight { - Weight::from_ref_time(40_612_000 as u64) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) - .saturating_add(RocksDbWeight::get().writes(2 as u64)) - } } diff --git a/runtime/heiko/src/weights/pallet_liquid_staking.rs b/runtime/heiko/src/weights/pallet_liquid_staking.rs index 922411211..18a18f5e4 100644 --- a/runtime/heiko/src/weights/pallet_liquid_staking.rs +++ b/runtime/heiko/src/weights/pallet_liquid_staking.rs @@ -201,12 +201,6 @@ impl pallet_liquid_staking::WeightInfo for WeightInfo Weight { - // Minimum execution time: 25_703 nanoseconds. - Weight::from_ref_time(26_527_000) - .saturating_add(T::DbWeight::get().writes(1)) - } // Storage: LiquidStaking StakingLedgerCap (r:1 w:1) fn update_staking_ledger_cap() -> Weight { // Minimum execution time: 29_266 nanoseconds. diff --git a/runtime/kerria/src/weights/pallet_liquid_staking.rs b/runtime/kerria/src/weights/pallet_liquid_staking.rs index 0b4775acc..1963fb0eb 100644 --- a/runtime/kerria/src/weights/pallet_liquid_staking.rs +++ b/runtime/kerria/src/weights/pallet_liquid_staking.rs @@ -339,10 +339,4 @@ impl pallet_liquid_staking::WeightInfo for WeightInfo Weight { - Weight::from_ref_time(39_392_000 as u64) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } } diff --git a/runtime/parallel/src/weights/pallet_liquid_staking.rs b/runtime/parallel/src/weights/pallet_liquid_staking.rs index 75ef80ea9..b73cc22ae 100644 --- a/runtime/parallel/src/weights/pallet_liquid_staking.rs +++ b/runtime/parallel/src/weights/pallet_liquid_staking.rs @@ -201,12 +201,6 @@ impl pallet_liquid_staking::WeightInfo for WeightInfo Weight { - // Minimum execution time: 25_110 nanoseconds. - Weight::from_ref_time(25_596_000) - .saturating_add(T::DbWeight::get().writes(1)) - } // Storage: LiquidStaking StakingLedgerCap (r:1 w:1) fn update_staking_ledger_cap() -> Weight { // Minimum execution time: 28_073 nanoseconds. diff --git a/runtime/vanilla/src/weights/pallet_liquid_staking.rs b/runtime/vanilla/src/weights/pallet_liquid_staking.rs index 5c7a914ee..1963fb0eb 100644 --- a/runtime/vanilla/src/weights/pallet_liquid_staking.rs +++ b/runtime/vanilla/src/weights/pallet_liquid_staking.rs @@ -339,9 +339,4 @@ impl pallet_liquid_staking::WeightInfo for WeightInfo Weight { - Weight::from_ref_time(39_392_000 as u64) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } }