diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml
index 9368fee385..45c6241dff 100644
--- a/.github/workflows/build-docker.yml
+++ b/.github/workflows/build-docker.yml
@@ -32,7 +32,7 @@ jobs:
with:
fetch-depth: 0
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 #v3.0.0
+ uses: docker/setup-buildx-action@0d103c3126aa41d772a8362f6aa67afac040f80c #v3.1.0
- name: DockerHub Registry Login
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
diff --git a/.github/workflows/build-wasm.yml b/.github/workflows/build-wasm.yml
index c8441cdd19..92b5a632f0 100644
--- a/.github/workflows/build-wasm.yml
+++ b/.github/workflows/build-wasm.yml
@@ -83,7 +83,7 @@ jobs:
- name: Setup - gcloud / gsutil
if: ${{ steps.auth.outcome == 'success' }}
- uses: google-github-actions/setup-gcloud@5a5f7b85fca43e76e53463acaa9d408a03c98d3a # v2.0.1
+ uses: google-github-actions/setup-gcloud@98ddc00a17442e89a24bbf282954a3b65ce6d200 # v2.1.0
- name: Publish artifacts to GCS
if: ${{ steps.auth.outcome == 'success' }}
diff --git a/Cargo.lock b/Cargo.lock
index adf59b9c67..6ea182404e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -905,7 +905,7 @@ dependencies = [
[[package]]
name = "centrifuge-chain"
-version = "0.10.35"
+version = "0.10.36"
dependencies = [
"altair-runtime",
"async-trait",
diff --git a/README.md b/README.md
index 962754d79a..aa74455563 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,17 @@
+
+
+[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/centrifuge/centrifuge-chain/build-wasm.yml?label=Actions&logo=github)](https://github.com/centrifuge/centrifuge-chain/actions)
+[![GitHub Release](https://img.shields.io/github/v/release/centrifuge/centrifuge-chain)](https://github.com/centrifuge/centrifuge-chain/releases)
+[![Substrate version](https://img.shields.io/badge/Substrate-2.0.0-brightgreen?logo=Parity%20Substrate)](https://substrate.io/)
+[![License](https://img.shields.io/github/license/centrifuge/centrifuge-chain?color=green)](https://github.com/centrifuge/centrifuge-chain/blob/main/LICENSE)
+
+[![Twitter URL](https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Ftwitter.com%2Fcentrifuge)](https://twitter.com/centrifuge/)
+[![Telegram](https://img.shields.io/badge/Telegram-gray?logo=telegram)](https://t.me/centrifuge_chat)
+
+
+
-
+
Centrifuge Chain
diff --git a/libs/traits/src/fee.rs b/libs/traits/src/fee.rs
index b53ffd6106..da2ebae8c7 100644
--- a/libs/traits/src/fee.rs
+++ b/libs/traits/src/fee.rs
@@ -29,7 +29,7 @@ pub enum PoolFeeBucket {
}
/// Trait to add fees to a pool
-pub trait PoolFees {
+pub trait PoolFeesMutate {
type PoolId;
type FeeInfo;
@@ -37,11 +37,22 @@ pub trait PoolFees {
///
/// NOTE: Assumes call permissions are separately checked beforehand.
fn add_fee(pool_id: Self::PoolId, bucket: PoolFeeBucket, fee: Self::FeeInfo) -> DispatchResult;
+}
+
+/// Trait to get pool fees counts
+pub trait PoolFeesInspect {
+ type PoolId;
+
+ /// Returns the maximum number of pool fees required for accurate weights
+ fn get_max_fee_count() -> u32;
/// Returns the maximum number of pool fees per bucket required for accurate
/// weights
fn get_max_fees_per_bucket() -> u32;
+ /// Returns the current amount of active fees for the given pool
+ fn get_pool_fee_count(pool: Self::PoolId) -> u32;
+
/// Returns the current amount of active fees for the given pool and bucket
/// pair
fn get_pool_fee_bucket_count(pool: Self::PoolId, bucket: PoolFeeBucket) -> u32;
diff --git a/node/Cargo.toml b/node/Cargo.toml
index c64aa4f91e..1a806468ab 100644
--- a/node/Cargo.toml
+++ b/node/Cargo.toml
@@ -6,7 +6,7 @@ is-it-maintained-open-issues = { repository = "centrifuge/centrifuge-chain" }
[package]
name = "centrifuge-chain"
-version = "0.10.35"
+version = "0.10.36"
description = "Centrifuge chain implementation in Rust."
build = "build.rs"
default-run = "centrifuge-chain"
diff --git a/pallets/block-rewards/src/lib.rs b/pallets/block-rewards/src/lib.rs
index acd9516c9f..ec9a232d6f 100644
--- a/pallets/block-rewards/src/lib.rs
+++ b/pallets/block-rewards/src/lib.rs
@@ -283,7 +283,7 @@ pub mod pallet {
/// Admin method to set the reward amount for a collator used for the
/// next sessions. Current session is not affected by this call.
- #[pallet::weight(T::WeightInfo::set_collator_reward())]
+ #[pallet::weight(T::WeightInfo::set_collator_reward_per_session())]
#[pallet::call_index(1)]
pub fn set_collator_reward_per_session(
origin: OriginFor,
@@ -300,7 +300,7 @@ pub mod pallet {
/// Admin method to set the treasury inflation rate for the next
/// sessions. Current session is not affected by this call.
- #[pallet::weight(T::WeightInfo::set_total_reward())]
+ #[pallet::weight(T::WeightInfo::set_annual_treasury_inflation_rate())]
#[pallet::call_index(2)]
pub fn set_annual_treasury_inflation_rate(
origin: OriginFor,
diff --git a/pallets/block-rewards/src/weights.rs b/pallets/block-rewards/src/weights.rs
index bf9d239564..80e0b81b28 100644
--- a/pallets/block-rewards/src/weights.rs
+++ b/pallets/block-rewards/src/weights.rs
@@ -1,9 +1,11 @@
//! Autogenerated weights for pallet_block_rewards
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION
-//! 4.0.0-dev DATE: 2023-02-28, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH
-//! RANGE: `[]` EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN:
-//! Some("development"), DB CACHE: 1024
+//! 4.0.0-dev DATE: 2024-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH
+//! RANGE: `[]` WORST CASE MAP SIZE: `1000000`
+//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
+//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN:
+//! Some("centrifuge-dev"), DB CACHE: 1024
// Executed Command:
// target/release/centrifuge-chain
@@ -32,8 +34,8 @@ use sp_std::marker::PhantomData;
/// Weight functions needed for pallet_block_rewards.
pub trait WeightInfo {
fn claim_reward() -> Weight;
- fn set_collator_reward() -> Weight;
- fn set_total_reward() -> Weight;
+ fn set_collator_reward_per_session() -> Weight;
+ fn set_annual_treasury_inflation_rate() -> Weight;
}
/// Weights for pallet_block_rewards using the Substrate node and recommended
@@ -41,20 +43,23 @@ pub trait WeightInfo {
pub struct SubstrateWeight(PhantomData);
impl WeightInfo for SubstrateWeight {
fn claim_reward() -> Weight {
- Weight::from_parts(49_000_000, 0)
+ Weight::from_parts(90_960_000, 0)
+ .saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(3))
}
- fn set_collator_reward() -> Weight {
- Weight::from_parts(8_000_000, 0)
+ fn set_collator_reward_per_session() -> Weight {
+ Weight::from_parts(9_327_000, 0)
+ .saturating_add(Weight::from_parts(0, 3582))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- fn set_total_reward() -> Weight {
- Weight::from_parts(9_000_000, 0)
- .saturating_add(T::DbWeight::get().reads(2))
+ fn set_annual_treasury_inflation_rate() -> Weight {
+ Weight::from_parts(9_418_000, 0)
+ .saturating_add(Weight::from_parts(0, 3582))
+ .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
}
@@ -62,20 +67,23 @@ impl WeightInfo for SubstrateWeight {
// For backwards compatibility and tests
impl WeightInfo for () {
fn claim_reward() -> Weight {
- Weight::from_parts(49_000_000, 0)
+ Weight::from_parts(90_960_000, 0)
+ .saturating_add(Weight::from_parts(0, 6196))
.saturating_add(RocksDbWeight::get().reads(5))
.saturating_add(RocksDbWeight::get().writes(3))
}
- fn set_collator_reward() -> Weight {
- Weight::from_parts(8_000_000, 0)
+ fn set_collator_reward_per_session() -> Weight {
+ Weight::from_parts(9_327_000, 0)
+ .saturating_add(Weight::from_parts(0, 3582))
.saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1))
}
- fn set_total_reward() -> Weight {
- Weight::from_parts(9_000_000, 0)
- .saturating_add(RocksDbWeight::get().reads(2))
+ fn set_annual_treasury_inflation_rate() -> Weight {
+ Weight::from_parts(9_418_000, 0)
+ .saturating_add(Weight::from_parts(0, 3582))
+ .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1))
}
}
diff --git a/pallets/ethereum-transaction/Cargo.toml b/pallets/ethereum-transaction/Cargo.toml
index 4bf63ca27d..bc71905386 100644
--- a/pallets/ethereum-transaction/Cargo.toml
+++ b/pallets/ethereum-transaction/Cargo.toml
@@ -40,7 +40,7 @@ cfg-traits = { workspace = true }
sp-core = { workspace = true }
sp-io = { workspace = true }
-pallet-balances = { workspace = true }
+pallet-balances = { workspace = true, default-features = true }
pallet-evm-precompile-simple = { workspace = true, default-features = true }
pallet-timestamp = { workspace = true, default-features = true }
diff --git a/pallets/ethereum-transaction/src/lib.rs b/pallets/ethereum-transaction/src/lib.rs
index 5f2d900261..e5673e87f1 100644
--- a/pallets/ethereum-transaction/src/lib.rs
+++ b/pallets/ethereum-transaction/src/lib.rs
@@ -29,6 +29,7 @@ mod tests;
#[frame_support::pallet]
pub mod pallet {
+ use ethereum::ReceiptV3;
use frame_system::pallet_prelude::OriginFor;
use super::*;
@@ -64,6 +65,27 @@ pub mod pallet {
}
}
+ #[pallet::error]
+ pub enum Error {
+ EvmExecutionFailed,
+ }
+
+ impl Pallet
+ where
+ OriginFor:
+ From + Into>>,
+ {
+ fn valid_code(receipt: &ReceiptV3) -> bool {
+ let code = match receipt {
+ ReceiptV3::Legacy(inner)
+ | ReceiptV3::EIP2930(inner)
+ | ReceiptV3::EIP1559(inner) => inner.status_code,
+ };
+
+ code == 1
+ }
+ }
+
impl EthereumTransactor for Pallet
where
OriginFor:
@@ -107,7 +129,7 @@ pub mod pallet {
Nonce::::put(nonce.saturating_add(U256::one()));
- pallet_ethereum::Pallet::::transact(
+ let info = pallet_ethereum::Pallet::::transact(
pallet_ethereum::Origin::EthereumTransaction(from).into(),
transaction,
)
@@ -129,7 +151,21 @@ pub mod pallet {
.map_or(Some(read_weight), |weight| {
Some(weight.saturating_add(read_weight))
}),
- })
+ })?;
+
+ // NOTE: The Ethereuem side of things never returns a DispatchError
+ // if the execution failed. But we can check that manually by
+ // querying the `Pending` storage of the pallet-ethereum.
+ let pending = pallet_ethereum::Pending::::get();
+ let (_, _, receipt) = pending.last().ok_or(DispatchError::Other(
+ "Ethereuem not adding pending storage. Unexpected.",
+ ))?;
+
+ if Pallet::::valid_code(receipt) {
+ Ok(info)
+ } else {
+ Err(Error::::EvmExecutionFailed.into())
+ }
}
}
}
diff --git a/pallets/ethereum-transaction/src/tests.rs b/pallets/ethereum-transaction/src/tests.rs
index e7752611f3..c737173525 100644
--- a/pallets/ethereum-transaction/src/tests.rs
+++ b/pallets/ethereum-transaction/src/tests.rs
@@ -4,7 +4,7 @@ use pallet_evm::{AddressMapping, Error::BalanceLow};
use sp_core::{crypto::AccountId32, H160, U256};
use super::mock::*;
-use crate::pallet::Nonce;
+use crate::{pallet::Nonce, Error};
mod utils {
use super::*;
@@ -101,22 +101,17 @@ mod call {
assert_eq!(Nonce::::get(), U256::from(0));
- // NOTE: We can not check for errors as the internal `pallet-ethereum` logic
- // does not transform an EVM error into an Substrate error and return
- // `Ok(..)` in theses cases.
- //
- // We can also not mimic the `pallet-ethereum::Pallet::::transact(..)`
- // code path as some needed parts are private.
- assert_ok!(::call(
- sender,
- to,
- data.as_slice(),
- value,
- gas_price,
- gas_limit,
- ));
-
- assert_eq!(Nonce::::get(), U256::from(1));
+ assert_eq!(
+ ::call(
+ sender,
+ to,
+ data.as_slice(),
+ value,
+ gas_price,
+ gas_limit,
+ ),
+ Err(Error::::EvmExecutionFailed.into())
+ );
});
}
}
diff --git a/pallets/foreign-investments/src/lib.rs b/pallets/foreign-investments/src/lib.rs
index 867322476e..a28801918c 100644
--- a/pallets/foreign-investments/src/lib.rs
+++ b/pallets/foreign-investments/src/lib.rs
@@ -105,7 +105,11 @@ pub mod pallet {
use super::*;
+ /// The current storage version.
+ const STORAGE_VERSION: StorageVersion = StorageVersion::new(1);
+
#[pallet::pallet]
+ #[pallet::storage_version(STORAGE_VERSION)]
pub struct Pallet(_);
/// Configure the pallet by specifying the parameters and types on which it
diff --git a/pallets/liquidity-pools-gateway/routers/src/tests.rs b/pallets/liquidity-pools-gateway/routers/src/tests.rs
index 7c268d8db4..57d1672428 100644
--- a/pallets/liquidity-pools-gateway/routers/src/tests.rs
+++ b/pallets/liquidity-pools-gateway/routers/src/tests.rs
@@ -55,7 +55,7 @@ mod evm_router {
target_contract_address: test_contract_address,
target_contract_hash: test_contract_hash,
fee_values: FeeValues {
- value: U256::from(10),
+ value: U256::from(0),
gas_limit: U256::from(10),
gas_price: U256::from(10),
},
@@ -337,7 +337,7 @@ mod axelar_evm {
target_contract_address: axelar_contract_address,
target_contract_hash: axelar_contract_hash,
fee_values: FeeValues {
- value: U256::from(10),
+ value: U256::from(0),
gas_limit: U256::from(10),
gas_price: U256::from(10),
},
diff --git a/pallets/oracle-collection/src/weights.rs b/pallets/oracle-collection/src/weights.rs
index 87738e7e7e..c1b4f6427a 100644
--- a/pallets/oracle-collection/src/weights.rs
+++ b/pallets/oracle-collection/src/weights.rs
@@ -17,7 +17,6 @@ pub trait WeightInfo {
fn propose_update_collection_info(feeders: u32) -> Weight;
fn apply_update_collection_info(feeders: u32) -> Weight;
fn update_collection(feeders: u32, keys: u32) -> Weight;
- fn set_collection_info() -> Weight;
}
impl WeightInfo for () {
@@ -32,8 +31,4 @@ impl WeightInfo for () {
fn update_collection(_: u32, _: u32) -> Weight {
Weight::zero()
}
-
- fn set_collection_info() -> Weight {
- Weight::zero()
- }
}
diff --git a/pallets/order-book/src/benchmarking.rs b/pallets/order-book/src/benchmarking.rs
index 1cb72b2b07..a6c667c320 100644
--- a/pallets/order-book/src/benchmarking.rs
+++ b/pallets/order-book/src/benchmarking.rs
@@ -23,8 +23,8 @@ use sp_runtime::{traits::checked_pow, FixedPointNumber};
use super::*;
-const CURRENCY_IN: u32 = 1;
-const CURRENCY_OUT: u32 = 2;
+const CURRENCY_IN: u32 = 1001;
+const CURRENCY_OUT: u32 = 1002;
const RATIO: u32 = 2; // x2
const FEEDER: u32 = 23;
diff --git a/pallets/order-book/src/lib.rs b/pallets/order-book/src/lib.rs
index 997cacbfc7..047a9959e4 100644
--- a/pallets/order-book/src/lib.rs
+++ b/pallets/order-book/src/lib.rs
@@ -334,7 +334,7 @@ pub mod pallet {
impl Pallet {
/// Create an order with the default min fulfillment amount.
#[pallet::call_index(0)]
- #[pallet::weight(T::Weights::create_order())]
+ #[pallet::weight(T::Weights::place_order())]
pub fn place_order(
origin: OriginFor,
currency_in: T::CurrencyId,
diff --git a/pallets/order-book/src/mock.rs b/pallets/order-book/src/mock.rs
index 9e445cad14..22e6abbd07 100644
--- a/pallets/order-book/src/mock.rs
+++ b/pallets/order-book/src/mock.rs
@@ -35,9 +35,8 @@ pub const FEEDER: u64 = 0x42;
pub const INITIAL_A: Balance = token_a(1000);
pub const INITIAL_B: Balance = token_b(1000);
-pub const CURRENCY_A: CurrencyId = CurrencyId::ForeignAsset(1);
-pub const CURRENCY_B: CurrencyId = CurrencyId::ForeignAsset(2);
-pub const CURRENCY_X: CurrencyId = CurrencyId::ForeignAsset(3);
+pub const CURRENCY_A: CurrencyId = CurrencyId::ForeignAsset(1001);
+pub const CURRENCY_B: CurrencyId = CurrencyId::ForeignAsset(1002);
pub const CURRENCY_A_DECIMALS: u32 = 9;
pub const CURRENCY_B_DECIMALS: u32 = 12;
diff --git a/pallets/order-book/src/weights.rs b/pallets/order-book/src/weights.rs
index 1323bb7df2..55f4d03916 100644
--- a/pallets/order-book/src/weights.rs
+++ b/pallets/order-book/src/weights.rs
@@ -13,7 +13,7 @@
pub use frame_support::weights::Weight;
pub trait WeightInfo {
- fn create_order() -> Weight;
+ fn place_order() -> Weight;
fn update_order() -> Weight;
fn cancel_order() -> Weight;
fn fill_order() -> Weight;
@@ -21,7 +21,7 @@ pub trait WeightInfo {
}
impl WeightInfo for () {
- fn create_order() -> Weight {
+ fn place_order() -> Weight {
Weight::zero()
}
diff --git a/pallets/pool-fees/src/benchmarking.rs b/pallets/pool-fees/src/benchmarking.rs
index 197885700f..4aef893183 100644
--- a/pallets/pool-fees/src/benchmarking.rs
+++ b/pallets/pool-fees/src/benchmarking.rs
@@ -14,7 +14,7 @@
use cfg_traits::{
benchmarking::{PoolBenchmarkHelper, PoolFeesBenchmarkHelper},
changes::ChangeGuard,
- fee::{PoolFeeBucket, PoolFees as _},
+ fee::{PoolFeeBucket, PoolFeesMutate as _},
};
use cfg_types::pools::PoolFeeEditor;
use frame_benchmarking::v2::*;
diff --git a/pallets/pool-fees/src/lib.rs b/pallets/pool-fees/src/lib.rs
index b4a2a84dbc..a594777ac2 100644
--- a/pallets/pool-fees/src/lib.rs
+++ b/pallets/pool-fees/src/lib.rs
@@ -21,6 +21,8 @@ mod mock;
#[cfg(test)]
mod tests;
pub mod types;
+pub mod weights;
+pub use weights::WeightInfo;
#[frame_support::pallet]
pub mod pallet {
@@ -28,7 +30,7 @@ pub mod pallet {
use cfg_traits::benchmarking::PoolFeesBenchmarkHelper;
use cfg_traits::{
changes::ChangeGuard,
- fee::{FeeAmountProration, PoolFeeBucket, PoolFees},
+ fee::{FeeAmountProration, PoolFeeBucket, PoolFeesInspect, PoolFeesMutate},
EpochTransitionHook, PoolInspect, PoolNAV, PoolReserve, PreConditions, Seconds, TimeAsSecs,
};
use cfg_types::{
@@ -46,7 +48,6 @@ pub mod pallet {
tokens,
tokens::Preservation,
},
- weights::Weight,
PalletId,
};
use frame_system::pallet_prelude::*;
@@ -155,8 +156,7 @@ pub mod pallet {
/// Fetching method for the time of the current block
type Time: TimeAsSecs;
- // TODO: Enable after creating benchmarks
- // type WeightInfo: WeightInfo;
+ type WeightInfo: WeightInfo;
}
/// Maps a pool to their corresponding fee ids with [PoolFeeBucket]
@@ -316,7 +316,7 @@ pub mod pallet {
///
/// Origin must be by pool admin.
#[pallet::call_index(0)]
- #[pallet::weight(Weight::from_parts(10_000, 0))]
+ #[pallet::weight(T::WeightInfo::propose_new_fee())]
pub fn propose_new_fee(
origin: OriginFor,
pool_id: T::PoolId,
@@ -355,12 +355,12 @@ pub mod pallet {
///
/// Origin unrestriced due to pre-check via proposal gate.
#[pallet::call_index(1)]
- #[pallet::weight(Weight::from_parts(10_000, 0))]
+ #[pallet::weight(T::WeightInfo::apply_new_fee(T::MaxPoolFeesPerBucket::get()))]
pub fn apply_new_fee(
origin: OriginFor,
pool_id: T::PoolId,
change_id: T::Hash,
- ) -> DispatchResult {
+ ) -> DispatchResultWithPostInfo {
ensure_signed(origin)?;
ensure!(
@@ -370,16 +370,16 @@ pub mod pallet {
let (fee_id, bucket, fee) = Self::get_released_change(pool_id, change_id)
.map(|Change::AppendFee(id, bucket, fee)| (id, bucket, fee))?;
- Self::add_fee_with_id(pool_id, fee_id, bucket, fee)?;
+ let fee_count = Self::add_fee_with_id(pool_id, fee_id, bucket, fee)?;
- Ok(())
+ Ok(Some(T::WeightInfo::apply_new_fee(fee_count)).into())
}
/// Remove a fee.
///
/// Origin must be the fee editor.
#[pallet::call_index(2)]
- #[pallet::weight(Weight::from_parts(10_000, 0))]
+ #[pallet::weight(T::WeightInfo::remove_fee(T::MaxPoolFeesPerBucket::get()))]
pub fn remove_fee(origin: OriginFor, fee_id: T::FeeId) -> DispatchResult {
let who = ensure_signed(origin)?;
@@ -397,17 +397,17 @@ pub mod pallet {
///
/// Origin must be the fee destination.
#[pallet::call_index(3)]
- #[pallet::weight(Weight::from_parts(10_000, 0))]
+ #[pallet::weight(T::WeightInfo::charge_fee(T::MaxPoolFeesPerBucket::get()))]
pub fn charge_fee(
origin: OriginFor,
fee_id: T::FeeId,
amount: T::Balance,
- ) -> DispatchResult {
+ ) -> DispatchResultWithPostInfo {
let who = ensure_signed(origin)?;
ensure!(!amount.is_zero(), Error::::NothingCharged);
- let (pool_id, pending) = Self::mutate_active_fee(fee_id, |fee| {
+ let (pool_id, pending, fee_count) = Self::mutate_active_fee(fee_id, |fee| {
ensure!(
fee.destination == who,
DispatchError::from(Error::::UnauthorizedCharge)
@@ -429,24 +429,24 @@ pub mod pallet {
pending,
});
- Ok(())
+ Ok(Some(T::WeightInfo::charge_fee(fee_count)).into())
}
/// Cancel a charged fee.
///
/// Origin must be the fee destination.
#[pallet::call_index(4)]
- #[pallet::weight(Weight::from_parts(10_000, 0))]
+ #[pallet::weight(T::WeightInfo::uncharge_fee(T::MaxPoolFeesPerBucket::get()))]
pub fn uncharge_fee(
origin: OriginFor,
fee_id: T::FeeId,
amount: T::Balance,
- ) -> DispatchResult {
+ ) -> DispatchResultWithPostInfo {
let who = ensure_signed(origin)?;
ensure!(!amount.is_zero(), Error::::NothingUncharged);
- let (pool_id, pending) = Self::mutate_active_fee(fee_id, |fee| {
+ let (pool_id, pending, fee_count) = Self::mutate_active_fee(fee_id, |fee| {
ensure!(
fee.destination == who,
DispatchError::from(Error::::UnauthorizedCharge)
@@ -468,7 +468,7 @@ pub mod pallet {
pending,
});
- Ok(())
+ Ok(Some(T::WeightInfo::uncharge_fee(fee_count)).into())
}
/// Update the negative portfolio valuation via pending amounts of the
@@ -480,7 +480,7 @@ pub mod pallet {
/// updated in the current timestamp. In the future, this coupling will
/// be handled by an accounting pallet.
#[pallet::call_index(5)]
- #[pallet::weight(Weight::from_parts(10_000, 0))]
+ #[pallet::weight(T::WeightInfo::update_portfolio_valuation(T::MaxPoolFeesPerBucket::get()))]
pub fn update_portfolio_valuation(
origin: OriginFor,
pool_id: T::PoolId,
@@ -492,11 +492,10 @@ pub mod pallet {
Error::::PoolNotFound
);
- let (_, _count) =
+ let (_, count) =
Self::update_portfolio_valuation_for_pool(pool_id, &mut T::Balance::zero())?;
- // Ok(Some(T::WeightInfo::update_portfolio_valuation(count)).into())
- Ok(Some(T::DbWeight::get().reads(1)).into())
+ Ok(Some(T::WeightInfo::update_portfolio_valuation(count)).into())
}
}
@@ -525,7 +524,7 @@ pub mod pallet {
fn mutate_active_fee(
fee_id: T::FeeId,
mut f: impl FnMut(&mut PoolFeeOf) -> Result,
- ) -> Result<(T::PoolId, T::Balance), DispatchError> {
+ ) -> Result<(T::PoolId, T::Balance, u32), DispatchError> {
let (pool_id, bucket) =
FeeIdsToPoolBucket::::get(fee_id).ok_or(Error::::FeeNotFound)?;
@@ -536,9 +535,9 @@ pub mod pallet {
.ok_or(Error::::FeeNotFound)?;
if let Some(fee) = fees.get_mut(pos) {
- Ok((pool_id, f(fee)?))
+ Ok((pool_id, f(fee)?, fees.len().saturated_into()))
} else {
- Ok((pool_id, T::Balance::zero()))
+ Ok((pool_id, T::Balance::zero(), fees.len().saturated_into()))
}
})
}
@@ -767,7 +766,7 @@ pub mod pallet {
fee_id: T::FeeId,
bucket: PoolFeeBucket,
fee: PoolFeeInfoOf,
- ) -> DispatchResult {
+ ) -> Result {
ensure!(
!FeeIdsToPoolBucket::::contains_key(fee_id),
Error::::FeeIdAlreadyExists
@@ -775,10 +774,11 @@ pub mod pallet {
FeeIdsToPoolBucket::::insert(fee_id, (pool_id, bucket));
FeeIds::::mutate(pool_id, bucket, |list| list.try_push(fee_id))
.map_err(|_| Error::::MaxPoolFeesPerBucket)?;
- ActiveFees::::mutate(pool_id, bucket, |list| {
+ let fee_count = ActiveFees::::mutate(pool_id, bucket, |list| {
list.try_push(PoolFeeOf::::from_info(fee.clone(), fee_id))
- })
- .map_err(|_| Error::::MaxPoolFeesPerBucket)?;
+ .map_err(|_| Error::::MaxPoolFeesPerBucket)?;
+ Ok::>(list.len())
+ })?;
Self::deposit_event(Event::::Added {
pool_id,
@@ -787,7 +787,7 @@ pub mod pallet {
fee_id,
});
- Ok(())
+ Ok(fee_count.saturated_into())
}
// Returns all fees of a pool divided by the buckets
@@ -803,7 +803,7 @@ pub mod pallet {
}
}
- impl PoolFees for Pallet {
+ impl PoolFeesMutate for Pallet {
type FeeInfo = PoolFeeInfoOf;
type PoolId = T::PoolId;
@@ -813,7 +813,15 @@ pub mod pallet {
fee: Self::FeeInfo,
) -> Result<(), DispatchError> {
let fee_id = Self::generate_fee_id()?;
- Self::add_fee_with_id(pool_id, fee_id, bucket, fee)
+ Self::add_fee_with_id(pool_id, fee_id, bucket, fee).map(|_| ())
+ }
+ }
+
+ impl PoolFeesInspect for Pallet {
+ type PoolId = T::PoolId;
+
+ fn get_max_fee_count() -> u32 {
+ T::MaxFeesPerPool::get()
}
fn get_max_fees_per_bucket() -> u32 {
@@ -823,6 +831,12 @@ pub mod pallet {
fn get_pool_fee_bucket_count(pool: Self::PoolId, bucket: PoolFeeBucket) -> u32 {
ActiveFees::::get(pool, bucket).len().saturated_into()
}
+
+ fn get_pool_fee_count(pool: Self::PoolId) -> u32 {
+ PoolFeeBucket::iter().fold(0u32, |count, bucket| {
+ count.saturating_add(Self::get_pool_fee_bucket_count(pool, bucket))
+ })
+ }
}
impl EpochTransitionHook for Pallet {
diff --git a/pallets/pool-fees/src/mock.rs b/pallets/pool-fees/src/mock.rs
index 003000ae22..ab95b638ef 100644
--- a/pallets/pool-fees/src/mock.rs
+++ b/pallets/pool-fees/src/mock.rs
@@ -219,6 +219,7 @@ impl pallet_pool_fees::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Time = MockTime;
type Tokens = OrmlTokens;
+ type WeightInfo = ();
}
pub fn new_fee(amount: PoolFeeType) -> PoolFeeInfoOf {
diff --git a/pallets/pool-fees/src/tests.rs b/pallets/pool-fees/src/tests.rs
index a7040cc315..06285e0a4e 100644
--- a/pallets/pool-fees/src/tests.rs
+++ b/pallets/pool-fees/src/tests.rs
@@ -1365,3 +1365,50 @@ mod disbursements {
}
}
}
+
+mod inspect {
+ use cfg_traits::fee::PoolFeesInspect;
+
+ use super::*;
+ use crate::mock::{default_chargeable_fee, NAV};
+
+ #[test]
+ fn max_fee_count() {
+ ExtBuilder::default().set_aum(NAV).build().execute_with(|| {
+ assert_eq!(
+ PoolFees::get_max_fee_count(),
+ ::MaxFeesPerPool::get()
+ );
+ })
+ }
+
+ #[test]
+ fn max_pool_fees_per_bucket() {
+ ExtBuilder::default().set_aum(NAV).build().execute_with(|| {
+ assert_eq!(
+ PoolFees::get_max_fees_per_bucket(),
+ ::MaxPoolFeesPerBucket::get()
+ );
+ })
+ }
+
+ #[test]
+ fn pool_fee_count() {
+ ExtBuilder::default().set_aum(NAV).build().execute_with(|| {
+ assert_eq!(PoolFees::get_pool_fee_count(POOL), 0u32);
+
+ add_fees(vec![default_chargeable_fee()]);
+ assert_eq!(PoolFees::get_pool_fee_count(POOL), 1u32);
+ })
+ }
+
+ #[test]
+ fn bucket_pool_fee_count() {
+ ExtBuilder::default().set_aum(NAV).build().execute_with(|| {
+ assert_eq!(PoolFees::get_pool_fee_bucket_count(POOL, BUCKET), 0u32);
+
+ add_fees(vec![default_chargeable_fee()]);
+ assert_eq!(PoolFees::get_pool_fee_bucket_count(POOL, BUCKET), 1u32);
+ })
+ }
+}
diff --git a/pallets/pool-fees/src/weights.rs b/pallets/pool-fees/src/weights.rs
new file mode 100644
index 0000000000..a13618f548
--- /dev/null
+++ b/pallets/pool-fees/src/weights.rs
@@ -0,0 +1,144 @@
+//! Autogenerated weights for pallet_pool_fees
+//!
+//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION
+//! 4.0.0-dev DATE: 2024-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH
+//! RANGE: `[]` WORST CASE MAP SIZE: `1000000`
+//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
+//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN:
+//! Some("centrifuge-dev"), DB CACHE: 1024
+
+// Executed Command:
+// target/release/centrifuge-chain
+// benchmark
+// pallet
+// --chain=development
+// --steps=50
+// --repeat=20
+// --pallet=pallet-pool-fees
+// --extrinsic=*
+// --execution=wasm
+// --wasm-execution=compiled
+// --heap-pages=4096
+// --template=./scripts/frame-weight-template.hbs
+// --output=./pallets/pool-fees/src/weights.rs
+
+#![allow(unused_parens)]
+#![allow(unused_imports)]
+
+use frame_support::{
+ traits::Get,
+ weights::{constants::RocksDbWeight, Weight},
+};
+use sp_std::marker::PhantomData;
+
+/// Weight functions needed for pallet_pool_fees.
+pub trait WeightInfo {
+ fn propose_new_fee() -> Weight;
+ fn apply_new_fee(n: u32) -> Weight;
+ fn remove_fee(n: u32) -> Weight;
+ fn charge_fee(n: u32) -> Weight;
+ fn uncharge_fee(n: u32) -> Weight;
+ fn update_portfolio_valuation(n: u32) -> Weight;
+}
+
+/// Weights for pallet_pool_fees using the Substrate node and recommended
+/// hardware.
+pub struct SubstrateWeight(PhantomData);
+impl WeightInfo for SubstrateWeight {
+ fn propose_new_fee() -> Weight {
+ Weight::from_parts(43_301_000, 0)
+ .saturating_add(Weight::from_parts(0, 4278))
+ .saturating_add(T::DbWeight::get().reads(4))
+ .saturating_add(T::DbWeight::get().writes(2))
+ }
+
+ fn apply_new_fee(n: u32) -> Weight {
+ Weight::from_parts(55_397_177, 0)
+ .saturating_add(Weight::from_parts(0, 17508))
+ .saturating_add(Weight::from_parts(289_076, 0).saturating_mul(n.into()))
+ .saturating_add(T::DbWeight::get().reads(5))
+ .saturating_add(T::DbWeight::get().writes(4))
+ }
+
+ fn remove_fee(n: u32) -> Weight {
+ Weight::from_parts(38_370_638, 0)
+ .saturating_add(Weight::from_parts(0, 17508))
+ .saturating_add(Weight::from_parts(411_219, 0).saturating_mul(n.into()))
+ .saturating_add(T::DbWeight::get().reads(3))
+ .saturating_add(T::DbWeight::get().writes(3))
+ }
+
+ fn charge_fee(n: u32) -> Weight {
+ Weight::from_parts(27_231_143, 0)
+ .saturating_add(Weight::from_parts(0, 17508))
+ .saturating_add(Weight::from_parts(259_721, 0).saturating_mul(n.into()))
+ .saturating_add(T::DbWeight::get().reads(2))
+ .saturating_add(T::DbWeight::get().writes(1))
+ }
+
+ fn uncharge_fee(n: u32) -> Weight {
+ Weight::from_parts(26_250_765, 0)
+ .saturating_add(Weight::from_parts(0, 17508))
+ .saturating_add(Weight::from_parts(260_625, 0).saturating_mul(n.into()))
+ .saturating_add(T::DbWeight::get().reads(2))
+ .saturating_add(T::DbWeight::get().writes(1))
+ }
+
+ fn update_portfolio_valuation(n: u32) -> Weight {
+ Weight::from_parts(42_962_181, 0)
+ .saturating_add(Weight::from_parts(0, 17508))
+ .saturating_add(Weight::from_parts(5_880_090, 0).saturating_mul(n.into()))
+ .saturating_add(T::DbWeight::get().reads(5))
+ .saturating_add(T::DbWeight::get().writes(2))
+ }
+}
+
+// For backwards compatibility and tests
+impl WeightInfo for () {
+ fn propose_new_fee() -> Weight {
+ Weight::from_parts(43_301_000, 0)
+ .saturating_add(Weight::from_parts(0, 4278))
+ .saturating_add(RocksDbWeight::get().reads(4))
+ .saturating_add(RocksDbWeight::get().writes(2))
+ }
+
+ fn apply_new_fee(n: u32) -> Weight {
+ Weight::from_parts(55_397_177, 0)
+ .saturating_add(Weight::from_parts(0, 17508))
+ .saturating_add(Weight::from_parts(289_076, 0).saturating_mul(n.into()))
+ .saturating_add(RocksDbWeight::get().reads(5))
+ .saturating_add(RocksDbWeight::get().writes(4))
+ }
+
+ fn remove_fee(n: u32) -> Weight {
+ Weight::from_parts(38_370_638, 0)
+ .saturating_add(Weight::from_parts(0, 17508))
+ .saturating_add(Weight::from_parts(411_219, 0).saturating_mul(n.into()))
+ .saturating_add(RocksDbWeight::get().reads(3))
+ .saturating_add(RocksDbWeight::get().writes(3))
+ }
+
+ fn charge_fee(n: u32) -> Weight {
+ Weight::from_parts(27_231_143, 0)
+ .saturating_add(Weight::from_parts(0, 17508))
+ .saturating_add(Weight::from_parts(259_721, 0).saturating_mul(n.into()))
+ .saturating_add(RocksDbWeight::get().reads(2))
+ .saturating_add(RocksDbWeight::get().writes(1))
+ }
+
+ fn uncharge_fee(n: u32) -> Weight {
+ Weight::from_parts(26_250_765, 0)
+ .saturating_add(Weight::from_parts(0, 17508))
+ .saturating_add(Weight::from_parts(260_625, 0).saturating_mul(n.into()))
+ .saturating_add(RocksDbWeight::get().reads(2))
+ .saturating_add(RocksDbWeight::get().writes(1))
+ }
+
+ fn update_portfolio_valuation(n: u32) -> Weight {
+ Weight::from_parts(42_962_181, 0)
+ .saturating_add(Weight::from_parts(0, 17508))
+ .saturating_add(Weight::from_parts(5_880_090, 0).saturating_mul(n.into()))
+ .saturating_add(RocksDbWeight::get().reads(5))
+ .saturating_add(RocksDbWeight::get().writes(2))
+ }
+}
diff --git a/pallets/pool-registry/src/lib.rs b/pallets/pool-registry/src/lib.rs
index 751eb34565..c1e7e2e632 100644
--- a/pallets/pool-registry/src/lib.rs
+++ b/pallets/pool-registry/src/lib.rs
@@ -14,8 +14,9 @@
#![allow(clippy::too_many_arguments)]
use cfg_traits::{
- fee::PoolFeeBucket, investments::TrancheCurrency, Permissions, PoolMutate,
- PoolWriteOffPolicyMutate, UpdateState,
+ fee::{PoolFeeBucket, PoolFeesInspect},
+ investments::TrancheCurrency,
+ Permissions, PoolMutate, PoolWriteOffPolicyMutate, UpdateState,
};
use cfg_types::{
permissions::{PermissionScope, PoolRole, Role},
@@ -166,6 +167,9 @@ pub mod pallet {
CustomMetadata = CustomMetadata,
>;
+ /// The source of truth for the pool fees counters;
+ type PoolFeesInspect: PoolFeesInspect;
+
/// Weight Information
type WeightInfo: WeightInfo;
}
@@ -239,7 +243,10 @@ pub mod pallet {
/// Returns an error if the requested pool ID is already in
/// use, or if the tranche configuration cannot be used.
#[allow(clippy::too_many_arguments)]
- #[pallet::weight(T::WeightInfo::register(tranche_inputs.len().try_into().unwrap_or(u32::MAX)))]
+ #[pallet::weight(T::WeightInfo::register(
+ tranche_inputs.len().try_into().unwrap_or(u32::MAX),
+ pool_fees.len().try_into().unwrap_or(u32::MAX))
+ )]
#[transactional]
#[pallet::call_index(0)]
pub fn register(
@@ -308,7 +315,13 @@ pub mod pallet {
///
/// The caller must have the `PoolAdmin` role in order to
/// invoke this extrinsic.
- #[pallet::weight(T::WeightInfo::update_no_execution(T::MaxTranches::get()).max(T::WeightInfo::update_and_execute(T::MaxTranches::get())))]
+ #[pallet::weight(T::WeightInfo::update_no_execution(
+ T::MaxTranches::get(),
+ T::PoolFeesInspect::get_max_fee_count()).max(
+ T::WeightInfo::update_and_execute(T::MaxTranches::get(),
+ T::PoolFeesInspect::get_max_fee_count()
+ ))
+ )]
#[pallet::call_index(1)]
pub fn update(
origin: OriginFor,
@@ -339,14 +352,20 @@ pub mod pallet {
Self::deposit_event(Event::UpdateRegistered { pool_id });
let weight = match state {
- UpdateState::NoExecution => T::WeightInfo::update_no_execution(0),
+ UpdateState::NoExecution => T::WeightInfo::update_no_execution(0, 0),
UpdateState::Executed(num_tranches) => {
Self::deposit_event(Event::UpdateExecuted { pool_id });
- T::WeightInfo::update_and_execute(num_tranches)
+ T::WeightInfo::update_and_execute(
+ num_tranches,
+ T::PoolFeesInspect::get_pool_fee_count(pool_id),
+ )
}
UpdateState::Stored(num_tranches) => {
Self::deposit_event(Event::UpdateStored { pool_id });
- T::WeightInfo::update_no_execution(num_tranches)
+ T::WeightInfo::update_no_execution(
+ num_tranches,
+ T::PoolFeesInspect::get_pool_fee_count(pool_id),
+ )
}
};
Ok(Some(weight).into())
@@ -358,7 +377,10 @@ pub mod pallet {
/// and, if required, if there are no outstanding
/// redeem orders. If both apply, then the scheduled
/// changes are applied.
- #[pallet::weight(T::WeightInfo::execute_update(T::MaxTranches::get()))]
+ #[pallet::weight(T::WeightInfo::execute_update(
+ T::MaxTranches::get(),
+ T::PoolFeesInspect::get_max_fee_count()
+ ))]
#[pallet::call_index(2)]
pub fn execute_update(
origin: OriginFor,
@@ -367,14 +389,18 @@ pub mod pallet {
ensure_signed(origin)?;
let num_tranches = T::ModifyPool::execute_update(pool_id)?;
- Ok(Some(T::WeightInfo::execute_update(num_tranches)).into())
+ let num_fees = T::PoolFeesInspect::get_pool_fee_count(pool_id);
+ Ok(Some(T::WeightInfo::execute_update(num_tranches, num_fees)).into())
}
/// Sets the IPFS hash for the pool metadata information.
///
/// The caller must have the `PoolAdmin` role in order to
/// invoke this extrinsic.
- #[pallet::weight(T::WeightInfo::set_metadata(metadata.len().try_into().unwrap_or(u32::MAX)))]
+ #[pallet::weight(T::WeightInfo::set_metadata(
+ metadata.len().try_into().unwrap_or(u32::MAX),
+ T::PoolFeesInspect::get_max_fee_count()
+ ))]
#[pallet::call_index(3)]
pub fn set_metadata(
origin: OriginFor,
diff --git a/pallets/pool-registry/src/mock.rs b/pallets/pool-registry/src/mock.rs
index fae60dce5f..a17826fe8f 100644
--- a/pallets/pool-registry/src/mock.rs
+++ b/pallets/pool-registry/src/mock.rs
@@ -19,8 +19,9 @@ use cfg_primitives::{
TrancheWeight,
};
use cfg_traits::{
- fee::PoolFeeBucket, investments::OrderManager, Millis, PoolMutate, PoolUpdateGuard,
- PreConditions, Seconds, UpdateState,
+ fee::{PoolFeeBucket, PoolFeesInspect},
+ investments::OrderManager,
+ Millis, PoolMutate, PoolUpdateGuard, PreConditions, Seconds, UpdateState,
};
use cfg_types::{
fixed_point::{Quantity, Rate},
@@ -212,6 +213,7 @@ impl pallet_pool_fees::Config for Test {
type RuntimeEvent = RuntimeEvent;
type Time = Timestamp;
type Tokens = OrmlTokens;
+ type WeightInfo = ();
}
parameter_types! {
@@ -251,7 +253,7 @@ where
>;
type PoolFeeInput = (
PoolFeeBucket,
- <::PoolFees as cfg_traits::fee::PoolFees>::FeeInfo,
+ <::PoolFees as cfg_traits::fee::PoolFeesMutate>::FeeInfo,
);
type TrancheInput = TrancheInput<
::Rate,
@@ -297,6 +299,28 @@ impl PreConditions for Always {
}
}
+/// NOTE: Amounts only used for weight determination
+pub struct MockPoolFeesInspect;
+impl PoolFeesInspect for MockPoolFeesInspect {
+ type PoolId = PoolId;
+
+ fn get_max_fee_count() -> u32 {
+ 100
+ }
+
+ fn get_max_fees_per_bucket() -> u32 {
+ 100
+ }
+
+ fn get_pool_fee_count(_pool: Self::PoolId) -> u32 {
+ 100
+ }
+
+ fn get_pool_fee_bucket_count(_pool: Self::PoolId, _bucket: PoolFeeBucket) -> u32 {
+ 100
+ }
+}
+
impl Config for Test {
type AssetRegistry = RegistryMock;
type Balance = Balance;
@@ -310,6 +334,7 @@ impl Config for Test {
type ModifyWriteOffPolicy = MockWriteOffPolicy;
type Permission = PermissionsMock;
type PoolCreateOrigin = EnsureSigned;
+ type PoolFeesInspect = MockPoolFeesInspect;
type PoolId = u64;
type RuntimeEvent = RuntimeEvent;
type TrancheCurrency = TrancheCurrency;
diff --git a/pallets/pool-registry/src/weights.rs b/pallets/pool-registry/src/weights.rs
index d751fd4074..17bc795844 100644
--- a/pallets/pool-registry/src/weights.rs
+++ b/pallets/pool-registry/src/weights.rs
@@ -14,31 +14,31 @@
use frame_support::weights::Weight;
pub trait WeightInfo {
- fn register(n: u32) -> Weight;
- fn update_no_execution(n: u32) -> Weight;
- fn update_and_execute(n: u32) -> Weight;
- fn execute_update(n: u32) -> Weight;
- fn set_metadata(n: u32) -> Weight;
+ fn register(n: u32, m: u32) -> Weight;
+ fn update_no_execution(n: u32, m: u32) -> Weight;
+ fn update_and_execute(n: u32, m: u32) -> Weight;
+ fn execute_update(n: u32, m: u32) -> Weight;
+ fn set_metadata(n: u32, m: u32) -> Weight;
}
impl WeightInfo for () {
- fn register(_: u32) -> Weight {
+ fn register(_n: u32, _m: u32) -> Weight {
Weight::zero()
}
- fn update_no_execution(_: u32) -> Weight {
+ fn update_no_execution(_n: u32, _m: u32) -> Weight {
Weight::zero()
}
- fn update_and_execute(_: u32) -> Weight {
+ fn update_and_execute(_n: u32, _m: u32) -> Weight {
Weight::zero()
}
- fn execute_update(_: u32) -> Weight {
+ fn execute_update(_n: u32, _m: u32) -> Weight {
Weight::zero()
}
- fn set_metadata(_n: u32) -> Weight {
+ fn set_metadata(_n: u32, _m: u32) -> Weight {
Weight::zero()
}
}
diff --git a/pallets/pool-system/src/benchmarking.rs b/pallets/pool-system/src/benchmarking.rs
index 0d6fc39a6f..8ee8df43a9 100644
--- a/pallets/pool-system/src/benchmarking.rs
+++ b/pallets/pool-system/src/benchmarking.rs
@@ -15,7 +15,7 @@
use cfg_primitives::PoolEpochId;
use cfg_traits::{
benchmarking::PoolFeesBenchmarkHelper,
- fee::{PoolFeeBucket, PoolFees},
+ fee::{PoolFeeBucket, PoolFeesInspect},
investments::TrancheCurrency as _,
UpdateState,
};
diff --git a/pallets/pool-system/src/impls.rs b/pallets/pool-system/src/impls.rs
index 984d2d53e5..b8ba8c2c1f 100644
--- a/pallets/pool-system/src/impls.rs
+++ b/pallets/pool-system/src/impls.rs
@@ -12,7 +12,7 @@
use cfg_traits::{
changes::ChangeGuard,
- fee::{PoolFeeBucket, PoolFees},
+ fee::{PoolFeeBucket, PoolFeesMutate},
investments::{InvestmentAccountant, TrancheCurrency},
CurrencyPair, PoolUpdateGuard, PriceValue, TrancheTokenPrice, UpdateState,
};
diff --git a/pallets/pool-system/src/lib.rs b/pallets/pool-system/src/lib.rs
index aacf7500a1..cc1a55b06b 100644
--- a/pallets/pool-system/src/lib.rs
+++ b/pallets/pool-system/src/lib.rs
@@ -177,7 +177,7 @@ impl Default for Release {
#[frame_support::pallet]
pub mod pallet {
use cfg_traits::{
- fee::{PoolFeeBucket, PoolFees},
+ fee::{PoolFeeBucket, PoolFeesInspect, PoolFeesMutate},
investments::{OrderManager, TrancheCurrency as TrancheCurrencyT},
EpochTransitionHook, PoolUpdateGuard,
};
@@ -324,14 +324,14 @@ pub mod pallet {
type Time: TimeAsSecs;
/// Add pool fees
- type PoolFees: PoolFees<
- FeeInfo = PoolFeeInfo<
- ::AccountId,
- Self::Balance,
- Self::Rate,
- >,
- PoolId = Self::PoolId,
- >;
+ type PoolFees: PoolFeesMutate<
+ FeeInfo = PoolFeeInfo<
+ ::AccountId,
+ Self::Balance,
+ Self::Rate,
+ >,
+ PoolId = Self::PoolId,
+ > + PoolFeesInspect;
/// Epoch transition hook required for Pool Fees
type OnEpochTransition: EpochTransitionHook<
diff --git a/pallets/pool-system/src/mock.rs b/pallets/pool-system/src/mock.rs
index 3727096b59..93916bd1a2 100644
--- a/pallets/pool-system/src/mock.rs
+++ b/pallets/pool-system/src/mock.rs
@@ -401,6 +401,7 @@ impl pallet_pool_fees::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Time = Timestamp;
type Tokens = Tokens;
+ type WeightInfo = ();
}
parameter_types! {
diff --git a/pallets/token-mux/src/benchmarking.rs b/pallets/token-mux/src/benchmarking.rs
index 8eb749ffae..c98f478575 100644
--- a/pallets/token-mux/src/benchmarking.rs
+++ b/pallets/token-mux/src/benchmarking.rs
@@ -211,7 +211,7 @@ mod benchmarks {
}
#[benchmark]
- fn match_swap_to_local() -> Result<(), BenchmarkError> {
+ fn match_swap() -> Result<(), BenchmarkError> {
#[cfg(test)]
init_mocks();
diff --git a/runtime/altair/src/lib.rs b/runtime/altair/src/lib.rs
index 2ba3b06361..ab3e308fa0 100644
--- a/runtime/altair/src/lib.rs
+++ b/runtime/altair/src/lib.rs
@@ -1505,6 +1505,7 @@ impl pallet_pool_registry::Config for Runtime {
type ModifyWriteOffPolicy = pallet_loans::Pallet;
type Permission = Permissions;
type PoolCreateOrigin = EnsureRoot;
+ type PoolFeesInspect = PoolFees;
type PoolId = PoolId;
type RuntimeEvent = RuntimeEvent;
type TrancheCurrency = TrancheCurrency;
@@ -1534,6 +1535,7 @@ impl pallet_pool_fees::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Time = Timestamp;
type Tokens = Tokens;
+ type WeightInfo = weights::pallet_pool_fees::WeightInfo;
}
pub struct PoolCurrency;
@@ -1816,8 +1818,7 @@ impl pallet_token_mux::Config for Runtime {
type PalletId = TokenMuxPalletId;
type RuntimeEvent = RuntimeEvent;
type Tokens = OrmlTokens;
- // TODO(william): Change to weights once they exist
- type WeightInfo = ();
+ type WeightInfo = weights::pallet_token_mux::WeightInfo;
}
parameter_types! {
diff --git a/runtime/altair/src/migrations.rs b/runtime/altair/src/migrations.rs
index 79e60ab196..ef5a3bfc34 100644
--- a/runtime/altair/src/migrations.rs
+++ b/runtime/altair/src/migrations.rs
@@ -37,7 +37,7 @@ pub type UpgradeAltair1034 = (
runtime_common::migrations::nuke::ResetPallet,
// At minimum, bumps storage version from 0 to 3
runtime_common::migrations::nuke::ResetPallet,
- // At minimum, bumps storage version from 0 to 1
+ // At minimum, bumps storage version from 0 to 2
runtime_common::migrations::nuke::ResetPallet,
// At minimum, bumps storage version from 0 to 1
runtime_common::migrations::nuke::ResetPallet,
diff --git a/runtime/altair/src/weights/cumulus_pallet_xcmp_queue.rs b/runtime/altair/src/weights/cumulus_pallet_xcmp_queue.rs
index a762ba3386..98adf2d4c1 100644
--- a/runtime/altair/src/weights/cumulus_pallet_xcmp_queue.rs
+++ b/runtime/altair/src/weights/cumulus_pallet_xcmp_queue.rs
@@ -2,7 +2,7 @@
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
@@ -36,11 +36,11 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
/// Proof Skipped: XcmpQueue QueueConfig (max_values: Some(1), max_size: None, mode: Measured)
fn set_config_with_u32() -> Weight {
// Proof Size summary in bytes:
- // Measured: `142`
- // Estimated: `1627`
- // Minimum execution time: 8_516_000 picoseconds.
- Weight::from_parts(9_027_000, 0)
- .saturating_add(Weight::from_parts(0, 1627))
+ // Measured: `109`
+ // Estimated: `1594`
+ // Minimum execution time: 8_726_000 picoseconds.
+ Weight::from_parts(9_317_000, 0)
+ .saturating_add(Weight::from_parts(0, 1594))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -48,11 +48,11 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
/// Proof Skipped: XcmpQueue QueueConfig (max_values: Some(1), max_size: None, mode: Measured)
fn set_config_with_weight() -> Weight {
// Proof Size summary in bytes:
- // Measured: `142`
- // Estimated: `1627`
- // Minimum execution time: 8_436_000 picoseconds.
- Weight::from_parts(8_787_000, 0)
- .saturating_add(Weight::from_parts(0, 1627))
+ // Measured: `109`
+ // Estimated: `1594`
+ // Minimum execution time: 8_666_000 picoseconds.
+ Weight::from_parts(9_016_000, 0)
+ .saturating_add(Weight::from_parts(0, 1594))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
diff --git a/runtime/altair/src/weights/mod.rs b/runtime/altair/src/weights/mod.rs
index 1b23cbecaf..5f02a62635 100644
--- a/runtime/altair/src/weights/mod.rs
+++ b/runtime/altair/src/weights/mod.rs
@@ -33,6 +33,7 @@ pub mod pallet_oracle_collection;
pub mod pallet_oracle_feed;
pub mod pallet_order_book;
pub mod pallet_permissions;
+pub mod pallet_pool_fees;
pub mod pallet_pool_registry;
pub mod pallet_pool_system;
pub mod pallet_preimage;
@@ -42,6 +43,7 @@ pub mod pallet_restricted_tokens;
pub mod pallet_scheduler;
pub mod pallet_session;
pub mod pallet_timestamp;
+pub mod pallet_token_mux;
pub mod pallet_transfer_allowlist;
pub mod pallet_treasury;
pub mod pallet_uniques;
diff --git a/runtime/altair/src/weights/pallet_anchors.rs b/runtime/altair/src/weights/pallet_anchors.rs
index eff0b03882..3f76e00e8c 100644
--- a/runtime/altair/src/weights/pallet_anchors.rs
+++ b/runtime/altair/src/weights/pallet_anchors.rs
@@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_anchors`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
@@ -40,10 +40,10 @@ impl pallet_anchors::WeightInfo for WeightInfo {
/// Proof: Fees FeeBalances (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
fn pre_commit() -> Weight {
// Proof Size summary in bytes:
- // Measured: `301`
+ // Measured: `334`
// Estimated: `3581`
- // Minimum execution time: 40_516_000 picoseconds.
- Weight::from_parts(41_698_000, 0)
+ // Minimum execution time: 39_573_000 picoseconds.
+ Weight::from_parts(40_445_000, 0)
.saturating_add(Weight::from_parts(0, 3581))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(1))
@@ -70,8 +70,8 @@ impl pallet_anchors::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `668`
// Estimated: `3581`
- // Minimum execution time: 70_522_000 picoseconds.
- Weight::from_parts(72_225_000, 0)
+ // Minimum execution time: 70_332_000 picoseconds.
+ Weight::from_parts(71_053_000, 0)
.saturating_add(Weight::from_parts(0, 3581))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(5))
@@ -82,8 +82,8 @@ impl pallet_anchors::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `12450`
// Estimated: `260090`
- // Minimum execution time: 2_122_828_000 picoseconds.
- Weight::from_parts(2_149_347_000, 0)
+ // Minimum execution time: 2_141_176_000 picoseconds.
+ Weight::from_parts(2_160_262_000, 0)
.saturating_add(Weight::from_parts(0, 260090))
.saturating_add(T::DbWeight::get().reads(100))
.saturating_add(T::DbWeight::get().writes(100))
@@ -504,10 +504,10 @@ impl pallet_anchors::WeightInfo for WeightInfo {
/// Proof Skipped: unknown `0xf7e4b8a5415405a940e730546df85583c8c23956d99a3be18e09eebf3639d312` (r:1 w:1)
fn evict_anchors() -> Weight {
// Proof Size summary in bytes:
- // Measured: `18357`
+ // Measured: `18324`
// Estimated: `254990`
- // Minimum execution time: 1_937_882_000 picoseconds.
- Weight::from_parts(1_967_587_000, 0)
+ // Minimum execution time: 1_942_586_000 picoseconds.
+ Weight::from_parts(1_970_939_000, 0)
.saturating_add(Weight::from_parts(0, 254990))
.saturating_add(T::DbWeight::get().reads(504))
.saturating_add(T::DbWeight::get().writes(402))
diff --git a/runtime/altair/src/weights/pallet_balances.rs b/runtime/altair/src/weights/pallet_balances.rs
index 8d008a890b..d5dd2f25f9 100644
--- a/runtime/altair/src/weights/pallet_balances.rs
+++ b/runtime/altair/src/weights/pallet_balances.rs
@@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_balances`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
@@ -38,8 +38,8 @@ impl pallet_balances::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `52`
// Estimated: `3593`
- // Minimum execution time: 83_116_000 picoseconds.
- Weight::from_parts(84_969_000, 0)
+ // Minimum execution time: 84_377_000 picoseconds.
+ Weight::from_parts(86_001_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
@@ -50,8 +50,8 @@ impl pallet_balances::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `52`
// Estimated: `3593`
- // Minimum execution time: 63_118_000 picoseconds.
- Weight::from_parts(64_100_000, 0)
+ // Minimum execution time: 63_528_000 picoseconds.
+ Weight::from_parts(66_343_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
@@ -60,10 +60,10 @@ impl pallet_balances::WeightInfo for WeightInfo {
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn force_set_balance_creating() -> Weight {
// Proof Size summary in bytes:
- // Measured: `207`
+ // Measured: `245`
// Estimated: `3593`
- // Minimum execution time: 23_524_000 picoseconds.
- Weight::from_parts(24_365_000, 0)
+ // Minimum execution time: 25_017_000 picoseconds.
+ Weight::from_parts(25_618_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
@@ -72,10 +72,10 @@ impl pallet_balances::WeightInfo for WeightInfo {
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn force_set_balance_killing() -> Weight {
// Proof Size summary in bytes:
- // Measured: `207`
+ // Measured: `245`
// Estimated: `3593`
- // Minimum execution time: 34_354_000 picoseconds.
- Weight::from_parts(35_467_000, 0)
+ // Minimum execution time: 35_998_000 picoseconds.
+ Weight::from_parts(36_809_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
@@ -86,8 +86,8 @@ impl pallet_balances::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `192`
// Estimated: `6196`
- // Minimum execution time: 87_484_000 picoseconds.
- Weight::from_parts(89_137_000, 0)
+ // Minimum execution time: 88_505_000 picoseconds.
+ Weight::from_parts(89_467_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
@@ -98,8 +98,8 @@ impl pallet_balances::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `52`
// Estimated: `3593`
- // Minimum execution time: 79_338_000 picoseconds.
- Weight::from_parts(80_360_000, 0)
+ // Minimum execution time: 79_478_000 picoseconds.
+ Weight::from_parts(80_871_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
@@ -108,10 +108,10 @@ impl pallet_balances::WeightInfo for WeightInfo {
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn force_unreserve() -> Weight {
// Proof Size summary in bytes:
- // Measured: `207`
+ // Measured: `245`
// Estimated: `3593`
- // Minimum execution time: 27_772_000 picoseconds.
- Weight::from_parts(28_583_000, 0)
+ // Minimum execution time: 29_144_000 picoseconds.
+ Weight::from_parts(29_986_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
@@ -121,13 +121,13 @@ impl pallet_balances::WeightInfo for WeightInfo {
/// The range of component `u` is `[1, 1000]`.
fn upgrade_accounts(u: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `145 + u * (136 ±0)`
+ // Measured: `176 + u * (136 ±0)`
// Estimated: `990 + u * (2603 ±0)`
- // Minimum execution time: 26_750_000 picoseconds.
- Weight::from_parts(27_221_000, 0)
+ // Minimum execution time: 26_740_000 picoseconds.
+ Weight::from_parts(27_652_000, 0)
.saturating_add(Weight::from_parts(0, 990))
- // Standard Error: 11_703
- .saturating_add(Weight::from_parts(21_250_615, 0).saturating_mul(u.into()))
+ // Standard Error: 14_123
+ .saturating_add(Weight::from_parts(21_488_072, 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()))
diff --git a/runtime/altair/src/weights/pallet_block_rewards.rs b/runtime/altair/src/weights/pallet_block_rewards.rs
index b364a228a2..6c4745c4db 100644
--- a/runtime/altair/src/weights/pallet_block_rewards.rs
+++ b/runtime/altair/src/weights/pallet_block_rewards.rs
@@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_block_rewards`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
@@ -44,38 +44,34 @@ impl pallet_block_rewards::WeightInfo for WeightInfo
// Proof Size summary in bytes:
// Measured: `583`
// Estimated: `6196`
- // Minimum execution time: 86_001_000 picoseconds.
- Weight::from_parts(88_175_000, 0)
+ // Minimum execution time: 87_664_000 picoseconds.
+ Weight::from_parts(89_066_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(3))
}
/// Storage: BlockRewards NextSessionChanges (r:1 w:1)
- /// Proof: BlockRewards NextSessionChanges (max_values: Some(1), max_size: Some(2089), added: 2584, mode: MaxEncodedLen)
- /// Storage: BlockRewards ActiveSessionData (r:1 w:0)
- /// Proof: BlockRewards ActiveSessionData (max_values: Some(1), max_size: Some(36), added: 531, mode: MaxEncodedLen)
- fn set_collator_reward() -> Weight {
+ /// Proof: BlockRewards NextSessionChanges (max_values: Some(1), max_size: Some(2097), added: 2592, mode: MaxEncodedLen)
+ fn set_collator_reward_per_session() -> Weight {
// Proof Size summary in bytes:
- // Measured: `106`
- // Estimated: `3574`
- // Minimum execution time: 12_073_000 picoseconds.
- Weight::from_parts(12_514_000, 0)
- .saturating_add(Weight::from_parts(0, 3574))
- .saturating_add(T::DbWeight::get().reads(2))
+ // Measured: `41`
+ // Estimated: `3582`
+ // Minimum execution time: 8_776_000 picoseconds.
+ Weight::from_parts(9_047_000, 0)
+ .saturating_add(Weight::from_parts(0, 3582))
+ .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: BlockRewards NextSessionChanges (r:1 w:1)
- /// Proof: BlockRewards NextSessionChanges (max_values: Some(1), max_size: Some(2089), added: 2584, mode: MaxEncodedLen)
- /// Storage: BlockRewards ActiveSessionData (r:1 w:0)
- /// Proof: BlockRewards ActiveSessionData (max_values: Some(1), max_size: Some(36), added: 531, mode: MaxEncodedLen)
- fn set_total_reward() -> Weight {
+ /// Proof: BlockRewards NextSessionChanges (max_values: Some(1), max_size: Some(2097), added: 2592, mode: MaxEncodedLen)
+ fn set_annual_treasury_inflation_rate() -> Weight {
// Proof Size summary in bytes:
- // Measured: `65`
- // Estimated: `3574`
- // Minimum execution time: 10_921_000 picoseconds.
- Weight::from_parts(11_461_000, 0)
- .saturating_add(Weight::from_parts(0, 3574))
- .saturating_add(T::DbWeight::get().reads(2))
+ // Measured: `41`
+ // Estimated: `3582`
+ // Minimum execution time: 8_706_000 picoseconds.
+ Weight::from_parts(8_937_000, 0)
+ .saturating_add(Weight::from_parts(0, 3582))
+ .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
}
diff --git a/runtime/altair/src/weights/pallet_collator_allowlist.rs b/runtime/altair/src/weights/pallet_collator_allowlist.rs
index a25b7f3930..454bc79499 100644
--- a/runtime/altair/src/weights/pallet_collator_allowlist.rs
+++ b/runtime/altair/src/weights/pallet_collator_allowlist.rs
@@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_collator_allowlist`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
@@ -38,11 +38,11 @@ impl pallet_collator_allowlist::WeightInfo for WeightIn
/// Proof: CollatorAllowlist Allowlist (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen)
fn add() -> Weight {
// Proof Size summary in bytes:
- // Measured: `491`
- // Estimated: `3956`
- // Minimum execution time: 25_318_000 picoseconds.
- Weight::from_parts(25_979_000, 0)
- .saturating_add(Weight::from_parts(0, 3956))
+ // Measured: `524`
+ // Estimated: `3989`
+ // Minimum execution time: 24_856_000 picoseconds.
+ Weight::from_parts(25_497_000, 0)
+ .saturating_add(Weight::from_parts(0, 3989))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -50,10 +50,10 @@ impl pallet_collator_allowlist::WeightInfo for WeightIn
/// Proof: CollatorAllowlist Allowlist (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen)
fn remove() -> Weight {
// Proof Size summary in bytes:
- // Measured: `199`
+ // Measured: `232`
// Estimated: `3497`
- // Minimum execution time: 18_965_000 picoseconds.
- Weight::from_parts(19_727_000, 0)
+ // Minimum execution time: 19_006_000 picoseconds.
+ Weight::from_parts(19_617_000, 0)
.saturating_add(Weight::from_parts(0, 3497))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
diff --git a/runtime/altair/src/weights/pallet_collator_selection.rs b/runtime/altair/src/weights/pallet_collator_selection.rs
index 00b54ac17a..728c4ff030 100644
--- a/runtime/altair/src/weights/pallet_collator_selection.rs
+++ b/runtime/altair/src/weights/pallet_collator_selection.rs
@@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_collator_selection`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
@@ -41,13 +41,13 @@ impl pallet_collator_selection::WeightInfo for WeightIn
/// The range of component `b` is `[1, 100]`.
fn set_invulnerables(b: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `433 + b * (112 ±0)`
- // Estimated: `1420 + b * (2588 ±0)`
- // Minimum execution time: 24_886_000 picoseconds.
- Weight::from_parts(21_711_594, 0)
- .saturating_add(Weight::from_parts(0, 1420))
- // Standard Error: 6_369
- .saturating_add(Weight::from_parts(5_941_326, 0).saturating_mul(b.into()))
+ // Measured: `466 + b * (112 ±0)`
+ // Estimated: `1453 + b * (2588 ±0)`
+ // Minimum execution time: 25_167_000 picoseconds.
+ Weight::from_parts(21_344_671, 0)
+ .saturating_add(Weight::from_parts(0, 1453))
+ // Standard Error: 5_308
+ .saturating_add(Weight::from_parts(5_977_896, 0).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(b.into())))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(Weight::from_parts(0, 2588).saturating_mul(b.into()))
@@ -58,8 +58,8 @@ impl pallet_collator_selection::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 13_986_000 picoseconds.
- Weight::from_parts(14_568_000, 0)
+ // Minimum execution time: 13_606_000 picoseconds.
+ Weight::from_parts(14_337_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -69,8 +69,8 @@ impl pallet_collator_selection::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 10_269_000 picoseconds.
- Weight::from_parts(10_680_000, 0)
+ // Minimum execution time: 10_389_000 picoseconds.
+ Weight::from_parts(10_851_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -91,13 +91,13 @@ impl pallet_collator_selection::WeightInfo for WeightIn
/// The range of component `c` is `[1, 19]`.
fn register_as_candidate(c: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `969 + c * (59 ±0)`
+ // Measured: `1035 + c * (59 ±0)`
// Estimated: `4687 + c * (60 ±0)`
- // Minimum execution time: 65_022_000 picoseconds.
- Weight::from_parts(66_948_233, 0)
+ // Minimum execution time: 65_763_000 picoseconds.
+ Weight::from_parts(67_205_936, 0)
.saturating_add(Weight::from_parts(0, 4687))
- // Standard Error: 10_010
- .saturating_add(Weight::from_parts(235_498, 0).saturating_mul(c.into()))
+ // Standard Error: 4_889
+ .saturating_add(Weight::from_parts(266_792, 0).saturating_mul(c.into()))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(Weight::from_parts(0, 60).saturating_mul(c.into()))
@@ -107,15 +107,13 @@ impl pallet_collator_selection::WeightInfo for WeightIn
/// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
/// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
/// The range of component `c` is `[6, 20]`.
- fn leave_intent(c: u32, ) -> Weight {
+ fn leave_intent(_c: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `516 + c * (44 ±0)`
+ // Measured: `549 + c * (44 ±0)`
// Estimated: `2446`
- // Minimum execution time: 45_525_000 picoseconds.
- Weight::from_parts(46_437_007, 0)
+ // Minimum execution time: 45_805_000 picoseconds.
+ Weight::from_parts(49_827_491, 0)
.saturating_add(Weight::from_parts(0, 2446))
- // Standard Error: 5_765
- .saturating_add(Weight::from_parts(100_123, 0).saturating_mul(c.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
@@ -129,8 +127,8 @@ impl pallet_collator_selection::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `192`
// Estimated: `6196`
- // Minimum execution time: 69_640_000 picoseconds.
- Weight::from_parts(70_622_000, 0)
+ // Minimum execution time: 70_552_000 picoseconds.
+ Weight::from_parts(71_864_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(4))
@@ -149,13 +147,13 @@ impl pallet_collator_selection::WeightInfo for WeightIn
/// The range of component `c` is `[1, 20]`.
fn new_session(r: u32, c: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `545 + c * (98 ±0) + r * (142 ±0)`
+ // Measured: `578 + c * (98 ±0) + r * (142 ±0)`
// Estimated: `4687 + c * (2519 ±0) + r * (2259 ±17)`
- // Minimum execution time: 24_356_000 picoseconds.
- Weight::from_parts(25_037_000, 0)
+ // Minimum execution time: 23_945_000 picoseconds.
+ Weight::from_parts(24_766_000, 0)
.saturating_add(Weight::from_parts(0, 4687))
- // Standard Error: 437_042
- .saturating_add(Weight::from_parts(17_531_770, 0).saturating_mul(c.into()))
+ // Standard Error: 440_066
+ .saturating_add(Weight::from_parts(17_696_788, 0).saturating_mul(c.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into())))
.saturating_add(T::DbWeight::get().writes(1))
diff --git a/runtime/altair/src/weights/pallet_collective.rs b/runtime/altair/src/weights/pallet_collective.rs
index 91bcd368aa..6bf7955d73 100644
--- a/runtime/altair/src/weights/pallet_collective.rs
+++ b/runtime/altair/src/weights/pallet_collective.rs
@@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_collective`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
@@ -46,14 +46,14 @@ impl pallet_collective::WeightInfo for WeightInfo {
fn set_members(m: u32, _n: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + m * (3232 ±0) + p * (3190 ±0)`
- // Estimated: `15762 + m * (1967 ±23) + p * (4332 ±23)`
- // Minimum execution time: 22_862_000 picoseconds.
- Weight::from_parts(23_243_000, 0)
+ // Estimated: `15762 + m * (1967 ±24) + p * (4332 ±24)`
+ // Minimum execution time: 22_632_000 picoseconds.
+ Weight::from_parts(22_943_000, 0)
.saturating_add(Weight::from_parts(0, 15762))
- // Standard Error: 62_985
- .saturating_add(Weight::from_parts(4_744_577, 0).saturating_mul(m.into()))
- // Standard Error: 62_985
- .saturating_add(Weight::from_parts(8_773_833, 0).saturating_mul(p.into()))
+ // Standard Error: 62_082
+ .saturating_add(Weight::from_parts(4_739_522, 0).saturating_mul(m.into()))
+ // Standard Error: 62_082
+ .saturating_add(Weight::from_parts(8_691_516, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
.saturating_add(T::DbWeight::get().writes(2))
@@ -69,13 +69,13 @@ impl pallet_collective::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `103 + m * (32 ±0)`
// Estimated: `1589 + m * (32 ±0)`
- // Minimum execution time: 23_374_000 picoseconds.
- Weight::from_parts(22_329_529, 0)
+ // Minimum execution time: 23_564_000 picoseconds.
+ Weight::from_parts(22_084_327, 0)
.saturating_add(Weight::from_parts(0, 1589))
- // Standard Error: 41
- .saturating_add(Weight::from_parts(1_786, 0).saturating_mul(b.into()))
- // Standard Error: 432
- .saturating_add(Weight::from_parts(18_712, 0).saturating_mul(m.into()))
+ // Standard Error: 49
+ .saturating_add(Weight::from_parts(2_131, 0).saturating_mul(b.into()))
+ // Standard Error: 506
+ .saturating_add(Weight::from_parts(20_334, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
}
@@ -89,13 +89,13 @@ impl pallet_collective::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `103 + m * (32 ±0)`
// Estimated: `3569 + m * (32 ±0)`
- // Minimum execution time: 27_131_000 picoseconds.
- Weight::from_parts(25_618_743, 0)
+ // Minimum execution time: 27_571_000 picoseconds.
+ Weight::from_parts(25_346_668, 0)
.saturating_add(Weight::from_parts(0, 3569))
- // Standard Error: 56
- .saturating_add(Weight::from_parts(2_367, 0).saturating_mul(b.into()))
- // Standard Error: 584
- .saturating_add(Weight::from_parts(35_011, 0).saturating_mul(m.into()))
+ // Standard Error: 104
+ .saturating_add(Weight::from_parts(2_955, 0).saturating_mul(b.into()))
+ // Standard Error: 1_072
+ .saturating_add(Weight::from_parts(35_436, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
}
@@ -116,15 +116,15 @@ impl pallet_collective::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `393 + m * (32 ±0) + p * (36 ±0)`
// Estimated: `3785 + m * (33 ±0) + p * (36 ±0)`
- // Minimum execution time: 37_099_000 picoseconds.
- Weight::from_parts(33_742_160, 0)
+ // Minimum execution time: 35_916_000 picoseconds.
+ Weight::from_parts(36_451_343, 0)
.saturating_add(Weight::from_parts(0, 3785))
- // Standard Error: 99
- .saturating_add(Weight::from_parts(3_693, 0).saturating_mul(b.into()))
- // Standard Error: 1_040
- .saturating_add(Weight::from_parts(33_553, 0).saturating_mul(m.into()))
- // Standard Error: 1_027
- .saturating_add(Weight::from_parts(248_100, 0).saturating_mul(p.into()))
+ // Standard Error: 149
+ .saturating_add(Weight::from_parts(2_088, 0).saturating_mul(b.into()))
+ // Standard Error: 1_560
+ .saturating_add(Weight::from_parts(24_913, 0).saturating_mul(m.into()))
+ // Standard Error: 1_541
+ .saturating_add(Weight::from_parts(248_734, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(4))
.saturating_add(Weight::from_parts(0, 33).saturating_mul(m.into()))
@@ -139,11 +139,11 @@ impl pallet_collective::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `842 + m * (64 ±0)`
// Estimated: `4306 + m * (64 ±0)`
- // Minimum execution time: 30_658_000 picoseconds.
- Weight::from_parts(31_501_318, 0)
+ // Minimum execution time: 30_487_000 picoseconds.
+ Weight::from_parts(31_186_724, 0)
.saturating_add(Weight::from_parts(0, 4306))
- // Standard Error: 1_499
- .saturating_add(Weight::from_parts(51_420, 0).saturating_mul(m.into()))
+ // Standard Error: 901
+ .saturating_add(Weight::from_parts(47_639, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
@@ -162,13 +162,13 @@ impl pallet_collective::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `431 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `3876 + m * (65 ±0) + p * (36 ±0)`
- // Minimum execution time: 38_913_000 picoseconds.
- Weight::from_parts(37_484_472, 0)
+ // Minimum execution time: 39_053_000 picoseconds.
+ Weight::from_parts(37_916_630, 0)
.saturating_add(Weight::from_parts(0, 3876))
- // Standard Error: 1_003
- .saturating_add(Weight::from_parts(42_410, 0).saturating_mul(m.into()))
- // Standard Error: 978
- .saturating_add(Weight::from_parts(242_468, 0).saturating_mul(p.into()))
+ // Standard Error: 1_015
+ .saturating_add(Weight::from_parts(41_963, 0).saturating_mul(m.into()))
+ // Standard Error: 990
+ .saturating_add(Weight::from_parts(238_197, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
@@ -189,15 +189,15 @@ impl pallet_collective::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `733 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4050 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
- // Minimum execution time: 56_657_000 picoseconds.
- Weight::from_parts(57_185_987, 0)
+ // Minimum execution time: 56_205_000 picoseconds.
+ Weight::from_parts(57_901_173, 0)
.saturating_add(Weight::from_parts(0, 4050))
- // Standard Error: 198
- .saturating_add(Weight::from_parts(1_914, 0).saturating_mul(b.into()))
- // Standard Error: 2_098
- .saturating_add(Weight::from_parts(13_157, 0).saturating_mul(m.into()))
- // Standard Error: 2_045
- .saturating_add(Weight::from_parts(286_092, 0).saturating_mul(p.into()))
+ // Standard Error: 207
+ .saturating_add(Weight::from_parts(2_111, 0).saturating_mul(b.into()))
+ // Standard Error: 2_195
+ .saturating_add(Weight::from_parts(3_399, 0).saturating_mul(m.into()))
+ // Standard Error: 2_140
+ .saturating_add(Weight::from_parts(282_136, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
@@ -220,13 +220,13 @@ impl pallet_collective::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `451 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `3896 + m * (65 ±0) + p * (36 ±0)`
- // Minimum execution time: 43_241_000 picoseconds.
- Weight::from_parts(41_025_244, 0)
+ // Minimum execution time: 43_211_000 picoseconds.
+ Weight::from_parts(41_189_289, 0)
.saturating_add(Weight::from_parts(0, 3896))
- // Standard Error: 975
- .saturating_add(Weight::from_parts(46_148, 0).saturating_mul(m.into()))
- // Standard Error: 951
- .saturating_add(Weight::from_parts(242_687, 0).saturating_mul(p.into()))
+ // Standard Error: 1_317
+ .saturating_add(Weight::from_parts(45_314, 0).saturating_mul(m.into()))
+ // Standard Error: 1_285
+ .saturating_add(Weight::from_parts(246_712, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
@@ -249,15 +249,15 @@ impl pallet_collective::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `753 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4070 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
- // Minimum execution time: 60_313_000 picoseconds.
- Weight::from_parts(59_770_901, 0)
+ // Minimum execution time: 59_491_000 picoseconds.
+ Weight::from_parts(59_825_088, 0)
.saturating_add(Weight::from_parts(0, 4070))
- // Standard Error: 141
- .saturating_add(Weight::from_parts(1_805, 0).saturating_mul(b.into()))
- // Standard Error: 1_490
- .saturating_add(Weight::from_parts(43_360, 0).saturating_mul(m.into()))
- // Standard Error: 1_453
- .saturating_add(Weight::from_parts(282_453, 0).saturating_mul(p.into()))
+ // Standard Error: 149
+ .saturating_add(Weight::from_parts(2_574, 0).saturating_mul(b.into()))
+ // Standard Error: 1_578
+ .saturating_add(Weight::from_parts(39_976, 0).saturating_mul(m.into()))
+ // Standard Error: 1_538
+ .saturating_add(Weight::from_parts(275_431, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
@@ -275,11 +275,11 @@ impl pallet_collective::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `260 + p * (32 ±0)`
// Estimated: `1745 + p * (32 ±0)`
- // Minimum execution time: 22_663_000 picoseconds.
- Weight::from_parts(23_752_988, 0)
+ // Minimum execution time: 22_131_000 picoseconds.
+ Weight::from_parts(23_547_927, 0)
.saturating_add(Weight::from_parts(0, 1745))
- // Standard Error: 683
- .saturating_add(Weight::from_parts(227_706, 0).saturating_mul(p.into()))
+ // Standard Error: 961
+ .saturating_add(Weight::from_parts(224_637, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(p.into()))
diff --git a/runtime/altair/src/weights/pallet_crowdloan_claim.rs b/runtime/altair/src/weights/pallet_crowdloan_claim.rs
index f85dec4b03..fc2134043b 100644
--- a/runtime/altair/src/weights/pallet_crowdloan_claim.rs
+++ b/runtime/altair/src/weights/pallet_crowdloan_claim.rs
@@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_crowdloan_claim`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
@@ -58,10 +58,10 @@ impl pallet_crowdloan_claim::WeightInfo for WeightInfo<
/// Proof: Balances Freezes (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen)
fn claim_reward_ed25519() -> Weight {
// Proof Size summary in bytes:
- // Measured: `606`
+ // Measured: `639`
// Estimated: `6196`
- // Minimum execution time: 257_763_000 picoseconds.
- Weight::from_parts(259_697_000, 0)
+ // Minimum execution time: 258_603_000 picoseconds.
+ Weight::from_parts(262_099_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(13))
.saturating_add(T::DbWeight::get().writes(5))
@@ -92,10 +92,10 @@ impl pallet_crowdloan_claim::WeightInfo for WeightInfo<
/// Proof: Balances Freezes (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen)
fn claim_reward_sr25519() -> Weight {
// Proof Size summary in bytes:
- // Measured: `762`
+ // Measured: `795`
// Estimated: `6196`
- // Minimum execution time: 260_048_000 picoseconds.
- Weight::from_parts(263_404_000, 0)
+ // Minimum execution time: 262_250_000 picoseconds.
+ Weight::from_parts(264_855_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(13))
.saturating_add(T::DbWeight::get().writes(5))
@@ -126,10 +126,10 @@ impl pallet_crowdloan_claim::WeightInfo for WeightInfo<
/// Proof: Balances Freezes (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen)
fn claim_reward_ecdsa() -> Weight {
// Proof Size summary in bytes:
- // Measured: `658`
+ // Measured: `691`
// Estimated: `6196`
- // Minimum execution time: 241_844_000 picoseconds.
- Weight::from_parts(245_180_000, 0)
+ // Minimum execution time: 244_116_000 picoseconds.
+ Weight::from_parts(246_280_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(13))
.saturating_add(T::DbWeight::get().writes(5))
@@ -152,8 +152,8 @@ impl pallet_crowdloan_claim::WeightInfo for WeightInfo<
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `1489`
- // Minimum execution time: 24_376_000 picoseconds.
- Weight::from_parts(25_367_000, 0)
+ // Minimum execution time: 25_047_000 picoseconds.
+ Weight::from_parts(25_588_000, 0)
.saturating_add(Weight::from_parts(0, 1489))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(6))
@@ -164,8 +164,8 @@ impl pallet_crowdloan_claim::WeightInfo for WeightInfo<
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 11_331_000 picoseconds.
- Weight::from_parts(11_793_000, 0)
+ // Minimum execution time: 11_301_000 picoseconds.
+ Weight::from_parts(11_662_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -175,8 +175,8 @@ impl pallet_crowdloan_claim::WeightInfo for WeightInfo<
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 11_241_000 picoseconds.
- Weight::from_parts(11_622_000, 0)
+ // Minimum execution time: 11_432_000 picoseconds.
+ Weight::from_parts(11_651_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -186,8 +186,8 @@ impl pallet_crowdloan_claim::WeightInfo for WeightInfo<
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 12_674_000 picoseconds.
- Weight::from_parts(13_024_000, 0)
+ // Minimum execution time: 12_333_000 picoseconds.
+ Weight::from_parts(12_884_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -197,8 +197,8 @@ impl pallet_crowdloan_claim::WeightInfo for WeightInfo<
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 11_381_000 picoseconds.
- Weight::from_parts(11_702_000, 0)
+ // Minimum execution time: 11_461_000 picoseconds.
+ Weight::from_parts(11_682_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -209,7 +209,7 @@ impl pallet_crowdloan_claim::WeightInfo for WeightInfo<
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 11_401_000 picoseconds.
- Weight::from_parts(11_682_000, 0)
+ Weight::from_parts(11_662_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
diff --git a/runtime/altair/src/weights/pallet_crowdloan_reward.rs b/runtime/altair/src/weights/pallet_crowdloan_reward.rs
index ce55dc36f3..cece9871af 100644
--- a/runtime/altair/src/weights/pallet_crowdloan_reward.rs
+++ b/runtime/altair/src/weights/pallet_crowdloan_reward.rs
@@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_crowdloan_reward`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
@@ -42,8 +42,8 @@ impl pallet_crowdloan_reward::WeightInfo for WeightInfo
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 13_315_000 picoseconds.
- Weight::from_parts(13_686_000, 0)
+ // Minimum execution time: 13_716_000 picoseconds.
+ Weight::from_parts(14_277_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(3))
}
@@ -53,8 +53,8 @@ impl pallet_crowdloan_reward::WeightInfo for WeightInfo
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 10_951_000 picoseconds.
- Weight::from_parts(11_602_000, 0)
+ // Minimum execution time: 11_782_000 picoseconds.
+ Weight::from_parts(12_113_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -64,8 +64,8 @@ impl pallet_crowdloan_reward::WeightInfo for WeightInfo
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 11_251_000 picoseconds.
- Weight::from_parts(11_611_000, 0)
+ // Minimum execution time: 11_612_000 picoseconds.
+ Weight::from_parts(11_992_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -75,8 +75,8 @@ impl pallet_crowdloan_reward::WeightInfo for WeightInfo
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 11_071_000 picoseconds.
- Weight::from_parts(11_672_000, 0)
+ // Minimum execution time: 11_632_000 picoseconds.
+ Weight::from_parts(12_022_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
diff --git a/runtime/altair/src/weights/pallet_democracy.rs b/runtime/altair/src/weights/pallet_democracy.rs
index 09a0b081bb..678e23038c 100644
--- a/runtime/altair/src/weights/pallet_democracy.rs
+++ b/runtime/altair/src/weights/pallet_democracy.rs
@@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_democracy`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
@@ -42,10 +42,10 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
fn propose() -> Weight {
// Proof Size summary in bytes:
- // Measured: `4801`
+ // Measured: `4768`
// Estimated: `18187`
- // Minimum execution time: 58_119_000 picoseconds.
- Weight::from_parts(59_321_000, 0)
+ // Minimum execution time: 58_419_000 picoseconds.
+ Weight::from_parts(61_114_000, 0)
.saturating_add(Weight::from_parts(0, 18187))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
@@ -54,10 +54,10 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
fn second() -> Weight {
// Proof Size summary in bytes:
- // Measured: `3556`
+ // Measured: `3523`
// Estimated: `6695`
- // Minimum execution time: 51_817_000 picoseconds.
- Weight::from_parts(53_691_000, 0)
+ // Minimum execution time: 52_207_000 picoseconds.
+ Weight::from_parts(53_901_000, 0)
.saturating_add(Weight::from_parts(0, 6695))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
@@ -72,10 +72,10 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// Proof: Balances Freezes (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen)
fn vote_new() -> Weight {
// Proof Size summary in bytes:
- // Measured: `3433`
+ // Measured: `3400`
// Estimated: `7260`
- // Minimum execution time: 66_635_000 picoseconds.
- Weight::from_parts(68_369_000, 0)
+ // Minimum execution time: 66_113_000 picoseconds.
+ Weight::from_parts(68_718_000, 0)
.saturating_add(Weight::from_parts(0, 7260))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
@@ -90,10 +90,10 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// Proof: Balances Freezes (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen)
fn vote_existing() -> Weight {
// Proof Size summary in bytes:
- // Measured: `3455`
+ // Measured: `3422`
// Estimated: `7260`
- // Minimum execution time: 72_516_000 picoseconds.
- Weight::from_parts(74_329_000, 0)
+ // Minimum execution time: 72_676_000 picoseconds.
+ Weight::from_parts(74_579_000, 0)
.saturating_add(Weight::from_parts(0, 7260))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
@@ -106,10 +106,10 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn emergency_cancel() -> Weight {
// Proof Size summary in bytes:
- // Measured: `366`
+ // Measured: `333`
// Estimated: `3666`
- // Minimum execution time: 37_941_000 picoseconds.
- Weight::from_parts(39_134_000, 0)
+ // Minimum execution time: 38_351_000 picoseconds.
+ Weight::from_parts(39_003_000, 0)
.saturating_add(Weight::from_parts(0, 3666))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
@@ -130,10 +130,10 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
fn blacklist() -> Weight {
// Proof Size summary in bytes:
- // Measured: `6282`
+ // Measured: `6249`
// Estimated: `18187`
- // Minimum execution time: 148_428_000 picoseconds.
- Weight::from_parts(150_783_000, 0)
+ // Minimum execution time: 148_978_000 picoseconds.
+ Weight::from_parts(151_513_000, 0)
.saturating_add(Weight::from_parts(0, 18187))
.saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(8))
@@ -144,10 +144,10 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
fn external_propose() -> Weight {
// Proof Size summary in bytes:
- // Measured: `3416`
+ // Measured: `3383`
// Estimated: `6703`
- // Minimum execution time: 18_565_000 picoseconds.
- Weight::from_parts(19_236_000, 0)
+ // Minimum execution time: 18_244_000 picoseconds.
+ Weight::from_parts(18_915_000, 0)
.saturating_add(Weight::from_parts(0, 6703))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
@@ -158,8 +158,8 @@ impl pallet_democracy::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 5_140_000 picoseconds.
- Weight::from_parts(5_350_000, 0)
+ // Minimum execution time: 4_959_000 picoseconds.
+ Weight::from_parts(5_310_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -169,8 +169,8 @@ impl pallet_democracy::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 5_219_000 picoseconds.
- Weight::from_parts(5_560_000, 0)
+ // Minimum execution time: 5_040_000 picoseconds.
+ Weight::from_parts(5_280_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -184,10 +184,10 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
fn fast_track() -> Weight {
// Proof Size summary in bytes:
- // Measured: `286`
+ // Measured: `253`
// Estimated: `3518`
- // Minimum execution time: 39_033_000 picoseconds.
- Weight::from_parts(39_465_000, 0)
+ // Minimum execution time: 39_634_000 picoseconds.
+ Weight::from_parts(40_205_000, 0)
.saturating_add(Weight::from_parts(0, 3518))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(5))
@@ -200,10 +200,10 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn veto_external() -> Weight {
// Proof Size summary in bytes:
- // Measured: `3519`
+ // Measured: `3486`
// Estimated: `6703`
- // Minimum execution time: 41_819_000 picoseconds.
- Weight::from_parts(42_990_000, 0)
+ // Minimum execution time: 42_439_000 picoseconds.
+ Weight::from_parts(43_051_000, 0)
.saturating_add(Weight::from_parts(0, 6703))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
@@ -218,10 +218,10 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn cancel_proposal() -> Weight {
// Proof Size summary in bytes:
- // Measured: `6193`
+ // Measured: `6160`
// Estimated: `18187`
- // Minimum execution time: 121_748_000 picoseconds.
- Weight::from_parts(123_591_000, 0)
+ // Minimum execution time: 122_889_000 picoseconds.
+ Weight::from_parts(124_803_000, 0)
.saturating_add(Weight::from_parts(0, 18187))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(5))
@@ -232,10 +232,10 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
fn cancel_referendum() -> Weight {
// Proof Size summary in bytes:
- // Measured: `271`
+ // Measured: `238`
// Estimated: `3518`
- // Minimum execution time: 28_533_000 picoseconds.
- Weight::from_parts(29_225_000, 0)
+ // Minimum execution time: 28_853_000 picoseconds.
+ Weight::from_parts(29_485_000, 0)
.saturating_add(Weight::from_parts(0, 3518))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
@@ -249,13 +249,13 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// The range of component `r` is `[0, 99]`.
fn on_initialize_base(r: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `244 + r * (86 ±0)`
+ // Measured: `211 + r * (86 ±0)`
// Estimated: `1489 + r * (2676 ±0)`
- // Minimum execution time: 9_919_000 picoseconds.
- Weight::from_parts(12_518_458, 0)
+ // Minimum execution time: 10_049_000 picoseconds.
+ Weight::from_parts(13_517_271, 0)
.saturating_add(Weight::from_parts(0, 1489))
- // Standard Error: 6_845
- .saturating_add(Weight::from_parts(4_137_260, 0).saturating_mul(r.into()))
+ // Standard Error: 5_035
+ .saturating_add(Weight::from_parts(4_070_284, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(1))
@@ -276,13 +276,13 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// The range of component `r` is `[0, 99]`.
fn on_initialize_base_with_launch_period(r: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `244 + r * (86 ±0)`
+ // Measured: `211 + r * (86 ±0)`
// Estimated: `18187 + r * (2676 ±0)`
- // Minimum execution time: 14_838_000 picoseconds.
- Weight::from_parts(17_174_806, 0)
+ // Minimum execution time: 14_908_000 picoseconds.
+ Weight::from_parts(18_208_256, 0)
.saturating_add(Weight::from_parts(0, 18187))
- // Standard Error: 6_417
- .saturating_add(Weight::from_parts(4_136_341, 0).saturating_mul(r.into()))
+ // Standard Error: 5_804
+ .saturating_add(Weight::from_parts(4_082_645, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(1))
@@ -299,13 +299,13 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// The range of component `r` is `[0, 99]`.
fn delegate(r: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `797 + r * (108 ±0)`
+ // Measured: `764 + r * (108 ±0)`
// Estimated: `19800 + r * (2676 ±0)`
- // Minimum execution time: 55_555_000 picoseconds.
- Weight::from_parts(61_027_404, 0)
+ // Minimum execution time: 56_275_000 picoseconds.
+ Weight::from_parts(63_373_708, 0)
.saturating_add(Weight::from_parts(0, 19800))
- // Standard Error: 6_631
- .saturating_add(Weight::from_parts(5_098_351, 0).saturating_mul(r.into()))
+ // Standard Error: 6_499
+ .saturating_add(Weight::from_parts(5_172_759, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(4))
@@ -319,13 +319,13 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// The range of component `r` is `[0, 99]`.
fn undelegate(r: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `493 + r * (108 ±0)`
+ // Measured: `460 + r * (108 ±0)`
// Estimated: `13530 + r * (2676 ±0)`
- // Minimum execution time: 28_814_000 picoseconds.
- Weight::from_parts(27_991_730, 0)
+ // Minimum execution time: 28_323_000 picoseconds.
+ Weight::from_parts(29_550_866, 0)
.saturating_add(Weight::from_parts(0, 13530))
- // Standard Error: 5_773
- .saturating_add(Weight::from_parts(5_063_537, 0).saturating_mul(r.into()))
+ // Standard Error: 6_284
+ .saturating_add(Weight::from_parts(5_136_337, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(2))
@@ -338,8 +338,8 @@ impl pallet_democracy::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 5_000_000 picoseconds.
- Weight::from_parts(5_190_000, 0)
+ // Minimum execution time: 5_010_000 picoseconds.
+ Weight::from_parts(5_260_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -354,13 +354,13 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// The range of component `r` is `[0, 99]`.
fn unlock_remove(r: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `525`
+ // Measured: `492`
// Estimated: `7260`
- // Minimum execution time: 33_683_000 picoseconds.
- Weight::from_parts(51_371_710, 0)
+ // Minimum execution time: 33_943_000 picoseconds.
+ Weight::from_parts(52_244_125, 0)
.saturating_add(Weight::from_parts(0, 7260))
- // Standard Error: 4_004
- .saturating_add(Weight::from_parts(75_059, 0).saturating_mul(r.into()))
+ // Standard Error: 4_191
+ .saturating_add(Weight::from_parts(69_405, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
}
@@ -375,13 +375,13 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// The range of component `r` is `[0, 99]`.
fn unlock_set(r: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `526 + r * (22 ±0)`
+ // Measured: `493 + r * (22 ±0)`
// Estimated: `7260`
- // Minimum execution time: 47_589_000 picoseconds.
- Weight::from_parts(49_270_659, 0)
+ // Minimum execution time: 47_909_000 picoseconds.
+ Weight::from_parts(50_333_181, 0)
.saturating_add(Weight::from_parts(0, 7260))
- // Standard Error: 1_086
- .saturating_add(Weight::from_parts(89_701, 0).saturating_mul(r.into()))
+ // Standard Error: 1_515
+ .saturating_add(Weight::from_parts(87_706, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
}
@@ -392,13 +392,13 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// The range of component `r` is `[1, 100]`.
fn remove_vote(r: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `728 + r * (26 ±0)`
+ // Measured: `695 + r * (26 ±0)`
// Estimated: `7260`
- // Minimum execution time: 21_330_000 picoseconds.
- Weight::from_parts(24_316_996, 0)
+ // Minimum execution time: 20_950_000 picoseconds.
+ Weight::from_parts(24_010_403, 0)
.saturating_add(Weight::from_parts(0, 7260))
- // Standard Error: 1_266
- .saturating_add(Weight::from_parts(91_796, 0).saturating_mul(r.into()))
+ // Standard Error: 1_347
+ .saturating_add(Weight::from_parts(94_265, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
@@ -409,13 +409,13 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// The range of component `r` is `[1, 100]`.
fn remove_other_vote(r: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `728 + r * (26 ±0)`
+ // Measured: `695 + r * (26 ±0)`
// Estimated: `7260`
- // Minimum execution time: 21_471_000 picoseconds.
- Weight::from_parts(24_820_754, 0)
+ // Minimum execution time: 21_430_000 picoseconds.
+ Weight::from_parts(24_439_550, 0)
.saturating_add(Weight::from_parts(0, 7260))
- // Standard Error: 1_258
- .saturating_add(Weight::from_parts(88_304, 0).saturating_mul(r.into()))
+ // Standard Error: 1_282
+ .saturating_add(Weight::from_parts(91_206, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
@@ -427,10 +427,10 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn set_external_metadata() -> Weight {
// Proof Size summary in bytes:
- // Measured: `390`
+ // Measured: `357`
// Estimated: `3556`
- // Minimum execution time: 26_389_000 picoseconds.
- Weight::from_parts(26_981_000, 0)
+ // Minimum execution time: 26_168_000 picoseconds.
+ Weight::from_parts(27_040_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
@@ -441,10 +441,10 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn clear_external_metadata() -> Weight {
// Proof Size summary in bytes:
- // Measured: `286`
+ // Measured: `253`
// Estimated: `3518`
- // Minimum execution time: 23_885_000 picoseconds.
- Weight::from_parts(24_666_000, 0)
+ // Minimum execution time: 23_904_000 picoseconds.
+ Weight::from_parts(24_526_000, 0)
.saturating_add(Weight::from_parts(0, 3518))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
@@ -457,10 +457,10 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn set_proposal_metadata() -> Weight {
// Proof Size summary in bytes:
- // Measured: `4922`
+ // Measured: `4889`
// Estimated: `18187`
- // Minimum execution time: 55_664_000 picoseconds.
- Weight::from_parts(56_516_000, 0)
+ // Minimum execution time: 54_291_000 picoseconds.
+ Weight::from_parts(55_334_000, 0)
.saturating_add(Weight::from_parts(0, 18187))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
@@ -471,10 +471,10 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn clear_proposal_metadata() -> Weight {
// Proof Size summary in bytes:
- // Measured: `4822`
+ // Measured: `4789`
// Estimated: `18187`
- // Minimum execution time: 51_717_000 picoseconds.
- Weight::from_parts(52_649_000, 0)
+ // Minimum execution time: 50_724_000 picoseconds.
+ Weight::from_parts(52_669_000, 0)
.saturating_add(Weight::from_parts(0, 18187))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
@@ -487,8 +487,8 @@ impl pallet_democracy::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `178`
// Estimated: `3556`
- // Minimum execution time: 21_480_000 picoseconds.
- Weight::from_parts(22_031_000, 0)
+ // Minimum execution time: 21_540_000 picoseconds.
+ Weight::from_parts(22_001_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
@@ -499,10 +499,10 @@ impl pallet_democracy::WeightInfo for WeightInfo {
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn clear_referendum_metadata() -> Weight {
// Proof Size summary in bytes:
- // Measured: `302`
+ // Measured: `269`
// Estimated: `3666`
- // Minimum execution time: 26_319_000 picoseconds.
- Weight::from_parts(27_351_000, 0)
+ // Minimum execution time: 26_700_000 picoseconds.
+ Weight::from_parts(27_592_000, 0)
.saturating_add(Weight::from_parts(0, 3666))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
diff --git a/runtime/altair/src/weights/pallet_elections_phragmen.rs b/runtime/altair/src/weights/pallet_elections_phragmen.rs
index c21778359b..09d236ab15 100644
--- a/runtime/altair/src/weights/pallet_elections_phragmen.rs
+++ b/runtime/altair/src/weights/pallet_elections_phragmen.rs
@@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_elections_phragmen`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
@@ -47,13 +47,13 @@ impl pallet_elections_phragmen::WeightInfo for WeightIn
/// The range of component `v` is `[1, 5]`.
fn vote_equal(v: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `430 + v * (80 ±0)`
+ // Measured: `397 + v * (80 ±0)`
// Estimated: `4764 + v * (80 ±0)`
- // Minimum execution time: 43_311_000 picoseconds.
- Weight::from_parts(43_610_847, 0)
+ // Minimum execution time: 42_880_000 picoseconds.
+ Weight::from_parts(44_335_425, 0)
.saturating_add(Weight::from_parts(0, 4764))
- // Standard Error: 16_974
- .saturating_add(Weight::from_parts(716_418, 0).saturating_mul(v.into()))
+ // Standard Error: 11_100
+ .saturating_add(Weight::from_parts(110_463, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into()))
@@ -73,13 +73,13 @@ impl pallet_elections_phragmen::WeightInfo for WeightIn
/// The range of component `v` is `[2, 5]`.
fn vote_more(v: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `399 + v * (80 ±0)`
+ // Measured: `366 + v * (80 ±0)`
// Estimated: `4764 + v * (80 ±0)`
- // Minimum execution time: 61_716_000 picoseconds.
- Weight::from_parts(64_838_953, 0)
+ // Minimum execution time: 61_185_000 picoseconds.
+ Weight::from_parts(62_561_326, 0)
.saturating_add(Weight::from_parts(0, 4764))
- // Standard Error: 42_104
- .saturating_add(Weight::from_parts(176_128, 0).saturating_mul(v.into()))
+ // Standard Error: 15_990
+ .saturating_add(Weight::from_parts(122_911, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into()))
@@ -99,11 +99,13 @@ impl pallet_elections_phragmen::WeightInfo for WeightIn
/// The range of component `v` is `[2, 5]`.
fn vote_less(v: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `431 + v * (80 ±0)`
+ // Measured: `398 + v * (80 ±0)`
// Estimated: `4764 + v * (80 ±0)`
- // Minimum execution time: 61_645_000 picoseconds.
- Weight::from_parts(66_675_573, 0)
+ // Minimum execution time: 61_104_000 picoseconds.
+ Weight::from_parts(62_248_281, 0)
.saturating_add(Weight::from_parts(0, 4764))
+ // Standard Error: 16_823
+ .saturating_add(Weight::from_parts(194_270, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into()))
@@ -116,10 +118,10 @@ impl pallet_elections_phragmen::WeightInfo for WeightIn
/// Proof: Balances Freezes (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen)
fn remove_voter() -> Weight {
// Proof Size summary in bytes:
- // Measured: `601`
+ // Measured: `568`
// Estimated: `4764`
- // Minimum execution time: 64_932_000 picoseconds.
- Weight::from_parts(65_823_000, 0)
+ // Minimum execution time: 64_280_000 picoseconds.
+ Weight::from_parts(64_961_000, 0)
.saturating_add(Weight::from_parts(0, 4764))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
@@ -133,13 +135,13 @@ impl pallet_elections_phragmen::WeightInfo for WeightIn
/// The range of component `c` is `[1, 20]`.
fn submit_candidacy(c: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `1508 + c * (48 ±0)`
- // Estimated: `2993 + c * (48 ±0)`
- // Minimum execution time: 46_707_000 picoseconds.
- Weight::from_parts(48_140_995, 0)
- .saturating_add(Weight::from_parts(0, 2993))
- // Standard Error: 2_436
- .saturating_add(Weight::from_parts(93_295, 0).saturating_mul(c.into()))
+ // Measured: `1475 + c * (48 ±0)`
+ // Estimated: `2960 + c * (48 ±0)`
+ // Minimum execution time: 46_096_000 picoseconds.
+ Weight::from_parts(47_421_484, 0)
+ .saturating_add(Weight::from_parts(0, 2960))
+ // Standard Error: 3_299
+ .saturating_add(Weight::from_parts(84_931, 0).saturating_mul(c.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(Weight::from_parts(0, 48).saturating_mul(c.into()))
@@ -149,13 +151,13 @@ impl pallet_elections_phragmen::WeightInfo for WeightIn
/// The range of component `c` is `[1, 20]`.
fn renounce_candidacy_candidate(c: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `351 + c * (48 ±0)`
- // Estimated: `1836 + c * (48 ±0)`
- // Minimum execution time: 42_309_000 picoseconds.
- Weight::from_parts(43_652_795, 0)
- .saturating_add(Weight::from_parts(0, 1836))
- // Standard Error: 2_352
- .saturating_add(Weight::from_parts(89_204, 0).saturating_mul(c.into()))
+ // Measured: `318 + c * (48 ±0)`
+ // Estimated: `1803 + c * (48 ±0)`
+ // Minimum execution time: 41_838_000 picoseconds.
+ Weight::from_parts(43_191_759, 0)
+ .saturating_add(Weight::from_parts(0, 1803))
+ // Standard Error: 2_606
+ .saturating_add(Weight::from_parts(63_294, 0).saturating_mul(c.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(Weight::from_parts(0, 48).saturating_mul(c.into()))
@@ -172,11 +174,11 @@ impl pallet_elections_phragmen::WeightInfo for WeightIn
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
fn renounce_candidacy_members() -> Weight {
// Proof Size summary in bytes:
- // Measured: `1688`
- // Estimated: `3173`
- // Minimum execution time: 60_474_000 picoseconds.
- Weight::from_parts(61_626_000, 0)
- .saturating_add(Weight::from_parts(0, 3173))
+ // Measured: `1655`
+ // Estimated: `3140`
+ // Minimum execution time: 59_010_000 picoseconds.
+ Weight::from_parts(59_802_000, 0)
+ .saturating_add(Weight::from_parts(0, 3140))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(4))
}
@@ -184,11 +186,11 @@ impl pallet_elections_phragmen::WeightInfo for WeightIn
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
fn renounce_candidacy_runners_up() -> Weight {
// Proof Size summary in bytes:
- // Measured: `1056`
- // Estimated: `2541`
- // Minimum execution time: 43_922_000 picoseconds.
- Weight::from_parts(44_403_000, 0)
- .saturating_add(Weight::from_parts(0, 2541))
+ // Measured: `1023`
+ // Estimated: `2508`
+ // Minimum execution time: 43_291_000 picoseconds.
+ Weight::from_parts(43_912_000, 0)
+ .saturating_add(Weight::from_parts(0, 2508))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -216,10 +218,10 @@ impl pallet_elections_phragmen::WeightInfo for WeightIn
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
fn remove_member_with_replacement() -> Weight {
// Proof Size summary in bytes:
- // Measured: `1791`
+ // Measured: `1758`
// Estimated: `6196`
- // Minimum execution time: 91_291_000 picoseconds.
- Weight::from_parts(92_383_000, 0)
+ // Minimum execution time: 90_538_000 picoseconds.
+ Weight::from_parts(91_501_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(6))
@@ -244,11 +246,11 @@ impl pallet_elections_phragmen::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `1226 + v * (457 ±0)`
// Estimated: `4528 + d * (1 ±0) + v * (3774 ±0)`
- // Minimum execution time: 3_507_373_000 picoseconds.
- Weight::from_parts(94_410_859, 0)
+ // Minimum execution time: 3_546_260_000 picoseconds.
+ Weight::from_parts(3_563_834_000, 0)
.saturating_add(Weight::from_parts(0, 4528))
- // Standard Error: 53_000
- .saturating_add(Weight::from_parts(69_345_483, 0).saturating_mul(v.into()))
+ // Standard Error: 282_378
+ .saturating_add(Weight::from_parts(41_778_592, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(v.into())))
@@ -279,16 +281,16 @@ impl pallet_elections_phragmen::WeightInfo for WeightIn
fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + e * (23 ±0) + v * (241 ±0)`
- // Estimated: `9384 + c * (154 ±3) + e * (19 ±0) + v * (2526 ±2)`
- // Minimum execution time: 308_779_000 picoseconds.
- Weight::from_parts(310_843_000, 0)
- .saturating_add(Weight::from_parts(0, 9384))
- // Standard Error: 642_635
- .saturating_add(Weight::from_parts(2_296_398, 0).saturating_mul(c.into()))
- // Standard Error: 127_837
- .saturating_add(Weight::from_parts(7_466_307, 0).saturating_mul(v.into()))
- // Standard Error: 27_762
- .saturating_add(Weight::from_parts(169_642, 0).saturating_mul(e.into()))
+ // Estimated: `9351 + c * (154 ±35) + e * (19 ±0) + v * (2526 ±2)`
+ // Minimum execution time: 312_173_000 picoseconds.
+ Weight::from_parts(313_886_000, 0)
+ .saturating_add(Weight::from_parts(0, 9351))
+ // Standard Error: 683_000
+ .saturating_add(Weight::from_parts(2_432_199, 0).saturating_mul(c.into()))
+ // Standard Error: 135_867
+ .saturating_add(Weight::from_parts(7_641_196, 0).saturating_mul(v.into()))
+ // Standard Error: 29_505
+ .saturating_add(Weight::from_parts(186_463, 0).saturating_mul(e.into()))
.saturating_add(T::DbWeight::get().reads(17))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().writes(7))
diff --git a/runtime/altair/src/weights/pallet_fees.rs b/runtime/altair/src/weights/pallet_fees.rs
index 1afa58b95d..a8d02ceef7 100644
--- a/runtime/altair/src/weights/pallet_fees.rs
+++ b/runtime/altair/src/weights/pallet_fees.rs
@@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_fees`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
@@ -38,8 +38,8 @@ impl pallet_fees::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 12_353_000 picoseconds.
- Weight::from_parts(12_824_000, 0)
+ // Minimum execution time: 11_863_000 picoseconds.
+ Weight::from_parts(12_243_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
diff --git a/runtime/altair/src/weights/pallet_identity.rs b/runtime/altair/src/weights/pallet_identity.rs
index 2d3eb2f374..4687808556 100644
--- a/runtime/altair/src/weights/pallet_identity.rs
+++ b/runtime/altair/src/weights/pallet_identity.rs
@@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_identity`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
@@ -39,11 +39,11 @@ impl pallet_identity::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `31 + r * (57 ±0)`
// Estimated: `2626`
- // Minimum execution time: 17_293_000 picoseconds.
- Weight::from_parts(18_708_377, 0)
+ // Minimum execution time: 17_222_000 picoseconds.
+ Weight::from_parts(18_262_370, 0)
.saturating_add(Weight::from_parts(0, 2626))
- // Standard Error: 2_571
- .saturating_add(Weight::from_parts(97_118, 0).saturating_mul(r.into()))
+ // Standard Error: 2_268
+ .saturating_add(Weight::from_parts(101_954, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -55,13 +55,13 @@ impl pallet_identity::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `441 + r * (5 ±0)`
// Estimated: `11003`
- // Minimum execution time: 47_168_000 picoseconds.
- Weight::from_parts(46_991_351, 0)
+ // Minimum execution time: 45_976_000 picoseconds.
+ Weight::from_parts(45_222_385, 0)
.saturating_add(Weight::from_parts(0, 11003))
- // Standard Error: 7_400
- .saturating_add(Weight::from_parts(78_769, 0).saturating_mul(r.into()))
- // Standard Error: 1_444
- .saturating_add(Weight::from_parts(787_684, 0).saturating_mul(x.into()))
+ // Standard Error: 4_660
+ .saturating_add(Weight::from_parts(109_611, 0).saturating_mul(r.into()))
+ // Standard Error: 909
+ .saturating_add(Weight::from_parts(760_628, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -76,11 +76,11 @@ impl pallet_identity::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `100`
// Estimated: `11003 + s * (2589 ±0)`
- // Minimum execution time: 13_415_000 picoseconds.
- Weight::from_parts(33_675_180, 0)
+ // Minimum execution time: 13_035_000 picoseconds.
+ Weight::from_parts(34_324_276, 0)
.saturating_add(Weight::from_parts(0, 11003))
- // Standard Error: 6_185
- .saturating_add(Weight::from_parts(4_779_415, 0).saturating_mul(s.into()))
+ // Standard Error: 6_069
+ .saturating_add(Weight::from_parts(4_691_057, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
.saturating_add(T::DbWeight::get().writes(1))
@@ -98,11 +98,11 @@ impl pallet_identity::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `193 + p * (32 ±0)`
// Estimated: `11003`
- // Minimum execution time: 12_934_000 picoseconds.
- Weight::from_parts(33_813_890, 0)
+ // Minimum execution time: 13_345_000 picoseconds.
+ Weight::from_parts(32_645_425, 0)
.saturating_add(Weight::from_parts(0, 11003))
- // Standard Error: 4_725
- .saturating_add(Weight::from_parts(1_891_791, 0).saturating_mul(p.into()))
+ // Standard Error: 4_452
+ .saturating_add(Weight::from_parts(1_871_182, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
@@ -120,15 +120,15 @@ impl pallet_identity::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `468 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
// Estimated: `11003`
- // Minimum execution time: 88_106_000 picoseconds.
- Weight::from_parts(44_750_562, 0)
+ // Minimum execution time: 85_560_000 picoseconds.
+ Weight::from_parts(44_337_341, 0)
.saturating_add(Weight::from_parts(0, 11003))
- // Standard Error: 8_073
- .saturating_add(Weight::from_parts(205_073, 0).saturating_mul(r.into()))
- // Standard Error: 1_576
- .saturating_add(Weight::from_parts(1_891_356, 0).saturating_mul(s.into()))
- // Standard Error: 1_576
- .saturating_add(Weight::from_parts(434_065, 0).saturating_mul(x.into()))
+ // Standard Error: 9_376
+ .saturating_add(Weight::from_parts(125_303, 0).saturating_mul(r.into()))
+ // Standard Error: 1_831
+ .saturating_add(Weight::from_parts(1_851_480, 0).saturating_mul(s.into()))
+ // Standard Error: 1_831
+ .saturating_add(Weight::from_parts(433_243, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
@@ -143,13 +143,13 @@ impl pallet_identity::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `366 + r * (57 ±0) + x * (66 ±0)`
// Estimated: `11003`
- // Minimum execution time: 47_559_000 picoseconds.
- Weight::from_parts(45_167_304, 0)
+ // Minimum execution time: 46_026_000 picoseconds.
+ Weight::from_parts(44_773_472, 0)
.saturating_add(Weight::from_parts(0, 11003))
- // Standard Error: 7_655
- .saturating_add(Weight::from_parts(151_439, 0).saturating_mul(r.into()))
- // Standard Error: 1_493
- .saturating_add(Weight::from_parts(849_430, 0).saturating_mul(x.into()))
+ // Standard Error: 6_018
+ .saturating_add(Weight::from_parts(125_658, 0).saturating_mul(r.into()))
+ // Standard Error: 1_174
+ .saturating_add(Weight::from_parts(796_126, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -161,13 +161,13 @@ impl