diff --git a/Cargo.lock b/Cargo.lock
index 5fa0d51341..40aab7d80a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5636,8 +5636,8 @@ dependencies = [
"pallet-balances",
"pallet-bitacross",
"pallet-bounties",
- "pallet-bridge",
"pallet-bridge-transfer",
+ "pallet-chain-bridge",
"pallet-collective",
"pallet-democracy",
"pallet-ethereum",
@@ -6858,9 +6858,9 @@ dependencies = [
"hex-literal",
"pallet-assets",
"pallet-balances",
- "pallet-bridge",
"pallet-bridge-common",
"pallet-bridge-transfer",
+ "pallet-chain-bridge",
"pallet-parachain-staking",
"parity-scale-codec",
"scale-info",
@@ -7058,50 +7058,50 @@ dependencies = [
]
[[package]]
-name = "pallet-bridge"
+name = "pallet-bridge-common"
version = "0.1.0"
dependencies = [
- "frame-benchmarking",
"frame-support",
- "frame-system",
- "pallet-balances",
"parity-scale-codec",
"scale-info",
- "sp-core",
- "sp-core-hashing",
- "sp-io",
"sp-runtime",
- "sp-std",
]
[[package]]
-name = "pallet-bridge-common"
+name = "pallet-bridge-transfer"
version = "0.1.0"
dependencies = [
+ "frame-benchmarking",
"frame-support",
+ "frame-system",
+ "hex-literal",
+ "pallet-assets",
+ "pallet-assets-handler",
+ "pallet-balances",
+ "pallet-bridge-common",
+ "pallet-chain-bridge",
+ "pallet-timestamp",
"parity-scale-codec",
"scale-info",
+ "sp-arithmetic",
+ "sp-core",
+ "sp-io",
"sp-runtime",
+ "sp-std",
]
[[package]]
-name = "pallet-bridge-transfer"
+name = "pallet-chain-bridge"
version = "0.1.0"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
- "hex-literal",
- "pallet-assets",
- "pallet-assets-handler",
"pallet-balances",
- "pallet-bridge",
- "pallet-bridge-common",
- "pallet-timestamp",
"parity-scale-codec",
"scale-info",
- "sp-arithmetic",
"sp-core",
+ "sp-core-hashing",
"sp-io",
"sp-runtime",
"sp-std",
@@ -10690,8 +10690,8 @@ dependencies = [
"pallet-balances",
"pallet-bitacross",
"pallet-bounties",
- "pallet-bridge",
"pallet-bridge-transfer",
+ "pallet-chain-bridge",
"pallet-collective",
"pallet-democracy",
"pallet-ethereum",
diff --git a/Cargo.toml b/Cargo.toml
index 770ab41e6a..be1d357ec4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,10 +4,10 @@ members = [
'node',
'pallets/account-fix',
'pallets/bitacross',
- 'pallets/bridge-related-pallets/assets-handler',
- 'pallets/bridge-related-pallets/bridge',
- 'pallets/bridge-related-pallets/bridge-transfer',
- 'pallets/bridge-related-pallets/common',
+ 'pallets/bridge/assets-handler',
+ 'pallets/bridge/chain-bridge',
+ 'pallets/bridge/bridge-transfer',
+ 'pallets/bridge/common',
'pallets/extrinsic-filter',
'pallets/evm-address',
'pallets/evm-assertions',
@@ -253,11 +253,11 @@ litentry-parachain-runtime = { path = "runtime/litentry", default-features = fal
rococo-parachain-runtime = { path = "runtime/rococo", default-features = false }
pallet-account-fix = { path = "pallets/account-fix", default-features = false }
pallet-asset-manager = { path = "pallets/xcm-asset-manager", default-features = false }
-pallet-assets-handler = { path = "pallets/bridge-related-pallets/assets-handler", default-features = false }
+pallet-assets-handler = { path = "pallets/bridge/assets-handler", default-features = false }
pallet-bitacross = { path = "pallets/bitacross", default-features = false }
-pallet-bridge = { path = "pallets/bridge-related-pallets/bridge", default-features = false }
-pallet-bridge-common = { path = "pallets/bridge-related-pallets/common", default-features = false }
-pallet-bridge-transfer = { path = "pallets/bridge-related-pallets/bridge-transfer", default-features = false }
+pallet-chain-bridge = { path = "pallets/bridge/chain-bridge", default-features = false }
+pallet-bridge-common = { path = "pallets/bridge/common", default-features = false }
+pallet-bridge-transfer = { path = "pallets/bridge/bridge-transfer", default-features = false }
pallet-extrinsic-filter = { path = "pallets/extrinsic-filter", default-features = false }
pallet-group = { path = "pallets/group", default-features = false }
pallet-identity-management = { path = "pallets/identity-management", default-features = false }
diff --git a/pallets/bridge-related-pallets/bridge-transfer/src/benchmarking.rs b/pallets/bridge-related-pallets/bridge-transfer/src/benchmarking.rs
deleted file mode 100644
index 5cfbc3a0ff..0000000000
--- a/pallets/bridge-related-pallets/bridge-transfer/src/benchmarking.rs
+++ /dev/null
@@ -1,86 +0,0 @@
-// Copyright 2020-2024 Trust Computing GmbH.
-// This file is part of Litentry.
-//
-// Litentry is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// Litentry is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with Litentry. If not, see .
-
-//! bridge-transfer benchmark file
-
-#![cfg(feature = "runtime-benchmarks")]
-#![allow(clippy::type_complexity)]
-#![allow(unused)]
-#![allow(clippy::useless_vec)]
-use super::*;
-use crate::Pallet as bridge_transfer;
-use frame_benchmarking::{account, benchmarks, impl_benchmark_test_suite};
-use frame_support::{ensure, traits::SortedMembers, PalletId};
-use frame_system::RawOrigin;
-use hex_literal::hex;
-use pallet_bridge::{EnsureBridge, EnsureOrigin, Get};
-use pallet_bridge_common::{AssetInfo, BridgeHandler};
-use sp_arithmetic::traits::Saturating;
-use sp_runtime::traits::AccountIdConversion;
-use sp_std::vec;
-
-const UNIT_ISSURANCE: u32 = 20_000;
-const NATIVE_TOKEN_RESOURCE_ID: [u8; 32] =
- hex!("0000000000000000000000000000000a21dfe87028f214dd976be8479f5af001");
-fn create_user(string: &'static str, n: u32, seed: u32) -> T::AccountId {
- let user: T::AccountId = account(string, n, seed);
- bridge_transfer::::transfer(
- EnsureBridge::::try_successful_origin().unwrap(),
- user.clone(),
- (n * UNIT_ISSURANCE).into(),
- NATIVE_TOKEN_RESOURCE_ID,
- );
-
- user
-}
-
-benchmarks! {
- transfer_assets{
- // Whitelist chain
- let dest_chain = 0;
- if !>::chain_whitelisted(dest_chain) {
- >::whitelist_chain(RawOrigin::Root.into(),dest_chain)?;
- }
-
- let resource_id = NATIVE_TOKEN_RESOURCE_ID;
- T::BridgeHandler::setup_asset_info(resource_id, 0u32.into())?;
-
- let sender:T::AccountId = create_user::("sender",10u32,10u32);
-
- ensure!(T::TransferAssetsMembers::contains(&sender),"add transfer_native_member failed");
-
-
- }:_(RawOrigin::Signed(sender), 50u32.into(), vec![0u8, 0u8, 0u8, 0u8], dest_chain, resource_id)
-
- transfer{
- // Whitelist chain
- let dest_chain = 0;
- if !>::chain_whitelisted(dest_chain) {
- >::whitelist_chain(RawOrigin::Root.into(),dest_chain)?;
- }
-
-
- let resource_id = NATIVE_TOKEN_RESOURCE_ID;
- T::BridgeHandler::setup_asset_info(resource_id, 0u32.into())?;
-
- let sender = PalletId(*b"litry/bg").into_account_truncating();
-
- let to_account:T::AccountId = create_user::("to",1u32,2u32);
-
- }:_(RawOrigin::Signed(sender), to_account, 50u32.into(), resource_id)
-}
-
-impl_benchmark_test_suite!(Pallet, crate::mock::new_test_ext(), crate::mock::Test);
diff --git a/pallets/bridge-related-pallets/bridge-transfer/src/weights.rs b/pallets/bridge-related-pallets/bridge-transfer/src/weights.rs
deleted file mode 100644
index 0fe7be77c6..0000000000
--- a/pallets/bridge-related-pallets/bridge-transfer/src/weights.rs
+++ /dev/null
@@ -1,97 +0,0 @@
-// Copyright 2020-2024 Trust Computing GmbH.
-// This file is part of Litentry.
-//
-// Litentry is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// Litentry is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with Litentry. If not, see .
-
-//! Autogenerated weights for pallet_bridge_transfer
-//!
-//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2022-09-29, STEPS: `20`, REPEAT: 50, LOW RANGE: `[]`, HIGH RANGE: `[]`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
-
-// Executed Command:
-// ./target/release/litentry-collator
-// benchmark
-// pallet
-// --chain=litentry-dev
-// --execution=wasm
-// --db-cache=20
-// --wasm-execution=compiled
-// --pallet=pallet_bridge_transfer
-// --extrinsic=*
-// --heap-pages=4096
-// --steps=20
-// --repeat=50
-// --header=./LICENSE_HEADER
-// --template=./templates/benchmark/pallet-weight-template.hbs
-// --output=./pallets/bridge-transfer/src/weights.rs
-
-#![cfg_attr(rustfmt, rustfmt_skip)]
-#![allow(unused_parens)]
-#![allow(unused_imports)]
-#![allow(clippy::unnecessary_cast)]
-
-use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
-use sp_std::marker::PhantomData;
-
-/// Weight functions needed for pallet_bridge_transfer.
-pub trait WeightInfo {
- fn transfer_assets() -> Weight;
- fn transfer() -> Weight;
-}
-
-/// Weights for pallet_bridge_transfer using the Litentry node and recommended hardware.
-pub struct LitentryWeight(PhantomData);
-impl WeightInfo for LitentryWeight {
- // Storage: BridgeTransfer ExternalBalances (r:1 w:1)
- // Storage: ChainBridge ChainNonces (r:1 w:1)
- // Storage: ChainBridge BridgeFee (r:1 w:0)
- // Storage: System Account (r:2 w:2)
- // Storage: ChainBridge BridgeEvents (r:1 w:1)
- fn transfer_assets() -> Weight {
- Weight::from_parts(59_963_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(6 as u64))
- .saturating_add(T::DbWeight::get().writes(5 as u64))
- }
- // Storage: BridgeTransfer MaximumIssuance (r:1 w:0)
- // Storage: BridgeTransfer ExternalBalances (r:1 w:1)
- // Storage: System Account (r:1 w:1)
- fn transfer() -> Weight {
- Weight::from_parts(29_134_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(3 as u64))
- .saturating_add(T::DbWeight::get().writes(2 as u64))
- }
-}
-
-// For backwards compatibility and tests
-impl WeightInfo for () {
- // Storage: BridgeTransfer ExternalBalances (r:1 w:1)
- // Storage: ChainBridge ChainNonces (r:1 w:1)
- // Storage: ChainBridge BridgeFee (r:1 w:0)
- // Storage: System Account (r:2 w:2)
- // Storage: ChainBridge BridgeEvents (r:1 w:1)
- fn transfer_assets() -> Weight {
- Weight::from_parts(59_963_000 as u64, 0)
- .saturating_add(RocksDbWeight::get().reads(6 as u64))
- .saturating_add(RocksDbWeight::get().writes(5 as u64))
- }
- // Storage: BridgeTransfer MaximumIssuance (r:1 w:0)
- // Storage: BridgeTransfer ExternalBalances (r:1 w:1)
- // Storage: System Account (r:1 w:1)
- fn transfer() -> Weight {
- Weight::from_parts(29_134_000 as u64, 0)
- .saturating_add(RocksDbWeight::get().reads(3 as u64))
- .saturating_add(RocksDbWeight::get().writes(2 as u64))
- }
-}
diff --git a/pallets/bridge-related-pallets/bridge/src/weights.rs b/pallets/bridge-related-pallets/bridge/src/weights.rs
deleted file mode 100644
index 3ece69f9db..0000000000
--- a/pallets/bridge-related-pallets/bridge/src/weights.rs
+++ /dev/null
@@ -1,176 +0,0 @@
-// Copyright 2020-2024 Trust Computing GmbH.
-// This file is part of Litentry.
-//
-// Litentry is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// Litentry is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with Litentry. If not, see .
-
-//! Autogenerated weights for pallet_bridge
-//!
-//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2022-10-09, STEPS: `20`, REPEAT: 50, LOW RANGE: `[]`, HIGH RANGE: `[]`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
-
-// Executed Command:
-// ./target/release/litentry-collator
-// benchmark
-// pallet
-// --chain=litentry-dev
-// --execution=wasm
-// --db-cache=20
-// --wasm-execution=compiled
-// --pallet=pallet_bridge
-// --extrinsic=*
-// --heap-pages=4096
-// --steps=20
-// --repeat=50
-// --header=./LICENSE_HEADER
-// --template=./templates/benchmark/pallet-weight-template.hbs
-// --output=./pallets/bridge/src/weights.rs
-
-#![cfg_attr(rustfmt, rustfmt_skip)]
-#![allow(unused_parens)]
-#![allow(unused_imports)]
-#![allow(clippy::unnecessary_cast)]
-
-use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
-use sp_std::marker::PhantomData;
-
-/// Weight functions needed for pallet_bridge.
-pub trait WeightInfo {
- fn set_threshold() -> Weight;
- fn whitelist_chain() -> Weight;
- fn add_relayer() -> Weight;
- fn remove_relayer() -> Weight;
- fn acknowledge_proposal() -> Weight;
- fn reject_proposal() -> Weight;
- fn eval_vote_state() -> Weight;
-}
-
-/// Weights for pallet_bridge using the Litentry node and recommended hardware.
-pub struct LitentryWeight(PhantomData);
-impl WeightInfo for LitentryWeight {
- // Storage: ChainBridge RelayerThreshold (r:0 w:1)
- fn set_threshold() -> Weight {
- Weight::from_parts(12_574_000 as u64, 0)
- .saturating_add(T::DbWeight::get().writes(1 as u64))
- }
- // Storage: ChainBridge ChainNonces (r:1 w:1)
- fn whitelist_chain() -> Weight {
- Weight::from_parts(15_179_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
- }
- // Storage: ChainBridge Relayers (r:1 w:1)
- // Storage: ChainBridge RelayerCount (r:1 w:1)
- fn add_relayer() -> Weight {
- Weight::from_parts(17_723_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(2 as u64))
- .saturating_add(T::DbWeight::get().writes(2 as u64))
- }
- // Storage: ChainBridge Relayers (r:1 w:1)
- // Storage: ChainBridge RelayerCount (r:1 w:1)
- fn remove_relayer() -> Weight {
- Weight::from_parts(18_956_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(2 as u64))
- .saturating_add(T::DbWeight::get().writes(2 as u64))
- }
- // Storage: ChainBridge Relayers (r:1 w:0)
- // Storage: ChainBridge ChainNonces (r:1 w:0)
- // Storage: ChainBridge Resources (r:1 w:0)
- // Storage: ChainBridge Votes (r:1 w:1)
- // Storage: ChainBridge RelayerThreshold (r:1 w:0)
- // Storage: ChainBridge RelayerCount (r:1 w:0)
- fn acknowledge_proposal() -> Weight {
- Weight::from_parts(45_447_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(6 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
- }
- // Storage: ChainBridge Relayers (r:1 w:0)
- // Storage: ChainBridge ChainNonces (r:1 w:0)
- // Storage: ChainBridge Resources (r:1 w:0)
- // Storage: ChainBridge Votes (r:1 w:1)
- // Storage: ChainBridge RelayerThreshold (r:1 w:0)
- // Storage: ChainBridge RelayerCount (r:1 w:0)
- fn reject_proposal() -> Weight {
- Weight::from_parts(39_255_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(6 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
- }
- // Storage: ChainBridge Votes (r:1 w:1)
- // Storage: ChainBridge RelayerThreshold (r:1 w:0)
- // Storage: ChainBridge RelayerCount (r:1 w:0)
- fn eval_vote_state() -> Weight {
- Weight::from_parts(15_891_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(3 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
- }
-}
-
-// For backwards compatibility and tests
-impl WeightInfo for () {
- // Storage: ChainBridge RelayerThreshold (r:0 w:1)
- fn set_threshold() -> Weight {
- Weight::from_parts(12_574_000 as u64, 0)
- .saturating_add(RocksDbWeight::get().writes(1 as u64))
- }
- // Storage: ChainBridge ChainNonces (r:1 w:1)
- fn whitelist_chain() -> Weight {
- Weight::from_parts(15_179_000 as u64, 0)
- .saturating_add(RocksDbWeight::get().reads(1 as u64))
- .saturating_add(RocksDbWeight::get().writes(1 as u64))
- }
- // Storage: ChainBridge Relayers (r:1 w:1)
- // Storage: ChainBridge RelayerCount (r:1 w:1)
- fn add_relayer() -> Weight {
- Weight::from_parts(17_723_000 as u64, 0)
- .saturating_add(RocksDbWeight::get().reads(2 as u64))
- .saturating_add(RocksDbWeight::get().writes(2 as u64))
- }
- // Storage: ChainBridge Relayers (r:1 w:1)
- // Storage: ChainBridge RelayerCount (r:1 w:1)
- fn remove_relayer() -> Weight {
- Weight::from_parts(18_956_000 as u64, 0)
- .saturating_add(RocksDbWeight::get().reads(2 as u64))
- .saturating_add(RocksDbWeight::get().writes(2 as u64))
- }
- // Storage: ChainBridge Relayers (r:1 w:0)
- // Storage: ChainBridge ChainNonces (r:1 w:0)
- // Storage: ChainBridge Resources (r:1 w:0)
- // Storage: ChainBridge Votes (r:1 w:1)
- // Storage: ChainBridge RelayerThreshold (r:1 w:0)
- // Storage: ChainBridge RelayerCount (r:1 w:0)
- fn acknowledge_proposal() -> Weight {
- Weight::from_parts(45_447_000 as u64, 0)
- .saturating_add(RocksDbWeight::get().reads(6 as u64))
- .saturating_add(RocksDbWeight::get().writes(1 as u64))
- }
- // Storage: ChainBridge Relayers (r:1 w:0)
- // Storage: ChainBridge ChainNonces (r:1 w:0)
- // Storage: ChainBridge Resources (r:1 w:0)
- // Storage: ChainBridge Votes (r:1 w:1)
- // Storage: ChainBridge RelayerThreshold (r:1 w:0)
- // Storage: ChainBridge RelayerCount (r:1 w:0)
- fn reject_proposal() -> Weight {
- Weight::from_parts(39_255_000 as u64, 0)
- .saturating_add(RocksDbWeight::get().reads(6 as u64))
- .saturating_add(RocksDbWeight::get().writes(1 as u64))
- }
- // Storage: ChainBridge Votes (r:1 w:1)
- // Storage: ChainBridge RelayerThreshold (r:1 w:0)
- // Storage: ChainBridge RelayerCount (r:1 w:0)
- fn eval_vote_state() -> Weight {
- Weight::from_parts(15_891_000 as u64, 0)
- .saturating_add(RocksDbWeight::get().reads(3 as u64))
- .saturating_add(RocksDbWeight::get().writes(1 as u64))
- }
-}
diff --git a/pallets/bridge-related-pallets/assets-handler/Cargo.toml b/pallets/bridge/assets-handler/Cargo.toml
similarity index 92%
rename from pallets/bridge-related-pallets/assets-handler/Cargo.toml
rename to pallets/bridge/assets-handler/Cargo.toml
index e6362d4b70..7415a47c27 100644
--- a/pallets/bridge-related-pallets/assets-handler/Cargo.toml
+++ b/pallets/bridge/assets-handler/Cargo.toml
@@ -17,8 +17,8 @@ frame-support = { workspace = true }
frame-system = { workspace = true }
pallet-assets = { workspace = true }
pallet-balances = { workspace = true }
-pallet-bridge = { workspace = true }
pallet-bridge-common = { workspace = true }
+pallet-chain-bridge = { workspace = true }
pallet-parachain-staking = { workspace = true }
sp-core = { workspace = true }
sp-io = { workspace = true }
@@ -34,7 +34,7 @@ runtime-benchmarks = [
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-assets/runtime-benchmarks",
- "pallet-bridge/runtime-benchmarks",
+ "pallet-chain-bridge/runtime-benchmarks",
"pallet-bridge-common/runtime-benchmarks",
"pallet-parachain-staking/runtime-benchmarks",
]
@@ -49,7 +49,7 @@ std = [
"frame-system/std",
"pallet-assets/std",
"pallet-balances/std",
- "pallet-bridge/std",
+ "pallet-chain-bridge/std",
"pallet-bridge-common/std",
"pallet-parachain-staking/std",
]
diff --git a/pallets/bridge-related-pallets/assets-handler/src/lib.rs b/pallets/bridge/assets-handler/src/lib.rs
similarity index 97%
rename from pallets/bridge-related-pallets/assets-handler/src/lib.rs
rename to pallets/bridge/assets-handler/src/lib.rs
index ee4dbfa5ba..93e43d5c57 100644
--- a/pallets/bridge-related-pallets/assets-handler/src/lib.rs
+++ b/pallets/bridge/assets-handler/src/lib.rs
@@ -43,7 +43,7 @@ use sp_runtime::{
ArithmeticError, DispatchError, FixedPointOperand,
};
use sp_std::{fmt::Debug, prelude::*};
-type ResourceId = pallet_bridge::ResourceId;
+type ResourceId = pallet_chain_bridge::ResourceId;
use pallet_bridge_common::AssetInfo;
#[frame_support::pallet]
@@ -64,7 +64,7 @@ pub mod pallet {
frame_system::Config
+ pallet_balances::Config
+ pallet_assets::Config
- + pallet_bridge::Config
+ + pallet_chain_bridge::Config
{
/// Overarching event type
type RuntimeEvent: From> + IsType<::RuntimeEvent>;
@@ -156,7 +156,7 @@ pub mod pallet {
resource_id: ResourceId,
asset: AssetInfo, BalanceOf>,
) -> DispatchResult {
- ::BridgeCommitteeOrigin::ensure_origin(origin)?;
+ ::BridgeCommitteeOrigin::ensure_origin(origin)?;
ResourceToAssetInfo::::insert(resource_id, asset.clone());
Self::deposit_event(Event::ResourceUpdated { resource_id, asset });
Ok(())
@@ -169,7 +169,7 @@ pub mod pallet {
#[pallet::call_index(1)]
#[pallet::weight({1000})]
pub fn remove_resource(origin: OriginFor, resource_id: ResourceId) -> DispatchResult {
- ::BridgeCommitteeOrigin::ensure_origin(origin)?;
+ ::BridgeCommitteeOrigin::ensure_origin(origin)?;
ResourceToAssetInfo::::remove(resource_id);
Self::deposit_event(Event::ResourceRemoved { resource_id });
Ok(())
@@ -206,7 +206,7 @@ impl BridgeHandler for Pallet
where
T: Config
+ frame_system::Config
- + pallet_bridge::Config
+ + pallet_chain_bridge::Config
+ pallet_assets::Config
+ pallet_balances::Config,
B: Copy
diff --git a/pallets/bridge-related-pallets/assets-handler/src/mock.rs b/pallets/bridge/assets-handler/src/mock.rs
similarity index 97%
rename from pallets/bridge-related-pallets/assets-handler/src/mock.rs
rename to pallets/bridge/assets-handler/src/mock.rs
index b8693a5d63..e22aaed547 100644
--- a/pallets/bridge-related-pallets/assets-handler/src/mock.rs
+++ b/pallets/bridge/assets-handler/src/mock.rs
@@ -40,7 +40,7 @@ frame_support::construct_runtime!(
{
System: frame_system,
Balances: pallet_balances,
- Bridge: pallet_bridge,
+ Bridge: pallet_chain_bridge,
Assets: pallet_assets,
AssetsHandler: pallet_assets_handler,
BridgeTransfer: pallet_bridge_transfer,
@@ -103,7 +103,7 @@ parameter_types! {
pub const TreasuryAccount:u64 = 0x8;
}
-impl pallet_bridge::Config for Test {
+impl pallet_chain_bridge::Config for Test {
type RuntimeEvent = RuntimeEvent;
type BridgeCommitteeOrigin = frame_system::EnsureRoot;
type Proposal = RuntimeCall;
@@ -182,7 +182,7 @@ impl pallet_assets_handler::Config for Test {
}
impl pallet_bridge_transfer::Config for Test {
- type BridgeOrigin = pallet_bridge::EnsureBridge;
+ type BridgeOrigin = pallet_chain_bridge::EnsureBridge;
type TransferAssetsMembers = MembersProvider;
type BridgeHandler = AssetsHandler;
type WeightInfo = ();
@@ -225,8 +225,8 @@ pub fn new_test_ext() -> sp_io::TestExternalities {
}
pub fn new_test_ext_initialized(
- src_id: pallet_bridge::BridgeChainId,
- r_id: pallet_bridge::ResourceId,
+ src_id: pallet_chain_bridge::BridgeChainId,
+ r_id: pallet_chain_bridge::ResourceId,
asset: AssetInfo<
::AssetId,
::Balance,
diff --git a/pallets/bridge-related-pallets/assets-handler/src/tests.rs b/pallets/bridge/assets-handler/src/tests.rs
similarity index 88%
rename from pallets/bridge-related-pallets/assets-handler/src/tests.rs
rename to pallets/bridge/assets-handler/src/tests.rs
index 31db905ddd..85b06b394c 100644
--- a/pallets/bridge-related-pallets/assets-handler/src/tests.rs
+++ b/pallets/bridge/assets-handler/src/tests.rs
@@ -34,7 +34,10 @@ fn make_transfer_proposal(to: u64, amount: u64) -> RuntimeCall {
#[test]
fn constant_equality() {
- let r_id = pallet_bridge::derive_resource_id(1, &pallet_bridge::hashing::blake2_128(b"LIT"));
+ let r_id = pallet_chain_bridge::derive_resource_id(
+ 1,
+ &pallet_chain_bridge::hashing::blake2_128(b"LIT"),
+ );
let encoded: [u8; 32] =
hex!("0000000000000000000000000000000a21dfe87028f214dd976be8479f5af001");
assert_eq!(r_id, encoded);
@@ -42,7 +45,7 @@ fn constant_equality() {
#[test]
fn transfer() {
- let dest_bridge_id: pallet_bridge::BridgeChainId = 0;
+ let dest_bridge_id: pallet_chain_bridge::BridgeChainId = 0;
let resource_id = NativeTokenResourceId::get();
let native_token_asset_info: AssetInfo<
::AssetId,
@@ -77,7 +80,7 @@ fn transfer() {
#[test]
fn transfer_assets() {
- let dest_bridge_id: pallet_bridge::BridgeChainId = 0;
+ let dest_bridge_id: pallet_chain_bridge::BridgeChainId = 0;
let resource_id = NativeTokenResourceId::get();
let native_token_asset_info: AssetInfo<
::AssetId,
@@ -117,7 +120,7 @@ fn transfer_assets() {
amount: 100,
fee: 10,
}),
- RuntimeEvent::Bridge(pallet_bridge::Event::FungibleTransfer(
+ RuntimeEvent::Bridge(pallet_chain_bridge::Event::FungibleTransfer(
dest_bridge_id,
1,
resource_id,
@@ -131,7 +134,7 @@ fn transfer_assets() {
#[test]
fn mint_overflow() {
- let dest_bridge_id: pallet_bridge::BridgeChainId = 0;
+ let dest_bridge_id: pallet_chain_bridge::BridgeChainId = 0;
let resource_id = NativeTokenResourceId::get();
let native_token_asset_info: AssetInfo<
::AssetId,
@@ -160,9 +163,9 @@ fn mint_overflow() {
fn transfer_to_regular_account() {
new_test_ext().execute_with(|| {
let dest_chain = 0;
- let asset = pallet_bridge::derive_resource_id(
+ let asset = pallet_chain_bridge::derive_resource_id(
dest_chain,
- &pallet_bridge::hashing::blake2_128(b"an asset"),
+ &pallet_chain_bridge::hashing::blake2_128(b"an asset"),
);
let amount: u64 = 100;
@@ -180,7 +183,7 @@ fn transfer_to_regular_account() {
#[test]
fn create_successful_transfer_proposal() {
- let src_id: pallet_bridge::BridgeChainId = 0;
+ let src_id: pallet_chain_bridge::BridgeChainId = 0;
let r_id = NativeTokenResourceId::get();
let native_token_asset_info: AssetInfo<
::AssetId,
@@ -200,10 +203,10 @@ fn create_successful_transfer_proposal() {
Box::new(proposal.clone())
));
let prop = Bridge::votes(src_id, (prop_id, proposal.clone())).unwrap();
- let expected = pallet_bridge::ProposalVotes {
+ let expected = pallet_chain_bridge::ProposalVotes {
votes_for: vec![RELAYER_A],
votes_against: vec![],
- status: pallet_bridge::ProposalStatus::Initiated,
+ status: pallet_chain_bridge::ProposalStatus::Initiated,
expiry: ProposalLifetime::get() + 1,
};
assert_eq!(prop, expected);
@@ -217,10 +220,10 @@ fn create_successful_transfer_proposal() {
Box::new(proposal.clone())
));
let prop = Bridge::votes(src_id, (prop_id, proposal.clone())).unwrap();
- let expected = pallet_bridge::ProposalVotes {
+ let expected = pallet_chain_bridge::ProposalVotes {
votes_for: vec![RELAYER_A],
votes_against: vec![RELAYER_B],
- status: pallet_bridge::ProposalStatus::Initiated,
+ status: pallet_chain_bridge::ProposalStatus::Initiated,
expiry: ProposalLifetime::get() + 1,
};
assert_eq!(prop, expected);
@@ -234,10 +237,10 @@ fn create_successful_transfer_proposal() {
Box::new(proposal.clone())
));
let prop = Bridge::votes(src_id, (prop_id, proposal)).unwrap();
- let expected = pallet_bridge::ProposalVotes {
+ let expected = pallet_chain_bridge::ProposalVotes {
votes_for: vec![RELAYER_A, RELAYER_C],
votes_against: vec![RELAYER_B],
- status: pallet_bridge::ProposalStatus::Approved,
+ status: pallet_chain_bridge::ProposalStatus::Approved,
expiry: ProposalLifetime::get() + 1,
};
assert_eq!(prop, expected);
@@ -245,17 +248,19 @@ fn create_successful_transfer_proposal() {
assert_eq!(Balances::free_balance(RELAYER_A), ENDOWED_BALANCE + 10);
assert_events(vec![
- RuntimeEvent::Bridge(pallet_bridge::Event::VoteFor(src_id, prop_id, RELAYER_A)),
- RuntimeEvent::Bridge(pallet_bridge::Event::VoteAgainst(src_id, prop_id, RELAYER_B)),
- RuntimeEvent::Bridge(pallet_bridge::Event::VoteFor(src_id, prop_id, RELAYER_C)),
- RuntimeEvent::Bridge(pallet_bridge::Event::ProposalApproved(src_id, prop_id)),
+ RuntimeEvent::Bridge(pallet_chain_bridge::Event::VoteFor(src_id, prop_id, RELAYER_A)),
+ RuntimeEvent::Bridge(pallet_chain_bridge::Event::VoteAgainst(
+ src_id, prop_id, RELAYER_B,
+ )),
+ RuntimeEvent::Bridge(pallet_chain_bridge::Event::VoteFor(src_id, prop_id, RELAYER_C)),
+ RuntimeEvent::Bridge(pallet_chain_bridge::Event::ProposalApproved(src_id, prop_id)),
RuntimeEvent::AssetsHandler(Event::TokenBridgeIn {
asset_id: None,
to: RELAYER_A,
amount: 10,
}),
RuntimeEvent::Balances(pallet_balances::Event::Minted { who: RELAYER_A, amount: 10 }),
- RuntimeEvent::Bridge(pallet_bridge::Event::ProposalSucceeded(src_id, prop_id)),
+ RuntimeEvent::Bridge(pallet_chain_bridge::Event::ProposalSucceeded(src_id, prop_id)),
]);
})
}
@@ -360,7 +365,7 @@ fn test_external_balances_adjusted() {
resource_id,
native_token_asset_info
));
- assert_ok!(pallet_bridge::Pallet::::whitelist_chain(
+ assert_ok!(pallet_chain_bridge::Pallet::::whitelist_chain(
RuntimeOrigin::root(),
dest_chain
));
diff --git a/pallets/bridge-related-pallets/bridge-transfer/Cargo.toml b/pallets/bridge/bridge-transfer/Cargo.toml
similarity index 92%
rename from pallets/bridge-related-pallets/bridge-transfer/Cargo.toml
rename to pallets/bridge/bridge-transfer/Cargo.toml
index cebf61e602..589afb6a33 100644
--- a/pallets/bridge-related-pallets/bridge-transfer/Cargo.toml
+++ b/pallets/bridge/bridge-transfer/Cargo.toml
@@ -22,8 +22,8 @@ frame-support = { workspace = true }
frame-system = { workspace = true }
pallet-assets = { workspace = true }
-pallet-bridge = { workspace = true }
pallet-bridge-common = { workspace = true }
+pallet-chain-bridge = { workspace = true }
[dev-dependencies]
pallet-assets-handler = { workspace = true, features = ["std"] }
@@ -37,7 +37,7 @@ runtime-benchmarks = [
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-assets/runtime-benchmarks",
- "pallet-bridge/runtime-benchmarks",
+ "pallet-chain-bridge/runtime-benchmarks",
"pallet-bridge-common/runtime-benchmarks",
]
std = [
@@ -52,7 +52,7 @@ std = [
"frame-system/std",
"frame-benchmarking?/std",
"pallet-assets/std",
- "pallet-bridge/std",
+ "pallet-chain-bridge/std",
"pallet-bridge-common/std",
]
try-runtime = ["frame-support/try-runtime"]
diff --git a/pallets/bridge/bridge-transfer/src/benchmarking.rs b/pallets/bridge/bridge-transfer/src/benchmarking.rs
new file mode 100644
index 0000000000..9ec5f60add
--- /dev/null
+++ b/pallets/bridge/bridge-transfer/src/benchmarking.rs
@@ -0,0 +1,87 @@
+// Copyright 2020-2024 Trust Computing GmbH.
+// This file is part of Litentry.
+//
+// Litentry is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Litentry is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Litentry. If not, see .
+
+//! bridge-transfer benchmark file
+
+use super::{Pallet as BridgeTransfer, *};
+use frame_benchmarking::v2::*;
+use frame_support::traits::Currency;
+use frame_system::RawOrigin;
+use hex_literal::hex;
+use pallet_bridge_common::BridgeHandler;
+use pallet_chain_bridge::{EnsureOrigin, Pallet as ChainBridge};
+use sp_std::vec;
+
+const RID: [u8; 32] = hex!("0000000000000000000000000000000a21dfe87028f214dd976be8479f5af001");
+
+fn setup() {
+ ChainBridge::::whitelist_chain(RawOrigin::Root.into(), 0).unwrap();
+ T::BridgeHandler::setup_asset_info(RID, 0u32.into()).unwrap();
+}
+
+fn create_funded_user(
+ string: &'static str,
+ n: u32,
+ extra: u32,
+) -> T::AccountId {
+ const SEED: u32 = 0;
+ let user = account(string, n, SEED);
+ let total = ::Currency::minimum_balance() + extra.into();
+ ::Currency::make_free_balance_be(&user, total);
+ let _ = ::Currency::issue(total);
+ user
+}
+
+fn do_transfer(to: T::AccountId, amount: u32) {
+ BridgeTransfer::::transfer(
+ T::BridgeOrigin::try_successful_origin().unwrap(),
+ to,
+ amount.into(),
+ RID,
+ )
+ .expect("BridgeTransfer::transfer failed");
+}
+
+#[allow(clippy::multiple_bound_locations)]
+#[benchmarks(
+ where ::Hash: From<[u8; 32]>,
+ T: pallet_assets::Config,
+)]
+mod benchmarks {
+ use super::*;
+
+ #[benchmark]
+ fn transfer_assets() {
+ setup::();
+ let sender = create_funded_user::("sender", 1, 100);
+ do_transfer::(sender.clone(), 1);
+
+ #[extrinsic_call]
+ _(RawOrigin::Signed(sender), 5u32.into(), vec![0u8, 0u8, 0u8, 0u8], 0, RID);
+ }
+
+ #[benchmark]
+ fn transfer() {
+ setup::();
+ let to = create_funded_user::("to", 1, 100);
+ let o = T::BridgeOrigin::try_successful_origin().unwrap();
+
+ #[extrinsic_call]
+ _(o as T::RuntimeOrigin, to, 1u32.into(), RID);
+ }
+
+ impl_benchmark_test_suite!(BridgeTransfer, crate::mock::new_test_ext(), crate::mock::Test);
+}
diff --git a/pallets/bridge-related-pallets/bridge-transfer/src/lib.rs b/pallets/bridge/bridge-transfer/src/lib.rs
similarity index 98%
rename from pallets/bridge-related-pallets/bridge-transfer/src/lib.rs
rename to pallets/bridge/bridge-transfer/src/lib.rs
index 4d61e592bb..542e25d3b1 100644
--- a/pallets/bridge-related-pallets/bridge-transfer/src/lib.rs
+++ b/pallets/bridge/bridge-transfer/src/lib.rs
@@ -40,8 +40,8 @@ pub mod pallet {
use sp_runtime::traits::BadOrigin;
use sp_std::vec::Vec;
- pub use pallet_bridge as bridge;
use pallet_bridge_common::BridgeHandler;
+ pub use pallet_chain_bridge as bridge;
pub type ResourceId = bridge::ResourceId;
pub type BridgeChainId = bridge::BridgeChainId;
diff --git a/pallets/bridge-related-pallets/bridge-transfer/src/mock.rs b/pallets/bridge/bridge-transfer/src/mock.rs
similarity index 99%
rename from pallets/bridge-related-pallets/bridge-transfer/src/mock.rs
rename to pallets/bridge/bridge-transfer/src/mock.rs
index b3bd7db02d..f96857b24d 100644
--- a/pallets/bridge-related-pallets/bridge-transfer/src/mock.rs
+++ b/pallets/bridge/bridge-transfer/src/mock.rs
@@ -24,8 +24,8 @@ use frame_system as system;
use frame_system::EnsureSignedBy;
use hex_literal::hex;
pub use pallet_balances as balances;
-use pallet_bridge::{self as bridge, ResourceId};
use pallet_bridge_common::AssetInfo;
+use pallet_chain_bridge::{self as bridge, ResourceId};
use sp_core::H256;
use sp_runtime::{
traits::{AccountIdConversion, BlakeTwo256, IdentityLookup},
diff --git a/pallets/bridge-related-pallets/bridge-transfer/src/tests.rs b/pallets/bridge/bridge-transfer/src/tests.rs
similarity index 100%
rename from pallets/bridge-related-pallets/bridge-transfer/src/tests.rs
rename to pallets/bridge/bridge-transfer/src/tests.rs
diff --git a/pallets/bridge/bridge-transfer/src/weights.rs b/pallets/bridge/bridge-transfer/src/weights.rs
new file mode 100644
index 0000000000..9b4d550670
--- /dev/null
+++ b/pallets/bridge/bridge-transfer/src/weights.rs
@@ -0,0 +1,136 @@
+// Copyright 2020-2024 Trust Computing GmbH.
+// This file is part of Litentry.
+//
+// Litentry is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Litentry is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Litentry. If not, see .
+
+//! Autogenerated weights for pallet_bridge_transfer
+//!
+//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! WORST CASE MAP SIZE: `1000000`
+//! HOSTNAME: `azure-dev-1`, CPU: `Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz`
+//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+
+// Executed Command:
+// ./target/release/litentry-collator
+// benchmark
+// pallet
+// --chain=litentry-dev
+// --execution=wasm
+// --db-cache=20
+// --wasm-execution=compiled
+// --pallet=pallet_bridge_transfer
+// --extrinsic=*
+// --heap-pages=4096
+// --steps=20
+// --repeat=50
+// --header=./LICENSE_HEADER
+// --template=./templates/benchmark/pallet-weight-template.hbs
+// --output=./pallets/bridge/bridge-transfer/src/weights.rs
+
+#![cfg_attr(rustfmt, rustfmt_skip)]
+#![allow(unused_parens)]
+#![allow(unused_imports)]
+#![allow(clippy::unnecessary_cast)]
+#![allow(missing_docs)]
+
+use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
+use core::marker::PhantomData;
+
+/// Weight functions needed for pallet_bridge_transfer.
+pub trait WeightInfo {
+ fn transfer_assets() -> Weight;
+ fn transfer() -> Weight;
+}
+
+/// Weights for pallet_bridge_transfer using the Substrate node and recommended hardware.
+pub struct LitentryWeight(PhantomData);
+impl WeightInfo for LitentryWeight {
+ /// Storage: `AssetsHandler::ResourceToAssetInfo` (r:1 w:0)
+ /// Proof: `AssetsHandler::ResourceToAssetInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:2 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `AssetsHandler::ExternalBalances` (r:1 w:1)
+ /// Proof: `AssetsHandler::ExternalBalances` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::ChainNonces` (r:1 w:1)
+ /// Proof: `ChainBridge::ChainNonces` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::BridgeEvents` (r:1 w:1)
+ /// Proof: `ChainBridge::BridgeEvents` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn transfer_assets() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `573`
+ // Estimated: `6196`
+ // Minimum execution time: 77_551_000 picoseconds.
+ Weight::from_parts(78_675_000, 6196)
+ .saturating_add(T::DbWeight::get().reads(6_u64))
+ .saturating_add(T::DbWeight::get().writes(4_u64))
+ }
+ /// Storage: `AssetsHandler::ResourceToAssetInfo` (r:1 w:0)
+ /// Proof: `AssetsHandler::ResourceToAssetInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetsHandler::MaximumIssuance` (r:1 w:0)
+ /// Proof: `AssetsHandler::MaximumIssuance` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetsHandler::ExternalBalances` (r:1 w:1)
+ /// Proof: `AssetsHandler::ExternalBalances` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ fn transfer() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `328`
+ // Estimated: `3793`
+ // Minimum execution time: 45_793_000 picoseconds.
+ Weight::from_parts(46_465_000, 3793)
+ .saturating_add(T::DbWeight::get().reads(4_u64))
+ .saturating_add(T::DbWeight::get().writes(2_u64))
+ }
+}
+
+// For backwards compatibility and tests
+impl WeightInfo for () {
+ /// Storage: `AssetsHandler::ResourceToAssetInfo` (r:1 w:0)
+ /// Proof: `AssetsHandler::ResourceToAssetInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:2 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `AssetsHandler::ExternalBalances` (r:1 w:1)
+ /// Proof: `AssetsHandler::ExternalBalances` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::ChainNonces` (r:1 w:1)
+ /// Proof: `ChainBridge::ChainNonces` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::BridgeEvents` (r:1 w:1)
+ /// Proof: `ChainBridge::BridgeEvents` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn transfer_assets() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `573`
+ // Estimated: `6196`
+ // Minimum execution time: 77_551_000 picoseconds.
+ Weight::from_parts(78_675_000, 6196)
+ .saturating_add(RocksDbWeight::get().reads(6_u64))
+ .saturating_add(RocksDbWeight::get().writes(4_u64))
+ }
+ /// Storage: `AssetsHandler::ResourceToAssetInfo` (r:1 w:0)
+ /// Proof: `AssetsHandler::ResourceToAssetInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetsHandler::MaximumIssuance` (r:1 w:0)
+ /// Proof: `AssetsHandler::MaximumIssuance` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetsHandler::ExternalBalances` (r:1 w:1)
+ /// Proof: `AssetsHandler::ExternalBalances` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ fn transfer() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `328`
+ // Estimated: `3793`
+ // Minimum execution time: 45_793_000 picoseconds.
+ Weight::from_parts(46_465_000, 3793)
+ .saturating_add(RocksDbWeight::get().reads(4_u64))
+ .saturating_add(RocksDbWeight::get().writes(2_u64))
+ }
+}
diff --git a/pallets/bridge-related-pallets/bridge/Cargo.toml b/pallets/bridge/chain-bridge/Cargo.toml
similarity index 97%
rename from pallets/bridge-related-pallets/bridge/Cargo.toml
rename to pallets/bridge/chain-bridge/Cargo.toml
index a8b9d7ae8b..88ecf48517 100644
--- a/pallets/bridge-related-pallets/bridge/Cargo.toml
+++ b/pallets/bridge/chain-bridge/Cargo.toml
@@ -2,7 +2,7 @@
authors = ['Trust Computing GmbH ']
edition = '2021'
homepage = 'https://litentry.com'
-name = 'pallet-bridge'
+name = 'pallet-chain-bridge'
repository = 'https://github.com/litentry/litentry-pallets'
version = '0.1.0'
diff --git a/pallets/bridge-related-pallets/bridge/src/benchmarking.rs b/pallets/bridge/chain-bridge/src/benchmarking.rs
similarity index 100%
rename from pallets/bridge-related-pallets/bridge/src/benchmarking.rs
rename to pallets/bridge/chain-bridge/src/benchmarking.rs
diff --git a/pallets/bridge-related-pallets/bridge/src/hashing.rs b/pallets/bridge/chain-bridge/src/hashing.rs
similarity index 100%
rename from pallets/bridge-related-pallets/bridge/src/hashing.rs
rename to pallets/bridge/chain-bridge/src/hashing.rs
diff --git a/pallets/bridge-related-pallets/bridge/src/lib.rs b/pallets/bridge/chain-bridge/src/lib.rs
similarity index 100%
rename from pallets/bridge-related-pallets/bridge/src/lib.rs
rename to pallets/bridge/chain-bridge/src/lib.rs
diff --git a/pallets/bridge-related-pallets/bridge/src/mock.rs b/pallets/bridge/chain-bridge/src/mock.rs
similarity index 100%
rename from pallets/bridge-related-pallets/bridge/src/mock.rs
rename to pallets/bridge/chain-bridge/src/mock.rs
diff --git a/pallets/bridge-related-pallets/bridge/src/tests.rs b/pallets/bridge/chain-bridge/src/tests.rs
similarity index 100%
rename from pallets/bridge-related-pallets/bridge/src/tests.rs
rename to pallets/bridge/chain-bridge/src/tests.rs
diff --git a/pallets/bridge/chain-bridge/src/weights.rs b/pallets/bridge/chain-bridge/src/weights.rs
new file mode 100644
index 0000000000..e04291e2b7
--- /dev/null
+++ b/pallets/bridge/chain-bridge/src/weights.rs
@@ -0,0 +1,269 @@
+// Copyright 2020-2024 Trust Computing GmbH.
+// This file is part of Litentry.
+//
+// Litentry is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Litentry is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Litentry. If not, see .
+
+//! Autogenerated weights for pallet_chain_bridge
+//!
+//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! WORST CASE MAP SIZE: `1000000`
+//! HOSTNAME: `azure-dev-1`, CPU: `Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz`
+//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+
+// Executed Command:
+// ./target/release/litentry-collator
+// benchmark
+// pallet
+// --chain=litentry-dev
+// --execution=wasm
+// --db-cache=20
+// --wasm-execution=compiled
+// --pallet=pallet_chain_bridge
+// --extrinsic=*
+// --heap-pages=4096
+// --steps=20
+// --repeat=50
+// --header=./LICENSE_HEADER
+// --template=./templates/benchmark/pallet-weight-template.hbs
+// --output=./pallets/bridge/chain-bridge/src/weights.rs
+
+#![cfg_attr(rustfmt, rustfmt_skip)]
+#![allow(unused_parens)]
+#![allow(unused_imports)]
+#![allow(clippy::unnecessary_cast)]
+#![allow(missing_docs)]
+
+use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
+use core::marker::PhantomData;
+
+/// Weight functions needed for pallet_chain_bridge.
+pub trait WeightInfo {
+ fn set_threshold() -> Weight;
+ fn whitelist_chain() -> Weight;
+ fn add_relayer() -> Weight;
+ fn remove_relayer() -> Weight;
+ fn acknowledge_proposal() -> Weight;
+ fn reject_proposal() -> Weight;
+ fn eval_vote_state() -> Weight;
+}
+
+/// Weights for pallet_chain_bridge using the Substrate node and recommended hardware.
+pub struct LitentryWeight(PhantomData);
+impl WeightInfo for LitentryWeight {
+ /// Storage: `ChainBridge::RelayerThreshold` (r:0 w:1)
+ /// Proof: `ChainBridge::RelayerThreshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn set_threshold() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 9_474_000 picoseconds.
+ Weight::from_parts(9_857_000, 0)
+ .saturating_add(T::DbWeight::get().writes(1_u64))
+ }
+ /// Storage: `ChainBridge::ChainNonces` (r:1 w:1)
+ /// Proof: `ChainBridge::ChainNonces` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ fn whitelist_chain() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `142`
+ // Estimated: `3607`
+ // Minimum execution time: 13_428_000 picoseconds.
+ Weight::from_parts(13_849_000, 3607)
+ .saturating_add(T::DbWeight::get().reads(1_u64))
+ .saturating_add(T::DbWeight::get().writes(1_u64))
+ }
+ /// Storage: `ChainBridge::Relayers` (r:1 w:1)
+ /// Proof: `ChainBridge::Relayers` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:1)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn add_relayer() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `142`
+ // Estimated: `3607`
+ // Minimum execution time: 16_156_000 picoseconds.
+ Weight::from_parts(16_486_000, 3607)
+ .saturating_add(T::DbWeight::get().reads(2_u64))
+ .saturating_add(T::DbWeight::get().writes(2_u64))
+ }
+ /// Storage: `ChainBridge::Relayers` (r:1 w:1)
+ /// Proof: `ChainBridge::Relayers` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:1)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn remove_relayer() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `223`
+ // Estimated: `3688`
+ // Minimum execution time: 18_575_000 picoseconds.
+ Weight::from_parts(18_810_000, 3688)
+ .saturating_add(T::DbWeight::get().reads(2_u64))
+ .saturating_add(T::DbWeight::get().writes(2_u64))
+ }
+ /// Storage: `ChainBridge::Relayers` (r:1 w:0)
+ /// Proof: `ChainBridge::Relayers` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::ChainNonces` (r:1 w:0)
+ /// Proof: `ChainBridge::ChainNonces` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::Votes` (r:1 w:1)
+ /// Proof: `ChainBridge::Votes` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerThreshold` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerThreshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn acknowledge_proposal() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `285`
+ // Estimated: `3750`
+ // Minimum execution time: 44_397_000 picoseconds.
+ Weight::from_parts(45_191_000, 3750)
+ .saturating_add(T::DbWeight::get().reads(5_u64))
+ .saturating_add(T::DbWeight::get().writes(1_u64))
+ }
+ /// Storage: `ChainBridge::Relayers` (r:1 w:0)
+ /// Proof: `ChainBridge::Relayers` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::ChainNonces` (r:1 w:0)
+ /// Proof: `ChainBridge::ChainNonces` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::Votes` (r:1 w:1)
+ /// Proof: `ChainBridge::Votes` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerThreshold` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerThreshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn reject_proposal() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `285`
+ // Estimated: `3750`
+ // Minimum execution time: 37_384_000 picoseconds.
+ Weight::from_parts(37_828_000, 3750)
+ .saturating_add(T::DbWeight::get().reads(5_u64))
+ .saturating_add(T::DbWeight::get().writes(1_u64))
+ }
+ /// Storage: `ChainBridge::Votes` (r:1 w:1)
+ /// Proof: `ChainBridge::Votes` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerThreshold` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerThreshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn eval_vote_state() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `451`
+ // Estimated: `3916`
+ // Minimum execution time: 17_451_000 picoseconds.
+ Weight::from_parts(17_841_000, 3916)
+ .saturating_add(T::DbWeight::get().reads(3_u64))
+ .saturating_add(T::DbWeight::get().writes(1_u64))
+ }
+}
+
+// For backwards compatibility and tests
+impl WeightInfo for () {
+ /// Storage: `ChainBridge::RelayerThreshold` (r:0 w:1)
+ /// Proof: `ChainBridge::RelayerThreshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn set_threshold() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 9_474_000 picoseconds.
+ Weight::from_parts(9_857_000, 0)
+ .saturating_add(RocksDbWeight::get().writes(1_u64))
+ }
+ /// Storage: `ChainBridge::ChainNonces` (r:1 w:1)
+ /// Proof: `ChainBridge::ChainNonces` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ fn whitelist_chain() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `142`
+ // Estimated: `3607`
+ // Minimum execution time: 13_428_000 picoseconds.
+ Weight::from_parts(13_849_000, 3607)
+ .saturating_add(RocksDbWeight::get().reads(1_u64))
+ .saturating_add(RocksDbWeight::get().writes(1_u64))
+ }
+ /// Storage: `ChainBridge::Relayers` (r:1 w:1)
+ /// Proof: `ChainBridge::Relayers` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:1)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn add_relayer() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `142`
+ // Estimated: `3607`
+ // Minimum execution time: 16_156_000 picoseconds.
+ Weight::from_parts(16_486_000, 3607)
+ .saturating_add(RocksDbWeight::get().reads(2_u64))
+ .saturating_add(RocksDbWeight::get().writes(2_u64))
+ }
+ /// Storage: `ChainBridge::Relayers` (r:1 w:1)
+ /// Proof: `ChainBridge::Relayers` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:1)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn remove_relayer() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `223`
+ // Estimated: `3688`
+ // Minimum execution time: 18_575_000 picoseconds.
+ Weight::from_parts(18_810_000, 3688)
+ .saturating_add(RocksDbWeight::get().reads(2_u64))
+ .saturating_add(RocksDbWeight::get().writes(2_u64))
+ }
+ /// Storage: `ChainBridge::Relayers` (r:1 w:0)
+ /// Proof: `ChainBridge::Relayers` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::ChainNonces` (r:1 w:0)
+ /// Proof: `ChainBridge::ChainNonces` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::Votes` (r:1 w:1)
+ /// Proof: `ChainBridge::Votes` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerThreshold` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerThreshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn acknowledge_proposal() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `285`
+ // Estimated: `3750`
+ // Minimum execution time: 44_397_000 picoseconds.
+ Weight::from_parts(45_191_000, 3750)
+ .saturating_add(RocksDbWeight::get().reads(5_u64))
+ .saturating_add(RocksDbWeight::get().writes(1_u64))
+ }
+ /// Storage: `ChainBridge::Relayers` (r:1 w:0)
+ /// Proof: `ChainBridge::Relayers` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::ChainNonces` (r:1 w:0)
+ /// Proof: `ChainBridge::ChainNonces` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::Votes` (r:1 w:1)
+ /// Proof: `ChainBridge::Votes` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerThreshold` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerThreshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn reject_proposal() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `285`
+ // Estimated: `3750`
+ // Minimum execution time: 37_384_000 picoseconds.
+ Weight::from_parts(37_828_000, 3750)
+ .saturating_add(RocksDbWeight::get().reads(5_u64))
+ .saturating_add(RocksDbWeight::get().writes(1_u64))
+ }
+ /// Storage: `ChainBridge::Votes` (r:1 w:1)
+ /// Proof: `ChainBridge::Votes` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerThreshold` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerThreshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn eval_vote_state() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `451`
+ // Estimated: `3916`
+ // Minimum execution time: 17_451_000 picoseconds.
+ Weight::from_parts(17_841_000, 3916)
+ .saturating_add(RocksDbWeight::get().reads(3_u64))
+ .saturating_add(RocksDbWeight::get().writes(1_u64))
+ }
+}
diff --git a/pallets/bridge-related-pallets/common/Cargo.toml b/pallets/bridge/common/Cargo.toml
similarity index 100%
rename from pallets/bridge-related-pallets/common/Cargo.toml
rename to pallets/bridge/common/Cargo.toml
diff --git a/pallets/bridge-related-pallets/common/src/lib.rs b/pallets/bridge/common/src/lib.rs
similarity index 100%
rename from pallets/bridge-related-pallets/common/src/lib.rs
rename to pallets/bridge/common/src/lib.rs
diff --git a/runtime/litentry/Cargo.toml b/runtime/litentry/Cargo.toml
index 878631f1f1..4b3d3f3b52 100644
--- a/runtime/litentry/Cargo.toml
+++ b/runtime/litentry/Cargo.toml
@@ -81,8 +81,8 @@ core-primitives = { workspace = true }
pallet-account-fix = { workspace = true }
pallet-asset-manager = { workspace = true }
pallet-bitacross = { workspace = true }
-pallet-bridge = { workspace = true }
pallet-bridge-transfer = { workspace = true }
+pallet-chain-bridge = { workspace = true }
pallet-evm-assertions = { workspace = true }
pallet-extrinsic-filter = { workspace = true }
pallet-group = { workspace = true }
@@ -163,7 +163,7 @@ runtime-benchmarks = [
"runtime-common/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
- "pallet-bridge/runtime-benchmarks",
+ "pallet-chain-bridge/runtime-benchmarks",
"pallet-bridge-transfer/runtime-benchmarks",
"pallet-extrinsic-filter/runtime-benchmarks",
"cumulus-pallet-parachain-system/runtime-benchmarks",
@@ -250,7 +250,7 @@ std = [
"frame-benchmarking?/std",
"frame-system-benchmarking?/std",
'runtime-common/std',
- "pallet-bridge/std",
+ "pallet-chain-bridge/std",
"pallet-bridge-transfer/std",
"pallet-extrinsic-filter/std",
"pallet-bitacross/std",
@@ -286,7 +286,7 @@ try-runtime = [
"pallet-balances/try-runtime",
"pallet-bitacross/try-runtime",
"pallet-bounties/try-runtime",
- "pallet-bridge/try-runtime",
+ "pallet-chain-bridge/try-runtime",
"pallet-bridge-transfer/try-runtime",
"pallet-collective/try-runtime",
"pallet-democracy/try-runtime",
diff --git a/runtime/litentry/src/lib.rs b/runtime/litentry/src/lib.rs
index b2e8f3bbfb..4815a5fc21 100644
--- a/runtime/litentry/src/lib.rs
+++ b/runtime/litentry/src/lib.rs
@@ -258,7 +258,7 @@ impl frame_system::Config for Runtime {
type OnKilledAccount = ();
type DbWeight = RocksDbWeight;
type BaseCallFilter = BaseCallFilter;
- type SystemWeightInfo = ();
+ type SystemWeightInfo = weights::frame_system::WeightInfo;
type BlockWeights = RuntimeBlockWeights;
type BlockLength = BlockLength;
type SS58Prefix = SS58Prefix;
@@ -870,14 +870,14 @@ parameter_types! {
pub TreasuryAccount: AccountId = TreasuryPalletId::get().into_account_truncating();
}
-impl pallet_bridge::Config for Runtime {
+impl pallet_chain_bridge::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type BridgeCommitteeOrigin = EnsureRootOrHalfCouncil;
type Proposal = RuntimeCall;
type BridgeChainId = BridgeChainId;
type Balance = Balance;
type ProposalLifetime = ProposalLifetime;
- type WeightInfo = weights::pallet_bridge::WeightInfo;
+ type WeightInfo = weights::pallet_chain_bridge::WeightInfo;
}
parameter_types! {
@@ -907,7 +907,7 @@ impl SortedMembers for TransferAssetsAnyone {
impl pallet_bridge_transfer::Config for Runtime {
type BridgeHandler = AssetsHandler;
- type BridgeOrigin = pallet_bridge::EnsureBridge;
+ type BridgeOrigin = pallet_chain_bridge::EnsureBridge;
type TransferAssetsMembers = TransferAssetsAnyone;
type WeightInfo = weights::pallet_bridge_transfer::WeightInfo;
}
@@ -1192,7 +1192,7 @@ construct_runtime! {
Assets: pallet_assets = 56,
// Litentry pallets
- ChainBridge: pallet_bridge = 60,
+ ChainBridge: pallet_chain_bridge= 60,
BridgeTransfer: pallet_bridge_transfer = 61,
ExtrinsicFilter: pallet_extrinsic_filter = 63,
AssetManager: pallet_asset_manager = 64,
@@ -1328,7 +1328,7 @@ mod benches {
[cumulus_pallet_xcmp_queue, XcmpQueue]
[pallet_identity_management, IdentityManagement]
[pallet_vc_management, VCManagement]
- [pallet_bridge,ChainBridge]
+ [pallet_chain_bridge,ChainBridge]
[pallet_bridge_transfer,BridgeTransfer]
[pallet_teebag, Teebag]
);
diff --git a/runtime/litentry/src/migration/P9191/migrate_bridge_related.rs b/runtime/litentry/src/migration/P9191/migrate_bridge_related.rs
index 9d39daac77..10c470a14b 100644
--- a/runtime/litentry/src/migration/P9191/migrate_bridge_related.rs
+++ b/runtime/litentry/src/migration/P9191/migrate_bridge_related.rs
@@ -23,7 +23,7 @@ use frame_support::{
};
use pallet_assets_handler::{AssetInfo, ExternalBalances, MaximumIssuance, ResourceToAssetInfo};
use pallet_balances::AccountData;
-use pallet_bridge::{BridgeChainId, ResourceId};
+use pallet_chain_bridge::{BridgeChainId, ResourceId};
use sp_std::{marker::PhantomData, vec::Vec};
pub const DECIMAL_CONVERTOR: u128 = 1_000_000u128;
@@ -46,12 +46,12 @@ mod old {
>;
#[frame_support::storage_alias]
- pub type Resources =
- StorageMap, Blake2_256, ResourceId, Vec>;
+ pub type Resources =
+ StorageMap, Blake2_256, ResourceId, Vec>;
#[frame_support::storage_alias]
- pub type BridgeFee =
- StorageMap, Twox64Concat, BridgeChainId, u128>;
+ pub type BridgeFee =
+ StorageMap, Twox64Concat, BridgeChainId, u128>;
}
pub const NATIVE_TOKEN_RESOURCE_ID: [u8; 32] =
@@ -69,7 +69,7 @@ where
+ pallet_assets::Config
+ pallet_assets_handler::Config
+ pallet_balances::Config
- + pallet_bridge::Config
+ + pallet_chain_bridge::Config
+ pallet_bridge_transfer::Config,
{
pub fn relocate_resource_fee_storage() -> frame_support::weights::Weight {
@@ -163,7 +163,7 @@ where
+ pallet_assets::Config
+ pallet_assets_handler::Config
+ pallet_balances::Config
- + pallet_bridge::Config
+ + pallet_chain_bridge::Config
+ pallet_bridge_transfer::Config,
{
pub fn pre_upgrade_resource_fee_storage() -> Result, &'static str> {
@@ -255,7 +255,7 @@ where
+ pallet_assets::Config
+ pallet_assets_handler::Config
+ pallet_balances::Config
- + pallet_bridge::Config
+ + pallet_chain_bridge::Config
+ pallet_bridge_transfer::Config,
{
#[cfg(feature = "try-runtime")]
diff --git a/runtime/litentry/src/weights/cumulus_pallet_xcmp_queue.rs b/runtime/litentry/src/weights/cumulus_pallet_xcmp_queue.rs
index 962a3b95e9..a3089e3292 100644
--- a/runtime/litentry/src/weights/cumulus_pallet_xcmp_queue.rs
+++ b/runtime/litentry/src/weights/cumulus_pallet_xcmp_queue.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,26 +49,26 @@ use core::marker::PhantomData;
/// Weight functions for `cumulus_pallet_xcmp_queue`.
pub struct WeightInfo(PhantomData);
impl cumulus_pallet_xcmp_queue::WeightInfo for WeightInfo {
- /// Storage: XcmpQueue QueueConfig (r:1 w:1)
- /// Proof Skipped: XcmpQueue QueueConfig (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
+ /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_config_with_u32() -> Weight {
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `1594`
- // Minimum execution time: 8_478_000 picoseconds.
- Weight::from_parts(9_214_000, 0)
+ // Minimum execution time: 5_300_000 picoseconds.
+ Weight::from_parts(5_600_000, 0)
.saturating_add(Weight::from_parts(0, 1594))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: XcmpQueue QueueConfig (r:1 w:1)
- /// Proof Skipped: XcmpQueue QueueConfig (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
+ /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_config_with_weight() -> Weight {
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `1594`
- // Minimum execution time: 8_619_000 picoseconds.
- Weight::from_parts(9_202_000, 0)
+ // Minimum execution time: 5_189_000 picoseconds.
+ Weight::from_parts(7_347_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/litentry/src/weights/frame_system.rs b/runtime/litentry/src/weights/frame_system.rs
index 1d18c15897..af588dd8b1 100644
--- a/runtime/litentry/src/weights/frame_system.rs
+++ b/runtime/litentry/src/weights/frame_system.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `frame_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -54,77 +54,99 @@ impl frame_system::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 3_478_000 picoseconds.
- Weight::from_parts(3_514_487, 0)
+ // Minimum execution time: 2_166_000 picoseconds.
+ Weight::from_parts(2_219_000, 0)
.saturating_add(Weight::from_parts(0, 0))
// Standard Error: 3
- .saturating_add(Weight::from_parts(658, 0).saturating_mul(b.into()))
+ .saturating_add(Weight::from_parts(420, 0).saturating_mul(b.into()))
}
/// The range of component `b` is `[0, 3932160]`.
fn remark_with_event(b: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 10_890_000 picoseconds.
- Weight::from_parts(11_000_000, 0)
+ // Minimum execution time: 6_876_000 picoseconds.
+ Weight::from_parts(7_325_000, 0)
.saturating_add(Weight::from_parts(0, 0))
- // Standard Error: 13
- .saturating_add(Weight::from_parts(2_606, 0).saturating_mul(b.into()))
+ // Standard Error: 8
+ .saturating_add(Weight::from_parts(2_418, 0).saturating_mul(b.into()))
}
- /// Storage: System Digest (r:1 w:1)
- /// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: unknown `0x3a686561707061676573` (r:0 w:1)
- /// Proof Skipped: unknown `0x3a686561707061676573` (r:0 w:1)
+ /// Storage: `System::Digest` (r:1 w:1)
+ /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
+ /// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
fn set_heap_pages() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `1485`
- // Minimum execution time: 5_913_000 picoseconds.
- Weight::from_parts(6_078_000, 0)
+ // Minimum execution time: 3_721_000 picoseconds.
+ Weight::from_parts(4_020_000, 0)
.saturating_add(Weight::from_parts(0, 1485))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Skipped Metadata (r:0 w:0)
- /// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
+ /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
+ /// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
+ /// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
+ /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
+ /// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
+ /// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn set_code() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `264`
+ // Estimated: `1749`
+ // Minimum execution time: 134_417_302_000 picoseconds.
+ Weight::from_parts(140_454_951_000, 0)
+ .saturating_add(Weight::from_parts(0, 1749))
+ .saturating_add(T::DbWeight::get().reads(4))
+ .saturating_add(T::DbWeight::get().writes(3))
+ }
+ /// Storage: `Skipped::Metadata` (r:0 w:0)
+ /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `i` is `[0, 1000]`.
fn set_storage(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 3_244_000 picoseconds.
- Weight::from_parts(3_323_000, 0)
+ // Minimum execution time: 2_231_000 picoseconds.
+ Weight::from_parts(2_316_000, 0)
.saturating_add(Weight::from_parts(0, 0))
- // Standard Error: 4_138
- .saturating_add(Weight::from_parts(1_095_460, 0).saturating_mul(i.into()))
+ // Standard Error: 3_102
+ .saturating_add(Weight::from_parts(750_667, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
- /// Storage: Skipped Metadata (r:0 w:0)
- /// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Skipped::Metadata` (r:0 w:0)
+ /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `i` is `[0, 1000]`.
fn kill_storage(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 3_337_000 picoseconds.
- Weight::from_parts(3_515_000, 0)
+ // Minimum execution time: 2_271_000 picoseconds.
+ Weight::from_parts(2_356_000, 0)
.saturating_add(Weight::from_parts(0, 0))
- // Standard Error: 2_232
- .saturating_add(Weight::from_parts(813_590, 0).saturating_mul(i.into()))
+ // Standard Error: 2_308
+ .saturating_add(Weight::from_parts(550_811, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
- /// Storage: Skipped Metadata (r:0 w:0)
- /// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Skipped::Metadata` (r:0 w:0)
+ /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `p` is `[0, 1000]`.
fn kill_prefix(p: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `85 + p * (69 ±0)`
- // Estimated: `87 + p * (70 ±0)`
- // Minimum execution time: 5_701_000 picoseconds.
- Weight::from_parts(5_860_000, 0)
- .saturating_add(Weight::from_parts(0, 87))
- // Standard Error: 6_433
- .saturating_add(Weight::from_parts(1_862_551, 0).saturating_mul(p.into()))
+ // Measured: `114 + p * (69 ±0)`
+ // Estimated: `101 + p * (70 ±0)`
+ // Minimum execution time: 3_920_000 picoseconds.
+ Weight::from_parts(4_081_000, 0)
+ .saturating_add(Weight::from_parts(0, 101))
+ // Standard Error: 12_282
+ .saturating_add(Weight::from_parts(1_260_393, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
diff --git a/runtime/litentry/src/weights/mod.rs b/runtime/litentry/src/weights/mod.rs
index daca9149bd..b75428447f 100644
--- a/runtime/litentry/src/weights/mod.rs
+++ b/runtime/litentry/src/weights/mod.rs
@@ -17,11 +17,11 @@
#![allow(clippy::unnecessary_cast)]
pub mod cumulus_pallet_xcmp_queue;
-// pub mod frame_system;
+pub mod frame_system;
pub mod pallet_asset_manager;
pub mod pallet_balances;
-pub mod pallet_bridge;
pub mod pallet_bridge_transfer;
+pub mod pallet_chain_bridge;
pub mod pallet_collective;
pub mod pallet_democracy;
pub mod pallet_evm;
diff --git a/runtime/litentry/src/weights/pallet_asset_manager.rs b/runtime/litentry/src/weights/pallet_asset_manager.rs
index c37bb5646b..e844870d4f 100644
--- a/runtime/litentry/src/weights/pallet_asset_manager.rs
+++ b/runtime/litentry/src/weights/pallet_asset_manager.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_asset_manager`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,77 +49,77 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_asset_manager`.
pub struct WeightInfo(PhantomData);
impl pallet_asset_manager::WeightInfo for WeightInfo {
- /// Storage: AssetManager AssetTypeId (r:1 w:1)
- /// Proof Skipped: AssetManager AssetTypeId (max_values: None, max_size: None, mode: Measured)
- /// Storage: AssetManager ForeignAssetTracker (r:1 w:1)
- /// Proof Skipped: AssetManager ForeignAssetTracker (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: AssetManager AssetIdType (r:0 w:1)
- /// Proof Skipped: AssetManager AssetIdType (max_values: None, max_size: None, mode: Measured)
- /// Storage: AssetManager AssetIdMetadata (r:0 w:1)
- /// Proof Skipped: AssetManager AssetIdMetadata (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `AssetManager::AssetTypeId` (r:1 w:1)
+ /// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetManager::ForeignAssetTracker` (r:1 w:1)
+ /// Proof: `AssetManager::ForeignAssetTracker` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetManager::AssetIdType` (r:0 w:1)
+ /// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetManager::AssetIdMetadata` (r:0 w:1)
+ /// Proof: `AssetManager::AssetIdMetadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn register_foreign_asset_type() -> Weight {
// Proof Size summary in bytes:
- // Measured: `109`
- // Estimated: `3574`
- // Minimum execution time: 33_339_000 picoseconds.
- Weight::from_parts(35_091_000, 0)
- .saturating_add(Weight::from_parts(0, 3574))
+ // Measured: `142`
+ // Estimated: `3607`
+ // Minimum execution time: 22_295_000 picoseconds.
+ Weight::from_parts(23_096_000, 0)
+ .saturating_add(Weight::from_parts(0, 3607))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(4))
}
- /// Storage: AssetManager AssetIdType (r:1 w:0)
- /// Proof Skipped: AssetManager AssetIdType (max_values: None, max_size: None, mode: Measured)
- /// Storage: AssetManager AssetIdMetadata (r:0 w:1)
- /// Proof Skipped: AssetManager AssetIdMetadata (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `AssetManager::AssetIdType` (r:1 w:0)
+ /// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetManager::AssetIdMetadata` (r:0 w:1)
+ /// Proof: `AssetManager::AssetIdMetadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_foreign_asset_metadata() -> Weight {
// Proof Size summary in bytes:
- // Measured: `269`
- // Estimated: `3734`
- // Minimum execution time: 20_739_000 picoseconds.
- Weight::from_parts(24_339_000, 0)
- .saturating_add(Weight::from_parts(0, 3734))
+ // Measured: `302`
+ // Estimated: `3767`
+ // Minimum execution time: 13_367_000 picoseconds.
+ Weight::from_parts(13_814_000, 0)
+ .saturating_add(Weight::from_parts(0, 3767))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: AssetManager AssetIdType (r:1 w:0)
- /// Proof Skipped: AssetManager AssetIdType (max_values: None, max_size: None, mode: Measured)
- /// Storage: AssetManager AssetIdUnitsPerSecond (r:0 w:1)
- /// Proof Skipped: AssetManager AssetIdUnitsPerSecond (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `AssetManager::AssetIdType` (r:1 w:0)
+ /// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetManager::AssetIdUnitsPerSecond` (r:0 w:1)
+ /// Proof: `AssetManager::AssetIdUnitsPerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn set_asset_units_per_second() -> Weight {
// Proof Size summary in bytes:
- // Measured: `269`
- // Estimated: `3734`
- // Minimum execution time: 19_590_000 picoseconds.
- Weight::from_parts(20_602_000, 0)
- .saturating_add(Weight::from_parts(0, 3734))
+ // Measured: `302`
+ // Estimated: `3767`
+ // Minimum execution time: 12_690_000 picoseconds.
+ Weight::from_parts(13_128_000, 0)
+ .saturating_add(Weight::from_parts(0, 3767))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: AssetManager AssetIdType (r:1 w:1)
- /// Proof Skipped: AssetManager AssetIdType (max_values: None, max_size: None, mode: Measured)
- /// Storage: AssetManager AssetTypeId (r:1 w:1)
- /// Proof Skipped: AssetManager AssetTypeId (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `AssetManager::AssetIdType` (r:1 w:1)
+ /// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetManager::AssetTypeId` (r:1 w:1)
+ /// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn add_asset_type() -> Weight {
// Proof Size summary in bytes:
- // Measured: `292`
- // Estimated: `3757`
- // Minimum execution time: 25_460_000 picoseconds.
- Weight::from_parts(27_495_000, 0)
- .saturating_add(Weight::from_parts(0, 3757))
+ // Measured: `325`
+ // Estimated: `3790`
+ // Minimum execution time: 17_241_000 picoseconds.
+ Weight::from_parts(17_625_000, 0)
+ .saturating_add(Weight::from_parts(0, 3790))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: AssetManager AssetTypeId (r:2 w:1)
- /// Proof Skipped: AssetManager AssetTypeId (max_values: None, max_size: None, mode: Measured)
- /// Storage: AssetManager AssetIdType (r:0 w:1)
- /// Proof Skipped: AssetManager AssetIdType (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `AssetManager::AssetTypeId` (r:2 w:1)
+ /// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetManager::AssetIdType` (r:0 w:1)
+ /// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn remove_asset_type() -> Weight {
// Proof Size summary in bytes:
- // Measured: `449`
- // Estimated: `6389`
- // Minimum execution time: 31_883_000 picoseconds.
- Weight::from_parts(34_908_000, 0)
- .saturating_add(Weight::from_parts(0, 6389))
+ // Measured: `482`
+ // Estimated: `6422`
+ // Minimum execution time: 22_017_000 picoseconds.
+ Weight::from_parts(22_664_000, 0)
+ .saturating_add(Weight::from_parts(0, 6422))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
diff --git a/runtime/litentry/src/weights/pallet_balances.rs b/runtime/litentry/src/weights/pallet_balances.rs
index 63f03f6943..a0b02d73ce 100644
--- a/runtime/litentry/src/weights/pallet_balances.rs
+++ b/runtime/litentry/src/weights/pallet_balances.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_balances`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,102 +49,102 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_balances`.
pub struct WeightInfo(PhantomData);
impl pallet_balances::WeightInfo for WeightInfo {
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn transfer_allow_death() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3593`
- // Minimum execution time: 73_736_000 picoseconds.
- Weight::from_parts(75_005_000, 0)
+ // Minimum execution time: 53_650_000 picoseconds.
+ Weight::from_parts(54_952_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn transfer_keep_alive() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3593`
- // Minimum execution time: 55_312_000 picoseconds.
- Weight::from_parts(56_060_000, 0)
+ // Minimum execution time: 39_920_000 picoseconds.
+ Weight::from_parts(40_991_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// 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: `140`
// Estimated: `3593`
- // Minimum execution time: 22_920_000 picoseconds.
- Weight::from_parts(23_502_000, 0)
+ // Minimum execution time: 15_206_000 picoseconds.
+ Weight::from_parts(15_671_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// 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: `140`
// Estimated: `3593`
- // Minimum execution time: 33_445_000 picoseconds.
- Weight::from_parts(34_014_000, 0)
+ // Minimum execution time: 22_140_000 picoseconds.
+ Weight::from_parts(23_200_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: System Account (r:2 w:2)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:2 w:2)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn force_transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `103`
// Estimated: `6196`
- // Minimum execution time: 77_793_000 picoseconds.
- Weight::from_parts(78_580_000, 0)
+ // Minimum execution time: 54_990_000 picoseconds.
+ Weight::from_parts(57_215_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn transfer_all() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3593`
- // Minimum execution time: 68_700_000 picoseconds.
- Weight::from_parts(69_437_000, 0)
+ // Minimum execution time: 50_206_000 picoseconds.
+ Weight::from_parts(51_752_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn force_unreserve() -> Weight {
// Proof Size summary in bytes:
// Measured: `140`
// Estimated: `3593`
- // Minimum execution time: 26_334_000 picoseconds.
- Weight::from_parts(26_982_000, 0)
+ // Minimum execution time: 17_803_000 picoseconds.
+ Weight::from_parts(18_570_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: System Account (r:1000 w:1000)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:1000 w:1000)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// The range of component `u` is `[1, 1000]`.
fn upgrade_accounts(u: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + u * (136 ±0)`
// Estimated: `990 + u * (2603 ±0)`
- // Minimum execution time: 25_199_000 picoseconds.
- Weight::from_parts(25_520_000, 0)
+ // Minimum execution time: 17_058_000 picoseconds.
+ Weight::from_parts(17_463_000, 0)
.saturating_add(Weight::from_parts(0, 990))
- // Standard Error: 69_149
- .saturating_add(Weight::from_parts(21_616_221, 0).saturating_mul(u.into()))
+ // Standard Error: 29_997
+ .saturating_add(Weight::from_parts(19_997_050, 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/litentry/src/weights/pallet_bridge.rs b/runtime/litentry/src/weights/pallet_bridge.rs
deleted file mode 100644
index 4482e5eecc..0000000000
--- a/runtime/litentry/src/weights/pallet_bridge.rs
+++ /dev/null
@@ -1,163 +0,0 @@
-// Copyright 2020-2024 Trust Computing GmbH.
-// This file is part of Litentry.
-//
-// Litentry is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// Litentry is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with Litentry. If not, see .
-
-//! Autogenerated weights for `pallet_bridge`
-//!
-//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
-//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
-
-// Executed Command:
-// ./litentry-collator
-// benchmark
-// pallet
-// --chain=litentry-dev
-// --execution=wasm
-// --db-cache=20
-// --wasm-execution=compiled
-// --pallet=pallet_bridge
-// --extrinsic=*
-// --heap-pages=4096
-// --steps=20
-// --repeat=50
-// --header=./LICENSE_HEADER
-// --output=./runtime/litentry/src/weights/pallet_bridge.rs
-
-#![cfg_attr(rustfmt, rustfmt_skip)]
-#![allow(unused_parens)]
-#![allow(unused_imports)]
-#![allow(missing_docs)]
-
-use frame_support::{traits::Get, weights::Weight};
-use core::marker::PhantomData;
-
-/// Weight functions for `pallet_bridge`.
-pub struct WeightInfo(PhantomData);
-impl pallet_bridge::WeightInfo for WeightInfo {
- /// Storage: ChainBridge RelayerThreshold (r:0 w:1)
- /// Proof Skipped: ChainBridge RelayerThreshold (max_values: Some(1), max_size: None, mode: Measured)
- fn set_threshold() -> Weight {
- // Proof Size summary in bytes:
- // Measured: `0`
- // Estimated: `0`
- // Minimum execution time: 10_526_000 picoseconds.
- Weight::from_parts(10_839_000, 0)
- .saturating_add(Weight::from_parts(0, 0))
- .saturating_add(T::DbWeight::get().writes(1))
- }
- /// Storage: ChainBridge ChainNonces (r:1 w:1)
- /// Proof Skipped: ChainBridge ChainNonces (max_values: None, max_size: None, mode: Measured)
- fn whitelist_chain() -> Weight {
- // Proof Size summary in bytes:
- // Measured: `109`
- // Estimated: `3574`
- // Minimum execution time: 16_039_000 picoseconds.
- Weight::from_parts(16_413_000, 0)
- .saturating_add(Weight::from_parts(0, 3574))
- .saturating_add(T::DbWeight::get().reads(1))
- .saturating_add(T::DbWeight::get().writes(1))
- }
- /// Storage: ChainBridge Relayers (r:1 w:1)
- /// Proof Skipped: ChainBridge Relayers (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge RelayerCount (r:1 w:1)
- /// Proof Skipped: ChainBridge RelayerCount (max_values: Some(1), max_size: None, mode: Measured)
- fn add_relayer() -> Weight {
- // Proof Size summary in bytes:
- // Measured: `109`
- // Estimated: `3574`
- // Minimum execution time: 18_953_000 picoseconds.
- Weight::from_parts(19_587_000, 0)
- .saturating_add(Weight::from_parts(0, 3574))
- .saturating_add(T::DbWeight::get().reads(2))
- .saturating_add(T::DbWeight::get().writes(2))
- }
- /// Storage: ChainBridge Relayers (r:1 w:1)
- /// Proof Skipped: ChainBridge Relayers (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge RelayerCount (r:1 w:1)
- /// Proof Skipped: ChainBridge RelayerCount (max_values: Some(1), max_size: None, mode: Measured)
- fn remove_relayer() -> Weight {
- // Proof Size summary in bytes:
- // Measured: `190`
- // Estimated: `3655`
- // Minimum execution time: 21_282_000 picoseconds.
- Weight::from_parts(21_661_000, 0)
- .saturating_add(Weight::from_parts(0, 3655))
- .saturating_add(T::DbWeight::get().reads(2))
- .saturating_add(T::DbWeight::get().writes(2))
- }
- /// Storage: ChainBridge Relayers (r:1 w:0)
- /// Proof Skipped: ChainBridge Relayers (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge ChainNonces (r:1 w:0)
- /// Proof Skipped: ChainBridge ChainNonces (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge Resources (r:1 w:0)
- /// Proof Skipped: ChainBridge Resources (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge Votes (r:1 w:1)
- /// Proof Skipped: ChainBridge Votes (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge RelayerThreshold (r:1 w:0)
- /// Proof Skipped: ChainBridge RelayerThreshold (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ChainBridge RelayerCount (r:1 w:0)
- /// Proof Skipped: ChainBridge RelayerCount (max_values: Some(1), max_size: None, mode: Measured)
- fn acknowledge_proposal() -> Weight {
- // Proof Size summary in bytes:
- // Measured: `307`
- // Estimated: `3772`
- // Minimum execution time: 52_964_000 picoseconds.
- Weight::from_parts(54_065_000, 0)
- .saturating_add(Weight::from_parts(0, 3772))
- .saturating_add(T::DbWeight::get().reads(6))
- .saturating_add(T::DbWeight::get().writes(1))
- }
- /// Storage: ChainBridge Relayers (r:1 w:0)
- /// Proof Skipped: ChainBridge Relayers (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge ChainNonces (r:1 w:0)
- /// Proof Skipped: ChainBridge ChainNonces (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge Resources (r:1 w:0)
- /// Proof Skipped: ChainBridge Resources (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge Votes (r:1 w:1)
- /// Proof Skipped: ChainBridge Votes (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge RelayerThreshold (r:1 w:0)
- /// Proof Skipped: ChainBridge RelayerThreshold (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ChainBridge RelayerCount (r:1 w:0)
- /// Proof Skipped: ChainBridge RelayerCount (max_values: Some(1), max_size: None, mode: Measured)
- fn reject_proposal() -> Weight {
- // Proof Size summary in bytes:
- // Measured: `307`
- // Estimated: `3772`
- // Minimum execution time: 44_953_000 picoseconds.
- Weight::from_parts(45_689_000, 0)
- .saturating_add(Weight::from_parts(0, 3772))
- .saturating_add(T::DbWeight::get().reads(6))
- .saturating_add(T::DbWeight::get().writes(1))
- }
- /// Storage: ChainBridge Votes (r:1 w:1)
- /// Proof Skipped: ChainBridge Votes (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge RelayerThreshold (r:1 w:0)
- /// Proof Skipped: ChainBridge RelayerThreshold (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ChainBridge RelayerCount (r:1 w:0)
- /// Proof Skipped: ChainBridge RelayerCount (max_values: Some(1), max_size: None, mode: Measured)
- fn eval_vote_state() -> Weight {
- // Proof Size summary in bytes:
- // Measured: `451`
- // Estimated: `3916`
- // Minimum execution time: 19_760_000 picoseconds.
- Weight::from_parts(20_174_000, 0)
- .saturating_add(Weight::from_parts(0, 3916))
- .saturating_add(T::DbWeight::get().reads(3))
- .saturating_add(T::DbWeight::get().writes(1))
- }
-}
diff --git a/runtime/litentry/src/weights/pallet_bridge_transfer.rs b/runtime/litentry/src/weights/pallet_bridge_transfer.rs
index 122e72cce0..2deaf24fca 100644
--- a/runtime/litentry/src/weights/pallet_bridge_transfer.rs
+++ b/runtime/litentry/src/weights/pallet_bridge_transfer.rs
@@ -14,14 +14,16 @@
// You should have received a copy of the GNU General Public License
// along with Litentry. If not, see .
-//! Autogenerated weights for pallet_bridge_transfer
+//! Autogenerated weights for `pallet_bridge_transfer`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2022-09-29, STEPS: `20`, REPEAT: 50, LOW RANGE: `[]`, HIGH RANGE: `[]`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! WORST CASE MAP SIZE: `1000000`
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
-// ./target/release/litentry-collator
+// ./litentry-collator
// benchmark
// pallet
// --chain=litentry-dev
@@ -34,36 +36,55 @@
// --steps=20
// --repeat=50
// --header=./LICENSE_HEADER
-// --template=./templates/benchmark/pallet-weight-template.hbs
-// --output=./pallets/bridge-transfer/src/weights.rs
+// --output=./runtime/litentry/src/weights/pallet_bridge_transfer.rs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
-#![allow(clippy::unnecessary_cast)]
+#![allow(missing_docs)]
-use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
-use sp_std::marker::PhantomData;
+use frame_support::{traits::Get, weights::Weight};
+use core::marker::PhantomData;
-/// Weights for pallet_bridge_transfer using the Litentry node and recommended hardware.
+/// Weight functions for `pallet_bridge_transfer`.
pub struct WeightInfo(PhantomData);
impl pallet_bridge_transfer::WeightInfo for WeightInfo {
- // Storage: BridgeTransfer ExternalBalances (r:1 w:1)
- // Storage: ChainBridge ChainNonces (r:1 w:1)
- // Storage: ChainBridge BridgeFee (r:1 w:0)
- // Storage: System Account (r:2 w:2)
- // Storage: ChainBridge BridgeEvents (r:1 w:1)
+ /// Storage: `AssetsHandler::ResourceToAssetInfo` (r:1 w:0)
+ /// Proof: `AssetsHandler::ResourceToAssetInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:2 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `AssetsHandler::ExternalBalances` (r:1 w:1)
+ /// Proof: `AssetsHandler::ExternalBalances` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::ChainNonces` (r:1 w:1)
+ /// Proof: `ChainBridge::ChainNonces` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::BridgeEvents` (r:1 w:1)
+ /// Proof: `ChainBridge::BridgeEvents` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn transfer_assets() -> Weight {
- Weight::from_parts(59_963_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(6 as u64))
- .saturating_add(T::DbWeight::get().writes(5 as u64))
+ // Proof Size summary in bytes:
+ // Measured: `573`
+ // Estimated: `6196`
+ // Minimum execution time: 61_640_000 picoseconds.
+ Weight::from_parts(63_578_000, 0)
+ .saturating_add(Weight::from_parts(0, 6196))
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(4))
}
- // Storage: BridgeTransfer MaximumIssuance (r:1 w:0)
- // Storage: BridgeTransfer ExternalBalances (r:1 w:1)
- // Storage: System Account (r:1 w:1)
+ /// Storage: `AssetsHandler::ResourceToAssetInfo` (r:1 w:0)
+ /// Proof: `AssetsHandler::ResourceToAssetInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetsHandler::MaximumIssuance` (r:1 w:0)
+ /// Proof: `AssetsHandler::MaximumIssuance` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetsHandler::ExternalBalances` (r:1 w:1)
+ /// Proof: `AssetsHandler::ExternalBalances` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn transfer() -> Weight {
- Weight::from_parts(29_134_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(3 as u64))
- .saturating_add(T::DbWeight::get().writes(2 as u64))
+ // Proof Size summary in bytes:
+ // Measured: `328`
+ // Estimated: `3793`
+ // Minimum execution time: 36_749_000 picoseconds.
+ Weight::from_parts(37_494_000, 0)
+ .saturating_add(Weight::from_parts(0, 3793))
+ .saturating_add(T::DbWeight::get().reads(4))
+ .saturating_add(T::DbWeight::get().writes(2))
}
}
diff --git a/runtime/litentry/src/weights/pallet_chain_bridge.rs b/runtime/litentry/src/weights/pallet_chain_bridge.rs
new file mode 100644
index 0000000000..11c13f3fa9
--- /dev/null
+++ b/runtime/litentry/src/weights/pallet_chain_bridge.rs
@@ -0,0 +1,159 @@
+// Copyright 2020-2024 Trust Computing GmbH.
+// This file is part of Litentry.
+//
+// Litentry is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Litentry is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Litentry. If not, see .
+
+//! Autogenerated weights for `pallet_chain_bridge`
+//!
+//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! WORST CASE MAP SIZE: `1000000`
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
+
+// Executed Command:
+// ./litentry-collator
+// benchmark
+// pallet
+// --chain=litentry-dev
+// --execution=wasm
+// --db-cache=20
+// --wasm-execution=compiled
+// --pallet=pallet_chain_bridge
+// --extrinsic=*
+// --heap-pages=4096
+// --steps=20
+// --repeat=50
+// --header=./LICENSE_HEADER
+// --output=./runtime/litentry/src/weights/pallet_chain_bridge.rs
+
+#![cfg_attr(rustfmt, rustfmt_skip)]
+#![allow(unused_parens)]
+#![allow(unused_imports)]
+#![allow(missing_docs)]
+
+use frame_support::{traits::Get, weights::Weight};
+use core::marker::PhantomData;
+
+/// Weight functions for `pallet_chain_bridge`.
+pub struct WeightInfo(PhantomData);
+impl pallet_chain_bridge::WeightInfo for WeightInfo {
+ /// Storage: `ChainBridge::RelayerThreshold` (r:0 w:1)
+ /// Proof: `ChainBridge::RelayerThreshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn set_threshold() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 7_073_000 picoseconds.
+ Weight::from_parts(7_427_000, 0)
+ .saturating_add(Weight::from_parts(0, 0))
+ .saturating_add(T::DbWeight::get().writes(1))
+ }
+ /// Storage: `ChainBridge::ChainNonces` (r:1 w:1)
+ /// Proof: `ChainBridge::ChainNonces` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ fn whitelist_chain() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `142`
+ // Estimated: `3607`
+ // Minimum execution time: 10_301_000 picoseconds.
+ Weight::from_parts(10_774_000, 0)
+ .saturating_add(Weight::from_parts(0, 3607))
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
+ }
+ /// Storage: `ChainBridge::Relayers` (r:1 w:1)
+ /// Proof: `ChainBridge::Relayers` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:1)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn add_relayer() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `142`
+ // Estimated: `3607`
+ // Minimum execution time: 12_711_000 picoseconds.
+ Weight::from_parts(13_184_000, 0)
+ .saturating_add(Weight::from_parts(0, 3607))
+ .saturating_add(T::DbWeight::get().reads(2))
+ .saturating_add(T::DbWeight::get().writes(2))
+ }
+ /// Storage: `ChainBridge::Relayers` (r:1 w:1)
+ /// Proof: `ChainBridge::Relayers` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:1)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn remove_relayer() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `223`
+ // Estimated: `3688`
+ // Minimum execution time: 14_543_000 picoseconds.
+ Weight::from_parts(14_991_000, 0)
+ .saturating_add(Weight::from_parts(0, 3688))
+ .saturating_add(T::DbWeight::get().reads(2))
+ .saturating_add(T::DbWeight::get().writes(2))
+ }
+ /// Storage: `ChainBridge::Relayers` (r:1 w:0)
+ /// Proof: `ChainBridge::Relayers` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::ChainNonces` (r:1 w:0)
+ /// Proof: `ChainBridge::ChainNonces` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::Votes` (r:1 w:1)
+ /// Proof: `ChainBridge::Votes` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerThreshold` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerThreshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn acknowledge_proposal() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `285`
+ // Estimated: `3750`
+ // Minimum execution time: 35_141_000 picoseconds.
+ Weight::from_parts(35_852_000, 0)
+ .saturating_add(Weight::from_parts(0, 3750))
+ .saturating_add(T::DbWeight::get().reads(5))
+ .saturating_add(T::DbWeight::get().writes(1))
+ }
+ /// Storage: `ChainBridge::Relayers` (r:1 w:0)
+ /// Proof: `ChainBridge::Relayers` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::ChainNonces` (r:1 w:0)
+ /// Proof: `ChainBridge::ChainNonces` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::Votes` (r:1 w:1)
+ /// Proof: `ChainBridge::Votes` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerThreshold` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerThreshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn reject_proposal() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `285`
+ // Estimated: `3750`
+ // Minimum execution time: 29_270_000 picoseconds.
+ Weight::from_parts(30_017_000, 0)
+ .saturating_add(Weight::from_parts(0, 3750))
+ .saturating_add(T::DbWeight::get().reads(5))
+ .saturating_add(T::DbWeight::get().writes(1))
+ }
+ /// Storage: `ChainBridge::Votes` (r:1 w:1)
+ /// Proof: `ChainBridge::Votes` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerThreshold` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerThreshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn eval_vote_state() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `451`
+ // Estimated: `3916`
+ // Minimum execution time: 14_233_000 picoseconds.
+ Weight::from_parts(14_622_000, 0)
+ .saturating_add(Weight::from_parts(0, 3916))
+ .saturating_add(T::DbWeight::get().reads(3))
+ .saturating_add(T::DbWeight::get().writes(1))
+ }
+}
diff --git a/runtime/litentry/src/weights/pallet_collective.rs b/runtime/litentry/src/weights/pallet_collective.rs
index c809238d35..7993726971 100644
--- a/runtime/litentry/src/weights/pallet_collective.rs
+++ b/runtime/litentry/src/weights/pallet_collective.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_collective`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,14 +49,14 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_collective`.
pub struct WeightInfo(PhantomData);
impl pallet_collective::WeightInfo for WeightInfo {
- /// Storage: Council Members (r:1 w:1)
- /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council Proposals (r:1 w:0)
- /// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council Voting (r:100 w:100)
- /// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
- /// Storage: Council Prime (r:0 w:1)
- /// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `Council::Members` (r:1 w:1)
+ /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Proposals` (r:1 w:0)
+ /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Voting` (r:100 w:100)
+ /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Prime` (r:0 w:1)
+ /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `m` is `[0, 100]`.
/// The range of component `n` is `[0, 100]`.
/// The range of component `p` is `[0, 100]`.
@@ -64,13 +64,13 @@ impl pallet_collective::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `0 + m * (3232 ±0) + p * (3190 ±0)`
// Estimated: `32761 + m * (1968 ±26) + p * (4247 ±26)`
- // Minimum execution time: 25_195_000 picoseconds.
- Weight::from_parts(25_732_000, 0)
+ // Minimum execution time: 16_575_000 picoseconds.
+ Weight::from_parts(17_378_000, 0)
.saturating_add(Weight::from_parts(0, 32761))
- // Standard Error: 139_659
- .saturating_add(Weight::from_parts(8_808_388, 0).saturating_mul(m.into()))
- // Standard Error: 139_659
- .saturating_add(Weight::from_parts(13_308_911, 0).saturating_mul(p.into()))
+ // Standard Error: 158_049
+ .saturating_add(Weight::from_parts(5_823_815, 0).saturating_mul(m.into()))
+ // Standard Error: 158_049
+ .saturating_add(Weight::from_parts(9_218_021, 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))
@@ -78,54 +78,54 @@ impl pallet_collective::WeightInfo for WeightInfo {
.saturating_add(Weight::from_parts(0, 1968).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 4247).saturating_mul(p.into()))
}
- /// Storage: Council Members (r:1 w:0)
- /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `Council::Members` (r:1 w:0)
+ /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[1, 100]`.
fn execute(b: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `103 + m * (32 ±0)`
// Estimated: `1588 + m * (32 ±0)`
- // Minimum execution time: 23_607_000 picoseconds.
- Weight::from_parts(22_050_367, 0)
+ // Minimum execution time: 15_186_000 picoseconds.
+ Weight::from_parts(14_492_743, 0)
.saturating_add(Weight::from_parts(0, 1588))
- // Standard Error: 110
- .saturating_add(Weight::from_parts(2_710, 0).saturating_mul(b.into()))
- // Standard Error: 1_137
- .saturating_add(Weight::from_parts(23_250, 0).saturating_mul(m.into()))
+ // Standard Error: 51
+ .saturating_add(Weight::from_parts(1_505, 0).saturating_mul(b.into()))
+ // Standard Error: 533
+ .saturating_add(Weight::from_parts(15_063, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
}
- /// Storage: Council Members (r:1 w:0)
- /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council ProposalOf (r:1 w:0)
- /// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Council::Members` (r:1 w:0)
+ /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::ProposalOf` (r:1 w:0)
+ /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[1, 100]`.
fn propose_execute(b: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `103 + m * (32 ±0)`
// Estimated: `3568 + m * (32 ±0)`
- // Minimum execution time: 27_636_000 picoseconds.
- Weight::from_parts(30_228_013, 0)
+ // Minimum execution time: 17_665_000 picoseconds.
+ Weight::from_parts(17_260_515, 0)
.saturating_add(Weight::from_parts(0, 3568))
- // Standard Error: 300
- .saturating_add(Weight::from_parts(1_237, 0).saturating_mul(b.into()))
- // Standard Error: 3_090
- .saturating_add(Weight::from_parts(10_010, 0).saturating_mul(m.into()))
+ // Standard Error: 69
+ .saturating_add(Weight::from_parts(1_229, 0).saturating_mul(b.into()))
+ // Standard Error: 709
+ .saturating_add(Weight::from_parts(25_599, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
}
- /// Storage: Council Members (r:1 w:0)
- /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council ProposalOf (r:1 w:1)
- /// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
- /// Storage: Council Proposals (r:1 w:1)
- /// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council ProposalCount (r:1 w:1)
- /// Proof Skipped: Council ProposalCount (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council Voting (r:0 w:1)
- /// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Council::Members` (r:1 w:0)
+ /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::ProposalOf` (r:1 w:1)
+ /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Proposals` (r:1 w:1)
+ /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::ProposalCount` (r:1 w:1)
+ /// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Voting` (r:0 w:1)
+ /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[2, 100]`.
/// The range of component `p` is `[1, 100]`.
@@ -133,72 +133,72 @@ impl pallet_collective::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `463 + m * (32 ±0) + p * (36 ±0)`
// Estimated: `3821 + m * (33 ±0) + p * (36 ±0)`
- // Minimum execution time: 35_377_000 picoseconds.
- Weight::from_parts(31_314_437, 0)
+ // Minimum execution time: 23_512_000 picoseconds.
+ Weight::from_parts(22_071_557, 0)
.saturating_add(Weight::from_parts(0, 3821))
- // Standard Error: 351
- .saturating_add(Weight::from_parts(6_094, 0).saturating_mul(b.into()))
- // Standard Error: 3_650
- .saturating_add(Weight::from_parts(34_968, 0).saturating_mul(m.into()))
- // Standard Error: 3_614
- .saturating_add(Weight::from_parts(365_876, 0).saturating_mul(p.into()))
+ // Standard Error: 251
+ .saturating_add(Weight::from_parts(3_333, 0).saturating_mul(b.into()))
+ // Standard Error: 2_614
+ .saturating_add(Weight::from_parts(34_367, 0).saturating_mul(m.into()))
+ // Standard Error: 2_588
+ .saturating_add(Weight::from_parts(223_000, 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()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
- /// Storage: Council Members (r:1 w:0)
- /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council Voting (r:1 w:1)
- /// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Council::Members` (r:1 w:0)
+ /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Voting` (r:1 w:1)
+ /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `m` is `[5, 100]`.
fn vote(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `841 + m * (64 ±0)`
// Estimated: `4306 + m * (64 ±0)`
- // Minimum execution time: 41_390_000 picoseconds.
- Weight::from_parts(45_083_831, 0)
+ // Minimum execution time: 26_282_000 picoseconds.
+ Weight::from_parts(29_324_015, 0)
.saturating_add(Weight::from_parts(0, 4306))
- // Standard Error: 3_280
- .saturating_add(Weight::from_parts(81_016, 0).saturating_mul(m.into()))
+ // Standard Error: 1_812
+ .saturating_add(Weight::from_parts(42_323, 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()))
}
- /// Storage: Council Voting (r:1 w:1)
- /// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
- /// Storage: Council Members (r:1 w:0)
- /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council Proposals (r:1 w:1)
- /// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council ProposalOf (r:0 w:1)
- /// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Council::Voting` (r:1 w:1)
+ /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Members` (r:1 w:0)
+ /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Proposals` (r:1 w:1)
+ /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::ProposalOf` (r:0 w:1)
+ /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `468 + m * (64 ±0) + p * (35 ±0)`
// Estimated: `3856 + m * (65 ±0) + p * (36 ±0)`
- // Minimum execution time: 38_940_000 picoseconds.
- Weight::from_parts(34_777_612, 0)
+ // Minimum execution time: 27_789_000 picoseconds.
+ Weight::from_parts(29_094_447, 0)
.saturating_add(Weight::from_parts(0, 3856))
- // Standard Error: 2_888
- .saturating_add(Weight::from_parts(72_694, 0).saturating_mul(m.into()))
- // Standard Error: 2_794
- .saturating_add(Weight::from_parts(340_523, 0).saturating_mul(p.into()))
+ // Standard Error: 2_181
+ .saturating_add(Weight::from_parts(42_491, 0).saturating_mul(m.into()))
+ // Standard Error: 2_110
+ .saturating_add(Weight::from_parts(183_021, 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()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
- /// Storage: Council Voting (r:1 w:1)
- /// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
- /// Storage: Council Members (r:1 w:0)
- /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council ProposalOf (r:1 w:1)
- /// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
- /// Storage: Council Proposals (r:1 w:1)
- /// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `Council::Voting` (r:1 w:1)
+ /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Members` (r:1 w:0)
+ /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::ProposalOf` (r:1 w:1)
+ /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Proposals` (r:1 w:1)
+ /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
@@ -206,57 +206,59 @@ impl pallet_collective::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `778 + m * (64 ±0) + p * (39 ±0)`
// Estimated: `4117 + b * (1 ±0) + m * (65 ±0) + p * (40 ±0)`
- // Minimum execution time: 55_886_000 picoseconds.
- Weight::from_parts(57_100_339, 0)
+ // Minimum execution time: 39_789_000 picoseconds.
+ Weight::from_parts(38_096_199, 0)
.saturating_add(Weight::from_parts(0, 4117))
- // Standard Error: 598
- .saturating_add(Weight::from_parts(8_535, 0).saturating_mul(b.into()))
- // Standard Error: 6_153
- .saturating_add(Weight::from_parts(470_950, 0).saturating_mul(p.into()))
+ // Standard Error: 252
+ .saturating_add(Weight::from_parts(5_158, 0).saturating_mul(b.into()))
+ // Standard Error: 2_685
+ .saturating_add(Weight::from_parts(44_061, 0).saturating_mul(m.into()))
+ // Standard Error: 2_597
+ .saturating_add(Weight::from_parts(261_720, 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()))
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
}
- /// Storage: Council Voting (r:1 w:1)
- /// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
- /// Storage: Council Members (r:1 w:0)
- /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council Prime (r:1 w:0)
- /// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council Proposals (r:1 w:1)
- /// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council ProposalOf (r:0 w:1)
- /// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Council::Voting` (r:1 w:1)
+ /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Members` (r:1 w:0)
+ /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Prime` (r:1 w:0)
+ /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Proposals` (r:1 w:1)
+ /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::ProposalOf` (r:0 w:1)
+ /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_disapproved(m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `488 + m * (64 ±0) + p * (35 ±0)`
// Estimated: `3876 + m * (65 ±0) + p * (36 ±0)`
- // Minimum execution time: 42_481_000 picoseconds.
- Weight::from_parts(38_666_193, 0)
+ // Minimum execution time: 32_269_000 picoseconds.
+ Weight::from_parts(30_649_852, 0)
.saturating_add(Weight::from_parts(0, 3876))
- // Standard Error: 2_762
- .saturating_add(Weight::from_parts(75_612, 0).saturating_mul(m.into()))
- // Standard Error: 2_672
- .saturating_add(Weight::from_parts(323_476, 0).saturating_mul(p.into()))
+ // Standard Error: 2_015
+ .saturating_add(Weight::from_parts(46_573, 0).saturating_mul(m.into()))
+ // Standard Error: 1_949
+ .saturating_add(Weight::from_parts(196_226, 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()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
- /// Storage: Council Voting (r:1 w:1)
- /// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
- /// Storage: Council Members (r:1 w:0)
- /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council Prime (r:1 w:0)
- /// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council ProposalOf (r:1 w:1)
- /// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
- /// Storage: Council Proposals (r:1 w:1)
- /// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `Council::Voting` (r:1 w:1)
+ /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Members` (r:1 w:0)
+ /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Prime` (r:1 w:0)
+ /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::ProposalOf` (r:1 w:1)
+ /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Proposals` (r:1 w:1)
+ /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
@@ -264,37 +266,37 @@ impl pallet_collective::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `798 + m * (64 ±0) + p * (39 ±0)`
// Estimated: `4137 + b * (1 ±0) + m * (65 ±0) + p * (40 ±0)`
- // Minimum execution time: 60_320_000 picoseconds.
- Weight::from_parts(63_368_266, 0)
+ // Minimum execution time: 42_389_000 picoseconds.
+ Weight::from_parts(42_884_328, 0)
.saturating_add(Weight::from_parts(0, 4137))
- // Standard Error: 566
- .saturating_add(Weight::from_parts(5_366, 0).saturating_mul(b.into()))
- // Standard Error: 6_013
- .saturating_add(Weight::from_parts(14_040, 0).saturating_mul(m.into()))
- // Standard Error: 5_818
- .saturating_add(Weight::from_parts(436_805, 0).saturating_mul(p.into()))
+ // Standard Error: 272
+ .saturating_add(Weight::from_parts(4_161, 0).saturating_mul(b.into()))
+ // Standard Error: 2_894
+ .saturating_add(Weight::from_parts(37_328, 0).saturating_mul(m.into()))
+ // Standard Error: 2_800
+ .saturating_add(Weight::from_parts(249_974, 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()))
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
}
- /// Storage: Council Proposals (r:1 w:1)
- /// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council Voting (r:0 w:1)
- /// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
- /// Storage: Council ProposalOf (r:0 w:1)
- /// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Council::Proposals` (r:1 w:1)
+ /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Voting` (r:0 w:1)
+ /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::ProposalOf` (r:0 w:1)
+ /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `p` is `[1, 100]`.
fn disapprove_proposal(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `259 + p * (32 ±0)`
// Estimated: `1745 + p * (32 ±0)`
- // Minimum execution time: 22_398_000 picoseconds.
- Weight::from_parts(23_305_944, 0)
+ // Minimum execution time: 14_667_000 picoseconds.
+ Weight::from_parts(16_664_975, 0)
.saturating_add(Weight::from_parts(0, 1745))
- // Standard Error: 1_486
- .saturating_add(Weight::from_parts(296_517, 0).saturating_mul(p.into()))
+ // Standard Error: 2_024
+ .saturating_add(Weight::from_parts(177_050, 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/litentry/src/weights/pallet_democracy.rs b/runtime/litentry/src/weights/pallet_democracy.rs
index ea7938f31c..2e7249d2f7 100644
--- a/runtime/litentry/src/weights/pallet_democracy.rs
+++ b/runtime/litentry/src/weights/pallet_democracy.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_democracy`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,477 +49,477 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_democracy`.
pub struct WeightInfo(PhantomData);
impl pallet_democracy::WeightInfo for WeightInfo {
- /// Storage: Democracy PublicPropCount (r:1 w:1)
- /// Proof: Democracy PublicPropCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
- /// Storage: Democracy PublicProps (r:1 w:1)
- /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
- /// Storage: Democracy Blacklist (r:1 w:0)
- /// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
- /// Storage: Democracy DepositOf (r:0 w:1)
- /// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
+ /// Storage: `Democracy::PublicPropCount` (r:1 w:1)
+ /// Proof: `Democracy::PublicPropCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::PublicProps` (r:1 w:1)
+ /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::Blacklist` (r:1 w:0)
+ /// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3238), added: 5713, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::DepositOf` (r:0 w:1)
+ /// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`)
fn propose() -> Weight {
// Proof Size summary in bytes:
// Measured: `4734`
// Estimated: `18187`
- // Minimum execution time: 68_703_000 picoseconds.
- Weight::from_parts(72_616_000, 0)
+ // Minimum execution time: 45_585_000 picoseconds.
+ Weight::from_parts(52_179_000, 0)
.saturating_add(Weight::from_parts(0, 18187))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
- /// Storage: Democracy DepositOf (r:1 w:1)
- /// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
+ /// Storage: `Democracy::DepositOf` (r:1 w:1)
+ /// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`)
fn second() -> Weight {
// Proof Size summary in bytes:
// Measured: `3489`
// Estimated: `6695`
- // Minimum execution time: 57_988_000 picoseconds.
- Weight::from_parts(67_128_000, 0)
+ // Minimum execution time: 40_596_000 picoseconds.
+ Weight::from_parts(44_834_000, 0)
.saturating_add(Weight::from_parts(0, 6695))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Democracy ReferendumInfoOf (r:1 w:1)
- /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
- /// Storage: Democracy VotingOf (r:1 w:1)
- /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
- /// Storage: Balances Locks (r:1 w:1)
- /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
- /// Storage: Balances Freezes (r:1 w:0)
- /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
+ /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
+ /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::VotingOf` (r:1 w:1)
+ /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
+ /// Storage: `Balances::Locks` (r:1 w:1)
+ /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
+ /// Storage: `Balances::Freezes` (r:1 w:0)
+ /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
fn vote_new() -> Weight {
// Proof Size summary in bytes:
// Measured: `3365`
// Estimated: `7260`
- // Minimum execution time: 83_513_000 picoseconds.
- Weight::from_parts(95_113_000, 0)
+ // Minimum execution time: 55_432_000 picoseconds.
+ Weight::from_parts(64_480_000, 0)
.saturating_add(Weight::from_parts(0, 7260))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
}
- /// Storage: Democracy ReferendumInfoOf (r:1 w:1)
- /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
- /// Storage: Democracy VotingOf (r:1 w:1)
- /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
- /// Storage: Balances Locks (r:1 w:1)
- /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
- /// Storage: Balances Freezes (r:1 w:0)
- /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
+ /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
+ /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::VotingOf` (r:1 w:1)
+ /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
+ /// Storage: `Balances::Locks` (r:1 w:1)
+ /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
+ /// Storage: `Balances::Freezes` (r:1 w:0)
+ /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
fn vote_existing() -> Weight {
// Proof Size summary in bytes:
// Measured: `3387`
// Estimated: `7260`
- // Minimum execution time: 87_816_000 picoseconds.
- Weight::from_parts(95_605_000, 0)
+ // Minimum execution time: 62_346_000 picoseconds.
+ Weight::from_parts(68_876_000, 0)
.saturating_add(Weight::from_parts(0, 7260))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
}
- /// Storage: Democracy ReferendumInfoOf (r:1 w:1)
- /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
- /// Storage: Democracy Cancellations (r:1 w:1)
- /// Proof: Democracy Cancellations (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen)
- /// Storage: Democracy MetadataOf (r:1 w:1)
- /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
+ /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
+ /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::Cancellations` (r:1 w:1)
+ /// Proof: `Democracy::Cancellations` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::MetadataOf` (r:1 w:1)
+ /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
fn emergency_cancel() -> Weight {
// Proof Size summary in bytes:
// Measured: `299`
// Estimated: `3666`
- // Minimum execution time: 37_980_000 picoseconds.
- Weight::from_parts(38_702_000, 0)
+ // Minimum execution time: 25_721_000 picoseconds.
+ Weight::from_parts(26_476_000, 0)
.saturating_add(Weight::from_parts(0, 3666))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
- /// Storage: Democracy PublicProps (r:1 w:1)
- /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
- /// Storage: Democracy DepositOf (r:1 w:1)
- /// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
- /// Storage: System Account (r:2 w:2)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- /// Storage: Democracy MetadataOf (r:3 w:1)
- /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
- /// Storage: Democracy NextExternal (r:1 w:1)
- /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
- /// Storage: Democracy ReferendumInfoOf (r:1 w:1)
- /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
- /// Storage: Democracy Blacklist (r:0 w:1)
- /// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
+ /// Storage: `Democracy::PublicProps` (r:1 w:1)
+ /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::DepositOf` (r:1 w:1)
+ /// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`)
+ /// Storage: `System::Account` (r:2 w:2)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::MetadataOf` (r:3 w:1)
+ /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::NextExternal` (r:1 w:1)
+ /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
+ /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::Blacklist` (r:0 w:1)
+ /// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3238), added: 5713, mode: `MaxEncodedLen`)
fn blacklist() -> Weight {
// Proof Size summary in bytes:
// Measured: `6182`
// Estimated: `18187`
- // Minimum execution time: 160_783_000 picoseconds.
- Weight::from_parts(169_556_000, 0)
+ // Minimum execution time: 112_690_000 picoseconds.
+ Weight::from_parts(120_311_000, 0)
.saturating_add(Weight::from_parts(0, 18187))
.saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(8))
}
- /// Storage: Democracy NextExternal (r:1 w:1)
- /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
- /// Storage: Democracy Blacklist (r:1 w:0)
- /// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
+ /// Storage: `Democracy::NextExternal` (r:1 w:1)
+ /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::Blacklist` (r:1 w:0)
+ /// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3238), added: 5713, mode: `MaxEncodedLen`)
fn external_propose() -> Weight {
// Proof Size summary in bytes:
// Measured: `3349`
// Estimated: `6703`
- // Minimum execution time: 18_714_000 picoseconds.
- Weight::from_parts(19_107_000, 0)
+ // Minimum execution time: 12_376_000 picoseconds.
+ Weight::from_parts(13_472_000, 0)
.saturating_add(Weight::from_parts(0, 6703))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Democracy NextExternal (r:0 w:1)
- /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
+ /// Storage: `Democracy::NextExternal` (r:0 w:1)
+ /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
fn external_propose_majority() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 5_096_000 picoseconds.
- Weight::from_parts(5_253_000, 0)
+ // Minimum execution time: 3_199_000 picoseconds.
+ Weight::from_parts(3_407_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Democracy NextExternal (r:0 w:1)
- /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
+ /// Storage: `Democracy::NextExternal` (r:0 w:1)
+ /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
fn external_propose_default() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 5_241_000 picoseconds.
- Weight::from_parts(5_452_000, 0)
+ // Minimum execution time: 3_239_000 picoseconds.
+ Weight::from_parts(3_432_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Democracy NextExternal (r:1 w:1)
- /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
- /// Storage: Democracy ReferendumCount (r:1 w:1)
- /// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
- /// Storage: Democracy MetadataOf (r:1 w:2)
- /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
- /// Storage: Democracy ReferendumInfoOf (r:0 w:1)
- /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
+ /// Storage: `Democracy::NextExternal` (r:1 w:1)
+ /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::ReferendumCount` (r:1 w:1)
+ /// Proof: `Democracy::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::MetadataOf` (r:1 w:2)
+ /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::ReferendumInfoOf` (r:0 w:1)
+ /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
fn fast_track() -> Weight {
// Proof Size summary in bytes:
// Measured: `219`
// Estimated: `3518`
- // Minimum execution time: 38_880_000 picoseconds.
- Weight::from_parts(39_779_000, 0)
+ // Minimum execution time: 26_601_000 picoseconds.
+ Weight::from_parts(28_663_000, 0)
.saturating_add(Weight::from_parts(0, 3518))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(5))
}
- /// Storage: Democracy NextExternal (r:1 w:1)
- /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
- /// Storage: Democracy Blacklist (r:1 w:1)
- /// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
- /// Storage: Democracy MetadataOf (r:1 w:1)
- /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
+ /// Storage: `Democracy::NextExternal` (r:1 w:1)
+ /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::Blacklist` (r:1 w:1)
+ /// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3238), added: 5713, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::MetadataOf` (r:1 w:1)
+ /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
fn veto_external() -> Weight {
// Proof Size summary in bytes:
// Measured: `3452`
// Estimated: `6703`
- // Minimum execution time: 43_149_000 picoseconds.
- Weight::from_parts(44_265_000, 0)
+ // Minimum execution time: 29_349_000 picoseconds.
+ Weight::from_parts(30_668_000, 0)
.saturating_add(Weight::from_parts(0, 6703))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
- /// Storage: Democracy PublicProps (r:1 w:1)
- /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
- /// Storage: Democracy DepositOf (r:1 w:1)
- /// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
- /// Storage: System Account (r:2 w:2)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- /// Storage: Democracy MetadataOf (r:1 w:1)
- /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
+ /// Storage: `Democracy::PublicProps` (r:1 w:1)
+ /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::DepositOf` (r:1 w:1)
+ /// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`)
+ /// Storage: `System::Account` (r:2 w:2)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::MetadataOf` (r:1 w:1)
+ /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
fn cancel_proposal() -> Weight {
// Proof Size summary in bytes:
// Measured: `6093`
// Estimated: `18187`
- // Minimum execution time: 132_989_000 picoseconds.
- Weight::from_parts(139_623_000, 0)
+ // Minimum execution time: 91_372_000 picoseconds.
+ Weight::from_parts(97_493_000, 0)
.saturating_add(Weight::from_parts(0, 18187))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(5))
}
- /// Storage: Democracy MetadataOf (r:1 w:1)
- /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
- /// Storage: Democracy ReferendumInfoOf (r:0 w:1)
- /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
+ /// Storage: `Democracy::MetadataOf` (r:1 w:1)
+ /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::ReferendumInfoOf` (r:0 w:1)
+ /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
fn cancel_referendum() -> Weight {
// Proof Size summary in bytes:
// Measured: `204`
// Estimated: `3518`
- // Minimum execution time: 28_813_000 picoseconds.
- Weight::from_parts(29_391_000, 0)
+ // Minimum execution time: 19_177_000 picoseconds.
+ Weight::from_parts(19_783_000, 0)
.saturating_add(Weight::from_parts(0, 3518))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Democracy LowestUnbaked (r:1 w:1)
- /// Proof: Democracy LowestUnbaked (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
- /// Storage: Democracy ReferendumCount (r:1 w:0)
- /// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
- /// Storage: Democracy ReferendumInfoOf (r:99 w:0)
- /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
+ /// Storage: `Democracy::LowestUnbaked` (r:1 w:1)
+ /// Proof: `Democracy::LowestUnbaked` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::ReferendumCount` (r:1 w:0)
+ /// Proof: `Democracy::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::ReferendumInfoOf` (r:99 w:0)
+ /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
/// The range of component `r` is `[0, 99]`.
fn on_initialize_base(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `176 + r * (86 ±0)`
// Estimated: `1489 + r * (2676 ±0)`
- // Minimum execution time: 9_379_000 picoseconds.
- Weight::from_parts(3_918_443, 0)
+ // Minimum execution time: 6_918_000 picoseconds.
+ Weight::from_parts(5_988_764, 0)
.saturating_add(Weight::from_parts(0, 1489))
- // Standard Error: 18_647
- .saturating_add(Weight::from_parts(4_300_955, 0).saturating_mul(r.into()))
+ // Standard Error: 23_897
+ .saturating_add(Weight::from_parts(3_376_625, 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))
.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
}
- /// Storage: Democracy LowestUnbaked (r:1 w:1)
- /// Proof: Democracy LowestUnbaked (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
- /// Storage: Democracy ReferendumCount (r:1 w:0)
- /// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
- /// Storage: Democracy LastTabledWasExternal (r:1 w:0)
- /// Proof: Democracy LastTabledWasExternal (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
- /// Storage: Democracy NextExternal (r:1 w:0)
- /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
- /// Storage: Democracy PublicProps (r:1 w:0)
- /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
- /// Storage: Democracy ReferendumInfoOf (r:99 w:0)
- /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
+ /// Storage: `Democracy::LowestUnbaked` (r:1 w:1)
+ /// Proof: `Democracy::LowestUnbaked` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::ReferendumCount` (r:1 w:0)
+ /// Proof: `Democracy::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::LastTabledWasExternal` (r:1 w:0)
+ /// Proof: `Democracy::LastTabledWasExternal` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::NextExternal` (r:1 w:0)
+ /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::PublicProps` (r:1 w:0)
+ /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::ReferendumInfoOf` (r:99 w:0)
+ /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
/// The range of component `r` is `[0, 99]`.
fn on_initialize_base_with_launch_period(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `176 + r * (86 ±0)`
// Estimated: `18187 + r * (2676 ±0)`
- // Minimum execution time: 13_380_000 picoseconds.
- Weight::from_parts(22_305_697, 0)
+ // Minimum execution time: 9_844_000 picoseconds.
+ Weight::from_parts(12_409_232, 0)
.saturating_add(Weight::from_parts(0, 18187))
- // Standard Error: 44_050
- .saturating_add(Weight::from_parts(4_302_208, 0).saturating_mul(r.into()))
+ // Standard Error: 15_261
+ .saturating_add(Weight::from_parts(3_259_951, 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))
.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
}
- /// Storage: Democracy VotingOf (r:3 w:3)
- /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
- /// Storage: Democracy ReferendumInfoOf (r:99 w:99)
- /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
- /// Storage: Balances Locks (r:1 w:1)
- /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
- /// Storage: Balances Freezes (r:1 w:0)
- /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
+ /// Storage: `Democracy::VotingOf` (r:3 w:3)
+ /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::ReferendumInfoOf` (r:99 w:99)
+ /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
+ /// Storage: `Balances::Locks` (r:1 w:1)
+ /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
+ /// Storage: `Balances::Freezes` (r:1 w:0)
+ /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// The range of component `r` is `[0, 99]`.
fn delegate(r: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `726 + r * (108 ±0)`
+ // Measured: `727 + r * (108 ±0)`
// Estimated: `19800 + r * (2676 ±0)`
- // Minimum execution time: 55_202_000 picoseconds.
- Weight::from_parts(55_707_450, 0)
+ // Minimum execution time: 38_547_000 picoseconds.
+ Weight::from_parts(40_226_296, 0)
.saturating_add(Weight::from_parts(0, 19800))
- // Standard Error: 22_906
- .saturating_add(Weight::from_parts(5_955_938, 0).saturating_mul(r.into()))
+ // Standard Error: 44_275
+ .saturating_add(Weight::from_parts(4_565_949, 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))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into())))
.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
}
- /// Storage: Democracy VotingOf (r:2 w:2)
- /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
- /// Storage: Democracy ReferendumInfoOf (r:99 w:99)
- /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
+ /// Storage: `Democracy::VotingOf` (r:2 w:2)
+ /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::ReferendumInfoOf` (r:99 w:99)
+ /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
/// The range of component `r` is `[0, 99]`.
fn undelegate(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `424 + r * (108 ±0)`
// Estimated: `13530 + r * (2676 ±0)`
- // Minimum execution time: 29_585_000 picoseconds.
- Weight::from_parts(22_058_100, 0)
+ // Minimum execution time: 19_897_000 picoseconds.
+ Weight::from_parts(16_493_738, 0)
.saturating_add(Weight::from_parts(0, 13530))
- // Standard Error: 21_331
- .saturating_add(Weight::from_parts(5_877_531, 0).saturating_mul(r.into()))
+ // Standard Error: 27_832
+ .saturating_add(Weight::from_parts(4_366_052, 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))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into())))
.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
}
- /// Storage: Democracy PublicProps (r:0 w:1)
- /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
+ /// Storage: `Democracy::PublicProps` (r:0 w:1)
+ /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
fn clear_public_proposals() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 5_403_000 picoseconds.
- Weight::from_parts(5_554_000, 0)
+ // Minimum execution time: 3_154_000 picoseconds.
+ Weight::from_parts(3_384_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Democracy VotingOf (r:1 w:1)
- /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
- /// Storage: Balances Locks (r:1 w:1)
- /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
- /// Storage: Balances Freezes (r:1 w:0)
- /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `Democracy::VotingOf` (r:1 w:1)
+ /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
+ /// Storage: `Balances::Locks` (r:1 w:1)
+ /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
+ /// Storage: `Balances::Freezes` (r:1 w:0)
+ /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// The range of component `r` is `[0, 99]`.
fn unlock_remove(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `421`
// Estimated: `7260`
- // Minimum execution time: 31_366_000 picoseconds.
- Weight::from_parts(49_299_490, 0)
+ // Minimum execution time: 21_751_000 picoseconds.
+ Weight::from_parts(36_744_791, 0)
.saturating_add(Weight::from_parts(0, 7260))
- // Standard Error: 9_295
- .saturating_add(Weight::from_parts(321_160, 0).saturating_mul(r.into()))
+ // Standard Error: 6_694
+ .saturating_add(Weight::from_parts(178_500, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
}
- /// Storage: Democracy VotingOf (r:1 w:1)
- /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
- /// Storage: Balances Locks (r:1 w:1)
- /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
- /// Storage: Balances Freezes (r:1 w:0)
- /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `Democracy::VotingOf` (r:1 w:1)
+ /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
+ /// Storage: `Balances::Locks` (r:1 w:1)
+ /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
+ /// Storage: `Balances::Freezes` (r:1 w:0)
+ /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// The range of component `r` is `[0, 99]`.
fn unlock_set(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `421 + r * (22 ±0)`
// Estimated: `7260`
- // Minimum execution time: 47_587_000 picoseconds.
- Weight::from_parts(51_371_556, 0)
+ // Minimum execution time: 33_190_000 picoseconds.
+ Weight::from_parts(37_824_936, 0)
.saturating_add(Weight::from_parts(0, 7260))
- // Standard Error: 6_199
- .saturating_add(Weight::from_parts(281_863, 0).saturating_mul(r.into()))
+ // Standard Error: 4_975
+ .saturating_add(Weight::from_parts(164_564, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
}
- /// Storage: Democracy ReferendumInfoOf (r:1 w:1)
- /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
- /// Storage: Democracy VotingOf (r:1 w:1)
- /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
+ /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
+ /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::VotingOf` (r:1 w:1)
+ /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
/// The range of component `r` is `[1, 100]`.
fn remove_vote(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `638 + r * (27 ±0)`
// Estimated: `7260`
- // Minimum execution time: 22_200_000 picoseconds.
- Weight::from_parts(26_655_262, 0)
+ // Minimum execution time: 15_417_000 picoseconds.
+ Weight::from_parts(18_547_578, 0)
.saturating_add(Weight::from_parts(0, 7260))
- // Standard Error: 4_407
- .saturating_add(Weight::from_parts(233_970, 0).saturating_mul(r.into()))
+ // Standard Error: 2_597
+ .saturating_add(Weight::from_parts(158_584, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Democracy ReferendumInfoOf (r:1 w:1)
- /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
- /// Storage: Democracy VotingOf (r:1 w:1)
- /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
+ /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
+ /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::VotingOf` (r:1 w:1)
+ /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
/// The range of component `r` is `[1, 100]`.
fn remove_other_vote(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `638 + r * (27 ±0)`
// Estimated: `7260`
- // Minimum execution time: 22_400_000 picoseconds.
- Weight::from_parts(27_445_822, 0)
+ // Minimum execution time: 15_180_000 picoseconds.
+ Weight::from_parts(19_007_099, 0)
.saturating_add(Weight::from_parts(0, 7260))
- // Standard Error: 3_831
- .saturating_add(Weight::from_parts(243_867, 0).saturating_mul(r.into()))
+ // Standard Error: 2_964
+ .saturating_add(Weight::from_parts(151_811, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Democracy NextExternal (r:1 w:0)
- /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
- /// Storage: Preimage StatusFor (r:1 w:0)
- /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
- /// Storage: Democracy MetadataOf (r:0 w:1)
- /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
+ /// Storage: `Democracy::NextExternal` (r:1 w:0)
+ /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
+ /// Storage: `Preimage::StatusFor` (r:1 w:0)
+ /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::MetadataOf` (r:0 w:1)
+ /// 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: `289`
+ // Measured: `323`
// Estimated: `3556`
- // Minimum execution time: 26_191_000 picoseconds.
- Weight::from_parts(26_829_000, 0)
+ // Minimum execution time: 18_074_000 picoseconds.
+ Weight::from_parts(18_664_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Democracy NextExternal (r:1 w:0)
- /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
- /// Storage: Democracy MetadataOf (r:1 w:1)
- /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
+ /// Storage: `Democracy::NextExternal` (r:1 w:0)
+ /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::MetadataOf` (r:1 w:1)
+ /// 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: `219`
// Estimated: `3518`
- // Minimum execution time: 24_597_000 picoseconds.
- Weight::from_parts(24_993_000, 0)
+ // Minimum execution time: 16_376_000 picoseconds.
+ Weight::from_parts(16_830_000, 0)
.saturating_add(Weight::from_parts(0, 3518))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Democracy PublicProps (r:1 w:0)
- /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
- /// Storage: Preimage StatusFor (r:1 w:0)
- /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
- /// Storage: Democracy MetadataOf (r:0 w:1)
- /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
+ /// Storage: `Democracy::PublicProps` (r:1 w:0)
+ /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
+ /// Storage: `Preimage::StatusFor` (r:1 w:0)
+ /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::MetadataOf` (r:0 w:1)
+ /// 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: `4821`
+ // Measured: `4855`
// Estimated: `18187`
- // Minimum execution time: 62_979_000 picoseconds.
- Weight::from_parts(67_543_000, 0)
+ // Minimum execution time: 40_550_000 picoseconds.
+ Weight::from_parts(45_548_000, 0)
.saturating_add(Weight::from_parts(0, 18187))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Democracy PublicProps (r:1 w:0)
- /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
- /// Storage: Democracy MetadataOf (r:1 w:1)
- /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
+ /// Storage: `Democracy::PublicProps` (r:1 w:0)
+ /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::MetadataOf` (r:1 w:1)
+ /// 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: `4755`
// Estimated: `18187`
- // Minimum execution time: 60_670_000 picoseconds.
- Weight::from_parts(64_929_000, 0)
+ // Minimum execution time: 36_944_000 picoseconds.
+ Weight::from_parts(41_043_000, 0)
.saturating_add(Weight::from_parts(0, 18187))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Preimage StatusFor (r:1 w:0)
- /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
- /// Storage: Democracy MetadataOf (r:0 w:1)
- /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
+ /// Storage: `Preimage::StatusFor` (r:1 w:0)
+ /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::MetadataOf` (r:0 w:1)
+ /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
fn set_referendum_metadata() -> Weight {
// Proof Size summary in bytes:
- // Measured: `144`
+ // Measured: `178`
// Estimated: `3556`
- // Minimum execution time: 21_982_000 picoseconds.
- Weight::from_parts(22_704_000, 0)
+ // Minimum execution time: 13_833_000 picoseconds.
+ Weight::from_parts(14_684_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Democracy ReferendumInfoOf (r:1 w:0)
- /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
- /// Storage: Democracy MetadataOf (r:1 w:1)
- /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
+ /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:0)
+ /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
+ /// Storage: `Democracy::MetadataOf` (r:1 w:1)
+ /// 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: `235`
// Estimated: `3666`
- // Minimum execution time: 27_714_000 picoseconds.
- Weight::from_parts(28_775_000, 0)
+ // Minimum execution time: 18_663_000 picoseconds.
+ Weight::from_parts(19_217_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/litentry/src/weights/pallet_extrinsic_filter.rs b/runtime/litentry/src/weights/pallet_extrinsic_filter.rs
index 44834f1738..da20de442b 100644
--- a/runtime/litentry/src/weights/pallet_extrinsic_filter.rs
+++ b/runtime/litentry/src/weights/pallet_extrinsic_filter.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_extrinsic_filter`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,39 +49,39 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_extrinsic_filter`.
pub struct WeightInfo(PhantomData);
impl pallet_extrinsic_filter::WeightInfo for WeightInfo {
- /// Storage: ExtrinsicFilter BlockedExtrinsics (r:1 w:1)
- /// Proof Skipped: ExtrinsicFilter BlockedExtrinsics (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `ExtrinsicFilter::BlockedExtrinsics` (r:1 w:1)
+ /// Proof: `ExtrinsicFilter::BlockedExtrinsics` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `p` is `[1, 1024]`.
/// The range of component `f` is `[1, 1024]`.
fn block_extrinsics(p: u32, f: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `109`
- // Estimated: `3574`
- // Minimum execution time: 22_876_000 picoseconds.
- Weight::from_parts(18_922_891, 0)
- .saturating_add(Weight::from_parts(0, 3574))
- // Standard Error: 94
- .saturating_add(Weight::from_parts(4_580, 0).saturating_mul(p.into()))
- // Standard Error: 94
- .saturating_add(Weight::from_parts(4_452, 0).saturating_mul(f.into()))
+ // Measured: `142`
+ // Estimated: `3607`
+ // Minimum execution time: 14_620_000 picoseconds.
+ Weight::from_parts(12_710_245, 0)
+ .saturating_add(Weight::from_parts(0, 3607))
+ // Standard Error: 67
+ .saturating_add(Weight::from_parts(3_027, 0).saturating_mul(p.into()))
+ // Standard Error: 67
+ .saturating_add(Weight::from_parts(2_573, 0).saturating_mul(f.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: ExtrinsicFilter BlockedExtrinsics (r:1 w:1)
- /// Proof Skipped: ExtrinsicFilter BlockedExtrinsics (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `ExtrinsicFilter::BlockedExtrinsics` (r:1 w:1)
+ /// Proof: `ExtrinsicFilter::BlockedExtrinsics` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `p` is `[1, 1024]`.
/// The range of component `f` is `[1, 1024]`.
fn unblock_extrinsics(p: u32, f: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `145 + f * (1 ±0) + p * (1 ±0)`
- // Estimated: `3611 + f * (1 ±0) + p * (1 ±0)`
- // Minimum execution time: 35_120_000 picoseconds.
- Weight::from_parts(23_758_025, 0)
- .saturating_add(Weight::from_parts(0, 3611))
- // Standard Error: 135
- .saturating_add(Weight::from_parts(11_926, 0).saturating_mul(p.into()))
- // Standard Error: 135
- .saturating_add(Weight::from_parts(13_962, 0).saturating_mul(f.into()))
+ // Measured: `178 + f * (1 ±0) + p * (1 ±0)`
+ // Estimated: `3644 + f * (1 ±0) + p * (1 ±0)`
+ // Minimum execution time: 24_253_000 picoseconds.
+ Weight::from_parts(15_708_439, 0)
+ .saturating_add(Weight::from_parts(0, 3644))
+ // Standard Error: 146
+ .saturating_add(Weight::from_parts(10_379, 0).saturating_mul(p.into()))
+ // Standard Error: 146
+ .saturating_add(Weight::from_parts(9_183, 0).saturating_mul(f.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(f.into()))
diff --git a/runtime/litentry/src/weights/pallet_identity_management.rs b/runtime/litentry/src/weights/pallet_identity_management.rs
index f34c50665d..a12a17a108 100644
--- a/runtime/litentry/src/weights/pallet_identity_management.rs
+++ b/runtime/litentry/src/weights/pallet_identity_management.rs
@@ -17,16 +17,16 @@
//! Autogenerated weights for `pallet_identity_management`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-11-30, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
// benchmark
// pallet
-// --chain=rococo-dev
+// --chain=litentry-dev
// --execution=wasm
// --db-cache=20
// --wasm-execution=compiled
@@ -36,7 +36,7 @@
// --steps=20
// --repeat=50
// --header=./LICENSE_HEADER
-// --output=./runtime/rococo/src/weights/pallet_identity_management.rs
+// --output=./runtime/litentry/src/weights/pallet_identity_management.rs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,115 +49,115 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_identity_management`.
pub struct WeightInfo(PhantomData);
impl pallet_identity_management::WeightInfo for WeightInfo {
- /// Storage: IdentityManagement Delegatee (r:0 w:1)
- /// Proof: IdentityManagement Delegatee (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
+ /// Storage: `IdentityManagement::Delegatee` (r:0 w:1)
+ /// Proof: `IdentityManagement::Delegatee` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
fn add_delegatee() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 13_843_000 picoseconds.
- Weight::from_parts(14_244_000, 0)
+ // Minimum execution time: 8_148_000 picoseconds.
+ Weight::from_parts(8_565_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: IdentityManagement Delegatee (r:1 w:1)
- /// Proof: IdentityManagement Delegatee (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
+ /// Storage: `IdentityManagement::Delegatee` (r:1 w:1)
+ /// Proof: `IdentityManagement::Delegatee` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
fn remove_delegatee() -> Weight {
// Proof Size summary in bytes:
- // Measured: `79`
+ // Measured: `116`
// Estimated: `3513`
- // Minimum execution time: 19_880_000 picoseconds.
- Weight::from_parts(20_277_000, 0)
+ // Minimum execution time: 12_635_000 picoseconds.
+ Weight::from_parts(13_035_000, 0)
.saturating_add(Weight::from_parts(0, 3513))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: IMPExtrinsicWhitelist GroupControlOn (r:1 w:0)
- /// Proof Skipped: IMPExtrinsicWhitelist GroupControlOn (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `IMPExtrinsicWhitelist::GroupControlOn` (r:1 w:0)
+ /// Proof: `IMPExtrinsicWhitelist::GroupControlOn` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn link_identity() -> Weight {
// Proof Size summary in bytes:
- // Measured: `76`
- // Estimated: `1561`
- // Minimum execution time: 20_439_000 picoseconds.
- Weight::from_parts(20_798_000, 0)
- .saturating_add(Weight::from_parts(0, 1561))
+ // Measured: `142`
+ // Estimated: `1627`
+ // Minimum execution time: 14_927_000 picoseconds.
+ Weight::from_parts(15_547_000, 0)
+ .saturating_add(Weight::from_parts(0, 1627))
.saturating_add(T::DbWeight::get().reads(1))
}
- /// Storage: IMPExtrinsicWhitelist GroupControlOn (r:1 w:0)
- /// Proof Skipped: IMPExtrinsicWhitelist GroupControlOn (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `IMPExtrinsicWhitelist::GroupControlOn` (r:1 w:0)
+ /// Proof: `IMPExtrinsicWhitelist::GroupControlOn` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn deactivate_identity() -> Weight {
// Proof Size summary in bytes:
- // Measured: `76`
- // Estimated: `1561`
- // Minimum execution time: 17_116_000 picoseconds.
- Weight::from_parts(17_493_000, 0)
- .saturating_add(Weight::from_parts(0, 1561))
+ // Measured: `142`
+ // Estimated: `1627`
+ // Minimum execution time: 11_099_000 picoseconds.
+ Weight::from_parts(11_514_000, 0)
+ .saturating_add(Weight::from_parts(0, 1627))
.saturating_add(T::DbWeight::get().reads(1))
}
- /// Storage: IMPExtrinsicWhitelist GroupControlOn (r:1 w:0)
- /// Proof Skipped: IMPExtrinsicWhitelist GroupControlOn (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `IMPExtrinsicWhitelist::GroupControlOn` (r:1 w:0)
+ /// Proof: `IMPExtrinsicWhitelist::GroupControlOn` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn activate_identity() -> Weight {
// Proof Size summary in bytes:
- // Measured: `76`
- // Estimated: `1561`
- // Minimum execution time: 17_117_000 picoseconds.
- Weight::from_parts(17_592_000, 0)
- .saturating_add(Weight::from_parts(0, 1561))
+ // Measured: `142`
+ // Estimated: `1627`
+ // Minimum execution time: 11_202_000 picoseconds.
+ Weight::from_parts(11_731_000, 0)
+ .saturating_add(Weight::from_parts(0, 1627))
.saturating_add(T::DbWeight::get().reads(1))
}
- /// Storage: Teerex EnclaveIndex (r:1 w:0)
- /// Proof Skipped: Teerex EnclaveIndex (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Teebag::EnclaveRegistry` (r:1 w:0)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn identity_linked() -> Weight {
// Proof Size summary in bytes:
- // Measured: `255`
- // Estimated: `3720`
- // Minimum execution time: 20_155_000 picoseconds.
- Weight::from_parts(20_822_000, 0)
- .saturating_add(Weight::from_parts(0, 3720))
+ // Measured: `347`
+ // Estimated: `3812`
+ // Minimum execution time: 12_177_000 picoseconds.
+ Weight::from_parts(16_698_000, 0)
+ .saturating_add(Weight::from_parts(0, 3812))
.saturating_add(T::DbWeight::get().reads(1))
}
- /// Storage: Teerex EnclaveIndex (r:1 w:0)
- /// Proof Skipped: Teerex EnclaveIndex (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Teebag::EnclaveRegistry` (r:1 w:0)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn identity_deactivated() -> Weight {
// Proof Size summary in bytes:
- // Measured: `255`
- // Estimated: `3720`
- // Minimum execution time: 20_158_000 picoseconds.
- Weight::from_parts(20_898_000, 0)
- .saturating_add(Weight::from_parts(0, 3720))
+ // Measured: `347`
+ // Estimated: `3812`
+ // Minimum execution time: 12_044_000 picoseconds.
+ Weight::from_parts(12_461_000, 0)
+ .saturating_add(Weight::from_parts(0, 3812))
.saturating_add(T::DbWeight::get().reads(1))
}
- /// Storage: Teerex EnclaveIndex (r:1 w:0)
- /// Proof Skipped: Teerex EnclaveIndex (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Teebag::EnclaveRegistry` (r:1 w:0)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn identity_activated() -> Weight {
// Proof Size summary in bytes:
- // Measured: `255`
- // Estimated: `3720`
- // Minimum execution time: 20_057_000 picoseconds.
- Weight::from_parts(20_846_000, 0)
- .saturating_add(Weight::from_parts(0, 3720))
+ // Measured: `347`
+ // Estimated: `3812`
+ // Minimum execution time: 12_065_000 picoseconds.
+ Weight::from_parts(12_382_000, 0)
+ .saturating_add(Weight::from_parts(0, 3812))
.saturating_add(T::DbWeight::get().reads(1))
}
- /// Storage: Teerex EnclaveIndex (r:1 w:0)
- /// Proof Skipped: Teerex EnclaveIndex (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Teebag::EnclaveRegistry` (r:1 w:0)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn identity_networks_set() -> Weight {
// Proof Size summary in bytes:
- // Measured: `255`
- // Estimated: `3720`
- // Minimum execution time: 20_057_000 picoseconds.
- Weight::from_parts(20_846_000, 0)
- .saturating_add(Weight::from_parts(0, 3720))
+ // Measured: `347`
+ // Estimated: `3812`
+ // Minimum execution time: 12_059_000 picoseconds.
+ Weight::from_parts(12_440_000, 0)
+ .saturating_add(Weight::from_parts(0, 3812))
.saturating_add(T::DbWeight::get().reads(1))
}
- /// Storage: Teerex EnclaveIndex (r:1 w:0)
- /// Proof Skipped: Teerex EnclaveIndex (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Teebag::EnclaveRegistry` (r:1 w:0)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn some_error() -> Weight {
// Proof Size summary in bytes:
- // Measured: `255`
- // Estimated: `3720`
- // Minimum execution time: 20_419_000 picoseconds.
- Weight::from_parts(21_055_000, 0)
- .saturating_add(Weight::from_parts(0, 3720))
+ // Measured: `347`
+ // Estimated: `3812`
+ // Minimum execution time: 11_733_000 picoseconds.
+ Weight::from_parts(12_206_000, 0)
+ .saturating_add(Weight::from_parts(0, 3812))
.saturating_add(T::DbWeight::get().reads(1))
}
}
diff --git a/runtime/litentry/src/weights/pallet_membership.rs b/runtime/litentry/src/weights/pallet_membership.rs
index 15e60c0e5a..d901091b4c 100644
--- a/runtime/litentry/src/weights/pallet_membership.rs
+++ b/runtime/litentry/src/weights/pallet_membership.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_membership`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,156 +49,156 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_membership`.
pub struct WeightInfo(PhantomData);
impl pallet_membership::WeightInfo for WeightInfo {
- /// Storage: CouncilMembership Members (r:1 w:1)
- /// Proof: CouncilMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
- /// Storage: Council Proposals (r:1 w:0)
- /// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council Members (r:0 w:1)
- /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council Prime (r:0 w:1)
- /// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `CouncilMembership::Members` (r:1 w:1)
+ /// Proof: `CouncilMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
+ /// Storage: `Council::Proposals` (r:1 w:0)
+ /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Members` (r:0 w:1)
+ /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Prime` (r:0 w:1)
+ /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `m` is `[1, 99]`.
fn add_member(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `211 + m * (64 ±0)`
// Estimated: `4687 + m * (64 ±0)`
- // Minimum execution time: 25_797_000 picoseconds.
- Weight::from_parts(26_834_116, 0)
+ // Minimum execution time: 15_701_000 picoseconds.
+ Weight::from_parts(16_943_868, 0)
.saturating_add(Weight::from_parts(0, 4687))
- // Standard Error: 1_790
- .saturating_add(Weight::from_parts(39_963, 0).saturating_mul(m.into()))
+ // Standard Error: 2_123
+ .saturating_add(Weight::from_parts(26_883, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
- /// Storage: CouncilMembership Members (r:1 w:1)
- /// Proof: CouncilMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
- /// Storage: Council Proposals (r:1 w:0)
- /// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: CouncilMembership Prime (r:1 w:0)
- /// Proof: CouncilMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
- /// Storage: Council Members (r:0 w:1)
- /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council Prime (r:0 w:1)
- /// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `CouncilMembership::Members` (r:1 w:1)
+ /// Proof: `CouncilMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
+ /// Storage: `Council::Proposals` (r:1 w:0)
+ /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `CouncilMembership::Prime` (r:1 w:0)
+ /// Proof: `CouncilMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
+ /// Storage: `Council::Members` (r:0 w:1)
+ /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Prime` (r:0 w:1)
+ /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `m` is `[2, 100]`.
fn remove_member(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `316 + m * (64 ±0)`
// Estimated: `4687 + m * (64 ±0)`
- // Minimum execution time: 29_620_000 picoseconds.
- Weight::from_parts(31_294_208, 0)
+ // Minimum execution time: 18_620_000 picoseconds.
+ Weight::from_parts(19_850_203, 0)
.saturating_add(Weight::from_parts(0, 4687))
- // Standard Error: 2_115
- .saturating_add(Weight::from_parts(33_519, 0).saturating_mul(m.into()))
+ // Standard Error: 1_595
+ .saturating_add(Weight::from_parts(18_982, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
- /// Storage: CouncilMembership Members (r:1 w:1)
- /// Proof: CouncilMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
- /// Storage: Council Proposals (r:1 w:0)
- /// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: CouncilMembership Prime (r:1 w:0)
- /// Proof: CouncilMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
- /// Storage: Council Members (r:0 w:1)
- /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council Prime (r:0 w:1)
- /// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `CouncilMembership::Members` (r:1 w:1)
+ /// Proof: `CouncilMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
+ /// Storage: `Council::Proposals` (r:1 w:0)
+ /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `CouncilMembership::Prime` (r:1 w:0)
+ /// Proof: `CouncilMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
+ /// Storage: `Council::Members` (r:0 w:1)
+ /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Prime` (r:0 w:1)
+ /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `m` is `[2, 100]`.
fn swap_member(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `316 + m * (64 ±0)`
// Estimated: `4687 + m * (64 ±0)`
- // Minimum execution time: 29_776_000 picoseconds.
- Weight::from_parts(31_103_492, 0)
+ // Minimum execution time: 18_621_000 picoseconds.
+ Weight::from_parts(19_255_942, 0)
.saturating_add(Weight::from_parts(0, 4687))
- // Standard Error: 1_567
- .saturating_add(Weight::from_parts(57_759, 0).saturating_mul(m.into()))
+ // Standard Error: 1_713
+ .saturating_add(Weight::from_parts(44_853, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
- /// Storage: CouncilMembership Members (r:1 w:1)
- /// Proof: CouncilMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
- /// Storage: Council Proposals (r:1 w:0)
- /// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: CouncilMembership Prime (r:1 w:0)
- /// Proof: CouncilMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
- /// Storage: Council Members (r:0 w:1)
- /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council Prime (r:0 w:1)
- /// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `CouncilMembership::Members` (r:1 w:1)
+ /// Proof: `CouncilMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
+ /// Storage: `Council::Proposals` (r:1 w:0)
+ /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `CouncilMembership::Prime` (r:1 w:0)
+ /// Proof: `CouncilMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
+ /// Storage: `Council::Members` (r:0 w:1)
+ /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Prime` (r:0 w:1)
+ /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `m` is `[1, 100]`.
fn reset_member(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `315 + m * (64 ±0)`
// Estimated: `4687 + m * (64 ±0)`
- // Minimum execution time: 29_042_000 picoseconds.
- Weight::from_parts(29_527_541, 0)
+ // Minimum execution time: 18_470_000 picoseconds.
+ Weight::from_parts(20_192_853, 0)
.saturating_add(Weight::from_parts(0, 4687))
- // Standard Error: 6_504
- .saturating_add(Weight::from_parts(281_979, 0).saturating_mul(m.into()))
+ // Standard Error: 2_674
+ .saturating_add(Weight::from_parts(120_116, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
- /// Storage: CouncilMembership Members (r:1 w:1)
- /// Proof: CouncilMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
- /// Storage: Council Proposals (r:1 w:0)
- /// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: CouncilMembership Prime (r:1 w:1)
- /// Proof: CouncilMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
- /// Storage: Council Members (r:0 w:1)
- /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Council Prime (r:0 w:1)
- /// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `CouncilMembership::Members` (r:1 w:1)
+ /// Proof: `CouncilMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
+ /// Storage: `Council::Proposals` (r:1 w:0)
+ /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `CouncilMembership::Prime` (r:1 w:1)
+ /// Proof: `CouncilMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
+ /// Storage: `Council::Members` (r:0 w:1)
+ /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Council::Prime` (r:0 w:1)
+ /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `m` is `[1, 100]`.
fn change_key(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `315 + m * (64 ±0)`
// Estimated: `4687 + m * (64 ±0)`
- // Minimum execution time: 30_561_000 picoseconds.
- Weight::from_parts(32_575_328, 0)
+ // Minimum execution time: 18_842_000 picoseconds.
+ Weight::from_parts(20_147_577, 0)
.saturating_add(Weight::from_parts(0, 4687))
- // Standard Error: 1_795
- .saturating_add(Weight::from_parts(30_291, 0).saturating_mul(m.into()))
+ // Standard Error: 606
+ .saturating_add(Weight::from_parts(34_288, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(4))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
- /// Storage: CouncilMembership Members (r:1 w:0)
- /// Proof: CouncilMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
- /// Storage: CouncilMembership Prime (r:0 w:1)
- /// Proof: CouncilMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
- /// Storage: Council Prime (r:0 w:1)
- /// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `CouncilMembership::Members` (r:1 w:0)
+ /// Proof: `CouncilMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
+ /// Storage: `CouncilMembership::Prime` (r:0 w:1)
+ /// Proof: `CouncilMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
+ /// Storage: `Council::Prime` (r:0 w:1)
+ /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `m` is `[1, 100]`.
fn set_prime(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `107 + m * (32 ±0)`
// Estimated: `4687 + m * (32 ±0)`
- // Minimum execution time: 12_934_000 picoseconds.
- Weight::from_parts(13_575_543, 0)
+ // Minimum execution time: 7_661_000 picoseconds.
+ Weight::from_parts(9_300_656, 0)
.saturating_add(Weight::from_parts(0, 4687))
- // Standard Error: 445
- .saturating_add(Weight::from_parts(14_310, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
}
- /// Storage: CouncilMembership Prime (r:0 w:1)
- /// Proof: CouncilMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
- /// Storage: Council Prime (r:0 w:1)
- /// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `CouncilMembership::Prime` (r:0 w:1)
+ /// Proof: `CouncilMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
+ /// Storage: `Council::Prime` (r:0 w:1)
+ /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `m` is `[1, 100]`.
- fn clear_prime(_m: u32, ) -> Weight {
+ fn clear_prime(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 5_110_000 picoseconds.
- Weight::from_parts(5_683_728, 0)
+ // Minimum execution time: 3_049_000 picoseconds.
+ Weight::from_parts(3_320_285, 0)
.saturating_add(Weight::from_parts(0, 0))
+ // Standard Error: 139
+ .saturating_add(Weight::from_parts(660, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().writes(2))
}
}
diff --git a/runtime/litentry/src/weights/pallet_multisig.rs b/runtime/litentry/src/weights/pallet_multisig.rs
index 7be7000ba0..3f9bff985d 100644
--- a/runtime/litentry/src/weights/pallet_multisig.rs
+++ b/runtime/litentry/src/weights/pallet_multisig.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_multisig`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -54,110 +54,110 @@ impl pallet_multisig::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 19_626_000 picoseconds.
- Weight::from_parts(22_476_324, 0)
+ // Minimum execution time: 13_036_000 picoseconds.
+ Weight::from_parts(16_240_429, 0)
.saturating_add(Weight::from_parts(0, 0))
- // Standard Error: 40
- .saturating_add(Weight::from_parts(1_107, 0).saturating_mul(z.into()))
+ // Standard Error: 23
+ .saturating_add(Weight::from_parts(527, 0).saturating_mul(z.into()))
}
- /// Storage: Multisig Multisigs (r:1 w:1)
- /// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
+ /// Storage: `Multisig::Multisigs` (r:1 w:1)
+ /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// The range of component `s` is `[2, 100]`.
/// The range of component `z` is `[0, 10000]`.
fn as_multi_create(s: u32, z: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `289 + s * (2 ±0)`
// Estimated: `6811`
- // Minimum execution time: 63_710_000 picoseconds.
- Weight::from_parts(49_696_155, 0)
+ // Minimum execution time: 44_095_000 picoseconds.
+ Weight::from_parts(30_048_884, 0)
.saturating_add(Weight::from_parts(0, 6811))
- // Standard Error: 7_442
- .saturating_add(Weight::from_parts(214_860, 0).saturating_mul(s.into()))
- // Standard Error: 73
- .saturating_add(Weight::from_parts(1_676, 0).saturating_mul(z.into()))
+ // Standard Error: 7_209
+ .saturating_add(Weight::from_parts(188_072, 0).saturating_mul(s.into()))
+ // Standard Error: 70
+ .saturating_add(Weight::from_parts(1_611, 0).saturating_mul(z.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Multisig Multisigs (r:1 w:1)
- /// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
+ /// Storage: `Multisig::Multisigs` (r:1 w:1)
+ /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// The range of component `s` is `[3, 100]`.
/// The range of component `z` is `[0, 10000]`.
fn as_multi_approve(s: u32, z: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `315`
// Estimated: `6811`
- // Minimum execution time: 43_728_000 picoseconds.
- Weight::from_parts(27_719_790, 0)
+ // Minimum execution time: 28_926_000 picoseconds.
+ Weight::from_parts(24_056_102, 0)
.saturating_add(Weight::from_parts(0, 6811))
- // Standard Error: 3_547
- .saturating_add(Weight::from_parts(208_026, 0).saturating_mul(s.into()))
- // Standard Error: 34
- .saturating_add(Weight::from_parts(1_977, 0).saturating_mul(z.into()))
+ // Standard Error: 6_197
+ .saturating_add(Weight::from_parts(94_169, 0).saturating_mul(s.into()))
+ // Standard Error: 60
+ .saturating_add(Weight::from_parts(1_245, 0).saturating_mul(z.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Multisig Multisigs (r:1 w:1)
- /// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `Multisig::Multisigs` (r:1 w:1)
+ /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// The range of component `s` is `[2, 100]`.
/// The range of component `z` is `[0, 10000]`.
fn as_multi_complete(s: u32, z: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `421 + s * (33 ±0)`
// Estimated: `6811`
- // Minimum execution time: 69_240_000 picoseconds.
- Weight::from_parts(52_427_921, 0)
+ // Minimum execution time: 48_829_000 picoseconds.
+ Weight::from_parts(36_009_730, 0)
.saturating_add(Weight::from_parts(0, 6811))
- // Standard Error: 7_174
- .saturating_add(Weight::from_parts(332_766, 0).saturating_mul(s.into()))
- // Standard Error: 70
- .saturating_add(Weight::from_parts(1_986, 0).saturating_mul(z.into()))
+ // Standard Error: 4_127
+ .saturating_add(Weight::from_parts(204_788, 0).saturating_mul(s.into()))
+ // Standard Error: 40
+ .saturating_add(Weight::from_parts(1_641, 0).saturating_mul(z.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Multisig Multisigs (r:1 w:1)
- /// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
+ /// Storage: `Multisig::Multisigs` (r:1 w:1)
+ /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// The range of component `s` is `[2, 100]`.
fn approve_as_multi_create(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `292 + s * (2 ±0)`
// Estimated: `6811`
- // Minimum execution time: 42_853_000 picoseconds.
- Weight::from_parts(43_030_216, 0)
+ // Minimum execution time: 29_581_000 picoseconds.
+ Weight::from_parts(32_302_853, 0)
.saturating_add(Weight::from_parts(0, 6811))
- // Standard Error: 3_311
- .saturating_add(Weight::from_parts(232_294, 0).saturating_mul(s.into()))
+ // Standard Error: 5_285
+ .saturating_add(Weight::from_parts(154_592, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Multisig Multisigs (r:1 w:1)
- /// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
+ /// Storage: `Multisig::Multisigs` (r:1 w:1)
+ /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// The range of component `s` is `[2, 100]`.
fn approve_as_multi_approve(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `315`
// Estimated: `6811`
- // Minimum execution time: 25_439_000 picoseconds.
- Weight::from_parts(25_991_227, 0)
+ // Minimum execution time: 16_416_000 picoseconds.
+ Weight::from_parts(17_156_253, 0)
.saturating_add(Weight::from_parts(0, 6811))
- // Standard Error: 3_557
- .saturating_add(Weight::from_parts(185_468, 0).saturating_mul(s.into()))
+ // Standard Error: 1_876
+ .saturating_add(Weight::from_parts(134_934, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Multisig Multisigs (r:1 w:1)
- /// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
+ /// Storage: `Multisig::Multisigs` (r:1 w:1)
+ /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// The range of component `s` is `[2, 100]`.
fn cancel_as_multi(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `486 + s * (1 ±0)`
// Estimated: `6811`
- // Minimum execution time: 44_724_000 picoseconds.
- Weight::from_parts(45_462_776, 0)
+ // Minimum execution time: 31_493_000 picoseconds.
+ Weight::from_parts(32_727_772, 0)
.saturating_add(Weight::from_parts(0, 6811))
- // Standard Error: 4_503
- .saturating_add(Weight::from_parts(201_869, 0).saturating_mul(s.into()))
+ // Standard Error: 3_167
+ .saturating_add(Weight::from_parts(148_552, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
diff --git a/runtime/litentry/src/weights/pallet_parachain_staking.rs b/runtime/litentry/src/weights/pallet_parachain_staking.rs
index 5e98c5f611..cb9fcce39a 100644
--- a/runtime/litentry/src/weights/pallet_parachain_staking.rs
+++ b/runtime/litentry/src/weights/pallet_parachain_staking.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_parachain_staking`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `25`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `25`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,572 +49,576 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_parachain_staking`.
pub struct WeightInfo(PhantomData);
impl pallet_parachain_staking::WeightInfo for WeightInfo {
- /// Storage: ParachainStaking Candidates (r:1 w:1)
- /// Proof Skipped: ParachainStaking Candidates (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::Candidates` (r:1 w:1)
+ /// Proof: `ParachainStaking::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `x` is `[1, 100]`.
fn add_candidates_whitelist(x: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `337 + x * (32 ±0)`
// Estimated: `1826 + x * (32 ±0)`
- // Minimum execution time: 19_662_000 picoseconds.
- Weight::from_parts(21_590_692, 0)
+ // Minimum execution time: 11_811_000 picoseconds.
+ Weight::from_parts(13_741_758, 0)
.saturating_add(Weight::from_parts(0, 1826))
- // Standard Error: 5_733
- .saturating_add(Weight::from_parts(301_916, 0).saturating_mul(x.into()))
+ // Standard Error: 3_183
+ .saturating_add(Weight::from_parts(160_091, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(x.into()))
}
- /// Storage: ParachainStaking Candidates (r:1 w:1)
- /// Proof Skipped: ParachainStaking Candidates (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::Candidates` (r:1 w:1)
+ /// Proof: `ParachainStaking::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `x` is `[1, 100]`.
fn remove_candidates_whitelist(x: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `369 + x * (32 ±0)`
// Estimated: `1859 + x * (32 ±0)`
- // Minimum execution time: 18_958_000 picoseconds.
- Weight::from_parts(24_564_977, 0)
+ // Minimum execution time: 11_637_000 picoseconds.
+ Weight::from_parts(15_327_496, 0)
.saturating_add(Weight::from_parts(0, 1859))
- // Standard Error: 5_992
- .saturating_add(Weight::from_parts(258_850, 0).saturating_mul(x.into()))
+ // Standard Error: 4_386
+ .saturating_add(Weight::from_parts(127_134, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(x.into()))
}
- /// Storage: ParachainStaking InflationConfig (r:1 w:1)
- /// Proof Skipped: ParachainStaking InflationConfig (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
+ /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_staking_expectations() -> Weight {
// Proof Size summary in bytes:
// Measured: `466`
// Estimated: `1951`
- // Minimum execution time: 19_899_000 picoseconds.
- Weight::from_parts(20_393_000, 0)
+ // Minimum execution time: 12_310_000 picoseconds.
+ Weight::from_parts(12_744_000, 0)
.saturating_add(Weight::from_parts(0, 1951))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: ParachainStaking InflationConfig (r:1 w:1)
- /// Proof Skipped: ParachainStaking InflationConfig (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking Round (r:1 w:0)
- /// Proof Skipped: ParachainStaking Round (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
+ /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Round` (r:1 w:0)
+ /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_inflation() -> Weight {
// Proof Size summary in bytes:
// Measured: `502`
// Estimated: `1987`
- // Minimum execution time: 74_190_000 picoseconds.
- Weight::from_parts(74_735_000, 0)
+ // Minimum execution time: 42_386_000 picoseconds.
+ Weight::from_parts(43_165_000, 0)
.saturating_add(Weight::from_parts(0, 1987))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: ParachainStaking ParachainBondInfo (r:1 w:1)
- /// Proof Skipped: ParachainStaking ParachainBondInfo (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::ParachainBondInfo` (r:1 w:1)
+ /// Proof: `ParachainStaking::ParachainBondInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_parachain_bond_account() -> Weight {
// Proof Size summary in bytes:
// Measured: `434`
// Estimated: `1919`
- // Minimum execution time: 19_570_000 picoseconds.
- Weight::from_parts(20_252_000, 0)
+ // Minimum execution time: 12_324_000 picoseconds.
+ Weight::from_parts(12_777_000, 0)
.saturating_add(Weight::from_parts(0, 1919))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: ParachainStaking ParachainBondInfo (r:1 w:1)
- /// Proof Skipped: ParachainStaking ParachainBondInfo (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::ParachainBondInfo` (r:1 w:1)
+ /// Proof: `ParachainStaking::ParachainBondInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_parachain_bond_reserve_percent() -> Weight {
// Proof Size summary in bytes:
// Measured: `434`
// Estimated: `1919`
- // Minimum execution time: 19_301_000 picoseconds.
- Weight::from_parts(19_750_000, 0)
+ // Minimum execution time: 11_883_000 picoseconds.
+ Weight::from_parts(12_691_000, 0)
.saturating_add(Weight::from_parts(0, 1919))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: ParachainStaking TotalSelected (r:1 w:1)
- /// Proof Skipped: ParachainStaking TotalSelected (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking Round (r:1 w:0)
- /// Proof Skipped: ParachainStaking Round (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::TotalSelected` (r:1 w:1)
+ /// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Round` (r:1 w:0)
+ /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_total_selected() -> Weight {
// Proof Size summary in bytes:
// Measured: `442`
// Estimated: `1927`
- // Minimum execution time: 20_424_000 picoseconds.
- Weight::from_parts(20_823_000, 0)
+ // Minimum execution time: 13_387_000 picoseconds.
+ Weight::from_parts(14_016_000, 0)
.saturating_add(Weight::from_parts(0, 1927))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: ParachainStaking CollatorCommission (r:1 w:1)
- /// Proof Skipped: ParachainStaking CollatorCommission (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::CollatorCommission` (r:1 w:1)
+ /// Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_collator_commission() -> Weight {
// Proof Size summary in bytes:
// Measured: `405`
// Estimated: `1890`
- // Minimum execution time: 18_072_000 picoseconds.
- Weight::from_parts(19_178_000, 0)
+ // Minimum execution time: 10_645_000 picoseconds.
+ Weight::from_parts(11_363_000, 0)
.saturating_add(Weight::from_parts(0, 1890))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: ParachainStaking Round (r:1 w:1)
- /// Proof Skipped: ParachainStaking Round (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking TotalSelected (r:1 w:0)
- /// Proof Skipped: ParachainStaking TotalSelected (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking InflationConfig (r:1 w:1)
- /// Proof Skipped: ParachainStaking InflationConfig (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::Round` (r:1 w:1)
+ /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
+ /// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
+ /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_blocks_per_round() -> Weight {
// Proof Size summary in bytes:
// Measured: `530`
// Estimated: `2015`
- // Minimum execution time: 28_655_000 picoseconds.
- Weight::from_parts(29_312_000, 0)
+ // Minimum execution time: 18_882_000 picoseconds.
+ Weight::from_parts(19_306_000, 0)
.saturating_add(Weight::from_parts(0, 2015))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: ParachainStaking Candidates (r:1 w:0)
- /// Proof Skipped: ParachainStaking Candidates (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidateInfo (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking DelegatorState (r:1 w:0)
- /// Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidatePool (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- /// Storage: ParachainStaking Total (r:1 w:1)
- /// Proof Skipped: ParachainStaking Total (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking TopDelegations (r:0 w:1)
- /// Proof Skipped: ParachainStaking TopDelegations (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking BottomDelegations (r:0 w:1)
- /// Proof Skipped: ParachainStaking BottomDelegations (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::Candidates` (r:1 w:0)
+ /// Proof: `ParachainStaking::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
+ /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `ParachainStaking::Total` (r:1 w:1)
+ /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::TopDelegations` (r:0 w:1)
+ /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::BottomDelegations` (r:0 w:1)
+ /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `x` is `[3, 1000]`.
fn join_candidates(x: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1512 + x * (80 ±0)`
// Estimated: `4815 + x * (81 ±0)`
- // Minimum execution time: 66_346_000 picoseconds.
- Weight::from_parts(82_856_340, 0)
+ // Minimum execution time: 47_961_000 picoseconds.
+ Weight::from_parts(47_529_513, 0)
.saturating_add(Weight::from_parts(0, 4815))
- // Standard Error: 3_071
- .saturating_add(Weight::from_parts(248_819, 0).saturating_mul(x.into()))
+ // Standard Error: 3_197
+ .saturating_add(Weight::from_parts(177_996, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(6))
.saturating_add(Weight::from_parts(0, 81).saturating_mul(x.into()))
}
- /// Storage: ParachainStaking CandidateInfo (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking Round (r:1 w:0)
- /// Proof Skipped: ParachainStaking Round (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidatePool (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Round` (r:1 w:0)
+ /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `x` is `[3, 1000]`.
fn schedule_leave_candidates(x: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1327 + x * (48 ±0)`
// Estimated: `4691 + x * (49 ±0)`
- // Minimum execution time: 33_712_000 picoseconds.
- Weight::from_parts(41_428_631, 0)
+ // Minimum execution time: 22_542_000 picoseconds.
+ Weight::from_parts(24_109_295, 0)
.saturating_add(Weight::from_parts(0, 4691))
- // Standard Error: 2_591
- .saturating_add(Weight::from_parts(170_813, 0).saturating_mul(x.into()))
+ // Standard Error: 2_097
+ .saturating_add(Weight::from_parts(120_102, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(Weight::from_parts(0, 49).saturating_mul(x.into()))
}
- /// Storage: ParachainStaking CandidateInfo (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking Round (r:1 w:0)
- /// Proof Skipped: ParachainStaking Round (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking TopDelegations (r:1 w:1)
- /// Proof Skipped: ParachainStaking TopDelegations (max_values: None, max_size: None, mode: Measured)
- /// Storage: System Account (r:1200 w:1200)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- /// Storage: ParachainStaking DelegatorState (r:1199 w:1199)
- /// Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking DelegationScheduledRequests (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegationScheduledRequests (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking AutoCompoundingDelegations (r:1 w:1)
- /// Proof Skipped: ParachainStaking AutoCompoundingDelegations (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking BottomDelegations (r:1 w:1)
- /// Proof Skipped: ParachainStaking BottomDelegations (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking Total (r:1 w:1)
- /// Proof Skipped: ParachainStaking Total (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Round` (r:1 w:0)
+ /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
+ /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:1200 w:1200)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `ParachainStaking::DelegatorState` (r:1199 w:1199)
+ /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
+ /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
+ /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Total` (r:1 w:1)
+ /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `x` is `[2, 1200]`.
fn execute_leave_candidates(x: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `469 + x * (447 ±0)`
// Estimated: `5094 + x * (2915 ±0)`
- // Minimum execution time: 142_249_000 picoseconds.
- Weight::from_parts(147_407_000, 0)
+ // Minimum execution time: 108_720_000 picoseconds.
+ Weight::from_parts(117_004_000, 0)
.saturating_add(Weight::from_parts(0, 5094))
- // Standard Error: 929_247
- .saturating_add(Weight::from_parts(78_068_845, 0).saturating_mul(x.into()))
+ // Standard Error: 765_495
+ .saturating_add(Weight::from_parts(65_933_118, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
.saturating_add(T::DbWeight::get().writes(5))
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(x.into())))
.saturating_add(Weight::from_parts(0, 2915).saturating_mul(x.into()))
}
- /// Storage: ParachainStaking CandidateInfo (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidatePool (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `x` is `[3, 1000]`.
fn cancel_leave_candidates(x: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1247 + x * (48 ±0)`
// Estimated: `4611 + x * (49 ±0)`
- // Minimum execution time: 30_991_000 picoseconds.
- Weight::from_parts(39_134_915, 0)
+ // Minimum execution time: 19_955_000 picoseconds.
+ Weight::from_parts(18_765_298, 0)
.saturating_add(Weight::from_parts(0, 4611))
- // Standard Error: 2_628
- .saturating_add(Weight::from_parts(183_889, 0).saturating_mul(x.into()))
+ // Standard Error: 2_060
+ .saturating_add(Weight::from_parts(128_934, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(Weight::from_parts(0, 49).saturating_mul(x.into()))
}
- /// Storage: ParachainStaking CandidateInfo (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidatePool (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn go_offline() -> Weight {
// Proof Size summary in bytes:
// Measured: `686`
// Estimated: `4151`
- // Minimum execution time: 29_738_000 picoseconds.
- Weight::from_parts(30_631_000, 0)
+ // Minimum execution time: 19_637_000 picoseconds.
+ Weight::from_parts(20_988_000, 0)
.saturating_add(Weight::from_parts(0, 4151))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: ParachainStaking CandidateInfo (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidatePool (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn go_online() -> Weight {
// Proof Size summary in bytes:
// Measured: `637`
// Estimated: `4102`
- // Minimum execution time: 29_670_000 picoseconds.
- Weight::from_parts(30_188_000, 0)
+ // Minimum execution time: 19_280_000 picoseconds.
+ Weight::from_parts(20_712_000, 0)
.saturating_add(Weight::from_parts(0, 4102))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: ParachainStaking CandidateInfo (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured)
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- /// Storage: ParachainStaking Total (r:1 w:1)
- /// Proof Skipped: ParachainStaking Total (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidatePool (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `ParachainStaking::Total` (r:1 w:1)
+ /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn candidate_bond_more() -> Weight {
// Proof Size summary in bytes:
// Measured: `829`
// Estimated: `4294`
- // Minimum execution time: 54_392_000 picoseconds.
- Weight::from_parts(55_430_000, 0)
+ // Minimum execution time: 36_772_000 picoseconds.
+ Weight::from_parts(38_539_000, 0)
.saturating_add(Weight::from_parts(0, 4294))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(4))
}
- /// Storage: ParachainStaking CandidateInfo (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking Round (r:1 w:0)
- /// Proof Skipped: ParachainStaking Round (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Round` (r:1 w:0)
+ /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn schedule_candidate_bond_less() -> Weight {
// Proof Size summary in bytes:
// Measured: `598`
// Estimated: `4063`
- // Minimum execution time: 27_852_000 picoseconds.
- Weight::from_parts(28_232_000, 0)
+ // Minimum execution time: 18_215_000 picoseconds.
+ Weight::from_parts(19_334_000, 0)
.saturating_add(Weight::from_parts(0, 4063))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: ParachainStaking CandidateInfo (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking Round (r:1 w:0)
- /// Proof Skipped: ParachainStaking Round (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- /// Storage: ParachainStaking Total (r:1 w:1)
- /// Proof Skipped: ParachainStaking Total (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidatePool (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Round` (r:1 w:0)
+ /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `ParachainStaking::Total` (r:1 w:1)
+ /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn execute_candidate_bond_less() -> Weight {
// Proof Size summary in bytes:
// Measured: `918`
// Estimated: `4383`
- // Minimum execution time: 81_826_000 picoseconds.
- Weight::from_parts(89_457_000, 0)
+ // Minimum execution time: 62_332_000 picoseconds.
+ Weight::from_parts(71_092_000, 0)
.saturating_add(Weight::from_parts(0, 4383))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(4))
}
- /// Storage: ParachainStaking CandidateInfo (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn cancel_candidate_bond_less() -> Weight {
// Proof Size summary in bytes:
// Measured: `582`
// Estimated: `4047`
- // Minimum execution time: 23_054_000 picoseconds.
- Weight::from_parts(23_544_000, 0)
+ // Minimum execution time: 15_060_000 picoseconds.
+ Weight::from_parts(16_242_000, 0)
.saturating_add(Weight::from_parts(0, 4047))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: ParachainStaking DelegatorState (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking Round (r:1 w:0)
- /// Proof Skipped: ParachainStaking Round (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking DelegationScheduledRequests (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegationScheduledRequests (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Round` (r:1 w:0)
+ /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn schedule_leave_delegators() -> Weight {
// Proof Size summary in bytes:
// Measured: `595`
// Estimated: `4060`
- // Minimum execution time: 32_771_000 picoseconds.
- Weight::from_parts(33_580_000, 0)
+ // Minimum execution time: 21_205_000 picoseconds.
+ Weight::from_parts(22_334_000, 0)
.saturating_add(Weight::from_parts(0, 4060))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: ParachainStaking DelegatorState (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking Round (r:1 w:0)
- /// Proof Skipped: ParachainStaking Round (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking DelegationScheduledRequests (r:99 w:99)
- /// Proof Skipped: ParachainStaking DelegationScheduledRequests (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidateInfo (r:99 w:99)
- /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking TopDelegations (r:99 w:99)
- /// Proof Skipped: ParachainStaking TopDelegations (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidatePool (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- /// Storage: ParachainStaking Total (r:1 w:1)
- /// Proof Skipped: ParachainStaking Total (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking AutoCompoundingDelegations (r:99 w:0)
- /// Proof Skipped: ParachainStaking AutoCompoundingDelegations (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Round` (r:1 w:0)
+ /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:99 w:99)
+ /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidateInfo` (r:99 w:99)
+ /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::TopDelegations` (r:99 w:99)
+ /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `ParachainStaking::Total` (r:1 w:1)
+ /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:99 w:0)
+ /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ScoreStaking::Scores` (r:1 w:0)
+ /// Proof: `ScoreStaking::Scores` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `x` is `[2, 100]`.
fn execute_leave_delegators(x: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `842 + x * (458 ±0)`
- // Estimated: `4895 + x * (2852 ±3)`
- // Minimum execution time: 125_938_000 picoseconds.
- Weight::from_parts(129_319_000, 0)
- .saturating_add(Weight::from_parts(0, 4895))
- // Standard Error: 192_183
- .saturating_add(Weight::from_parts(46_962_439, 0).saturating_mul(x.into()))
- .saturating_add(T::DbWeight::get().reads(1))
+ // Measured: `1008 + x * (458 ±0)`
+ // Estimated: `5061 + x * (2852 ±3)`
+ // Minimum execution time: 100_642_000 picoseconds.
+ Weight::from_parts(110_250_000, 0)
+ .saturating_add(Weight::from_parts(0, 5061))
+ // Standard Error: 362_818
+ .saturating_add(Weight::from_parts(43_515_638, 0).saturating_mul(x.into()))
+ .saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
.saturating_add(Weight::from_parts(0, 2852).saturating_mul(x.into()))
}
- /// Storage: ParachainStaking DelegatorState (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking DelegationScheduledRequests (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegationScheduledRequests (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn cancel_leave_delegators() -> Weight {
// Proof Size summary in bytes:
// Measured: `720`
// Estimated: `4185`
- // Minimum execution time: 35_114_000 picoseconds.
- Weight::from_parts(36_995_000, 0)
+ // Minimum execution time: 23_274_000 picoseconds.
+ Weight::from_parts(24_750_000, 0)
.saturating_add(Weight::from_parts(0, 4185))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: ParachainStaking DelegatorState (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking DelegationScheduledRequests (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegationScheduledRequests (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking Round (r:1 w:0)
- /// Proof Skipped: ParachainStaking Round (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Round` (r:1 w:0)
+ /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn schedule_revoke_delegation() -> Weight {
// Proof Size summary in bytes:
// Measured: `595`
// Estimated: `4060`
- // Minimum execution time: 32_748_000 picoseconds.
- Weight::from_parts(33_507_000, 0)
+ // Minimum execution time: 21_622_000 picoseconds.
+ Weight::from_parts(30_151_000, 0)
.saturating_add(Weight::from_parts(0, 4060))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: ParachainStaking DelegationScheduledRequests (r:1 w:0)
- /// Proof Skipped: ParachainStaking DelegationScheduledRequests (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking DelegatorState (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidateInfo (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured)
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- /// Storage: ParachainStaking TopDelegations (r:1 w:1)
- /// Proof Skipped: ParachainStaking TopDelegations (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidatePool (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking Total (r:1 w:1)
- /// Proof Skipped: ParachainStaking Total (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
+ /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
+ /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Total` (r:1 w:1)
+ /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn delegator_bond_more() -> Weight {
// Proof Size summary in bytes:
// Measured: `1217`
// Estimated: `4682`
- // Minimum execution time: 79_741_000 picoseconds.
- Weight::from_parts(81_396_000, 0)
+ // Minimum execution time: 55_029_000 picoseconds.
+ Weight::from_parts(56_470_000, 0)
.saturating_add(Weight::from_parts(0, 4682))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(6))
}
- /// Storage: ParachainStaking DelegatorState (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking DelegationScheduledRequests (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegationScheduledRequests (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking Round (r:1 w:0)
- /// Proof Skipped: ParachainStaking Round (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Round` (r:1 w:0)
+ /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn schedule_delegator_bond_less() -> Weight {
// Proof Size summary in bytes:
// Measured: `595`
// Estimated: `4060`
- // Minimum execution time: 33_215_000 picoseconds.
- Weight::from_parts(33_893_000, 0)
+ // Minimum execution time: 21_237_000 picoseconds.
+ Weight::from_parts(22_855_000, 0)
.saturating_add(Weight::from_parts(0, 4060))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: ParachainStaking DelegatorState (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking DelegationScheduledRequests (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegationScheduledRequests (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking Round (r:1 w:0)
- /// Proof Skipped: ParachainStaking Round (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking AutoCompoundingDelegations (r:1 w:0)
- /// Proof Skipped: ParachainStaking AutoCompoundingDelegations (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidateInfo (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking TopDelegations (r:1 w:1)
- /// Proof Skipped: ParachainStaking TopDelegations (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidatePool (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- /// Storage: ParachainStaking Total (r:1 w:1)
- /// Proof Skipped: ParachainStaking Total (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Round` (r:1 w:0)
+ /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:0)
+ /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
+ /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `ParachainStaking::Total` (r:1 w:1)
+ /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ScoreStaking::Scores` (r:1 w:0)
+ /// Proof: `ScoreStaking::Scores` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn execute_revoke_delegation() -> Weight {
// Proof Size summary in bytes:
- // Measured: `1430`
- // Estimated: `4895`
- // Minimum execution time: 128_056_000 picoseconds.
- Weight::from_parts(143_972_000, 0)
- .saturating_add(Weight::from_parts(0, 4895))
- .saturating_add(T::DbWeight::get().reads(9))
+ // Measured: `1596`
+ // Estimated: `5061`
+ // Minimum execution time: 102_040_000 picoseconds.
+ Weight::from_parts(112_648_000, 0)
+ .saturating_add(Weight::from_parts(0, 5061))
+ .saturating_add(T::DbWeight::get().reads(10))
.saturating_add(T::DbWeight::get().writes(7))
}
- /// Storage: ParachainStaking DelegatorState (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking DelegationScheduledRequests (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegationScheduledRequests (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking Round (r:1 w:0)
- /// Proof Skipped: ParachainStaking Round (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidateInfo (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured)
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- /// Storage: ParachainStaking TopDelegations (r:1 w:1)
- /// Proof Skipped: ParachainStaking TopDelegations (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidatePool (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking Total (r:1 w:1)
- /// Proof Skipped: ParachainStaking Total (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Round` (r:1 w:0)
+ /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
+ /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Total` (r:1 w:1)
+ /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn execute_delegator_bond_less() -> Weight {
// Proof Size summary in bytes:
// Measured: `1375`
// Estimated: `4840`
- // Minimum execution time: 112_798_000 picoseconds.
- Weight::from_parts(122_764_000, 0)
+ // Minimum execution time: 84_994_000 picoseconds.
+ Weight::from_parts(91_958_000, 0)
.saturating_add(Weight::from_parts(0, 4840))
.saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().writes(7))
}
- /// Storage: ParachainStaking DelegatorState (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking DelegationScheduledRequests (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegationScheduledRequests (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn cancel_revoke_delegation() -> Weight {
// Proof Size summary in bytes:
// Measured: `720`
// Estimated: `4185`
- // Minimum execution time: 33_909_000 picoseconds.
- Weight::from_parts(40_840_000, 0)
+ // Minimum execution time: 21_240_000 picoseconds.
+ Weight::from_parts(21_922_000, 0)
.saturating_add(Weight::from_parts(0, 4185))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: ParachainStaking DelegatorState (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking DelegationScheduledRequests (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegationScheduledRequests (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn cancel_delegator_bond_less() -> Weight {
// Proof Size summary in bytes:
// Measured: `753`
// Estimated: `4218`
- // Minimum execution time: 49_137_000 picoseconds.
- Weight::from_parts(51_899_000, 0)
+ // Minimum execution time: 41_272_000 picoseconds.
+ Weight::from_parts(44_089_000, 0)
.saturating_add(Weight::from_parts(0, 4218))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: ParachainStaking Round (r:1 w:1)
- /// Proof Skipped: ParachainStaking Round (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking Points (r:1 w:0)
- /// Proof Skipped: ParachainStaking Points (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking Staked (r:1 w:2)
- /// Proof Skipped: ParachainStaking Staked (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking InflationConfig (r:1 w:0)
- /// Proof Skipped: ParachainStaking InflationConfig (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: BridgeTransfer ExternalBalances (r:1 w:0)
- /// Proof Skipped: BridgeTransfer ExternalBalances (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking ParachainBondInfo (r:1 w:0)
- /// Proof Skipped: ParachainStaking ParachainBondInfo (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking CollatorCommission (r:1 w:0)
- /// Proof Skipped: ParachainStaking CollatorCommission (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidatePool (r:1 w:0)
- /// Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking TotalSelected (r:1 w:0)
- /// Proof Skipped: ParachainStaking TotalSelected (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidateInfo (r:99 w:0)
- /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking DelegationScheduledRequests (r:99 w:0)
- /// Proof Skipped: ParachainStaking DelegationScheduledRequests (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking TopDelegations (r:99 w:0)
- /// Proof Skipped: ParachainStaking TopDelegations (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking AutoCompoundingDelegations (r:99 w:0)
- /// Proof Skipped: ParachainStaking AutoCompoundingDelegations (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking Total (r:1 w:0)
- /// Proof Skipped: ParachainStaking Total (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking AwardedPts (r:2 w:1)
- /// Proof Skipped: ParachainStaking AwardedPts (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking AtStake (r:1 w:100)
- /// Proof Skipped: ParachainStaking AtStake (max_values: None, max_size: None, mode: Measured)
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- /// Storage: ParachainStaking SelectedCandidates (r:0 w:1)
- /// Proof Skipped: ParachainStaking SelectedCandidates (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking DelayedPayouts (r:0 w:1)
- /// Proof Skipped: ParachainStaking DelayedPayouts (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::Round` (r:1 w:1)
+ /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Points` (r:1 w:0)
+ /// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Staked` (r:1 w:2)
+ /// Proof: `ParachainStaking::Staked` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::InflationConfig` (r:1 w:0)
+ /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetsHandler::ExternalBalances` (r:1 w:0)
+ /// Proof: `AssetsHandler::ExternalBalances` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::ParachainBondInfo` (r:1 w:0)
+ /// Proof: `ParachainStaking::ParachainBondInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CollatorCommission` (r:1 w:0)
+ /// Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
+ /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
+ /// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidateInfo` (r:99 w:0)
+ /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:99 w:0)
+ /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::TopDelegations` (r:99 w:0)
+ /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:99 w:0)
+ /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Total` (r:1 w:0)
+ /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::AwardedPts` (r:2 w:1)
+ /// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::AtStake` (r:1 w:100)
+ /// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
+ /// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::DelayedPayouts` (r:0 w:1)
+ /// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `x` is `[8, 100]`.
/// The range of component `y` is `[0, 5000]`.
fn round_transition_on_initialize(x: u32, y: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `4314 + x * (297 ±0) + y * (47 ±0)`
+ // Measured: `4347 + x * (297 ±0) + y * (47 ±0)`
// Estimated: `519520 + x * (2390 ±43) + y * (46 ±0)`
- // Minimum execution time: 1_134_356_000 picoseconds.
- Weight::from_parts(5_265_343_126, 0)
+ // Minimum execution time: 840_211_000 picoseconds.
+ Weight::from_parts(4_369_602_911, 0)
.saturating_add(Weight::from_parts(0, 519520))
.saturating_add(T::DbWeight::get().reads(214))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
@@ -622,93 +626,93 @@ impl pallet_parachain_staking::WeightInfo for WeightInf
.saturating_add(Weight::from_parts(0, 2390).saturating_mul(x.into()))
.saturating_add(Weight::from_parts(0, 46).saturating_mul(y.into()))
}
- /// Storage: ParachainStaking DelayedPayouts (r:1 w:0)
- /// Proof Skipped: ParachainStaking DelayedPayouts (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking Points (r:1 w:0)
- /// Proof Skipped: ParachainStaking Points (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking AwardedPts (r:2 w:1)
- /// Proof Skipped: ParachainStaking AwardedPts (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking AtStake (r:1 w:1)
- /// Proof Skipped: ParachainStaking AtStake (max_values: None, max_size: None, mode: Measured)
- /// Storage: System Account (r:1001 w:1001)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
+ /// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Points` (r:1 w:0)
+ /// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::AwardedPts` (r:2 w:1)
+ /// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::AtStake` (r:1 w:1)
+ /// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:1001 w:1001)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// The range of component `y` is `[0, 1000]`.
fn pay_one_collator_reward(y: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `399 + y * (185 ±0)`
// Estimated: `6424 + y * (2603 ±0)`
- // Minimum execution time: 56_282_000 picoseconds.
- Weight::from_parts(56_647_000, 0)
+ // Minimum execution time: 41_416_000 picoseconds.
+ Weight::from_parts(42_703_000, 0)
.saturating_add(Weight::from_parts(0, 6424))
- // Standard Error: 100_400
- .saturating_add(Weight::from_parts(24_980_957, 0).saturating_mul(y.into()))
+ // Standard Error: 41_570
+ .saturating_add(Weight::from_parts(22_173_464, 0).saturating_mul(y.into()))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(y.into()))
}
- /// Storage: ParachainStaking Round (r:1 w:0)
- /// Proof Skipped: ParachainStaking Round (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::Round` (r:1 w:0)
+ /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn base_on_initialize() -> Weight {
// Proof Size summary in bytes:
// Measured: `447`
// Estimated: `1932`
- // Minimum execution time: 7_130_000 picoseconds.
- Weight::from_parts(7_399_000, 0)
+ // Minimum execution time: 4_617_000 picoseconds.
+ Weight::from_parts(4_839_000, 0)
.saturating_add(Weight::from_parts(0, 1932))
.saturating_add(T::DbWeight::get().reads(1))
}
- /// Storage: ParachainStaking DelegatorState (r:1 w:0)
- /// Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking AutoCompoundingDelegations (r:1 w:1)
- /// Proof Skipped: ParachainStaking AutoCompoundingDelegations (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
+ /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
+ /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `x` is `[0, 1000]`.
/// The range of component `y` is `[0, 100]`.
fn set_auto_compound(x: u32, y: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1273 + x * (33 ±0) + y * (48 ±0)`
// Estimated: `4574 + x * (34 ±0) + y * (49 ±0)`
- // Minimum execution time: 55_689_000 picoseconds.
- Weight::from_parts(78_733_409, 0)
+ // Minimum execution time: 32_532_000 picoseconds.
+ Weight::from_parts(39_460_890, 0)
.saturating_add(Weight::from_parts(0, 4574))
- // Standard Error: 2_322
- .saturating_add(Weight::from_parts(127_458, 0).saturating_mul(x.into()))
+ // Standard Error: 2_143
+ .saturating_add(Weight::from_parts(92_090, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(Weight::from_parts(0, 34).saturating_mul(x.into()))
.saturating_add(Weight::from_parts(0, 49).saturating_mul(y.into()))
}
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- /// Storage: ParachainStaking DelegatorState (r:1 w:1)
- /// Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidateInfo (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking AutoCompoundingDelegations (r:1 w:1)
- /// Proof Skipped: ParachainStaking AutoCompoundingDelegations (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking BottomDelegations (r:1 w:1)
- /// Proof Skipped: ParachainStaking BottomDelegations (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking Total (r:1 w:1)
- /// Proof Skipped: ParachainStaking Total (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ParachainStaking TopDelegations (r:1 w:1)
- /// Proof Skipped: ParachainStaking TopDelegations (max_values: None, max_size: None, mode: Measured)
- /// Storage: ParachainStaking CandidatePool (r:1 w:1)
- /// Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
+ /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
+ /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
+ /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::Total` (r:1 w:1)
+ /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
+ /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
+ /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `x` is `[0, 1200]`.
/// The range of component `y` is `[0, 1200]`.
/// The range of component `z` is `[0, 100]`.
fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + x * (81 ±0) + y * (33 ±0) + z * (55 ±0)`
- // Estimated: `21773 + x * (82 ±0) + y * (31 ±0) + z * (29 ±0)`
- // Minimum execution time: 133_163_000 picoseconds.
- Weight::from_parts(140_884_000, 0)
+ // Estimated: `21773 + x * (82 ±0) + y * (31 ±0) + z * (29 ±2)`
+ // Minimum execution time: 91_154_000 picoseconds.
+ Weight::from_parts(93_193_000, 0)
.saturating_add(Weight::from_parts(0, 21773))
- // Standard Error: 2_670
- .saturating_add(Weight::from_parts(67_349, 0).saturating_mul(x.into()))
- // Standard Error: 2_670
- .saturating_add(Weight::from_parts(93_401, 0).saturating_mul(y.into()))
+ // Standard Error: 1_898
+ .saturating_add(Weight::from_parts(49_995, 0).saturating_mul(x.into()))
+ // Standard Error: 1_898
+ .saturating_add(Weight::from_parts(55_540, 0).saturating_mul(y.into()))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(7))
.saturating_add(Weight::from_parts(0, 82).saturating_mul(x.into()))
diff --git a/runtime/litentry/src/weights/pallet_preimage.rs b/runtime/litentry/src/weights/pallet_preimage.rs
index 9a6abc3b3b..053f0689ba 100644
--- a/runtime/litentry/src/weights/pallet_preimage.rs
+++ b/runtime/litentry/src/weights/pallet_preimage.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_preimage`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,167 +49,167 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_preimage`.
pub struct WeightInfo(PhantomData);
impl pallet_preimage::WeightInfo for WeightInfo {
- /// Storage: Preimage StatusFor (r:1 w:1)
- /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
- /// Storage: Preimage PreimageFor (r:0 w:1)
- /// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
+ /// Storage: `Preimage::StatusFor` (r:1 w:1)
+ /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
+ /// Storage: `Preimage::PreimageFor` (r:0 w:1)
+ /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
/// The range of component `s` is `[0, 4194304]`.
fn note_preimage(s: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `143`
+ // Measured: `177`
// Estimated: `3556`
- // Minimum execution time: 42_239_000 picoseconds.
- Weight::from_parts(42_598_000, 0)
+ // Minimum execution time: 27_619_000 picoseconds.
+ Weight::from_parts(28_250_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
- // Standard Error: 12
- .saturating_add(Weight::from_parts(3_835, 0).saturating_mul(s.into()))
+ // Standard Error: 11
+ .saturating_add(Weight::from_parts(3_375, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Preimage StatusFor (r:1 w:1)
- /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
- /// Storage: Preimage PreimageFor (r:0 w:1)
- /// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
+ /// Storage: `Preimage::StatusFor` (r:1 w:1)
+ /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
+ /// Storage: `Preimage::PreimageFor` (r:0 w:1)
+ /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
/// The range of component `s` is `[0, 4194304]`.
fn note_requested_preimage(s: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `106`
+ // Measured: `140`
// Estimated: `3556`
- // Minimum execution time: 24_080_000 picoseconds.
- Weight::from_parts(24_909_000, 0)
+ // Minimum execution time: 15_317_000 picoseconds.
+ Weight::from_parts(15_650_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
- // Standard Error: 12
- .saturating_add(Weight::from_parts(3_814, 0).saturating_mul(s.into()))
+ // Standard Error: 7
+ .saturating_add(Weight::from_parts(3_375, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Preimage StatusFor (r:1 w:1)
- /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
- /// Storage: Preimage PreimageFor (r:0 w:1)
- /// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
+ /// Storage: `Preimage::StatusFor` (r:1 w:1)
+ /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
+ /// Storage: `Preimage::PreimageFor` (r:0 w:1)
+ /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
/// The range of component `s` is `[0, 4194304]`.
fn note_no_deposit_preimage(s: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `106`
+ // Measured: `140`
// Estimated: `3556`
- // Minimum execution time: 22_822_000 picoseconds.
- Weight::from_parts(23_365_000, 0)
+ // Minimum execution time: 14_436_000 picoseconds.
+ Weight::from_parts(14_809_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
- // Standard Error: 12
- .saturating_add(Weight::from_parts(3_696, 0).saturating_mul(s.into()))
+ // Standard Error: 11
+ .saturating_add(Weight::from_parts(3_401, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Preimage StatusFor (r:1 w:1)
- /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
- /// Storage: Preimage PreimageFor (r:0 w:1)
- /// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
+ /// Storage: `Preimage::StatusFor` (r:1 w:1)
+ /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
+ /// Storage: `Preimage::PreimageFor` (r:0 w:1)
+ /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
fn unnote_preimage() -> Weight {
// Proof Size summary in bytes:
- // Measured: `289`
+ // Measured: `323`
// Estimated: `3556`
- // Minimum execution time: 77_969_000 picoseconds.
- Weight::from_parts(82_410_000, 0)
+ // Minimum execution time: 53_048_000 picoseconds.
+ Weight::from_parts(60_426_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Preimage StatusFor (r:1 w:1)
- /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
- /// Storage: Preimage PreimageFor (r:0 w:1)
- /// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
+ /// Storage: `Preimage::StatusFor` (r:1 w:1)
+ /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
+ /// Storage: `Preimage::PreimageFor` (r:0 w:1)
+ /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
fn unnote_no_deposit_preimage() -> Weight {
// Proof Size summary in bytes:
- // Measured: `144`
+ // Measured: `178`
// Estimated: `3556`
- // Minimum execution time: 54_504_000 picoseconds.
- Weight::from_parts(57_528_000, 0)
+ // Minimum execution time: 36_712_000 picoseconds.
+ Weight::from_parts(40_415_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Preimage StatusFor (r:1 w:1)
- /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
+ /// Storage: `Preimage::StatusFor` (r:1 w:1)
+ /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
fn request_preimage() -> Weight {
// Proof Size summary in bytes:
- // Measured: `188`
+ // Measured: `222`
// Estimated: `3556`
- // Minimum execution time: 48_847_000 picoseconds.
- Weight::from_parts(53_036_000, 0)
+ // Minimum execution time: 26_936_000 picoseconds.
+ Weight::from_parts(35_241_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Preimage StatusFor (r:1 w:1)
- /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
+ /// Storage: `Preimage::StatusFor` (r:1 w:1)
+ /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
fn request_no_deposit_preimage() -> Weight {
// Proof Size summary in bytes:
- // Measured: `144`
+ // Measured: `178`
// Estimated: `3556`
- // Minimum execution time: 33_944_000 picoseconds.
- Weight::from_parts(36_714_000, 0)
+ // Minimum execution time: 20_287_000 picoseconds.
+ Weight::from_parts(24_778_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Preimage StatusFor (r:1 w:1)
- /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
+ /// Storage: `Preimage::StatusFor` (r:1 w:1)
+ /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
fn request_unnoted_preimage() -> Weight {
// Proof Size summary in bytes:
- // Measured: `42`
+ // Measured: `76`
// Estimated: `3556`
- // Minimum execution time: 38_567_000 picoseconds.
- Weight::from_parts(42_794_000, 0)
+ // Minimum execution time: 18_243_000 picoseconds.
+ Weight::from_parts(22_749_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Preimage StatusFor (r:1 w:1)
- /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
+ /// Storage: `Preimage::StatusFor` (r:1 w:1)
+ /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
fn request_requested_preimage() -> Weight {
// Proof Size summary in bytes:
- // Measured: `106`
+ // Measured: `140`
// Estimated: `3556`
- // Minimum execution time: 19_105_000 picoseconds.
- Weight::from_parts(20_695_000, 0)
+ // Minimum execution time: 9_567_000 picoseconds.
+ Weight::from_parts(12_433_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Preimage StatusFor (r:1 w:1)
- /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
- /// Storage: Preimage PreimageFor (r:0 w:1)
- /// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
+ /// Storage: `Preimage::StatusFor` (r:1 w:1)
+ /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
+ /// Storage: `Preimage::PreimageFor` (r:0 w:1)
+ /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
fn unrequest_preimage() -> Weight {
// Proof Size summary in bytes:
- // Measured: `144`
+ // Measured: `178`
// Estimated: `3556`
- // Minimum execution time: 51_855_000 picoseconds.
- Weight::from_parts(55_789_000, 0)
+ // Minimum execution time: 33_854_000 picoseconds.
+ Weight::from_parts(39_201_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Preimage StatusFor (r:1 w:1)
- /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
+ /// Storage: `Preimage::StatusFor` (r:1 w:1)
+ /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
fn unrequest_unnoted_preimage() -> Weight {
// Proof Size summary in bytes:
- // Measured: `106`
+ // Measured: `140`
// Estimated: `3556`
- // Minimum execution time: 19_417_000 picoseconds.
- Weight::from_parts(21_249_000, 0)
+ // Minimum execution time: 10_091_000 picoseconds.
+ Weight::from_parts(12_341_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Preimage StatusFor (r:1 w:1)
- /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
+ /// Storage: `Preimage::StatusFor` (r:1 w:1)
+ /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
fn unrequest_multi_referenced_preimage() -> Weight {
// Proof Size summary in bytes:
- // Measured: `106`
+ // Measured: `140`
// Estimated: `3556`
- // Minimum execution time: 18_663_000 picoseconds.
- Weight::from_parts(20_729_000, 0)
+ // Minimum execution time: 10_405_000 picoseconds.
+ Weight::from_parts(11_229_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
diff --git a/runtime/litentry/src/weights/pallet_proxy.rs b/runtime/litentry/src/weights/pallet_proxy.rs
index 1e3473bd82..0d87e6d9a5 100644
--- a/runtime/litentry/src/weights/pallet_proxy.rs
+++ b/runtime/litentry/src/weights/pallet_proxy.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_proxy`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,172 +49,176 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_proxy`.
pub struct WeightInfo(PhantomData);
impl pallet_proxy::WeightInfo for WeightInfo {
- /// Storage: Proxy Proxies (r:1 w:0)
- /// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
+ /// Storage: `Proxy::Proxies` (r:1 w:0)
+ /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// The range of component `p` is `[1, 31]`.
fn proxy(p: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `90 + p * (37 ±0)`
+ // Measured: `227 + p * (37 ±0)`
// Estimated: `4706`
- // Minimum execution time: 21_061_000 picoseconds.
- Weight::from_parts(21_411_153, 0)
+ // Minimum execution time: 15_097_000 picoseconds.
+ Weight::from_parts(15_861_496, 0)
.saturating_add(Weight::from_parts(0, 4706))
- // Standard Error: 3_298
- .saturating_add(Weight::from_parts(84_943, 0).saturating_mul(p.into()))
+ // Standard Error: 1_818
+ .saturating_add(Weight::from_parts(49_217, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1))
}
- /// Storage: Proxy Proxies (r:1 w:0)
- /// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
- /// Storage: Proxy Announcements (r:1 w:1)
- /// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `Proxy::Proxies` (r:1 w:0)
+ /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
+ /// Storage: `Proxy::Announcements` (r:1 w:1)
+ /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
- fn proxy_announced(a: u32, _p: u32, ) -> Weight {
+ fn proxy_announced(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `380 + a * (68 ±0) + p * (37 ±0)`
+ // Measured: `517 + a * (68 ±0) + p * (37 ±0)`
// Estimated: `5698`
- // Minimum execution time: 49_468_000 picoseconds.
- Weight::from_parts(55_012_881, 0)
+ // Minimum execution time: 36_845_000 picoseconds.
+ Weight::from_parts(39_683_541, 0)
.saturating_add(Weight::from_parts(0, 5698))
- // Standard Error: 10_496
- .saturating_add(Weight::from_parts(125_890, 0).saturating_mul(a.into()))
+ // Standard Error: 10_132
+ .saturating_add(Weight::from_parts(170_647, 0).saturating_mul(a.into()))
+ // Standard Error: 10_476
+ .saturating_add(Weight::from_parts(28_423, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Proxy Announcements (r:1 w:1)
- /// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `Proxy::Announcements` (r:1 w:1)
+ /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn remove_announcement(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `295 + a * (68 ±0)`
+ // Measured: `432 + a * (68 ±0)`
// Estimated: `5698`
- // Minimum execution time: 30_767_000 picoseconds.
- Weight::from_parts(30_208_469, 0)
+ // Minimum execution time: 23_501_000 picoseconds.
+ Weight::from_parts(23_737_536, 0)
.saturating_add(Weight::from_parts(0, 5698))
- // Standard Error: 4_957
- .saturating_add(Weight::from_parts(225_206, 0).saturating_mul(a.into()))
- // Standard Error: 5_125
- .saturating_add(Weight::from_parts(31_617, 0).saturating_mul(p.into()))
+ // Standard Error: 6_140
+ .saturating_add(Weight::from_parts(200_975, 0).saturating_mul(a.into()))
+ // Standard Error: 6_348
+ .saturating_add(Weight::from_parts(44_993, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Proxy Announcements (r:1 w:1)
- /// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `Proxy::Announcements` (r:1 w:1)
+ /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
- fn reject_announcement(a: u32, _p: u32, ) -> Weight {
+ fn reject_announcement(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `295 + a * (68 ±0)`
+ // Measured: `432 + a * (68 ±0)`
// Estimated: `5698`
- // Minimum execution time: 30_884_000 picoseconds.
- Weight::from_parts(33_175_373, 0)
+ // Minimum execution time: 23_434_000 picoseconds.
+ Weight::from_parts(23_965_881, 0)
.saturating_add(Weight::from_parts(0, 5698))
- // Standard Error: 4_455
- .saturating_add(Weight::from_parts(164_200, 0).saturating_mul(a.into()))
+ // Standard Error: 6_336
+ .saturating_add(Weight::from_parts(202_268, 0).saturating_mul(a.into()))
+ // Standard Error: 6_551
+ .saturating_add(Weight::from_parts(34_404, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Proxy Proxies (r:1 w:0)
- /// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
- /// Storage: Proxy Announcements (r:1 w:1)
- /// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `Proxy::Proxies` (r:1 w:0)
+ /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
+ /// Storage: `Proxy::Announcements` (r:1 w:1)
+ /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn announce(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `312 + a * (68 ±0) + p * (37 ±0)`
+ // Measured: `449 + a * (68 ±0) + p * (37 ±0)`
// Estimated: `5698`
- // Minimum execution time: 44_561_000 picoseconds.
- Weight::from_parts(40_499_064, 0)
+ // Minimum execution time: 32_192_000 picoseconds.
+ Weight::from_parts(33_653_504, 0)
.saturating_add(Weight::from_parts(0, 5698))
- // Standard Error: 16_538
- .saturating_add(Weight::from_parts(277_511, 0).saturating_mul(a.into()))
- // Standard Error: 17_100
- .saturating_add(Weight::from_parts(189_102, 0).saturating_mul(p.into()))
+ // Standard Error: 10_224
+ .saturating_add(Weight::from_parts(167_400, 0).saturating_mul(a.into()))
+ // Standard Error: 10_571
+ .saturating_add(Weight::from_parts(69_985, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Proxy Proxies (r:1 w:1)
- /// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
+ /// Storage: `Proxy::Proxies` (r:1 w:1)
+ /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// The range of component `p` is `[1, 31]`.
fn add_proxy(p: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `90 + p * (37 ±0)`
+ // Measured: `227 + p * (37 ±0)`
// Estimated: `4706`
- // Minimum execution time: 32_847_000 picoseconds.
- Weight::from_parts(34_206_275, 0)
+ // Minimum execution time: 24_032_000 picoseconds.
+ Weight::from_parts(25_505_663, 0)
.saturating_add(Weight::from_parts(0, 4706))
- // Standard Error: 8_442
- .saturating_add(Weight::from_parts(98_629, 0).saturating_mul(p.into()))
+ // Standard Error: 7_223
+ .saturating_add(Weight::from_parts(44_816, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Proxy Proxies (r:1 w:1)
- /// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
+ /// Storage: `Proxy::Proxies` (r:1 w:1)
+ /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// The range of component `p` is `[1, 31]`.
fn remove_proxy(p: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `90 + p * (37 ±0)`
+ // Measured: `227 + p * (37 ±0)`
// Estimated: `4706`
- // Minimum execution time: 32_668_000 picoseconds.
- Weight::from_parts(34_553_359, 0)
+ // Minimum execution time: 24_059_000 picoseconds.
+ Weight::from_parts(25_610_666, 0)
.saturating_add(Weight::from_parts(0, 4706))
- // Standard Error: 8_984
- .saturating_add(Weight::from_parts(96_253, 0).saturating_mul(p.into()))
+ // Standard Error: 9_278
+ .saturating_add(Weight::from_parts(70_157, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Proxy Proxies (r:1 w:1)
- /// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
+ /// Storage: `Proxy::Proxies` (r:1 w:1)
+ /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// The range of component `p` is `[1, 31]`.
fn remove_proxies(p: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `90 + p * (37 ±0)`
+ // Measured: `227 + p * (37 ±0)`
// Estimated: `4706`
- // Minimum execution time: 28_494_000 picoseconds.
- Weight::from_parts(29_056_946, 0)
+ // Minimum execution time: 21_248_000 picoseconds.
+ Weight::from_parts(22_160_942, 0)
.saturating_add(Weight::from_parts(0, 4706))
- // Standard Error: 5_058
- .saturating_add(Weight::from_parts(97_732, 0).saturating_mul(p.into()))
+ // Standard Error: 7_720
+ .saturating_add(Weight::from_parts(79_386, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Proxy Proxies (r:1 w:1)
- /// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
+ /// Storage: `Proxy::Proxies` (r:1 w:1)
+ /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// The range of component `p` is `[1, 31]`.
fn create_pure(p: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `102`
+ // Measured: `239`
// Estimated: `4706`
- // Minimum execution time: 34_884_000 picoseconds.
- Weight::from_parts(35_571_581, 0)
+ // Minimum execution time: 25_880_000 picoseconds.
+ Weight::from_parts(26_821_197, 0)
.saturating_add(Weight::from_parts(0, 4706))
- // Standard Error: 3_147
- .saturating_add(Weight::from_parts(38_374, 0).saturating_mul(p.into()))
+ // Standard Error: 4_642
+ .saturating_add(Weight::from_parts(49_058, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Proxy Proxies (r:1 w:1)
- /// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
+ /// Storage: `Proxy::Proxies` (r:1 w:1)
+ /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// The range of component `p` is `[0, 30]`.
fn kill_pure(p: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `127 + p * (37 ±0)`
+ // Measured: `264 + p * (37 ±0)`
// Estimated: `4706`
- // Minimum execution time: 29_594_000 picoseconds.
- Weight::from_parts(30_443_890, 0)
+ // Minimum execution time: 22_343_000 picoseconds.
+ Weight::from_parts(23_117_657, 0)
.saturating_add(Weight::from_parts(0, 4706))
- // Standard Error: 2_990
- .saturating_add(Weight::from_parts(63_685, 0).saturating_mul(p.into()))
+ // Standard Error: 2_365
+ .saturating_add(Weight::from_parts(52_581, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
diff --git a/runtime/litentry/src/weights/pallet_scheduler.rs b/runtime/litentry/src/weights/pallet_scheduler.rs
index 01e34c44a2..f0c7828316 100644
--- a/runtime/litentry/src/weights/pallet_scheduler.rs
+++ b/runtime/litentry/src/weights/pallet_scheduler.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_scheduler`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,30 +49,30 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_scheduler`.
pub struct WeightInfo(PhantomData);
impl pallet_scheduler::WeightInfo for WeightInfo {
- /// Storage: Scheduler IncompleteSince (r:1 w:1)
- /// Proof: Scheduler IncompleteSince (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
+ /// Storage: `Scheduler::IncompleteSince` (r:1 w:1)
+ /// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
fn service_agendas_base() -> Weight {
// Proof Size summary in bytes:
// Measured: `31`
// Estimated: `1489`
- // Minimum execution time: 4_424_000 picoseconds.
- Weight::from_parts(4_665_000, 0)
+ // Minimum execution time: 3_750_000 picoseconds.
+ Weight::from_parts(3_956_000, 0)
.saturating_add(Weight::from_parts(0, 1489))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Scheduler Agenda (r:1 w:1)
- /// Proof: Scheduler Agenda (max_values: None, max_size: Some(38963), added: 41438, mode: MaxEncodedLen)
+ /// Storage: `Scheduler::Agenda` (r:1 w:1)
+ /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
/// The range of component `s` is `[0, 50]`.
fn service_agenda_base(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `78 + s * (177 ±0)`
// Estimated: `42428`
- // Minimum execution time: 3_927_000 picoseconds.
- Weight::from_parts(7_711_610, 0)
+ // Minimum execution time: 3_531_000 picoseconds.
+ Weight::from_parts(5_168_764, 0)
.saturating_add(Weight::from_parts(0, 42428))
- // Standard Error: 5_477
- .saturating_add(Weight::from_parts(1_377_092, 0).saturating_mul(s.into()))
+ // Standard Error: 2_556
+ .saturating_add(Weight::from_parts(759_809, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -80,36 +80,36 @@ impl pallet_scheduler::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 7_695_000 picoseconds.
- Weight::from_parts(7_863_000, 0)
+ // Minimum execution time: 5_641_000 picoseconds.
+ Weight::from_parts(5_845_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
- /// Storage: Preimage PreimageFor (r:1 w:1)
- /// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: Measured)
- /// Storage: Preimage StatusFor (r:1 w:1)
- /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
+ /// Storage: `Preimage::PreimageFor` (r:1 w:1)
+ /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
+ /// Storage: `Preimage::StatusFor` (r:1 w:1)
+ /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// The range of component `s` is `[128, 4194304]`.
fn service_task_fetched(s: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `179 + s * (1 ±0)`
- // Estimated: `3643 + s * (1 ±0)`
- // Minimum execution time: 27_787_000 picoseconds.
- Weight::from_parts(27_928_000, 0)
- .saturating_add(Weight::from_parts(0, 3643))
- // Standard Error: 11
- .saturating_add(Weight::from_parts(2_406, 0).saturating_mul(s.into()))
+ // Measured: `213 + s * (1 ±0)`
+ // Estimated: `3677 + s * (1 ±0)`
+ // Minimum execution time: 19_483_000 picoseconds.
+ Weight::from_parts(19_884_000, 0)
+ .saturating_add(Weight::from_parts(0, 3677))
+ // Standard Error: 15
+ .saturating_add(Weight::from_parts(1_746, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
}
- /// Storage: Scheduler Lookup (r:0 w:1)
- /// Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
+ /// Storage: `Scheduler::Lookup` (r:0 w:1)
+ /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
fn service_task_named() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 9_517_000 picoseconds.
- Weight::from_parts(9_729_000, 0)
+ // Minimum execution time: 6_710_000 picoseconds.
+ Weight::from_parts(7_053_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -117,89 +117,89 @@ impl pallet_scheduler::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 7_628_000 picoseconds.
- Weight::from_parts(7_863_000, 0)
+ // Minimum execution time: 5_471_000 picoseconds.
+ Weight::from_parts(5_830_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
fn execute_dispatch_signed() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 4_019_000 picoseconds.
- Weight::from_parts(4_216_000, 0)
+ // Minimum execution time: 2_625_000 picoseconds.
+ Weight::from_parts(2_806_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
fn execute_dispatch_unsigned() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 4_075_000 picoseconds.
- Weight::from_parts(4_187_000, 0)
+ // Minimum execution time: 2_650_000 picoseconds.
+ Weight::from_parts(2_778_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
- /// Storage: Scheduler Agenda (r:1 w:1)
- /// Proof: Scheduler Agenda (max_values: None, max_size: Some(38963), added: 41438, mode: MaxEncodedLen)
+ /// Storage: `Scheduler::Agenda` (r:1 w:1)
+ /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
/// The range of component `s` is `[0, 49]`.
fn schedule(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `78 + s * (177 ±0)`
// Estimated: `42428`
- // Minimum execution time: 17_244_000 picoseconds.
- Weight::from_parts(18_554_101, 0)
+ // Minimum execution time: 11_359_000 picoseconds.
+ Weight::from_parts(13_277_285, 0)
.saturating_add(Weight::from_parts(0, 42428))
- // Standard Error: 15_622
- .saturating_add(Weight::from_parts(1_758_635, 0).saturating_mul(s.into()))
+ // Standard Error: 3_583
+ .saturating_add(Weight::from_parts(837_979, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Scheduler Agenda (r:1 w:1)
- /// Proof: Scheduler Agenda (max_values: None, max_size: Some(38963), added: 41438, mode: MaxEncodedLen)
- /// Storage: Scheduler Lookup (r:0 w:1)
- /// Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
+ /// Storage: `Scheduler::Agenda` (r:1 w:1)
+ /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
+ /// Storage: `Scheduler::Lookup` (r:0 w:1)
+ /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
/// The range of component `s` is `[1, 50]`.
fn cancel(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `78 + s * (177 ±0)`
// Estimated: `42428`
- // Minimum execution time: 25_466_000 picoseconds.
- Weight::from_parts(19_485_230, 0)
+ // Minimum execution time: 15_825_000 picoseconds.
+ Weight::from_parts(13_867_362, 0)
.saturating_add(Weight::from_parts(0, 42428))
- // Standard Error: 13_027
- .saturating_add(Weight::from_parts(2_782_645, 0).saturating_mul(s.into()))
+ // Standard Error: 5_568
+ .saturating_add(Weight::from_parts(1_440_531, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Scheduler Lookup (r:1 w:1)
- /// Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
- /// Storage: Scheduler Agenda (r:1 w:1)
- /// Proof: Scheduler Agenda (max_values: None, max_size: Some(38963), added: 41438, mode: MaxEncodedLen)
+ /// Storage: `Scheduler::Lookup` (r:1 w:1)
+ /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
+ /// Storage: `Scheduler::Agenda` (r:1 w:1)
+ /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
/// The range of component `s` is `[0, 49]`.
fn schedule_named(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `230 + s * (186 ±0)`
// Estimated: `42428`
- // Minimum execution time: 21_772_000 picoseconds.
- Weight::from_parts(27_680_047, 0)
+ // Minimum execution time: 14_828_000 picoseconds.
+ Weight::from_parts(16_945_472, 0)
.saturating_add(Weight::from_parts(0, 42428))
- // Standard Error: 10_908
- .saturating_add(Weight::from_parts(1_576_525, 0).saturating_mul(s.into()))
+ // Standard Error: 4_963
+ .saturating_add(Weight::from_parts(898_730, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Scheduler Lookup (r:1 w:1)
- /// Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
- /// Storage: Scheduler Agenda (r:1 w:1)
- /// Proof: Scheduler Agenda (max_values: None, max_size: Some(38963), added: 41438, mode: MaxEncodedLen)
+ /// Storage: `Scheduler::Lookup` (r:1 w:1)
+ /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
+ /// Storage: `Scheduler::Agenda` (r:1 w:1)
+ /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
/// The range of component `s` is `[1, 50]`.
fn cancel_named(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `282 + s * (185 ±0)`
// Estimated: `42428`
- // Minimum execution time: 26_827_000 picoseconds.
- Weight::from_parts(24_157_688, 0)
+ // Minimum execution time: 17_972_000 picoseconds.
+ Weight::from_parts(16_463_690, 0)
.saturating_add(Weight::from_parts(0, 42428))
- // Standard Error: 10_465
- .saturating_add(Weight::from_parts(2_708_134, 0).saturating_mul(s.into()))
+ // Standard Error: 6_940
+ .saturating_add(Weight::from_parts(1_474_679, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
diff --git a/runtime/litentry/src/weights/pallet_session.rs b/runtime/litentry/src/weights/pallet_session.rs
index 45c932e803..9b040d8f02 100644
--- a/runtime/litentry/src/weights/pallet_session.rs
+++ b/runtime/litentry/src/weights/pallet_session.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_session`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,31 +49,31 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_session`.
pub struct WeightInfo(PhantomData);
impl pallet_session::WeightInfo for WeightInfo {
- /// Storage: Session NextKeys (r:1 w:1)
- /// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured)
- /// Storage: Session KeyOwner (r:1 w:1)
- /// Proof Skipped: Session KeyOwner (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Session::NextKeys` (r:1 w:1)
+ /// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Session::KeyOwner` (r:1 w:1)
+ /// Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn set_keys() -> Weight {
// Proof Size summary in bytes:
- // Measured: `270`
- // Estimated: `3735`
- // Minimum execution time: 21_848_000 picoseconds.
- Weight::from_parts(22_376_000, 0)
- .saturating_add(Weight::from_parts(0, 3735))
+ // Measured: `271`
+ // Estimated: `3736`
+ // Minimum execution time: 15_676_000 picoseconds.
+ Weight::from_parts(16_271_000, 0)
+ .saturating_add(Weight::from_parts(0, 3736))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Session NextKeys (r:1 w:1)
- /// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured)
- /// Storage: Session KeyOwner (r:0 w:1)
- /// Proof Skipped: Session KeyOwner (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Session::NextKeys` (r:1 w:1)
+ /// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Session::KeyOwner` (r:0 w:1)
+ /// Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn purge_keys() -> Weight {
// Proof Size summary in bytes:
- // Measured: `242`
- // Estimated: `3707`
- // Minimum execution time: 15_844_000 picoseconds.
- Weight::from_parts(16_226_000, 0)
- .saturating_add(Weight::from_parts(0, 3707))
+ // Measured: `243`
+ // Estimated: `3708`
+ // Minimum execution time: 10_764_000 picoseconds.
+ Weight::from_parts(11_386_000, 0)
+ .saturating_add(Weight::from_parts(0, 3708))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
diff --git a/runtime/litentry/src/weights/pallet_teebag.rs b/runtime/litentry/src/weights/pallet_teebag.rs
index 42e3e154a9..3eb6b2bf16 100644
--- a/runtime/litentry/src/weights/pallet_teebag.rs
+++ b/runtime/litentry/src/weights/pallet_teebag.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_teebag`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2024-07-31, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,170 +49,170 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_teebag`.
pub struct WeightInfo(PhantomData);
impl pallet_teebag::WeightInfo for WeightInfo {
- /// Storage: Teebag EnclaveRegistry (r:1 w:1)
- /// Proof Skipped: Teebag EnclaveRegistry (max_values: None, max_size: None, mode: Measured)
- /// Storage: Teebag EnclaveIdentifier (r:1 w:1)
- /// Proof Skipped: Teebag EnclaveIdentifier (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Teebag::EnclaveRegistry` (r:1 w:1)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Teebag::EnclaveIdentifier` (r:1 w:1)
+ /// Proof: `Teebag::EnclaveIdentifier` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn force_add_enclave() -> Weight {
// Proof Size summary in bytes:
// Measured: `213`
// Estimated: `3678`
- // Minimum execution time: 28_431_000 picoseconds.
- Weight::from_parts(30_094_000, 0)
+ // Minimum execution time: 14_940_000 picoseconds.
+ Weight::from_parts(15_427_000, 0)
.saturating_add(Weight::from_parts(0, 3678))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Teebag EnclaveRegistry (r:1 w:1)
- /// Proof Skipped: Teebag EnclaveRegistry (max_values: None, max_size: None, mode: Measured)
- /// Storage: Teebag EnclaveIdentifier (r:1 w:1)
- /// Proof Skipped: Teebag EnclaveIdentifier (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Teebag::EnclaveRegistry` (r:1 w:1)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Teebag::EnclaveIdentifier` (r:1 w:1)
+ /// Proof: `Teebag::EnclaveIdentifier` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn force_remove_enclave() -> Weight {
// Proof Size summary in bytes:
// Measured: `541`
// Estimated: `4006`
- // Minimum execution time: 38_930_000 picoseconds.
- Weight::from_parts(40_113_000, 0)
+ // Minimum execution time: 18_560_000 picoseconds.
+ Weight::from_parts(19_112_000, 0)
.saturating_add(Weight::from_parts(0, 4006))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Teebag EnclaveRegistry (r:4 w:3)
- /// Proof Skipped: Teebag EnclaveRegistry (max_values: None, max_size: None, mode: Measured)
- /// Storage: Teebag EnclaveIdentifier (r:1 w:1)
- /// Proof Skipped: Teebag EnclaveIdentifier (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Teebag::EnclaveRegistry` (r:4 w:3)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Teebag::EnclaveIdentifier` (r:1 w:1)
+ /// Proof: `Teebag::EnclaveIdentifier` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn force_remove_enclave_by_mrenclave() -> Weight {
// Proof Size summary in bytes:
// Measured: `720`
// Estimated: `11610`
- // Minimum execution time: 88_667_000 picoseconds.
- Weight::from_parts(89_935_000, 0)
+ // Minimum execution time: 46_280_000 picoseconds.
+ Weight::from_parts(47_912_000, 0)
.saturating_add(Weight::from_parts(0, 11610))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(4))
}
- /// Storage: Teebag EnclaveRegistry (r:4 w:3)
- /// Proof Skipped: Teebag EnclaveRegistry (max_values: None, max_size: None, mode: Measured)
- /// Storage: Teebag EnclaveIdentifier (r:1 w:1)
- /// Proof Skipped: Teebag EnclaveIdentifier (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Teebag::EnclaveRegistry` (r:4 w:3)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Teebag::EnclaveIdentifier` (r:1 w:1)
+ /// Proof: `Teebag::EnclaveIdentifier` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn force_remove_enclave_by_worker_type() -> Weight {
// Proof Size summary in bytes:
// Measured: `720`
// Estimated: `11610`
- // Minimum execution time: 87_008_000 picoseconds.
- Weight::from_parts(89_158_000, 0)
+ // Minimum execution time: 45_558_000 picoseconds.
+ Weight::from_parts(47_188_000, 0)
.saturating_add(Weight::from_parts(0, 11610))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(4))
}
- /// Storage: Teebag AuthorizedEnclave (r:1 w:1)
- /// Proof Skipped: Teebag AuthorizedEnclave (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Teebag::AuthorizedEnclave` (r:1 w:1)
+ /// Proof: `Teebag::AuthorizedEnclave` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn force_add_authorized_enclave() -> Weight {
// Proof Size summary in bytes:
// Measured: `383`
// Estimated: `3848`
- // Minimum execution time: 26_482_000 picoseconds.
- Weight::from_parts(28_231_000, 0)
+ // Minimum execution time: 12_659_000 picoseconds.
+ Weight::from_parts(13_023_000, 0)
.saturating_add(Weight::from_parts(0, 3848))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Teebag AuthorizedEnclave (r:1 w:1)
- /// Proof Skipped: Teebag AuthorizedEnclave (max_values: None, max_size: None, mode: Measured)
- /// Storage: Teebag EnclaveRegistry (r:1 w:0)
- /// Proof Skipped: Teebag EnclaveRegistry (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Teebag::AuthorizedEnclave` (r:1 w:1)
+ /// Proof: `Teebag::AuthorizedEnclave` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Teebag::EnclaveRegistry` (r:1 w:0)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn force_remove_authorized_enclave() -> Weight {
// Proof Size summary in bytes:
// Measured: `415`
// Estimated: `3880`
- // Minimum execution time: 37_985_000 picoseconds.
- Weight::from_parts(40_395_000, 0)
+ // Minimum execution time: 17_561_000 picoseconds.
+ Weight::from_parts(18_546_000, 0)
.saturating_add(Weight::from_parts(0, 3880))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Timestamp Now (r:1 w:0)
- /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
- /// Storage: Teebag Mode (r:1 w:0)
- /// Proof Skipped: Teebag Mode (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Teebag AuthorizedEnclave (r:1 w:1)
- /// Proof Skipped: Teebag AuthorizedEnclave (max_values: None, max_size: None, mode: Measured)
- /// Storage: Teebag EnclaveRegistry (r:1 w:1)
- /// Proof Skipped: Teebag EnclaveRegistry (max_values: None, max_size: None, mode: Measured)
- /// Storage: Teebag EnclaveIdentifier (r:1 w:1)
- /// Proof Skipped: Teebag EnclaveIdentifier (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Timestamp::Now` (r:1 w:0)
+ /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
+ /// Storage: `Teebag::Mode` (r:1 w:0)
+ /// Proof: `Teebag::Mode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Teebag::AuthorizedEnclave` (r:1 w:1)
+ /// Proof: `Teebag::AuthorizedEnclave` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Teebag::EnclaveRegistry` (r:1 w:1)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Teebag::EnclaveIdentifier` (r:1 w:1)
+ /// Proof: `Teebag::EnclaveIdentifier` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn register_enclave_with_ias_attestation() -> Weight {
// Proof Size summary in bytes:
// Measured: `390`
// Estimated: `3855`
- // Minimum execution time: 2_225_081_000 picoseconds.
- Weight::from_parts(2_251_079_000, 0)
+ // Minimum execution time: 1_573_229_000 picoseconds.
+ Weight::from_parts(2_342_773_000, 0)
.saturating_add(Weight::from_parts(0, 3855))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(3))
}
- /// Storage: Timestamp Now (r:1 w:0)
- /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
- /// Storage: Teebag QuotingEnclaveRegistry (r:1 w:0)
- /// Proof Skipped: Teebag QuotingEnclaveRegistry (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Teebag TcbInfo (r:1 w:0)
- /// Proof Skipped: Teebag TcbInfo (max_values: None, max_size: None, mode: Measured)
- /// Storage: Teebag Mode (r:1 w:0)
- /// Proof Skipped: Teebag Mode (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: Teebag AuthorizedEnclave (r:1 w:1)
- /// Proof Skipped: Teebag AuthorizedEnclave (max_values: None, max_size: None, mode: Measured)
- /// Storage: Teebag EnclaveRegistry (r:1 w:1)
- /// Proof Skipped: Teebag EnclaveRegistry (max_values: None, max_size: None, mode: Measured)
- /// Storage: Teebag EnclaveIdentifier (r:1 w:1)
- /// Proof Skipped: Teebag EnclaveIdentifier (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Timestamp::Now` (r:1 w:0)
+ /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
+ /// Storage: `Teebag::QuotingEnclaveRegistry` (r:1 w:0)
+ /// Proof: `Teebag::QuotingEnclaveRegistry` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Teebag::TcbInfo` (r:1 w:0)
+ /// Proof: `Teebag::TcbInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Teebag::Mode` (r:1 w:0)
+ /// Proof: `Teebag::Mode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `Teebag::AuthorizedEnclave` (r:1 w:1)
+ /// Proof: `Teebag::AuthorizedEnclave` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Teebag::EnclaveRegistry` (r:1 w:1)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Teebag::EnclaveIdentifier` (r:1 w:1)
+ /// Proof: `Teebag::EnclaveIdentifier` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn register_enclave_with_dcap_attestation() -> Weight {
// Proof Size summary in bytes:
// Measured: `607`
// Estimated: `4072`
- // Minimum execution time: 4_919_556_000 picoseconds.
- Weight::from_parts(4_934_096_000, 0)
+ // Minimum execution time: 3_387_132_000 picoseconds.
+ Weight::from_parts(4_225_844_000, 0)
.saturating_add(Weight::from_parts(0, 4072))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(3))
}
- /// Storage: Teebag EnclaveRegistry (r:1 w:1)
- /// Proof Skipped: Teebag EnclaveRegistry (max_values: None, max_size: None, mode: Measured)
- /// Storage: Teebag EnclaveIdentifier (r:1 w:1)
- /// Proof Skipped: Teebag EnclaveIdentifier (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Teebag::EnclaveRegistry` (r:1 w:1)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Teebag::EnclaveIdentifier` (r:1 w:1)
+ /// Proof: `Teebag::EnclaveIdentifier` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn unregister_enclave() -> Weight {
// Proof Size summary in bytes:
// Measured: `458`
// Estimated: `3923`
- // Minimum execution time: 38_193_000 picoseconds.
- Weight::from_parts(39_591_000, 0)
+ // Minimum execution time: 19_348_000 picoseconds.
+ Weight::from_parts(21_589_000, 0)
.saturating_add(Weight::from_parts(0, 3923))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Timestamp Now (r:1 w:0)
- /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
- /// Storage: Teebag QuotingEnclaveRegistry (r:0 w:1)
- /// Proof Skipped: Teebag QuotingEnclaveRegistry (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `Timestamp::Now` (r:1 w:0)
+ /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
+ /// Storage: `Teebag::QuotingEnclaveRegistry` (r:0 w:1)
+ /// Proof: `Teebag::QuotingEnclaveRegistry` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn register_quoting_enclave() -> Weight {
// Proof Size summary in bytes:
// Measured: `94`
// Estimated: `1493`
- // Minimum execution time: 2_443_611_000 picoseconds.
- Weight::from_parts(2_471_849_000, 0)
+ // Minimum execution time: 1_655_950_000 picoseconds.
+ Weight::from_parts(1_718_867_000, 0)
.saturating_add(Weight::from_parts(0, 1493))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Timestamp Now (r:1 w:0)
- /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
- /// Storage: Teebag TcbInfo (r:0 w:1)
- /// Proof Skipped: Teebag TcbInfo (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Timestamp::Now` (r:1 w:0)
+ /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
+ /// Storage: `Teebag::TcbInfo` (r:0 w:1)
+ /// Proof: `Teebag::TcbInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn register_tcb_info() -> Weight {
// Proof Size summary in bytes:
// Measured: `94`
// Estimated: `1493`
- // Minimum execution time: 2_687_449_000 picoseconds.
- Weight::from_parts(2_718_984_000, 0)
+ // Minimum execution time: 1_797_691_000 picoseconds.
+ Weight::from_parts(2_617_655_000, 0)
.saturating_add(Weight::from_parts(0, 1493))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
@@ -221,39 +221,39 @@ impl pallet_teebag::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 14_240_000 picoseconds.
- Weight::from_parts(14_641_000, 0)
+ // Minimum execution time: 6_996_000 picoseconds.
+ Weight::from_parts(7_392_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
- /// Storage: Teebag EnclaveRegistry (r:1 w:0)
- /// Proof Skipped: Teebag EnclaveRegistry (max_values: None, max_size: None, mode: Measured)
- /// Storage: Timestamp Now (r:1 w:0)
- /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
+ /// Storage: `Teebag::EnclaveRegistry` (r:1 w:0)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Timestamp::Now` (r:1 w:0)
+ /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
fn parentchain_block_processed() -> Weight {
// Proof Size summary in bytes:
// Measured: `407`
// Estimated: `3872`
- // Minimum execution time: 31_591_000 picoseconds.
- Weight::from_parts(32_339_000, 0)
+ // Minimum execution time: 15_266_000 picoseconds.
+ Weight::from_parts(16_094_000, 0)
.saturating_add(Weight::from_parts(0, 3872))
.saturating_add(T::DbWeight::get().reads(2))
}
- /// Storage: Teebag EnclaveRegistry (r:1 w:0)
- /// Proof Skipped: Teebag EnclaveRegistry (max_values: None, max_size: None, mode: Measured)
- /// Storage: Timestamp Now (r:1 w:0)
- /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
- /// Storage: Teebag EnclaveIdentifier (r:1 w:0)
- /// Proof Skipped: Teebag EnclaveIdentifier (max_values: None, max_size: None, mode: Measured)
- /// Storage: Teebag SidechainBlockFinalizationCandidate (r:1 w:1)
- /// Proof Skipped: Teebag SidechainBlockFinalizationCandidate (max_values: None, max_size: None, mode: Measured)
- /// Storage: Teebag LatestSidechainBlockConfirmation (r:0 w:1)
- /// Proof Skipped: Teebag LatestSidechainBlockConfirmation (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Teebag::EnclaveRegistry` (r:1 w:0)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Timestamp::Now` (r:1 w:0)
+ /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
+ /// Storage: `Teebag::EnclaveIdentifier` (r:1 w:0)
+ /// Proof: `Teebag::EnclaveIdentifier` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Teebag::SidechainBlockFinalizationCandidate` (r:1 w:1)
+ /// Proof: `Teebag::SidechainBlockFinalizationCandidate` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `Teebag::LatestSidechainBlockConfirmation` (r:0 w:1)
+ /// Proof: `Teebag::LatestSidechainBlockConfirmation` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn sidechain_block_imported() -> Weight {
// Proof Size summary in bytes:
// Measured: `528`
// Estimated: `3993`
- // Minimum execution time: 42_861_000 picoseconds.
- Weight::from_parts(48_257_000, 0)
+ // Minimum execution time: 24_260_000 picoseconds.
+ Weight::from_parts(25_338_000, 0)
.saturating_add(Weight::from_parts(0, 3993))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(2))
diff --git a/runtime/litentry/src/weights/pallet_timestamp.rs b/runtime/litentry/src/weights/pallet_timestamp.rs
index 7c9db583df..242fe5a74a 100644
--- a/runtime/litentry/src/weights/pallet_timestamp.rs
+++ b/runtime/litentry/src/weights/pallet_timestamp.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_timestamp`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,14 +49,14 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_timestamp`.
pub struct WeightInfo(PhantomData);
impl pallet_timestamp::WeightInfo for WeightInfo {
- /// Storage: Timestamp Now (r:1 w:1)
- /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
+ /// Storage: `Timestamp::Now` (r:1 w:1)
+ /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
fn set() -> Weight {
// Proof Size summary in bytes:
// Measured: `42`
// Estimated: `1493`
- // Minimum execution time: 10_236_000 picoseconds.
- Weight::from_parts(10_982_000, 0)
+ // Minimum execution time: 6_621_000 picoseconds.
+ Weight::from_parts(7_930_000, 0)
.saturating_add(Weight::from_parts(0, 1493))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
@@ -65,8 +65,8 @@ impl pallet_timestamp::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `94`
// Estimated: `0`
- // Minimum execution time: 6_082_000 picoseconds.
- Weight::from_parts(6_372_000, 0)
+ // Minimum execution time: 4_283_000 picoseconds.
+ Weight::from_parts(4_458_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
}
diff --git a/runtime/litentry/src/weights/pallet_treasury.rs b/runtime/litentry/src/weights/pallet_treasury.rs
index 6fb3ef536c..1206262f07 100644
--- a/runtime/litentry/src/weights/pallet_treasury.rs
+++ b/runtime/litentry/src/weights/pallet_treasury.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_treasury`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,104 +49,102 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_treasury`.
pub struct WeightInfo(PhantomData);
impl pallet_treasury::WeightInfo for WeightInfo {
- /// Storage: Treasury ProposalCount (r:1 w:1)
- /// Proof: Treasury ProposalCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
- /// Storage: Treasury Approvals (r:1 w:1)
- /// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
- /// Storage: Treasury Proposals (r:0 w:1)
- /// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
+ /// Storage: `Treasury::ProposalCount` (r:1 w:1)
+ /// Proof: `Treasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
+ /// Storage: `Treasury::Approvals` (r:1 w:1)
+ /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
+ /// Storage: `Treasury::Proposals` (r:0 w:1)
+ /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
fn spend() -> Weight {
// Proof Size summary in bytes:
// Measured: `80`
// Estimated: `1887`
- // Minimum execution time: 22_616_000 picoseconds.
- Weight::from_parts(23_129_000, 0)
+ // Minimum execution time: 14_729_000 picoseconds.
+ Weight::from_parts(15_324_000, 0)
.saturating_add(Weight::from_parts(0, 1887))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(3))
}
- /// Storage: Treasury ProposalCount (r:1 w:1)
- /// Proof: Treasury ProposalCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
- /// Storage: Treasury Proposals (r:0 w:1)
- /// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
+ /// Storage: `Treasury::ProposalCount` (r:1 w:1)
+ /// Proof: `Treasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
+ /// Storage: `Treasury::Proposals` (r:0 w:1)
+ /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
fn propose_spend() -> Weight {
// Proof Size summary in bytes:
// Measured: `181`
// Estimated: `1489`
- // Minimum execution time: 39_363_000 picoseconds.
- Weight::from_parts(40_169_000, 0)
+ // Minimum execution time: 26_716_000 picoseconds.
+ Weight::from_parts(27_908_000, 0)
.saturating_add(Weight::from_parts(0, 1489))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Treasury Proposals (r:1 w:1)
- /// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
- /// Storage: System Account (r:2 w:2)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `Treasury::Proposals` (r:1 w:1)
+ /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
+ /// Storage: `System::Account` (r:2 w:2)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn reject_proposal() -> Weight {
// Proof Size summary in bytes:
// Measured: `442`
// Estimated: `6196`
- // Minimum execution time: 59_887_000 picoseconds.
- Weight::from_parts(61_626_000, 0)
+ // Minimum execution time: 41_735_000 picoseconds.
+ Weight::from_parts(43_198_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
- /// Storage: Treasury Proposals (r:1 w:0)
- /// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
- /// Storage: Treasury Approvals (r:1 w:1)
- /// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
+ /// Storage: `Treasury::Proposals` (r:1 w:0)
+ /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
+ /// Storage: `Treasury::Approvals` (r:1 w:1)
+ /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
/// The range of component `p` is `[0, 99]`.
fn approve_proposal(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `486 + p * (9 ±0)`
// Estimated: `3573`
- // Minimum execution time: 15_035_000 picoseconds.
- Weight::from_parts(19_823_562, 0)
+ // Minimum execution time: 9_526_000 picoseconds.
+ Weight::from_parts(12_519_784, 0)
.saturating_add(Weight::from_parts(0, 3573))
- // Standard Error: 4_310
- .saturating_add(Weight::from_parts(158_735, 0).saturating_mul(p.into()))
+ // Standard Error: 1_869
+ .saturating_add(Weight::from_parts(110_843, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: Treasury Approvals (r:1 w:1)
- /// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
+ /// Storage: `Treasury::Approvals` (r:1 w:1)
+ /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
fn remove_approval() -> Weight {
// Proof Size summary in bytes:
// Measured: `165`
// Estimated: `1887`
- // Minimum execution time: 11_811_000 picoseconds.
- Weight::from_parts(12_165_000, 0)
+ // Minimum execution time: 7_496_000 picoseconds.
+ Weight::from_parts(7_835_000, 0)
.saturating_add(Weight::from_parts(0, 1887))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: System Account (r:201 w:201)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- /// Storage: Treasury Deactivated (r:1 w:1)
- /// Proof: Treasury Deactivated (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
- /// Storage: Balances InactiveIssuance (r:1 w:1)
- /// Proof: Balances InactiveIssuance (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
- /// Storage: Treasury Approvals (r:1 w:1)
- /// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
- /// Storage: Treasury Proposals (r:100 w:100)
- /// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
- /// Storage: Bounties BountyApprovals (r:1 w:1)
- /// Proof: Bounties BountyApprovals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:201 w:201)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `Treasury::Deactivated` (r:1 w:1)
+ /// Proof: `Treasury::Deactivated` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
+ /// Storage: `Treasury::Approvals` (r:1 w:1)
+ /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
+ /// Storage: `Treasury::Proposals` (r:100 w:100)
+ /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
+ /// Storage: `Bounties::BountyApprovals` (r:1 w:1)
+ /// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
/// The range of component `p` is `[0, 100]`.
fn on_initialize_proposals(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `149 + p * (252 ±0)`
// Estimated: `3593 + p * (5206 ±0)`
- // Minimum execution time: 45_311_000 picoseconds.
- Weight::from_parts(45_969_000, 0)
+ // Minimum execution time: 31_378_000 picoseconds.
+ Weight::from_parts(32_079_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
- // Standard Error: 224_903
- .saturating_add(Weight::from_parts(58_308_206, 0).saturating_mul(p.into()))
- .saturating_add(T::DbWeight::get().reads(5))
+ // Standard Error: 217_012
+ .saturating_add(Weight::from_parts(52_183_221, 0).saturating_mul(p.into()))
+ .saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(p.into())))
- .saturating_add(T::DbWeight::get().writes(5))
+ .saturating_add(T::DbWeight::get().writes(4))
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(p.into())))
.saturating_add(Weight::from_parts(0, 5206).saturating_mul(p.into()))
}
diff --git a/runtime/litentry/src/weights/pallet_utility.rs b/runtime/litentry/src/weights/pallet_utility.rs
index ec20abfca6..6eca7ed748 100644
--- a/runtime/litentry/src/weights/pallet_utility.rs
+++ b/runtime/litentry/src/weights/pallet_utility.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_utility`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -54,18 +54,18 @@ impl pallet_utility::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 9_917_000 picoseconds.
- Weight::from_parts(78_248_807, 0)
+ // Minimum execution time: 6_184_000 picoseconds.
+ Weight::from_parts(6_391_000, 0)
.saturating_add(Weight::from_parts(0, 0))
- // Standard Error: 26_138
- .saturating_add(Weight::from_parts(7_312_794, 0).saturating_mul(c.into()))
+ // Standard Error: 21_474
+ .saturating_add(Weight::from_parts(6_376_036, 0).saturating_mul(c.into()))
}
fn as_derivative() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 7_286_000 picoseconds.
- Weight::from_parts(7_479_000, 0)
+ // Minimum execution time: 4_500_000 picoseconds.
+ Weight::from_parts(4_695_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
/// The range of component `c` is `[0, 1000]`.
@@ -73,18 +73,18 @@ impl pallet_utility::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 9_928_000 picoseconds.
- Weight::from_parts(10_138_000, 0)
+ // Minimum execution time: 6_316_000 picoseconds.
+ Weight::from_parts(6_492_000, 0)
.saturating_add(Weight::from_parts(0, 0))
- // Standard Error: 39_618
- .saturating_add(Weight::from_parts(8_463_031, 0).saturating_mul(c.into()))
+ // Standard Error: 21_583
+ .saturating_add(Weight::from_parts(6_693_137, 0).saturating_mul(c.into()))
}
fn dispatch_as() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 13_284_000 picoseconds.
- Weight::from_parts(13_626_000, 0)
+ // Minimum execution time: 8_316_000 picoseconds.
+ Weight::from_parts(8_678_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
/// The range of component `c` is `[0, 1000]`.
@@ -92,10 +92,10 @@ impl pallet_utility::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 10_070_000 picoseconds.
- Weight::from_parts(10_291_000, 0)
+ // Minimum execution time: 6_336_000 picoseconds.
+ Weight::from_parts(6_542_000, 0)
.saturating_add(Weight::from_parts(0, 0))
- // Standard Error: 19_655
- .saturating_add(Weight::from_parts(7_409_737, 0).saturating_mul(c.into()))
+ // Standard Error: 22_284
+ .saturating_add(Weight::from_parts(6_274_356, 0).saturating_mul(c.into()))
}
}
diff --git a/runtime/litentry/src/weights/pallet_vc_management.rs b/runtime/litentry/src/weights/pallet_vc_management.rs
index 6ede65a8ae..13b27f956c 100644
--- a/runtime/litentry/src/weights/pallet_vc_management.rs
+++ b/runtime/litentry/src/weights/pallet_vc_management.rs
@@ -17,16 +17,16 @@
//! Autogenerated weights for `pallet_vc_management`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2024-01-19, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("litentry-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
// benchmark
// pallet
-// --chain=rococo-dev
+// --chain=litentry-dev
// --execution=wasm
// --db-cache=20
// --wasm-execution=compiled
@@ -36,7 +36,7 @@
// --steps=20
// --repeat=50
// --header=./LICENSE_HEADER
-// --output=./runtime/rococo/src/weights/pallet_vc_management.rs
+// --output=./runtime/litentry/src/weights/pallet_vc_management.rs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,128 +49,128 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_vc_management`.
pub struct WeightInfo(PhantomData);
impl pallet_vc_management::WeightInfo for WeightInfo {
- /// Storage: VCManagement Delegatee (r:0 w:1)
- /// Proof: VCManagement Delegatee (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
+ /// Storage: `VCManagement::Delegatee` (r:0 w:1)
+ /// Proof: `VCManagement::Delegatee` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
fn add_delegatee() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 12_994_000 picoseconds.
- Weight::from_parts(13_371_000, 0)
+ // Minimum execution time: 8_222_000 picoseconds.
+ Weight::from_parts(8_763_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: VCManagement Delegatee (r:1 w:1)
- /// Proof: VCManagement Delegatee (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
+ /// Storage: `VCManagement::Delegatee` (r:1 w:1)
+ /// Proof: `VCManagement::Delegatee` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
fn remove_delegatee() -> Weight {
// Proof Size summary in bytes:
- // Measured: `113`
+ // Measured: `79`
// Estimated: `3513`
- // Minimum execution time: 18_939_000 picoseconds.
- Weight::from_parts(19_373_000, 0)
+ // Minimum execution time: 12_343_000 picoseconds.
+ Weight::from_parts(13_025_000, 0)
.saturating_add(Weight::from_parts(0, 3513))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: VCMPExtrinsicWhitelist GroupControlOn (r:1 w:0)
- /// Proof Skipped: VCMPExtrinsicWhitelist GroupControlOn (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `VCMPExtrinsicWhitelist::GroupControlOn` (r:1 w:0)
+ /// Proof: `VCMPExtrinsicWhitelist::GroupControlOn` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn request_vc() -> Weight {
// Proof Size summary in bytes:
- // Measured: `42`
- // Estimated: `1527`
- // Minimum execution time: 15_031_000 picoseconds.
- Weight::from_parts(16_267_000, 0)
- .saturating_add(Weight::from_parts(0, 1527))
+ // Measured: `6`
+ // Estimated: `1491`
+ // Minimum execution time: 9_271_000 picoseconds.
+ Weight::from_parts(9_743_000, 0)
+ .saturating_add(Weight::from_parts(0, 1491))
.saturating_add(T::DbWeight::get().reads(1))
}
- /// Storage: Teerex EnclaveIndex (r:1 w:0)
- /// Proof Skipped: Teerex EnclaveIndex (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Teebag::EnclaveRegistry` (r:1 w:0)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn vc_issued() -> Weight {
// Proof Size summary in bytes:
- // Measured: `255`
- // Estimated: `3720`
- // Minimum execution time: 19_878_000 picoseconds.
- Weight::from_parts(20_219_000, 0)
- .saturating_add(Weight::from_parts(0, 3720))
+ // Measured: `347`
+ // Estimated: `3812`
+ // Minimum execution time: 12_714_000 picoseconds.
+ Weight::from_parts(13_025_000, 0)
+ .saturating_add(Weight::from_parts(0, 3812))
.saturating_add(T::DbWeight::get().reads(1))
}
- /// Storage: Teerex EnclaveIndex (r:1 w:0)
- /// Proof Skipped: Teerex EnclaveIndex (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Teebag::EnclaveRegistry` (r:1 w:0)
+ /// Proof: `Teebag::EnclaveRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn some_error() -> Weight {
// Proof Size summary in bytes:
- // Measured: `255`
- // Estimated: `3720`
- // Minimum execution time: 20_075_000 picoseconds.
- Weight::from_parts(20_681_000, 0)
- .saturating_add(Weight::from_parts(0, 3720))
+ // Measured: `347`
+ // Estimated: `3812`
+ // Minimum execution time: 12_374_000 picoseconds.
+ Weight::from_parts(12_820_000, 0)
+ .saturating_add(Weight::from_parts(0, 3812))
.saturating_add(T::DbWeight::get().reads(1))
}
- /// Storage: VCManagement Admin (r:1 w:1)
- /// Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
+ /// Storage: `VCManagement::Admin` (r:1 w:1)
+ /// Proof: `VCManagement::Admin` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
fn set_admin() -> Weight {
// Proof Size summary in bytes:
// Measured: `61`
// Estimated: `1517`
- // Minimum execution time: 16_327_000 picoseconds.
- Weight::from_parts(16_714_000, 0)
+ // Minimum execution time: 10_442_000 picoseconds.
+ Weight::from_parts(10_727_000, 0)
.saturating_add(Weight::from_parts(0, 1517))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: VCManagement Admin (r:1 w:0)
- /// Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
- /// Storage: VCManagement SchemaRegistryIndex (r:1 w:1)
- /// Proof: VCManagement SchemaRegistryIndex (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
- /// Storage: VCManagement SchemaRegistry (r:0 w:1)
- /// Proof: VCManagement SchemaRegistry (max_values: None, max_size: Some(2621), added: 5096, mode: MaxEncodedLen)
+ /// Storage: `VCManagement::Admin` (r:1 w:0)
+ /// Proof: `VCManagement::Admin` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
+ /// Storage: `VCManagement::SchemaRegistryIndex` (r:1 w:1)
+ /// Proof: `VCManagement::SchemaRegistryIndex` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
+ /// Storage: `VCManagement::SchemaRegistry` (r:0 w:1)
+ /// Proof: `VCManagement::SchemaRegistry` (`max_values`: None, `max_size`: Some(2621), added: 5096, mode: `MaxEncodedLen`)
fn add_schema() -> Weight {
// Proof Size summary in bytes:
// Measured: `61`
// Estimated: `1517`
- // Minimum execution time: 20_968_000 picoseconds.
- Weight::from_parts(21_334_000, 0)
+ // Minimum execution time: 14_258_000 picoseconds.
+ Weight::from_parts(14_780_000, 0)
.saturating_add(Weight::from_parts(0, 1517))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: VCManagement Admin (r:1 w:0)
- /// Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
- /// Storage: VCManagement SchemaRegistry (r:1 w:1)
- /// Proof: VCManagement SchemaRegistry (max_values: None, max_size: Some(2621), added: 5096, mode: MaxEncodedLen)
+ /// Storage: `VCManagement::Admin` (r:1 w:0)
+ /// Proof: `VCManagement::Admin` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
+ /// Storage: `VCManagement::SchemaRegistry` (r:1 w:1)
+ /// Proof: `VCManagement::SchemaRegistry` (`max_values`: None, `max_size`: Some(2621), added: 5096, mode: `MaxEncodedLen`)
fn disable_schema() -> Weight {
// Proof Size summary in bytes:
// Measured: `179`
// Estimated: `6086`
- // Minimum execution time: 21_697_000 picoseconds.
- Weight::from_parts(22_113_000, 0)
+ // Minimum execution time: 14_743_000 picoseconds.
+ Weight::from_parts(15_193_000, 0)
.saturating_add(Weight::from_parts(0, 6086))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: VCManagement Admin (r:1 w:0)
- /// Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
- /// Storage: VCManagement SchemaRegistry (r:1 w:1)
- /// Proof: VCManagement SchemaRegistry (max_values: None, max_size: Some(2621), added: 5096, mode: MaxEncodedLen)
+ /// Storage: `VCManagement::Admin` (r:1 w:0)
+ /// Proof: `VCManagement::Admin` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
+ /// Storage: `VCManagement::SchemaRegistry` (r:1 w:1)
+ /// Proof: `VCManagement::SchemaRegistry` (`max_values`: None, `max_size`: Some(2621), added: 5096, mode: `MaxEncodedLen`)
fn activate_schema() -> Weight {
// Proof Size summary in bytes:
// Measured: `179`
// Estimated: `6086`
- // Minimum execution time: 21_328_000 picoseconds.
- Weight::from_parts(21_743_000, 0)
+ // Minimum execution time: 14_641_000 picoseconds.
+ Weight::from_parts(15_001_000, 0)
.saturating_add(Weight::from_parts(0, 6086))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: VCManagement Admin (r:1 w:0)
- /// Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
- /// Storage: VCManagement SchemaRegistry (r:1 w:1)
- /// Proof: VCManagement SchemaRegistry (max_values: None, max_size: Some(2621), added: 5096, mode: MaxEncodedLen)
+ /// Storage: `VCManagement::Admin` (r:1 w:0)
+ /// Proof: `VCManagement::Admin` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
+ /// Storage: `VCManagement::SchemaRegistry` (r:1 w:1)
+ /// Proof: `VCManagement::SchemaRegistry` (`max_values`: None, `max_size`: Some(2621), added: 5096, mode: `MaxEncodedLen`)
fn revoke_schema() -> Weight {
// Proof Size summary in bytes:
// Measured: `179`
// Estimated: `6086`
- // Minimum execution time: 22_141_000 picoseconds.
- Weight::from_parts(22_502_000, 0)
+ // Minimum execution time: 15_201_000 picoseconds.
+ Weight::from_parts(15_630_000, 0)
.saturating_add(Weight::from_parts(0, 6086))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
diff --git a/runtime/rococo/Cargo.toml b/runtime/rococo/Cargo.toml
index 8ce8ec4724..0da86e3f28 100644
--- a/runtime/rococo/Cargo.toml
+++ b/runtime/rococo/Cargo.toml
@@ -81,8 +81,8 @@ pallet-asset-manager = { workspace = true }
pallet-assets = { workspace = true }
pallet-assets-handler = { workspace = true }
pallet-bitacross = { workspace = true }
-pallet-bridge = { workspace = true }
pallet-bridge-transfer = { workspace = true }
+pallet-chain-bridge = { workspace = true }
pallet-evm-assertions = { workspace = true }
pallet-extrinsic-filter = { workspace = true }
pallet-group = { workspace = true }
@@ -161,7 +161,7 @@ runtime-benchmarks = [
"runtime-common/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
- "pallet-bridge/runtime-benchmarks",
+ "pallet-chain-bridge/runtime-benchmarks",
"pallet-bridge-transfer/runtime-benchmarks",
"pallet-extrinsic-filter/runtime-benchmarks",
"cumulus-pallet-parachain-system/runtime-benchmarks",
@@ -259,7 +259,7 @@ std = [
'runtime-common/std',
"pallet-account-fix/std",
"pallet-bitacross/std",
- "pallet-bridge/std",
+ "pallet-chain-bridge/std",
"pallet-bridge-transfer/std",
"pallet-evm-assertions/std",
"pallet-extrinsic-filter/std",
@@ -295,7 +295,7 @@ try-runtime = [
"pallet-balances/try-runtime",
"pallet-bitacross/try-runtime",
"pallet-bounties/try-runtime",
- "pallet-bridge/try-runtime",
+ "pallet-chain-bridge/try-runtime",
"pallet-bridge-transfer/try-runtime",
"pallet-collective/try-runtime",
"pallet-democracy/try-runtime",
diff --git a/runtime/rococo/src/lib.rs b/runtime/rococo/src/lib.rs
index af529a5ad8..c875ce5e53 100644
--- a/runtime/rococo/src/lib.rs
+++ b/runtime/rococo/src/lib.rs
@@ -267,7 +267,7 @@ impl frame_system::Config for Runtime {
type OnKilledAccount = ();
type DbWeight = RocksDbWeight;
type BaseCallFilter = BaseCallFilter;
- type SystemWeightInfo = ();
+ type SystemWeightInfo = weights::frame_system::WeightInfo;
type BlockWeights = RuntimeBlockWeights;
type BlockLength = BlockLength;
type SS58Prefix = SS58Prefix;
@@ -913,14 +913,14 @@ parameter_types! {
pub TreasuryAccount: AccountId = TreasuryPalletId::get().into_account_truncating();
}
-impl pallet_bridge::Config for Runtime {
+impl pallet_chain_bridge::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type BridgeCommitteeOrigin = EnsureRootOrHalfCouncil;
type Proposal = RuntimeCall;
type BridgeChainId = BridgeChainId;
type Balance = Balance;
type ProposalLifetime = ProposalLifetime;
- type WeightInfo = weights::pallet_bridge::WeightInfo;
+ type WeightInfo = weights::pallet_chain_bridge::WeightInfo;
}
parameter_types! {
@@ -949,7 +949,7 @@ impl SortedMembers for TransferAssetsAnyone {
impl pallet_bridge_transfer::Config for Runtime {
type BridgeHandler = AssetsHandler;
- type BridgeOrigin = pallet_bridge::EnsureBridge;
+ type BridgeOrigin = pallet_chain_bridge::EnsureBridge;
type TransferAssetsMembers = TransferAssetsAnyone;
type WeightInfo = weights::pallet_bridge_transfer::WeightInfo;
}
@@ -1234,7 +1234,7 @@ construct_runtime! {
Assets: pallet_assets = 56,
// Rococo pallets
- ChainBridge: pallet_bridge = 60,
+ ChainBridge: pallet_chain_bridge= 60,
BridgeTransfer: pallet_bridge_transfer = 61,
ExtrinsicFilter: pallet_extrinsic_filter = 63,
IdentityManagement: pallet_identity_management = 64,
@@ -1387,7 +1387,7 @@ mod benches {
[cumulus_pallet_xcmp_queue, XcmpQueue]
[pallet_identity_management, IdentityManagement]
[pallet_vc_management, VCManagement]
- [pallet_bridge,ChainBridge]
+ [pallet_chain_bridge,ChainBridge]
[pallet_bridge_transfer,BridgeTransfer]
[pallet_teebag, Teebag]
);
diff --git a/runtime/rococo/src/migration/P9190/bridge_related.rs b/runtime/rococo/src/migration/P9190/bridge_related.rs
index 69192a8398..ee66a6dcb9 100644
--- a/runtime/rococo/src/migration/P9190/bridge_related.rs
+++ b/runtime/rococo/src/migration/P9190/bridge_related.rs
@@ -23,7 +23,7 @@ use frame_support::{
};
use pallet_assets_handler::{AssetInfo, ExternalBalances, MaximumIssuance, ResourceToAssetInfo};
use pallet_balances::AccountData;
-use pallet_bridge::{BridgeChainId, ResourceId};
+use pallet_chain_bridge::{BridgeChainId, ResourceId};
use sp_std::{marker::PhantomData, vec::Vec};
pub const DECIMAL_CONVERTOR: u128 = 1_000_000u128;
@@ -46,12 +46,12 @@ mod old {
>;
#[frame_support::storage_alias]
- pub type Resources =
- StorageMap, Blake2_256, ResourceId, Vec>;
+ pub type Resources =
+ StorageMap, Blake2_256, ResourceId, Vec>;
#[frame_support::storage_alias]
- pub type BridgeFee =
- StorageMap, Twox64Concat, BridgeChainId, u128>;
+ pub type BridgeFee =
+ StorageMap, Twox64Concat, BridgeChainId, u128>;
}
pub const NATIVE_TOKEN_RESOURCE_ID: [u8; 32] =
@@ -69,7 +69,7 @@ where
+ pallet_assets::Config
+ pallet_assets_handler::Config
+ pallet_balances::Config
- + pallet_bridge::Config
+ + pallet_chain_bridge::Config
+ pallet_bridge_transfer::Config,
{
pub fn relocate_resource_fee_storage() -> frame_support::weights::Weight {
@@ -163,7 +163,7 @@ where
+ pallet_assets::Config
+ pallet_assets_handler::Config
+ pallet_balances::Config
- + pallet_bridge::Config
+ + pallet_chain_bridge::Config
+ pallet_bridge_transfer::Config,
{
pub fn pre_upgrade_resource_fee_storage() -> Result, &'static str> {
@@ -257,7 +257,7 @@ where
+ pallet_assets::Config
+ pallet_assets_handler::Config
+ pallet_balances::Config
- + pallet_bridge::Config
+ + pallet_chain_bridge::Config
+ pallet_bridge_transfer::Config,
{
#[cfg(feature = "try-runtime")]
diff --git a/runtime/rococo/src/weights/cumulus_pallet_xcmp_queue.rs b/runtime/rococo/src/weights/cumulus_pallet_xcmp_queue.rs
index 11ddda9d2c..64fd336803 100644
--- a/runtime/rococo/src/weights/cumulus_pallet_xcmp_queue.rs
+++ b/runtime/rococo/src/weights/cumulus_pallet_xcmp_queue.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("rococo-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,26 +49,26 @@ use core::marker::PhantomData;
/// Weight functions for `cumulus_pallet_xcmp_queue`.
pub struct WeightInfo(PhantomData);
impl cumulus_pallet_xcmp_queue::WeightInfo for WeightInfo {
- /// Storage: XcmpQueue QueueConfig (r:1 w:1)
- /// Proof Skipped: XcmpQueue QueueConfig (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
+ /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_config_with_u32() -> Weight {
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `1594`
- // Minimum execution time: 8_168_000 picoseconds.
- Weight::from_parts(8_545_000, 0)
+ // Minimum execution time: 5_303_000 picoseconds.
+ Weight::from_parts(5_485_000, 0)
.saturating_add(Weight::from_parts(0, 1594))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: XcmpQueue QueueConfig (r:1 w:1)
- /// Proof Skipped: XcmpQueue QueueConfig (max_values: Some(1), max_size: None, mode: Measured)
+ /// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
+ /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_config_with_weight() -> Weight {
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `1594`
- // Minimum execution time: 8_244_000 picoseconds.
- Weight::from_parts(8_652_000, 0)
+ // Minimum execution time: 5_285_000 picoseconds.
+ Weight::from_parts(5_585_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/rococo/src/weights/frame_system.rs b/runtime/rococo/src/weights/frame_system.rs
index beb8e20ee4..786749bc3e 100644
--- a/runtime/rococo/src/weights/frame_system.rs
+++ b/runtime/rococo/src/weights/frame_system.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `frame_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("rococo-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -54,77 +54,99 @@ impl frame_system::WeightInfo for WeightInfo {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 3_096_000 picoseconds.
- Weight::from_parts(3_167_000, 0)
+ // Minimum execution time: 2_161_000 picoseconds.
+ Weight::from_parts(2_227_000, 0)
.saturating_add(Weight::from_parts(0, 0))
- // Standard Error: 2
- .saturating_add(Weight::from_parts(617, 0).saturating_mul(b.into()))
+ // Standard Error: 3
+ .saturating_add(Weight::from_parts(432, 0).saturating_mul(b.into()))
}
/// The range of component `b` is `[0, 3932160]`.
fn remark_with_event(b: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 10_656_000 picoseconds.
- Weight::from_parts(10_871_000, 0)
+ // Minimum execution time: 7_292_000 picoseconds.
+ Weight::from_parts(7_481_000, 0)
.saturating_add(Weight::from_parts(0, 0))
- // Standard Error: 5
- .saturating_add(Weight::from_parts(2_314, 0).saturating_mul(b.into()))
+ // Standard Error: 8
+ .saturating_add(Weight::from_parts(2_345, 0).saturating_mul(b.into()))
}
- /// Storage: System Digest (r:1 w:1)
- /// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: unknown `0x3a686561707061676573` (r:0 w:1)
- /// Proof Skipped: unknown `0x3a686561707061676573` (r:0 w:1)
+ /// Storage: `System::Digest` (r:1 w:1)
+ /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
+ /// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
fn set_heap_pages() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `1485`
- // Minimum execution time: 5_535_000 picoseconds.
- Weight::from_parts(5_722_000, 0)
+ // Minimum execution time: 3_724_000 picoseconds.
+ Weight::from_parts(4_032_000, 0)
.saturating_add(Weight::from_parts(0, 1485))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: Skipped Metadata (r:0 w:0)
- /// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
+ /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
+ /// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
+ /// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
+ /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
+ /// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
+ /// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn set_code() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `264`
+ // Estimated: `1749`
+ // Minimum execution time: 131_530_473_000 picoseconds.
+ Weight::from_parts(138_435_551_000, 0)
+ .saturating_add(Weight::from_parts(0, 1749))
+ .saturating_add(T::DbWeight::get().reads(4))
+ .saturating_add(T::DbWeight::get().writes(3))
+ }
+ /// Storage: `Skipped::Metadata` (r:0 w:0)
+ /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `i` is `[0, 1000]`.
fn set_storage(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 2_967_000 picoseconds.
- Weight::from_parts(3_030_000, 0)
+ // Minimum execution time: 2_328_000 picoseconds.
+ Weight::from_parts(2_408_000, 0)
.saturating_add(Weight::from_parts(0, 0))
- // Standard Error: 5_553
- .saturating_add(Weight::from_parts(1_090_130, 0).saturating_mul(i.into()))
+ // Standard Error: 7_057
+ .saturating_add(Weight::from_parts(780_166, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
- /// Storage: Skipped Metadata (r:0 w:0)
- /// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Skipped::Metadata` (r:0 w:0)
+ /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `i` is `[0, 1000]`.
fn kill_storage(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
- // Minimum execution time: 2_889_000 picoseconds.
- Weight::from_parts(3_045_000, 0)
+ // Minimum execution time: 2_307_000 picoseconds.
+ Weight::from_parts(2_379_000, 0)
.saturating_add(Weight::from_parts(0, 0))
- // Standard Error: 2_430
- .saturating_add(Weight::from_parts(811_384, 0).saturating_mul(i.into()))
+ // Standard Error: 3_432
+ .saturating_add(Weight::from_parts(562_993, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
- /// Storage: Skipped Metadata (r:0 w:0)
- /// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `Skipped::Metadata` (r:0 w:0)
+ /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `p` is `[0, 1000]`.
fn kill_prefix(p: u32, ) -> Weight {
// Proof Size summary in bytes:
- // Measured: `110 + p * (69 ±0)`
- // Estimated: `113 + p * (70 ±0)`
- // Minimum execution time: 5_480_000 picoseconds.
- Weight::from_parts(5_611_000, 0)
- .saturating_add(Weight::from_parts(0, 113))
- // Standard Error: 9_382
- .saturating_add(Weight::from_parts(1_967_546, 0).saturating_mul(p.into()))
+ // Measured: `114 + p * (69 ±0)`
+ // Estimated: `102 + p * (70 ±0)`
+ // Minimum execution time: 3_949_000 picoseconds.
+ Weight::from_parts(4_078_000, 0)
+ .saturating_add(Weight::from_parts(0, 102))
+ // Standard Error: 13_088
+ .saturating_add(Weight::from_parts(1_249_199, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
diff --git a/runtime/rococo/src/weights/mod.rs b/runtime/rococo/src/weights/mod.rs
index daca9149bd..b75428447f 100644
--- a/runtime/rococo/src/weights/mod.rs
+++ b/runtime/rococo/src/weights/mod.rs
@@ -17,11 +17,11 @@
#![allow(clippy::unnecessary_cast)]
pub mod cumulus_pallet_xcmp_queue;
-// pub mod frame_system;
+pub mod frame_system;
pub mod pallet_asset_manager;
pub mod pallet_balances;
-pub mod pallet_bridge;
pub mod pallet_bridge_transfer;
+pub mod pallet_chain_bridge;
pub mod pallet_collective;
pub mod pallet_democracy;
pub mod pallet_evm;
diff --git a/runtime/rococo/src/weights/pallet_asset_manager.rs b/runtime/rococo/src/weights/pallet_asset_manager.rs
index 252f531858..1c66f95adf 100644
--- a/runtime/rococo/src/weights/pallet_asset_manager.rs
+++ b/runtime/rococo/src/weights/pallet_asset_manager.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_asset_manager`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("rococo-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,76 +49,76 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_asset_manager`.
pub struct WeightInfo(PhantomData);
impl pallet_asset_manager::WeightInfo for WeightInfo {
- /// Storage: AssetManager AssetTypeId (r:1 w:1)
- /// Proof Skipped: AssetManager AssetTypeId (max_values: None, max_size: None, mode: Measured)
- /// Storage: AssetManager ForeignAssetTracker (r:1 w:1)
- /// Proof Skipped: AssetManager ForeignAssetTracker (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: AssetManager AssetIdType (r:0 w:1)
- /// Proof Skipped: AssetManager AssetIdType (max_values: None, max_size: None, mode: Measured)
- /// Storage: AssetManager AssetIdMetadata (r:0 w:1)
- /// Proof Skipped: AssetManager AssetIdMetadata (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `AssetManager::AssetTypeId` (r:1 w:1)
+ /// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetManager::ForeignAssetTracker` (r:1 w:1)
+ /// Proof: `AssetManager::ForeignAssetTracker` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetManager::AssetIdType` (r:0 w:1)
+ /// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetManager::AssetIdMetadata` (r:0 w:1)
+ /// Proof: `AssetManager::AssetIdMetadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn register_foreign_asset_type() -> Weight {
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `3607`
- // Minimum execution time: 33_201_000 picoseconds.
- Weight::from_parts(33_992_000, 0)
+ // Minimum execution time: 22_417_000 picoseconds.
+ Weight::from_parts(23_511_000, 0)
.saturating_add(Weight::from_parts(0, 3607))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(4))
}
- /// Storage: AssetManager AssetIdType (r:1 w:0)
- /// Proof Skipped: AssetManager AssetIdType (max_values: None, max_size: None, mode: Measured)
- /// Storage: AssetManager AssetIdMetadata (r:0 w:1)
- /// Proof Skipped: AssetManager AssetIdMetadata (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `AssetManager::AssetIdType` (r:1 w:0)
+ /// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetManager::AssetIdMetadata` (r:0 w:1)
+ /// Proof: `AssetManager::AssetIdMetadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_foreign_asset_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `302`
// Estimated: `3767`
- // Minimum execution time: 20_127_000 picoseconds.
- Weight::from_parts(20_701_000, 0)
+ // Minimum execution time: 13_327_000 picoseconds.
+ Weight::from_parts(13_896_000, 0)
.saturating_add(Weight::from_parts(0, 3767))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: AssetManager AssetIdType (r:1 w:0)
- /// Proof Skipped: AssetManager AssetIdType (max_values: None, max_size: None, mode: Measured)
- /// Storage: AssetManager AssetIdUnitsPerSecond (r:0 w:1)
- /// Proof Skipped: AssetManager AssetIdUnitsPerSecond (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `AssetManager::AssetIdType` (r:1 w:0)
+ /// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetManager::AssetIdUnitsPerSecond` (r:0 w:1)
+ /// Proof: `AssetManager::AssetIdUnitsPerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn set_asset_units_per_second() -> Weight {
// Proof Size summary in bytes:
// Measured: `302`
// Estimated: `3767`
- // Minimum execution time: 19_489_000 picoseconds.
- Weight::from_parts(19_879_000, 0)
+ // Minimum execution time: 12_746_000 picoseconds.
+ Weight::from_parts(13_313_000, 0)
.saturating_add(Weight::from_parts(0, 3767))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: AssetManager AssetIdType (r:1 w:1)
- /// Proof Skipped: AssetManager AssetIdType (max_values: None, max_size: None, mode: Measured)
- /// Storage: AssetManager AssetTypeId (r:1 w:1)
- /// Proof Skipped: AssetManager AssetTypeId (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `AssetManager::AssetIdType` (r:1 w:1)
+ /// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetManager::AssetTypeId` (r:1 w:1)
+ /// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn add_asset_type() -> Weight {
// Proof Size summary in bytes:
// Measured: `325`
// Estimated: `3790`
- // Minimum execution time: 25_212_000 picoseconds.
- Weight::from_parts(25_708_000, 0)
+ // Minimum execution time: 17_319_000 picoseconds.
+ Weight::from_parts(18_423_000, 0)
.saturating_add(Weight::from_parts(0, 3790))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: AssetManager AssetTypeId (r:2 w:1)
- /// Proof Skipped: AssetManager AssetTypeId (max_values: None, max_size: None, mode: Measured)
- /// Storage: AssetManager AssetIdType (r:0 w:1)
- /// Proof Skipped: AssetManager AssetIdType (max_values: None, max_size: None, mode: Measured)
+ /// Storage: `AssetManager::AssetTypeId` (r:2 w:1)
+ /// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetManager::AssetIdType` (r:0 w:1)
+ /// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn remove_asset_type() -> Weight {
// Proof Size summary in bytes:
// Measured: `482`
// Estimated: `6422`
- // Minimum execution time: 31_996_000 picoseconds.
- Weight::from_parts(32_579_000, 0)
+ // Minimum execution time: 21_607_000 picoseconds.
+ Weight::from_parts(22_859_000, 0)
.saturating_add(Weight::from_parts(0, 6422))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
diff --git a/runtime/rococo/src/weights/pallet_balances.rs b/runtime/rococo/src/weights/pallet_balances.rs
index 4e4de5a3b0..33dbbb5ea0 100644
--- a/runtime/rococo/src/weights/pallet_balances.rs
+++ b/runtime/rococo/src/weights/pallet_balances.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_balances`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("rococo-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,102 +49,102 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_balances`.
pub struct WeightInfo(PhantomData);
impl pallet_balances::WeightInfo for WeightInfo {
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn transfer_allow_death() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3593`
- // Minimum execution time: 73_884_000 picoseconds.
- Weight::from_parts(75_841_000, 0)
+ // Minimum execution time: 53_007_000 picoseconds.
+ Weight::from_parts(68_015_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn transfer_keep_alive() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3593`
- // Minimum execution time: 55_141_000 picoseconds.
- Weight::from_parts(57_048_000, 0)
+ // Minimum execution time: 39_762_000 picoseconds.
+ Weight::from_parts(41_499_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// 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: `140`
// Estimated: `3593`
- // Minimum execution time: 22_969_000 picoseconds.
- Weight::from_parts(23_686_000, 0)
+ // Minimum execution time: 15_589_000 picoseconds.
+ Weight::from_parts(16_536_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// 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: `140`
// Estimated: `3593`
- // Minimum execution time: 33_996_000 picoseconds.
- Weight::from_parts(34_787_000, 0)
+ // Minimum execution time: 22_560_000 picoseconds.
+ Weight::from_parts(23_315_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: System Account (r:2 w:2)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:2 w:2)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn force_transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `103`
// Estimated: `6196`
- // Minimum execution time: 77_129_000 picoseconds.
- Weight::from_parts(78_643_000, 0)
+ // Minimum execution time: 54_644_000 picoseconds.
+ Weight::from_parts(56_287_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn transfer_all() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3593`
- // Minimum execution time: 67_673_000 picoseconds.
- Weight::from_parts(68_926_000, 0)
+ // Minimum execution time: 49_620_000 picoseconds.
+ Weight::from_parts(52_548_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: System Account (r:1 w:1)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn force_unreserve() -> Weight {
// Proof Size summary in bytes:
// Measured: `140`
// Estimated: `3593`
- // Minimum execution time: 26_492_000 picoseconds.
- Weight::from_parts(27_038_000, 0)
+ // Minimum execution time: 18_255_000 picoseconds.
+ Weight::from_parts(18_795_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
- /// Storage: System Account (r:1000 w:1000)
- /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+ /// Storage: `System::Account` (r:1000 w:1000)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// The range of component `u` is `[1, 1000]`.
fn upgrade_accounts(u: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + u * (136 ±0)`
// Estimated: `990 + u * (2603 ±0)`
- // Minimum execution time: 25_087_000 picoseconds.
- Weight::from_parts(25_453_000, 0)
+ // Minimum execution time: 16_995_000 picoseconds.
+ Weight::from_parts(17_342_000, 0)
.saturating_add(Weight::from_parts(0, 990))
- // Standard Error: 91_401
- .saturating_add(Weight::from_parts(22_138_510, 0).saturating_mul(u.into()))
+ // Standard Error: 30_882
+ .saturating_add(Weight::from_parts(19_977_590, 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/rococo/src/weights/pallet_bridge.rs b/runtime/rococo/src/weights/pallet_bridge.rs
deleted file mode 100644
index 6e48ad7452..0000000000
--- a/runtime/rococo/src/weights/pallet_bridge.rs
+++ /dev/null
@@ -1,163 +0,0 @@
-// Copyright 2020-2024 Trust Computing GmbH.
-// This file is part of Litentry.
-//
-// Litentry is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// Litentry is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with Litentry. If not, see .
-
-//! Autogenerated weights for `pallet_bridge`
-//!
-//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
-//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 20
-
-// Executed Command:
-// ./litentry-collator
-// benchmark
-// pallet
-// --chain=rococo-dev
-// --execution=wasm
-// --db-cache=20
-// --wasm-execution=compiled
-// --pallet=pallet_bridge
-// --extrinsic=*
-// --heap-pages=4096
-// --steps=20
-// --repeat=50
-// --header=./LICENSE_HEADER
-// --output=./runtime/rococo/src/weights/pallet_bridge.rs
-
-#![cfg_attr(rustfmt, rustfmt_skip)]
-#![allow(unused_parens)]
-#![allow(unused_imports)]
-#![allow(missing_docs)]
-
-use frame_support::{traits::Get, weights::Weight};
-use core::marker::PhantomData;
-
-/// Weight functions for `pallet_bridge`.
-pub struct WeightInfo(PhantomData);
-impl pallet_bridge::WeightInfo for WeightInfo {
- /// Storage: ChainBridge RelayerThreshold (r:0 w:1)
- /// Proof Skipped: ChainBridge RelayerThreshold (max_values: Some(1), max_size: None, mode: Measured)
- fn set_threshold() -> Weight {
- // Proof Size summary in bytes:
- // Measured: `0`
- // Estimated: `0`
- // Minimum execution time: 10_246_000 picoseconds.
- Weight::from_parts(10_609_000, 0)
- .saturating_add(Weight::from_parts(0, 0))
- .saturating_add(T::DbWeight::get().writes(1))
- }
- /// Storage: ChainBridge ChainNonces (r:1 w:1)
- /// Proof Skipped: ChainBridge ChainNonces (max_values: None, max_size: None, mode: Measured)
- fn whitelist_chain() -> Weight {
- // Proof Size summary in bytes:
- // Measured: `142`
- // Estimated: `3607`
- // Minimum execution time: 15_986_000 picoseconds.
- Weight::from_parts(16_451_000, 0)
- .saturating_add(Weight::from_parts(0, 3607))
- .saturating_add(T::DbWeight::get().reads(1))
- .saturating_add(T::DbWeight::get().writes(1))
- }
- /// Storage: ChainBridge Relayers (r:1 w:1)
- /// Proof Skipped: ChainBridge Relayers (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge RelayerCount (r:1 w:1)
- /// Proof Skipped: ChainBridge RelayerCount (max_values: Some(1), max_size: None, mode: Measured)
- fn add_relayer() -> Weight {
- // Proof Size summary in bytes:
- // Measured: `142`
- // Estimated: `3607`
- // Minimum execution time: 18_770_000 picoseconds.
- Weight::from_parts(19_235_000, 0)
- .saturating_add(Weight::from_parts(0, 3607))
- .saturating_add(T::DbWeight::get().reads(2))
- .saturating_add(T::DbWeight::get().writes(2))
- }
- /// Storage: ChainBridge Relayers (r:1 w:1)
- /// Proof Skipped: ChainBridge Relayers (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge RelayerCount (r:1 w:1)
- /// Proof Skipped: ChainBridge RelayerCount (max_values: Some(1), max_size: None, mode: Measured)
- fn remove_relayer() -> Weight {
- // Proof Size summary in bytes:
- // Measured: `223`
- // Estimated: `3688`
- // Minimum execution time: 20_653_000 picoseconds.
- Weight::from_parts(21_109_000, 0)
- .saturating_add(Weight::from_parts(0, 3688))
- .saturating_add(T::DbWeight::get().reads(2))
- .saturating_add(T::DbWeight::get().writes(2))
- }
- /// Storage: ChainBridge Relayers (r:1 w:0)
- /// Proof Skipped: ChainBridge Relayers (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge ChainNonces (r:1 w:0)
- /// Proof Skipped: ChainBridge ChainNonces (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge Resources (r:1 w:0)
- /// Proof Skipped: ChainBridge Resources (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge Votes (r:1 w:1)
- /// Proof Skipped: ChainBridge Votes (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge RelayerThreshold (r:1 w:0)
- /// Proof Skipped: ChainBridge RelayerThreshold (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ChainBridge RelayerCount (r:1 w:0)
- /// Proof Skipped: ChainBridge RelayerCount (max_values: Some(1), max_size: None, mode: Measured)
- fn acknowledge_proposal() -> Weight {
- // Proof Size summary in bytes:
- // Measured: `340`
- // Estimated: `3805`
- // Minimum execution time: 52_203_000 picoseconds.
- Weight::from_parts(52_854_000, 0)
- .saturating_add(Weight::from_parts(0, 3805))
- .saturating_add(T::DbWeight::get().reads(6))
- .saturating_add(T::DbWeight::get().writes(1))
- }
- /// Storage: ChainBridge Relayers (r:1 w:0)
- /// Proof Skipped: ChainBridge Relayers (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge ChainNonces (r:1 w:0)
- /// Proof Skipped: ChainBridge ChainNonces (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge Resources (r:1 w:0)
- /// Proof Skipped: ChainBridge Resources (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge Votes (r:1 w:1)
- /// Proof Skipped: ChainBridge Votes (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge RelayerThreshold (r:1 w:0)
- /// Proof Skipped: ChainBridge RelayerThreshold (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ChainBridge RelayerCount (r:1 w:0)
- /// Proof Skipped: ChainBridge RelayerCount (max_values: Some(1), max_size: None, mode: Measured)
- fn reject_proposal() -> Weight {
- // Proof Size summary in bytes:
- // Measured: `340`
- // Estimated: `3805`
- // Minimum execution time: 44_020_000 picoseconds.
- Weight::from_parts(44_771_000, 0)
- .saturating_add(Weight::from_parts(0, 3805))
- .saturating_add(T::DbWeight::get().reads(6))
- .saturating_add(T::DbWeight::get().writes(1))
- }
- /// Storage: ChainBridge Votes (r:1 w:1)
- /// Proof Skipped: ChainBridge Votes (max_values: None, max_size: None, mode: Measured)
- /// Storage: ChainBridge RelayerThreshold (r:1 w:0)
- /// Proof Skipped: ChainBridge RelayerThreshold (max_values: Some(1), max_size: None, mode: Measured)
- /// Storage: ChainBridge RelayerCount (r:1 w:0)
- /// Proof Skipped: ChainBridge RelayerCount (max_values: Some(1), max_size: None, mode: Measured)
- fn eval_vote_state() -> Weight {
- // Proof Size summary in bytes:
- // Measured: `484`
- // Estimated: `3949`
- // Minimum execution time: 19_330_000 picoseconds.
- Weight::from_parts(19_813_000, 0)
- .saturating_add(Weight::from_parts(0, 3949))
- .saturating_add(T::DbWeight::get().reads(3))
- .saturating_add(T::DbWeight::get().writes(1))
- }
-}
diff --git a/runtime/rococo/src/weights/pallet_bridge_transfer.rs b/runtime/rococo/src/weights/pallet_bridge_transfer.rs
index 122e72cce0..550c4446c3 100644
--- a/runtime/rococo/src/weights/pallet_bridge_transfer.rs
+++ b/runtime/rococo/src/weights/pallet_bridge_transfer.rs
@@ -14,17 +14,19 @@
// You should have received a copy of the GNU General Public License
// along with Litentry. If not, see .
-//! Autogenerated weights for pallet_bridge_transfer
+//! Autogenerated weights for `pallet_bridge_transfer`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2022-09-29, STEPS: `20`, REPEAT: 50, LOW RANGE: `[]`, HIGH RANGE: `[]`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litentry-dev"), DB CACHE: 20
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! WORST CASE MAP SIZE: `1000000`
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("rococo-dev")`, DB CACHE: 20
// Executed Command:
-// ./target/release/litentry-collator
+// ./litentry-collator
// benchmark
// pallet
-// --chain=litentry-dev
+// --chain=rococo-dev
// --execution=wasm
// --db-cache=20
// --wasm-execution=compiled
@@ -34,36 +36,55 @@
// --steps=20
// --repeat=50
// --header=./LICENSE_HEADER
-// --template=./templates/benchmark/pallet-weight-template.hbs
-// --output=./pallets/bridge-transfer/src/weights.rs
+// --output=./runtime/rococo/src/weights/pallet_bridge_transfer.rs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
-#![allow(clippy::unnecessary_cast)]
+#![allow(missing_docs)]
-use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
-use sp_std::marker::PhantomData;
+use frame_support::{traits::Get, weights::Weight};
+use core::marker::PhantomData;
-/// Weights for pallet_bridge_transfer using the Litentry node and recommended hardware.
+/// Weight functions for `pallet_bridge_transfer`.
pub struct WeightInfo(PhantomData);
impl pallet_bridge_transfer::WeightInfo for WeightInfo {
- // Storage: BridgeTransfer ExternalBalances (r:1 w:1)
- // Storage: ChainBridge ChainNonces (r:1 w:1)
- // Storage: ChainBridge BridgeFee (r:1 w:0)
- // Storage: System Account (r:2 w:2)
- // Storage: ChainBridge BridgeEvents (r:1 w:1)
+ /// Storage: `AssetsHandler::ResourceToAssetInfo` (r:1 w:0)
+ /// Proof: `AssetsHandler::ResourceToAssetInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:2 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
+ /// Storage: `AssetsHandler::ExternalBalances` (r:1 w:1)
+ /// Proof: `AssetsHandler::ExternalBalances` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::ChainNonces` (r:1 w:1)
+ /// Proof: `ChainBridge::ChainNonces` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::BridgeEvents` (r:1 w:1)
+ /// Proof: `ChainBridge::BridgeEvents` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn transfer_assets() -> Weight {
- Weight::from_parts(59_963_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(6 as u64))
- .saturating_add(T::DbWeight::get().writes(5 as u64))
+ // Proof Size summary in bytes:
+ // Measured: `573`
+ // Estimated: `6196`
+ // Minimum execution time: 60_812_000 picoseconds.
+ Weight::from_parts(62_706_000, 0)
+ .saturating_add(Weight::from_parts(0, 6196))
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(4))
}
- // Storage: BridgeTransfer MaximumIssuance (r:1 w:0)
- // Storage: BridgeTransfer ExternalBalances (r:1 w:1)
- // Storage: System Account (r:1 w:1)
+ /// Storage: `AssetsHandler::ResourceToAssetInfo` (r:1 w:0)
+ /// Proof: `AssetsHandler::ResourceToAssetInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetsHandler::MaximumIssuance` (r:1 w:0)
+ /// Proof: `AssetsHandler::MaximumIssuance` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `AssetsHandler::ExternalBalances` (r:1 w:1)
+ /// Proof: `AssetsHandler::ExternalBalances` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `System::Account` (r:1 w:1)
+ /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn transfer() -> Weight {
- Weight::from_parts(29_134_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(3 as u64))
- .saturating_add(T::DbWeight::get().writes(2 as u64))
+ // Proof Size summary in bytes:
+ // Measured: `328`
+ // Estimated: `3793`
+ // Minimum execution time: 35_475_000 picoseconds.
+ Weight::from_parts(36_847_000, 0)
+ .saturating_add(Weight::from_parts(0, 3793))
+ .saturating_add(T::DbWeight::get().reads(4))
+ .saturating_add(T::DbWeight::get().writes(2))
}
}
diff --git a/runtime/rococo/src/weights/pallet_chain_bridge.rs b/runtime/rococo/src/weights/pallet_chain_bridge.rs
new file mode 100644
index 0000000000..7271e2d637
--- /dev/null
+++ b/runtime/rococo/src/weights/pallet_chain_bridge.rs
@@ -0,0 +1,159 @@
+// Copyright 2020-2024 Trust Computing GmbH.
+// This file is part of Litentry.
+//
+// Litentry is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Litentry is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Litentry. If not, see .
+
+//! Autogenerated weights for `pallet_chain_bridge`
+//!
+//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! WORST CASE MAP SIZE: `1000000`
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("rococo-dev")`, DB CACHE: 20
+
+// Executed Command:
+// ./litentry-collator
+// benchmark
+// pallet
+// --chain=rococo-dev
+// --execution=wasm
+// --db-cache=20
+// --wasm-execution=compiled
+// --pallet=pallet_chain_bridge
+// --extrinsic=*
+// --heap-pages=4096
+// --steps=20
+// --repeat=50
+// --header=./LICENSE_HEADER
+// --output=./runtime/rococo/src/weights/pallet_chain_bridge.rs
+
+#![cfg_attr(rustfmt, rustfmt_skip)]
+#![allow(unused_parens)]
+#![allow(unused_imports)]
+#![allow(missing_docs)]
+
+use frame_support::{traits::Get, weights::Weight};
+use core::marker::PhantomData;
+
+/// Weight functions for `pallet_chain_bridge`.
+pub struct WeightInfo(PhantomData);
+impl pallet_chain_bridge::WeightInfo for WeightInfo {
+ /// Storage: `ChainBridge::RelayerThreshold` (r:0 w:1)
+ /// Proof: `ChainBridge::RelayerThreshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn set_threshold() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 7_198_000 picoseconds.
+ Weight::from_parts(7_687_000, 0)
+ .saturating_add(Weight::from_parts(0, 0))
+ .saturating_add(T::DbWeight::get().writes(1))
+ }
+ /// Storage: `ChainBridge::ChainNonces` (r:1 w:1)
+ /// Proof: `ChainBridge::ChainNonces` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ fn whitelist_chain() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `142`
+ // Estimated: `3607`
+ // Minimum execution time: 10_444_000 picoseconds.
+ Weight::from_parts(10_996_000, 0)
+ .saturating_add(Weight::from_parts(0, 3607))
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
+ }
+ /// Storage: `ChainBridge::Relayers` (r:1 w:1)
+ /// Proof: `ChainBridge::Relayers` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:1)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn add_relayer() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `142`
+ // Estimated: `3607`
+ // Minimum execution time: 12_951_000 picoseconds.
+ Weight::from_parts(13_847_000, 0)
+ .saturating_add(Weight::from_parts(0, 3607))
+ .saturating_add(T::DbWeight::get().reads(2))
+ .saturating_add(T::DbWeight::get().writes(2))
+ }
+ /// Storage: `ChainBridge::Relayers` (r:1 w:1)
+ /// Proof: `ChainBridge::Relayers` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:1)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn remove_relayer() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `223`
+ // Estimated: `3688`
+ // Minimum execution time: 14_662_000 picoseconds.
+ Weight::from_parts(15_484_000, 0)
+ .saturating_add(Weight::from_parts(0, 3688))
+ .saturating_add(T::DbWeight::get().reads(2))
+ .saturating_add(T::DbWeight::get().writes(2))
+ }
+ /// Storage: `ChainBridge::Relayers` (r:1 w:0)
+ /// Proof: `ChainBridge::Relayers` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::ChainNonces` (r:1 w:0)
+ /// Proof: `ChainBridge::ChainNonces` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::Votes` (r:1 w:1)
+ /// Proof: `ChainBridge::Votes` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerThreshold` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerThreshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn acknowledge_proposal() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `285`
+ // Estimated: `3750`
+ // Minimum execution time: 34_507_000 picoseconds.
+ Weight::from_parts(36_153_000, 0)
+ .saturating_add(Weight::from_parts(0, 3750))
+ .saturating_add(T::DbWeight::get().reads(5))
+ .saturating_add(T::DbWeight::get().writes(1))
+ }
+ /// Storage: `ChainBridge::Relayers` (r:1 w:0)
+ /// Proof: `ChainBridge::Relayers` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::ChainNonces` (r:1 w:0)
+ /// Proof: `ChainBridge::ChainNonces` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::Votes` (r:1 w:1)
+ /// Proof: `ChainBridge::Votes` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerThreshold` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerThreshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn reject_proposal() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `285`
+ // Estimated: `3750`
+ // Minimum execution time: 29_590_000 picoseconds.
+ Weight::from_parts(30_478_000, 0)
+ .saturating_add(Weight::from_parts(0, 3750))
+ .saturating_add(T::DbWeight::get().reads(5))
+ .saturating_add(T::DbWeight::get().writes(1))
+ }
+ /// Storage: `ChainBridge::Votes` (r:1 w:1)
+ /// Proof: `ChainBridge::Votes` (`max_values`: None, `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerThreshold` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerThreshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ /// Storage: `ChainBridge::RelayerCount` (r:1 w:0)
+ /// Proof: `ChainBridge::RelayerCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+ fn eval_vote_state() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `451`
+ // Estimated: `3916`
+ // Minimum execution time: 14_114_000 picoseconds.
+ Weight::from_parts(14_930_000, 0)
+ .saturating_add(Weight::from_parts(0, 3916))
+ .saturating_add(T::DbWeight::get().reads(3))
+ .saturating_add(T::DbWeight::get().writes(1))
+ }
+}
diff --git a/runtime/rococo/src/weights/pallet_collective.rs b/runtime/rococo/src/weights/pallet_collective.rs
index 34960feeaf..b3dd85eda1 100644
--- a/runtime/rococo/src/weights/pallet_collective.rs
+++ b/runtime/rococo/src/weights/pallet_collective.rs
@@ -17,10 +17,10 @@
//! Autogenerated weights for `pallet_collective`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2024-08-28, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
-//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 20
+//! HOSTNAME: `litentry-benchmark-server`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
+//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("rococo-dev")`, DB CACHE: 20
// Executed Command:
// ./litentry-collator
@@ -49,28 +49,28 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_collective`.
pub struct WeightInfo(PhantomData