Remove system parachains Polkadot and Kusama runtimes (#1737)

Since the Polkadot and Kusama runtimes are no longer in the repo, the
relevant systems parachains runtimes also need to be removed. More
context [here](https://github.com/paritytech/polkadot-sdk/issues/603)
and [here](https://github.com/paritytech/polkadot-sdk/pull/1731).

Removes the following:
- `asset-hub-kusama` and `asset-hub-polkadot`
- `bridge-hub-kusama` and `bridge-hub-polkadot`
- `collectives-polkadot`
- `glutton-kusama`

Partially solves #603 and adds to #1731.
This commit is contained in:
Dónal Murray
2023-11-29 11:07:07 +00:00
committed by GitHub
parent 39d6c95c0d
commit 63ac2471aa
212 changed files with 25 additions and 43083 deletions
-90
View File
@@ -96,36 +96,6 @@ impl sc_executor::NativeExecutionDispatch for ShellRuntimeExecutor {
}
}
/// Native Asset Hub Polkadot (Statemint) executor instance.
pub struct AssetHubPolkadotRuntimeExecutor;
impl sc_executor::NativeExecutionDispatch for AssetHubPolkadotRuntimeExecutor {
type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
asset_hub_polkadot_runtime::api::dispatch(method, data)
}
fn native_version() -> sc_executor::NativeVersion {
asset_hub_polkadot_runtime::native_version()
}
}
/// Native Asset Hub Kusama (Statemine) executor instance.
pub struct AssetHubKusamaExecutor;
impl sc_executor::NativeExecutionDispatch for AssetHubKusamaExecutor {
type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
asset_hub_kusama_runtime::api::dispatch(method, data)
}
fn native_version() -> sc_executor::NativeVersion {
asset_hub_kusama_runtime::native_version()
}
}
/// Native Asset Hub Westend (Westmint) executor instance.
pub struct AssetHubWestendExecutor;
@@ -141,21 +111,6 @@ impl sc_executor::NativeExecutionDispatch for AssetHubWestendExecutor {
}
}
/// Native Polkadot Collectives executor instance.
pub struct CollectivesPolkadotRuntimeExecutor;
impl sc_executor::NativeExecutionDispatch for CollectivesPolkadotRuntimeExecutor {
type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
collectives_polkadot_runtime::api::dispatch(method, data)
}
fn native_version() -> sc_executor::NativeVersion {
collectives_polkadot_runtime::native_version()
}
}
/// Native Westend Collectives executor instance.
pub struct CollectivesWestendRuntimeExecutor;
@@ -171,36 +126,6 @@ impl sc_executor::NativeExecutionDispatch for CollectivesWestendRuntimeExecutor
}
}
/// Native BridgeHubPolkadot executor instance.
pub struct BridgeHubPolkadotRuntimeExecutor;
impl sc_executor::NativeExecutionDispatch for BridgeHubPolkadotRuntimeExecutor {
type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
bridge_hub_polkadot_runtime::api::dispatch(method, data)
}
fn native_version() -> sc_executor::NativeVersion {
bridge_hub_polkadot_runtime::native_version()
}
}
/// Native BridgeHubKusama executor instance.
pub struct BridgeHubKusamaRuntimeExecutor;
impl sc_executor::NativeExecutionDispatch for BridgeHubKusamaRuntimeExecutor {
type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
bridge_hub_kusama_runtime::api::dispatch(method, data)
}
fn native_version() -> sc_executor::NativeVersion {
bridge_hub_kusama_runtime::native_version()
}
}
/// Native BridgeHubRococo executor instance.
pub struct BridgeHubRococoRuntimeExecutor;
@@ -246,21 +171,6 @@ impl sc_executor::NativeExecutionDispatch for GluttonWestendRuntimeExecutor {
}
}
/// Native Glutton executor instance.
pub struct GluttonRuntimeExecutor;
impl sc_executor::NativeExecutionDispatch for GluttonRuntimeExecutor {
type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
shell_runtime::api::dispatch(method, data)
}
fn native_version() -> sc_executor::NativeVersion {
shell_runtime::native_version()
}
}
/// Starts a `ServiceBuilder` for a full service.
///
/// Use this macro if you don't actually need the full service, but just the builder in order to