Skip to content

Commit

Permalink
Add sudo pallet to coretime-westend
Browse files Browse the repository at this point in the history
  • Loading branch information
seadanda committed Dec 18, 2024
1 parent fd0fb76 commit 783196d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pallet-broker = { 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 }
Expand Down Expand Up @@ -147,6 +148,7 @@ std = [
"xcm-executor/std",
"xcm-runtime-apis/std",
"xcm/std",
"pallet-sudo/std"
]

runtime-benchmarks = [
Expand Down Expand Up @@ -178,6 +180,7 @@ runtime-benchmarks = [
"xcm-executor/runtime-benchmarks",
"xcm-runtime-apis/runtime-benchmarks",
"xcm/runtime-benchmarks",
"pallet-sudo/runtime-benchmarks"
]

try-runtime = [
Expand Down Expand Up @@ -205,6 +208,7 @@ try-runtime = [
"parachain-info/try-runtime",
"polkadot-runtime-common/try-runtime",
"sp-runtime/try-runtime",
"pallet-sudo/try-runtime"
]

fast-runtime = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,12 @@ impl pallet_utility::Config for Runtime {
type WeightInfo = weights::pallet_utility::WeightInfo<Runtime>;
}

impl pallet_sudo::Config for Runtime {
type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent;
type WeightInfo = pallet_sudo::weights::SubstrateWeight<Runtime>;
}

pub struct BrokerMigrationV4BlockConversion;

impl pallet_broker::migration::v4::BlockToRelayHeightConversion<Runtime>
Expand Down Expand Up @@ -642,6 +648,9 @@ construct_runtime!(

// The main stage.
Broker: pallet_broker = 50,

// Sudo
Sudo: pallet_sudo = 100,
}
);

Expand Down

0 comments on commit 783196d

Please sign in to comment.