From 90371a1412a4e6918e9306c12712c8783686782b Mon Sep 17 00:00:00 2001 From: Uncle Stretch Date: Sun, 6 Sep 2026 02:58:22 +0300 Subject: [PATCH] finalizing the runtime Signed-off-by: Uncle Stretch --- runtime/casper/src/genesis_config_presets.rs | 48 ++++----- runtime/casper/src/lib.rs | 10 +- runtime/casper/src/weights/ghost_exodus.rs | 100 +++++++++++------- .../casper/src/weights/ghost_governance.rs | 10 +- runtime/casper/src/weights/ghost_weaver.rs | 34 +++--- runtime/casper/src/weights/mod.rs | 10 +- 6 files changed, 117 insertions(+), 95 deletions(-) diff --git a/runtime/casper/src/genesis_config_presets.rs b/runtime/casper/src/genesis_config_presets.rs index 096a0a7..0cf65b9 100644 --- a/runtime/casper/src/genesis_config_presets.rs +++ b/runtime/casper/src/genesis_config_presets.rs @@ -180,18 +180,16 @@ fn get_authority_keys_from_seed( fn casper_staging_initial_authorities() -> Vec { vec![ - // sfFXZmnDVnkQ781J2gbqUpi7K5KgMWMdM4eeii74xxGgKYnNN + // sfErNwRgZ6ypB7wY8M2smXMZjxqUkc2TgUcNvC1JNQJFXS8bw AuthorityInitiationBuilder::default() - .with_stash(AccountId::new(hex!("507045c82be367f95408466cd054ca39bfa52697a3ef22809af14cf9de304f02"))) - .with_account(AccountId::new(hex!("507045c82be367f95408466cd054ca39bfa52697a3ef22809af14cf9de304f02"))) - .with_babe_id(BabeId::unchecked_from(hex!("daaaaab6a6e574099e24ae9bb75b543610edef9d374fa85a378edb573b47615f"))) - .with_grandpa_id(GrandpaId::unchecked_from(hex!("55446f9a7aa99ced06b317c80ce90d56b84e56526775683af2525969e8da0b64"))) - .with_authority_id(AuthorityDiscoveryId::unchecked_from(hex!("12c14850562021eb99f58f90ab624fb6cfaf3ac9228a92f8b60115fe6a6af15a"))) - .with_weaver_id(WeaverId::unchecked_from(hex!("0e9e698c7b2bf5ce3861cb4bc4ddf9e200237c282025b093ada850d764d12a35"))) - .with_exodus_id(ExodusId::unchecked_from(hex!("0e9e698c7b2bf5ce3861cb4bc4ddf9e200237c282025b093ada850d764d12a35"))) - .build(), - - // TODO: revisit + .with_stash(AccountId::new(hex!("507045c82be367f95408466cd054ca39bfa52697a3ef22809af14cf9de304f02"))) + .with_account(AccountId::new(hex!("328d3b7c3046ef7700937d99fb2e98ce2591682c2b5dcf3f562e4da157650237"))) + .with_babe_id(BabeId::unchecked_from(hex!("daaaaab6a6e574099e24ae9bb75b543610edef9d374fa85a378edb573b47615f"))) + .with_grandpa_id(GrandpaId::unchecked_from(hex!("55446f9a7aa99ced06b317c80ce90d56b84e56526775683af2525969e8da0b64"))) + .with_authority_id(AuthorityDiscoveryId::unchecked_from(hex!("12c14850562021eb99f58f90ab624fb6cfaf3ac9228a92f8b60115fe6a6af15a"))) + .with_weaver_id(WeaverId::unchecked_from(hex!("681cbbab1f95d0ee4183a8c60081380b59920e1a9189d872c8fc8b38dcdd020b"))) + .with_exodus_id(WeaverId::unchecked_from(hex!("7277c176a3eb110ea2e259d09994c1bce303ca028b8daccc5b10d8d8f1baea40"))) + .build(), ] } @@ -259,10 +257,10 @@ pub fn testnet_config_genesis( .collect::>(), }, "staking": { - // "minNominatorBond": 42 * CSPR, - // "minValidatorBond": 6900 * STRH, - // "maxNominatorsCount": 3000u32, - // "maxValidatorsCount": 500u32, + "minNominatorBond": 42 * CSPR, + "minValidatorBond": 6900 * STRH, + "maxNominatorsCount": 3000u32, + "maxValidatorsCount": 500u32, "minimumValidatorCount": if cfg!(feature = "runtime-benchmarks") { 1u32 @@ -270,9 +268,9 @@ pub fn testnet_config_genesis( 4u32 }, - // "validatorCount": 50u32, + "validatorCount": 37u32, "forceEra": Forcing::NotForcing, - // "slashRewardFraction": Perbill::from_percent(10), + "slashRewardFraction": Perbill::from_percent(80), "stakers": initial_authorities .iter() .map(|x| ( @@ -284,14 +282,14 @@ pub fn testnet_config_genesis( .collect::>(), }, "babe": { "epochConfig": Some(crate::BABE_GENESIS_EPOCH_CONFIG) }, - // "ghostNominationPools": { - // "minJoinBond": 10 * STNK, - // "minCreateBond": 20 * CSPR, - // "maxPools": 256u32, - // "maxMembersPerPool": 1024u32, - // "maxMembers": 20000u32, - // "globalMaxCommission": Perbill::from_percent(15), - // }, + "ghostNominationPools": { + "minJoinBond": 10 * STNK, + "minCreateBond": 50 * CSPR, + "maxPools": 256u32, + "maxMembersPerPool": 1024u32, + "maxMembers": 20000u32, + "globalMaxCommission": Perbill::from_percent(15), + }, "ghostSudo": { "key": sudo }, "ghostNetworks": { "networks": initial_networks }, "ghostGovernance": { "networkClaims": initial_claims }, diff --git a/runtime/casper/src/lib.rs b/runtime/casper/src/lib.rs index 00f81e4..2445af5 100644 --- a/runtime/casper/src/lib.rs +++ b/runtime/casper/src/lib.rs @@ -860,7 +860,7 @@ impl ghost_nomination_pools::Config for Runtime { type PalletId = PoolsPalletId; type MaxPointsToBalance = MaxPointsToBalance; type AdminOrigin = EnsureRoot; - type WeightInfo = (); // TODO: weights::ghost_nomination_pools::WeightInfo; + type WeightInfo = weights::ghost_nomination_pools::WeightInfo; } impl ghost_networks::Config for Runtime { @@ -873,7 +873,7 @@ impl ghost_networks::Config for Runtime { type UpdateOrigin = EnsureRoot; type RemoveOrigin = EnsureRoot; - type WeightInfo = (); + type WeightInfo = weights::ghost_networks::WeightInfo; } parameter_types! { @@ -889,7 +889,7 @@ impl ghost_governance::Config for Runtime { type MinimumDonation = ConstU128<{ 6_900 * STRH }>; type MaxProofDepth = ConstU32<20>; - type WeightInfo = (); + type WeightInfo = weights::ghost_governance::WeightInfo; } impl ghost_sudo::Config for Runtime { @@ -930,7 +930,7 @@ impl ghost_weaver::Config for Runtime { type AttestationDelay = AttestationDelay; type UnsignedPriority = WeaverUnsignedPriority; - type WeightInfo = (); + type WeightInfo = weights::ghost_weaver::WeightInfo; } impl ghost_exodus::Config for Runtime { @@ -952,7 +952,7 @@ impl ghost_exodus::Config for Runtime { type RemovalLimit = ExodusRemovalLimit; type MaxCursorLen = ExodusMaxCursorLen; - type WeightInfo = (); + type WeightInfo = weights::ghost_exodus::WeightInfo; } construct_runtime! { diff --git a/runtime/casper/src/weights/ghost_exodus.rs b/runtime/casper/src/weights/ghost_exodus.rs index 7e01a09..f6ec4a8 100644 --- a/runtime/casper/src/weights/ghost_exodus.rs +++ b/runtime/casper/src/weights/ghost_exodus.rs @@ -16,7 +16,7 @@ //! Autogenerated weights for `ghost_exodus` //! //! 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: `[]` +//! DATE: 2026-09-05, 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 @@ -60,8 +60,8 @@ impl ghost_exodus::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `351` // Estimated: `3816` - // Minimum execution time: 242_659_000 picoseconds. - Weight::from_parts(245_035_000, 0) + // Minimum execution time: 239_348_000 picoseconds. + Weight::from_parts(241_125_000, 0) .saturating_add(Weight::from_parts(0, 3816)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -83,11 +83,11 @@ impl ghost_exodus::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `391 + c * (32 ±0)` // Estimated: `3856 + c * (32 ±0)` - // Minimum execution time: 1_386_041_000 picoseconds. - Weight::from_parts(1_278_057_546, 0) + // Minimum execution time: 1_372_279_000 picoseconds. + Weight::from_parts(1_268_130_469, 0) .saturating_add(Weight::from_parts(0, 3856)) - // Standard Error: 21_926 - .saturating_add(Weight::from_parts(32_899_480, 0).saturating_mul(c.into())) + // Standard Error: 17_178 + .saturating_add(Weight::from_parts(32_976_202, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(c.into())) @@ -107,11 +107,11 @@ impl ghost_exodus::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `317 + c * (257 ±0)` // Estimated: `3783 + c * (257 ±0)` - // Minimum execution time: 258_583_000 picoseconds. - Weight::from_parts(261_056_370, 0) + // Minimum execution time: 253_301_000 picoseconds. + Weight::from_parts(255_449_282, 0) .saturating_add(Weight::from_parts(0, 3783)) - // Standard Error: 24_642 - .saturating_add(Weight::from_parts(6_610_853, 0).saturating_mul(c.into())) + // Standard Error: 25_029 + .saturating_add(Weight::from_parts(6_615_251, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 257).saturating_mul(c.into())) @@ -131,11 +131,11 @@ impl ghost_exodus::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `317 + c * (257 ±0)` // Estimated: `3783 + c * (257 ±0)` - // Minimum execution time: 243_338_000 picoseconds. - Weight::from_parts(247_264_694, 0) + // Minimum execution time: 238_882_000 picoseconds. + Weight::from_parts(242_930_556, 0) .saturating_add(Weight::from_parts(0, 3783)) - // Standard Error: 13_513 - .saturating_add(Weight::from_parts(429_554, 0).saturating_mul(c.into())) + // Standard Error: 13_070 + .saturating_add(Weight::from_parts(426_492, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 257).saturating_mul(c.into())) @@ -155,11 +155,11 @@ impl ghost_exodus::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `317 + c * (257 ±0)` // Estimated: `3783 + c * (257 ±0)` - // Minimum execution time: 254_121_000 picoseconds. - Weight::from_parts(255_457_326, 0) + // Minimum execution time: 250_894_000 picoseconds. + Weight::from_parts(252_272_982, 0) .saturating_add(Weight::from_parts(0, 3783)) - // Standard Error: 19_314 - .saturating_add(Weight::from_parts(4_177_481, 0).saturating_mul(c.into())) + // Standard Error: 17_703 + .saturating_add(Weight::from_parts(4_110_522, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 257).saturating_mul(c.into())) @@ -180,8 +180,8 @@ impl ghost_exodus::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `448` // Estimated: `3913` - // Minimum execution time: 269_749_000 picoseconds. - Weight::from_parts(272_870_000, 0) + // Minimum execution time: 265_392_000 picoseconds. + Weight::from_parts(268_799_000, 0) .saturating_add(Weight::from_parts(0, 3913)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(3)) @@ -205,11 +205,11 @@ impl ghost_exodus::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0 + c * (770 ±0)` // Estimated: `1551 + c * (1019 ±27)` - // Minimum execution time: 287_511_000 picoseconds. - Weight::from_parts(289_294_964, 0) + // Minimum execution time: 282_654_000 picoseconds. + Weight::from_parts(286_257_905, 0) .saturating_add(Weight::from_parts(0, 1551)) - // Standard Error: 87_193 - .saturating_add(Weight::from_parts(3_008_267, 0).saturating_mul(c.into())) + // Standard Error: 92_951 + .saturating_add(Weight::from_parts(2_838_516, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 1019).saturating_mul(c.into())) @@ -234,11 +234,11 @@ impl ghost_exodus::WeightInfo for WeightInfo { /// Proof: `GhostExodus::NonceCommitments` (`max_values`: None, `max_size`: None, mode: `Measured`) fn register_nonce_commitment() -> Weight { // Proof Size summary in bytes: - // Measured: `481` - // Estimated: `3946` - // Minimum execution time: 300_309_000 picoseconds. - Weight::from_parts(308_158_000, 0) - .saturating_add(Weight::from_parts(0, 3946)) + // Measured: `588` + // Estimated: `4053` + // Minimum execution time: 296_169_000 picoseconds. + Weight::from_parts(298_267_000, 0) + .saturating_add(Weight::from_parts(0, 4053)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(5)) } @@ -266,8 +266,8 @@ impl ghost_exodus::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `968` // Estimated: `4433` - // Minimum execution time: 339_169_000 picoseconds. - Weight::from_parts(342_236_000, 0) + // Minimum execution time: 332_972_000 picoseconds. + Weight::from_parts(336_569_000, 0) .saturating_add(Weight::from_parts(0, 4433)) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(4)) @@ -288,8 +288,8 @@ impl ghost_exodus::WeightInfo for WeightInfo { /// Proof: `GhostExodus::GroupCommitmentsConsensus` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `GhostExodus::ExodusRequests` (r:1 w:1) /// Proof: `GhostExodus::ExodusRequests` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `GhostExodus::ExodusSignedRotations` (r:1 w:1) - /// Proof: `GhostExodus::ExodusSignedRotations` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `GhostExodus::ExodusSignedGovernance` (r:1 w:1) + /// Proof: `GhostExodus::ExodusSignedGovernance` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `GhostExodus::RoastSessionStates` (r:1 w:1) /// Proof: `GhostExodus::RoastSessionStates` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `GhostExodus::NonceCommitments` (r:1 w:0) @@ -304,12 +304,34 @@ impl ghost_exodus::WeightInfo for WeightInfo { /// Proof: `GhostExodus::GroupCommitters` (`max_values`: None, `max_size`: None, mode: `Measured`) fn register_signature_share() -> Weight { // Proof Size summary in bytes: - // Measured: `11152` - // Estimated: `14617` - // Minimum execution time: 3_861_608_000 picoseconds. - Weight::from_parts(3_871_495_000, 0) - .saturating_add(Weight::from_parts(0, 14617)) + // Measured: `11259` + // Estimated: `14724` + // Minimum execution time: 3_842_259_000 picoseconds. + Weight::from_parts(3_853_670_000, 0) + .saturating_add(Weight::from_parts(0, 14724)) .saturating_add(T::DbWeight::get().reads(14)) .saturating_add(T::DbWeight::get().writes(8)) } + /// Storage: `GhostNetworks::Networks` (r:1 w:0) + /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `GhostNetworks::GatekeeperAmounts` (r:1 w:1) + /// Proof: `GhostNetworks::GatekeeperAmounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `GhostNetworks::NetworkImbalance` (r:1 w:1) + /// Proof: `GhostNetworks::NetworkImbalance` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `GhostExodus::QualificationDkgState` (r:1 w:0) + /// Proof: `GhostExodus::QualificationDkgState` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `GhostExodus::CurrentExodus` (r:1 w:1) + /// Proof: `GhostExodus::CurrentExodus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `GhostExodus::ExodusRequests` (r:0 w:1) + /// Proof: `GhostExodus::ExodusRequests` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn register_evm_bridge_out_exodus() -> Weight { + // Proof Size summary in bytes: + // Measured: `447` + // Estimated: `3912` + // Minimum execution time: 138_303_000 picoseconds. + Weight::from_parts(139_968_000, 0) + .saturating_add(Weight::from_parts(0, 3912)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } } diff --git a/runtime/casper/src/weights/ghost_governance.rs b/runtime/casper/src/weights/ghost_governance.rs index 489d133..47c377f 100644 --- a/runtime/casper/src/weights/ghost_governance.rs +++ b/runtime/casper/src/weights/ghost_governance.rs @@ -16,7 +16,7 @@ //! Autogenerated weights for `ghost_governance` //! //! 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: `[]` +//! DATE: 2026-09-05, 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 @@ -59,11 +59,11 @@ impl ghost_governance::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `283` // Estimated: `3748` - // Minimum execution time: 216_452_000 picoseconds. - Weight::from_parts(217_152_474, 0) + // Minimum execution time: 216_605_000 picoseconds. + Weight::from_parts(217_612_486, 0) .saturating_add(Weight::from_parts(0, 3748)) - // Standard Error: 17_182 - .saturating_add(Weight::from_parts(1_614_265, 0).saturating_mul(p.into())) + // Standard Error: 23_409 + .saturating_add(Weight::from_parts(1_544_250, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) } diff --git a/runtime/casper/src/weights/ghost_weaver.rs b/runtime/casper/src/weights/ghost_weaver.rs index 30edae2..4a62b26 100644 --- a/runtime/casper/src/weights/ghost_weaver.rs +++ b/runtime/casper/src/weights/ghost_weaver.rs @@ -16,7 +16,7 @@ //! Autogenerated weights for `ghost_weaver` //! //! 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: `[]` +//! DATE: 2026-09-05, 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 @@ -61,11 +61,11 @@ impl ghost_weaver::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `223 + a * (32 ±0)` // Estimated: `3687 + a * (32 ±0)` - // Minimum execution time: 215_336_000 picoseconds. - Weight::from_parts(218_119_120, 0) + // Minimum execution time: 209_842_000 picoseconds. + Weight::from_parts(214_884_530, 0) .saturating_add(Weight::from_parts(0, 3687)) - // Standard Error: 1_412 - .saturating_add(Weight::from_parts(47_848, 0).saturating_mul(a.into())) + // Standard Error: 1_520 + .saturating_add(Weight::from_parts(45_535, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(a.into())) @@ -87,11 +87,11 @@ impl ghost_weaver::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `518 + a * (32 ±0)` // Estimated: `3982 + a * (32 ±0)` - // Minimum execution time: 244_811_000 picoseconds. - Weight::from_parts(250_046_200, 0) + // Minimum execution time: 241_362_000 picoseconds. + Weight::from_parts(244_695_658, 0) .saturating_add(Weight::from_parts(0, 3982)) - // Standard Error: 1_958 - .saturating_add(Weight::from_parts(26_347, 0).saturating_mul(a.into())) + // Standard Error: 1_644 + .saturating_add(Weight::from_parts(30_947, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(a.into())) @@ -108,14 +108,16 @@ impl ghost_weaver::WeightInfo for WeightInfo { /// Proof: `GhostNetworks::NetworkImbalance` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:1 w:0) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// The range of component `a` is `[1, 300]`. - fn pull_utxo_thread(_a: u32, ) -> Weight { + /// The range of component `a` is `[1, 144]`. + fn pull_utxo_thread(a: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3823` - // Minimum execution time: 650_006_000 picoseconds. - Weight::from_parts(663_001_690, 0) + // Minimum execution time: 174_434_000 picoseconds. + Weight::from_parts(173_218_259, 0) .saturating_add(Weight::from_parts(0, 3823)) + // Standard Error: 4_108 + .saturating_add(Weight::from_parts(3_390_809, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -131,12 +133,12 @@ impl ghost_weaver::WeightInfo for WeightInfo { /// Proof: `GhostNetworks::NetworkImbalance` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:1 w:0) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - fn pull_evm_thread(_a: u32) -> Weight { + fn pull_evm_thread() -> Weight { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3823` - // Minimum execution time: 138_199_000 picoseconds. - Weight::from_parts(162_645_000, 0) + // Minimum execution time: 131_682_000 picoseconds. + Weight::from_parts(132_731_000, 0) .saturating_add(Weight::from_parts(0, 3823)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(3)) diff --git a/runtime/casper/src/weights/mod.rs b/runtime/casper/src/weights/mod.rs index b199b51..a0f95fd 100644 --- a/runtime/casper/src/weights/mod.rs +++ b/runtime/casper/src/weights/mod.rs @@ -14,9 +14,9 @@ pub mod pallet_staking; pub mod pallet_timestamp; pub mod pallet_treasury; pub mod pallet_utility; -// pub mod ghost_governance; -// pub mod ghost_networks; -// pub mod ghost_weaver; -// pub mod ghost_exodus; -// pub mod ghost_nomination_pools; +pub mod ghost_governance; +pub mod ghost_networks; +pub mod ghost_weaver; +pub mod ghost_exodus; +pub mod ghost_nomination_pools; pub mod ghost_sudo;