From 79012a103e1f57fcefa852a91691307ba338b69d Mon Sep 17 00:00:00 2001 From: Gianfranco Date: Wed, 11 Sep 2024 15:43:24 -0300 Subject: [PATCH] add benchmarkings (those not failed), modify config to use default weight --- Cargo.lock | 8 +- runtime/amplitude/src/lib.rs | 24 +- runtime/amplitude/src/weights/dia_oracle.rs | 130 +- runtime/amplitude/src/weights/fee.rs | 133 +- runtime/amplitude/src/weights/issue.rs | 316 ++-- runtime/amplitude/src/weights/nomination.rs | 534 ++++-- runtime/amplitude/src/weights/oracle.rs | 80 +- .../src/weights/orml_asset_registry.rs | 44 +- .../orml_currencies_allowance_extension.rs | 130 +- runtime/amplitude/src/weights/pallet_xcm.rs | 295 ++-- .../src/weights/parachain_staking.rs | 1437 ++++++++++++----- runtime/amplitude/src/weights/redeem.rs | 702 +++++--- runtime/amplitude/src/weights/replace.rs | 505 ++++-- .../amplitude/src/weights/stellar_relay.rs | 63 +- .../src/weights/treasury_buyout_extension.rs | 123 +- .../amplitude/src/weights/vault_registry.rs | 894 +++++++--- runtime/foucoco/src/lib.rs | 22 +- runtime/foucoco/src/weights/dia_oracle.rs | 132 +- runtime/foucoco/src/weights/fee.rs | 133 +- runtime/foucoco/src/weights/issue.rs | 316 ++-- runtime/foucoco/src/weights/nomination.rs | 538 ++++-- runtime/foucoco/src/weights/oracle.rs | 80 +- .../src/weights/orml_asset_registry.rs | 46 +- .../orml_currencies_allowance_extension.rs | 136 +- runtime/foucoco/src/weights/pallet_xcm.rs | 265 ++- runtime/foucoco/src/weights/redeem.rs | 822 +++++----- runtime/foucoco/src/weights/replace.rs | 505 ++++-- runtime/foucoco/src/weights/stellar_relay.rs | 63 +- .../src/weights/treasury_buyout_extension.rs | 123 +- runtime/foucoco/src/weights/vault_registry.rs | 902 ++++++++--- runtime/pendulum/src/lib.rs | 20 +- runtime/pendulum/src/weights/dia_oracle.rs | 138 +- runtime/pendulum/src/weights/fee.rs | 133 +- runtime/pendulum/src/weights/issue.rs | 310 +++- runtime/pendulum/src/weights/nomination.rs | 534 ++++-- runtime/pendulum/src/weights/oracle.rs | 78 +- .../src/weights/orml_asset_registry.rs | 48 +- .../orml_currencies_allowance_extension.rs | 130 +- runtime/pendulum/src/weights/pallet_xcm.rs | 295 ++-- runtime/pendulum/src/weights/replace.rs | 505 ++++-- runtime/pendulum/src/weights/stellar_relay.rs | 63 +- .../src/weights/treasury_buyout_extension.rs | 125 +- .../pendulum/src/weights/vault_registry.rs | 894 +++++++--- 43 files changed, 8797 insertions(+), 3977 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f2799b3f2..2aa7ee6b8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -445,7 +445,7 @@ dependencies = [ [[package]] name = "ark-secret-scalar" version = "0.0.2" -source = "git+https://github.com/w3f//ring-vrf?rev=3ddc20?rev=3ddc20#3ddc2051066c4b3f0eadd0ba5700df12500d9754" +source = "git+https://github.com/w3f//ring-vrf?rev=3ddc20#3ddc2051066c4b3f0eadd0ba5700df12500d9754" dependencies = [ "ark-ec", "ark-ff", @@ -493,7 +493,7 @@ dependencies = [ [[package]] name = "ark-transcript" version = "0.0.2" -source = "git+https://github.com/w3f//ring-vrf?rev=3ddc20?rev=3ddc20#3ddc2051066c4b3f0eadd0ba5700df12500d9754" +source = "git+https://github.com/w3f//ring-vrf?rev=3ddc20#3ddc2051066c4b3f0eadd0ba5700df12500d9754" dependencies = [ "ark-ff", "ark-serialize", @@ -1058,7 +1058,7 @@ dependencies = [ [[package]] name = "bandersnatch_vrfs" version = "0.0.4" -source = "git+https://github.com/w3f//ring-vrf?rev=3ddc20?rev=3ddc20#3ddc2051066c4b3f0eadd0ba5700df12500d9754" +source = "git+https://github.com/w3f//ring-vrf?rev=3ddc20#3ddc2051066c4b3f0eadd0ba5700df12500d9754" dependencies = [ "ark-bls12-381", "ark-ec", @@ -3559,7 +3559,7 @@ dependencies = [ [[package]] name = "dleq_vrf" version = "0.0.2" -source = "git+https://github.com/w3f//ring-vrf?rev=3ddc20?rev=3ddc20#3ddc2051066c4b3f0eadd0ba5700df12500d9754" +source = "git+https://github.com/w3f//ring-vrf?rev=3ddc20#3ddc2051066c4b3f0eadd0ba5700df12500d9754" dependencies = [ "ark-ec", "ark-ff", diff --git a/runtime/amplitude/src/lib.rs b/runtime/amplitude/src/lib.rs index d231b4d30..2d09f12f0 100644 --- a/runtime/amplitude/src/lib.rs +++ b/runtime/amplitude/src/lib.rs @@ -938,7 +938,7 @@ impl parachain_staking::Config for Runtime { type NetworkRewardStart = NetworkRewardStart; type NetworkRewardBeneficiary = Treasury; type CollatorRewardRateDecay = CollatorRewardRateDecay; - type WeightInfo = weights::parachain_staking::SubstrateWeight; + type WeightInfo = (); const BLOCKS_PER_YEAR: BlockNumber = BLOCKS_PER_YEAR; } @@ -1070,7 +1070,7 @@ impl dia_oracle::Config for Runtime { type RuntimeEvent = RuntimeEvent; type RuntimeCall = RuntimeCall; type AuthorityId = dia_oracle::crypto::DiaAuthId; - type WeightInfo = weights::dia_oracle::SubstrateWeight; + type WeightInfo = (); } impl frame_system::offchain::SigningTypes for Runtime { @@ -1219,7 +1219,7 @@ cfg_if::cfg_if! { impl oracle::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = weights::oracle::SubstrateWeight; + type WeightInfo = (); type DecimalsLookup = DecimalsLookupImpl; type DataProvider = DataProviderImpl; #[cfg(feature = "runtime-benchmarks")] @@ -1238,7 +1238,7 @@ impl stellar_relay::Config for Runtime { type OrganizationLimit = OrganizationLimit; type ValidatorLimit = ValidatorLimit; type IsPublicNetwork = IsPublicNetwork; - type WeightInfo = weights::stellar_relay::SubstrateWeight; + type WeightInfo =(); } parameter_types! { @@ -1249,7 +1249,7 @@ parameter_types! { } impl fee::Config for Runtime { type FeePalletId = FeePalletId; - type WeightInfo = weights::fee::SubstrateWeight; + type WeightInfo = (); type SignedFixedPoint = SignedFixedPoint; type SignedInner = SignedInner; type UnsignedFixedPoint = UnsignedFixedPoint; @@ -1265,13 +1265,13 @@ impl vault_registry::Config for Runtime { type PalletId = VaultRegistryPalletId; type RuntimeEvent = RuntimeEvent; type Balance = Balance; - type WeightInfo = weights::vault_registry::SubstrateWeight; + type WeightInfo = (); type GetGriefingCollateralCurrencyId = NativeCurrencyId; } impl redeem::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = weights::redeem::SubstrateWeight; + type WeightInfo = (); } pub struct BlockNumberToBalance; @@ -1285,17 +1285,17 @@ impl sp_runtime::traits::Convert for BlockNumberToBalance impl issue::Config for Runtime { type RuntimeEvent = RuntimeEvent; type BlockNumberToBalance = BlockNumberToBalance; - type WeightInfo = weights::issue::SubstrateWeight; + type WeightInfo = (); } impl nomination::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = weights::nomination::SubstrateWeight; + type WeightInfo = (); } impl replace::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = weights::replace::SubstrateWeight; + type WeightInfo = (); } impl clients_info::Config for Runtime { @@ -1407,7 +1407,7 @@ impl pallet_proxy::Config for Runtime { impl orml_currencies_allowance_extension::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = weights::orml_currencies_allowance_extension::SubstrateWeight; + type WeightInfo = (); type MaxAllowedCurrencies = ConstU32<256>; } @@ -1443,7 +1443,7 @@ impl treasury_buyout_extension::Config for Runtime { type DecimalsLookup = DecimalsLookupImpl; type MinAmountToBuyout = MinAmountToBuyout; type MaxAllowedBuyoutCurrencies = MaxAllowedBuyoutCurrencies; - type WeightInfo = weights::treasury_buyout_extension::SubstrateWeight; + type WeightInfo = (); #[cfg(feature = "runtime-benchmarks")] type RelayChainCurrencyId = RelayChainCurrencyId; } diff --git a/runtime/amplitude/src/weights/dia_oracle.rs b/runtime/amplitude/src/weights/dia_oracle.rs index 5766f5d41..f0c900b6d 100644 --- a/runtime/amplitude/src/weights/dia_oracle.rs +++ b/runtime/amplitude/src/weights/dia_oracle.rs @@ -2,9 +2,9 @@ //! Autogenerated weights for dia_oracle //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-08-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Gianfrancos-MBP.fritz.box`, CPU: `` +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 // Executed Command: @@ -35,9 +35,21 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for dia_oracle. +pub trait WeightInfo { + fn add_currency() -> Weight; + fn remove_currency() -> Weight; + fn authorize_account() -> Weight; + fn authorize_account_signed() -> Weight; + fn deauthorize_account() -> Weight; + fn deauthorize_account_signed() -> Weight; + fn set_updated_coin_infos() -> Weight; + fn set_batching_api() -> Weight; +} + /// Weights for dia_oracle using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl dia_oracle::WeightInfo for SubstrateWeight { +impl WeightInfo for SubstrateWeight { /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `DiaOracleModule::SupportedCurrencies` (r:1 w:1) @@ -46,7 +58,7 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `472` // Estimated: `3937` - // Minimum execution time: 15_000_000 picoseconds. + // Minimum execution time: 14_000_000 picoseconds. Weight::from_parts(15_000_000, 3937) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) @@ -60,7 +72,7 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Measured: `472` // Estimated: `3937` // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(11_000_000, 3937) + Weight::from_parts(10_000_000, 3937) .saturating_add(T::DbWeight::get().reads(2_u64)) } /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:1) @@ -80,8 +92,8 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `358` // Estimated: `6298` - // Minimum execution time: 13_000_000 picoseconds. - Weight::from_parts(13_000_000, 6298) + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(12_000_000, 6298) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -102,7 +114,7 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Measured: `358` // Estimated: `6298` // Minimum execution time: 12_000_000 picoseconds. - Weight::from_parts(13_000_000, 6298) + Weight::from_parts(12_000_000, 6298) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -114,8 +126,8 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3823` - // Minimum execution time: 9_920_000_000 picoseconds. - Weight::from_parts(9_970_000_000, 3823) + // Minimum execution time: 9_498_000_000 picoseconds. + Weight::from_parts(9_560_000_000, 3823) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -132,4 +144,102 @@ impl dia_oracle::WeightInfo for SubstrateWeight { .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `DiaOracleModule::SupportedCurrencies` (r:1 w:1) + /// Proof: `DiaOracleModule::SupportedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn add_currency() -> Weight { + // Proof Size summary in bytes: + // Measured: `472` + // Estimated: `3937` + // Minimum execution time: 14_000_000 picoseconds. + Weight::from_parts(15_000_000, 3937) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `DiaOracleModule::SupportedCurrencies` (r:1 w:0) + /// Proof: `DiaOracleModule::SupportedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn remove_currency() -> Weight { + // Proof Size summary in bytes: + // Measured: `472` + // Estimated: `3937` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(10_000_000, 3937) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:1) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn authorize_account() -> Weight { + // Proof Size summary in bytes: + // Measured: `305` + // Estimated: `3770` + // Minimum execution time: 9_000_000 picoseconds. + Weight::from_parts(10_000_000, 3770) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:2 w:1) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn authorize_account_signed() -> Weight { + // Proof Size summary in bytes: + // Measured: `358` + // Estimated: `6298` + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(12_000_000, 6298) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn deauthorize_account() -> Weight { + // Proof Size summary in bytes: + // Measured: `305` + // Estimated: `3770` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 3770) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:2 w:1) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn deauthorize_account_signed() -> Weight { + // Proof Size summary in bytes: + // Measured: `358` + // Estimated: `6298` + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(12_000_000, 6298) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `DiaOracleModule::CoinInfosMap` (r:0 w:1) + /// Proof: `DiaOracleModule::CoinInfosMap` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_updated_coin_infos() -> Weight { + // Proof Size summary in bytes: + // Measured: `358` + // Estimated: `3823` + // Minimum execution time: 9_498_000_000 picoseconds. + Weight::from_parts(9_560_000_000, 3823) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `DiaOracleModule::BatchingApi` (r:0 w:1) + /// Proof: `DiaOracleModule::BatchingApi` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_batching_api() -> Weight { + // Proof Size summary in bytes: + // Measured: `358` + // Estimated: `3823` + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(11_000_000, 3823) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/amplitude/src/weights/fee.rs b/runtime/amplitude/src/weights/fee.rs index 1112cc6b2..ef8a09368 100644 --- a/runtime/amplitude/src/weights/fee.rs +++ b/runtime/amplitude/src/weights/fee.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for fee //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // amplitude -// --execution=wasm // --wasm-execution=compiled // --pallet // fee @@ -36,67 +35,141 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for fee. +pub trait WeightInfo { + fn set_issue_fee() -> Weight; + fn set_issue_griefing_collateral() -> Weight; + fn set_redeem_fee() -> Weight; + fn set_premium_redeem_fee() -> Weight; + fn set_punishment_fee() -> Weight; + fn set_replace_griefing_collateral() -> Weight; +} + /// Weights for fee using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl fee::WeightInfo for SubstrateWeight { - /// Storage: Fee IssueFee (r:0 w:1) - /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) +impl WeightInfo for SubstrateWeight { + /// Storage: `Fee::IssueFee` (r:0 w:1) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_issue_fee() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Fee IssueGriefingCollateral (r:0 w:1) - /// Proof Skipped: Fee IssueGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Fee::IssueGriefingCollateral` (r:0 w:1) + /// Proof: `Fee::IssueGriefingCollateral` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_issue_griefing_collateral() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Fee RedeemFee (r:0 w:1) - /// Proof Skipped: Fee RedeemFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Fee::RedeemFee` (r:0 w:1) + /// Proof: `Fee::RedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_redeem_fee() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Fee PremiumRedeemFee (r:0 w:1) - /// Proof Skipped: Fee PremiumRedeemFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Fee::PremiumRedeemFee` (r:0 w:1) + /// Proof: `Fee::PremiumRedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_premium_redeem_fee() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Fee PunishmentFee (r:0 w:1) - /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Fee::PunishmentFee` (r:0 w:1) + /// Proof: `Fee::PunishmentFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_punishment_fee() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Fee ReplaceGriefingCollateral (r:0 w:1) - /// Proof Skipped: Fee ReplaceGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Fee::ReplaceGriefingCollateral` (r:0 w:1) + /// Proof: `Fee::ReplaceGriefingCollateral` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_replace_griefing_collateral() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `Fee::IssueFee` (r:0 w:1) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_issue_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Fee::IssueGriefingCollateral` (r:0 w:1) + /// Proof: `Fee::IssueGriefingCollateral` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_issue_griefing_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Fee::RedeemFee` (r:0 w:1) + /// Proof: `Fee::RedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_redeem_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Fee::PremiumRedeemFee` (r:0 w:1) + /// Proof: `Fee::PremiumRedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_premium_redeem_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Fee::PunishmentFee` (r:0 w:1) + /// Proof: `Fee::PunishmentFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_punishment_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Fee::ReplaceGriefingCollateral` (r:0 w:1) + /// Proof: `Fee::ReplaceGriefingCollateral` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_replace_griefing_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/amplitude/src/weights/issue.rs b/runtime/amplitude/src/weights/issue.rs index 21cac350b..65551abbb 100644 --- a/runtime/amplitude/src/weights/issue.rs +++ b/runtime/amplitude/src/weights/issue.rs @@ -2,10 +2,10 @@ //! Autogenerated weights for issue //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-06-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Marcels-MBP`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 // Executed Command: // ./target/production/pendulum-node @@ -13,7 +13,6 @@ // pallet // --chain // amplitude -// --execution=wasm // --wasm-execution=compiled // --pallet // issue @@ -36,130 +35,267 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for issue. +pub trait WeightInfo { + fn request_issue() -> Weight; + fn execute_issue() -> Weight; + fn cancel_issue() -> Weight; + fn set_issue_period() -> Weight; + fn rate_limit_update() -> Weight; + fn minimum_transfer_amount_update() -> Weight; +} + /// Weights for issue using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl issue::WeightInfo for SubstrateWeight { - /// Storage: Issue LimitVolumeAmount (r:1 w:0) - /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:3 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee IssueGriefingCollateral (r:1 w:0) - /// Proof Skipped: Fee IssueGriefingCollateral (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: Issue IssueMinimumTransferAmount (r:1 w:0) - /// Proof: Issue IssueMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee IssueFee (r:1 w:0) - /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Security Nonce (r:1 w:1) - /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: System ParentHash (r:1 w:0) - /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:0) - /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Issue IssuePeriod (r:1 w:0) - /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Issue IssueRequests (r:0 w:1) - /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `Issue::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:3 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::IssueGriefingCollateral` (r:1 w:0) + /// Proof: `Fee::IssueGriefingCollateral` (`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: `Issue::IssueMinimumTransferAmount` (r:1 w:0) + /// Proof: `Issue::IssueMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Fee::IssueFee` (r:1 w:0) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Security::Nonce` (r:1 w:1) + /// Proof: `Security::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:0) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Issue::IssuePeriod` (r:1 w:0) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Issue::IssueRequests` (r:0 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) fn request_issue() -> Weight { // Proof Size summary in bytes: // Measured: `1923` - // Estimated: `10338` - // Minimum execution time: 102_000_000 picoseconds. - Weight::from_parts(105_000_000, 10338) + // Estimated: `11106` + // Minimum execution time: 86_000_000 picoseconds. + Weight::from_parts(91_000_000, 11106) .saturating_add(T::DbWeight::get().reads(18_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: Issue IssueRequests (r:1 w:1) - /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) - /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) - /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: StellarRelay Validators (r:1 w:0) - /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) - /// Storage: StellarRelay Organizations (r:1 w:0) - /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee IssueFee (r:1 w:0) - /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Issue LimitVolumeAmount (r:1 w:0) - /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalStake (r:2 w:0) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:1 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: `Issue::IssueRequests` (r:1 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:1 w:0) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Validators` (r:1 w:0) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:0) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Fee::IssueFee` (r:1 w:0) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Issue::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalStake` (r:2 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:1 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) fn execute_issue() -> Weight { // Proof Size summary in bytes: // Measured: `2498` // Estimated: `71867` - // Minimum execution time: 8_831_000_000 picoseconds. - Weight::from_parts(8_902_000_000, 71867) + // Minimum execution time: 7_761_000_000 picoseconds. + Weight::from_parts(7_824_000_000, 71867) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: Issue IssueRequests (r:1 w:1) - /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) - /// Storage: Issue IssuePeriod (r:1 w:0) - /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `Issue::IssueRequests` (r:1 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) + /// Storage: `Issue::IssuePeriod` (r:1 w:0) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_issue() -> Weight { // Proof Size summary in bytes: // Measured: `1303` // Estimated: `4768` - // Minimum execution time: 38_000_000 picoseconds. - Weight::from_parts(39_000_000, 4768) + // Minimum execution time: 32_000_000 picoseconds. + Weight::from_parts(32_000_000, 4768) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: Issue IssuePeriod (r:0 w:1) - /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `Issue::IssuePeriod` (r:0 w:1) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_issue_period() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_000_000 picoseconds. - Weight::from_parts(8_000_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Issue LimitVolumeAmount (r:0 w:1) - /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: Issue LimitVolumeCurrencyId (r:0 w:1) - /// Proof: Issue LimitVolumeCurrencyId (max_values: Some(1), max_size: Some(46), added: 541, mode: MaxEncodedLen) - /// Storage: Issue IntervalLength (r:0 w:1) - /// Proof: Issue IntervalLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `Issue::LimitVolumeAmount` (r:0 w:1) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Issue::LimitVolumeCurrencyId` (r:0 w:1) + /// Proof: `Issue::LimitVolumeCurrencyId` (`max_values`: Some(1), `max_size`: Some(46), added: 541, mode: `MaxEncodedLen`) + /// Storage: `Issue::IntervalLength` (r:0 w:1) + /// Proof: `Issue::IntervalLength` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn rate_limit_update() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: Issue IssueMinimumTransferAmount (r:0 w:1) - /// Proof: Issue IssueMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: `Issue::IssueMinimumTransferAmount` (r:0 w:1) + /// Proof: `Issue::IssueMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn minimum_transfer_amount_update() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_000_000 picoseconds. - Weight::from_parts(8_000_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `Issue::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:3 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::IssueGriefingCollateral` (r:1 w:0) + /// Proof: `Fee::IssueGriefingCollateral` (`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: `Issue::IssueMinimumTransferAmount` (r:1 w:0) + /// Proof: `Issue::IssueMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Fee::IssueFee` (r:1 w:0) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Security::Nonce` (r:1 w:1) + /// Proof: `Security::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:0) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Issue::IssuePeriod` (r:1 w:0) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Issue::IssueRequests` (r:0 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) + fn request_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `1923` + // Estimated: `11106` + // Minimum execution time: 86_000_000 picoseconds. + Weight::from_parts(91_000_000, 11106) + .saturating_add(RocksDbWeight::get().reads(18_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) + } + /// Storage: `Issue::IssueRequests` (r:1 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:1 w:0) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Validators` (r:1 w:0) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:0) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Fee::IssueFee` (r:1 w:0) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Issue::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalStake` (r:2 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:1 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + fn execute_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `2498` + // Estimated: `71867` + // Minimum execution time: 7_761_000_000 picoseconds. + Weight::from_parts(7_824_000_000, 71867) + .saturating_add(RocksDbWeight::get().reads(11_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Issue::IssueRequests` (r:1 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) + /// Storage: `Issue::IssuePeriod` (r:1 w:0) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn cancel_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `1303` + // Estimated: `4768` + // Minimum execution time: 32_000_000 picoseconds. + Weight::from_parts(32_000_000, 4768) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Issue::IssuePeriod` (r:0 w:1) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + fn set_issue_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Issue::LimitVolumeAmount` (r:0 w:1) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Issue::LimitVolumeCurrencyId` (r:0 w:1) + /// Proof: `Issue::LimitVolumeCurrencyId` (`max_values`: Some(1), `max_size`: Some(46), added: 541, mode: `MaxEncodedLen`) + /// Storage: `Issue::IntervalLength` (r:0 w:1) + /// Proof: `Issue::IntervalLength` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + fn rate_limit_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: `Issue::IssueMinimumTransferAmount` (r:0 w:1) + /// Proof: `Issue::IssueMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/amplitude/src/weights/nomination.rs b/runtime/amplitude/src/weights/nomination.rs index 01f15c087..2d1b2c179 100644 --- a/runtime/amplitude/src/weights/nomination.rs +++ b/runtime/amplitude/src/weights/nomination.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for nomination //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // amplitude -// --execution=wasm // --wasm-execution=compiled // --pallet // nomination @@ -36,193 +35,400 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for nomination. +pub trait WeightInfo { + fn set_nomination_enabled() -> Weight; + fn opt_in_to_nomination() -> Weight; + fn opt_out_of_nomination() -> Weight; + fn deposit_collateral() -> Weight; + fn withdraw_collateral() -> Weight; +} + /// Weights for nomination using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl nomination::WeightInfo for SubstrateWeight { - /// Storage: Nomination NominationEnabled (r:0 w:1) - /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `Nomination::NominationEnabled` (r:0 w:1) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn set_nomination_enabled() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Nomination NominationEnabled (r:1 w:0) - /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Nomination Vaults (r:1 w:1) - /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:1) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) fn opt_in_to_nomination() -> Weight { // Proof Size summary in bytes: // Measured: `780` // Estimated: `4245` - // Minimum execution time: 27_000_000 picoseconds. - Weight::from_parts(28_000_000, 4245) + // Minimum execution time: 20_000_000 picoseconds. + Weight::from_parts(21_000_000, 4245) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Nomination Vaults (r:1 w:1) - /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:1) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:2 w:2) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:2 w:2) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:2 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:2 w:2) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:0) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:2 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:2 w:2) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:2 w:2) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:1) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:1) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:2 w:2) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:2 w:2) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:2 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:2 w:2) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:2 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:2 w:2) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:2 w:2) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) fn opt_out_of_nomination() -> Weight { // Proof Size summary in bytes: - // Measured: `2427` - // Estimated: `8367` - // Minimum execution time: 214_000_000 picoseconds. - Weight::from_parts(226_000_000, 8367) - .saturating_add(T::DbWeight::get().reads(25_u64)) + // Measured: `2531` + // Estimated: `8471` + // Minimum execution time: 169_000_000 picoseconds. + Weight::from_parts(172_000_000, 8471) + .saturating_add(T::DbWeight::get().reads(27_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Nomination NominationEnabled (r:1 w:0) - /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - /// Storage: Nomination Vaults (r:1 w:0) - /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:2 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:2 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) - /// Storage: Tokens Accounts (r:2 w:2) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:0) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:2 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:2 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) fn deposit_collateral() -> Weight { // Proof Size summary in bytes: // Measured: `3100` // Estimated: `9040` - // Minimum execution time: 208_000_000 picoseconds. - Weight::from_parts(216_000_000, 9040) + // Minimum execution time: 158_000_000 picoseconds. + Weight::from_parts(161_000_000, 9040) .saturating_add(T::DbWeight::get().reads(28_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Nomination NominationEnabled (r:1 w:0) - /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - /// Storage: Nomination Vaults (r:1 w:0) - /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) - /// Storage: Tokens Accounts (r:2 w:2) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:0) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn withdraw_collateral() -> Weight { // Proof Size summary in bytes: - // Measured: `3292` - // Estimated: `6757` - // Minimum execution time: 195_000_000 picoseconds. - Weight::from_parts(200_000_000, 6757) - .saturating_add(T::DbWeight::get().reads(24_u64)) + // Measured: `3396` + // Estimated: `7734` + // Minimum execution time: 158_000_000 picoseconds. + Weight::from_parts(162_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(26_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `Nomination::NominationEnabled` (r:0 w:1) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + fn set_nomination_enabled() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:1) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + fn opt_in_to_nomination() -> Weight { + // Proof Size summary in bytes: + // Measured: `780` + // Estimated: `4245` + // Minimum execution time: 20_000_000 picoseconds. + Weight::from_parts(21_000_000, 4245) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:1) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:1) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:2 w:2) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:2 w:2) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:2 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:2 w:2) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:2 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:2 w:2) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:2 w:2) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn opt_out_of_nomination() -> Weight { + // Proof Size summary in bytes: + // Measured: `2531` + // Estimated: `8471` + // Minimum execution time: 169_000_000 picoseconds. + Weight::from_parts(172_000_000, 8471) + .saturating_add(RocksDbWeight::get().reads(27_u64)) + .saturating_add(RocksDbWeight::get().writes(16_u64)) + } + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:2 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:2 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn deposit_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `3100` + // Estimated: `9040` + // Minimum execution time: 158_000_000 picoseconds. + Weight::from_parts(161_000_000, 9040) + .saturating_add(RocksDbWeight::get().reads(28_u64)) + .saturating_add(RocksDbWeight::get().writes(13_u64)) + } + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn withdraw_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `3396` + // Estimated: `7734` + // Minimum execution time: 158_000_000 picoseconds. + Weight::from_parts(162_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(26_u64)) + .saturating_add(RocksDbWeight::get().writes(13_u64)) + } } \ No newline at end of file diff --git a/runtime/amplitude/src/weights/oracle.rs b/runtime/amplitude/src/weights/oracle.rs index 6f60749fc..a66bed541 100644 --- a/runtime/amplitude/src/weights/oracle.rs +++ b/runtime/amplitude/src/weights/oracle.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for oracle //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // amplitude -// --execution=wasm // --wasm-execution=compiled // --pallet // oracle @@ -36,39 +35,82 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for oracle. +pub trait WeightInfo { + fn on_initialize() -> Weight; + fn update_oracle_keys() -> Weight; + fn set_max_delay() -> Weight; +} + /// Weights for oracle using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl oracle::WeightInfo for SubstrateWeight { - /// Storage: Timestamp Now (r:0 w:1) - /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - /// Storage: Timestamp DidUpdate (r:0 w:1) - /// Proof: Timestamp DidUpdate (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `Timestamp::Now` (r:0 w:1) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + /// Storage: `Timestamp::DidUpdate` (r:0 w:1) + /// Proof: `Timestamp::DidUpdate` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn on_initialize() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` // Minimum execution time: 1_000_000 picoseconds. - Weight::from_parts(2_000_000, 0) + Weight::from_parts(1_000_000, 0) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: Oracle OracleKeys (r:0 w:1) - /// Proof Skipped: Oracle OracleKeys (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Oracle::OracleKeys` (r:0 w:1) + /// Proof: `Oracle::OracleKeys` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn update_oracle_keys() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Oracle MaxDelay (r:0 w:1) - /// Proof Skipped: Oracle MaxDelay (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Oracle::MaxDelay` (r:0 w:1) + /// Proof: `Oracle::MaxDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_max_delay() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `Timestamp::Now` (r:0 w:1) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + /// Storage: `Timestamp::DidUpdate` (r:0 w:1) + /// Proof: `Timestamp::DidUpdate` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + fn on_initialize() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_000_000 picoseconds. + Weight::from_parts(1_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Oracle::OracleKeys` (r:0 w:1) + /// Proof: `Oracle::OracleKeys` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn update_oracle_keys() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Oracle::MaxDelay` (r:0 w:1) + /// Proof: `Oracle::MaxDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_max_delay() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/amplitude/src/weights/orml_asset_registry.rs b/runtime/amplitude/src/weights/orml_asset_registry.rs index 200ff9c48..3ed485034 100644 --- a/runtime/amplitude/src/weights/orml_asset_registry.rs +++ b/runtime/amplitude/src/weights/orml_asset_registry.rs @@ -2,10 +2,10 @@ //! Autogenerated weights for `orml_asset_registry` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-07-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Marcels-MBP`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("amplitude")`, DB CACHE: 1024 // Executed Command: // ./target/production/pendulum-node @@ -13,7 +13,6 @@ // pallet // --chain // amplitude -// --execution=wasm // --wasm-execution=compiled // --pallet // orml-asset-registry @@ -29,38 +28,39 @@ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] +#![allow(missing_docs)] use frame_support::{traits::Get, weights::Weight}; -use sp_std::marker::PhantomData; +use core::marker::PhantomData; /// Weight functions for `orml_asset_registry`. pub struct WeightInfo(PhantomData); impl orml_asset_registry::WeightInfo for WeightInfo { - /// Storage: AssetRegistry Metadata (r:1 w:1) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry LocationToAssetId (r:1 w:1) - /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + /// Storage: `AssetRegistry::Metadata` (r:1 w:1) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::LocationToAssetId` (r:1 w:1) + /// Proof: `AssetRegistry::LocationToAssetId` (`max_values`: None, `max_size`: Some(656), added: 3131, mode: `MaxEncodedLen`) fn register_asset() -> Weight { // Proof Size summary in bytes: // Measured: `104` - // Estimated: `7138` - // Minimum execution time: 18_000_000 picoseconds. - Weight::from_parts(18_000_000, 0) - .saturating_add(Weight::from_parts(0, 7138)) + // Estimated: `4362` + // Minimum execution time: 15_000_000 picoseconds. + Weight::from_parts(15_000_000, 0) + .saturating_add(Weight::from_parts(0, 4362)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: AssetRegistry Metadata (r:1 w:1) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry LocationToAssetId (r:1 w:2) - /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + /// Storage: `AssetRegistry::Metadata` (r:1 w:1) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::LocationToAssetId` (r:1 w:2) + /// Proof: `AssetRegistry::LocationToAssetId` (`max_values`: None, `max_size`: Some(656), added: 3131, mode: `MaxEncodedLen`) fn update_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `745` - // Estimated: `8420` - // Minimum execution time: 25_000_000 picoseconds. - Weight::from_parts(26_000_000, 0) - .saturating_add(Weight::from_parts(0, 8420)) + // Measured: `767` + // Estimated: `4362` + // Minimum execution time: 21_000_000 picoseconds. + Weight::from_parts(22_000_000, 0) + .saturating_add(Weight::from_parts(0, 4362)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/amplitude/src/weights/orml_currencies_allowance_extension.rs b/runtime/amplitude/src/weights/orml_currencies_allowance_extension.rs index 4eae616b7..e3b6c4481 100644 --- a/runtime/amplitude/src/weights/orml_currencies_allowance_extension.rs +++ b/runtime/amplitude/src/weights/orml_currencies_allowance_extension.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for orml_currencies_allowance_extension //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // amplitude -// --execution=wasm // --wasm-execution=compiled // --pallet // orml_currencies_allowance_extension @@ -36,62 +35,129 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for orml_currencies_allowance_extension. +pub trait WeightInfo { + fn add_allowed_currencies(n: u32, ) -> Weight; + fn remove_allowed_currencies(n: u32, ) -> Weight; + fn approve() -> Weight; + fn transfer_from() -> Weight; +} + /// Weights for orml_currencies_allowance_extension using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl orml_currencies_allowance_extension::default_weights::WeightInfo for SubstrateWeight { - /// Storage: TokenAllowance AllowedCurrencies (r:2 w:1) - /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) +impl WeightInfo for SubstrateWeight { + /// Storage: `TokenAllowance::AllowedCurrencies` (r:2 w:1) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `n` is `[1, 256]`. fn add_allowed_currencies(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `142` // Estimated: `6082` - // Minimum execution time: 17_000_000 picoseconds. - Weight::from_parts(20_059_699, 6082) - // Standard Error: 2_380 - .saturating_add(Weight::from_parts(1_332_341, 0).saturating_mul(n.into())) + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(12_348_497, 6082) + // Standard Error: 866 + .saturating_add(Weight::from_parts(966_798, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TokenAllowance AllowedCurrencies (r:0 w:1) - /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) + /// Storage: `TokenAllowance::AllowedCurrencies` (r:0 w:1) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `n` is `[1, 256]`. fn remove_allowed_currencies(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_000_000 picoseconds. - Weight::from_parts(10_779_821, 0) - // Standard Error: 4_298 - .saturating_add(Weight::from_parts(1_334_011, 0).saturating_mul(n.into())) + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_004_760, 0) + // Standard Error: 1_006 + .saturating_add(Weight::from_parts(954_688, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TokenAllowance AllowedCurrencies (r:1 w:0) - /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) - /// Storage: TokenAllowance Approvals (r:0 w:1) - /// Proof Skipped: TokenAllowance Approvals (max_values: None, max_size: None, mode: Measured) + /// Storage: `TokenAllowance::AllowedCurrencies` (r:1 w:0) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenAllowance::Approvals` (r:0 w:1) + /// Proof: `TokenAllowance::Approvals` (`max_values`: None, `max_size`: None, mode: `Measured`) fn approve() -> Weight { // Proof Size summary in bytes: // Measured: `184` // Estimated: `3649` - // Minimum execution time: 18_000_000 picoseconds. - Weight::from_parts(18_000_000, 3649) + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(13_000_000, 3649) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TokenAllowance AllowedCurrencies (r:1 w:0) - /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) - /// Storage: TokenAllowance Approvals (r:1 w:1) - /// Proof Skipped: TokenAllowance Approvals (max_values: None, max_size: None, mode: Measured) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: `TokenAllowance::AllowedCurrencies` (r:1 w:0) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenAllowance::Approvals` (r:1 w:1) + /// Proof: `TokenAllowance::Approvals` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer_from() -> Weight { // Proof Size summary in bytes: // Measured: `561` // Estimated: `6196` - // Minimum execution time: 73_000_000 picoseconds. - Weight::from_parts(74_000_000, 6196) + // Minimum execution time: 52_000_000 picoseconds. + Weight::from_parts(53_000_000, 6196) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `TokenAllowance::AllowedCurrencies` (r:2 w:1) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `n` is `[1, 256]`. + fn add_allowed_currencies(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `142` + // Estimated: `6082` + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(12_348_497, 6082) + // Standard Error: 866 + .saturating_add(Weight::from_parts(966_798, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `TokenAllowance::AllowedCurrencies` (r:0 w:1) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `n` is `[1, 256]`. + fn remove_allowed_currencies(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_004_760, 0) + // Standard Error: 1_006 + .saturating_add(Weight::from_parts(954_688, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `TokenAllowance::AllowedCurrencies` (r:1 w:0) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenAllowance::Approvals` (r:0 w:1) + /// Proof: `TokenAllowance::Approvals` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn approve() -> Weight { + // Proof Size summary in bytes: + // Measured: `184` + // Estimated: `3649` + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(13_000_000, 3649) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `TokenAllowance::AllowedCurrencies` (r:1 w:0) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenAllowance::Approvals` (r:1 w:1) + /// Proof: `TokenAllowance::Approvals` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn transfer_from() -> Weight { + // Proof Size summary in bytes: + // Measured: `561` + // Estimated: `6196` + // Minimum execution time: 52_000_000 picoseconds. + Weight::from_parts(53_000_000, 6196) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } } \ No newline at end of file diff --git a/runtime/amplitude/src/weights/pallet_xcm.rs b/runtime/amplitude/src/weights/pallet_xcm.rs index d1c9d3932..2bff90a32 100644 --- a/runtime/amplitude/src/weights/pallet_xcm.rs +++ b/runtime/amplitude/src/weights/pallet_xcm.rs @@ -2,10 +2,10 @@ //! Autogenerated weights for `pallet_xcm` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-12-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `pop-os`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("amplitude")`, DB CACHE: 1024 // Executed Command: // ./target/production/pendulum-node @@ -13,7 +13,6 @@ // pallet // --chain // amplitude -// --execution=wasm // --wasm-execution=compiled // --pallet // pallet-xcm @@ -37,28 +36,28 @@ use core::marker::PhantomData; /// Weight functions for `pallet_xcm`. pub struct WeightInfo(PhantomData); impl pallet_xcm::WeightInfo for WeightInfo { - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`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::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn send() -> Weight { // Proof Size summary in bytes: - // Measured: `212` - // Estimated: `3677` - // Minimum execution time: 38_682_000 picoseconds. - Weight::from_parts(39_311_000, 0) - .saturating_add(Weight::from_parts(0, 3677)) + // Measured: `245` + // Estimated: `3710` + // Minimum execution time: 20_000_000 picoseconds. + Weight::from_parts(21_000_000, 0) + .saturating_add(Weight::from_parts(0, 3710)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Benchmark Override (r:0 w:0) - /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) + /// Storage: `Benchmark::Override` (r:0 w:0) + /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) fn teleport_assets() -> Weight { // Proof Size summary in bytes: // Measured: `0` @@ -67,14 +66,14 @@ impl pallet_xcm::WeightInfo for WeightInfo { Weight::from_parts(18_446_744_073_709_551_000, 0) .saturating_add(Weight::from_parts(0, 0)) } - /// Storage: ParachainInfo ParachainId (r:1 w:0) - /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn reserve_transfer_assets() -> Weight { // Proof Size summary in bytes: // Measured: `32` // Estimated: `1489` - // Minimum execution time: 49_359_000 picoseconds. - Weight::from_parts(63_536_000, 0) + // Minimum execution time: 15_000_000 picoseconds. + Weight::from_parts(15_000_000, 0) .saturating_add(Weight::from_parts(0, 1489)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -82,192 +81,192 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 13_605_000 picoseconds. - Weight::from_parts(13_911_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(Weight::from_parts(0, 0)) } - /// Storage: PolkadotXcm SupportedVersion (r:0 w:1) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::SupportedVersion` (r:0 w:1) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_xcm_version() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 14_367_000 picoseconds. - Weight::from_parts(14_725_000, 0) + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: PolkadotXcm SafeXcmVersion (r:0 w:1) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:0 w:1) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn force_default_xcm_version() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_740_000 picoseconds. - Weight::from_parts(5_088_000, 0) + // Minimum execution time: 2_000_000 picoseconds. + Weight::from_parts(2_000_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: PolkadotXcm VersionNotifiers (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm QueryCounter (r:1 w:1) - /// Proof Skipped: PolkadotXcm QueryCounter (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm Queries (r:0 w:1) - /// Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1) + /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`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::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_subscribe_version_notify() -> Weight { // Proof Size summary in bytes: - // Measured: `212` - // Estimated: `3677` - // Minimum execution time: 45_605_000 picoseconds. - Weight::from_parts(46_297_000, 0) - .saturating_add(Weight::from_parts(0, 3677)) + // Measured: `245` + // Estimated: `3710` + // Minimum execution time: 24_000_000 picoseconds. + Weight::from_parts(25_000_000, 0) + .saturating_add(Weight::from_parts(0, 3710)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: PolkadotXcm VersionNotifiers (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm Queries (r:0 w:1) - /// Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`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::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_unsubscribe_version_notify() -> Weight { // Proof Size summary in bytes: - // Measured: `395` - // Estimated: `3860` - // Minimum execution time: 45_319_000 picoseconds. - Weight::from_parts(46_314_000, 0) - .saturating_add(Weight::from_parts(0, 3860)) + // Measured: `428` + // Estimated: `3893` + // Minimum execution time: 25_000_000 picoseconds. + Weight::from_parts(26_000_000, 0) + .saturating_add(Weight::from_parts(0, 3893)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: PolkadotXcm XcmExecutionSuspended (r:0 w:1) - /// Proof Skipped: PolkadotXcm XcmExecutionSuspended (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::XcmExecutionSuspended` (r:0 w:1) + /// Proof: `PolkadotXcm::XcmExecutionSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn force_suspension() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_724_000 picoseconds. - Weight::from_parts(5_021_000, 0) + // Minimum execution time: 2_000_000 picoseconds. + Weight::from_parts(2_000_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: PolkadotXcm SupportedVersion (r:4 w:2) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::SupportedVersion` (r:4 w:2) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_supported_version() -> Weight { // Proof Size summary in bytes: - // Measured: `196` - // Estimated: `11086` - // Minimum execution time: 22_211_000 picoseconds. - Weight::from_parts(22_666_000, 0) - .saturating_add(Weight::from_parts(0, 11086)) + // Measured: `254` + // Estimated: `11144` + // Minimum execution time: 14_000_000 picoseconds. + Weight::from_parts(14_000_000, 0) + .saturating_add(Weight::from_parts(0, 11144)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: PolkadotXcm VersionNotifiers (r:4 w:2) - /// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifiers` (r:4 w:2) + /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_version_notifiers() -> Weight { // Proof Size summary in bytes: - // Measured: `200` - // Estimated: `11090` - // Minimum execution time: 22_156_000 picoseconds. - Weight::from_parts(22_487_000, 0) - .saturating_add(Weight::from_parts(0, 11090)) + // Measured: `258` + // Estimated: `11148` + // Minimum execution time: 14_000_000 picoseconds. + Weight::from_parts(15_000_000, 0) + .saturating_add(Weight::from_parts(0, 11148)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:5 w:0) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:0) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn already_notified_target() -> Weight { // Proof Size summary in bytes: - // Measured: `207` - // Estimated: `13572` - // Minimum execution time: 23_349_000 picoseconds. - Weight::from_parts(24_075_000, 0) - .saturating_add(Weight::from_parts(0, 13572)) + // Measured: `265` + // Estimated: `13630` + // Minimum execution time: 16_000_000 picoseconds. + Weight::from_parts(16_000_000, 0) + .saturating_add(Weight::from_parts(0, 13630)) .saturating_add(T::DbWeight::get().reads(5)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:2 w:1) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:2 w:1) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`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::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn notify_current_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `279` - // Estimated: `6219` - // Minimum execution time: 41_998_000 picoseconds. - Weight::from_parts(42_566_000, 0) - .saturating_add(Weight::from_parts(0, 6219)) + // Measured: `312` + // Estimated: `6252` + // Minimum execution time: 22_000_000 picoseconds. + Weight::from_parts(23_000_000, 0) + .saturating_add(Weight::from_parts(0, 6252)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:3 w:0) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:3 w:0) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn notify_target_migration_fail() -> Weight { // Proof Size summary in bytes: - // Measured: `239` - // Estimated: `8654` - // Minimum execution time: 12_897_000 picoseconds. - Weight::from_parts(13_235_000, 0) - .saturating_add(Weight::from_parts(0, 8654)) + // Measured: `272` + // Estimated: `8687` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(9_000_000, 0) + .saturating_add(Weight::from_parts(0, 8687)) .saturating_add(T::DbWeight::get().reads(3)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:4 w:2) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:2) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_version_notify_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `207` - // Estimated: `11097` - // Minimum execution time: 22_372_000 picoseconds. - Weight::from_parts(22_905_000, 0) - .saturating_add(Weight::from_parts(0, 11097)) + // Measured: `265` + // Estimated: `11155` + // Minimum execution time: 14_000_000 picoseconds. + Weight::from_parts(15_000_000, 0) + .saturating_add(Weight::from_parts(0, 11155)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:4 w:2) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:2) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`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::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn migrate_and_notify_old_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `283` - // Estimated: `11173` - // Minimum execution time: 50_944_000 picoseconds. - Weight::from_parts(51_564_000, 0) - .saturating_add(Weight::from_parts(0, 11173)) + // Measured: `341` + // Estimated: `11231` + // Minimum execution time: 30_000_000 picoseconds. + Weight::from_parts(31_000_000, 0) + .saturating_add(Weight::from_parts(0, 11231)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(4)) } diff --git a/runtime/amplitude/src/weights/parachain_staking.rs b/runtime/amplitude/src/weights/parachain_staking.rs index 49d64f53d..cb8804ece 100644 --- a/runtime/amplitude/src/weights/parachain_staking.rs +++ b/runtime/amplitude/src/weights/parachain_staking.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for parachain_staking //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-06-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // amplitude -// --execution=wasm // --wasm-execution=compiled // --pallet // parachain-staking @@ -36,74 +35,102 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for parachain_staking. +pub trait WeightInfo { + fn on_initialize_no_action() -> Weight; + fn on_initialize_round_update() -> Weight; + fn on_initialize_network_rewards() -> Weight; + fn force_new_round() -> Weight; + fn set_inflation(n: u32, m: u32, ) -> Weight; + fn set_max_selected_candidates(n: u32, m: u32, ) -> Weight; + fn set_blocks_per_round() -> Weight; + fn force_remove_candidate(n: u32, m: u32, ) -> Weight; + fn join_candidates(n: u32, m: u32, ) -> Weight; + fn init_leave_candidates(n: u32, m: u32, ) -> Weight; + fn cancel_leave_candidates(n: u32, m: u32, ) -> Weight; + fn execute_leave_candidates(n: u32, m: u32, ) -> Weight; + fn candidate_stake_more(n: u32, m: u32, u: u32, ) -> Weight; + fn candidate_stake_less(n: u32, m: u32, ) -> Weight; + fn join_delegators(n: u32, m: u32, ) -> Weight; + fn delegator_stake_more(n: u32, m: u32, u: u32, ) -> Weight; + fn delegator_stake_less(n: u32, m: u32, ) -> Weight; + fn leave_delegators(n: u32, m: u32, ) -> Weight; + fn unlock_unstaked(u: u32, ) -> Weight; + fn set_max_candidate_stake() -> Weight; + fn increment_delegator_rewards() -> Weight; + fn increment_collator_rewards(m: u32, ) -> Weight; + fn claim_rewards() -> Weight; + fn execute_scheduled_reward_change(n: u32, m: u32, ) -> Weight; +} + /// Weights for parachain_staking using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl parachain_staking::WeightInfo for SubstrateWeight { - /// Storage: ParachainStaking Round (r:1 w:0) - /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `ParachainStaking::Round` (r:1 w:0) + /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`) fn on_initialize_no_action() -> Weight { // Proof Size summary in bytes: // Measured: `427` // Estimated: `1497` - // Minimum execution time: 4_000_000 picoseconds. - Weight::from_parts(5_000_000, 1497) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 1497) .saturating_add(T::DbWeight::get().reads(1_u64)) } - /// Storage: ParachainStaking Round (r:1 w:1) - /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::Round` (r:1 w:1) + /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`) fn on_initialize_round_update() -> Weight { // Proof Size summary in bytes: // Measured: `427` // Estimated: `1497` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_000_000, 1497) + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_000_000, 1497) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: ParachainStaking Round (r:1 w:0) - /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::Round` (r:1 w:0) + /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`) fn on_initialize_network_rewards() -> Weight { // Proof Size summary in bytes: // Measured: `427` // Estimated: `1497` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 1497) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 1497) .saturating_add(T::DbWeight::get().reads(1_u64)) } - /// Storage: ParachainStaking ForceNewRound (r:0 w:1) - /// Proof: ParachainStaking ForceNewRound (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::ForceNewRound` (r:0 w:1) + /// Proof: `ParachainStaking::ForceNewRound` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn force_new_round() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_000_000 picoseconds. - Weight::from_parts(3_000_000, 0) + // Minimum execution time: 2_000_000 picoseconds. + Weight::from_parts(2_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: ParachainStaking CandidatePool (r:41 w:0) - /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) - /// Storage: ParachainStaking RewardCount (r:1640 w:1640) - /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - /// Storage: ParachainStaking Rewards (r:40 w:40) - /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) - /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) - /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: ParachainStaking InflationConfig (r:1 w:1) - /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) - /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:0) - /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::CandidatePool` (r:41 w:0) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:1640 w:1640) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Rewards` (r:40 w:40) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:0) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1) + /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::CounterForCandidatePool` (r:1 w:0) + /// Proof: `ParachainStaking::CounterForCandidatePool` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 40]`. /// The range of component `m` is `[0, 40]`. fn set_inflation(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0 + m * (3891 ±0) + n * (4052 ±0)` - // Estimated: `101750 + m * (37911 ±1_054) + n * (33703 ±1_054)` - // Minimum execution time: 595_000_000 picoseconds. - Weight::from_parts(613_000_000, 101750) - // Standard Error: 3_104_233 - .saturating_add(Weight::from_parts(90_791_222, 0).saturating_mul(n.into())) - // Standard Error: 3_104_233 - .saturating_add(Weight::from_parts(93_574_370, 0).saturating_mul(m.into())) + // Estimated: `101750 + m * (37911 ±1_054) + n * (33703 ±9)` + // Minimum execution time: 462_000_000 picoseconds. + Weight::from_parts(474_000_000, 101750) + // Standard Error: 2_594_253 + .saturating_add(Weight::from_parts(78_871_861, 0).saturating_mul(n.into())) + // Standard Error: 2_594_253 + .saturating_add(Weight::from_parts(73_821_932, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(124_u64)) .saturating_add(T::DbWeight::get().reads((14_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().reads((14_u64).saturating_mul(m.into()))) @@ -113,76 +140,76 @@ impl parachain_staking::WeightInfo for SubstrateWeight< .saturating_add(Weight::from_parts(0, 37911).saturating_mul(m.into())) .saturating_add(Weight::from_parts(0, 33703).saturating_mul(n.into())) } - /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:1) - /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: ParachainStaking TopCandidates (r:1 w:0) - /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) - /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) - /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TopCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) /// The range of component `n` is `[8, 40]`. /// The range of component `m` is `[0, 40]`. fn set_max_selected_candidates(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `434 + n * (48 ±0)` // Estimated: `3406` - // Minimum execution time: 19_000_000 picoseconds. - Weight::from_parts(7_372_613, 3406) - // Standard Error: 11_493 - .saturating_add(Weight::from_parts(285_897, 0).saturating_mul(n.into())) - // Standard Error: 9_233 - .saturating_add(Weight::from_parts(309_585, 0).saturating_mul(m.into())) + // Minimum execution time: 15_000_000 picoseconds. + Weight::from_parts(4_148_612, 3406) + // Standard Error: 14_990 + .saturating_add(Weight::from_parts(341_567, 0).saturating_mul(n.into())) + // Standard Error: 12_042 + .saturating_add(Weight::from_parts(373_225, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: ParachainStaking Round (r:1 w:1) - /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::Round` (r:1 w:1) + /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`) fn set_blocks_per_round() -> Weight { // Proof Size summary in bytes: // Measured: `427` // Estimated: `1497` - // Minimum execution time: 12_000_000 picoseconds. - Weight::from_parts(13_000_000, 1497) + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(10_000_000, 1497) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: ParachainStaking CandidatePool (r:40 w:1) - /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) - /// Storage: ParachainStaking TopCandidates (r:1 w:1) - /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) - /// Storage: ParachainStaking Unstaking (r:41 w:41) - /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) - /// Storage: ParachainStaking DelegatorState (r:40 w:40) - /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) - /// Storage: ParachainStaking RewardCount (r:41 w:41) - /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - /// Storage: ParachainStaking Rewards (r:1 w:1) - /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) - /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) - /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: ParachainStaking InflationConfig (r:1 w:0) - /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) - /// Storage: Session Validators (r:1 w:0) - /// Proof Skipped: Session Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Session DisabledValidators (r:1 w:1) - /// Proof Skipped: Session DisabledValidators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: System Digest (r:1 w:1) - /// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:1) - /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) - /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::CandidatePool` (r:40 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:41 w:41) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::DelegatorState` (r:40 w:40) + /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:41 w:41) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Rewards` (r:1 w:1) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::InflationConfig` (r:1 w:0) + /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`) + /// Storage: `Session::Validators` (r:1 w:0) + /// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Session::DisabledValidators` (r:1 w:1) + /// Proof: `Session::DisabledValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::Digest` (r:1 w:1) + /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainStaking::CounterForCandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CounterForCandidatePool` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// The range of component `n` is `[9, 40]`. /// The range of component `m` is `[0, 40]`. fn force_remove_candidate(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0 + m * (3143 ±0) + n * (2723 ±0)` - // Estimated: `9446 + m * (2716 ±28) + n * (4505 ±27)` - // Minimum execution time: 175_000_000 picoseconds. - Weight::from_parts(178_000_000, 9446) - // Standard Error: 76_352 - .saturating_add(Weight::from_parts(1_839_740, 0).saturating_mul(n.into())) - // Standard Error: 78_833 - .saturating_add(Weight::from_parts(17_270_939, 0).saturating_mul(m.into())) + // Estimated: `9446 + m * (2716 ±0) + n * (4505 ±27)` + // Minimum execution time: 148_000_000 picoseconds. + Weight::from_parts(150_000_000, 9446) + // Standard Error: 75_916 + .saturating_add(Weight::from_parts(1_928_052, 0).saturating_mul(n.into())) + // Standard Error: 78_382 + .saturating_add(Weight::from_parts(15_539_211, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(m.into()))) @@ -191,127 +218,129 @@ impl parachain_staking::WeightInfo for SubstrateWeight< .saturating_add(Weight::from_parts(0, 2716).saturating_mul(m.into())) .saturating_add(Weight::from_parts(0, 4505).saturating_mul(n.into())) } - /// Storage: ParachainStaking CandidatePool (r:1 w:1) - /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) - /// Storage: ParachainStaking DelegatorState (r:1 w:0) - /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) - /// Storage: ParachainStaking MaxCollatorCandidateStake (r:1 w:0) - /// Proof: ParachainStaking MaxCollatorCandidateStake (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: ParachainStaking Unstaking (r:1 w:1) - /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, 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: ParachainStaking TopCandidates (r:1 w:1) - /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) - /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) - /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) - /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:1) - /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::DelegatorState` (r:1 w:0) + /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxCollatorCandidateStake` (r:1 w:0) + /// Proof: `ParachainStaking::MaxCollatorCandidateStake` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:1 w:1) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, 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: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::CounterForCandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CounterForCandidatePool` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 39]`. /// The range of component `m` is `[0, 40]`. fn join_candidates(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `2158 + m * (45 ±0) + n * (86 ±0)` // Estimated: `5495` - // Minimum execution time: 70_000_000 picoseconds. - Weight::from_parts(55_257_753, 5495) - // Standard Error: 15_095 - .saturating_add(Weight::from_parts(568_354, 0).saturating_mul(n.into())) - // Standard Error: 14_352 - .saturating_add(Weight::from_parts(598_729, 0).saturating_mul(m.into())) + // Minimum execution time: 56_000_000 picoseconds. + Weight::from_parts(40_436_003, 5495) + // Standard Error: 16_446 + .saturating_add(Weight::from_parts(578_484, 0).saturating_mul(n.into())) + // Standard Error: 15_636 + .saturating_add(Weight::from_parts(644_742, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } - /// Storage: ParachainStaking CandidatePool (r:39 w:1) - /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) - /// Storage: ParachainStaking TopCandidates (r:1 w:1) - /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) - /// Storage: ParachainStaking Round (r:1 w:0) - /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) - /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) - /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) - /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::CandidatePool` (r:39 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Round` (r:1 w:0) + /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) /// The range of component `n` is `[9, 39]`. /// The range of component `m` is `[0, 40]`. - fn init_leave_candidates(n: u32, _m: u32, ) -> Weight { + fn init_leave_candidates(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0 + m * (1872 ±0) + n * (2082 ±0)` // Estimated: `3406 + n * (4505 ±0)` - // Minimum execution time: 66_000_000 picoseconds. - Weight::from_parts(67_000_000, 3406) - // Standard Error: 24_947 - .saturating_add(Weight::from_parts(2_817_902, 0).saturating_mul(n.into())) + // Minimum execution time: 59_000_000 picoseconds. + Weight::from_parts(60_000_000, 3406) + // Standard Error: 27_936 + .saturating_add(Weight::from_parts(2_608_487, 0).saturating_mul(n.into())) + // Standard Error: 28_145 + .saturating_add(Weight::from_parts(61_894, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(3_u64)) .saturating_add(Weight::from_parts(0, 4505).saturating_mul(n.into())) } - /// Storage: ParachainStaking CandidatePool (r:2 w:1) - /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) - /// Storage: ParachainStaking TopCandidates (r:1 w:1) - /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) - /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) - /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) - /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::CandidatePool` (r:2 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) /// The range of component `n` is `[9, 39]`. /// The range of component `m` is `[0, 40]`. fn cancel_leave_candidates(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `758 + m * (96 ±0) + n * (59 ±0)` // Estimated: `10000` - // Minimum execution time: 35_000_000 picoseconds. - Weight::from_parts(17_763_044, 10000) - // Standard Error: 12_598 - .saturating_add(Weight::from_parts(460_161, 0).saturating_mul(n.into())) - // Standard Error: 9_483 - .saturating_add(Weight::from_parts(419_062, 0).saturating_mul(m.into())) + // Minimum execution time: 28_000_000 picoseconds. + Weight::from_parts(25_829_009, 10000) + // Standard Error: 17_664 + .saturating_add(Weight::from_parts(71_281, 0).saturating_mul(n.into())) + // Standard Error: 13_297 + .saturating_add(Weight::from_parts(393_707, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: ParachainStaking CandidatePool (r:1 w:1) - /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) - /// Storage: ParachainStaking Round (r:1 w:0) - /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) - /// Storage: ParachainStaking Unstaking (r:41 w:41) - /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) - /// Storage: ParachainStaking DelegatorState (r:40 w:40) - /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) - /// Storage: ParachainStaking RewardCount (r:41 w:41) - /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - /// Storage: ParachainStaking Rewards (r:1 w:1) - /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) - /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) - /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: ParachainStaking InflationConfig (r:1 w:0) - /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) - /// Storage: Session Validators (r:1 w:0) - /// Proof Skipped: Session Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Session DisabledValidators (r:1 w:1) - /// Proof Skipped: Session DisabledValidators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: System Digest (r:1 w:1) - /// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:1) - /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Round` (r:1 w:0) + /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:41 w:41) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::DelegatorState` (r:40 w:40) + /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:41 w:41) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Rewards` (r:1 w:1) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:0) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::InflationConfig` (r:1 w:0) + /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`) + /// Storage: `Session::Validators` (r:1 w:0) + /// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Session::DisabledValidators` (r:1 w:1) + /// Proof: `Session::DisabledValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::Digest` (r:1 w:1) + /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainStaking::CounterForCandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CounterForCandidatePool` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// The range of component `n` is `[9, 39]`. /// The range of component `m` is `[0, 40]`. fn execute_leave_candidates(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0 + m * (1257 ±0) + n * (655 ±0)` - // Estimated: `5495 + m * (2716 ±6) + n * (213 ±6)` - // Minimum execution time: 55_000_000 picoseconds. - Weight::from_parts(56_000_000, 5495) - // Standard Error: 42_885 - .saturating_add(Weight::from_parts(912_996, 0).saturating_mul(n.into())) - // Standard Error: 43_205 - .saturating_add(Weight::from_parts(18_615_890, 0).saturating_mul(m.into())) + // Estimated: `5495 + m * (2716 ±0) + n * (213 ±6)` + // Minimum execution time: 45_000_000 picoseconds. + Weight::from_parts(46_000_000, 5495) + // Standard Error: 43_949 + .saturating_add(Weight::from_parts(904_864, 0).saturating_mul(n.into())) + // Standard Error: 44_277 + .saturating_add(Weight::from_parts(16_154_071, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(m.into()))) .saturating_add(T::DbWeight::get().writes(7_u64)) @@ -319,30 +348,30 @@ impl parachain_staking::WeightInfo for SubstrateWeight< .saturating_add(Weight::from_parts(0, 2716).saturating_mul(m.into())) .saturating_add(Weight::from_parts(0, 213).saturating_mul(n.into())) } - /// Storage: ParachainStaking CandidatePool (r:1 w:1) - /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) - /// Storage: ParachainStaking MaxCollatorCandidateStake (r:1 w:0) - /// Proof: ParachainStaking MaxCollatorCandidateStake (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: ParachainStaking Unstaking (r:1 w:1) - /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, 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: ParachainStaking TopCandidates (r:1 w:1) - /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) - /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) - /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) - /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: ParachainStaking RewardCount (r:41 w:41) - /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - /// Storage: ParachainStaking Rewards (r:1 w:1) - /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) - /// Storage: ParachainStaking InflationConfig (r:1 w:0) - /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxCollatorCandidateStake` (r:1 w:0) + /// Proof: `ParachainStaking::MaxCollatorCandidateStake` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:1 w:1) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, 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: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:41 w:41) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Rewards` (r:1 w:1) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::InflationConfig` (r:1 w:0) + /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 39]`. /// The range of component `m` is `[0, 40]`. /// The range of component `u` is `[0, 9]`. @@ -350,111 +379,111 @@ impl parachain_staking::WeightInfo for SubstrateWeight< // Proof Size summary in bytes: // Measured: `0 + m * (455 ±0) + n * (292 ±0) + u * (20 ±0)` // Estimated: `5495 + m * (2519 ±0)` - // Minimum execution time: 78_000_000 picoseconds. - Weight::from_parts(79_000_000, 5495) - // Standard Error: 22_379 - .saturating_add(Weight::from_parts(1_080_738, 0).saturating_mul(n.into())) - // Standard Error: 21_608 - .saturating_add(Weight::from_parts(7_477_868, 0).saturating_mul(m.into())) + // Minimum execution time: 62_000_000 picoseconds. + Weight::from_parts(16_178_203, 5495) + // Standard Error: 26_046 + .saturating_add(Weight::from_parts(1_454_280, 0).saturating_mul(n.into())) + // Standard Error: 24_764 + .saturating_add(Weight::from_parts(6_893_201, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) .saturating_add(T::DbWeight::get().writes(8_u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into()))) .saturating_add(Weight::from_parts(0, 2519).saturating_mul(m.into())) } - /// Storage: ParachainStaking CandidatePool (r:1 w:1) - /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) - /// Storage: ParachainStaking Unstaking (r:1 w:1) - /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) - /// Storage: ParachainStaking TopCandidates (r:1 w:1) - /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) - /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) - /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) - /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: ParachainStaking RewardCount (r:41 w:41) - /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - /// Storage: ParachainStaking Rewards (r:1 w:1) - /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) - /// Storage: ParachainStaking InflationConfig (r:1 w:0) - /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:1 w:1) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:41 w:41) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Rewards` (r:1 w:1) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::InflationConfig` (r:1 w:0) + /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 39]`. /// The range of component `m` is `[0, 40]`. fn candidate_stake_less(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0 + m * (442 ±0) + n * (276 ±0)` // Estimated: `5495 + m * (2519 ±0)` - // Minimum execution time: 49_000_000 picoseconds. - Weight::from_parts(51_000_000, 5495) - // Standard Error: 21_036 - .saturating_add(Weight::from_parts(521_323, 0).saturating_mul(n.into())) - // Standard Error: 20_572 - .saturating_add(Weight::from_parts(6_885_083, 0).saturating_mul(m.into())) + // Minimum execution time: 40_000_000 picoseconds. + Weight::from_parts(41_000_000, 5495) + // Standard Error: 22_900 + .saturating_add(Weight::from_parts(607_538, 0).saturating_mul(n.into())) + // Standard Error: 22_395 + .saturating_add(Weight::from_parts(5_807_168, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) .saturating_add(T::DbWeight::get().writes(6_u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into()))) .saturating_add(Weight::from_parts(0, 2519).saturating_mul(m.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: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) - /// Storage: ParachainStaking CandidatePool (r:2 w:1) - /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) - /// Storage: ParachainStaking Unstaking (r:1 w:1) - /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) - /// Storage: ParachainStaking LastDelegation (r:1 w:1) - /// Proof: ParachainStaking LastDelegation (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: ParachainStaking Round (r:1 w:0) - /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, 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: ParachainStaking TopCandidates (r:1 w:1) - /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) - /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) - /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) - /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: ParachainStaking RewardCount (r:1 w:1) - /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// 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`: Some(89), added: 2564, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::CandidatePool` (r:2 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:1 w:1) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::LastDelegation` (r:1 w:1) + /// Proof: `ParachainStaking::LastDelegation` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Round` (r:1 w:0) + /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: Some(12), added: 507, 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: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:1 w:1) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 40]`. /// The range of component `m` is `[1, 39]`. fn join_delegators(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `3555 + m * (113 ±0) + n * (94 ±0)` // Estimated: `10000` - // Minimum execution time: 88_000_000 picoseconds. - Weight::from_parts(61_230_042, 10000) - // Standard Error: 15_096 - .saturating_add(Weight::from_parts(734_668, 0).saturating_mul(n.into())) - // Standard Error: 15_502 - .saturating_add(Weight::from_parts(720_729, 0).saturating_mul(m.into())) + // Minimum execution time: 71_000_000 picoseconds. + Weight::from_parts(42_188_416, 10000) + // Standard Error: 19_323 + .saturating_add(Weight::from_parts(837_613, 0).saturating_mul(n.into())) + // Standard Error: 19_843 + .saturating_add(Weight::from_parts(739_876, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(13_u64)) .saturating_add(T::DbWeight::get().writes(9_u64)) } - /// Storage: ParachainStaking DelegatorState (r:1 w:1) - /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) - /// Storage: ParachainStaking CandidatePool (r:1 w:1) - /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: ParachainStaking Unstaking (r:1 w:1) - /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, 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: ParachainStaking TopCandidates (r:1 w:1) - /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) - /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) - /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) - /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: ParachainStaking RewardCount (r:2 w:0) - /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1) + /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:1 w:1) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, 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: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:2 w:0) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 40]`. /// The range of component `m` is `[1, 39]`. /// The range of component `u` is `[1, 9]`. @@ -462,186 +491,186 @@ impl parachain_staking::WeightInfo for SubstrateWeight< // Proof Size summary in bytes: // Measured: `3904 + m * (93 ±0) + n * (90 ±0) + u * (20 ±0)` // Estimated: `6028` - // Minimum execution time: 76_000_000 picoseconds. - Weight::from_parts(60_272_765, 6028) - // Standard Error: 16_056 - .saturating_add(Weight::from_parts(661_873, 0).saturating_mul(n.into())) - // Standard Error: 16_487 - .saturating_add(Weight::from_parts(741_269, 0).saturating_mul(m.into())) + // Minimum execution time: 63_000_000 picoseconds. + Weight::from_parts(36_308_645, 6028) + // Standard Error: 25_597 + .saturating_add(Weight::from_parts(819_777, 0).saturating_mul(n.into())) + // Standard Error: 26_284 + .saturating_add(Weight::from_parts(902_701, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } - /// Storage: ParachainStaking DelegatorState (r:1 w:1) - /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) - /// Storage: ParachainStaking CandidatePool (r:1 w:1) - /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) - /// Storage: ParachainStaking Unstaking (r:1 w:1) - /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) - /// Storage: ParachainStaking TopCandidates (r:1 w:1) - /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) - /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) - /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) - /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: ParachainStaking RewardCount (r:2 w:0) - /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1) + /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:1 w:1) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:2 w:0) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 40]`. /// The range of component `m` is `[1, 39]`. fn delegator_stake_less(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `3155 + m * (74 ±0) + n * (74 ±0)` // Estimated: `6028` - // Minimum execution time: 51_000_000 picoseconds. - Weight::from_parts(24_450_456, 6028) - // Standard Error: 13_176 - .saturating_add(Weight::from_parts(649_197, 0).saturating_mul(n.into())) - // Standard Error: 13_530 - .saturating_add(Weight::from_parts(772_252, 0).saturating_mul(m.into())) + // Minimum execution time: 43_000_000 picoseconds. + Weight::from_parts(14_073_064, 6028) + // Standard Error: 22_457 + .saturating_add(Weight::from_parts(769_795, 0).saturating_mul(n.into())) + // Standard Error: 23_061 + .saturating_add(Weight::from_parts(803_601, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } - /// Storage: ParachainStaking DelegatorState (r:1 w:1) - /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) - /// Storage: ParachainStaking CandidatePool (r:1 w:1) - /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) - /// Storage: ParachainStaking RewardCount (r:2 w:0) - /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - /// Storage: ParachainStaking Unstaking (r:1 w:1) - /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) - /// Storage: ParachainStaking TopCandidates (r:1 w:1) - /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) - /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) - /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) - /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1) + /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:2 w:0) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:1 w:1) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 40]`. /// The range of component `m` is `[1, 39]`. fn leave_delegators(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `3155 + m * (74 ±0) + n * (74 ±0)` // Estimated: `6028` - // Minimum execution time: 56_000_000 picoseconds. - Weight::from_parts(30_920_715, 6028) - // Standard Error: 15_455 - .saturating_add(Weight::from_parts(670_189, 0).saturating_mul(n.into())) - // Standard Error: 15_870 - .saturating_add(Weight::from_parts(634_001, 0).saturating_mul(m.into())) + // Minimum execution time: 46_000_000 picoseconds. + Weight::from_parts(23_362_096, 6028) + // Standard Error: 19_512 + .saturating_add(Weight::from_parts(765_668, 0).saturating_mul(n.into())) + // Standard Error: 20_036 + .saturating_add(Weight::from_parts(601_373, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } - /// Storage: ParachainStaking Unstaking (r:1 w:1) - /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, 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: `ParachainStaking::Unstaking` (r:1 w:1) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, 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 `u` is `[1, 9]`. fn unlock_unstaked(u: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `1076 + u * (20 ±0)` // Estimated: `4764` - // Minimum execution time: 36_000_000 picoseconds. - Weight::from_parts(38_811_600, 4764) - // Standard Error: 17_278 - .saturating_add(Weight::from_parts(132_831, 0).saturating_mul(u.into())) + // Minimum execution time: 28_000_000 picoseconds. + Weight::from_parts(29_651_560, 4764) + // Standard Error: 8_901 + .saturating_add(Weight::from_parts(141_690, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: ParachainStaking MaxCollatorCandidateStake (r:0 w:1) - /// Proof: ParachainStaking MaxCollatorCandidateStake (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::MaxCollatorCandidateStake` (r:0 w:1) + /// Proof: `ParachainStaking::MaxCollatorCandidateStake` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn set_max_candidate_stake() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_000_000 picoseconds. - Weight::from_parts(14_000_000, 0) + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: ParachainStaking DelegatorState (r:1 w:0) - /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) - /// Storage: ParachainStaking RewardCount (r:2 w:1) - /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - /// Storage: ParachainStaking Rewards (r:1 w:1) - /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) - /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) - /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: ParachainStaking InflationConfig (r:1 w:0) - /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::DelegatorState` (r:1 w:0) + /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:2 w:1) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Rewards` (r:1 w:1) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:0) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::InflationConfig` (r:1 w:0) + /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`) fn increment_delegator_rewards() -> Weight { // Proof Size summary in bytes: // Measured: `754` // Estimated: `6028` - // Minimum execution time: 28_000_000 picoseconds. - Weight::from_parts(32_000_000, 6028) + // Minimum execution time: 21_000_000 picoseconds. + Weight::from_parts(21_000_000, 6028) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: ParachainStaking CandidatePool (r:1 w:0) - /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) - /// Storage: ParachainStaking RewardCount (r:41 w:41) - /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - /// Storage: ParachainStaking Rewards (r:41 w:41) - /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) - /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) - /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: ParachainStaking InflationConfig (r:1 w:0) - /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::CandidatePool` (r:1 w:0) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:41 w:41) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Rewards` (r:41 w:41) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:0) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::InflationConfig` (r:1 w:0) + /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`) /// The range of component `m` is `[1, 40]`. fn increment_collator_rewards(m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `855 + m * (98 ±0)` // Estimated: `5495 + m * (2531 ±0)` - // Minimum execution time: 37_000_000 picoseconds. - Weight::from_parts(28_721_195, 5495) - // Standard Error: 18_671 - .saturating_add(Weight::from_parts(11_788_351, 0).saturating_mul(m.into())) + // Minimum execution time: 29_000_000 picoseconds. + Weight::from_parts(17_699_443, 5495) + // Standard Error: 16_885 + .saturating_add(Weight::from_parts(9_588_938, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(m.into()))) .saturating_add(T::DbWeight::get().writes(2_u64)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(m.into()))) .saturating_add(Weight::from_parts(0, 2531).saturating_mul(m.into())) } - /// Storage: ParachainStaking Rewards (r:1 w:1) - /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::Rewards` (r:1 w:1) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn claim_rewards() -> Weight { // Proof Size summary in bytes: // Measured: `575` // Estimated: `3593` - // Minimum execution time: 30_000_000 picoseconds. - Weight::from_parts(31_000_000, 3593) + // Minimum execution time: 22_000_000 picoseconds. + Weight::from_parts(23_000_000, 3593) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: ParachainStaking LastRewardReduction (r:1 w:1) - /// Proof: ParachainStaking LastRewardReduction (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: ParachainStaking InflationConfig (r:1 w:1) - /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) - /// Storage: ParachainStaking CandidatePool (r:41 w:0) - /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) - /// Storage: ParachainStaking RewardCount (r:1640 w:1640) - /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - /// Storage: ParachainStaking Rewards (r:40 w:40) - /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) - /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) - /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:0) - /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `ParachainStaking::LastRewardReduction` (r:1 w:1) + /// Proof: `ParachainStaking::LastRewardReduction` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1) + /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::CandidatePool` (r:41 w:0) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:1640 w:1640) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Rewards` (r:40 w:40) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:0) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::CounterForCandidatePool` (r:1 w:0) + /// Proof: `ParachainStaking::CounterForCandidatePool` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 40]`. /// The range of component `m` is `[0, 40]`. fn execute_scheduled_reward_change(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0 + m * (3891 ±0) + n * (3991 ±0)` - // Estimated: `101750 + m * (37911 ±1_054) + n * (33703 ±16)` - // Minimum execution time: 525_000_000 picoseconds. - Weight::from_parts(530_000_000, 101750) - // Standard Error: 2_947_301 - .saturating_add(Weight::from_parts(89_026_856, 0).saturating_mul(n.into())) - // Standard Error: 2_947_301 - .saturating_add(Weight::from_parts(90_345_662, 0).saturating_mul(m.into())) + // Estimated: `101750 + m * (37911 ±1_054) + n * (33703 ±9)` + // Minimum execution time: 420_000_000 picoseconds. + Weight::from_parts(431_000_000, 101750) + // Standard Error: 2_590_217 + .saturating_add(Weight::from_parts(78_634_433, 0).saturating_mul(n.into())) + // Standard Error: 2_590_217 + .saturating_add(Weight::from_parts(78_105_543, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(125_u64)) .saturating_add(T::DbWeight::get().reads((14_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().reads((14_u64).saturating_mul(m.into()))) @@ -651,4 +680,622 @@ impl parachain_staking::WeightInfo for SubstrateWeight< .saturating_add(Weight::from_parts(0, 37911).saturating_mul(m.into())) .saturating_add(Weight::from_parts(0, 33703).saturating_mul(n.into())) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `ParachainStaking::Round` (r:1 w:0) + /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`) + fn on_initialize_no_action() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `1497` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 1497) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + } + /// Storage: `ParachainStaking::Round` (r:1 w:1) + /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`) + fn on_initialize_round_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `1497` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_000_000, 1497) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `ParachainStaking::Round` (r:1 w:0) + /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`) + fn on_initialize_network_rewards() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `1497` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 1497) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + } + /// Storage: `ParachainStaking::ForceNewRound` (r:0 w:1) + /// Proof: `ParachainStaking::ForceNewRound` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + fn force_new_round() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 2_000_000 picoseconds. + Weight::from_parts(2_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `ParachainStaking::CandidatePool` (r:41 w:0) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:1640 w:1640) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Rewards` (r:40 w:40) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:0) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1) + /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::CounterForCandidatePool` (r:1 w:0) + /// Proof: `ParachainStaking::CounterForCandidatePool` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// The range of component `n` is `[0, 40]`. + /// The range of component `m` is `[0, 40]`. + fn set_inflation(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (3891 ±0) + n * (4052 ±0)` + // Estimated: `101750 + m * (37911 ±1_054) + n * (33703 ±9)` + // Minimum execution time: 462_000_000 picoseconds. + Weight::from_parts(474_000_000, 101750) + // Standard Error: 2_594_253 + .saturating_add(Weight::from_parts(78_871_861, 0).saturating_mul(n.into())) + // Standard Error: 2_594_253 + .saturating_add(Weight::from_parts(73_821_932, 0).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().reads(124_u64)) + .saturating_add(RocksDbWeight::get().reads((14_u64).saturating_mul(n.into()))) + .saturating_add(RocksDbWeight::get().reads((14_u64).saturating_mul(m.into()))) + .saturating_add(RocksDbWeight::get().writes(81_u64)) + .saturating_add(RocksDbWeight::get().writes((14_u64).saturating_mul(n.into()))) + .saturating_add(RocksDbWeight::get().writes((14_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 37911).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 33703).saturating_mul(n.into())) + } + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TopCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// The range of component `n` is `[8, 40]`. + /// The range of component `m` is `[0, 40]`. + fn set_max_selected_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `434 + n * (48 ±0)` + // Estimated: `3406` + // Minimum execution time: 15_000_000 picoseconds. + Weight::from_parts(4_148_612, 3406) + // Standard Error: 14_990 + .saturating_add(Weight::from_parts(341_567, 0).saturating_mul(n.into())) + // Standard Error: 12_042 + .saturating_add(Weight::from_parts(373_225, 0).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `ParachainStaking::Round` (r:1 w:1) + /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`) + fn set_blocks_per_round() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `1497` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(10_000_000, 1497) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `ParachainStaking::CandidatePool` (r:40 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:41 w:41) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::DelegatorState` (r:40 w:40) + /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:41 w:41) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Rewards` (r:1 w:1) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::InflationConfig` (r:1 w:0) + /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`) + /// Storage: `Session::Validators` (r:1 w:0) + /// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Session::DisabledValidators` (r:1 w:1) + /// Proof: `Session::DisabledValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::Digest` (r:1 w:1) + /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainStaking::CounterForCandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CounterForCandidatePool` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// The range of component `n` is `[9, 40]`. + /// The range of component `m` is `[0, 40]`. + fn force_remove_candidate(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (3143 ±0) + n * (2723 ±0)` + // Estimated: `9446 + m * (2716 ±0) + n * (4505 ±27)` + // Minimum execution time: 148_000_000 picoseconds. + Weight::from_parts(150_000_000, 9446) + // Standard Error: 75_916 + .saturating_add(Weight::from_parts(1_928_052, 0).saturating_mul(n.into())) + // Standard Error: 78_382 + .saturating_add(Weight::from_parts(15_539_211, 0).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().reads(11_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into()))) + .saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(m.into()))) + .saturating_add(RocksDbWeight::get().writes(9_u64)) + .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2716).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 4505).saturating_mul(n.into())) + } + /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::DelegatorState` (r:1 w:0) + /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxCollatorCandidateStake` (r:1 w:0) + /// Proof: `ParachainStaking::MaxCollatorCandidateStake` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:1 w:1) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, 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: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::CounterForCandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CounterForCandidatePool` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// The range of component `n` is `[1, 39]`. + /// The range of component `m` is `[0, 40]`. + fn join_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `2158 + m * (45 ±0) + n * (86 ±0)` + // Estimated: `5495` + // Minimum execution time: 56_000_000 picoseconds. + Weight::from_parts(40_436_003, 5495) + // Standard Error: 16_446 + .saturating_add(Weight::from_parts(578_484, 0).saturating_mul(n.into())) + // Standard Error: 15_636 + .saturating_add(Weight::from_parts(644_742, 0).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().reads(11_u64)) + .saturating_add(RocksDbWeight::get().writes(7_u64)) + } + /// Storage: `ParachainStaking::CandidatePool` (r:39 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Round` (r:1 w:0) + /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// The range of component `n` is `[9, 39]`. + /// The range of component `m` is `[0, 40]`. + fn init_leave_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (1872 ±0) + n * (2082 ±0)` + // Estimated: `3406 + n * (4505 ±0)` + // Minimum execution time: 59_000_000 picoseconds. + Weight::from_parts(60_000_000, 3406) + // Standard Error: 27_936 + .saturating_add(Weight::from_parts(2_608_487, 0).saturating_mul(n.into())) + // Standard Error: 28_145 + .saturating_add(Weight::from_parts(61_894, 0).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into()))) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + .saturating_add(Weight::from_parts(0, 4505).saturating_mul(n.into())) + } + /// Storage: `ParachainStaking::CandidatePool` (r:2 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// The range of component `n` is `[9, 39]`. + /// The range of component `m` is `[0, 40]`. + fn cancel_leave_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `758 + m * (96 ±0) + n * (59 ±0)` + // Estimated: `10000` + // Minimum execution time: 28_000_000 picoseconds. + Weight::from_parts(25_829_009, 10000) + // Standard Error: 17_664 + .saturating_add(Weight::from_parts(71_281, 0).saturating_mul(n.into())) + // Standard Error: 13_297 + .saturating_add(Weight::from_parts(393_707, 0).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().reads(5_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Round` (r:1 w:0) + /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:41 w:41) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::DelegatorState` (r:40 w:40) + /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:41 w:41) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Rewards` (r:1 w:1) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:0) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::InflationConfig` (r:1 w:0) + /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`) + /// Storage: `Session::Validators` (r:1 w:0) + /// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Session::DisabledValidators` (r:1 w:1) + /// Proof: `Session::DisabledValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::Digest` (r:1 w:1) + /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainStaking::CounterForCandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CounterForCandidatePool` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// The range of component `n` is `[9, 39]`. + /// The range of component `m` is `[0, 40]`. + fn execute_leave_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (1257 ±0) + n * (655 ±0)` + // Estimated: `5495 + m * (2716 ±0) + n * (213 ±6)` + // Minimum execution time: 45_000_000 picoseconds. + Weight::from_parts(46_000_000, 5495) + // Standard Error: 43_949 + .saturating_add(Weight::from_parts(904_864, 0).saturating_mul(n.into())) + // Standard Error: 44_277 + .saturating_add(Weight::from_parts(16_154_071, 0).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().reads(11_u64)) + .saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(m.into()))) + .saturating_add(RocksDbWeight::get().writes(7_u64)) + .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2716).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 213).saturating_mul(n.into())) + } + /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxCollatorCandidateStake` (r:1 w:0) + /// Proof: `ParachainStaking::MaxCollatorCandidateStake` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:1 w:1) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, 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: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:41 w:41) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Rewards` (r:1 w:1) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::InflationConfig` (r:1 w:0) + /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`) + /// The range of component `n` is `[1, 39]`. + /// The range of component `m` is `[0, 40]`. + /// The range of component `u` is `[0, 9]`. + fn candidate_stake_more(n: u32, m: u32, _u: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (455 ±0) + n * (292 ±0) + u * (20 ±0)` + // Estimated: `5495 + m * (2519 ±0)` + // Minimum execution time: 62_000_000 picoseconds. + Weight::from_parts(16_178_203, 5495) + // Standard Error: 26_046 + .saturating_add(Weight::from_parts(1_454_280, 0).saturating_mul(n.into())) + // Standard Error: 24_764 + .saturating_add(Weight::from_parts(6_893_201, 0).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().reads(12_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into()))) + .saturating_add(RocksDbWeight::get().writes(8_u64)) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2519).saturating_mul(m.into())) + } + /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:1 w:1) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:41 w:41) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Rewards` (r:1 w:1) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::InflationConfig` (r:1 w:0) + /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`) + /// The range of component `n` is `[1, 39]`. + /// The range of component `m` is `[0, 40]`. + fn candidate_stake_less(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (442 ±0) + n * (276 ±0)` + // Estimated: `5495 + m * (2519 ±0)` + // Minimum execution time: 40_000_000 picoseconds. + Weight::from_parts(41_000_000, 5495) + // Standard Error: 22_900 + .saturating_add(Weight::from_parts(607_538, 0).saturating_mul(n.into())) + // Standard Error: 22_395 + .saturating_add(Weight::from_parts(5_807_168, 0).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().reads(8_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into()))) + .saturating_add(RocksDbWeight::get().writes(6_u64)) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2519).saturating_mul(m.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: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::CandidatePool` (r:2 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:1 w:1) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::LastDelegation` (r:1 w:1) + /// Proof: `ParachainStaking::LastDelegation` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Round` (r:1 w:0) + /// Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: Some(12), added: 507, 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: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:1 w:1) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// The range of component `n` is `[1, 40]`. + /// The range of component `m` is `[1, 39]`. + fn join_delegators(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `3555 + m * (113 ±0) + n * (94 ±0)` + // Estimated: `10000` + // Minimum execution time: 71_000_000 picoseconds. + Weight::from_parts(42_188_416, 10000) + // Standard Error: 19_323 + .saturating_add(Weight::from_parts(837_613, 0).saturating_mul(n.into())) + // Standard Error: 19_843 + .saturating_add(Weight::from_parts(739_876, 0).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().reads(13_u64)) + .saturating_add(RocksDbWeight::get().writes(9_u64)) + } + /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1) + /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:1 w:1) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, 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: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:2 w:0) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// The range of component `n` is `[1, 40]`. + /// The range of component `m` is `[1, 39]`. + /// The range of component `u` is `[1, 9]`. + fn delegator_stake_more(n: u32, m: u32, _u: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `3904 + m * (93 ±0) + n * (90 ±0) + u * (20 ±0)` + // Estimated: `6028` + // Minimum execution time: 63_000_000 picoseconds. + Weight::from_parts(36_308_645, 6028) + // Standard Error: 25_597 + .saturating_add(Weight::from_parts(819_777, 0).saturating_mul(n.into())) + // Standard Error: 26_284 + .saturating_add(Weight::from_parts(902_701, 0).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().reads(11_u64)) + .saturating_add(RocksDbWeight::get().writes(7_u64)) + } + /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1) + /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:1 w:1) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:2 w:0) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// The range of component `n` is `[1, 40]`. + /// The range of component `m` is `[1, 39]`. + fn delegator_stake_less(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `3155 + m * (74 ±0) + n * (74 ±0)` + // Estimated: `6028` + // Minimum execution time: 43_000_000 picoseconds. + Weight::from_parts(14_073_064, 6028) + // Standard Error: 22_457 + .saturating_add(Weight::from_parts(769_795, 0).saturating_mul(n.into())) + // Standard Error: 23_061 + .saturating_add(Weight::from_parts(803_601, 0).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().reads(8_u64)) + .saturating_add(RocksDbWeight::get().writes(5_u64)) + } + /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1) + /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:2 w:0) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Unstaking` (r:1 w:1) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TopCandidates` (r:1 w:1) + /// Proof: `ParachainStaking::TopCandidates` (`max_values`: Some(1), `max_size`: Some(1921), added: 2416, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::MaxSelectedCandidates` (r:1 w:0) + /// Proof: `ParachainStaking::MaxSelectedCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:1) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// The range of component `n` is `[1, 40]`. + /// The range of component `m` is `[1, 39]`. + fn leave_delegators(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `3155 + m * (74 ±0) + n * (74 ±0)` + // Estimated: `6028` + // Minimum execution time: 46_000_000 picoseconds. + Weight::from_parts(23_362_096, 6028) + // Standard Error: 19_512 + .saturating_add(Weight::from_parts(765_668, 0).saturating_mul(n.into())) + // Standard Error: 20_036 + .saturating_add(Weight::from_parts(601_373, 0).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().reads(8_u64)) + .saturating_add(RocksDbWeight::get().writes(5_u64)) + } + /// Storage: `ParachainStaking::Unstaking` (r:1 w:1) + /// Proof: `ParachainStaking::Unstaking` (`max_values`: None, `max_size`: Some(241), added: 2716, 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 `u` is `[1, 9]`. + fn unlock_unstaked(u: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `1076 + u * (20 ±0)` + // Estimated: `4764` + // Minimum execution time: 28_000_000 picoseconds. + Weight::from_parts(29_651_560, 4764) + // Standard Error: 8_901 + .saturating_add(Weight::from_parts(141_690, 0).saturating_mul(u.into())) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: `ParachainStaking::MaxCollatorCandidateStake` (r:0 w:1) + /// Proof: `ParachainStaking::MaxCollatorCandidateStake` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + fn set_max_candidate_stake() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `ParachainStaking::DelegatorState` (r:1 w:0) + /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:2 w:1) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Rewards` (r:1 w:1) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:0) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::InflationConfig` (r:1 w:0) + /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`) + fn increment_delegator_rewards() -> Weight { + // Proof Size summary in bytes: + // Measured: `754` + // Estimated: `6028` + // Minimum execution time: 21_000_000 picoseconds. + Weight::from_parts(21_000_000, 6028) + .saturating_add(RocksDbWeight::get().reads(6_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `ParachainStaking::CandidatePool` (r:1 w:0) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:41 w:41) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Rewards` (r:41 w:41) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:0) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::InflationConfig` (r:1 w:0) + /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`) + /// The range of component `m` is `[1, 40]`. + fn increment_collator_rewards(m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `855 + m * (98 ±0)` + // Estimated: `5495 + m * (2531 ±0)` + // Minimum execution time: 29_000_000 picoseconds. + Weight::from_parts(17_699_443, 5495) + // Standard Error: 16_885 + .saturating_add(Weight::from_parts(9_588_938, 0).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().reads(5_u64)) + .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(m.into()))) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2531).saturating_mul(m.into())) + } + /// Storage: `ParachainStaking::Rewards` (r:1 w:1) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn claim_rewards() -> Weight { + // Proof Size summary in bytes: + // Measured: `575` + // Estimated: `3593` + // Minimum execution time: 22_000_000 picoseconds. + Weight::from_parts(23_000_000, 3593) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `ParachainStaking::LastRewardReduction` (r:1 w:1) + /// Proof: `ParachainStaking::LastRewardReduction` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1) + /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::CandidatePool` (r:41 w:0) + /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(2030), added: 4505, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::RewardCount` (r:1640 w:1640) + /// Proof: `ParachainStaking::RewardCount` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::Rewards` (r:40 w:40) + /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:0) + /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParachainStaking::CounterForCandidatePool` (r:1 w:0) + /// Proof: `ParachainStaking::CounterForCandidatePool` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// The range of component `n` is `[0, 40]`. + /// The range of component `m` is `[0, 40]`. + fn execute_scheduled_reward_change(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (3891 ±0) + n * (3991 ±0)` + // Estimated: `101750 + m * (37911 ±1_054) + n * (33703 ±9)` + // Minimum execution time: 420_000_000 picoseconds. + Weight::from_parts(431_000_000, 101750) + // Standard Error: 2_590_217 + .saturating_add(Weight::from_parts(78_634_433, 0).saturating_mul(n.into())) + // Standard Error: 2_590_217 + .saturating_add(Weight::from_parts(78_105_543, 0).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().reads(125_u64)) + .saturating_add(RocksDbWeight::get().reads((14_u64).saturating_mul(n.into()))) + .saturating_add(RocksDbWeight::get().reads((14_u64).saturating_mul(m.into()))) + .saturating_add(RocksDbWeight::get().writes(82_u64)) + .saturating_add(RocksDbWeight::get().writes((14_u64).saturating_mul(n.into()))) + .saturating_add(RocksDbWeight::get().writes((14_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 37911).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 33703).saturating_mul(n.into())) + } } \ No newline at end of file diff --git a/runtime/amplitude/src/weights/redeem.rs b/runtime/amplitude/src/weights/redeem.rs index 72f447f6d..e4b65a959 100644 --- a/runtime/amplitude/src/weights/redeem.rs +++ b/runtime/amplitude/src/weights/redeem.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for redeem //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // amplitude -// --execution=wasm // --wasm-execution=compiled // --pallet // redeem @@ -36,260 +35,551 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for redeem. +pub trait WeightInfo { + fn request_redeem() -> Weight; + fn liquidation_redeem() -> Weight; + fn execute_redeem() -> Weight; + fn cancel_redeem_reimburse() -> Weight; + fn cancel_redeem_retry() -> Weight; + fn self_redeem() -> Weight; + fn set_redeem_period() -> Weight; + fn mint_tokens_for_reimbursed_redeem() -> Weight; + fn rate_limit_update() -> Weight; + fn minimum_transfer_amount_update() -> Weight; +} + /// Weights for redeem using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl redeem::WeightInfo for SubstrateWeight { - /// Storage: Redeem LimitVolumeAmount (r:1 w:0) - /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: Fee RedeemFee (r:1 w:0) - /// Proof Skipped: Fee RedeemFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Redeem RedeemMinimumTransferAmount (r:1 w:0) - /// Proof: Redeem RedeemMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: Security Nonce (r:1 w:1) - /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: System ParentHash (r:1 w:0) - /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee PremiumRedeemFee (r:1 w:0) - /// Proof Skipped: Fee PremiumRedeemFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Redeem RedeemPeriod (r:1 w:0) - /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Redeem RedeemRequests (r:0 w:1) - /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `Redeem::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Redeem::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `Fee::RedeemFee` (r:1 w:0) + /// Proof: `Fee::RedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemMinimumTransferAmount` (r:1 w:0) + /// Proof: `Redeem::RedeemMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Security::Nonce` (r:1 w:1) + /// Proof: `Security::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::PremiumRedeemFee` (r:1 w:0) + /// Proof: `Fee::PremiumRedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemPeriod` (r:1 w:0) + /// Proof: `Redeem::RedeemPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Redeem::RedeemRequests` (r:0 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) fn request_redeem() -> Weight { // Proof Size summary in bytes: - // Measured: `1527` - // Estimated: `4992` - // Minimum execution time: 97_000_000 picoseconds. - Weight::from_parts(102_000_000, 4992) - .saturating_add(T::DbWeight::get().reads(14_u64)) + // Measured: `1631` + // Estimated: `7734` + // Minimum execution time: 79_000_000 picoseconds. + Weight::from_parts(80_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: Tokens Accounts (r:3 w:3) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: Tokens TotalIssuance (r:1 w:1) - /// Proof: Tokens TotalIssuance (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) - /// Storage: VaultRegistry LiquidationVault (r:1 w:1) - /// Proof Skipped: VaultRegistry LiquidationVault (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: `Tokens::Accounts` (r:3 w:3) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Tokens::TotalIssuance` (r:1 w:1) + /// Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::LiquidationVault` (r:1 w:1) + /// Proof: `VaultRegistry::LiquidationVault` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) fn liquidation_redeem() -> Weight { // Proof Size summary in bytes: // Measured: `1346` // Estimated: `8865` - // Minimum execution time: 125_000_000 picoseconds. - Weight::from_parts(129_000_000, 8865) + // Minimum execution time: 92_000_000 picoseconds. + Weight::from_parts(94_000_000, 8865) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(8_u64)) } - /// Storage: Redeem RedeemRequests (r:1 w:1) - /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) - /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) - /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: StellarRelay Validators (r:1 w:0) - /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) - /// Storage: StellarRelay Organizations (r:1 w:0) - /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) - /// Storage: Redeem LimitVolumeAmount (r:1 w:0) - /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalStake (r:1 w:0) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `Redeem::RedeemRequests` (r:1 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:1 w:0) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Validators` (r:1 w:0) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:0) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `Redeem::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Redeem::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute_redeem() -> Weight { // Proof Size summary in bytes: // Measured: `1731` // Estimated: `71867` - // Minimum execution time: 8_279_000_000 picoseconds. - Weight::from_parts(8_432_000_000, 71867) + // Minimum execution time: 7_739_000_000 picoseconds. + Weight::from_parts(7_844_000_000, 71867) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Redeem RedeemRequests (r:1 w:1) - /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) - /// Storage: Redeem RedeemPeriod (r:1 w:0) - /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee PunishmentFee (r:1 w:0) - /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:0) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry PunishmentDelay (r:1 w:0) - /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:2 w:0) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Redeem CancelledRedeemAmount (r:0 w:1) - /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemRequests` (r:1 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + /// Storage: `Redeem::RedeemPeriod` (r:1 w:0) + /// Proof: `Redeem::RedeemPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::PunishmentFee` (r:1 w:0) + /// Proof: `Fee::PunishmentFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PunishmentDelay` (r:1 w:0) + /// Proof: `VaultRegistry::PunishmentDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:2 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::CancelledRedeemAmount` (r:0 w:1) + /// Proof: `Redeem::CancelledRedeemAmount` (`max_values`: None, `max_size`: Some(110), added: 2585, mode: `MaxEncodedLen`) fn cancel_redeem_reimburse() -> Weight { // Proof Size summary in bytes: - // Measured: `2658` - // Estimated: `6123` - // Minimum execution time: 156_000_000 picoseconds. - Weight::from_parts(160_000_000, 6123) - .saturating_add(T::DbWeight::get().reads(20_u64)) + // Measured: `2762` + // Estimated: `7734` + // Minimum execution time: 129_000_000 picoseconds. + Weight::from_parts(131_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(22_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Redeem RedeemRequests (r:1 w:1) - /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) - /// Storage: Redeem RedeemPeriod (r:1 w:0) - /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee PunishmentFee (r:1 w:0) - /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:0) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry PunishmentDelay (r:1 w:0) - /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Redeem CancelledRedeemAmount (r:0 w:1) - /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemRequests` (r:1 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + /// Storage: `Redeem::RedeemPeriod` (r:1 w:0) + /// Proof: `Redeem::RedeemPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::PunishmentFee` (r:1 w:0) + /// Proof: `Fee::PunishmentFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PunishmentDelay` (r:1 w:0) + /// Proof: `VaultRegistry::PunishmentDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::CancelledRedeemAmount` (r:0 w:1) + /// Proof: `Redeem::CancelledRedeemAmount` (`max_values`: None, `max_size`: Some(110), added: 2585, mode: `MaxEncodedLen`) fn cancel_redeem_retry() -> Weight { // Proof Size summary in bytes: - // Measured: `2551` - // Estimated: `6016` - // Minimum execution time: 133_000_000 picoseconds. - Weight::from_parts(145_000_000, 6016) - .saturating_add(T::DbWeight::get().reads(17_u64)) + // Measured: `2655` + // Estimated: `7734` + // Minimum execution time: 108_000_000 picoseconds. + Weight::from_parts(109_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(19_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: Tokens TotalIssuance (r:1 w:1) - /// Proof: Tokens TotalIssuance (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalStake (r:2 w:0) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Tokens::TotalIssuance` (r:1 w:1) + /// Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalStake` (r:2 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:1 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) fn self_redeem() -> Weight { // Proof Size summary in bytes: - // Measured: `1620` + // Measured: `1724` // Estimated: `6096` - // Minimum execution time: 98_000_000 picoseconds. - Weight::from_parts(105_000_000, 6096) - .saturating_add(T::DbWeight::get().reads(7_u64)) + // Minimum execution time: 77_000_000 picoseconds. + Weight::from_parts(79_000_000, 6096) + .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: Redeem RedeemPeriod (r:0 w:1) - /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `Redeem::RedeemPeriod` (r:0 w:1) + /// Proof: `Redeem::RedeemPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_redeem_period() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Redeem RedeemRequests (r:1 w:1) - /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) - /// Storage: Redeem CancelledRedeemAmount (r:1 w:1) - /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemRequests` (r:1 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + /// Storage: `Redeem::CancelledRedeemAmount` (r:1 w:1) + /// Proof: `Redeem::CancelledRedeemAmount` (`max_values`: None, `max_size`: Some(110), added: 2585, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) fn mint_tokens_for_reimbursed_redeem() -> Weight { // Proof Size summary in bytes: - // Measured: `1839` - // Estimated: `5304` - // Minimum execution time: 76_000_000 picoseconds. - Weight::from_parts(80_000_000, 5304) - .saturating_add(T::DbWeight::get().reads(7_u64)) + // Measured: `1943` + // Estimated: `7734` + // Minimum execution time: 64_000_000 picoseconds. + Weight::from_parts(65_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(9_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: Redeem LimitVolumeAmount (r:0 w:1) - /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: Redeem LimitVolumeCurrencyId (r:0 w:1) - /// Proof: Redeem LimitVolumeCurrencyId (max_values: Some(1), max_size: Some(46), added: 541, mode: MaxEncodedLen) - /// Storage: Redeem IntervalLength (r:0 w:1) - /// Proof: Redeem IntervalLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `Redeem::LimitVolumeAmount` (r:0 w:1) + /// Proof: `Redeem::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Redeem::LimitVolumeCurrencyId` (r:0 w:1) + /// Proof: `Redeem::LimitVolumeCurrencyId` (`max_values`: Some(1), `max_size`: Some(46), added: 541, mode: `MaxEncodedLen`) + /// Storage: `Redeem::IntervalLength` (r:0 w:1) + /// Proof: `Redeem::IntervalLength` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn rate_limit_update() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 13_000_000 picoseconds. - Weight::from_parts(13_000_000, 0) + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(9_000_000, 0) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: Redeem RedeemMinimumTransferAmount (r:0 w:1) - /// Proof: Redeem RedeemMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: `Redeem::RedeemMinimumTransferAmount` (r:0 w:1) + /// Proof: `Redeem::RedeemMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn minimum_transfer_amount_update() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(11_000_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `Redeem::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Redeem::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `Fee::RedeemFee` (r:1 w:0) + /// Proof: `Fee::RedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemMinimumTransferAmount` (r:1 w:0) + /// Proof: `Redeem::RedeemMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Security::Nonce` (r:1 w:1) + /// Proof: `Security::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::PremiumRedeemFee` (r:1 w:0) + /// Proof: `Fee::PremiumRedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemPeriod` (r:1 w:0) + /// Proof: `Redeem::RedeemPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Redeem::RedeemRequests` (r:0 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + fn request_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1631` + // Estimated: `7734` + // Minimum execution time: 79_000_000 picoseconds. + Weight::from_parts(80_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(16_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) + } + /// Storage: `Tokens::Accounts` (r:3 w:3) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Tokens::TotalIssuance` (r:1 w:1) + /// Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::LiquidationVault` (r:1 w:1) + /// Proof: `VaultRegistry::LiquidationVault` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn liquidation_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1346` + // Estimated: `8865` + // Minimum execution time: 92_000_000 picoseconds. + Weight::from_parts(94_000_000, 8865) + .saturating_add(RocksDbWeight::get().reads(8_u64)) + .saturating_add(RocksDbWeight::get().writes(8_u64)) + } + /// Storage: `Redeem::RedeemRequests` (r:1 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:1 w:0) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Validators` (r:1 w:0) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:0) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `Redeem::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Redeem::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn execute_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1731` + // Estimated: `71867` + // Minimum execution time: 7_739_000_000 picoseconds. + Weight::from_parts(7_844_000_000, 71867) + .saturating_add(RocksDbWeight::get().reads(7_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemRequests` (r:1 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + /// Storage: `Redeem::RedeemPeriod` (r:1 w:0) + /// Proof: `Redeem::RedeemPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::PunishmentFee` (r:1 w:0) + /// Proof: `Fee::PunishmentFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PunishmentDelay` (r:1 w:0) + /// Proof: `VaultRegistry::PunishmentDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:2 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::CancelledRedeemAmount` (r:0 w:1) + /// Proof: `Redeem::CancelledRedeemAmount` (`max_values`: None, `max_size`: Some(110), added: 2585, mode: `MaxEncodedLen`) + fn cancel_redeem_reimburse() -> Weight { + // Proof Size summary in bytes: + // Measured: `2762` + // Estimated: `7734` + // Minimum execution time: 129_000_000 picoseconds. + Weight::from_parts(131_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(22_u64)) + .saturating_add(RocksDbWeight::get().writes(7_u64)) + } + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemRequests` (r:1 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + /// Storage: `Redeem::RedeemPeriod` (r:1 w:0) + /// Proof: `Redeem::RedeemPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::PunishmentFee` (r:1 w:0) + /// Proof: `Fee::PunishmentFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PunishmentDelay` (r:1 w:0) + /// Proof: `VaultRegistry::PunishmentDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::CancelledRedeemAmount` (r:0 w:1) + /// Proof: `Redeem::CancelledRedeemAmount` (`max_values`: None, `max_size`: Some(110), added: 2585, mode: `MaxEncodedLen`) + fn cancel_redeem_retry() -> Weight { + // Proof Size summary in bytes: + // Measured: `2655` + // Estimated: `7734` + // Minimum execution time: 108_000_000 picoseconds. + Weight::from_parts(109_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(19_u64)) + .saturating_add(RocksDbWeight::get().writes(7_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Tokens::TotalIssuance` (r:1 w:1) + /// Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalStake` (r:2 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:1 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + fn self_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1724` + // Estimated: `6096` + // Minimum execution time: 77_000_000 picoseconds. + Weight::from_parts(79_000_000, 6096) + .saturating_add(RocksDbWeight::get().reads(8_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) + } + /// Storage: `Redeem::RedeemPeriod` (r:0 w:1) + /// Proof: `Redeem::RedeemPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + fn set_redeem_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemRequests` (r:1 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + /// Storage: `Redeem::CancelledRedeemAmount` (r:1 w:1) + /// Proof: `Redeem::CancelledRedeemAmount` (`max_values`: None, `max_size`: Some(110), added: 2585, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn mint_tokens_for_reimbursed_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1943` + // Estimated: `7734` + // Minimum execution time: 64_000_000 picoseconds. + Weight::from_parts(65_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(9_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: `Redeem::LimitVolumeAmount` (r:0 w:1) + /// Proof: `Redeem::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Redeem::LimitVolumeCurrencyId` (r:0 w:1) + /// Proof: `Redeem::LimitVolumeCurrencyId` (`max_values`: Some(1), `max_size`: Some(46), added: 541, mode: `MaxEncodedLen`) + /// Storage: `Redeem::IntervalLength` (r:0 w:1) + /// Proof: `Redeem::IntervalLength` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + fn rate_limit_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(9_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: `Redeem::RedeemMinimumTransferAmount` (r:0 w:1) + /// Proof: `Redeem::RedeemMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/amplitude/src/weights/replace.rs b/runtime/amplitude/src/weights/replace.rs index 6539d108b..930cca75e 100644 --- a/runtime/amplitude/src/weights/replace.rs +++ b/runtime/amplitude/src/weights/replace.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for replace //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // amplitude -// --execution=wasm // --wasm-execution=compiled // --pallet // replace @@ -36,188 +35,396 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for replace. +pub trait WeightInfo { + fn request_replace() -> Weight; + fn withdraw_replace() -> Weight; + fn accept_replace() -> Weight; + fn execute_replace() -> Weight; + fn cancel_replace() -> Weight; + fn set_replace_period() -> Weight; + fn minimum_transfer_amount_update() -> Weight; +} + /// Weights for replace using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl replace::WeightInfo for SubstrateWeight { - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Nomination Vaults (r:1 w:0) - /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) - /// Storage: Replace ReplaceMinimumTransferAmount (r:1 w:0) - /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Fee ReplaceGriefingCollateral (r:1 w:0) - /// Proof Skipped: Fee ReplaceGriefingCollateral (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) +impl WeightInfo for SubstrateWeight { + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:1 w:0) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::ReplaceGriefingCollateral` (r:1 w:0) + /// Proof: `Fee::ReplaceGriefingCollateral` (`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 request_replace() -> Weight { // Proof Size summary in bytes: - // Measured: `1498` - // Estimated: `4963` - // Minimum execution time: 73_000_000 picoseconds. - Weight::from_parts(76_000_000, 4963) - .saturating_add(T::DbWeight::get().reads(6_u64)) + // Measured: `1602` + // Estimated: `7734` + // Minimum execution time: 57_000_000 picoseconds. + Weight::from_parts(59_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn withdraw_replace() -> Weight { // Proof Size summary in bytes: // Measured: `650` // Estimated: `4115` - // Minimum execution time: 29_000_000 picoseconds. - Weight::from_parts(31_000_000, 4115) + // Minimum execution time: 20_000_000 picoseconds. + Weight::from_parts(22_000_000, 4115) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry Vaults (r:2 w:2) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Replace ReplaceMinimumTransferAmount (r:1 w:0) - /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Security Nonce (r:1 w:1) - /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: System ParentHash (r:1 w:0) - /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Replace ReplacePeriod (r:1 w:0) - /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Replace ReplaceRequests (r:0 w:1) - /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:1 w:0) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Security::Nonce` (r:1 w:1) + /// Proof: `Security::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Replace::ReplacePeriod` (r:1 w:0) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplaceRequests` (r:0 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) fn accept_replace() -> Weight { // Proof Size summary in bytes: - // Measured: `3277` - // Estimated: `9217` - // Minimum execution time: 233_000_000 picoseconds. - Weight::from_parts(248_000_000, 9217) - .saturating_add(T::DbWeight::get().reads(27_u64)) + // Measured: `3379` + // Estimated: `9319` + // Minimum execution time: 189_000_000 picoseconds. + Weight::from_parts(191_000_000, 9319) + .saturating_add(T::DbWeight::get().reads(29_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } - /// Storage: Replace ReplaceRequests (r:1 w:1) - /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) - /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) - /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: StellarRelay Validators (r:1 w:0) - /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) - /// Storage: StellarRelay Organizations (r:1 w:0) - /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:2 w:2) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `Replace::ReplaceRequests` (r:1 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:1 w:0) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Validators` (r:1 w:0) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:0) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute_replace() -> Weight { // Proof Size summary in bytes: // Measured: `1968` // Estimated: `71867` - // Minimum execution time: 8_218_000_000 picoseconds. - Weight::from_parts(8_353_000_000, 71867) + // Minimum execution time: 7_741_000_000 picoseconds. + Weight::from_parts(8_004_000_000, 71867) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: Replace ReplaceRequests (r:1 w:1) - /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) - /// Storage: Replace ReplacePeriod (r:1 w:0) - /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:2 w:2) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:0) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: `Replace::ReplaceRequests` (r:1 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplacePeriod` (r:1 w:0) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_replace() -> Weight { // Proof Size summary in bytes: - // Measured: `3080` - // Estimated: `9020` - // Minimum execution time: 144_000_000 picoseconds. - Weight::from_parts(164_000_000, 9020) - .saturating_add(T::DbWeight::get().reads(20_u64)) + // Measured: `3182` + // Estimated: `9122` + // Minimum execution time: 116_000_000 picoseconds. + Weight::from_parts(119_000_000, 9122) + .saturating_add(T::DbWeight::get().reads(22_u64)) .saturating_add(T::DbWeight::get().writes(10_u64)) } - /// Storage: Replace ReplacePeriod (r:0 w:1) - /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `Replace::ReplacePeriod` (r:0 w:1) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_replace_period() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Replace ReplaceMinimumTransferAmount (r:0 w:1) - /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:0 w:1) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn minimum_transfer_amount_update() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:1 w:0) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::ReplaceGriefingCollateral` (r:1 w:0) + /// Proof: `Fee::ReplaceGriefingCollateral` (`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 request_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `1602` + // Estimated: `7734` + // Minimum execution time: 57_000_000 picoseconds. + Weight::from_parts(59_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(8_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn withdraw_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `650` + // Estimated: `4115` + // Minimum execution time: 20_000_000 picoseconds. + Weight::from_parts(22_000_000, 4115) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:1 w:0) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Security::Nonce` (r:1 w:1) + /// Proof: `Security::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Replace::ReplacePeriod` (r:1 w:0) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplaceRequests` (r:0 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) + fn accept_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `3379` + // Estimated: `9319` + // Minimum execution time: 189_000_000 picoseconds. + Weight::from_parts(191_000_000, 9319) + .saturating_add(RocksDbWeight::get().reads(29_u64)) + .saturating_add(RocksDbWeight::get().writes(16_u64)) + } + /// Storage: `Replace::ReplaceRequests` (r:1 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:1 w:0) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Validators` (r:1 w:0) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:0) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn execute_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `1968` + // Estimated: `71867` + // Minimum execution time: 7_741_000_000 picoseconds. + Weight::from_parts(8_004_000_000, 71867) + .saturating_add(RocksDbWeight::get().reads(6_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: `Replace::ReplaceRequests` (r:1 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplacePeriod` (r:1 w:0) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn cancel_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `3182` + // Estimated: `9122` + // Minimum execution time: 116_000_000 picoseconds. + Weight::from_parts(119_000_000, 9122) + .saturating_add(RocksDbWeight::get().reads(22_u64)) + .saturating_add(RocksDbWeight::get().writes(10_u64)) + } + /// Storage: `Replace::ReplacePeriod` (r:0 w:1) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + fn set_replace_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:0 w:1) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/amplitude/src/weights/stellar_relay.rs b/runtime/amplitude/src/weights/stellar_relay.rs index cb81cc0d2..9163b1db1 100644 --- a/runtime/amplitude/src/weights/stellar_relay.rs +++ b/runtime/amplitude/src/weights/stellar_relay.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for stellar_relay //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // amplitude -// --execution=wasm // --wasm-execution=compiled // --pallet // stellar_relay @@ -36,26 +35,54 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for stellar_relay. +pub trait WeightInfo { + fn update_tier_1_validator_set() -> Weight; +} + /// Weights for stellar_relay using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl stellar_relay::WeightInfo for SubstrateWeight { - /// Storage: StellarRelay Validators (r:1 w:1) - /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) - /// Storage: StellarRelay Organizations (r:1 w:1) - /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) - /// Storage: StellarRelay OldValidators (r:0 w:1) - /// Proof: StellarRelay OldValidators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) - /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:0 w:1) - /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: StellarRelay OldOrganizations (r:0 w:1) - /// Proof: StellarRelay OldOrganizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `StellarRelay::Validators` (r:1 w:1) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:1) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::OldValidators` (r:0 w:1) + /// Proof: `StellarRelay::OldValidators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:0 w:1) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::OldOrganizations` (r:0 w:1) + /// Proof: `StellarRelay::OldOrganizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) fn update_tier_1_validator_set() -> Weight { // Proof Size summary in bytes: // Measured: `2446` // Estimated: `71867` - // Minimum execution time: 150_000_000 picoseconds. - Weight::from_parts(152_000_000, 71867) + // Minimum execution time: 113_000_000 picoseconds. + Weight::from_parts(116_000_000, 71867) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `StellarRelay::Validators` (r:1 w:1) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:1) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::OldValidators` (r:0 w:1) + /// Proof: `StellarRelay::OldValidators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:0 w:1) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::OldOrganizations` (r:0 w:1) + /// Proof: `StellarRelay::OldOrganizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + fn update_tier_1_validator_set() -> Weight { + // Proof Size summary in bytes: + // Measured: `2446` + // Estimated: `71867` + // Minimum execution time: 113_000_000 picoseconds. + Weight::from_parts(116_000_000, 71867) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(5_u64)) + } } \ No newline at end of file diff --git a/runtime/amplitude/src/weights/treasury_buyout_extension.rs b/runtime/amplitude/src/weights/treasury_buyout_extension.rs index 3e32e3129..920c4e7af 100644 --- a/runtime/amplitude/src/weights/treasury_buyout_extension.rs +++ b/runtime/amplitude/src/weights/treasury_buyout_extension.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for treasury_buyout_extension //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-05-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // amplitude -// --execution=wasm // --wasm-execution=compiled // --pallet // treasury-buyout-extension @@ -36,54 +35,112 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for treasury_buyout_extension. +pub trait WeightInfo { + fn buyout() -> Weight; + fn update_buyout_limit() -> Weight; + fn update_allowed_assets(n: u32, ) -> Weight; +} + /// Weights for treasury_buyout_extension using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl treasury_buyout_extension::default_weights::WeightInfo for SubstrateWeight { - /// Storage: TreasuryBuyoutExtension AllowedCurrencies (r:1 w:0) - /// Proof: TreasuryBuyoutExtension AllowedCurrencies (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen) - /// Storage: AssetRegistry Metadata (r:2 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: DiaOracleModule CoinInfosMap (r:1 w:0) - /// Proof Skipped: DiaOracleModule CoinInfosMap (max_values: None, max_size: None, mode: Measured) - /// Storage: TreasuryBuyoutExtension BuyoutLimit (r:1 w:0) - /// Proof: TreasuryBuyoutExtension BuyoutLimit (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: TreasuryBuyoutExtension Buyouts (r:1 w:1) - /// Proof: TreasuryBuyoutExtension Buyouts (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) - /// Storage: Tokens Accounts (r:2 w:2) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `TreasuryBuyoutExtension::AllowedCurrencies` (r:1 w:0) + /// Proof: `TreasuryBuyoutExtension::AllowedCurrencies` (`max_values`: None, `max_size`: Some(62), added: 2537, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `DiaOracleModule::CoinInfosMap` (r:1 w:0) + /// Proof: `DiaOracleModule::CoinInfosMap` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TreasuryBuyoutExtension::BuyoutLimit` (r:1 w:0) + /// Proof: `TreasuryBuyoutExtension::BuyoutLimit` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `TreasuryBuyoutExtension::Buyouts` (r:1 w:1) + /// Proof: `TreasuryBuyoutExtension::Buyouts` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn buyout() -> Weight { // Proof Size summary in bytes: // Measured: `944` - // Estimated: `6884` - // Minimum execution time: 118_000_000 picoseconds. - Weight::from_parts(121_000_000, 6884) + // Estimated: `7734` + // Minimum execution time: 85_000_000 picoseconds. + Weight::from_parts(88_000_000, 7734) .saturating_add(T::DbWeight::get().reads(10_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } - /// Storage: TreasuryBuyoutExtension BuyoutLimit (r:0 w:1) - /// Proof: TreasuryBuyoutExtension BuyoutLimit (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: `TreasuryBuyoutExtension::BuyoutLimit` (r:0 w:1) + /// Proof: `TreasuryBuyoutExtension::BuyoutLimit` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn update_buyout_limit() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_000_000 picoseconds. - Weight::from_parts(8_000_000, 0) + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TreasuryBuyoutExtension AllowedCurrencies (r:1 w:1) - /// Proof: TreasuryBuyoutExtension AllowedCurrencies (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen) + /// Storage: `TreasuryBuyoutExtension::AllowedCurrencies` (r:1 w:1) + /// Proof: `TreasuryBuyoutExtension::AllowedCurrencies` (`max_values`: None, `max_size`: Some(62), added: 2537, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 20]`. fn update_allowed_assets(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `4` // Estimated: `3527` - // Minimum execution time: 16_000_000 picoseconds. - Weight::from_parts(15_762_722, 3527) - // Standard Error: 4_500 - .saturating_add(Weight::from_parts(1_228_071, 0).saturating_mul(n.into())) + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(11_242_134, 3527) + // Standard Error: 3_030 + .saturating_add(Weight::from_parts(905_974, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `TreasuryBuyoutExtension::AllowedCurrencies` (r:1 w:0) + /// Proof: `TreasuryBuyoutExtension::AllowedCurrencies` (`max_values`: None, `max_size`: Some(62), added: 2537, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `DiaOracleModule::CoinInfosMap` (r:1 w:0) + /// Proof: `DiaOracleModule::CoinInfosMap` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TreasuryBuyoutExtension::BuyoutLimit` (r:1 w:0) + /// Proof: `TreasuryBuyoutExtension::BuyoutLimit` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `TreasuryBuyoutExtension::Buyouts` (r:1 w:1) + /// Proof: `TreasuryBuyoutExtension::Buyouts` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn buyout() -> Weight { + // Proof Size summary in bytes: + // Measured: `944` + // Estimated: `7734` + // Minimum execution time: 85_000_000 picoseconds. + Weight::from_parts(88_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(10_u64)) + .saturating_add(RocksDbWeight::get().writes(5_u64)) + } + /// Storage: `TreasuryBuyoutExtension::BuyoutLimit` (r:0 w:1) + /// Proof: `TreasuryBuyoutExtension::BuyoutLimit` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + fn update_buyout_limit() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `TreasuryBuyoutExtension::AllowedCurrencies` (r:1 w:1) + /// Proof: `TreasuryBuyoutExtension::AllowedCurrencies` (`max_values`: None, `max_size`: Some(62), added: 2537, mode: `MaxEncodedLen`) + /// The range of component `n` is `[1, 20]`. + fn update_allowed_assets(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `4` + // Estimated: `3527` + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(11_242_134, 3527) + // Standard Error: 3_030 + .saturating_add(Weight::from_parts(905_974, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/amplitude/src/weights/vault_registry.rs b/runtime/amplitude/src/weights/vault_registry.rs index ea938346d..cbf73a53a 100644 --- a/runtime/amplitude/src/weights/vault_registry.rs +++ b/runtime/amplitude/src/weights/vault_registry.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for vault_registry //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // amplitude -// --execution=wasm // --wasm-execution=compiled // --pallet // vault-registry @@ -36,346 +35,719 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for vault_registry. +pub trait WeightInfo { + fn register_vault() -> Weight; + fn deposit_collateral() -> Weight; + fn withdraw_collateral() -> Weight; + fn register_public_key() -> Weight; + fn accept_new_issues() -> Weight; + fn set_custom_secure_threshold() -> Weight; + fn set_minimum_collateral() -> Weight; + fn set_system_collateral_ceiling() -> Weight; + fn set_secure_collateral_threshold() -> Weight; + fn set_premium_redeem_threshold() -> Weight; + fn set_liquidation_collateral_threshold() -> Weight; + fn report_undercollateralized_vault() -> Weight; + fn recover_vault_id() -> Weight; + fn set_punishment_delay() -> Weight; +} + /// Weights for vault_registry using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl vault_registry::WeightInfo for SubstrateWeight { - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry LiquidationCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry MinimumCollateralVault (r:1 w:0) - /// Proof Skipped: VaultRegistry MinimumCollateralVault (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:0) - /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::MinimumCollateralVault` (r:1 w:0) + /// Proof: `VaultRegistry::MinimumCollateralVault` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:0) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:0) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) fn register_vault() -> Weight { // Proof Size summary in bytes: // Measured: `1079` // Estimated: `4544` - // Minimum execution time: 154_000_000 picoseconds. - Weight::from_parts(159_000_000, 4544) + // Minimum execution time: 116_000_000 picoseconds. + Weight::from_parts(122_000_000, 4544) .saturating_add(T::DbWeight::get().reads(24_u64)) .saturating_add(T::DbWeight::get().writes(12_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) fn deposit_collateral() -> Weight { // Proof Size summary in bytes: - // Measured: `2501` - // Estimated: `5966` - // Minimum execution time: 180_000_000 picoseconds. - Weight::from_parts(186_000_000, 5966) - .saturating_add(T::DbWeight::get().reads(21_u64)) + // Measured: `2605` + // Estimated: `7734` + // Minimum execution time: 138_000_000 picoseconds. + Weight::from_parts(148_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(23_u64)) .saturating_add(T::DbWeight::get().writes(12_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) fn withdraw_collateral() -> Weight { // Proof Size summary in bytes: - // Measured: `2475` - // Estimated: `5940` - // Minimum execution time: 182_000_000 picoseconds. - Weight::from_parts(188_000_000, 5940) - .saturating_add(T::DbWeight::get().reads(21_u64)) + // Measured: `2579` + // Estimated: `7734` + // Minimum execution time: 145_000_000 picoseconds. + Weight::from_parts(148_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(23_u64)) .saturating_add(T::DbWeight::get().writes(12_u64)) } - /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:1) - /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:1) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) fn register_public_key() -> Weight { // Proof Size summary in bytes: // Measured: `334` // Estimated: `3799` - // Minimum execution time: 15_000_000 picoseconds. - Weight::from_parts(16_000_000, 3799) + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(12_000_000, 3799) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:0) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) fn accept_new_issues() -> Weight { // Proof Size summary in bytes: // Measured: `1484` // Estimated: `4949` - // Minimum execution time: 59_000_000 picoseconds. - Weight::from_parts(61_000_000, 4949) + // Minimum execution time: 45_000_000 picoseconds. + Weight::from_parts(50_000_000, 4949) .saturating_add(T::DbWeight::get().reads(9_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_custom_secure_threshold() -> Weight { // Proof Size summary in bytes: // Measured: `711` // Estimated: `4176` - // Minimum execution time: 17_000_000 picoseconds. - Weight::from_parts(17_000_000, 4176) + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(13_000_000, 4176) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry MinimumCollateralVault (r:0 w:1) - /// Proof Skipped: VaultRegistry MinimumCollateralVault (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::MinimumCollateralVault` (r:0 w:1) + /// Proof: `VaultRegistry::MinimumCollateralVault` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_minimum_collateral() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_000_000 picoseconds. - Weight::from_parts(6_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry SystemCollateralCeiling (r:0 w:1) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:0 w:1) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_system_collateral_ceiling() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_000_000 picoseconds. - Weight::from_parts(6_000_000, 0) + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultStaking RewardCurrencies (r:1 w:1) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:0 w:1) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:1) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_secure_collateral_threshold() -> Weight { // Proof Size summary in bytes: // Measured: `80` // Estimated: `1565` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(11_000_000, 1565) + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(7_000_000, 1565) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: VaultRegistry PremiumRedeemThreshold (r:0 w:1) - /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_premium_redeem_threshold() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_000_000 picoseconds. - Weight::from_parts(6_000_000, 0) + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry LiquidationCollateralThreshold (r:0 w:1) - /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_liquidation_collateral_threshold() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_000_000 picoseconds. - Weight::from_parts(6_000_000, 0) + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry LiquidationCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:2 w:2) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:1) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry LiquidationVault (r:1 w:1) - /// Proof Skipped: VaultRegistry LiquidationVault (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationVault` (r:1 w:1) + /// Proof: `VaultRegistry::LiquidationVault` (`max_values`: None, `max_size`: None, mode: `Measured`) fn report_undercollateralized_vault() -> Weight { // Proof Size summary in bytes: - // Measured: `2675` - // Estimated: `6240` - // Minimum execution time: 330_000_000 picoseconds. - Weight::from_parts(336_000_000, 6240) - .saturating_add(T::DbWeight::get().reads(25_u64)) + // Measured: `2779` + // Estimated: `7734` + // Minimum execution time: 256_000_000 picoseconds. + Weight::from_parts(278_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(27_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn recover_vault_id() -> Weight { // Proof Size summary in bytes: // Measured: `649` // Estimated: `4114` - // Minimum execution time: 16_000_000 picoseconds. - Weight::from_parts(16_000_000, 4114) + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(12_000_000, 4114) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry PunishmentDelay (r:0 w:1) - /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `VaultRegistry::PunishmentDelay` (r:0 w:1) + /// Proof: `VaultRegistry::PunishmentDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_punishment_delay() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::MinimumCollateralVault` (r:1 w:0) + /// Proof: `VaultRegistry::MinimumCollateralVault` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:0) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:0) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + fn register_vault() -> Weight { + // Proof Size summary in bytes: + // Measured: `1079` + // Estimated: `4544` + // Minimum execution time: 116_000_000 picoseconds. + Weight::from_parts(122_000_000, 4544) + .saturating_add(RocksDbWeight::get().reads(24_u64)) + .saturating_add(RocksDbWeight::get().writes(12_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + fn deposit_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `2605` + // Estimated: `7734` + // Minimum execution time: 138_000_000 picoseconds. + Weight::from_parts(148_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(23_u64)) + .saturating_add(RocksDbWeight::get().writes(12_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + fn withdraw_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `2579` + // Estimated: `7734` + // Minimum execution time: 145_000_000 picoseconds. + Weight::from_parts(148_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(23_u64)) + .saturating_add(RocksDbWeight::get().writes(12_u64)) + } + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:1) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn register_public_key() -> Weight { + // Proof Size summary in bytes: + // Measured: `334` + // Estimated: `3799` + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(12_000_000, 3799) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn accept_new_issues() -> Weight { + // Proof Size summary in bytes: + // Measured: `1484` + // Estimated: `4949` + // Minimum execution time: 45_000_000 picoseconds. + Weight::from_parts(50_000_000, 4949) + .saturating_add(RocksDbWeight::get().reads(9_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) + } + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_custom_secure_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `711` + // Estimated: `4176` + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(13_000_000, 4176) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::MinimumCollateralVault` (r:0 w:1) + /// Proof: `VaultRegistry::MinimumCollateralVault` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_minimum_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:0 w:1) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_system_collateral_ceiling() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:1) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_secure_collateral_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `80` + // Estimated: `1565` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(7_000_000, 1565) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_premium_redeem_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_liquidation_collateral_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationVault` (r:1 w:1) + /// Proof: `VaultRegistry::LiquidationVault` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn report_undercollateralized_vault() -> Weight { + // Proof Size summary in bytes: + // Measured: `2779` + // Estimated: `7734` + // Minimum execution time: 256_000_000 picoseconds. + Weight::from_parts(278_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(27_u64)) + .saturating_add(RocksDbWeight::get().writes(16_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn recover_vault_id() -> Weight { + // Proof Size summary in bytes: + // Measured: `649` + // Estimated: `4114` + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(12_000_000, 4114) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::PunishmentDelay` (r:0 w:1) + /// Proof: `VaultRegistry::PunishmentDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_punishment_delay() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/foucoco/src/lib.rs b/runtime/foucoco/src/lib.rs index 9ae368355..ecdbf4488 100644 --- a/runtime/foucoco/src/lib.rs +++ b/runtime/foucoco/src/lib.rs @@ -1029,7 +1029,7 @@ impl treasury_buyout_extension::Config for Runtime { type DecimalsLookup = DecimalsLookupImpl; type MinAmountToBuyout = MinAmountToBuyout; type MaxAllowedBuyoutCurrencies = MaxAllowedBuyoutCurrencies; - type WeightInfo = weights::treasury_buyout_extension::SubstrateWeight; + type WeightInfo = (); #[cfg(feature = "runtime-benchmarks")] type RelayChainCurrencyId = RelayChainCurrencyId; } @@ -1092,7 +1092,7 @@ impl pallet_insecure_randomness_collective_flip::Config for Runtime {} impl orml_currencies_allowance_extension::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = weights::orml_currencies_allowance_extension::SubstrateWeight; + type WeightInfo = (); type MaxAllowedCurrencies = ConstU32<256>; } @@ -1129,7 +1129,7 @@ impl dia_oracle::Config for Runtime { type RuntimeEvent = RuntimeEvent; type RuntimeCall = RuntimeCall; type AuthorityId = dia_oracle::crypto::DiaAuthId; - type WeightInfo = weights::dia_oracle::SubstrateWeight; + type WeightInfo = (); } impl frame_system::offchain::SigningTypes for Runtime { @@ -1277,7 +1277,7 @@ cfg_if::cfg_if! { impl oracle::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = weights::oracle::SubstrateWeight; + type WeightInfo = (); type DecimalsLookup = DecimalsLookupImpl; type DataProvider = DataProviderImpl; #[cfg(feature = "runtime-benchmarks")] @@ -1296,7 +1296,7 @@ impl stellar_relay::Config for Runtime { type OrganizationLimit = OrganizationLimit; type ValidatorLimit = ValidatorLimit; type IsPublicNetwork = IsPublicNetwork; - type WeightInfo = weights::stellar_relay::SubstrateWeight; + type WeightInfo = (); } parameter_types! { @@ -1309,7 +1309,7 @@ parameter_types! { impl fee::Config for Runtime { type FeePalletId = FeePalletId; - type WeightInfo = weights::fee::SubstrateWeight; + type WeightInfo = (); type SignedFixedPoint = SignedFixedPoint; type SignedInner = SignedInner; type UnsignedFixedPoint = UnsignedFixedPoint; @@ -1325,13 +1325,13 @@ impl vault_registry::Config for Runtime { type PalletId = VaultRegistryPalletId; type RuntimeEvent = RuntimeEvent; type Balance = Balance; - type WeightInfo = weights::vault_registry::SubstrateWeight; + type WeightInfo = (); type GetGriefingCollateralCurrencyId = NativeCurrencyId; } impl redeem::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = weights::redeem::SubstrateWeight; + type WeightInfo = (); } pub struct BlockNumberToBalance; @@ -1345,17 +1345,17 @@ impl sp_runtime::traits::Convert for BlockNumberToBalance impl issue::Config for Runtime { type RuntimeEvent = RuntimeEvent; type BlockNumberToBalance = BlockNumberToBalance; - type WeightInfo = weights::issue::SubstrateWeight; + type WeightInfo = (); } impl nomination::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = weights::nomination::SubstrateWeight; + type WeightInfo = (); } impl replace::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = weights::replace::SubstrateWeight; + type WeightInfo = (); } impl clients_info::Config for Runtime { diff --git a/runtime/foucoco/src/weights/dia_oracle.rs b/runtime/foucoco/src/weights/dia_oracle.rs index b6c31b74f..1a444ccbf 100644 --- a/runtime/foucoco/src/weights/dia_oracle.rs +++ b/runtime/foucoco/src/weights/dia_oracle.rs @@ -2,9 +2,9 @@ //! Autogenerated weights for dia_oracle //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-08-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Gianfrancos-MBP.fritz.box`, CPU: `` +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 // Executed Command: @@ -35,9 +35,21 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for dia_oracle. +pub trait WeightInfo { + fn add_currency() -> Weight; + fn remove_currency() -> Weight; + fn authorize_account() -> Weight; + fn authorize_account_signed() -> Weight; + fn deauthorize_account() -> Weight; + fn deauthorize_account_signed() -> Weight; + fn set_updated_coin_infos() -> Weight; + fn set_batching_api() -> Weight; +} + /// Weights for dia_oracle using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl dia_oracle::WeightInfo for SubstrateWeight { +impl WeightInfo for SubstrateWeight { /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `DiaOracleModule::SupportedCurrencies` (r:1 w:1) @@ -46,7 +58,7 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `472` // Estimated: `3937` - // Minimum execution time: 15_000_000 picoseconds. + // Minimum execution time: 14_000_000 picoseconds. Weight::from_parts(15_000_000, 3937) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) @@ -60,7 +72,7 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Measured: `472` // Estimated: `3937` // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(11_000_000, 3937) + Weight::from_parts(10_000_000, 3937) .saturating_add(T::DbWeight::get().reads(2_u64)) } /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:1) @@ -81,7 +93,7 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Measured: `358` // Estimated: `6298` // Minimum execution time: 12_000_000 picoseconds. - Weight::from_parts(13_000_000, 6298) + Weight::from_parts(12_000_000, 6298) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -92,7 +104,7 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Measured: `305` // Estimated: `3770` // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(6_000_000, 3770) + Weight::from_parts(5_000_000, 3770) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:2 w:1) @@ -102,7 +114,7 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Measured: `358` // Estimated: `6298` // Minimum execution time: 12_000_000 picoseconds. - Weight::from_parts(13_000_000, 6298) + Weight::from_parts(12_000_000, 6298) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -114,8 +126,8 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3823` - // Minimum execution time: 9_647_000_000 picoseconds. - Weight::from_parts(9_732_000_000, 3823) + // Minimum execution time: 9_641_000_000 picoseconds. + Weight::from_parts(9_886_000_000, 3823) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -127,9 +139,107 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3823` - // Minimum execution time: 11_000_000 picoseconds. + // Minimum execution time: 10_000_000 picoseconds. Weight::from_parts(11_000_000, 3823) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } } + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `DiaOracleModule::SupportedCurrencies` (r:1 w:1) + /// Proof: `DiaOracleModule::SupportedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn add_currency() -> Weight { + // Proof Size summary in bytes: + // Measured: `472` + // Estimated: `3937` + // Minimum execution time: 14_000_000 picoseconds. + Weight::from_parts(15_000_000, 3937) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `DiaOracleModule::SupportedCurrencies` (r:1 w:0) + /// Proof: `DiaOracleModule::SupportedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn remove_currency() -> Weight { + // Proof Size summary in bytes: + // Measured: `472` + // Estimated: `3937` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(10_000_000, 3937) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:1) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn authorize_account() -> Weight { + // Proof Size summary in bytes: + // Measured: `305` + // Estimated: `3770` + // Minimum execution time: 9_000_000 picoseconds. + Weight::from_parts(10_000_000, 3770) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:2 w:1) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn authorize_account_signed() -> Weight { + // Proof Size summary in bytes: + // Measured: `358` + // Estimated: `6298` + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(12_000_000, 6298) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn deauthorize_account() -> Weight { + // Proof Size summary in bytes: + // Measured: `305` + // Estimated: `3770` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 3770) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:2 w:1) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn deauthorize_account_signed() -> Weight { + // Proof Size summary in bytes: + // Measured: `358` + // Estimated: `6298` + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(12_000_000, 6298) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `DiaOracleModule::CoinInfosMap` (r:0 w:1) + /// Proof: `DiaOracleModule::CoinInfosMap` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_updated_coin_infos() -> Weight { + // Proof Size summary in bytes: + // Measured: `358` + // Estimated: `3823` + // Minimum execution time: 9_641_000_000 picoseconds. + Weight::from_parts(9_886_000_000, 3823) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `DiaOracleModule::BatchingApi` (r:0 w:1) + /// Proof: `DiaOracleModule::BatchingApi` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_batching_api() -> Weight { + // Proof Size summary in bytes: + // Measured: `358` + // Estimated: `3823` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(11_000_000, 3823) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/foucoco/src/weights/fee.rs b/runtime/foucoco/src/weights/fee.rs index 8d83068e2..11f86c0f4 100644 --- a/runtime/foucoco/src/weights/fee.rs +++ b/runtime/foucoco/src/weights/fee.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for fee //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // foucoco -// --execution=wasm // --wasm-execution=compiled // --pallet // fee @@ -36,67 +35,141 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for fee. +pub trait WeightInfo { + fn set_issue_fee() -> Weight; + fn set_issue_griefing_collateral() -> Weight; + fn set_redeem_fee() -> Weight; + fn set_premium_redeem_fee() -> Weight; + fn set_punishment_fee() -> Weight; + fn set_replace_griefing_collateral() -> Weight; +} + /// Weights for fee using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl fee::WeightInfo for SubstrateWeight { - /// Storage: Fee IssueFee (r:0 w:1) - /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) +impl WeightInfo for SubstrateWeight { + /// Storage: `Fee::IssueFee` (r:0 w:1) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_issue_fee() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Fee IssueGriefingCollateral (r:0 w:1) - /// Proof Skipped: Fee IssueGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Fee::IssueGriefingCollateral` (r:0 w:1) + /// Proof: `Fee::IssueGriefingCollateral` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_issue_griefing_collateral() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Fee RedeemFee (r:0 w:1) - /// Proof Skipped: Fee RedeemFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Fee::RedeemFee` (r:0 w:1) + /// Proof: `Fee::RedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_redeem_fee() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Fee PremiumRedeemFee (r:0 w:1) - /// Proof Skipped: Fee PremiumRedeemFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Fee::PremiumRedeemFee` (r:0 w:1) + /// Proof: `Fee::PremiumRedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_premium_redeem_fee() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Fee PunishmentFee (r:0 w:1) - /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Fee::PunishmentFee` (r:0 w:1) + /// Proof: `Fee::PunishmentFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_punishment_fee() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Fee ReplaceGriefingCollateral (r:0 w:1) - /// Proof Skipped: Fee ReplaceGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Fee::ReplaceGriefingCollateral` (r:0 w:1) + /// Proof: `Fee::ReplaceGriefingCollateral` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_replace_griefing_collateral() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `Fee::IssueFee` (r:0 w:1) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_issue_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Fee::IssueGriefingCollateral` (r:0 w:1) + /// Proof: `Fee::IssueGriefingCollateral` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_issue_griefing_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Fee::RedeemFee` (r:0 w:1) + /// Proof: `Fee::RedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_redeem_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Fee::PremiumRedeemFee` (r:0 w:1) + /// Proof: `Fee::PremiumRedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_premium_redeem_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Fee::PunishmentFee` (r:0 w:1) + /// Proof: `Fee::PunishmentFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_punishment_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Fee::ReplaceGriefingCollateral` (r:0 w:1) + /// Proof: `Fee::ReplaceGriefingCollateral` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_replace_griefing_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/foucoco/src/weights/issue.rs b/runtime/foucoco/src/weights/issue.rs index cc465d375..aa11bb551 100644 --- a/runtime/foucoco/src/weights/issue.rs +++ b/runtime/foucoco/src/weights/issue.rs @@ -2,10 +2,10 @@ //! Autogenerated weights for issue //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-06-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Marcels-MBP`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 // Executed Command: // ./target/production/pendulum-node @@ -13,7 +13,6 @@ // pallet // --chain // foucoco -// --execution=wasm // --wasm-execution=compiled // --pallet // issue @@ -36,130 +35,267 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for issue. +pub trait WeightInfo { + fn request_issue() -> Weight; + fn execute_issue() -> Weight; + fn cancel_issue() -> Weight; + fn set_issue_period() -> Weight; + fn rate_limit_update() -> Weight; + fn minimum_transfer_amount_update() -> Weight; +} + /// Weights for issue using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl issue::WeightInfo for SubstrateWeight { - /// Storage: Issue LimitVolumeAmount (r:1 w:0) - /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:3 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee IssueGriefingCollateral (r:1 w:0) - /// Proof Skipped: Fee IssueGriefingCollateral (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: Issue IssueMinimumTransferAmount (r:1 w:0) - /// Proof: Issue IssueMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee IssueFee (r:1 w:0) - /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Security Nonce (r:1 w:1) - /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: System ParentHash (r:1 w:0) - /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:0) - /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Issue IssuePeriod (r:1 w:0) - /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Issue IssueRequests (r:0 w:1) - /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `Issue::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:3 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::IssueGriefingCollateral` (r:1 w:0) + /// Proof: `Fee::IssueGriefingCollateral` (`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: `Issue::IssueMinimumTransferAmount` (r:1 w:0) + /// Proof: `Issue::IssueMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Fee::IssueFee` (r:1 w:0) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Security::Nonce` (r:1 w:1) + /// Proof: `Security::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:0) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Issue::IssuePeriod` (r:1 w:0) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Issue::IssueRequests` (r:0 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) fn request_issue() -> Weight { // Proof Size summary in bytes: // Measured: `1962` - // Estimated: `10377` - // Minimum execution time: 102_000_000 picoseconds. - Weight::from_parts(104_000_000, 10377) + // Estimated: `11106` + // Minimum execution time: 87_000_000 picoseconds. + Weight::from_parts(93_000_000, 11106) .saturating_add(T::DbWeight::get().reads(18_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: Issue IssueRequests (r:1 w:1) - /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) - /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) - /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: StellarRelay Validators (r:1 w:0) - /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) - /// Storage: StellarRelay Organizations (r:1 w:0) - /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee IssueFee (r:1 w:0) - /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Issue LimitVolumeAmount (r:1 w:0) - /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalStake (r:2 w:0) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:1 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: `Issue::IssueRequests` (r:1 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:1 w:0) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Validators` (r:1 w:0) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:0) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Fee::IssueFee` (r:1 w:0) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Issue::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalStake` (r:2 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:1 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) fn execute_issue() -> Weight { // Proof Size summary in bytes: // Measured: `2499` // Estimated: `71867` - // Minimum execution time: 8_834_000_000 picoseconds. - Weight::from_parts(8_916_000_000, 71867) + // Minimum execution time: 7_764_000_000 picoseconds. + Weight::from_parts(7_859_000_000, 71867) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: Issue IssueRequests (r:1 w:1) - /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) - /// Storage: Issue IssuePeriod (r:1 w:0) - /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `Issue::IssueRequests` (r:1 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) + /// Storage: `Issue::IssuePeriod` (r:1 w:0) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_issue() -> Weight { // Proof Size summary in bytes: // Measured: `1270` // Estimated: `4735` - // Minimum execution time: 38_000_000 picoseconds. - Weight::from_parts(39_000_000, 4735) + // Minimum execution time: 32_000_000 picoseconds. + Weight::from_parts(33_000_000, 4735) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: Issue IssuePeriod (r:0 w:1) - /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `Issue::IssuePeriod` (r:0 w:1) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_issue_period() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_000_000 picoseconds. - Weight::from_parts(8_000_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Issue LimitVolumeAmount (r:0 w:1) - /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: Issue LimitVolumeCurrencyId (r:0 w:1) - /// Proof: Issue LimitVolumeCurrencyId (max_values: Some(1), max_size: Some(46), added: 541, mode: MaxEncodedLen) - /// Storage: Issue IntervalLength (r:0 w:1) - /// Proof: Issue IntervalLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `Issue::LimitVolumeAmount` (r:0 w:1) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Issue::LimitVolumeCurrencyId` (r:0 w:1) + /// Proof: `Issue::LimitVolumeCurrencyId` (`max_values`: Some(1), `max_size`: Some(46), added: 541, mode: `MaxEncodedLen`) + /// Storage: `Issue::IntervalLength` (r:0 w:1) + /// Proof: `Issue::IntervalLength` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn rate_limit_update() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(9_000_000, 0) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: Issue IssueMinimumTransferAmount (r:0 w:1) - /// Proof: Issue IssueMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: `Issue::IssueMinimumTransferAmount` (r:0 w:1) + /// Proof: `Issue::IssueMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn minimum_transfer_amount_update() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_000_000 picoseconds. - Weight::from_parts(8_000_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `Issue::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:3 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::IssueGriefingCollateral` (r:1 w:0) + /// Proof: `Fee::IssueGriefingCollateral` (`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: `Issue::IssueMinimumTransferAmount` (r:1 w:0) + /// Proof: `Issue::IssueMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Fee::IssueFee` (r:1 w:0) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Security::Nonce` (r:1 w:1) + /// Proof: `Security::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:0) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Issue::IssuePeriod` (r:1 w:0) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Issue::IssueRequests` (r:0 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) + fn request_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `1962` + // Estimated: `11106` + // Minimum execution time: 87_000_000 picoseconds. + Weight::from_parts(93_000_000, 11106) + .saturating_add(RocksDbWeight::get().reads(18_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) + } + /// Storage: `Issue::IssueRequests` (r:1 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:1 w:0) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Validators` (r:1 w:0) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:0) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Fee::IssueFee` (r:1 w:0) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Issue::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalStake` (r:2 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:1 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + fn execute_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `2499` + // Estimated: `71867` + // Minimum execution time: 7_764_000_000 picoseconds. + Weight::from_parts(7_859_000_000, 71867) + .saturating_add(RocksDbWeight::get().reads(11_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Issue::IssueRequests` (r:1 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) + /// Storage: `Issue::IssuePeriod` (r:1 w:0) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn cancel_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `1270` + // Estimated: `4735` + // Minimum execution time: 32_000_000 picoseconds. + Weight::from_parts(33_000_000, 4735) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Issue::IssuePeriod` (r:0 w:1) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + fn set_issue_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Issue::LimitVolumeAmount` (r:0 w:1) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Issue::LimitVolumeCurrencyId` (r:0 w:1) + /// Proof: `Issue::LimitVolumeCurrencyId` (`max_values`: Some(1), `max_size`: Some(46), added: 541, mode: `MaxEncodedLen`) + /// Storage: `Issue::IntervalLength` (r:0 w:1) + /// Proof: `Issue::IntervalLength` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + fn rate_limit_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(9_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: `Issue::IssueMinimumTransferAmount` (r:0 w:1) + /// Proof: `Issue::IssueMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/foucoco/src/weights/nomination.rs b/runtime/foucoco/src/weights/nomination.rs index 57118aba4..98953e87c 100644 --- a/runtime/foucoco/src/weights/nomination.rs +++ b/runtime/foucoco/src/weights/nomination.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for nomination //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // foucoco -// --execution=wasm // --wasm-execution=compiled // --pallet // nomination @@ -36,193 +35,400 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for nomination. +pub trait WeightInfo { + fn set_nomination_enabled() -> Weight; + fn opt_in_to_nomination() -> Weight; + fn opt_out_of_nomination() -> Weight; + fn deposit_collateral() -> Weight; + fn withdraw_collateral() -> Weight; +} + /// Weights for nomination using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl nomination::WeightInfo for SubstrateWeight { - /// Storage: Nomination NominationEnabled (r:0 w:1) - /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `Nomination::NominationEnabled` (r:0 w:1) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn set_nomination_enabled() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Nomination NominationEnabled (r:1 w:0) - /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Nomination Vaults (r:1 w:1) - /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:1) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) fn opt_in_to_nomination() -> Weight { // Proof Size summary in bytes: // Measured: `747` // Estimated: `4212` - // Minimum execution time: 27_000_000 picoseconds. - Weight::from_parts(28_000_000, 4212) + // Minimum execution time: 20_000_000 picoseconds. + Weight::from_parts(21_000_000, 4212) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Nomination Vaults (r:1 w:1) - /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:1) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:2 w:2) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:2 w:2) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:2 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:2 w:2) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:0) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:2 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:2 w:2) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:2 w:2) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:1) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:1) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:2 w:2) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:2 w:2) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:2 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:2 w:2) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:2 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:2 w:2) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:2 w:2) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) fn opt_out_of_nomination() -> Weight { // Proof Size summary in bytes: - // Measured: `2499` - // Estimated: `8439` - // Minimum execution time: 218_000_000 picoseconds. - Weight::from_parts(227_000_000, 8439) - .saturating_add(T::DbWeight::get().reads(25_u64)) + // Measured: `2570` + // Estimated: `8510` + // Minimum execution time: 168_000_000 picoseconds. + Weight::from_parts(174_000_000, 8510) + .saturating_add(T::DbWeight::get().reads(27_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Nomination NominationEnabled (r:1 w:0) - /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - /// Storage: Nomination Vaults (r:1 w:0) - /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:2 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:2 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) - /// Storage: Tokens Accounts (r:2 w:2) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:0) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:2 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:2 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) fn deposit_collateral() -> Weight { // Proof Size summary in bytes: - // Measured: `3564` - // Estimated: `9504` - // Minimum execution time: 210_000_000 picoseconds. - Weight::from_parts(215_000_000, 9504) + // Measured: `3363` + // Estimated: `9303` + // Minimum execution time: 157_000_000 picoseconds. + Weight::from_parts(160_000_000, 9303) .saturating_add(T::DbWeight::get().reads(28_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Nomination NominationEnabled (r:1 w:0) - /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - /// Storage: Nomination Vaults (r:1 w:0) - /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) - /// Storage: Tokens Accounts (r:2 w:2) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:0) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn withdraw_collateral() -> Weight { // Proof Size summary in bytes: - // Measured: `3576` - // Estimated: `7041` - // Minimum execution time: 193_000_000 picoseconds. - Weight::from_parts(197_000_000, 7041) - .saturating_add(T::DbWeight::get().reads(24_u64)) + // Measured: `3647` + // Estimated: `7734` + // Minimum execution time: 155_000_000 picoseconds. + Weight::from_parts(162_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(26_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `Nomination::NominationEnabled` (r:0 w:1) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + fn set_nomination_enabled() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:1) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + fn opt_in_to_nomination() -> Weight { + // Proof Size summary in bytes: + // Measured: `747` + // Estimated: `4212` + // Minimum execution time: 20_000_000 picoseconds. + Weight::from_parts(21_000_000, 4212) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:1) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:1) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:2 w:2) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:2 w:2) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:2 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:2 w:2) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:2 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:2 w:2) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:2 w:2) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn opt_out_of_nomination() -> Weight { + // Proof Size summary in bytes: + // Measured: `2570` + // Estimated: `8510` + // Minimum execution time: 168_000_000 picoseconds. + Weight::from_parts(174_000_000, 8510) + .saturating_add(RocksDbWeight::get().reads(27_u64)) + .saturating_add(RocksDbWeight::get().writes(16_u64)) + } + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:2 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:2 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn deposit_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `3363` + // Estimated: `9303` + // Minimum execution time: 157_000_000 picoseconds. + Weight::from_parts(160_000_000, 9303) + .saturating_add(RocksDbWeight::get().reads(28_u64)) + .saturating_add(RocksDbWeight::get().writes(13_u64)) + } + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn withdraw_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `3647` + // Estimated: `7734` + // Minimum execution time: 155_000_000 picoseconds. + Weight::from_parts(162_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(26_u64)) + .saturating_add(RocksDbWeight::get().writes(13_u64)) + } } \ No newline at end of file diff --git a/runtime/foucoco/src/weights/oracle.rs b/runtime/foucoco/src/weights/oracle.rs index 551fefef0..df80d6af3 100644 --- a/runtime/foucoco/src/weights/oracle.rs +++ b/runtime/foucoco/src/weights/oracle.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for oracle //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // foucoco -// --execution=wasm // --wasm-execution=compiled // --pallet // oracle @@ -36,39 +35,82 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for oracle. +pub trait WeightInfo { + fn on_initialize() -> Weight; + fn update_oracle_keys() -> Weight; + fn set_max_delay() -> Weight; +} + /// Weights for oracle using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl oracle::WeightInfo for SubstrateWeight { - /// Storage: Timestamp Now (r:0 w:1) - /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - /// Storage: Timestamp DidUpdate (r:0 w:1) - /// Proof: Timestamp DidUpdate (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `Timestamp::Now` (r:0 w:1) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + /// Storage: `Timestamp::DidUpdate` (r:0 w:1) + /// Proof: `Timestamp::DidUpdate` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn on_initialize() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` // Minimum execution time: 1_000_000 picoseconds. - Weight::from_parts(2_000_000, 0) + Weight::from_parts(1_000_000, 0) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: Oracle OracleKeys (r:0 w:1) - /// Proof Skipped: Oracle OracleKeys (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Oracle::OracleKeys` (r:0 w:1) + /// Proof: `Oracle::OracleKeys` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn update_oracle_keys() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(11_000_000, 0) + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Oracle MaxDelay (r:0 w:1) - /// Proof Skipped: Oracle MaxDelay (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Oracle::MaxDelay` (r:0 w:1) + /// Proof: `Oracle::MaxDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_max_delay() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `Timestamp::Now` (r:0 w:1) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + /// Storage: `Timestamp::DidUpdate` (r:0 w:1) + /// Proof: `Timestamp::DidUpdate` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + fn on_initialize() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_000_000 picoseconds. + Weight::from_parts(1_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Oracle::OracleKeys` (r:0 w:1) + /// Proof: `Oracle::OracleKeys` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn update_oracle_keys() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Oracle::MaxDelay` (r:0 w:1) + /// Proof: `Oracle::MaxDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_max_delay() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/foucoco/src/weights/orml_asset_registry.rs b/runtime/foucoco/src/weights/orml_asset_registry.rs index d29e2db73..22b334897 100644 --- a/runtime/foucoco/src/weights/orml_asset_registry.rs +++ b/runtime/foucoco/src/weights/orml_asset_registry.rs @@ -2,10 +2,10 @@ //! Autogenerated weights for `orml_asset_registry` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-07-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Marcels-MBP`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("foucoco")`, DB CACHE: 1024 // Executed Command: // ./target/production/pendulum-node @@ -13,7 +13,6 @@ // pallet // --chain // foucoco -// --execution=wasm // --wasm-execution=compiled // --pallet // orml-asset-registry @@ -29,38 +28,39 @@ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] +#![allow(missing_docs)] use frame_support::{traits::Get, weights::Weight}; -use sp_std::marker::PhantomData; +use core::marker::PhantomData; /// Weight functions for `orml_asset_registry`. pub struct WeightInfo(PhantomData); impl orml_asset_registry::WeightInfo for WeightInfo { - /// Storage: AssetRegistry Metadata (r:1 w:1) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry LocationToAssetId (r:1 w:1) - /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + /// Storage: `AssetRegistry::Metadata` (r:1 w:1) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::LocationToAssetId` (r:1 w:1) + /// Proof: `AssetRegistry::LocationToAssetId` (`max_values`: None, `max_size`: Some(656), added: 3131, mode: `MaxEncodedLen`) fn register_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `104` - // Estimated: `7138` - // Minimum execution time: 18_000_000 picoseconds. - Weight::from_parts(19_000_000, 0) - .saturating_add(Weight::from_parts(0, 7138)) + // Measured: `138` + // Estimated: `4362` + // Minimum execution time: 14_000_000 picoseconds. + Weight::from_parts(15_000_000, 0) + .saturating_add(Weight::from_parts(0, 4362)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: AssetRegistry Metadata (r:1 w:1) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry LocationToAssetId (r:1 w:2) - /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + /// Storage: `AssetRegistry::Metadata` (r:1 w:1) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::LocationToAssetId` (r:1 w:2) + /// Proof: `AssetRegistry::LocationToAssetId` (`max_values`: None, `max_size`: Some(656), added: 3131, mode: `MaxEncodedLen`) fn update_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `745` - // Estimated: `8420` - // Minimum execution time: 25_000_000 picoseconds. - Weight::from_parts(26_000_000, 0) - .saturating_add(Weight::from_parts(0, 8420)) + // Measured: `801` + // Estimated: `4362` + // Minimum execution time: 21_000_000 picoseconds. + Weight::from_parts(22_000_000, 0) + .saturating_add(Weight::from_parts(0, 4362)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/foucoco/src/weights/orml_currencies_allowance_extension.rs b/runtime/foucoco/src/weights/orml_currencies_allowance_extension.rs index a081fbd3f..a72a6652b 100644 --- a/runtime/foucoco/src/weights/orml_currencies_allowance_extension.rs +++ b/runtime/foucoco/src/weights/orml_currencies_allowance_extension.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for orml_currencies_allowance_extension //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-03-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // foucoco -// --execution=wasm // --wasm-execution=compiled // --pallet // orml-currencies-allowance-extension @@ -24,7 +23,7 @@ // --repeat // 20 // --output -// runtime/foucoco/src/weights/orml-currencies-allowance-extension.rs +// runtime/foucoco/src/weights/orml_currencies_allowance_extension.rs // --template // .maintain/frame-weight-template.hbs @@ -36,62 +35,129 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for orml_currencies_allowance_extension. +pub trait WeightInfo { + fn add_allowed_currencies(n: u32, ) -> Weight; + fn remove_allowed_currencies(n: u32, ) -> Weight; + fn approve() -> Weight; + fn transfer_from() -> Weight; +} + /// Weights for orml_currencies_allowance_extension using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl orml_currencies_allowance_extension::default_weights::WeightInfo for SubstrateWeight { - /// Storage: TokenAllowance AllowedCurrencies (r:2 w:1) - /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) +impl WeightInfo for SubstrateWeight { + /// Storage: `TokenAllowance::AllowedCurrencies` (r:2 w:1) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `n` is `[1, 256]`. fn add_allowed_currencies(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `142` // Estimated: `6082` - // Minimum execution time: 17_000_000 picoseconds. - Weight::from_parts(16_786_577, 6082) - // Standard Error: 2_416 - .saturating_add(Weight::from_parts(1_273_968, 0).saturating_mul(n.into())) + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(10_682_862, 6082) + // Standard Error: 2_616 + .saturating_add(Weight::from_parts(1_015_897, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TokenAllowance AllowedCurrencies (r:0 w:1) - /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) + /// Storage: `TokenAllowance::AllowedCurrencies` (r:0 w:1) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `n` is `[1, 256]`. fn remove_allowed_currencies(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_000_000 picoseconds. - Weight::from_parts(11_332_861, 0) - // Standard Error: 1_861 - .saturating_add(Weight::from_parts(1_244_517, 0).saturating_mul(n.into())) + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_010_593, 0) + // Standard Error: 2_177 + .saturating_add(Weight::from_parts(977_467, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TokenAllowance AllowedCurrencies (r:1 w:0) - /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) - /// Storage: TokenAllowance Approvals (r:0 w:1) - /// Proof Skipped: TokenAllowance Approvals (max_values: None, max_size: None, mode: Measured) + /// Storage: `TokenAllowance::AllowedCurrencies` (r:1 w:0) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenAllowance::Approvals` (r:0 w:1) + /// Proof: `TokenAllowance::Approvals` (`max_values`: None, `max_size`: None, mode: `Measured`) fn approve() -> Weight { // Proof Size summary in bytes: // Measured: `184` - // Estimated: `3833` - // Minimum execution time: 17_000_000 picoseconds. - Weight::from_parts(18_000_000, 3833) + // Estimated: `3649` + // Minimum execution time: 13_000_000 picoseconds. + Weight::from_parts(13_000_000, 3649) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TokenAllowance AllowedCurrencies (r:1 w:0) - /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) - /// Storage: TokenAllowance Approvals (r:1 w:1) - /// Proof Skipped: TokenAllowance Approvals (max_values: None, max_size: None, mode: Measured) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: `TokenAllowance::AllowedCurrencies` (r:1 w:0) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenAllowance::Approvals` (r:1 w:1) + /// Proof: `TokenAllowance::Approvals` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer_from() -> Weight { // Proof Size summary in bytes: // Measured: `490` - // Estimated: `14106` - // Minimum execution time: 49_000_000 picoseconds. - Weight::from_parts(50_000_000, 14106) + // Estimated: `6196` + // Minimum execution time: 52_000_000 picoseconds. + Weight::from_parts(53_000_000, 6196) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `TokenAllowance::AllowedCurrencies` (r:2 w:1) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `n` is `[1, 256]`. + fn add_allowed_currencies(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `142` + // Estimated: `6082` + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(10_682_862, 6082) + // Standard Error: 2_616 + .saturating_add(Weight::from_parts(1_015_897, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `TokenAllowance::AllowedCurrencies` (r:0 w:1) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `n` is `[1, 256]`. + fn remove_allowed_currencies(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_010_593, 0) + // Standard Error: 2_177 + .saturating_add(Weight::from_parts(977_467, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `TokenAllowance::AllowedCurrencies` (r:1 w:0) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenAllowance::Approvals` (r:0 w:1) + /// Proof: `TokenAllowance::Approvals` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn approve() -> Weight { + // Proof Size summary in bytes: + // Measured: `184` + // Estimated: `3649` + // Minimum execution time: 13_000_000 picoseconds. + Weight::from_parts(13_000_000, 3649) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `TokenAllowance::AllowedCurrencies` (r:1 w:0) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenAllowance::Approvals` (r:1 w:1) + /// Proof: `TokenAllowance::Approvals` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn transfer_from() -> Weight { + // Proof Size summary in bytes: + // Measured: `490` + // Estimated: `6196` + // Minimum execution time: 52_000_000 picoseconds. + Weight::from_parts(53_000_000, 6196) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } } \ No newline at end of file diff --git a/runtime/foucoco/src/weights/pallet_xcm.rs b/runtime/foucoco/src/weights/pallet_xcm.rs index 501edc7ea..a13172ebb 100644 --- a/runtime/foucoco/src/weights/pallet_xcm.rs +++ b/runtime/foucoco/src/weights/pallet_xcm.rs @@ -2,10 +2,10 @@ //! Autogenerated weights for `pallet_xcm` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-12-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `pop-os`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("foucoco")`, DB CACHE: 1024 // Executed Command: // ./target/production/pendulum-node @@ -13,7 +13,6 @@ // pallet // --chain // foucoco -// --execution=wasm // --wasm-execution=compiled // --pallet // pallet-xcm @@ -37,28 +36,28 @@ use core::marker::PhantomData; /// Weight functions for `pallet_xcm`. pub struct WeightInfo(PhantomData); impl pallet_xcm::WeightInfo for WeightInfo { - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`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::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn send() -> Weight { // Proof Size summary in bytes: // Measured: `245` // Estimated: `3710` - // Minimum execution time: 37_037_000 picoseconds. - Weight::from_parts(37_780_000, 0) + // Minimum execution time: 19_000_000 picoseconds. + Weight::from_parts(21_000_000, 0) .saturating_add(Weight::from_parts(0, 3710)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Benchmark Override (r:0 w:0) - /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) + /// Storage: `Benchmark::Override` (r:0 w:0) + /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) fn teleport_assets() -> Weight { // Proof Size summary in bytes: // Measured: `0` @@ -67,14 +66,14 @@ impl pallet_xcm::WeightInfo for WeightInfo { Weight::from_parts(18_446_744_073_709_551_000, 0) .saturating_add(Weight::from_parts(0, 0)) } - /// Storage: ParachainInfo ParachainId (r:1 w:0) - /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn reserve_transfer_assets() -> Weight { // Proof Size summary in bytes: // Measured: `32` // Estimated: `1489` - // Minimum execution time: 32_612_000 picoseconds. - Weight::from_parts(59_114_000, 0) + // Minimum execution time: 14_000_000 picoseconds. + Weight::from_parts(15_000_000, 0) .saturating_add(Weight::from_parts(0, 1489)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -82,192 +81,192 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 13_629_000 picoseconds. - Weight::from_parts(13_864_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(Weight::from_parts(0, 0)) } - /// Storage: PolkadotXcm SupportedVersion (r:0 w:1) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::SupportedVersion` (r:0 w:1) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_xcm_version() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 14_727_000 picoseconds. - Weight::from_parts(16_019_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: PolkadotXcm SafeXcmVersion (r:0 w:1) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:0 w:1) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn force_default_xcm_version() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_571_000 picoseconds. - Weight::from_parts(4_790_000, 0) + // Minimum execution time: 2_000_000 picoseconds. + Weight::from_parts(2_000_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: PolkadotXcm VersionNotifiers (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm QueryCounter (r:1 w:1) - /// Proof Skipped: PolkadotXcm QueryCounter (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm Queries (r:0 w:1) - /// Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1) + /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`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::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_subscribe_version_notify() -> Weight { // Proof Size summary in bytes: // Measured: `245` // Estimated: `3710` - // Minimum execution time: 44_609_000 picoseconds. - Weight::from_parts(88_897_000, 0) + // Minimum execution time: 23_000_000 picoseconds. + Weight::from_parts(23_000_000, 0) .saturating_add(Weight::from_parts(0, 3710)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: PolkadotXcm VersionNotifiers (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm Queries (r:0 w:1) - /// Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`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::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_unsubscribe_version_notify() -> Weight { // Proof Size summary in bytes: // Measured: `428` // Estimated: `3893` - // Minimum execution time: 45_297_000 picoseconds. - Weight::from_parts(45_947_000, 0) + // Minimum execution time: 25_000_000 picoseconds. + Weight::from_parts(25_000_000, 0) .saturating_add(Weight::from_parts(0, 3893)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: PolkadotXcm XcmExecutionSuspended (r:0 w:1) - /// Proof Skipped: PolkadotXcm XcmExecutionSuspended (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::XcmExecutionSuspended` (r:0 w:1) + /// Proof: `PolkadotXcm::XcmExecutionSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn force_suspension() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_537_000 picoseconds. - Weight::from_parts(4_726_000, 0) + // Minimum execution time: 2_000_000 picoseconds. + Weight::from_parts(2_000_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: PolkadotXcm SupportedVersion (r:4 w:2) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::SupportedVersion` (r:4 w:2) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_supported_version() -> Weight { // Proof Size summary in bytes: - // Measured: `229` - // Estimated: `11119` - // Minimum execution time: 21_923_000 picoseconds. - Weight::from_parts(22_440_000, 0) - .saturating_add(Weight::from_parts(0, 11119)) + // Measured: `254` + // Estimated: `11144` + // Minimum execution time: 14_000_000 picoseconds. + Weight::from_parts(15_000_000, 0) + .saturating_add(Weight::from_parts(0, 11144)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: PolkadotXcm VersionNotifiers (r:4 w:2) - /// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifiers` (r:4 w:2) + /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_version_notifiers() -> Weight { // Proof Size summary in bytes: - // Measured: `233` - // Estimated: `11123` - // Minimum execution time: 22_204_000 picoseconds. - Weight::from_parts(22_593_000, 0) - .saturating_add(Weight::from_parts(0, 11123)) + // Measured: `258` + // Estimated: `11148` + // Minimum execution time: 14_000_000 picoseconds. + Weight::from_parts(15_000_000, 0) + .saturating_add(Weight::from_parts(0, 11148)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:5 w:0) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:0) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn already_notified_target() -> Weight { // Proof Size summary in bytes: - // Measured: `240` - // Estimated: `13605` - // Minimum execution time: 23_228_000 picoseconds. - Weight::from_parts(23_713_000, 0) - .saturating_add(Weight::from_parts(0, 13605)) + // Measured: `265` + // Estimated: `13630` + // Minimum execution time: 16_000_000 picoseconds. + Weight::from_parts(16_000_000, 0) + .saturating_add(Weight::from_parts(0, 13630)) .saturating_add(T::DbWeight::get().reads(5)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:2 w:1) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:2 w:1) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`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::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn notify_current_targets() -> Weight { // Proof Size summary in bytes: // Measured: `312` // Estimated: `6252` - // Minimum execution time: 41_887_000 picoseconds. - Weight::from_parts(43_346_000, 0) + // Minimum execution time: 23_000_000 picoseconds. + Weight::from_parts(24_000_000, 0) .saturating_add(Weight::from_parts(0, 6252)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:3 w:0) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:3 w:0) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn notify_target_migration_fail() -> Weight { // Proof Size summary in bytes: // Measured: `272` // Estimated: `8687` - // Minimum execution time: 13_190_000 picoseconds. - Weight::from_parts(13_674_000, 0) + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(9_000_000, 0) .saturating_add(Weight::from_parts(0, 8687)) .saturating_add(T::DbWeight::get().reads(3)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:4 w:2) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:2) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_version_notify_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `240` - // Estimated: `11130` - // Minimum execution time: 22_721_000 picoseconds. - Weight::from_parts(23_207_000, 0) - .saturating_add(Weight::from_parts(0, 11130)) + // Measured: `265` + // Estimated: `11155` + // Minimum execution time: 14_000_000 picoseconds. + Weight::from_parts(15_000_000, 0) + .saturating_add(Weight::from_parts(0, 11155)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:4 w:2) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:2) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`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::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn migrate_and_notify_old_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `316` - // Estimated: `11206` - // Minimum execution time: 50_285_000 picoseconds. - Weight::from_parts(51_075_000, 0) - .saturating_add(Weight::from_parts(0, 11206)) + // Measured: `341` + // Estimated: `11231` + // Minimum execution time: 29_000_000 picoseconds. + Weight::from_parts(30_000_000, 0) + .saturating_add(Weight::from_parts(0, 11231)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(4)) } diff --git a/runtime/foucoco/src/weights/redeem.rs b/runtime/foucoco/src/weights/redeem.rs index da4c4b23e..ccf8f81ea 100644 --- a/runtime/foucoco/src/weights/redeem.rs +++ b/runtime/foucoco/src/weights/redeem.rs @@ -2,10 +2,10 @@ //! Autogenerated weights for redeem //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-06-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Marcels-MBP`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 // Executed Command: // ./target/production/pendulum-node @@ -13,7 +13,6 @@ // pallet // --chain // foucoco -// --execution=wasm // --wasm-execution=compiled // --pallet // redeem @@ -30,7 +29,6 @@ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] -#![allow(dead_code)] #![allow(unused_imports)] #![allow(missing_docs)] @@ -53,535 +51,535 @@ pub trait WeightInfo { /// Weights for redeem using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl redeem::WeightInfo for SubstrateWeight { - /// Storage: Redeem LimitVolumeAmount (r:1 w:0) - /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: Fee RedeemFee (r:1 w:0) - /// Proof Skipped: Fee RedeemFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Redeem RedeemMinimumTransferAmount (r:1 w:0) - /// Proof: Redeem RedeemMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: Security Nonce (r:1 w:1) - /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: System ParentHash (r:1 w:0) - /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:2 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee PremiumRedeemFee (r:1 w:0) - /// Proof Skipped: Fee PremiumRedeemFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Redeem RedeemPeriod (r:1 w:0) - /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Redeem RedeemRequests (r:0 w:1) - /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `Redeem::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Redeem::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `Fee::RedeemFee` (r:1 w:0) + /// Proof: `Fee::RedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemMinimumTransferAmount` (r:1 w:0) + /// Proof: `Redeem::RedeemMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Security::Nonce` (r:1 w:1) + /// Proof: `Security::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::PremiumRedeemFee` (r:1 w:0) + /// Proof: `Fee::PremiumRedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemPeriod` (r:1 w:0) + /// Proof: `Redeem::RedeemPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Redeem::RedeemRequests` (r:0 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) fn request_redeem() -> Weight { // Proof Size summary in bytes: - // Measured: `1974` - // Estimated: `7914` - // Minimum execution time: 95_000_000 picoseconds. - Weight::from_parts(97_000_000, 7914) + // Measured: `1907` + // Estimated: `7734` + // Minimum execution time: 80_000_000 picoseconds. + Weight::from_parts(82_000_000, 7734) .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: Tokens Accounts (r:3 w:3) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: Tokens TotalIssuance (r:1 w:1) - /// Proof: Tokens TotalIssuance (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) - /// Storage: VaultRegistry LiquidationVault (r:1 w:1) - /// Proof Skipped: VaultRegistry LiquidationVault (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: `Tokens::Accounts` (r:3 w:3) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Tokens::TotalIssuance` (r:1 w:1) + /// Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::LiquidationVault` (r:1 w:1) + /// Proof: `VaultRegistry::LiquidationVault` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) fn liquidation_redeem() -> Weight { // Proof Size summary in bytes: // Measured: `1495` // Estimated: `8865` - // Minimum execution time: 110_000_000 picoseconds. - Weight::from_parts(111_000_000, 8865) + // Minimum execution time: 92_000_000 picoseconds. + Weight::from_parts(94_000_000, 8865) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(8_u64)) } - /// Storage: Redeem RedeemRequests (r:1 w:1) - /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) - /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) - /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: StellarRelay Validators (r:1 w:0) - /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) - /// Storage: StellarRelay Organizations (r:1 w:0) - /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) - /// Storage: Redeem LimitVolumeAmount (r:1 w:0) - /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalStake (r:1 w:0) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `Redeem::RedeemRequests` (r:1 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:1 w:0) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Validators` (r:1 w:0) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:0) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `Redeem::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Redeem::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute_redeem() -> Weight { // Proof Size summary in bytes: // Measured: `1698` // Estimated: `71867` - // Minimum execution time: 8_763_000_000 picoseconds. - Weight::from_parts(8_800_000_000, 71867) + // Minimum execution time: 7_758_000_000 picoseconds. + Weight::from_parts(8_055_000_000, 71867) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Redeem RedeemRequests (r:1 w:1) - /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) - /// Storage: Redeem RedeemPeriod (r:1 w:0) - /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:2 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee PunishmentFee (r:1 w:0) - /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:0) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry PunishmentDelay (r:1 w:0) - /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:2 w:0) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Redeem CancelledRedeemAmount (r:0 w:1) - /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemRequests` (r:1 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + /// Storage: `Redeem::RedeemPeriod` (r:1 w:0) + /// Proof: `Redeem::RedeemPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::PunishmentFee` (r:1 w:0) + /// Proof: `Fee::PunishmentFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PunishmentDelay` (r:1 w:0) + /// Proof: `VaultRegistry::PunishmentDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:2 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::CancelledRedeemAmount` (r:0 w:1) + /// Proof: `Redeem::CancelledRedeemAmount` (`max_values`: None, `max_size`: Some(110), added: 2585, mode: `MaxEncodedLen`) fn cancel_redeem_reimburse() -> Weight { // Proof Size summary in bytes: - // Measured: `2868` - // Estimated: `8808` - // Minimum execution time: 153_000_000 picoseconds. - Weight::from_parts(156_000_000, 8808) + // Measured: `2801` + // Estimated: `7734` + // Minimum execution time: 131_000_000 picoseconds. + Weight::from_parts(132_000_000, 7734) .saturating_add(T::DbWeight::get().reads(22_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Redeem RedeemRequests (r:1 w:1) - /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) - /// Storage: Redeem RedeemPeriod (r:1 w:0) - /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:2 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee PunishmentFee (r:1 w:0) - /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:0) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry PunishmentDelay (r:1 w:0) - /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Redeem CancelledRedeemAmount (r:0 w:1) - /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemRequests` (r:1 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + /// Storage: `Redeem::RedeemPeriod` (r:1 w:0) + /// Proof: `Redeem::RedeemPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::PunishmentFee` (r:1 w:0) + /// Proof: `Fee::PunishmentFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PunishmentDelay` (r:1 w:0) + /// Proof: `VaultRegistry::PunishmentDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::CancelledRedeemAmount` (r:0 w:1) + /// Proof: `Redeem::CancelledRedeemAmount` (`max_values`: None, `max_size`: Some(110), added: 2585, mode: `MaxEncodedLen`) fn cancel_redeem_retry() -> Weight { // Proof Size summary in bytes: // Measured: `2656` - // Estimated: `8596` - // Minimum execution time: 126_000_000 picoseconds. - Weight::from_parts(135_000_000, 8596) + // Estimated: `7734` + // Minimum execution time: 107_000_000 picoseconds. + Weight::from_parts(116_000_000, 7734) .saturating_add(T::DbWeight::get().reads(19_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: Tokens TotalIssuance (r:1 w:1) - /// Proof: Tokens TotalIssuance (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalStake (r:2 w:0) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:1 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Tokens::TotalIssuance` (r:1 w:1) + /// Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalStake` (r:2 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:1 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) fn self_redeem() -> Weight { // Proof Size summary in bytes: // Measured: `1891` // Estimated: `6096` - // Minimum execution time: 90_000_000 picoseconds. - Weight::from_parts(91_000_000, 6096) + // Minimum execution time: 76_000_000 picoseconds. + Weight::from_parts(77_000_000, 6096) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: Redeem RedeemPeriod (r:0 w:1) - /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `Redeem::RedeemPeriod` (r:0 w:1) + /// Proof: `Redeem::RedeemPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_redeem_period() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_000_000 picoseconds. - Weight::from_parts(8_000_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Redeem RedeemRequests (r:1 w:1) - /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) - /// Storage: Redeem CancelledRedeemAmount (r:1 w:1) - /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:2 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemRequests` (r:1 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + /// Storage: `Redeem::CancelledRedeemAmount` (r:1 w:1) + /// Proof: `Redeem::CancelledRedeemAmount` (`max_values`: None, `max_size`: Some(110), added: 2585, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) fn mint_tokens_for_reimbursed_redeem() -> Weight { // Proof Size summary in bytes: - // Measured: `2049` - // Estimated: `7989` - // Minimum execution time: 76_000_000 picoseconds. - Weight::from_parts(78_000_000, 7989) + // Measured: `1982` + // Estimated: `7734` + // Minimum execution time: 65_000_000 picoseconds. + Weight::from_parts(66_000_000, 7734) .saturating_add(T::DbWeight::get().reads(9_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: Redeem LimitVolumeAmount (r:0 w:1) - /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: Redeem LimitVolumeCurrencyId (r:0 w:1) - /// Proof: Redeem LimitVolumeCurrencyId (max_values: Some(1), max_size: Some(46), added: 541, mode: MaxEncodedLen) - /// Storage: Redeem IntervalLength (r:0 w:1) - /// Proof: Redeem IntervalLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `Redeem::LimitVolumeAmount` (r:0 w:1) + /// Proof: `Redeem::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Redeem::LimitVolumeCurrencyId` (r:0 w:1) + /// Proof: `Redeem::LimitVolumeCurrencyId` (`max_values`: Some(1), `max_size`: Some(46), added: 541, mode: `MaxEncodedLen`) + /// Storage: `Redeem::IntervalLength` (r:0 w:1) + /// Proof: `Redeem::IntervalLength` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn rate_limit_update() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(9_000_000, 0) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: Redeem RedeemMinimumTransferAmount (r:0 w:1) - /// Proof: Redeem RedeemMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: `Redeem::RedeemMinimumTransferAmount` (r:0 w:1) + /// Proof: `Redeem::RedeemMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn minimum_transfer_amount_update() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_000_000 picoseconds. - Weight::from_parts(22_000_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } } // For backwards compatibility and tests impl WeightInfo for () { - /// Storage: Redeem LimitVolumeAmount (r:1 w:0) - /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: Fee RedeemFee (r:1 w:0) - /// Proof Skipped: Fee RedeemFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Redeem RedeemMinimumTransferAmount (r:1 w:0) - /// Proof: Redeem RedeemMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: Security Nonce (r:1 w:1) - /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: System ParentHash (r:1 w:0) - /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:2 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee PremiumRedeemFee (r:1 w:0) - /// Proof Skipped: Fee PremiumRedeemFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Redeem RedeemPeriod (r:1 w:0) - /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Redeem RedeemRequests (r:0 w:1) - /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: `Redeem::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Redeem::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `Fee::RedeemFee` (r:1 w:0) + /// Proof: `Fee::RedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemMinimumTransferAmount` (r:1 w:0) + /// Proof: `Redeem::RedeemMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Security::Nonce` (r:1 w:1) + /// Proof: `Security::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::PremiumRedeemFee` (r:1 w:0) + /// Proof: `Fee::PremiumRedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemPeriod` (r:1 w:0) + /// Proof: `Redeem::RedeemPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Redeem::RedeemRequests` (r:0 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) fn request_redeem() -> Weight { // Proof Size summary in bytes: - // Measured: `1974` - // Estimated: `7914` - // Minimum execution time: 95_000_000 picoseconds. - Weight::from_parts(97_000_000, 7914) + // Measured: `1907` + // Estimated: `7734` + // Minimum execution time: 80_000_000 picoseconds. + Weight::from_parts(82_000_000, 7734) .saturating_add(RocksDbWeight::get().reads(16_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } - /// Storage: Tokens Accounts (r:3 w:3) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: Tokens TotalIssuance (r:1 w:1) - /// Proof: Tokens TotalIssuance (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) - /// Storage: VaultRegistry LiquidationVault (r:1 w:1) - /// Proof Skipped: VaultRegistry LiquidationVault (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: `Tokens::Accounts` (r:3 w:3) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Tokens::TotalIssuance` (r:1 w:1) + /// Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::LiquidationVault` (r:1 w:1) + /// Proof: `VaultRegistry::LiquidationVault` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) fn liquidation_redeem() -> Weight { // Proof Size summary in bytes: // Measured: `1495` // Estimated: `8865` - // Minimum execution time: 110_000_000 picoseconds. - Weight::from_parts(111_000_000, 8865) + // Minimum execution time: 92_000_000 picoseconds. + Weight::from_parts(94_000_000, 8865) .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(8_u64)) } - /// Storage: Redeem RedeemRequests (r:1 w:1) - /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) - /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) - /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: StellarRelay Validators (r:1 w:0) - /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) - /// Storage: StellarRelay Organizations (r:1 w:0) - /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) - /// Storage: Redeem LimitVolumeAmount (r:1 w:0) - /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalStake (r:1 w:0) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `Redeem::RedeemRequests` (r:1 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:1 w:0) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Validators` (r:1 w:0) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:0) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `Redeem::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Redeem::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute_redeem() -> Weight { // Proof Size summary in bytes: // Measured: `1698` // Estimated: `71867` - // Minimum execution time: 8_763_000_000 picoseconds. - Weight::from_parts(8_800_000_000, 71867) + // Minimum execution time: 7_758_000_000 picoseconds. + Weight::from_parts(8_055_000_000, 71867) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Redeem RedeemRequests (r:1 w:1) - /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) - /// Storage: Redeem RedeemPeriod (r:1 w:0) - /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:2 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee PunishmentFee (r:1 w:0) - /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:0) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry PunishmentDelay (r:1 w:0) - /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:2 w:0) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Redeem CancelledRedeemAmount (r:0 w:1) - /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemRequests` (r:1 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + /// Storage: `Redeem::RedeemPeriod` (r:1 w:0) + /// Proof: `Redeem::RedeemPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::PunishmentFee` (r:1 w:0) + /// Proof: `Fee::PunishmentFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PunishmentDelay` (r:1 w:0) + /// Proof: `VaultRegistry::PunishmentDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:2 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::CancelledRedeemAmount` (r:0 w:1) + /// Proof: `Redeem::CancelledRedeemAmount` (`max_values`: None, `max_size`: Some(110), added: 2585, mode: `MaxEncodedLen`) fn cancel_redeem_reimburse() -> Weight { // Proof Size summary in bytes: - // Measured: `2868` - // Estimated: `8808` - // Minimum execution time: 153_000_000 picoseconds. - Weight::from_parts(156_000_000, 8808) + // Measured: `2801` + // Estimated: `7734` + // Minimum execution time: 131_000_000 picoseconds. + Weight::from_parts(132_000_000, 7734) .saturating_add(RocksDbWeight::get().reads(22_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Redeem RedeemRequests (r:1 w:1) - /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) - /// Storage: Redeem RedeemPeriod (r:1 w:0) - /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:2 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee PunishmentFee (r:1 w:0) - /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:0) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry PunishmentDelay (r:1 w:0) - /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Redeem CancelledRedeemAmount (r:0 w:1) - /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemRequests` (r:1 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + /// Storage: `Redeem::RedeemPeriod` (r:1 w:0) + /// Proof: `Redeem::RedeemPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::PunishmentFee` (r:1 w:0) + /// Proof: `Fee::PunishmentFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PunishmentDelay` (r:1 w:0) + /// Proof: `VaultRegistry::PunishmentDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::CancelledRedeemAmount` (r:0 w:1) + /// Proof: `Redeem::CancelledRedeemAmount` (`max_values`: None, `max_size`: Some(110), added: 2585, mode: `MaxEncodedLen`) fn cancel_redeem_retry() -> Weight { // Proof Size summary in bytes: // Measured: `2656` - // Estimated: `8596` - // Minimum execution time: 126_000_000 picoseconds. - Weight::from_parts(135_000_000, 8596) + // Estimated: `7734` + // Minimum execution time: 107_000_000 picoseconds. + Weight::from_parts(116_000_000, 7734) .saturating_add(RocksDbWeight::get().reads(19_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: Tokens TotalIssuance (r:1 w:1) - /// Proof: Tokens TotalIssuance (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalStake (r:2 w:0) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:1 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Tokens::TotalIssuance` (r:1 w:1) + /// Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalStake` (r:2 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:1 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) fn self_redeem() -> Weight { // Proof Size summary in bytes: // Measured: `1891` // Estimated: `6096` - // Minimum execution time: 90_000_000 picoseconds. - Weight::from_parts(91_000_000, 6096) + // Minimum execution time: 76_000_000 picoseconds. + Weight::from_parts(77_000_000, 6096) .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } - /// Storage: Redeem RedeemPeriod (r:0 w:1) - /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `Redeem::RedeemPeriod` (r:0 w:1) + /// Proof: `Redeem::RedeemPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_redeem_period() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_000_000 picoseconds. - Weight::from_parts(8_000_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Redeem RedeemRequests (r:1 w:1) - /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) - /// Storage: Redeem CancelledRedeemAmount (r:1 w:1) - /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:2 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Redeem::RedeemRequests` (r:1 w:1) + /// Proof: `Redeem::RedeemRequests` (`max_values`: None, `max_size`: Some(356), added: 2831, mode: `MaxEncodedLen`) + /// Storage: `Redeem::CancelledRedeemAmount` (r:1 w:1) + /// Proof: `Redeem::CancelledRedeemAmount` (`max_values`: None, `max_size`: Some(110), added: 2585, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) fn mint_tokens_for_reimbursed_redeem() -> Weight { // Proof Size summary in bytes: - // Measured: `2049` - // Estimated: `7989` - // Minimum execution time: 76_000_000 picoseconds. - Weight::from_parts(78_000_000, 7989) + // Measured: `1982` + // Estimated: `7734` + // Minimum execution time: 65_000_000 picoseconds. + Weight::from_parts(66_000_000, 7734) .saturating_add(RocksDbWeight::get().reads(9_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } - /// Storage: Redeem LimitVolumeAmount (r:0 w:1) - /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: Redeem LimitVolumeCurrencyId (r:0 w:1) - /// Proof: Redeem LimitVolumeCurrencyId (max_values: Some(1), max_size: Some(46), added: 541, mode: MaxEncodedLen) - /// Storage: Redeem IntervalLength (r:0 w:1) - /// Proof: Redeem IntervalLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `Redeem::LimitVolumeAmount` (r:0 w:1) + /// Proof: `Redeem::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Redeem::LimitVolumeCurrencyId` (r:0 w:1) + /// Proof: `Redeem::LimitVolumeCurrencyId` (`max_values`: Some(1), `max_size`: Some(46), added: 541, mode: `MaxEncodedLen`) + /// Storage: `Redeem::IntervalLength` (r:0 w:1) + /// Proof: `Redeem::IntervalLength` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn rate_limit_update() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(9_000_000, 0) .saturating_add(RocksDbWeight::get().writes(3_u64)) } - /// Storage: Redeem RedeemMinimumTransferAmount (r:0 w:1) - /// Proof: Redeem RedeemMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: `Redeem::RedeemMinimumTransferAmount` (r:0 w:1) + /// Proof: `Redeem::RedeemMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn minimum_transfer_amount_update() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_000_000 picoseconds. - Weight::from_parts(22_000_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } } \ No newline at end of file diff --git a/runtime/foucoco/src/weights/replace.rs b/runtime/foucoco/src/weights/replace.rs index 55522da5c..d578b4ed7 100644 --- a/runtime/foucoco/src/weights/replace.rs +++ b/runtime/foucoco/src/weights/replace.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for replace //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // foucoco -// --execution=wasm // --wasm-execution=compiled // --pallet // replace @@ -36,188 +35,396 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for replace. +pub trait WeightInfo { + fn request_replace() -> Weight; + fn withdraw_replace() -> Weight; + fn accept_replace() -> Weight; + fn execute_replace() -> Weight; + fn cancel_replace() -> Weight; + fn set_replace_period() -> Weight; + fn minimum_transfer_amount_update() -> Weight; +} + /// Weights for replace using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl replace::WeightInfo for SubstrateWeight { - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Nomination Vaults (r:1 w:0) - /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) - /// Storage: Replace ReplaceMinimumTransferAmount (r:1 w:0) - /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Fee ReplaceGriefingCollateral (r:1 w:0) - /// Proof Skipped: Fee ReplaceGriefingCollateral (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) +impl WeightInfo for SubstrateWeight { + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:1 w:0) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::ReplaceGriefingCollateral` (r:1 w:0) + /// Proof: `Fee::ReplaceGriefingCollateral` (`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 request_replace() -> Weight { // Proof Size summary in bytes: - // Measured: `1394` - // Estimated: `4859` - // Minimum execution time: 71_000_000 picoseconds. - Weight::from_parts(73_000_000, 4859) - .saturating_add(T::DbWeight::get().reads(6_u64)) + // Measured: `1532` + // Estimated: `7734` + // Minimum execution time: 56_000_000 picoseconds. + Weight::from_parts(62_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn withdraw_replace() -> Weight { // Proof Size summary in bytes: // Measured: `617` // Estimated: `4082` - // Minimum execution time: 28_000_000 picoseconds. - Weight::from_parts(29_000_000, 4082) + // Minimum execution time: 21_000_000 picoseconds. + Weight::from_parts(23_000_000, 4082) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry Vaults (r:2 w:2) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Replace ReplaceMinimumTransferAmount (r:1 w:0) - /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Security Nonce (r:1 w:1) - /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: System ParentHash (r:1 w:0) - /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Replace ReplacePeriod (r:1 w:0) - /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Replace ReplaceRequests (r:0 w:1) - /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:1 w:0) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Security::Nonce` (r:1 w:1) + /// Proof: `Security::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Replace::ReplacePeriod` (r:1 w:0) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplaceRequests` (r:0 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) fn accept_replace() -> Weight { // Proof Size summary in bytes: - // Measured: `3686` - // Estimated: `9626` - // Minimum execution time: 238_000_000 picoseconds. - Weight::from_parts(251_000_000, 9626) - .saturating_add(T::DbWeight::get().reads(27_u64)) + // Measured: `3688` + // Estimated: `9628` + // Minimum execution time: 189_000_000 picoseconds. + Weight::from_parts(196_000_000, 9628) + .saturating_add(T::DbWeight::get().reads(29_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } - /// Storage: Replace ReplaceRequests (r:1 w:1) - /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) - /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) - /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: StellarRelay Validators (r:1 w:0) - /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) - /// Storage: StellarRelay Organizations (r:1 w:0) - /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:2 w:2) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `Replace::ReplaceRequests` (r:1 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:1 w:0) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Validators` (r:1 w:0) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:0) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute_replace() -> Weight { // Proof Size summary in bytes: // Measured: `1935` // Estimated: `71867` - // Minimum execution time: 8_210_000_000 picoseconds. - Weight::from_parts(8_314_000_000, 71867) + // Minimum execution time: 7_809_000_000 picoseconds. + Weight::from_parts(8_153_000_000, 71867) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: Replace ReplaceRequests (r:1 w:1) - /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) - /// Storage: Replace ReplacePeriod (r:1 w:0) - /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:2 w:2) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:0) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: `Replace::ReplaceRequests` (r:1 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplacePeriod` (r:1 w:0) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_replace() -> Weight { // Proof Size summary in bytes: - // Measured: `3152` - // Estimated: `9092` - // Minimum execution time: 145_000_000 picoseconds. - Weight::from_parts(155_000_000, 9092) - .saturating_add(T::DbWeight::get().reads(20_u64)) + // Measured: `3221` + // Estimated: `9161` + // Minimum execution time: 116_000_000 picoseconds. + Weight::from_parts(120_000_000, 9161) + .saturating_add(T::DbWeight::get().reads(22_u64)) .saturating_add(T::DbWeight::get().writes(10_u64)) } - /// Storage: Replace ReplacePeriod (r:0 w:1) - /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `Replace::ReplacePeriod` (r:0 w:1) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_replace_period() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Replace ReplaceMinimumTransferAmount (r:0 w:1) - /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:0 w:1) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn minimum_transfer_amount_update() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:1 w:0) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::ReplaceGriefingCollateral` (r:1 w:0) + /// Proof: `Fee::ReplaceGriefingCollateral` (`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 request_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `1532` + // Estimated: `7734` + // Minimum execution time: 56_000_000 picoseconds. + Weight::from_parts(62_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(8_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn withdraw_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `617` + // Estimated: `4082` + // Minimum execution time: 21_000_000 picoseconds. + Weight::from_parts(23_000_000, 4082) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:1 w:0) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Security::Nonce` (r:1 w:1) + /// Proof: `Security::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Replace::ReplacePeriod` (r:1 w:0) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplaceRequests` (r:0 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) + fn accept_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `3688` + // Estimated: `9628` + // Minimum execution time: 189_000_000 picoseconds. + Weight::from_parts(196_000_000, 9628) + .saturating_add(RocksDbWeight::get().reads(29_u64)) + .saturating_add(RocksDbWeight::get().writes(16_u64)) + } + /// Storage: `Replace::ReplaceRequests` (r:1 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:1 w:0) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Validators` (r:1 w:0) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:0) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn execute_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `1935` + // Estimated: `71867` + // Minimum execution time: 7_809_000_000 picoseconds. + Weight::from_parts(8_153_000_000, 71867) + .saturating_add(RocksDbWeight::get().reads(6_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: `Replace::ReplaceRequests` (r:1 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplacePeriod` (r:1 w:0) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn cancel_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `3221` + // Estimated: `9161` + // Minimum execution time: 116_000_000 picoseconds. + Weight::from_parts(120_000_000, 9161) + .saturating_add(RocksDbWeight::get().reads(22_u64)) + .saturating_add(RocksDbWeight::get().writes(10_u64)) + } + /// Storage: `Replace::ReplacePeriod` (r:0 w:1) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + fn set_replace_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:0 w:1) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/foucoco/src/weights/stellar_relay.rs b/runtime/foucoco/src/weights/stellar_relay.rs index fc28fb1fe..5d11ce483 100644 --- a/runtime/foucoco/src/weights/stellar_relay.rs +++ b/runtime/foucoco/src/weights/stellar_relay.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for stellar_relay //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // foucoco -// --execution=wasm // --wasm-execution=compiled // --pallet // stellar-relay @@ -36,26 +35,54 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for stellar_relay. +pub trait WeightInfo { + fn update_tier_1_validator_set() -> Weight; +} + /// Weights for stellar_relay using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl stellar_relay::WeightInfo for SubstrateWeight { - /// Storage: StellarRelay Validators (r:1 w:1) - /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) - /// Storage: StellarRelay Organizations (r:1 w:1) - /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) - /// Storage: StellarRelay OldValidators (r:0 w:1) - /// Proof: StellarRelay OldValidators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) - /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:0 w:1) - /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: StellarRelay OldOrganizations (r:0 w:1) - /// Proof: StellarRelay OldOrganizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `StellarRelay::Validators` (r:1 w:1) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:1) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::OldValidators` (r:0 w:1) + /// Proof: `StellarRelay::OldValidators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:0 w:1) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::OldOrganizations` (r:0 w:1) + /// Proof: `StellarRelay::OldOrganizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) fn update_tier_1_validator_set() -> Weight { // Proof Size summary in bytes: // Measured: `2446` // Estimated: `71867` - // Minimum execution time: 152_000_000 picoseconds. - Weight::from_parts(156_000_000, 71867) + // Minimum execution time: 114_000_000 picoseconds. + Weight::from_parts(123_000_000, 71867) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `StellarRelay::Validators` (r:1 w:1) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:1) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::OldValidators` (r:0 w:1) + /// Proof: `StellarRelay::OldValidators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:0 w:1) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::OldOrganizations` (r:0 w:1) + /// Proof: `StellarRelay::OldOrganizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + fn update_tier_1_validator_set() -> Weight { + // Proof Size summary in bytes: + // Measured: `2446` + // Estimated: `71867` + // Minimum execution time: 114_000_000 picoseconds. + Weight::from_parts(123_000_000, 71867) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(5_u64)) + } } \ No newline at end of file diff --git a/runtime/foucoco/src/weights/treasury_buyout_extension.rs b/runtime/foucoco/src/weights/treasury_buyout_extension.rs index 7034c7bc3..b423c91e9 100644 --- a/runtime/foucoco/src/weights/treasury_buyout_extension.rs +++ b/runtime/foucoco/src/weights/treasury_buyout_extension.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for treasury_buyout_extension //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-05-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // foucoco -// --execution=wasm // --wasm-execution=compiled // --pallet // treasury-buyout-extension @@ -36,54 +35,112 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for treasury_buyout_extension. +pub trait WeightInfo { + fn buyout() -> Weight; + fn update_buyout_limit() -> Weight; + fn update_allowed_assets(n: u32, ) -> Weight; +} + /// Weights for treasury_buyout_extension using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl treasury_buyout_extension::default_weights::WeightInfo for SubstrateWeight { - /// Storage: TreasuryBuyoutExtension AllowedCurrencies (r:1 w:0) - /// Proof: TreasuryBuyoutExtension AllowedCurrencies (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen) - /// Storage: AssetRegistry Metadata (r:2 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: DiaOracleModule CoinInfosMap (r:1 w:0) - /// Proof Skipped: DiaOracleModule CoinInfosMap (max_values: None, max_size: None, mode: Measured) - /// Storage: TreasuryBuyoutExtension BuyoutLimit (r:1 w:0) - /// Proof: TreasuryBuyoutExtension BuyoutLimit (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: TreasuryBuyoutExtension Buyouts (r:1 w:1) - /// Proof: TreasuryBuyoutExtension Buyouts (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) - /// Storage: Tokens Accounts (r:2 w:2) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `TreasuryBuyoutExtension::AllowedCurrencies` (r:1 w:0) + /// Proof: `TreasuryBuyoutExtension::AllowedCurrencies` (`max_values`: None, `max_size`: Some(62), added: 2537, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `DiaOracleModule::CoinInfosMap` (r:1 w:0) + /// Proof: `DiaOracleModule::CoinInfosMap` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TreasuryBuyoutExtension::BuyoutLimit` (r:1 w:0) + /// Proof: `TreasuryBuyoutExtension::BuyoutLimit` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `TreasuryBuyoutExtension::Buyouts` (r:1 w:1) + /// Proof: `TreasuryBuyoutExtension::Buyouts` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn buyout() -> Weight { // Proof Size summary in bytes: // Measured: `1214` - // Estimated: `7154` - // Minimum execution time: 115_000_000 picoseconds. - Weight::from_parts(117_000_000, 7154) + // Estimated: `7734` + // Minimum execution time: 86_000_000 picoseconds. + Weight::from_parts(87_000_000, 7734) .saturating_add(T::DbWeight::get().reads(10_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } - /// Storage: TreasuryBuyoutExtension BuyoutLimit (r:0 w:1) - /// Proof: TreasuryBuyoutExtension BuyoutLimit (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: `TreasuryBuyoutExtension::BuyoutLimit` (r:0 w:1) + /// Proof: `TreasuryBuyoutExtension::BuyoutLimit` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn update_buyout_limit() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_000_000 picoseconds. - Weight::from_parts(8_000_000, 0) + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TreasuryBuyoutExtension AllowedCurrencies (r:1 w:1) - /// Proof: TreasuryBuyoutExtension AllowedCurrencies (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen) + /// Storage: `TreasuryBuyoutExtension::AllowedCurrencies` (r:1 w:1) + /// Proof: `TreasuryBuyoutExtension::AllowedCurrencies` (`max_values`: None, `max_size`: Some(62), added: 2537, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 20]`. fn update_allowed_assets(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `4` // Estimated: `3527` - // Minimum execution time: 15_000_000 picoseconds. - Weight::from_parts(14_644_586, 3527) - // Standard Error: 8_919 - .saturating_add(Weight::from_parts(1_324_292, 0).saturating_mul(n.into())) + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(11_262_214, 3527) + // Standard Error: 3_009 + .saturating_add(Weight::from_parts(927_124, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `TreasuryBuyoutExtension::AllowedCurrencies` (r:1 w:0) + /// Proof: `TreasuryBuyoutExtension::AllowedCurrencies` (`max_values`: None, `max_size`: Some(62), added: 2537, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `DiaOracleModule::CoinInfosMap` (r:1 w:0) + /// Proof: `DiaOracleModule::CoinInfosMap` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TreasuryBuyoutExtension::BuyoutLimit` (r:1 w:0) + /// Proof: `TreasuryBuyoutExtension::BuyoutLimit` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `TreasuryBuyoutExtension::Buyouts` (r:1 w:1) + /// Proof: `TreasuryBuyoutExtension::Buyouts` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn buyout() -> Weight { + // Proof Size summary in bytes: + // Measured: `1214` + // Estimated: `7734` + // Minimum execution time: 86_000_000 picoseconds. + Weight::from_parts(87_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(10_u64)) + .saturating_add(RocksDbWeight::get().writes(5_u64)) + } + /// Storage: `TreasuryBuyoutExtension::BuyoutLimit` (r:0 w:1) + /// Proof: `TreasuryBuyoutExtension::BuyoutLimit` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + fn update_buyout_limit() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `TreasuryBuyoutExtension::AllowedCurrencies` (r:1 w:1) + /// Proof: `TreasuryBuyoutExtension::AllowedCurrencies` (`max_values`: None, `max_size`: Some(62), added: 2537, mode: `MaxEncodedLen`) + /// The range of component `n` is `[1, 20]`. + fn update_allowed_assets(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `4` + // Estimated: `3527` + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(11_262_214, 3527) + // Standard Error: 3_009 + .saturating_add(Weight::from_parts(927_124, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/foucoco/src/weights/vault_registry.rs b/runtime/foucoco/src/weights/vault_registry.rs index 761957680..10c7c1f0d 100644 --- a/runtime/foucoco/src/weights/vault_registry.rs +++ b/runtime/foucoco/src/weights/vault_registry.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for vault_registry //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // foucoco -// --execution=wasm // --wasm-execution=compiled // --pallet // vault-registry @@ -36,346 +35,719 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for vault_registry. +pub trait WeightInfo { + fn register_vault() -> Weight; + fn deposit_collateral() -> Weight; + fn withdraw_collateral() -> Weight; + fn register_public_key() -> Weight; + fn accept_new_issues() -> Weight; + fn set_custom_secure_threshold() -> Weight; + fn set_minimum_collateral() -> Weight; + fn set_system_collateral_ceiling() -> Weight; + fn set_secure_collateral_threshold() -> Weight; + fn set_premium_redeem_threshold() -> Weight; + fn set_liquidation_collateral_threshold() -> Weight; + fn report_undercollateralized_vault() -> Weight; + fn recover_vault_id() -> Weight; + fn set_punishment_delay() -> Weight; +} + /// Weights for vault_registry using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl vault_registry::WeightInfo for SubstrateWeight { - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry LiquidationCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry MinimumCollateralVault (r:1 w:0) - /// Proof Skipped: VaultRegistry MinimumCollateralVault (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:0) - /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::MinimumCollateralVault` (r:1 w:0) + /// Proof: `VaultRegistry::MinimumCollateralVault` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:0) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:0) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) fn register_vault() -> Weight { // Proof Size summary in bytes: - // Measured: `1703` - // Estimated: `5168` - // Minimum execution time: 151_000_000 picoseconds. - Weight::from_parts(154_000_000, 5168) + // Measured: `1435` + // Estimated: `4900` + // Minimum execution time: 118_000_000 picoseconds. + Weight::from_parts(124_000_000, 4900) .saturating_add(T::DbWeight::get().reads(24_u64)) .saturating_add(T::DbWeight::get().writes(12_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) fn deposit_collateral() -> Weight { // Proof Size summary in bytes: - // Measured: `2915` - // Estimated: `6380` - // Minimum execution time: 176_000_000 picoseconds. - Weight::from_parts(179_000_000, 6380) - .saturating_add(T::DbWeight::get().reads(21_u64)) + // Measured: `2919` + // Estimated: `7734` + // Minimum execution time: 141_000_000 picoseconds. + Weight::from_parts(146_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(23_u64)) .saturating_add(T::DbWeight::get().writes(12_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) fn withdraw_collateral() -> Weight { // Proof Size summary in bytes: - // Measured: `2889` - // Estimated: `6354` - // Minimum execution time: 187_000_000 picoseconds. - Weight::from_parts(191_000_000, 6354) - .saturating_add(T::DbWeight::get().reads(21_u64)) + // Measured: `2893` + // Estimated: `7734` + // Minimum execution time: 145_000_000 picoseconds. + Weight::from_parts(155_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(23_u64)) .saturating_add(T::DbWeight::get().writes(12_u64)) } - /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:1) - /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:1) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) fn register_public_key() -> Weight { // Proof Size summary in bytes: // Measured: `301` // Estimated: `3766` - // Minimum execution time: 15_000_000 picoseconds. - Weight::from_parts(16_000_000, 3766) + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(12_000_000, 3766) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:0) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) fn accept_new_issues() -> Weight { // Proof Size summary in bytes: // Measured: `1451` // Estimated: `4916` - // Minimum execution time: 60_000_000 picoseconds. - Weight::from_parts(61_000_000, 4916) + // Minimum execution time: 45_000_000 picoseconds. + Weight::from_parts(46_000_000, 4916) .saturating_add(T::DbWeight::get().reads(9_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_custom_secure_threshold() -> Weight { // Proof Size summary in bytes: - // Measured: `783` - // Estimated: `4248` - // Minimum execution time: 17_000_000 picoseconds. - Weight::from_parts(18_000_000, 4248) + // Measured: `716` + // Estimated: `4181` + // Minimum execution time: 13_000_000 picoseconds. + Weight::from_parts(14_000_000, 4181) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry MinimumCollateralVault (r:0 w:1) - /// Proof Skipped: VaultRegistry MinimumCollateralVault (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::MinimumCollateralVault` (r:0 w:1) + /// Proof: `VaultRegistry::MinimumCollateralVault` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_minimum_collateral() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_000_000 picoseconds. - Weight::from_parts(6_000_000, 0) + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry SystemCollateralCeiling (r:0 w:1) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:0 w:1) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_system_collateral_ceiling() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_000_000 picoseconds. - Weight::from_parts(6_000_000, 0) + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultStaking RewardCurrencies (r:1 w:1) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:0 w:1) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:1) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_secure_collateral_threshold() -> Weight { // Proof Size summary in bytes: // Measured: `80` // Estimated: `1565` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_000_000, 1565) + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(7_000_000, 1565) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: VaultRegistry PremiumRedeemThreshold (r:0 w:1) - /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_premium_redeem_threshold() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_000_000 picoseconds. - Weight::from_parts(6_000_000, 0) + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry LiquidationCollateralThreshold (r:0 w:1) - /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_liquidation_collateral_threshold() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(6_000_000, 0) + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry LiquidationCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:2 w:2) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:1) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry LiquidationVault (r:1 w:1) - /// Proof Skipped: VaultRegistry LiquidationVault (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationVault` (r:1 w:1) + /// Proof: `VaultRegistry::LiquidationVault` (`max_values`: None, `max_size`: None, mode: `Measured`) fn report_undercollateralized_vault() -> Weight { // Proof Size summary in bytes: - // Measured: `3018` - // Estimated: `6483` - // Minimum execution time: 327_000_000 picoseconds. - Weight::from_parts(336_000_000, 6483) - .saturating_add(T::DbWeight::get().reads(25_u64)) + // Measured: `3022` + // Estimated: `7734` + // Minimum execution time: 252_000_000 picoseconds. + Weight::from_parts(261_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(27_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn recover_vault_id() -> Weight { // Proof Size summary in bytes: // Measured: `616` // Estimated: `4081` - // Minimum execution time: 15_000_000 picoseconds. - Weight::from_parts(16_000_000, 4081) + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(12_000_000, 4081) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry PunishmentDelay (r:0 w:1) - /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `VaultRegistry::PunishmentDelay` (r:0 w:1) + /// Proof: `VaultRegistry::PunishmentDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_punishment_delay() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::MinimumCollateralVault` (r:1 w:0) + /// Proof: `VaultRegistry::MinimumCollateralVault` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:0) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:0) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + fn register_vault() -> Weight { + // Proof Size summary in bytes: + // Measured: `1435` + // Estimated: `4900` + // Minimum execution time: 118_000_000 picoseconds. + Weight::from_parts(124_000_000, 4900) + .saturating_add(RocksDbWeight::get().reads(24_u64)) + .saturating_add(RocksDbWeight::get().writes(12_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + fn deposit_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `2919` + // Estimated: `7734` + // Minimum execution time: 141_000_000 picoseconds. + Weight::from_parts(146_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(23_u64)) + .saturating_add(RocksDbWeight::get().writes(12_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + fn withdraw_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `2893` + // Estimated: `7734` + // Minimum execution time: 145_000_000 picoseconds. + Weight::from_parts(155_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(23_u64)) + .saturating_add(RocksDbWeight::get().writes(12_u64)) + } + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:1) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn register_public_key() -> Weight { + // Proof Size summary in bytes: + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(12_000_000, 3766) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn accept_new_issues() -> Weight { + // Proof Size summary in bytes: + // Measured: `1451` + // Estimated: `4916` + // Minimum execution time: 45_000_000 picoseconds. + Weight::from_parts(46_000_000, 4916) + .saturating_add(RocksDbWeight::get().reads(9_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) + } + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_custom_secure_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `716` + // Estimated: `4181` + // Minimum execution time: 13_000_000 picoseconds. + Weight::from_parts(14_000_000, 4181) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::MinimumCollateralVault` (r:0 w:1) + /// Proof: `VaultRegistry::MinimumCollateralVault` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_minimum_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:0 w:1) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_system_collateral_ceiling() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:1) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_secure_collateral_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `80` + // Estimated: `1565` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(7_000_000, 1565) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_premium_redeem_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_liquidation_collateral_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationVault` (r:1 w:1) + /// Proof: `VaultRegistry::LiquidationVault` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn report_undercollateralized_vault() -> Weight { + // Proof Size summary in bytes: + // Measured: `3022` + // Estimated: `7734` + // Minimum execution time: 252_000_000 picoseconds. + Weight::from_parts(261_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(27_u64)) + .saturating_add(RocksDbWeight::get().writes(16_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn recover_vault_id() -> Weight { + // Proof Size summary in bytes: + // Measured: `616` + // Estimated: `4081` + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(12_000_000, 4081) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::PunishmentDelay` (r:0 w:1) + /// Proof: `VaultRegistry::PunishmentDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_punishment_delay() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/pendulum/src/lib.rs b/runtime/pendulum/src/lib.rs index ee92b8d34..369386112 100644 --- a/runtime/pendulum/src/lib.rs +++ b/runtime/pendulum/src/lib.rs @@ -1070,7 +1070,7 @@ impl dia_oracle::Config for Runtime { type RuntimeEvent = RuntimeEvent; type RuntimeCall = RuntimeCall; type AuthorityId = dia_oracle::crypto::DiaAuthId; - type WeightInfo = weights::dia_oracle::SubstrateWeight; + type WeightInfo = (); } parameter_types! { @@ -1242,7 +1242,7 @@ cfg_if::cfg_if! { impl oracle::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = weights::oracle::SubstrateWeight; + type WeightInfo = (); type DecimalsLookup = DecimalsLookupImpl; type DataProvider = DataProviderImpl; #[cfg(feature = "runtime-benchmarks")] @@ -1261,7 +1261,7 @@ impl stellar_relay::Config for Runtime { type OrganizationLimit = OrganizationLimit; type ValidatorLimit = ValidatorLimit; type IsPublicNetwork = IsPublicNetwork; - type WeightInfo = weights::stellar_relay::SubstrateWeight; + type WeightInfo = (); } parameter_types! { @@ -1272,7 +1272,7 @@ parameter_types! { } impl fee::Config for Runtime { type FeePalletId = FeePalletId; - type WeightInfo = weights::fee::SubstrateWeight; + type WeightInfo = (); type SignedFixedPoint = SignedFixedPoint; type SignedInner = SignedInner; type UnsignedFixedPoint = UnsignedFixedPoint; @@ -1288,7 +1288,7 @@ impl vault_registry::Config for Runtime { type PalletId = VaultRegistryPalletId; type RuntimeEvent = RuntimeEvent; type Balance = Balance; - type WeightInfo = weights::vault_registry::SubstrateWeight; + type WeightInfo = (); type GetGriefingCollateralCurrencyId = NativeCurrencyId; } @@ -1308,17 +1308,17 @@ impl sp_runtime::traits::Convert for BlockNumberToBalance impl issue::Config for Runtime { type RuntimeEvent = RuntimeEvent; type BlockNumberToBalance = BlockNumberToBalance; - type WeightInfo = weights::issue::SubstrateWeight; + type WeightInfo = (); } impl nomination::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = weights::nomination::SubstrateWeight; + type WeightInfo = (); } impl replace::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = weights::replace::SubstrateWeight; + type WeightInfo = (); } impl clients_info::Config for Runtime { @@ -1407,7 +1407,7 @@ impl pallet_proxy::Config for Runtime { impl orml_currencies_allowance_extension::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = weights::orml_currencies_allowance_extension::SubstrateWeight; + type WeightInfo = (); type MaxAllowedCurrencies = ConstU32<256>; } @@ -1443,7 +1443,7 @@ impl treasury_buyout_extension::Config for Runtime { type DecimalsLookup = DecimalsLookupImpl; type MinAmountToBuyout = MinAmountToBuyout; type MaxAllowedBuyoutCurrencies = MaxAllowedBuyoutCurrencies; - type WeightInfo = weights::treasury_buyout_extension::SubstrateWeight; + type WeightInfo = (); #[cfg(feature = "runtime-benchmarks")] type RelayChainCurrencyId = RelayChainCurrencyId; } diff --git a/runtime/pendulum/src/weights/dia_oracle.rs b/runtime/pendulum/src/weights/dia_oracle.rs index e078acf5e..b722b9afe 100644 --- a/runtime/pendulum/src/weights/dia_oracle.rs +++ b/runtime/pendulum/src/weights/dia_oracle.rs @@ -2,9 +2,9 @@ //! Autogenerated weights for dia_oracle //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-08-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Gianfrancos-MBP.fritz.box`, CPU: `` +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 // Executed Command: @@ -35,9 +35,21 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for dia_oracle. +pub trait WeightInfo { + fn add_currency() -> Weight; + fn remove_currency() -> Weight; + fn authorize_account() -> Weight; + fn authorize_account_signed() -> Weight; + fn deauthorize_account() -> Weight; + fn deauthorize_account_signed() -> Weight; + fn set_updated_coin_infos() -> Weight; + fn set_batching_api() -> Weight; +} + /// Weights for dia_oracle using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl dia_oracle::WeightInfo for SubstrateWeight { +impl WeightInfo for SubstrateWeight { /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `DiaOracleModule::SupportedCurrencies` (r:1 w:1) @@ -46,8 +58,8 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `402` // Estimated: `3867` - // Minimum execution time: 15_000_000 picoseconds. - Weight::from_parts(16_000_000, 3867) + // Minimum execution time: 14_000_000 picoseconds. + Weight::from_parts(15_000_000, 3867) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -69,8 +81,8 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `232` // Estimated: `3697` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(11_000_000, 3697) + // Minimum execution time: 9_000_000 picoseconds. + Weight::from_parts(10_000_000, 3697) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -80,8 +92,8 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `287` // Estimated: `6227` - // Minimum execution time: 12_000_000 picoseconds. - Weight::from_parts(13_000_000, 6227) + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(12_000_000, 6227) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -102,7 +114,7 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Measured: `287` // Estimated: `6227` // Minimum execution time: 12_000_000 picoseconds. - Weight::from_parts(13_000_000, 6227) + Weight::from_parts(12_000_000, 6227) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -114,8 +126,8 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `287` // Estimated: `3752` - // Minimum execution time: 10_148_000_000 picoseconds. - Weight::from_parts(10_260_000_000, 3752) + // Minimum execution time: 9_577_000_000 picoseconds. + Weight::from_parts(9_752_000_000, 3752) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -127,9 +139,107 @@ impl dia_oracle::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `287` // Estimated: `3752` - // Minimum execution time: 11_000_000 picoseconds. - Weight::from_parts(11_000_000, 3752) + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(10_000_000, 3752) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } } + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `DiaOracleModule::SupportedCurrencies` (r:1 w:1) + /// Proof: `DiaOracleModule::SupportedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn add_currency() -> Weight { + // Proof Size summary in bytes: + // Measured: `402` + // Estimated: `3867` + // Minimum execution time: 14_000_000 picoseconds. + Weight::from_parts(15_000_000, 3867) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `DiaOracleModule::SupportedCurrencies` (r:1 w:0) + /// Proof: `DiaOracleModule::SupportedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn remove_currency() -> Weight { + // Proof Size summary in bytes: + // Measured: `402` + // Estimated: `3867` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(11_000_000, 3867) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:1) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn authorize_account() -> Weight { + // Proof Size summary in bytes: + // Measured: `232` + // Estimated: `3697` + // Minimum execution time: 9_000_000 picoseconds. + Weight::from_parts(10_000_000, 3697) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:2 w:1) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn authorize_account_signed() -> Weight { + // Proof Size summary in bytes: + // Measured: `287` + // Estimated: `6227` + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(12_000_000, 6227) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn deauthorize_account() -> Weight { + // Proof Size summary in bytes: + // Measured: `232` + // Estimated: `3697` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(6_000_000, 3697) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:2 w:1) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn deauthorize_account_signed() -> Weight { + // Proof Size summary in bytes: + // Measured: `287` + // Estimated: `6227` + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(12_000_000, 6227) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `DiaOracleModule::CoinInfosMap` (r:0 w:1) + /// Proof: `DiaOracleModule::CoinInfosMap` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_updated_coin_infos() -> Weight { + // Proof Size summary in bytes: + // Measured: `287` + // Estimated: `3752` + // Minimum execution time: 9_577_000_000 picoseconds. + Weight::from_parts(9_752_000_000, 3752) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `DiaOracleModule::AuthorizedAccounts` (r:1 w:0) + /// Proof: `DiaOracleModule::AuthorizedAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `DiaOracleModule::BatchingApi` (r:0 w:1) + /// Proof: `DiaOracleModule::BatchingApi` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_batching_api() -> Weight { + // Proof Size summary in bytes: + // Measured: `287` + // Estimated: `3752` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(10_000_000, 3752) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/pendulum/src/weights/fee.rs b/runtime/pendulum/src/weights/fee.rs index 87113d6cb..0fec4af6e 100644 --- a/runtime/pendulum/src/weights/fee.rs +++ b/runtime/pendulum/src/weights/fee.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for fee //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // pendulum -// --execution=wasm // --wasm-execution=compiled // --pallet // fee @@ -36,67 +35,141 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for fee. +pub trait WeightInfo { + fn set_issue_fee() -> Weight; + fn set_issue_griefing_collateral() -> Weight; + fn set_redeem_fee() -> Weight; + fn set_premium_redeem_fee() -> Weight; + fn set_punishment_fee() -> Weight; + fn set_replace_griefing_collateral() -> Weight; +} + /// Weights for fee using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl fee::WeightInfo for SubstrateWeight { - /// Storage: Fee IssueFee (r:0 w:1) - /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) +impl WeightInfo for SubstrateWeight { + /// Storage: `Fee::IssueFee` (r:0 w:1) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_issue_fee() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Fee IssueGriefingCollateral (r:0 w:1) - /// Proof Skipped: Fee IssueGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Fee::IssueGriefingCollateral` (r:0 w:1) + /// Proof: `Fee::IssueGriefingCollateral` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_issue_griefing_collateral() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Fee RedeemFee (r:0 w:1) - /// Proof Skipped: Fee RedeemFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Fee::RedeemFee` (r:0 w:1) + /// Proof: `Fee::RedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_redeem_fee() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Fee PremiumRedeemFee (r:0 w:1) - /// Proof Skipped: Fee PremiumRedeemFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Fee::PremiumRedeemFee` (r:0 w:1) + /// Proof: `Fee::PremiumRedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_premium_redeem_fee() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Fee PunishmentFee (r:0 w:1) - /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Fee::PunishmentFee` (r:0 w:1) + /// Proof: `Fee::PunishmentFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_punishment_fee() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Fee ReplaceGriefingCollateral (r:0 w:1) - /// Proof Skipped: Fee ReplaceGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Fee::ReplaceGriefingCollateral` (r:0 w:1) + /// Proof: `Fee::ReplaceGriefingCollateral` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_replace_griefing_collateral() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `Fee::IssueFee` (r:0 w:1) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_issue_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Fee::IssueGriefingCollateral` (r:0 w:1) + /// Proof: `Fee::IssueGriefingCollateral` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_issue_griefing_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Fee::RedeemFee` (r:0 w:1) + /// Proof: `Fee::RedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_redeem_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Fee::PremiumRedeemFee` (r:0 w:1) + /// Proof: `Fee::PremiumRedeemFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_premium_redeem_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Fee::PunishmentFee` (r:0 w:1) + /// Proof: `Fee::PunishmentFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_punishment_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Fee::ReplaceGriefingCollateral` (r:0 w:1) + /// Proof: `Fee::ReplaceGriefingCollateral` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_replace_griefing_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/pendulum/src/weights/issue.rs b/runtime/pendulum/src/weights/issue.rs index bcf3d7fbb..a8c3a0c77 100644 --- a/runtime/pendulum/src/weights/issue.rs +++ b/runtime/pendulum/src/weights/issue.rs @@ -2,10 +2,10 @@ //! Autogenerated weights for issue //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-06-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Marcels-MBP`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 // Executed Command: // ./target/production/pendulum-node @@ -13,7 +13,6 @@ // pallet // --chain // pendulum -// --execution=wasm // --wasm-execution=compiled // --pallet // issue @@ -36,130 +35,267 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for issue. +pub trait WeightInfo { + fn request_issue() -> Weight; + fn execute_issue() -> Weight; + fn cancel_issue() -> Weight; + fn set_issue_period() -> Weight; + fn rate_limit_update() -> Weight; + fn minimum_transfer_amount_update() -> Weight; +} + /// Weights for issue using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl issue::WeightInfo for SubstrateWeight { - /// Storage: Issue LimitVolumeAmount (r:1 w:0) - /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:3 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee IssueGriefingCollateral (r:1 w:0) - /// Proof Skipped: Fee IssueGriefingCollateral (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: Issue IssueMinimumTransferAmount (r:1 w:0) - /// Proof: Issue IssueMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee IssueFee (r:1 w:0) - /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Security Nonce (r:1 w:1) - /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: System ParentHash (r:1 w:0) - /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:0) - /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Issue IssuePeriod (r:1 w:0) - /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Issue IssueRequests (r:0 w:1) - /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `Issue::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:3 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::IssueGriefingCollateral` (r:1 w:0) + /// Proof: `Fee::IssueGriefingCollateral` (`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: `Issue::IssueMinimumTransferAmount` (r:1 w:0) + /// Proof: `Issue::IssueMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Fee::IssueFee` (r:1 w:0) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Security::Nonce` (r:1 w:1) + /// Proof: `Security::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:0) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Issue::IssuePeriod` (r:1 w:0) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Issue::IssueRequests` (r:0 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) fn request_issue() -> Weight { // Proof Size summary in bytes: // Measured: `2060` - // Estimated: `10475` - // Minimum execution time: 95_000_000 picoseconds. - Weight::from_parts(96_000_000, 10475) + // Estimated: `11106` + // Minimum execution time: 87_000_000 picoseconds. + Weight::from_parts(89_000_000, 11106) .saturating_add(T::DbWeight::get().reads(18_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: Issue IssueRequests (r:1 w:1) - /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) - /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) - /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: StellarRelay Validators (r:1 w:0) - /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) - /// Storage: StellarRelay Organizations (r:1 w:0) - /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Fee IssueFee (r:1 w:0) - /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Issue LimitVolumeAmount (r:1 w:0) - /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalStake (r:2 w:0) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:1 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: `Issue::IssueRequests` (r:1 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:1 w:0) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Validators` (r:1 w:0) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:0) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Fee::IssueFee` (r:1 w:0) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Issue::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalStake` (r:2 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:1 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) fn execute_issue() -> Weight { // Proof Size summary in bytes: // Measured: `2498` // Estimated: `71867` - // Minimum execution time: 8_239_000_000 picoseconds. - Weight::from_parts(8_285_000_000, 71867) + // Minimum execution time: 7_725_000_000 picoseconds. + Weight::from_parts(7_836_000_000, 71867) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: Issue IssueRequests (r:1 w:1) - /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) - /// Storage: Issue IssuePeriod (r:1 w:0) - /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `Issue::IssueRequests` (r:1 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) + /// Storage: `Issue::IssuePeriod` (r:1 w:0) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_issue() -> Weight { // Proof Size summary in bytes: // Measured: `1303` // Estimated: `4768` - // Minimum execution time: 35_000_000 picoseconds. - Weight::from_parts(36_000_000, 4768) + // Minimum execution time: 33_000_000 picoseconds. + Weight::from_parts(33_000_000, 4768) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: Issue IssuePeriod (r:0 w:1) - /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `Issue::IssuePeriod` (r:0 w:1) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_issue_period() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_000_000 picoseconds. + // Minimum execution time: 6_000_000 picoseconds. Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Issue LimitVolumeAmount (r:0 w:1) - /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) - /// Storage: Issue LimitVolumeCurrencyId (r:0 w:1) - /// Proof: Issue LimitVolumeCurrencyId (max_values: Some(1), max_size: Some(46), added: 541, mode: MaxEncodedLen) - /// Storage: Issue IntervalLength (r:0 w:1) - /// Proof: Issue IntervalLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `Issue::LimitVolumeAmount` (r:0 w:1) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Issue::LimitVolumeCurrencyId` (r:0 w:1) + /// Proof: `Issue::LimitVolumeCurrencyId` (`max_values`: Some(1), `max_size`: Some(46), added: 541, mode: `MaxEncodedLen`) + /// Storage: `Issue::IntervalLength` (r:0 w:1) + /// Proof: `Issue::IntervalLength` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn rate_limit_update() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_000_000 picoseconds. + // Minimum execution time: 8_000_000 picoseconds. Weight::from_parts(9_000_000, 0) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: Issue IssueMinimumTransferAmount (r:0 w:1) - /// Proof: Issue IssueMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: `Issue::IssueMinimumTransferAmount` (r:0 w:1) + /// Proof: `Issue::IssueMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn minimum_transfer_amount_update() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` // Minimum execution time: 7_000_000 picoseconds. - Weight::from_parts(8_000_000, 0) + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `Issue::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:3 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::IssueGriefingCollateral` (r:1 w:0) + /// Proof: `Fee::IssueGriefingCollateral` (`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: `Issue::IssueMinimumTransferAmount` (r:1 w:0) + /// Proof: `Issue::IssueMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Fee::IssueFee` (r:1 w:0) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Security::Nonce` (r:1 w:1) + /// Proof: `Security::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:0) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Issue::IssuePeriod` (r:1 w:0) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Issue::IssueRequests` (r:0 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) + fn request_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `2060` + // Estimated: `11106` + // Minimum execution time: 87_000_000 picoseconds. + Weight::from_parts(89_000_000, 11106) + .saturating_add(RocksDbWeight::get().reads(18_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) + } + /// Storage: `Issue::IssueRequests` (r:1 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:1 w:0) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Validators` (r:1 w:0) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:0) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Fee::IssueFee` (r:1 w:0) + /// Proof: `Fee::IssueFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Issue::LimitVolumeAmount` (r:1 w:0) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalStake` (r:2 w:0) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:1 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + fn execute_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `2498` + // Estimated: `71867` + // Minimum execution time: 7_725_000_000 picoseconds. + Weight::from_parts(7_836_000_000, 71867) + .saturating_add(RocksDbWeight::get().reads(11_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Issue::IssueRequests` (r:1 w:1) + /// Proof: `Issue::IssueRequests` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`) + /// Storage: `Issue::IssuePeriod` (r:1 w:0) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn cancel_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `1303` + // Estimated: `4768` + // Minimum execution time: 33_000_000 picoseconds. + Weight::from_parts(33_000_000, 4768) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Issue::IssuePeriod` (r:0 w:1) + /// Proof: `Issue::IssuePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + fn set_issue_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Issue::LimitVolumeAmount` (r:0 w:1) + /// Proof: `Issue::LimitVolumeAmount` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Issue::LimitVolumeCurrencyId` (r:0 w:1) + /// Proof: `Issue::LimitVolumeCurrencyId` (`max_values`: Some(1), `max_size`: Some(46), added: 541, mode: `MaxEncodedLen`) + /// Storage: `Issue::IntervalLength` (r:0 w:1) + /// Proof: `Issue::IntervalLength` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + fn rate_limit_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(9_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: `Issue::IssueMinimumTransferAmount` (r:0 w:1) + /// Proof: `Issue::IssueMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/pendulum/src/weights/nomination.rs b/runtime/pendulum/src/weights/nomination.rs index 80b51f0e9..285b33b15 100644 --- a/runtime/pendulum/src/weights/nomination.rs +++ b/runtime/pendulum/src/weights/nomination.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for nomination //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // pendulum -// --execution=wasm // --wasm-execution=compiled // --pallet // nomination @@ -36,193 +35,400 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for nomination. +pub trait WeightInfo { + fn set_nomination_enabled() -> Weight; + fn opt_in_to_nomination() -> Weight; + fn opt_out_of_nomination() -> Weight; + fn deposit_collateral() -> Weight; + fn withdraw_collateral() -> Weight; +} + /// Weights for nomination using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl nomination::WeightInfo for SubstrateWeight { - /// Storage: Nomination NominationEnabled (r:0 w:1) - /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `Nomination::NominationEnabled` (r:0 w:1) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn set_nomination_enabled() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(6_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Nomination NominationEnabled (r:1 w:0) - /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Nomination Vaults (r:1 w:1) - /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:1) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) fn opt_in_to_nomination() -> Weight { // Proof Size summary in bytes: // Measured: `780` // Estimated: `4245` - // Minimum execution time: 28_000_000 picoseconds. - Weight::from_parts(30_000_000, 4245) + // Minimum execution time: 20_000_000 picoseconds. + Weight::from_parts(21_000_000, 4245) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Nomination Vaults (r:1 w:1) - /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:1) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:2 w:2) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:2 w:2) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:2 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:2 w:2) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:0) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:2 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:2 w:2) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:2 w:2) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:1) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:1) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:2 w:2) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:2 w:2) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:2 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:2 w:2) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:2 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:2 w:2) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:2 w:2) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) fn opt_out_of_nomination() -> Weight { // Proof Size summary in bytes: - // Measured: `2427` - // Estimated: `8367` - // Minimum execution time: 232_000_000 picoseconds. - Weight::from_parts(242_000_000, 8367) - .saturating_add(T::DbWeight::get().reads(25_u64)) + // Measured: `2531` + // Estimated: `8471` + // Minimum execution time: 166_000_000 picoseconds. + Weight::from_parts(182_000_000, 8471) + .saturating_add(T::DbWeight::get().reads(27_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Nomination NominationEnabled (r:1 w:0) - /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - /// Storage: Nomination Vaults (r:1 w:0) - /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:2 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:2 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) - /// Storage: Tokens Accounts (r:2 w:2) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:0) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:2 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:2 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) fn deposit_collateral() -> Weight { // Proof Size summary in bytes: // Measured: `3139` // Estimated: `9079` - // Minimum execution time: 227_000_000 picoseconds. - Weight::from_parts(253_000_000, 9079) + // Minimum execution time: 157_000_000 picoseconds. + Weight::from_parts(166_000_000, 9079) .saturating_add(T::DbWeight::get().reads(28_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Nomination NominationEnabled (r:1 w:0) - /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - /// Storage: Nomination Vaults (r:1 w:0) - /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) - /// Storage: Tokens Accounts (r:2 w:2) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:0) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn withdraw_collateral() -> Weight { // Proof Size summary in bytes: - // Measured: `3325` - // Estimated: `6790` - // Minimum execution time: 209_000_000 picoseconds. - Weight::from_parts(271_000_000, 6790) - .saturating_add(T::DbWeight::get().reads(24_u64)) + // Measured: `3429` + // Estimated: `7734` + // Minimum execution time: 155_000_000 picoseconds. + Weight::from_parts(162_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(26_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `Nomination::NominationEnabled` (r:0 w:1) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + fn set_nomination_enabled() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:1) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + fn opt_in_to_nomination() -> Weight { + // Proof Size summary in bytes: + // Measured: `780` + // Estimated: `4245` + // Minimum execution time: 20_000_000 picoseconds. + Weight::from_parts(21_000_000, 4245) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:1) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:1) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:2 w:2) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:2 w:2) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:2 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:2 w:2) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:2 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:2 w:2) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:2 w:2) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn opt_out_of_nomination() -> Weight { + // Proof Size summary in bytes: + // Measured: `2531` + // Estimated: `8471` + // Minimum execution time: 166_000_000 picoseconds. + Weight::from_parts(182_000_000, 8471) + .saturating_add(RocksDbWeight::get().reads(27_u64)) + .saturating_add(RocksDbWeight::get().writes(16_u64)) + } + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:2 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:2 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn deposit_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `3139` + // Estimated: `9079` + // Minimum execution time: 157_000_000 picoseconds. + Weight::from_parts(166_000_000, 9079) + .saturating_add(RocksDbWeight::get().reads(28_u64)) + .saturating_add(RocksDbWeight::get().writes(13_u64)) + } + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Nomination::NominationEnabled` (r:1 w:0) + /// Proof: `Nomination::NominationEnabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn withdraw_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `3429` + // Estimated: `7734` + // Minimum execution time: 155_000_000 picoseconds. + Weight::from_parts(162_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(26_u64)) + .saturating_add(RocksDbWeight::get().writes(13_u64)) + } } \ No newline at end of file diff --git a/runtime/pendulum/src/weights/oracle.rs b/runtime/pendulum/src/weights/oracle.rs index b9877bd86..145fc889e 100644 --- a/runtime/pendulum/src/weights/oracle.rs +++ b/runtime/pendulum/src/weights/oracle.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for oracle //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // pendulum -// --execution=wasm // --wasm-execution=compiled // --pallet // oracle @@ -36,13 +35,20 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for oracle. +pub trait WeightInfo { + fn on_initialize() -> Weight; + fn update_oracle_keys() -> Weight; + fn set_max_delay() -> Weight; +} + /// Weights for oracle using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl oracle::WeightInfo for SubstrateWeight { - /// Storage: Timestamp Now (r:0 w:1) - /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - /// Storage: Timestamp DidUpdate (r:0 w:1) - /// Proof: Timestamp DidUpdate (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `Timestamp::Now` (r:0 w:1) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + /// Storage: `Timestamp::DidUpdate` (r:0 w:1) + /// Proof: `Timestamp::DidUpdate` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn on_initialize() -> Weight { // Proof Size summary in bytes: // Measured: `0` @@ -51,24 +57,60 @@ impl oracle::WeightInfo for SubstrateWeight { Weight::from_parts(1_000_000, 0) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: Oracle OracleKeys (r:0 w:1) - /// Proof Skipped: Oracle OracleKeys (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Oracle::OracleKeys` (r:0 w:1) + /// Proof: `Oracle::OracleKeys` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn update_oracle_keys() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Oracle MaxDelay (r:0 w:1) - /// Proof Skipped: Oracle MaxDelay (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Oracle::MaxDelay` (r:0 w:1) + /// Proof: `Oracle::MaxDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_max_delay() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `Timestamp::Now` (r:0 w:1) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + /// Storage: `Timestamp::DidUpdate` (r:0 w:1) + /// Proof: `Timestamp::DidUpdate` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + fn on_initialize() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_000_000 picoseconds. + Weight::from_parts(1_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Oracle::OracleKeys` (r:0 w:1) + /// Proof: `Oracle::OracleKeys` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn update_oracle_keys() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Oracle::MaxDelay` (r:0 w:1) + /// Proof: `Oracle::MaxDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_max_delay() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/pendulum/src/weights/orml_asset_registry.rs b/runtime/pendulum/src/weights/orml_asset_registry.rs index aabdf34d8..a03707959 100644 --- a/runtime/pendulum/src/weights/orml_asset_registry.rs +++ b/runtime/pendulum/src/weights/orml_asset_registry.rs @@ -2,10 +2,10 @@ //! Autogenerated weights for `orml_asset_registry` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-07-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Marcels-MBP`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pendulum")`, DB CACHE: 1024 // Executed Command: // ./target/production/pendulum-node @@ -13,10 +13,9 @@ // pallet // --chain // pendulum -// --execution=wasm // --wasm-execution=compiled // --pallet -// * +// orml-asset-registry // --extrinsic // * // --steps @@ -29,38 +28,39 @@ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] +#![allow(missing_docs)] use frame_support::{traits::Get, weights::Weight}; -use sp_std::marker::PhantomData; +use core::marker::PhantomData; /// Weight functions for `orml_asset_registry`. pub struct WeightInfo(PhantomData); impl orml_asset_registry::WeightInfo for WeightInfo { - /// Storage: AssetRegistry Metadata (r:1 w:1) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry LocationToAssetId (r:1 w:1) - /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + /// Storage: `AssetRegistry::Metadata` (r:1 w:1) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::LocationToAssetId` (r:1 w:1) + /// Proof: `AssetRegistry::LocationToAssetId` (`max_values`: None, `max_size`: Some(656), added: 3131, mode: `MaxEncodedLen`) fn register_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `66` - // Estimated: `7062` - // Minimum execution time: 17_000_000 picoseconds. - Weight::from_parts(18_000_000, 0) - .saturating_add(Weight::from_parts(0, 7062)) + // Measured: `104` + // Estimated: `4362` + // Minimum execution time: 15_000_000 picoseconds. + Weight::from_parts(16_000_000, 0) + .saturating_add(Weight::from_parts(0, 4362)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: AssetRegistry Metadata (r:1 w:1) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry LocationToAssetId (r:1 w:2) - /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + /// Storage: `AssetRegistry::Metadata` (r:1 w:1) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::LocationToAssetId` (r:1 w:2) + /// Proof: `AssetRegistry::LocationToAssetId` (`max_values`: None, `max_size`: Some(656), added: 3131, mode: `MaxEncodedLen`) fn update_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `707` - // Estimated: `8344` - // Minimum execution time: 25_000_000 picoseconds. - Weight::from_parts(26_000_000, 0) - .saturating_add(Weight::from_parts(0, 8344)) + // Measured: `767` + // Estimated: `4362` + // Minimum execution time: 21_000_000 picoseconds. + Weight::from_parts(22_000_000, 0) + .saturating_add(Weight::from_parts(0, 4362)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/pendulum/src/weights/orml_currencies_allowance_extension.rs b/runtime/pendulum/src/weights/orml_currencies_allowance_extension.rs index 1c2a11555..da90af97f 100644 --- a/runtime/pendulum/src/weights/orml_currencies_allowance_extension.rs +++ b/runtime/pendulum/src/weights/orml_currencies_allowance_extension.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for orml_currencies_allowance_extension //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // pendulum -// --execution=wasm // --wasm-execution=compiled // --pallet // orml_currencies_allowance_extension @@ -36,62 +35,129 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for orml_currencies_allowance_extension. +pub trait WeightInfo { + fn add_allowed_currencies(n: u32, ) -> Weight; + fn remove_allowed_currencies(n: u32, ) -> Weight; + fn approve() -> Weight; + fn transfer_from() -> Weight; +} + /// Weights for orml_currencies_allowance_extension using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl orml_currencies_allowance_extension::default_weights::WeightInfo for SubstrateWeight { - /// Storage: TokenAllowance AllowedCurrencies (r:2 w:1) - /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) +impl WeightInfo for SubstrateWeight { + /// Storage: `TokenAllowance::AllowedCurrencies` (r:2 w:1) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `n` is `[1, 256]`. fn add_allowed_currencies(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `142` // Estimated: `6082` - // Minimum execution time: 17_000_000 picoseconds. - Weight::from_parts(16_105_645, 6082) - // Standard Error: 2_439 - .saturating_add(Weight::from_parts(1_339_480, 0).saturating_mul(n.into())) + // Minimum execution time: 13_000_000 picoseconds. + Weight::from_parts(13_066_849, 6082) + // Standard Error: 2_713 + .saturating_add(Weight::from_parts(1_016_865, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TokenAllowance AllowedCurrencies (r:0 w:1) - /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) + /// Storage: `TokenAllowance::AllowedCurrencies` (r:0 w:1) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `n` is `[1, 256]`. fn remove_allowed_currencies(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_000_000 picoseconds. - Weight::from_parts(10_824_769, 0) - // Standard Error: 3_481 - .saturating_add(Weight::from_parts(1_300_759, 0).saturating_mul(n.into())) + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(9_728_756, 0) + // Standard Error: 2_351 + .saturating_add(Weight::from_parts(1_002_649, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TokenAllowance AllowedCurrencies (r:1 w:0) - /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) - /// Storage: TokenAllowance Approvals (r:0 w:1) - /// Proof Skipped: TokenAllowance Approvals (max_values: None, max_size: None, mode: Measured) + /// Storage: `TokenAllowance::AllowedCurrencies` (r:1 w:0) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenAllowance::Approvals` (r:0 w:1) + /// Proof: `TokenAllowance::Approvals` (`max_values`: None, `max_size`: None, mode: `Measured`) fn approve() -> Weight { // Proof Size summary in bytes: // Measured: `184` // Estimated: `3649` - // Minimum execution time: 18_000_000 picoseconds. - Weight::from_parts(19_000_000, 3649) + // Minimum execution time: 13_000_000 picoseconds. + Weight::from_parts(14_000_000, 3649) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TokenAllowance AllowedCurrencies (r:1 w:0) - /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) - /// Storage: TokenAllowance Approvals (r:1 w:1) - /// Proof Skipped: TokenAllowance Approvals (max_values: None, max_size: None, mode: Measured) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: `TokenAllowance::AllowedCurrencies` (r:1 w:0) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenAllowance::Approvals` (r:1 w:1) + /// Proof: `TokenAllowance::Approvals` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer_from() -> Weight { // Proof Size summary in bytes: // Measured: `581` // Estimated: `6196` - // Minimum execution time: 72_000_000 picoseconds. - Weight::from_parts(74_000_000, 6196) + // Minimum execution time: 53_000_000 picoseconds. + Weight::from_parts(54_000_000, 6196) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `TokenAllowance::AllowedCurrencies` (r:2 w:1) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `n` is `[1, 256]`. + fn add_allowed_currencies(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `142` + // Estimated: `6082` + // Minimum execution time: 13_000_000 picoseconds. + Weight::from_parts(13_066_849, 6082) + // Standard Error: 2_713 + .saturating_add(Weight::from_parts(1_016_865, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `TokenAllowance::AllowedCurrencies` (r:0 w:1) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `n` is `[1, 256]`. + fn remove_allowed_currencies(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(9_728_756, 0) + // Standard Error: 2_351 + .saturating_add(Weight::from_parts(1_002_649, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `TokenAllowance::AllowedCurrencies` (r:1 w:0) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenAllowance::Approvals` (r:0 w:1) + /// Proof: `TokenAllowance::Approvals` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn approve() -> Weight { + // Proof Size summary in bytes: + // Measured: `184` + // Estimated: `3649` + // Minimum execution time: 13_000_000 picoseconds. + Weight::from_parts(14_000_000, 3649) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `TokenAllowance::AllowedCurrencies` (r:1 w:0) + /// Proof: `TokenAllowance::AllowedCurrencies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenAllowance::Approvals` (r:1 w:1) + /// Proof: `TokenAllowance::Approvals` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn transfer_from() -> Weight { + // Proof Size summary in bytes: + // Measured: `581` + // Estimated: `6196` + // Minimum execution time: 53_000_000 picoseconds. + Weight::from_parts(54_000_000, 6196) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } } \ No newline at end of file diff --git a/runtime/pendulum/src/weights/pallet_xcm.rs b/runtime/pendulum/src/weights/pallet_xcm.rs index c0d3ba948..80b48d59e 100644 --- a/runtime/pendulum/src/weights/pallet_xcm.rs +++ b/runtime/pendulum/src/weights/pallet_xcm.rs @@ -2,10 +2,10 @@ //! Autogenerated weights for `pallet_xcm` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-12-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `pop-os`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pendulum")`, DB CACHE: 1024 // Executed Command: // ./target/production/pendulum-node @@ -13,7 +13,6 @@ // pallet // --chain // pendulum -// --execution=wasm // --wasm-execution=compiled // --pallet // pallet-xcm @@ -37,28 +36,28 @@ use core::marker::PhantomData; /// Weight functions for `pallet_xcm`. pub struct WeightInfo(PhantomData); impl pallet_xcm::WeightInfo for WeightInfo { - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`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::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn send() -> Weight { // Proof Size summary in bytes: - // Measured: `145` - // Estimated: `3610` - // Minimum execution time: 40_032_000 picoseconds. - Weight::from_parts(40_460_000, 0) - .saturating_add(Weight::from_parts(0, 3610)) + // Measured: `245` + // Estimated: `3710` + // Minimum execution time: 20_000_000 picoseconds. + Weight::from_parts(21_000_000, 0) + .saturating_add(Weight::from_parts(0, 3710)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Benchmark Override (r:0 w:0) - /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) + /// Storage: `Benchmark::Override` (r:0 w:0) + /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) fn teleport_assets() -> Weight { // Proof Size summary in bytes: // Measured: `0` @@ -67,14 +66,14 @@ impl pallet_xcm::WeightInfo for WeightInfo { Weight::from_parts(18_446_744_073_709_551_000, 0) .saturating_add(Weight::from_parts(0, 0)) } - /// Storage: ParachainInfo ParachainId (r:1 w:0) - /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn reserve_transfer_assets() -> Weight { // Proof Size summary in bytes: // Measured: `32` // Estimated: `1489` - // Minimum execution time: 37_188_000 picoseconds. - Weight::from_parts(39_629_000, 0) + // Minimum execution time: 15_000_000 picoseconds. + Weight::from_parts(15_000_000, 0) .saturating_add(Weight::from_parts(0, 1489)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -82,192 +81,192 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 14_427_000 picoseconds. - Weight::from_parts(30_136_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(Weight::from_parts(0, 0)) } - /// Storage: PolkadotXcm SupportedVersion (r:0 w:1) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::SupportedVersion` (r:0 w:1) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_xcm_version() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 15_126_000 picoseconds. - Weight::from_parts(15_296_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: PolkadotXcm SafeXcmVersion (r:0 w:1) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:0 w:1) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn force_default_xcm_version() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_002_000 picoseconds. - Weight::from_parts(5_109_000, 0) + // Minimum execution time: 2_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: PolkadotXcm VersionNotifiers (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm QueryCounter (r:1 w:1) - /// Proof Skipped: PolkadotXcm QueryCounter (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm Queries (r:0 w:1) - /// Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1) + /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`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::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_subscribe_version_notify() -> Weight { // Proof Size summary in bytes: - // Measured: `145` - // Estimated: `3610` - // Minimum execution time: 46_138_000 picoseconds. - Weight::from_parts(46_714_000, 0) - .saturating_add(Weight::from_parts(0, 3610)) + // Measured: `245` + // Estimated: `3710` + // Minimum execution time: 25_000_000 picoseconds. + Weight::from_parts(26_000_000, 0) + .saturating_add(Weight::from_parts(0, 3710)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: PolkadotXcm VersionNotifiers (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm Queries (r:0 w:1) - /// Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`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::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_unsubscribe_version_notify() -> Weight { // Proof Size summary in bytes: - // Measured: `328` - // Estimated: `3793` - // Minimum execution time: 45_902_000 picoseconds. - Weight::from_parts(47_995_000, 0) - .saturating_add(Weight::from_parts(0, 3793)) + // Measured: `428` + // Estimated: `3893` + // Minimum execution time: 25_000_000 picoseconds. + Weight::from_parts(27_000_000, 0) + .saturating_add(Weight::from_parts(0, 3893)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: PolkadotXcm XcmExecutionSuspended (r:0 w:1) - /// Proof Skipped: PolkadotXcm XcmExecutionSuspended (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::XcmExecutionSuspended` (r:0 w:1) + /// Proof: `PolkadotXcm::XcmExecutionSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn force_suspension() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_807_000 picoseconds. - Weight::from_parts(5_523_000, 0) + // Minimum execution time: 2_000_000 picoseconds. + Weight::from_parts(2_000_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: PolkadotXcm SupportedVersion (r:4 w:2) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::SupportedVersion` (r:4 w:2) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_supported_version() -> Weight { // Proof Size summary in bytes: - // Measured: `162` - // Estimated: `11052` - // Minimum execution time: 23_133_000 picoseconds. - Weight::from_parts(23_599_000, 0) - .saturating_add(Weight::from_parts(0, 11052)) + // Measured: `229` + // Estimated: `11119` + // Minimum execution time: 15_000_000 picoseconds. + Weight::from_parts(16_000_000, 0) + .saturating_add(Weight::from_parts(0, 11119)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: PolkadotXcm VersionNotifiers (r:4 w:2) - /// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifiers` (r:4 w:2) + /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_version_notifiers() -> Weight { // Proof Size summary in bytes: - // Measured: `166` - // Estimated: `11056` - // Minimum execution time: 23_543_000 picoseconds. - Weight::from_parts(23_918_000, 0) - .saturating_add(Weight::from_parts(0, 11056)) + // Measured: `233` + // Estimated: `11123` + // Minimum execution time: 15_000_000 picoseconds. + Weight::from_parts(15_000_000, 0) + .saturating_add(Weight::from_parts(0, 11123)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:5 w:0) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:0) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn already_notified_target() -> Weight { // Proof Size summary in bytes: - // Measured: `173` - // Estimated: `13538` - // Minimum execution time: 24_704_000 picoseconds. - Weight::from_parts(25_267_000, 0) - .saturating_add(Weight::from_parts(0, 13538)) + // Measured: `240` + // Estimated: `13605` + // Minimum execution time: 16_000_000 picoseconds. + Weight::from_parts(17_000_000, 0) + .saturating_add(Weight::from_parts(0, 13605)) .saturating_add(T::DbWeight::get().reads(5)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:2 w:1) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:2 w:1) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`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::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn notify_current_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `212` - // Estimated: `6152` - // Minimum execution time: 42_577_000 picoseconds. - Weight::from_parts(43_366_000, 0) - .saturating_add(Weight::from_parts(0, 6152)) + // Measured: `312` + // Estimated: `6252` + // Minimum execution time: 23_000_000 picoseconds. + Weight::from_parts(23_000_000, 0) + .saturating_add(Weight::from_parts(0, 6252)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:3 w:0) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:3 w:0) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn notify_target_migration_fail() -> Weight { // Proof Size summary in bytes: - // Measured: `206` - // Estimated: `8621` - // Minimum execution time: 12_957_000 picoseconds. - Weight::from_parts(13_179_000, 0) - .saturating_add(Weight::from_parts(0, 8621)) + // Measured: `272` + // Estimated: `8687` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(9_000_000, 0) + .saturating_add(Weight::from_parts(0, 8687)) .saturating_add(T::DbWeight::get().reads(3)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:4 w:2) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:2) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_version_notify_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `173` - // Estimated: `11063` - // Minimum execution time: 23_953_000 picoseconds. - Weight::from_parts(24_967_000, 0) - .saturating_add(Weight::from_parts(0, 11063)) + // Measured: `240` + // Estimated: `11130` + // Minimum execution time: 15_000_000 picoseconds. + Weight::from_parts(16_000_000, 0) + .saturating_add(Weight::from_parts(0, 11130)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:4 w:2) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:2) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`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::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn migrate_and_notify_old_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `215` - // Estimated: `11105` - // Minimum execution time: 50_999_000 picoseconds. - Weight::from_parts(51_842_000, 0) - .saturating_add(Weight::from_parts(0, 11105)) + // Measured: `316` + // Estimated: `11206` + // Minimum execution time: 29_000_000 picoseconds. + Weight::from_parts(30_000_000, 0) + .saturating_add(Weight::from_parts(0, 11206)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(4)) } diff --git a/runtime/pendulum/src/weights/replace.rs b/runtime/pendulum/src/weights/replace.rs index 5c5ebd2e2..12c1d76a6 100644 --- a/runtime/pendulum/src/weights/replace.rs +++ b/runtime/pendulum/src/weights/replace.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for replace //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // pendulum -// --execution=wasm // --wasm-execution=compiled // --pallet // replace @@ -36,188 +35,396 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for replace. +pub trait WeightInfo { + fn request_replace() -> Weight; + fn withdraw_replace() -> Weight; + fn accept_replace() -> Weight; + fn execute_replace() -> Weight; + fn cancel_replace() -> Weight; + fn set_replace_period() -> Weight; + fn minimum_transfer_amount_update() -> Weight; +} + /// Weights for replace using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl replace::WeightInfo for SubstrateWeight { - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Nomination Vaults (r:1 w:0) - /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) - /// Storage: Replace ReplaceMinimumTransferAmount (r:1 w:0) - /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Fee ReplaceGriefingCollateral (r:1 w:0) - /// Proof Skipped: Fee ReplaceGriefingCollateral (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) +impl WeightInfo for SubstrateWeight { + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:1 w:0) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::ReplaceGriefingCollateral` (r:1 w:0) + /// Proof: `Fee::ReplaceGriefingCollateral` (`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 request_replace() -> Weight { // Proof Size summary in bytes: - // Measured: `1531` - // Estimated: `4996` - // Minimum execution time: 73_000_000 picoseconds. - Weight::from_parts(74_000_000, 4996) - .saturating_add(T::DbWeight::get().reads(6_u64)) + // Measured: `1635` + // Estimated: `7734` + // Minimum execution time: 59_000_000 picoseconds. + Weight::from_parts(59_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn withdraw_replace() -> Weight { // Proof Size summary in bytes: // Measured: `650` // Estimated: `4115` - // Minimum execution time: 28_000_000 picoseconds. - Weight::from_parts(30_000_000, 4115) + // Minimum execution time: 21_000_000 picoseconds. + Weight::from_parts(22_000_000, 4115) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry Vaults (r:2 w:2) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: Replace ReplaceMinimumTransferAmount (r:1 w:0) - /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Security Nonce (r:1 w:1) - /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: System ParentHash (r:1 w:0) - /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Replace ReplacePeriod (r:1 w:0) - /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Replace ReplaceRequests (r:0 w:1) - /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:1 w:0) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Security::Nonce` (r:1 w:1) + /// Proof: `Security::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Replace::ReplacePeriod` (r:1 w:0) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplaceRequests` (r:0 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) fn accept_replace() -> Weight { // Proof Size summary in bytes: - // Measured: `3275` - // Estimated: `9215` - // Minimum execution time: 237_000_000 picoseconds. - Weight::from_parts(251_000_000, 9215) - .saturating_add(T::DbWeight::get().reads(27_u64)) + // Measured: `3379` + // Estimated: `9319` + // Minimum execution time: 188_000_000 picoseconds. + Weight::from_parts(190_000_000, 9319) + .saturating_add(T::DbWeight::get().reads(29_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } - /// Storage: Replace ReplaceRequests (r:1 w:1) - /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) - /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) - /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: StellarRelay Validators (r:1 w:0) - /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) - /// Storage: StellarRelay Organizations (r:1 w:0) - /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:2 w:2) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `Replace::ReplaceRequests` (r:1 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:1 w:0) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Validators` (r:1 w:0) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:0) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute_replace() -> Weight { // Proof Size summary in bytes: // Measured: `1968` // Estimated: `71867` - // Minimum execution time: 8_202_000_000 picoseconds. - Weight::from_parts(8_279_000_000, 71867) + // Minimum execution time: 7_735_000_000 picoseconds. + Weight::from_parts(7_890_000_000, 71867) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: Replace ReplaceRequests (r:1 w:1) - /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) - /// Storage: Replace ReplacePeriod (r:1 w:0) - /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Security ActiveBlockCount (r:1 w:0) - /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:2 w:2) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:0) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: `Replace::ReplaceRequests` (r:1 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplacePeriod` (r:1 w:0) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_replace() -> Weight { // Proof Size summary in bytes: - // Measured: `3078` - // Estimated: `9018` - // Minimum execution time: 142_000_000 picoseconds. - Weight::from_parts(145_000_000, 9018) - .saturating_add(T::DbWeight::get().reads(20_u64)) + // Measured: `3182` + // Estimated: `9122` + // Minimum execution time: 115_000_000 picoseconds. + Weight::from_parts(116_000_000, 9122) + .saturating_add(T::DbWeight::get().reads(22_u64)) .saturating_add(T::DbWeight::get().writes(10_u64)) } - /// Storage: Replace ReplacePeriod (r:0 w:1) - /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `Replace::ReplacePeriod` (r:0 w:1) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_replace_period() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Replace ReplaceMinimumTransferAmount (r:0 w:1) - /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:0 w:1) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn minimum_transfer_amount_update() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(11_000_000, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Nomination::Vaults` (r:1 w:0) + /// Proof: `Nomination::Vaults` (`max_values`: None, `max_size`: Some(141), added: 2616, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:1 w:0) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Fee::ReplaceGriefingCollateral` (r:1 w:0) + /// Proof: `Fee::ReplaceGriefingCollateral` (`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 request_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `1635` + // Estimated: `7734` + // Minimum execution time: 59_000_000 picoseconds. + Weight::from_parts(59_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(8_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn withdraw_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `650` + // Estimated: `4115` + // Minimum execution time: 21_000_000 picoseconds. + Weight::from_parts(22_000_000, 4115) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:1 w:0) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `Security::Nonce` (r:1 w:1) + /// Proof: `Security::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Replace::ReplacePeriod` (r:1 w:0) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplaceRequests` (r:0 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) + fn accept_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `3379` + // Estimated: `9319` + // Minimum execution time: 188_000_000 picoseconds. + Weight::from_parts(190_000_000, 9319) + .saturating_add(RocksDbWeight::get().reads(29_u64)) + .saturating_add(RocksDbWeight::get().writes(16_u64)) + } + /// Storage: `Replace::ReplaceRequests` (r:1 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:1 w:0) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Validators` (r:1 w:0) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:0) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn execute_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `1968` + // Estimated: `71867` + // Minimum execution time: 7_735_000_000 picoseconds. + Weight::from_parts(7_890_000_000, 71867) + .saturating_add(RocksDbWeight::get().reads(6_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: `Replace::ReplaceRequests` (r:1 w:1) + /// Proof: `Replace::ReplaceRequests` (`max_values`: None, `max_size`: Some(431), added: 2906, mode: `MaxEncodedLen`) + /// Storage: `Replace::ReplacePeriod` (r:1 w:0) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Security::ActiveBlockCount` (r:1 w:0) + /// Proof: `Security::ActiveBlockCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:2 w:2) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn cancel_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `3182` + // Estimated: `9122` + // Minimum execution time: 115_000_000 picoseconds. + Weight::from_parts(116_000_000, 9122) + .saturating_add(RocksDbWeight::get().reads(22_u64)) + .saturating_add(RocksDbWeight::get().writes(10_u64)) + } + /// Storage: `Replace::ReplacePeriod` (r:0 w:1) + /// Proof: `Replace::ReplacePeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + fn set_replace_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Replace::ReplaceMinimumTransferAmount` (r:0 w:1) + /// Proof: `Replace::ReplaceMinimumTransferAmount` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/pendulum/src/weights/stellar_relay.rs b/runtime/pendulum/src/weights/stellar_relay.rs index b05371d72..ba417fab9 100644 --- a/runtime/pendulum/src/weights/stellar_relay.rs +++ b/runtime/pendulum/src/weights/stellar_relay.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for stellar_relay //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // pendulum -// --execution=wasm // --wasm-execution=compiled // --pallet // stellar-relay @@ -36,26 +35,54 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for stellar_relay. +pub trait WeightInfo { + fn update_tier_1_validator_set() -> Weight; +} + /// Weights for stellar_relay using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl stellar_relay::WeightInfo for SubstrateWeight { - /// Storage: StellarRelay Validators (r:1 w:1) - /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) - /// Storage: StellarRelay Organizations (r:1 w:1) - /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) - /// Storage: StellarRelay OldValidators (r:0 w:1) - /// Proof: StellarRelay OldValidators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) - /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:0 w:1) - /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: StellarRelay OldOrganizations (r:0 w:1) - /// Proof: StellarRelay OldOrganizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `StellarRelay::Validators` (r:1 w:1) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:1) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::OldValidators` (r:0 w:1) + /// Proof: `StellarRelay::OldValidators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:0 w:1) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::OldOrganizations` (r:0 w:1) + /// Proof: `StellarRelay::OldOrganizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) fn update_tier_1_validator_set() -> Weight { // Proof Size summary in bytes: // Measured: `2446` // Estimated: `71867` - // Minimum execution time: 146_000_000 picoseconds. - Weight::from_parts(156_000_000, 71867) + // Minimum execution time: 117_000_000 picoseconds. + Weight::from_parts(121_000_000, 71867) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `StellarRelay::Validators` (r:1 w:1) + /// Proof: `StellarRelay::Validators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::Organizations` (r:1 w:1) + /// Proof: `StellarRelay::Organizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::OldValidators` (r:0 w:1) + /// Proof: `StellarRelay::OldValidators` (`max_values`: Some(1), `max_size`: Some(70382), added: 70877, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::NewValidatorsEnactmentBlockHeight` (r:0 w:1) + /// Proof: `StellarRelay::NewValidatorsEnactmentBlockHeight` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `StellarRelay::OldOrganizations` (r:0 w:1) + /// Proof: `StellarRelay::OldOrganizations` (`max_values`: Some(1), `max_size`: Some(37232), added: 37727, mode: `MaxEncodedLen`) + fn update_tier_1_validator_set() -> Weight { + // Proof Size summary in bytes: + // Measured: `2446` + // Estimated: `71867` + // Minimum execution time: 117_000_000 picoseconds. + Weight::from_parts(121_000_000, 71867) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(5_u64)) + } } \ No newline at end of file diff --git a/runtime/pendulum/src/weights/treasury_buyout_extension.rs b/runtime/pendulum/src/weights/treasury_buyout_extension.rs index 8e5c28d62..95e9ae2ec 100644 --- a/runtime/pendulum/src/weights/treasury_buyout_extension.rs +++ b/runtime/pendulum/src/weights/treasury_buyout_extension.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for treasury_buyout_extension //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-05-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // pendulum -// --execution=wasm // --wasm-execution=compiled // --pallet // treasury-buyout-extension @@ -36,54 +35,112 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for treasury_buyout_extension. +pub trait WeightInfo { + fn buyout() -> Weight; + fn update_buyout_limit() -> Weight; + fn update_allowed_assets(n: u32, ) -> Weight; +} + /// Weights for treasury_buyout_extension using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl treasury_buyout_extension::default_weights::WeightInfo for SubstrateWeight { - /// Storage: TreasuryBuyoutExtension AllowedCurrencies (r:1 w:0) - /// Proof: TreasuryBuyoutExtension AllowedCurrencies (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen) - /// Storage: AssetRegistry Metadata (r:2 w:0) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: DiaOracleModule CoinInfosMap (r:1 w:0) - /// Proof Skipped: DiaOracleModule CoinInfosMap (max_values: None, max_size: None, mode: Measured) - /// Storage: TreasuryBuyoutExtension BuyoutLimit (r:1 w:0) - /// Proof: TreasuryBuyoutExtension BuyoutLimit (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: TreasuryBuyoutExtension Buyouts (r:1 w:1) - /// Proof: TreasuryBuyoutExtension Buyouts (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) - /// Storage: Tokens Accounts (r:2 w:2) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `TreasuryBuyoutExtension::AllowedCurrencies` (r:1 w:0) + /// Proof: `TreasuryBuyoutExtension::AllowedCurrencies` (`max_values`: None, `max_size`: Some(62), added: 2537, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `DiaOracleModule::CoinInfosMap` (r:1 w:0) + /// Proof: `DiaOracleModule::CoinInfosMap` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TreasuryBuyoutExtension::BuyoutLimit` (r:1 w:0) + /// Proof: `TreasuryBuyoutExtension::BuyoutLimit` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `TreasuryBuyoutExtension::Buyouts` (r:1 w:1) + /// Proof: `TreasuryBuyoutExtension::Buyouts` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn buyout() -> Weight { // Proof Size summary in bytes: - // Measured: `1223` - // Estimated: `7163` - // Minimum execution time: 121_000_000 picoseconds. - Weight::from_parts(125_000_000, 7163) + // Measured: `1294` + // Estimated: `7734` + // Minimum execution time: 87_000_000 picoseconds. + Weight::from_parts(92_000_000, 7734) .saturating_add(T::DbWeight::get().reads(10_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } - /// Storage: TreasuryBuyoutExtension BuyoutLimit (r:0 w:1) - /// Proof: TreasuryBuyoutExtension BuyoutLimit (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: `TreasuryBuyoutExtension::BuyoutLimit` (r:0 w:1) + /// Proof: `TreasuryBuyoutExtension::BuyoutLimit` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn update_buyout_limit() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_000_000 picoseconds. - Weight::from_parts(8_000_000, 0) + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TreasuryBuyoutExtension AllowedCurrencies (r:1 w:1) - /// Proof: TreasuryBuyoutExtension AllowedCurrencies (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen) + /// Storage: `TreasuryBuyoutExtension::AllowedCurrencies` (r:1 w:1) + /// Proof: `TreasuryBuyoutExtension::AllowedCurrencies` (`max_values`: None, `max_size`: Some(62), added: 2537, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 20]`. fn update_allowed_assets(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `4` // Estimated: `3527` - // Minimum execution time: 16_000_000 picoseconds. - Weight::from_parts(15_597_893, 3527) - // Standard Error: 5_165 - .saturating_add(Weight::from_parts(1_242_326, 0).saturating_mul(n.into())) + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(11_416_616, 3527) + // Standard Error: 4_565 + .saturating_add(Weight::from_parts(919_698, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `TreasuryBuyoutExtension::AllowedCurrencies` (r:1 w:0) + /// Proof: `TreasuryBuyoutExtension::AllowedCurrencies` (`max_values`: None, `max_size`: Some(62), added: 2537, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `DiaOracleModule::CoinInfosMap` (r:1 w:0) + /// Proof: `DiaOracleModule::CoinInfosMap` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TreasuryBuyoutExtension::BuyoutLimit` (r:1 w:0) + /// Proof: `TreasuryBuyoutExtension::BuyoutLimit` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `TreasuryBuyoutExtension::Buyouts` (r:1 w:1) + /// Proof: `TreasuryBuyoutExtension::Buyouts` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn buyout() -> Weight { + // Proof Size summary in bytes: + // Measured: `1294` + // Estimated: `7734` + // Minimum execution time: 87_000_000 picoseconds. + Weight::from_parts(92_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(10_u64)) + .saturating_add(RocksDbWeight::get().writes(5_u64)) + } + /// Storage: `TreasuryBuyoutExtension::BuyoutLimit` (r:0 w:1) + /// Proof: `TreasuryBuyoutExtension::BuyoutLimit` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + fn update_buyout_limit() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `TreasuryBuyoutExtension::AllowedCurrencies` (r:1 w:1) + /// Proof: `TreasuryBuyoutExtension::AllowedCurrencies` (`max_values`: None, `max_size`: Some(62), added: 2537, mode: `MaxEncodedLen`) + /// The range of component `n` is `[1, 20]`. + fn update_allowed_assets(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `4` + // Estimated: `3527` + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(11_416_616, 3527) + // Standard Error: 4_565 + .saturating_add(Weight::from_parts(919_698, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file diff --git a/runtime/pendulum/src/weights/vault_registry.rs b/runtime/pendulum/src/weights/vault_registry.rs index ccd9280f2..9ece55545 100644 --- a/runtime/pendulum/src/weights/vault_registry.rs +++ b/runtime/pendulum/src/weights/vault_registry.rs @@ -2,18 +2,17 @@ //! Autogenerated weights for vault_registry //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-04-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 +//! HOSTNAME: `Gianfrancos-MacBook-Pro.local`, CPU: `` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 // Executed Command: -// ./target/release/pendulum-node +// ./target/production/pendulum-node // benchmark // pallet // --chain // pendulum -// --execution=wasm // --wasm-execution=compiled // --pallet // vault-registry @@ -36,346 +35,719 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +/// Weight functions needed for vault_registry. +pub trait WeightInfo { + fn register_vault() -> Weight; + fn deposit_collateral() -> Weight; + fn withdraw_collateral() -> Weight; + fn register_public_key() -> Weight; + fn accept_new_issues() -> Weight; + fn set_custom_secure_threshold() -> Weight; + fn set_minimum_collateral() -> Weight; + fn set_system_collateral_ceiling() -> Weight; + fn set_secure_collateral_threshold() -> Weight; + fn set_premium_redeem_threshold() -> Weight; + fn set_liquidation_collateral_threshold() -> Weight; + fn report_undercollateralized_vault() -> Weight; + fn recover_vault_id() -> Weight; + fn set_punishment_delay() -> Weight; +} + /// Weights for vault_registry using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); -impl vault_registry::WeightInfo for SubstrateWeight { - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry LiquidationCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry MinimumCollateralVault (r:1 w:0) - /// Proof Skipped: VaultRegistry MinimumCollateralVault (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:0) - /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) +impl WeightInfo for SubstrateWeight { + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::MinimumCollateralVault` (r:1 w:0) + /// Proof: `VaultRegistry::MinimumCollateralVault` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:0) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:0) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) fn register_vault() -> Weight { // Proof Size summary in bytes: // Measured: `1079` // Estimated: `4544` - // Minimum execution time: 153_000_000 picoseconds. - Weight::from_parts(159_000_000, 4544) + // Minimum execution time: 113_000_000 picoseconds. + Weight::from_parts(115_000_000, 4544) .saturating_add(T::DbWeight::get().reads(24_u64)) .saturating_add(T::DbWeight::get().writes(12_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) fn deposit_collateral() -> Weight { // Proof Size summary in bytes: - // Measured: `2501` - // Estimated: `5966` - // Minimum execution time: 178_000_000 picoseconds. - Weight::from_parts(183_000_000, 5966) - .saturating_add(T::DbWeight::get().reads(21_u64)) + // Measured: `2605` + // Estimated: `7734` + // Minimum execution time: 139_000_000 picoseconds. + Weight::from_parts(142_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(23_u64)) .saturating_add(T::DbWeight::get().writes(12_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:0) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) fn withdraw_collateral() -> Weight { // Proof Size summary in bytes: - // Measured: `2475` - // Estimated: `5940` - // Minimum execution time: 187_000_000 picoseconds. - Weight::from_parts(197_000_000, 5940) - .saturating_add(T::DbWeight::get().reads(21_u64)) + // Measured: `2579` + // Estimated: `7734` + // Minimum execution time: 147_000_000 picoseconds. + Weight::from_parts(152_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(23_u64)) .saturating_add(T::DbWeight::get().writes(12_u64)) } - /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:1) - /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:1) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) fn register_public_key() -> Weight { // Proof Size summary in bytes: // Measured: `334` // Estimated: `3799` - // Minimum execution time: 16_000_000 picoseconds. - Weight::from_parts(17_000_000, 3799) + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(12_000_000, 3799) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:0) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) fn accept_new_issues() -> Weight { // Proof Size summary in bytes: // Measured: `1484` // Estimated: `4949` - // Minimum execution time: 59_000_000 picoseconds. - Weight::from_parts(61_000_000, 4949) + // Minimum execution time: 46_000_000 picoseconds. + Weight::from_parts(47_000_000, 4949) .saturating_add(T::DbWeight::get().reads(9_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_custom_secure_threshold() -> Weight { // Proof Size summary in bytes: // Measured: `711` // Estimated: `4176` - // Minimum execution time: 17_000_000 picoseconds. - Weight::from_parts(18_000_000, 4176) + // Minimum execution time: 13_000_000 picoseconds. + Weight::from_parts(13_000_000, 4176) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry MinimumCollateralVault (r:0 w:1) - /// Proof Skipped: VaultRegistry MinimumCollateralVault (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::MinimumCollateralVault` (r:0 w:1) + /// Proof: `VaultRegistry::MinimumCollateralVault` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_minimum_collateral() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_000_000 picoseconds. - Weight::from_parts(6_000_000, 0) + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry SystemCollateralCeiling (r:0 w:1) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:0 w:1) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_system_collateral_ceiling() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_000_000 picoseconds. - Weight::from_parts(7_000_000, 0) + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultStaking RewardCurrencies (r:1 w:1) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultRegistry SecureCollateralThreshold (r:0 w:1) - /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:1) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_secure_collateral_threshold() -> Weight { // Proof Size summary in bytes: // Measured: `80` // Estimated: `1565` - // Minimum execution time: 11_000_000 picoseconds. - Weight::from_parts(11_000_000, 1565) + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_000_000, 1565) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: VaultRegistry PremiumRedeemThreshold (r:0 w:1) - /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_premium_redeem_threshold() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_000_000 picoseconds. - Weight::from_parts(6_000_000, 0) + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry LiquidationCollateralThreshold (r:0 w:1) - /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_liquidation_collateral_threshold() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_000_000 picoseconds. - Weight::from_parts(6_000_000, 0) + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry LiquidationCollateralThreshold (r:1 w:0) - /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking Nonce (r:1 w:0) - /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) - /// Storage: Security ParachainStatus (r:1 w:0) - /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VaultStaking Stake (r:1 w:1) - /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashPerToken (r:1 w:0) - /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking SlashTally (r:1 w:1) - /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardCurrencies (r:1 w:0) - /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PooledVaultRewards Stake (r:1 w:1) - /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) - /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardTally (r:1 w:1) - /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) - /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: VaultStaking RewardPerToken (r:1 w:1) - /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking TotalStake (r:1 w:1) - /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultStaking RewardTally (r:1 w:1) - /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) - /// Storage: PooledVaultRewards TotalStake (r:1 w:1) - /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) - /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) - /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) - /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) - /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) - /// Storage: Tokens Accounts (r:2 w:2) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:1) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) - /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) - /// Storage: VaultRegistry LiquidationVault (r:1 w:1) - /// Proof Skipped: VaultRegistry LiquidationVault (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationVault` (r:1 w:1) + /// Proof: `VaultRegistry::LiquidationVault` (`max_values`: None, `max_size`: None, mode: `Measured`) fn report_undercollateralized_vault() -> Weight { // Proof Size summary in bytes: - // Measured: `2708` - // Estimated: `6240` - // Minimum execution time: 323_000_000 picoseconds. - Weight::from_parts(343_000_000, 6240) - .saturating_add(T::DbWeight::get().reads(25_u64)) + // Measured: `2812` + // Estimated: `7734` + // Minimum execution time: 249_000_000 picoseconds. + Weight::from_parts(257_000_000, 7734) + .saturating_add(T::DbWeight::get().reads(27_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } - /// Storage: VaultRegistry Vaults (r:1 w:1) - /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) fn recover_vault_id() -> Weight { // Proof Size summary in bytes: // Measured: `649` // Estimated: `4114` - // Minimum execution time: 15_000_000 picoseconds. - Weight::from_parts(16_000_000, 4114) + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(13_000_000, 4114) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: VaultRegistry PunishmentDelay (r:0 w:1) - /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `VaultRegistry::PunishmentDelay` (r:0 w:1) + /// Proof: `VaultRegistry::PunishmentDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_punishment_delay() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::MinimumCollateralVault` (r:1 w:0) + /// Proof: `VaultRegistry::MinimumCollateralVault` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:0) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:0) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + fn register_vault() -> Weight { + // Proof Size summary in bytes: + // Measured: `1079` + // Estimated: `4544` + // Minimum execution time: 113_000_000 picoseconds. + Weight::from_parts(115_000_000, 4544) + .saturating_add(RocksDbWeight::get().reads(24_u64)) + .saturating_add(RocksDbWeight::get().writes(12_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + fn deposit_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `2605` + // Estimated: `7734` + // Minimum execution time: 139_000_000 picoseconds. + Weight::from_parts(142_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(23_u64)) + .saturating_add(RocksDbWeight::get().writes(12_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:0) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:1 w:1) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + fn withdraw_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `2579` + // Estimated: `7734` + // Minimum execution time: 147_000_000 picoseconds. + Weight::from_parts(152_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(23_u64)) + .saturating_add(RocksDbWeight::get().writes(12_u64)) + } + /// Storage: `VaultRegistry::VaultStellarPublicKey` (r:1 w:1) + /// Proof: `VaultRegistry::VaultStellarPublicKey` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn register_public_key() -> Weight { + // Proof Size summary in bytes: + // Measured: `334` + // Estimated: `3799` + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(12_000_000, 3799) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:0) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:0) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn accept_new_issues() -> Weight { + // Proof Size summary in bytes: + // Measured: `1484` + // Estimated: `4949` + // Minimum execution time: 46_000_000 picoseconds. + Weight::from_parts(47_000_000, 4949) + .saturating_add(RocksDbWeight::get().reads(9_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) + } + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_custom_secure_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `711` + // Estimated: `4176` + // Minimum execution time: 13_000_000 picoseconds. + Weight::from_parts(13_000_000, 4176) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::MinimumCollateralVault` (r:0 w:1) + /// Proof: `VaultRegistry::MinimumCollateralVault` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_minimum_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:0 w:1) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_system_collateral_ceiling() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:1) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::SecureCollateralThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::SecureCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_secure_collateral_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `80` + // Estimated: `1565` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_000_000, 1565) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `VaultRegistry::PremiumRedeemThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::PremiumRedeemThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_premium_redeem_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:0 w:1) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_liquidation_collateral_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationCollateralThreshold` (r:1 w:0) + /// Proof: `VaultRegistry::LiquidationCollateralThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::Nonce` (r:1 w:0) + /// Proof: `VaultStaking::Nonce` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalCurrentStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalCurrentStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Security::ParachainStatus` (r:1 w:0) + /// Proof: `Security::ParachainStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AssetRegistry::Metadata` (r:2 w:0) + /// Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(897), added: 3372, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::Stake` (r:1 w:1) + /// Proof: `VaultStaking::Stake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashPerToken` (r:1 w:0) + /// Proof: `VaultStaking::SlashPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::SlashTally` (r:1 w:1) + /// Proof: `VaultStaking::SlashTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardCurrencies` (r:1 w:0) + /// Proof: `VaultStaking::RewardCurrencies` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::Stake` (r:1 w:1) + /// Proof: `PooledVaultRewards::Stake` (`max_values`: None, `max_size`: Some(202), added: 2677, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardPerToken` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardPerToken` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardTally` (r:1 w:1) + /// Proof: `PooledVaultRewards::RewardTally` (`max_values`: None, `max_size`: Some(264), added: 2739, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::TotalRewards` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalRewards` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `VaultStaking::RewardPerToken` (r:1 w:1) + /// Proof: `VaultStaking::RewardPerToken` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::TotalStake` (r:1 w:1) + /// Proof: `VaultStaking::TotalStake` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultStaking::RewardTally` (r:1 w:1) + /// Proof: `VaultStaking::RewardTally` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PooledVaultRewards::TotalStake` (r:1 w:1) + /// Proof: `PooledVaultRewards::TotalStake` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) + /// Storage: `PooledVaultRewards::RewardCurrencies` (r:1 w:0) + /// Proof: `PooledVaultRewards::RewardCurrencies` (`max_values`: None, `max_size`: Some(523), added: 2998, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::TotalUserVaultCollateral` (r:1 w:1) + /// Proof: `VaultRegistry::TotalUserVaultCollateral` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tokens::Accounts` (r:2 w:2) + /// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `VaultRegistry::SystemCollateralCeiling` (r:1 w:0) + /// Proof: `VaultRegistry::SystemCollateralCeiling` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `VaultRegistry::LiquidationVault` (r:1 w:1) + /// Proof: `VaultRegistry::LiquidationVault` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn report_undercollateralized_vault() -> Weight { + // Proof Size summary in bytes: + // Measured: `2812` + // Estimated: `7734` + // Minimum execution time: 249_000_000 picoseconds. + Weight::from_parts(257_000_000, 7734) + .saturating_add(RocksDbWeight::get().reads(27_u64)) + .saturating_add(RocksDbWeight::get().writes(16_u64)) + } + /// Storage: `VaultRegistry::Vaults` (r:1 w:1) + /// Proof: `VaultRegistry::Vaults` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn recover_vault_id() -> Weight { + // Proof Size summary in bytes: + // Measured: `649` + // Estimated: `4114` + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(13_000_000, 4114) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `VaultRegistry::PunishmentDelay` (r:0 w:1) + /// Proof: `VaultRegistry::PunishmentDelay` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_punishment_delay() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(4_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } } \ No newline at end of file