// 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-02, 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)] use frame_support::{ traits::Get, weights::{ Weight, constants::RocksDbWeight } }; use sp_std::marker::PhantomData; /// Weight functions needed for ghost_networks pub trait WeightInfo { fn register_network(i: u32, j: u32, k: u32, ) -> Weight; fn update_network_selector() -> Weight; fn update_network_endpoint(n: u32, ) -> Weight; fn update_network_finality_delay() -> Weight; fn update_network_rate_limit_delay() -> Weight; fn update_network_block_deviation() -> Weight; fn update_network_type() -> Weight; fn update_network_curve() -> Weight; fn update_network_gatekeeper() -> Weight; fn update_incoming_network_share() -> Weight; fn update_outgoing_network_share() -> Weight; fn remove_network() -> Weight; } impl WeightInfo for () { /// 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: 60_167_000 picoseconds. Weight::from_parts(56_015_384, 0) .saturating_add(Weight::from_parts(0, 3471)) // Standard Error: 1_219 .saturating_add(Weight::from_parts(6_146, 0).saturating_mul(i.into())) // Standard Error: 617 .saturating_add(Weight::from_parts(37_564, 0).saturating_mul(j.into())) // Standard Error: 8_216 .saturating_add(Weight::from_parts(864_641, 0).saturating_mul(k.into())) .saturating_add(RocksDbWeight::get().reads(4)) .saturating_add(RocksDbWeight::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: `166` // Estimated: `3631` // Minimum execution time: 43_957_000 picoseconds. Weight::from_parts(44_541_000, 0) .saturating_add(Weight::from_parts(0, 3631)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::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: `166` // Estimated: `3631` // Minimum execution time: 44_092_000 picoseconds. Weight::from_parts(45_181_439, 0) .saturating_add(Weight::from_parts(0, 3631)) // Standard Error: 402 .saturating_add(Weight::from_parts(16_387, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::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: `166` // Estimated: `3631` // Minimum execution time: 45_603_000 picoseconds. Weight::from_parts(46_116_000, 0) .saturating_add(Weight::from_parts(0, 3631)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::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: `166` // Estimated: `3631` // Minimum execution time: 45_607_000 picoseconds. Weight::from_parts(46_615_000, 0) .saturating_add(Weight::from_parts(0, 3631)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::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: `166` // Estimated: `3631` // Minimum execution time: 43_510_000 picoseconds. Weight::from_parts(43_840_000, 0) .saturating_add(Weight::from_parts(0, 3631)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::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: `166` // Estimated: `3631` // Minimum execution time: 43_737_000 picoseconds. Weight::from_parts(44_347_000, 0) .saturating_add(Weight::from_parts(0, 3631)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::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: `179` // Estimated: `6119` // Minimum execution time: 85_784_000 picoseconds. Weight::from_parts(86_768_000, 0) .saturating_add(Weight::from_parts(0, 6119)) .saturating_add(RocksDbWeight::get().reads(4)) .saturating_add(RocksDbWeight::get().writes(4)) } /// 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: `166` // Estimated: `3631` // Minimum execution time: 44_801_000 picoseconds. Weight::from_parts(45_240_000, 0) .saturating_add(Weight::from_parts(0, 3631)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::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: `166` // Estimated: `3631` // Minimum execution time: 45_404_000 picoseconds. Weight::from_parts(46_161_000, 0) .saturating_add(Weight::from_parts(0, 3631)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::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: `166` // Estimated: `3631` // Minimum execution time: 45_476_000 picoseconds. Weight::from_parts(46_312_000, 0) .saturating_add(Weight::from_parts(0, 3631)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::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: `179` // Estimated: `3644` // Minimum execution time: 78_480_000 picoseconds. Weight::from_parts(79_105_000, 0) .saturating_add(Weight::from_parts(0, 3644)) .saturating_add(RocksDbWeight::get().reads(4)) .saturating_add(RocksDbWeight::get().writes(4)) } }