Skip to content

Commit

Permalink
rococo compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
asiniscalchi committed Mar 28, 2024
1 parent 5dbfbf6 commit d609fc6
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 30 deletions.
29 changes: 15 additions & 14 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ members = [
"polkadot/runtime/common",
"polkadot/runtime/common/slot_range_helper",
"polkadot/runtime/metrics",
"polkadot/runtime/pallets/para-sudo-wrapper",
"polkadot/runtime/pallets/paras-sudo-wrapper",
"polkadot/runtime/parachains",
"polkadot/runtime/rococo",
"polkadot/runtime/rococo/constants",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "pallet-para-sudo-wrapper"
name = "pallet-paras-sudo-wrapper"
version = "7.0.0"
authors.workspace = true
edition.workspace = true
Expand Down
8 changes: 4 additions & 4 deletions polkadot/runtime/rococo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pallet-mmr = { path = "../../../substrate/frame/merkle-mountain-range", default-
pallet-multisig = { path = "../../../substrate/frame/multisig", default-features = false }
pallet-nis = { path = "../../../substrate/frame/nis", default-features = false }
pallet-offences = { path = "../../../substrate/frame/offences", default-features = false }
pallet-para-sudo-wrapper = { path = "../pallets/para-sudo-wrapper", default-features = false }
pallet-paras-sudo-wrapper = { path = "../pallets/paras-sudo-wrapper", default-features = false }
pallet-preimage = { path = "../../../substrate/frame/preimage", default-features = false }
pallet-proxy = { path = "../../../substrate/frame/proxy", default-features = false }
pallet-ranked-collective = { path = "../../../substrate/frame/ranked-collective", default-features = false }
Expand Down Expand Up @@ -162,7 +162,7 @@ std = [
"pallet-multisig/std",
"pallet-nis/std",
"pallet-offences/std",
"pallet-para-sudo-wrapper/std",
"pallet-paras-sudo-wrapper/std",
"pallet-preimage/std",
"pallet-proxy/std",
"pallet-ranked-collective/std",
Expand Down Expand Up @@ -238,7 +238,7 @@ runtime-benchmarks = [
"pallet-multisig/runtime-benchmarks",
"pallet-nis/runtime-benchmarks",
"pallet-offences/runtime-benchmarks",
"pallet-para-sudo-wrapper/runtime-benchmarks",
"pallet-paras-sudo-wrapper/runtime-benchmarks",
"pallet-preimage/runtime-benchmarks",
"pallet-proxy/runtime-benchmarks",
"pallet-ranked-collective/runtime-benchmarks",
Expand Down Expand Up @@ -295,7 +295,7 @@ try-runtime = [
"pallet-multisig/try-runtime",
"pallet-nis/try-runtime",
"pallet-offences/try-runtime",
"pallet-para-sudo-wrapper/try-runtime",
"pallet-paras-sudo-wrapper/try-runtime",
"pallet-preimage/try-runtime",
"pallet-proxy/try-runtime",
"pallet-ranked-collective/try-runtime",
Expand Down
6 changes: 3 additions & 3 deletions polkadot/runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use runtime_common::{
impls::{
LocatableAssetConverter, ToAuthor, VersionedLocatableAsset, VersionedLocationConverter,
},
paras_registrar, paras_sudo_wrapper, prod_or_fast, slots,
paras_registrar, prod_or_fast, slots,
traits::{Leaser, OnSwap},
BlockHashCount, BlockLength, SlowAdjustingFeeUpdate,
};
Expand Down Expand Up @@ -1266,7 +1266,7 @@ impl pallet_beefy_mmr::Config for Runtime {
type BeefyDataProvider = ParaHeadsRootProvider;
}

impl paras_sudo_wrapper::Config for Runtime {}
impl pallet_paras_sudo_wrapper::Config for Runtime {}

parameter_types! {
pub const PermanentSlotLeasePeriodLength: u32 = 365;
Expand Down Expand Up @@ -1433,7 +1433,7 @@ construct_runtime! {
// Pallet for migrating Identity to a parachain. To be removed post-migration.
IdentityMigrator: identity_migrator = 248,

ParasSudoWrapper: paras_sudo_wrapper = 250,
ParasSudoWrapper: pallet_paras_sudo_wrapper = 250,
AssignedSlots: assigned_slots = 251,

// Validator Manager pallet.
Expand Down
8 changes: 4 additions & 4 deletions polkadot/runtime/test-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ use primitives::{
ValidatorIndex, PARACHAIN_KEY_TYPE_ID,
};
use runtime_common::{
claims, impl_runtime_weights, paras_sudo_wrapper, BlockHashCount, BlockLength,
claims, impl_runtime_weights, pallet_paras_sudo_wrapper, BlockHashCount, BlockLength,
SlowAdjustingFeeUpdate,
};
use sp_core::{ConstU32, OpaqueMetadata};
Expand All @@ -88,7 +88,7 @@ pub use pallet_staking::StakerStatus;
pub use pallet_sudo::Call as SudoCall;
pub use pallet_timestamp::Call as TimestampCall;
pub use parachains_paras::Call as ParasCall;
pub use paras_sudo_wrapper::Call as ParasSudoWrapperCall;
pub use pallet_paras_sudo_wrapper::Call as ParasSudoWrapperCall;
#[cfg(any(feature = "std", test))]
pub use sp_runtime::BuildStorage;

Expand Down Expand Up @@ -571,7 +571,7 @@ impl parachains_scheduler::Config for Runtime {
type AssignmentProvider = ParaAssignmentProvider;
}

impl paras_sudo_wrapper::Config for Runtime {}
impl pallet_paras_sudo_wrapper::Config for Runtime {}

impl parachains_origin::Config for Runtime {}

Expand Down Expand Up @@ -703,7 +703,7 @@ construct_runtime! {
Paras: parachains_paras,
ParasShared: parachains_shared,
Scheduler: parachains_scheduler,
ParasSudoWrapper: paras_sudo_wrapper,
ParasSudoWrapper: pallet_paras_sudo_wrapper,
ParasOrigin: parachains_origin,
ParaSessionInfo: parachains_session_info,
Hrmp: parachains_hrmp,
Expand Down
6 changes: 3 additions & 3 deletions polkadot/runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ use runtime_common::{
impls::{
LocatableAssetConverter, ToAuthor, VersionedLocatableAsset, VersionedLocationConverter,
},
paras_registrar, paras_sudo_wrapper, prod_or_fast, slots,
paras_registrar, pallet_paras_sudo_wrapper, prod_or_fast, slots,
traits::{Leaser, OnSwap},
BalanceToU256, BlockHashCount, BlockLength, CurrencyToVote, SlowAdjustingFeeUpdate,
U256ToBalance,
Expand Down Expand Up @@ -1254,7 +1254,7 @@ impl parachains_initializer::Config for Runtime {
type CoretimeOnNewSession = Coretime;
}

impl paras_sudo_wrapper::Config for Runtime {}
impl pallet_paras_sudo_wrapper::Config for Runtime {}

parameter_types! {
pub const PermanentSlotLeasePeriodLength: u32 = 26;
Expand Down Expand Up @@ -1581,7 +1581,7 @@ mod runtime {
#[runtime::pallet_index(61)]
pub type Slots = slots;
#[runtime::pallet_index(62)]
pub type ParasSudoWrapper = paras_sudo_wrapper;
pub type ParasSudoWrapper = pallet_paras_sudo_wrapper;
#[runtime::pallet_index(63)]
pub type Auctions = auctions;
#[runtime::pallet_index(64)]
Expand Down

0 comments on commit d609fc6

Please sign in to comment.