diff --git a/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs b/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs index 655511faf4..59247e1cf1 100644 --- a/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs +++ b/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs @@ -2024,6 +2024,12 @@ pallet_revive::impl_runtime_apis_plus_revive!( } } + impl cumulus_primitives_core::GetParachainInfo for Runtime { + fn parachain_id() -> ParaId { + ParachainInfo::parachain_id() + } + } + #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) { diff --git a/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs b/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs index 15c7ad3a29..22bfbb3854 100644 --- a/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs +++ b/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs @@ -1920,6 +1920,12 @@ impl_runtime_apis! { } } + impl cumulus_primitives_core::GetParachainInfo for Runtime { + fn parachain_id() -> ParaId { + ParachainInfo::parachain_id() + } + } + #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) { diff --git a/system-parachains/bridge-hubs/bridge-hub-kusama/src/lib.rs b/system-parachains/bridge-hubs/bridge-hub-kusama/src/lib.rs index 923b61ed3d..af8442c9ef 100644 --- a/system-parachains/bridge-hubs/bridge-hub-kusama/src/lib.rs +++ b/system-parachains/bridge-hubs/bridge-hub-kusama/src/lib.rs @@ -1308,6 +1308,12 @@ impl_runtime_apis! { } } + impl cumulus_primitives_core::GetParachainInfo for Runtime { + fn parachain_id() -> ParaId { + ParachainInfo::parachain_id() + } + } + #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) { diff --git a/system-parachains/bridge-hubs/bridge-hub-polkadot/src/lib.rs b/system-parachains/bridge-hubs/bridge-hub-polkadot/src/lib.rs index 5a7646768f..f18e5ac8f2 100644 --- a/system-parachains/bridge-hubs/bridge-hub-polkadot/src/lib.rs +++ b/system-parachains/bridge-hubs/bridge-hub-polkadot/src/lib.rs @@ -1368,6 +1368,12 @@ impl_runtime_apis! { } } + impl cumulus_primitives_core::GetParachainInfo for Runtime { + fn parachain_id() -> ParaId { + ParachainInfo::parachain_id() + } + } + #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) { diff --git a/system-parachains/collectives/collectives-polkadot/src/lib.rs b/system-parachains/collectives/collectives-polkadot/src/lib.rs index 98653874ad..9d1694ad65 100644 --- a/system-parachains/collectives/collectives-polkadot/src/lib.rs +++ b/system-parachains/collectives/collectives-polkadot/src/lib.rs @@ -1322,6 +1322,12 @@ impl_runtime_apis! { } } + impl cumulus_primitives_core::GetParachainInfo for Runtime { + fn parachain_id() -> ParaId { + ParachainInfo::parachain_id() + } + } + #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) { diff --git a/system-parachains/coretime/coretime-kusama/src/lib.rs b/system-parachains/coretime/coretime-kusama/src/lib.rs index 597b8dce7b..dde5b7fb15 100644 --- a/system-parachains/coretime/coretime-kusama/src/lib.rs +++ b/system-parachains/coretime/coretime-kusama/src/lib.rs @@ -1145,6 +1145,12 @@ impl_runtime_apis! { } } + impl cumulus_primitives_core::GetParachainInfo for Runtime { + fn parachain_id() -> ParaId { + ParachainInfo::parachain_id() + } + } + #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) { diff --git a/system-parachains/coretime/coretime-polkadot/src/lib.rs b/system-parachains/coretime/coretime-polkadot/src/lib.rs index be611a03d6..9e6eba32fe 100644 --- a/system-parachains/coretime/coretime-polkadot/src/lib.rs +++ b/system-parachains/coretime/coretime-polkadot/src/lib.rs @@ -1148,6 +1148,12 @@ impl_runtime_apis! { } } + impl cumulus_primitives_core::GetParachainInfo for Runtime { + fn parachain_id() -> ParaId { + ParachainInfo::parachain_id() + } + } + #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) { diff --git a/system-parachains/encointer/src/lib.rs b/system-parachains/encointer/src/lib.rs index 3f1d8d9d8e..f21ad825d1 100644 --- a/system-parachains/encointer/src/lib.rs +++ b/system-parachains/encointer/src/lib.rs @@ -1380,6 +1380,12 @@ impl_runtime_apis! { } } + impl cumulus_primitives_core::GetParachainInfo for Runtime { + fn parachain_id() -> ParaId { + ParachainInfo::parachain_id() + } + } + #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) { diff --git a/system-parachains/gluttons/glutton-kusama/src/lib.rs b/system-parachains/gluttons/glutton-kusama/src/lib.rs index 3cf236a878..b740f26d5b 100644 --- a/system-parachains/gluttons/glutton-kusama/src/lib.rs +++ b/system-parachains/gluttons/glutton-kusama/src/lib.rs @@ -52,7 +52,7 @@ pub mod xcm_config; use alloc::{borrow::Cow, vec, vec::Vec}; use cumulus_pallet_parachain_system::RelayNumberStrictlyIncreases; -use cumulus_primitives_core::AggregateMessageOrigin; +use cumulus_primitives_core::{AggregateMessageOrigin, ParaId}; use sp_api::impl_runtime_apis; use sp_core::OpaqueMetadata; use sp_runtime::{ @@ -440,6 +440,12 @@ impl_runtime_apis! { } } + impl cumulus_primitives_core::GetParachainInfo for Runtime { + fn parachain_id() -> ParaId { + ParachainInfo::parachain_id() + } + } + #[cfg(feature = "runtime-benchmarks")] impl frame_benchmarking::Benchmark for Runtime { fn benchmark_metadata(extra: bool) -> ( diff --git a/system-parachains/people/people-kusama/src/lib.rs b/system-parachains/people/people-kusama/src/lib.rs index 7581c76cd1..0c1d34d3b0 100644 --- a/system-parachains/people/people-kusama/src/lib.rs +++ b/system-parachains/people/people-kusama/src/lib.rs @@ -1092,6 +1092,12 @@ impl_runtime_apis! { } } + impl cumulus_primitives_core::GetParachainInfo for Runtime { + fn parachain_id() -> ParaId { + ParachainInfo::parachain_id() + } + } + #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) { diff --git a/system-parachains/people/people-polkadot/src/lib.rs b/system-parachains/people/people-polkadot/src/lib.rs index 9cc753800e..7397740799 100644 --- a/system-parachains/people/people-polkadot/src/lib.rs +++ b/system-parachains/people/people-polkadot/src/lib.rs @@ -1079,6 +1079,12 @@ impl_runtime_apis! { } } + impl cumulus_primitives_core::GetParachainInfo for Runtime { + fn parachain_id() -> ParaId { + ParachainInfo::parachain_id() + } + } + #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) {