From 9dea3c71d37eb588bce890c35ab2683a930b8c2c Mon Sep 17 00:00:00 2001 From: Frederik Gartenmeister Date: Fri, 10 Nov 2023 13:23:41 +0100 Subject: [PATCH] fix: allowlist and other benches in dev --- runtime/development/src/weights/mod.rs | 1 - .../src/weights/pallet_liquidity_pools.rs | 81 ------------------- .../src/weights/pallet_transfer_allowlist.rs | 7 ++ 3 files changed, 7 insertions(+), 82 deletions(-) delete mode 100644 runtime/development/src/weights/pallet_liquidity_pools.rs diff --git a/runtime/development/src/weights/mod.rs b/runtime/development/src/weights/mod.rs index 7454741ec9..8e8e17a2cf 100644 --- a/runtime/development/src/weights/mod.rs +++ b/runtime/development/src/weights/mod.rs @@ -26,7 +26,6 @@ pub mod pallet_identity; pub mod pallet_interest_accrual; pub mod pallet_investments; pub mod pallet_keystore; -pub mod pallet_liquidity_pools; pub mod pallet_loans; pub mod pallet_migration_manager; pub mod pallet_multisig; diff --git a/runtime/development/src/weights/pallet_liquidity_pools.rs b/runtime/development/src/weights/pallet_liquidity_pools.rs deleted file mode 100644 index 6ad6fb854d..0000000000 --- a/runtime/development/src/weights/pallet_liquidity_pools.rs +++ /dev/null @@ -1,81 +0,0 @@ - -//! Autogenerated weights for `pallet_liquidity_pools` -//! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-11-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `kf-FG`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("development-local"), DB CACHE: 1024 - -// Executed Command: -// target/release/centrifuge-chain -// benchmark -// pallet -// --chain=development-local -// --steps=50 -// --repeat=20 -// --pallet=pallet_liquidity_pools -// --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --output=/tmp/runtime/development/src/weights/pallet_liquidity_pools.rs - -#![cfg_attr(rustfmt, rustfmt_skip)] -#![allow(unused_parens)] -#![allow(unused_imports)] -#![allow(missing_docs)] - -use frame_support::{traits::Get, weights::Weight}; -use core::marker::PhantomData; - -/// Weight functions for `pallet_liquidity_pools`. -pub struct WeightInfo(PhantomData); -impl pallet_liquidity_pools::WeightInfo for WeightInfo { - /// Storage: PoolSystem Pool (r:1 w:0) - /// Proof: PoolSystem Pool (max_values: None, max_size: Some(813), added: 3288, mode: MaxEncodedLen) - /// Storage: OrmlAssetRegistry Metadata (r:2 w:0) - /// Proof Skipped: OrmlAssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: OrderBook TradingPair (r:1 w:0) - /// Proof: OrderBook TradingPair (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen) - /// Storage: ForeignInvestments RedemptionPayoutCurrency (r:1 w:0) - /// Proof: ForeignInvestments RedemptionPayoutCurrency (max_values: None, max_size: Some(113), added: 2588, mode: MaxEncodedLen) - /// Storage: Investments RedeemOrders (r:1 w:1) - /// Proof: Investments RedeemOrders (max_values: None, max_size: Some(112), added: 2587, mode: MaxEncodedLen) - /// Storage: Investments RedeemOrderId (r:1 w:0) - /// Proof: Investments RedeemOrderId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Investments ClearedRedeemOrders (r:1 w:0) - /// Proof: Investments ClearedRedeemOrders (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) - /// Storage: OrmlTokens Accounts (r:3 w:3) - /// Proof: OrmlTokens Accounts (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:0) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: ForeignInvestments RedemptionState (r:1 w:1) - /// Proof: ForeignInvestments RedemptionState (max_values: None, max_size: Some(187), added: 2662, mode: MaxEncodedLen) - /// Storage: ForeignInvestments CollectedRedemption (r:1 w:1) - /// Proof: ForeignInvestments CollectedRedemption (max_values: None, max_size: Some(120), added: 2595, mode: MaxEncodedLen) - /// Storage: ForeignInvestments TokenSwapOrderIds (r:1 w:1) - /// Proof: ForeignInvestments TokenSwapOrderIds (max_values: None, max_size: Some(96), added: 2571, mode: MaxEncodedLen) - /// Storage: ForeignInvestments InvestmentState (r:1 w:1) - /// Proof: ForeignInvestments InvestmentState (max_values: None, max_size: Some(187), added: 2662, mode: MaxEncodedLen) - /// Storage: OrderBook Orders (r:1 w:2) - /// Proof: OrderBook Orders (max_values: None, max_size: Some(186), added: 2661, mode: MaxEncodedLen) - /// Storage: OrderBook AssetPairOrders (r:2 w:2) - /// Proof: OrderBook AssetPairOrders (max_values: None, max_size: Some(8068), added: 10543, mode: MaxEncodedLen) - /// Storage: OrderBook OrderIdNonceStore (r:1 w:1) - /// Proof: OrderBook OrderIdNonceStore (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - /// Storage: ForeignInvestments ForeignInvestmentInfo (r:0 w:2) - /// Proof: ForeignInvestments ForeignInvestmentInfo (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen) - /// Storage: OrderBook UserOrders (r:0 w:2) - /// Proof: OrderBook UserOrders (max_values: None, max_size: Some(226), added: 2701, mode: MaxEncodedLen) - fn inbound_collect_redeem() -> Weight { - // Proof Size summary in bytes: - // Measured: `3977` - // Estimated: `22076` - // Minimum execution time: 260_000_000 picoseconds. - Weight::from_parts(268_000_000, 0) - .saturating_add(Weight::from_parts(0, 22076)) - .saturating_add(T::DbWeight::get().reads(20)) - .saturating_add(T::DbWeight::get().writes(17)) - } -} diff --git a/runtime/development/src/weights/pallet_transfer_allowlist.rs b/runtime/development/src/weights/pallet_transfer_allowlist.rs index 74aa69abb8..b9eb3b75ba 100644 --- a/runtime/development/src/weights/pallet_transfer_allowlist.rs +++ b/runtime/development/src/weights/pallet_transfer_allowlist.rs @@ -204,4 +204,11 @@ impl pallet_transfer_allowlist::WeightInfo for WeightIn .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } + + fn remove_transfer_allowance_missing_allowance() -> Weight { + Weight::from_parts(21_000_000, 0) + .saturating_add(Weight::from_parts(0, 3596)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } }