// This file is part of Ghost Network. // Ghost Network is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // Ghost Network is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with Ghost Network. If not, see . //! Autogenerated weights for `ghost_networks` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 //! DATE: 2026-09-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ghostown`, CPU: `Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("casper-dev")`, DB CACHE: 1024 // Executed Command: // ./target/release/ghost // benchmark // pallet // --chain=casper-dev // --steps=50 // --repeat=20 // --pallet=ghost_networks // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 // --header=./file_header.txt // --output=./runtime/casper/src/weights/ghost_networks.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] #![allow(missing_docs)] use frame_support::{traits::Get, weights::Weight}; use core::marker::PhantomData; /// Weight functions for `ghost_networks`. pub struct WeightInfo(PhantomData); impl ghost_networks::WeightInfo for WeightInfo { /// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `GhostNetworks::NetworkIndexes` (r:1 w:1) /// Proof: `GhostNetworks::NetworkIndexes` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `GhostNetworks::NetworkCurves` (r:1 w:1) /// Proof: `GhostNetworks::NetworkCurves` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `GhostNetworks::NetworkCurvesVec` (r:1 w:1) /// Proof: `GhostNetworks::NetworkCurvesVec` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// The range of component `i` is `[1, 65]`. /// The range of component `j` is `[1, 128]`. /// The range of component `k` is `[1, 10]`. fn register_network(i: u32, j: u32, k: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `6` // Estimated: `3471` // Minimum execution time: 57_039_000 picoseconds. Weight::from_parts(53_368_140, 0) .saturating_add(Weight::from_parts(0, 3471)) // Standard Error: 874 .saturating_add(Weight::from_parts(8_884, 0).saturating_mul(i.into())) // Standard Error: 442 .saturating_add(Weight::from_parts(32_778, 0).saturating_mul(j.into())) // Standard Error: 5_890 .saturating_add(Weight::from_parts(833_630, 0).saturating_mul(k.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) } /// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_selector() -> Weight { // Proof Size summary in bytes: // Measured: `167` // Estimated: `3632` // Minimum execution time: 42_680_000 picoseconds. Weight::from_parts(43_454_000, 0) .saturating_add(Weight::from_parts(0, 3632)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `n` is `[1, 128]`. fn update_network_endpoint(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `167` // Estimated: `3632` // Minimum execution time: 42_265_000 picoseconds. Weight::from_parts(43_357_887, 0) .saturating_add(Weight::from_parts(0, 3632)) // Standard Error: 457 .saturating_add(Weight::from_parts(13_745, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_finality_delay() -> Weight { // Proof Size summary in bytes: // Measured: `167` // Estimated: `3632` // Minimum execution time: 43_008_000 picoseconds. Weight::from_parts(43_917_000, 0) .saturating_add(Weight::from_parts(0, 3632)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_rate_limit_delay() -> Weight { // Proof Size summary in bytes: // Measured: `167` // Estimated: `3632` // Minimum execution time: 43_104_000 picoseconds. Weight::from_parts(43_981_000, 0) .saturating_add(Weight::from_parts(0, 3632)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_block_deviation() -> Weight { // Proof Size summary in bytes: // Measured: `167` // Estimated: `3632` // Minimum execution time: 41_734_000 picoseconds. Weight::from_parts(42_645_000, 0) .saturating_add(Weight::from_parts(0, 3632)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_type() -> Weight { // Proof Size summary in bytes: // Measured: `167` // Estimated: `3632` // Minimum execution time: 42_080_000 picoseconds. Weight::from_parts(42_404_000, 0) .saturating_add(Weight::from_parts(0, 3632)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `GhostNetworks::NetworkCurves` (r:2 w:2) /// Proof: `GhostNetworks::NetworkCurves` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `GhostNetworks::NetworkCurvesVec` (r:1 w:1) /// Proof: `GhostNetworks::NetworkCurvesVec` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn update_network_curve() -> Weight { // Proof Size summary in bytes: // Measured: `180` // Estimated: `6120` // Minimum execution time: 82_975_000 picoseconds. Weight::from_parts(84_583_000, 0) .saturating_add(Weight::from_parts(0, 6120)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) } /// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_decimals() -> Weight { // Proof Size summary in bytes: // Measured: `167` // Estimated: `3632` // Minimum execution time: 41_602_000 picoseconds. Weight::from_parts(42_603_000, 0) .saturating_add(Weight::from_parts(0, 3632)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_gatekeeper() -> Weight { // Proof Size summary in bytes: // Measured: `167` // Estimated: `3632` // Minimum execution time: 42_643_000 picoseconds. Weight::from_parts(43_190_000, 0) .saturating_add(Weight::from_parts(0, 3632)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_incoming_network_share() -> Weight { // Proof Size summary in bytes: // Measured: `167` // Estimated: `3632` // Minimum execution time: 42_978_000 picoseconds. Weight::from_parts(44_002_000, 0) .saturating_add(Weight::from_parts(0, 3632)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_outgoing_network_share() -> Weight { // Proof Size summary in bytes: // Measured: `167` // Estimated: `3632` // Minimum execution time: 43_436_000 picoseconds. Weight::from_parts(44_193_000, 0) .saturating_add(Weight::from_parts(0, 3632)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `GhostNetworks::NetworkCurves` (r:1 w:1) /// Proof: `GhostNetworks::NetworkCurves` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `GhostNetworks::NetworkIndexes` (r:1 w:1) /// Proof: `GhostNetworks::NetworkIndexes` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `GhostNetworks::NetworkCurvesVec` (r:1 w:1) /// Proof: `GhostNetworks::NetworkCurvesVec` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn remove_network() -> Weight { // Proof Size summary in bytes: // Measured: `180` // Estimated: `3645` // Minimum execution time: 75_969_000 picoseconds. Weight::from_parts(77_610_000, 0) .saturating_add(Weight::from_parts(0, 3645)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) } }