apply benchmarked weights

Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
Uncle Stinky 2026-09-05 23:45:44 +03:00
parent 8ee32ff609
commit 5243bd7c3d
Signed by: st1nky
GPG Key ID: 016064BD97603B40
8 changed files with 585 additions and 520 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "ghost-governance" name = "ghost-governance"
version = "0.3.3" version = "0.3.4"
description = "Full-chain and cross-chain governance pallet with early adopter share claims" description = "Full-chain and cross-chain governance pallet with early adopter share claims"
license.workspace = true license.workspace = true
authors.workspace = true authors.workspace = true

View File

@ -7,16 +7,16 @@
// Ghost Network is distributed in the hope that it will be useful, // Ghost Network is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Ghost Network. If not, see <http://www.gnu.org/licenses/>. // along with Ghost Network. If not, see <http://www.gnu.org/licenses/>.
//! Autogenerated weights for `ghost_claims` //! Autogenerated weights for `ghost_governance`
//! //!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-08-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! DATE: 2026-09-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000` //! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ghostown`, CPU: `Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz` //! HOSTNAME: `ghostown`, CPU: `Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("casper-dev")`, DB CACHE: 1024 //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("casper-dev")`, DB CACHE: 1024
@ -28,12 +28,12 @@
// --chain=casper-dev // --chain=casper-dev
// --steps=50 // --steps=50
// --repeat=20 // --repeat=20
// --pallet=ghost_claims // --pallet=ghost_governance
// --extrinsic=* // --extrinsic=*
// --wasm-execution=compiled // --wasm-execution=compiled
// --heap-pages=4096 // --heap-pages=4096
// --header=./file_header.txt // --header=./file_header.txt
// --output=./runtime/casper/src/weights/ghost_claims.rs // --output=./runtime/casper/src/weights/ghost_governance.rs
#![cfg_attr(rustfmt, rustfmt_skip)] #![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)] #![allow(unused_parens)]
@ -52,26 +52,25 @@ pub trait WeightInfo {
} }
impl WeightInfo for () { impl WeightInfo for () {
/// Storage: `System::Account` (r:2 w:2) /// Storage: `GhostGovernance::MemberShares` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Proof: `GhostGovernance::MemberShares` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `GhostClaims::Total` (r:1 w:1) /// Storage: `GhostGovernance::ClaimedHashes` (r:1 w:1)
/// Proof: `GhostClaims::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Proof: `GhostGovernance::ClaimedHashes` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `CultCollective::Members` (r:2 w:2) /// Storage: `GhostGovernance::NetworkShares` (r:1 w:1)
/// Proof: `CultCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) /// Proof: `GhostGovernance::NetworkShares` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `CultCollective::MemberCount` (r:6 w:6) /// Storage: `GhostGovernance::GlobalShares` (r:1 w:1)
/// Proof: `CultCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) /// Proof: `GhostGovernance::GlobalShares` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `CultCollective::IdToIndex` (r:6 w:12) /// The range of component `p` is `[1, 20]`.
/// Proof: `CultCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) fn claim(p: u32, ) -> Weight {
/// Storage: `CultCollective::IndexToId` (r:0 w:6)
/// Proof: `CultCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
fn claim(_p: u32) -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `896` // Measured: `283`
// Estimated: `16164` // Estimated: `3748`
// Minimum execution time: 754_086_000 picoseconds. // Minimum execution time: 216_452_000 picoseconds.
Weight::from_parts(756_147_000, 0) Weight::from_parts(217_152_474, 0)
.saturating_add(Weight::from_parts(0, 16164)) .saturating_add(Weight::from_parts(0, 3748))
.saturating_add(RocksDbWeight::get().reads(17)) // Standard Error: 17_182
.saturating_add(RocksDbWeight::get().writes(29)) .saturating_add(Weight::from_parts(1_614_265, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(4))
.saturating_add(RocksDbWeight::get().writes(4))
} }
} }

View File

@ -1,6 +1,6 @@
[package] [package]
name = "ghost-networks" name = "ghost-networks"
version = "0.2.8" version = "0.2.9"
description = "Registry and lifecycle management for external network metadata and cryptographic profiles." description = "Registry and lifecycle management for external network metadata and cryptographic profiles."
license.workspace = true license.workspace = true
authors.workspace = true authors.workspace = true

View File

@ -16,7 +16,7 @@
//! Autogenerated weights for `ghost_networks` //! Autogenerated weights for `ghost_networks`
//! //!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2026-02-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! DATE: 2026-09-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000` //! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ghostown`, CPU: `Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz` //! HOSTNAME: `ghostown`, CPU: `Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("casper-dev")`, DB CACHE: 1024 //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("casper-dev")`, DB CACHE: 1024
@ -30,6 +30,7 @@
// --repeat=20 // --repeat=20
// --pallet=ghost_networks // --pallet=ghost_networks
// --extrinsic=* // --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096 // --heap-pages=4096
// --header=./file_header.txt // --header=./file_header.txt
// --output=./runtime/casper/src/weights/ghost_networks.rs // --output=./runtime/casper/src/weights/ghost_networks.rs
@ -57,60 +58,63 @@ pub trait WeightInfo {
fn update_network_type() -> Weight; fn update_network_type() -> Weight;
fn update_network_curve() -> Weight; fn update_network_curve() -> Weight;
fn update_network_gatekeeper() -> Weight; fn update_network_gatekeeper() -> Weight;
fn update_network_topic_name() -> Weight;
fn update_incoming_network_share() -> Weight; fn update_incoming_network_share() -> Weight;
fn update_outgoing_network_share() -> Weight; fn update_outgoing_network_share() -> Weight;
fn update_avg_block_speed() -> Weight;
fn remove_network() -> Weight; fn remove_network() -> Weight;
} }
impl WeightInfo for () { impl WeightInfo for () {
/// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Storage: `GhostNetworks::Networks` (r:1 w:1)
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `GhostNetworks::NetworkIndexes` (r:1 w:1) /// Storage: `GhostNetworks::NetworkIndexes` (r:1 w:1)
/// Proof: `GhostNetworks::NetworkIndexes` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::NetworkIndexes` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `i` is `[1, 20]`. /// Storage: `GhostNetworks::NetworkCurves` (r:1 w:1)
/// The range of component `j` is `[1, 150]`. /// Proof: `GhostNetworks::NetworkCurves` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `k` is `[1, 20]`. /// Storage: `GhostNetworks::NetworkCurvesVec` (r:1 w:1)
fn register_network(_i: u32, j: u32, k: u32, ) -> Weight { /// 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: // Proof Size summary in bytes:
// Measured: `109` // Measured: `6`
// Estimated: `3574` // Estimated: `3471`
// Minimum execution time: 48_419_000 picoseconds. // Minimum execution time: 60_167_000 picoseconds.
Weight::from_parts(35_655_823, 0) Weight::from_parts(56_015_384, 0)
.saturating_add(Weight::from_parts(0, 3574)) .saturating_add(Weight::from_parts(0, 3471))
// Standard Error: 1_212 // Standard Error: 1_219
.saturating_add(Weight::from_parts(96_762, 0).saturating_mul(j.into())) .saturating_add(Weight::from_parts(6_146, 0).saturating_mul(i.into()))
// Standard Error: 9_235 // Standard Error: 617
.saturating_add(Weight::from_parts(1_460_410, 0).saturating_mul(k.into())) .saturating_add(Weight::from_parts(37_564, 0).saturating_mul(j.into()))
.saturating_add(RocksDbWeight::get().reads(2)) // Standard Error: 8_216
.saturating_add(RocksDbWeight::get().writes(2)) .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) /// Storage: `GhostNetworks::Networks` (r:1 w:1)
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `n` is `[1, 20]`.
fn update_network_selector() -> Weight { fn update_network_selector() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `339` // Measured: `166`
// Estimated: `3804` // Estimated: `3631`
// Minimum execution time: 48_422_000 picoseconds. // Minimum execution time: 43_957_000 picoseconds.
Weight::from_parts(49_987_541, 0) Weight::from_parts(44_541_000, 0)
.saturating_add(Weight::from_parts(0, 3804)) .saturating_add(Weight::from_parts(0, 3631))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
/// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Storage: `GhostNetworks::Networks` (r:1 w:1)
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `n` is `[1, 150]`. /// The range of component `n` is `[1, 128]`.
fn update_network_endpoint(n: u32, ) -> Weight { fn update_network_endpoint(n: u32, ) -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `339` // Measured: `166`
// Estimated: `3804` // Estimated: `3631`
// Minimum execution time: 48_651_000 picoseconds. // Minimum execution time: 44_092_000 picoseconds.
Weight::from_parts(50_776_912, 0) Weight::from_parts(45_181_439, 0)
.saturating_add(Weight::from_parts(0, 3804)) .saturating_add(Weight::from_parts(0, 3631))
// Standard Error: 1_062 // Standard Error: 402
.saturating_add(Weight::from_parts(838, 0).saturating_mul(n.into())) .saturating_add(Weight::from_parts(16_387, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -118,11 +122,11 @@ impl WeightInfo for () {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_finality_delay() -> Weight { fn update_network_finality_delay() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `339` // Measured: `166`
// Estimated: `3804` // Estimated: `3631`
// Minimum execution time: 48_080_000 picoseconds. // Minimum execution time: 45_603_000 picoseconds.
Weight::from_parts(51_781_000, 0) Weight::from_parts(46_116_000, 0)
.saturating_add(Weight::from_parts(0, 3804)) .saturating_add(Weight::from_parts(0, 3631))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -130,11 +134,11 @@ impl WeightInfo for () {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_rate_limit_delay() -> Weight { fn update_network_rate_limit_delay() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `339` // Measured: `166`
// Estimated: `3804` // Estimated: `3631`
// Minimum execution time: 47_950_000 picoseconds. // Minimum execution time: 45_607_000 picoseconds.
Weight::from_parts(48_925_000, 0) Weight::from_parts(46_615_000, 0)
.saturating_add(Weight::from_parts(0, 3804)) .saturating_add(Weight::from_parts(0, 3631))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -142,11 +146,11 @@ impl WeightInfo for () {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_block_deviation() -> Weight { fn update_network_block_deviation() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `339` // Measured: `166`
// Estimated: `3804` // Estimated: `3631`
// Minimum execution time: 48_324_000 picoseconds. // Minimum execution time: 43_510_000 picoseconds.
Weight::from_parts(50_801_000, 0) Weight::from_parts(43_840_000, 0)
.saturating_add(Weight::from_parts(0, 3804)) .saturating_add(Weight::from_parts(0, 3631))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -154,38 +158,39 @@ impl WeightInfo for () {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_type() -> Weight { fn update_network_type() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `339` // Measured: `166`
// Estimated: `3804` // Estimated: `3631`
// Minimum execution time: 46_962_000 picoseconds. // Minimum execution time: 43_737_000 picoseconds.
Weight::from_parts(47_729_000, 0) Weight::from_parts(44_347_000, 0)
.saturating_add(Weight::from_parts(0, 3804)) .saturating_add(Weight::from_parts(0, 3631))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
fn update_network_curve() -> Weight { /// Storage: `GhostNetworks::Networks` (r:1 w:1)
Default::default() /// 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) /// Storage: `GhostNetworks::Networks` (r:1 w:1)
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_gatekeeper() -> Weight { fn update_network_gatekeeper() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `339` // Measured: `166`
// Estimated: `3804` // Estimated: `3631`
// Minimum execution time: 48_728_000 picoseconds. // Minimum execution time: 44_801_000 picoseconds.
Weight::from_parts(53_054_000, 0) Weight::from_parts(45_240_000, 0)
.saturating_add(Weight::from_parts(0, 3804)) .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_topic_name() -> Weight {
// Proof Size summary in bytes:
// Measured: `339`
// Estimated: `3804`
// Minimum execution time: 48_632_000 picoseconds.
Weight::from_parts(49_954_000, 0)
.saturating_add(Weight::from_parts(0, 3804))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -193,11 +198,11 @@ impl WeightInfo for () {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_incoming_network_share() -> Weight { fn update_incoming_network_share() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `339` // Measured: `166`
// Estimated: `3804` // Estimated: `3631`
// Minimum execution time: 47_660_000 picoseconds. // Minimum execution time: 45_404_000 picoseconds.
Weight::from_parts(53_763_000, 0) Weight::from_parts(46_161_000, 0)
.saturating_add(Weight::from_parts(0, 3804)) .saturating_add(Weight::from_parts(0, 3631))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -205,38 +210,30 @@ impl WeightInfo for () {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_outgoing_network_share() -> Weight { fn update_outgoing_network_share() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `339` // Measured: `166`
// Estimated: `3804` // Estimated: `3631`
// Minimum execution time: 48_164_000 picoseconds. // Minimum execution time: 45_476_000 picoseconds.
Weight::from_parts(48_953_000, 0) Weight::from_parts(46_312_000, 0)
.saturating_add(Weight::from_parts(0, 3804)) .saturating_add(Weight::from_parts(0, 3631))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
/// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Storage: `GhostNetworks::Networks` (r:1 w:1)
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_avg_block_speed() -> Weight { /// Storage: `GhostNetworks::NetworkCurves` (r:1 w:1)
// Proof Size summary in bytes: /// Proof: `GhostNetworks::NetworkCurves` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Measured: `339`
// Estimated: `3804`
// Minimum execution time: 47_789_000 picoseconds.
Weight::from_parts(52_131_000, 0)
.saturating_add(Weight::from_parts(0, 3804))
.saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1))
}
/// Storage: `GhostNetworks::NetworkIndexes` (r:1 w:1) /// Storage: `GhostNetworks::NetworkIndexes` (r:1 w:1)
/// Proof: `GhostNetworks::NetworkIndexes` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::NetworkIndexes` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Storage: `GhostNetworks::NetworkCurvesVec` (r:1 w:1)
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::NetworkCurvesVec` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn remove_network() -> Weight { fn remove_network() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `339` // Measured: `179`
// Estimated: `3804` // Estimated: `3644`
// Minimum execution time: 49_720_000 picoseconds. // Minimum execution time: 78_480_000 picoseconds.
Weight::from_parts(50_526_000, 0) Weight::from_parts(79_105_000, 0)
.saturating_add(Weight::from_parts(0, 3804)) .saturating_add(Weight::from_parts(0, 3644))
.saturating_add(RocksDbWeight::get().reads(2)) .saturating_add(RocksDbWeight::get().reads(4))
.saturating_add(RocksDbWeight::get().writes(2)) .saturating_add(RocksDbWeight::get().writes(4))
} }
} }

View File

@ -1,6 +1,6 @@
[package] [package]
name = "ghost-nomination-pools" name = "ghost-nomination-pools"
version = "25.0.0" version = "25.0.1"
authors.workspace = true authors.workspace = true
edition.workspace = true edition.workspace = true
license = "Apache-2.0" license = "Apache-2.0"

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
[package] [package]
name = "ghost-sudo" name = "ghost-sudo"
version = "0.0.2" version = "0.0.3"
description = "Port of the sudo pallet because of dependencies issue" description = "Port of the sudo pallet because of dependencies issue"
license.workspace = true license.workspace = true
authors.workspace = true authors.workspace = true

View File

@ -16,7 +16,7 @@
//! Autogenerated weights for `ghost_sudo` //! Autogenerated weights for `ghost_sudo`
//! //!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2025-07-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! DATE: 2026-09-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000` //! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ghostown`, CPU: `Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz` //! HOSTNAME: `ghostown`, CPU: `Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("casper-dev")`, DB CACHE: 1024 //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("casper-dev")`, DB CACHE: 1024
@ -28,7 +28,7 @@
// --chain=casper-dev // --chain=casper-dev
// --steps=50 // --steps=50
// --repeat=20 // --repeat=20
// --pallet=ghost-sudo // --pallet=ghost_sudo
// --extrinsic=* // --extrinsic=*
// --wasm-execution=compiled // --wasm-execution=compiled
// --heap-pages=4096 // --heap-pages=4096
@ -57,14 +57,14 @@ pub trait WeightInfo {
/// Weight functions for `ghost_sudo`. /// Weight functions for `ghost_sudo`.
pub struct SubstrateWeight<T>(PhantomData<T>); pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> { impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `GhostSudo::Key` (r:1 w:1) /// Storage: `GhostSudo::Key` (r:1 w:1)
/// Proof: `GhostSudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) /// Proof: `GhostSudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
fn set_key() -> Weight { fn set_key() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `165` // Measured: `98`
// Estimated: `1517` // Estimated: `1517`
// Minimum execution time: 40_014_000 picoseconds. // Minimum execution time: 38_841_000 picoseconds.
Weight::from_parts(40_856_000, 0) Weight::from_parts(39_982_000, 0)
.saturating_add(Weight::from_parts(0, 1517)) .saturating_add(Weight::from_parts(0, 1517))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
@ -73,10 +73,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `GhostSudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) /// Proof: `GhostSudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
fn sudo() -> Weight { fn sudo() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `165` // Measured: `98`
// Estimated: `1517` // Estimated: `1517`
// Minimum execution time: 44_086_000 picoseconds. // Minimum execution time: 42_412_000 picoseconds.
Weight::from_parts(45_920_000, 0) Weight::from_parts(43_446_000, 0)
.saturating_add(Weight::from_parts(0, 1517)) .saturating_add(Weight::from_parts(0, 1517))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
} }
@ -84,10 +84,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `GhostSudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) /// Proof: `GhostSudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
fn sudo_as() -> Weight { fn sudo_as() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `165` // Measured: `98`
// Estimated: `1517` // Estimated: `1517`
// Minimum execution time: 44_106_000 picoseconds. // Minimum execution time: 43_006_000 picoseconds.
Weight::from_parts(44_650_000, 0) Weight::from_parts(43_886_000, 0)
.saturating_add(Weight::from_parts(0, 1517)) .saturating_add(Weight::from_parts(0, 1517))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
} }
@ -95,10 +95,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `GhostSudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) /// Proof: `GhostSudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
fn remove_key() -> Weight { fn remove_key() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `165` // Measured: `98`
// Estimated: `1517` // Estimated: `1517`
// Minimum execution time: 36_416_000 picoseconds. // Minimum execution time: 35_731_000 picoseconds.
Weight::from_parts(37_373_000, 0) Weight::from_parts(36_443_000, 0)
.saturating_add(Weight::from_parts(0, 1517)) .saturating_add(Weight::from_parts(0, 1517))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
@ -107,14 +107,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// For backwards compatibility and tests. // For backwards compatibility and tests.
impl WeightInfo for () { impl WeightInfo for () {
/// Storage: `GhostSudo::Key` (r:1 w:1) /// Storage: `GhostSudo::Key` (r:1 w:1)
/// Proof: `GhostSudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) /// Proof: `GhostSudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
fn set_key() -> Weight { fn set_key() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `165` // Measured: `98`
// Estimated: `1517` // Estimated: `1517`
// Minimum execution time: 40_014_000 picoseconds. // Minimum execution time: 38_841_000 picoseconds.
Weight::from_parts(40_856_000, 0) Weight::from_parts(39_982_000, 0)
.saturating_add(Weight::from_parts(0, 1517)) .saturating_add(Weight::from_parts(0, 1517))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
@ -123,10 +123,10 @@ impl WeightInfo for () {
/// Proof: `GhostSudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) /// Proof: `GhostSudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
fn sudo() -> Weight { fn sudo() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `165` // Measured: `98`
// Estimated: `1517` // Estimated: `1517`
// Minimum execution time: 44_086_000 picoseconds. // Minimum execution time: 42_412_000 picoseconds.
Weight::from_parts(45_920_000, 0) Weight::from_parts(43_446_000, 0)
.saturating_add(Weight::from_parts(0, 1517)) .saturating_add(Weight::from_parts(0, 1517))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
} }
@ -134,10 +134,10 @@ impl WeightInfo for () {
/// Proof: `GhostSudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) /// Proof: `GhostSudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
fn sudo_as() -> Weight { fn sudo_as() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `165` // Measured: `98`
// Estimated: `1517` // Estimated: `1517`
// Minimum execution time: 44_106_000 picoseconds. // Minimum execution time: 43_006_000 picoseconds.
Weight::from_parts(44_650_000, 0) Weight::from_parts(43_886_000, 0)
.saturating_add(Weight::from_parts(0, 1517)) .saturating_add(Weight::from_parts(0, 1517))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
} }
@ -145,10 +145,10 @@ impl WeightInfo for () {
/// Proof: `GhostSudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) /// Proof: `GhostSudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
fn remove_key() -> Weight { fn remove_key() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `165` // Measured: `98`
// Estimated: `1517` // Estimated: `1517`
// Minimum execution time: 36_416_000 picoseconds. // Minimum execution time: 35_731_000 picoseconds.
Weight::from_parts(37_373_000, 0) Weight::from_parts(36_443_000, 0)
.saturating_add(Weight::from_parts(0, 1517)) .saturating_add(Weight::from_parts(0, 1517))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))