ghost sudo added as a dependency to casper runtime

Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
Uncle Stinky
2025-07-28 13:13:59 +03:00
parent 4f23c39994
commit 384380ad55
5 changed files with 115 additions and 1 deletions

View File

@@ -1105,6 +1105,12 @@ impl ghost_slow_clap::Config for Runtime {
type WeightInfo = weights::ghost_slow_clap::WeightInfo<Runtime>;
}
impl ghost_sudo::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type WeightInfo = weights::ghost_sudo::WeightInfo<Runtime>;
}
construct_runtime! {
pub enum Runtime
{
@@ -1132,6 +1138,7 @@ construct_runtime! {
Session: pallet_session = 9,
Grandpa: pallet_grandpa = 11,
AuthorityDiscovery: pallet_authority_discovery = 12,
GhostSudo: ghost_sudo = 13,
// Governance stuff.
Treasury: pallet_treasury = 19,
@@ -1260,6 +1267,7 @@ mod benches {
[ghost_networks, GhostNetworks]
[ghost_claims, GhostClaims]
[ghost_slow_clap, GhostSlowClaps]
[ghost_sudo, GhostSudo]
);
}
@@ -1566,6 +1574,7 @@ sp_api::impl_runtime_apis! {
(list, storage_info)
}
#[allow(non_local_definitions)]
fn dispatch_benchmark(
config: frame_benchmarking::BenchmarkConfig,
) -> Result<