diff --git a/Cargo.lock b/Cargo.lock index 1449652b434d0..3d93e94b4b2c6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4249,6 +4249,7 @@ dependencies = [ "pallet-multisig 28.0.0", "pallet-proxy 28.0.0", "pallet-session 28.0.0", + "pallet-sudo 28.0.0", "pallet-timestamp 27.0.0", "pallet-transaction-payment 28.0.0", "pallet-transaction-payment-rpc-runtime-api 28.0.0", diff --git a/cumulus/parachains/runtimes/coretime/coretime-westend/Cargo.toml b/cumulus/parachains/runtimes/coretime/coretime-westend/Cargo.toml index b0a54b7d62046..f00009d712b0f 100644 --- a/cumulus/parachains/runtimes/coretime/coretime-westend/Cargo.toml +++ b/cumulus/parachains/runtimes/coretime/coretime-westend/Cargo.toml @@ -39,6 +39,7 @@ pallet-message-queue = { workspace = true } pallet-multisig = { workspace = true } pallet-proxy = { workspace = true } pallet-session = { workspace = true } +pallet-sudo = { workspace = true } pallet-timestamp = { workspace = true } pallet-transaction-payment = { workspace = true } pallet-transaction-payment-rpc-runtime-api = { workspace = true } @@ -118,6 +119,7 @@ std = [ "pallet-multisig/std", "pallet-proxy/std", "pallet-session/std", + "pallet-sudo/std", "pallet-timestamp/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-transaction-payment/std", @@ -170,6 +172,7 @@ runtime-benchmarks = [ "pallet-message-queue/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", "pallet-proxy/runtime-benchmarks", + "pallet-sudo/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "pallet-transaction-payment/runtime-benchmarks", "pallet-utility/runtime-benchmarks", @@ -204,6 +207,7 @@ try-runtime = [ "pallet-multisig/try-runtime", "pallet-proxy/try-runtime", "pallet-session/try-runtime", + "pallet-sudo/try-runtime", "pallet-timestamp/try-runtime", "pallet-transaction-payment/try-runtime", "pallet-utility/try-runtime", diff --git a/cumulus/parachains/runtimes/coretime/coretime-westend/src/lib.rs b/cumulus/parachains/runtimes/coretime/coretime-westend/src/lib.rs index 72e6ea893a39d..2794e7a902b19 100644 --- a/cumulus/parachains/runtimes/coretime/coretime-westend/src/lib.rs +++ b/cumulus/parachains/runtimes/coretime/coretime-westend/src/lib.rs @@ -603,6 +603,12 @@ impl pallet_utility::Config for Runtime { type WeightInfo = weights::pallet_utility::WeightInfo; } +impl pallet_sudo::Config for Runtime { + type RuntimeCall = RuntimeCall; + type RuntimeEvent = RuntimeEvent; + type WeightInfo = pallet_sudo::weights::SubstrateWeight; +} + pub struct BrokerMigrationV4BlockConversion; impl pallet_broker::migration::v4::BlockToRelayHeightConversion @@ -657,6 +663,9 @@ construct_runtime!( // The main stage. Broker: pallet_broker = 50, + + // Sudo + Sudo: pallet_sudo = 100, } ); diff --git a/prdoc/pr_6960.prdoc b/prdoc/pr_6960.prdoc new file mode 100644 index 0000000000000..3cef34ce00d70 --- /dev/null +++ b/prdoc/pr_6960.prdoc @@ -0,0 +1,9 @@ +title: Add sudo pallet to coretime-westend +doc: +- audience: Runtime Dev + description: Add the sudo pallet to coretime-westend, allowing use in development/testing. + Previously the coretime-rococo runtime was used in situations like this, but since + Rococo is now gone this can be used instead. +crates: +- name: coretime-westend-runtime + bump: major