Add collectives-westend and glutton-westend runtimes (#2024)

Add collectives and glutton parachain westend runtimes to prepare for
#1737.

The removal of system parachain native runtimes #1737 is blocked until
chainspecs and runtime APIs can be dealt with cleanly (merge of #1256
and follow up PRs).

In the meantime, these additions are ready to be merged to `master`, so
I have separated them out into this PR.

Also marked `bridge-hub-westend` as unimplemented in line with [this
issue](https://github.com/paritytech/parity-bridges-common/issues/2602).

TODO
- [x] add to `command-bot` benchmarks
- [x] add to `command-bot-scripts` benchmarks
- [x] generate weights

---------

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
Co-authored-by: Muharem <ismailov.m.h@gmail.com>
Co-authored-by: command-bot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Branislav Kontur <bkontur@gmail.com>
This commit is contained in:
Dónal Murray
2023-11-15 15:01:55 +00:00
committed by GitHub
parent c79b234b3b
commit 0226b55f9f
68 changed files with 11792 additions and 7 deletions
+30
View File
@@ -156,6 +156,21 @@ impl sc_executor::NativeExecutionDispatch for CollectivesPolkadotRuntimeExecutor
}
}
/// Native Westend Collectives executor instance.
pub struct CollectivesWestendRuntimeExecutor;
impl sc_executor::NativeExecutionDispatch for CollectivesWestendRuntimeExecutor {
type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
collectives_westend_runtime::api::dispatch(method, data)
}
fn native_version() -> sc_executor::NativeVersion {
collectives_westend_runtime::native_version()
}
}
/// Native BridgeHubPolkadot executor instance.
pub struct BridgeHubPolkadotRuntimeExecutor;
@@ -216,6 +231,21 @@ impl sc_executor::NativeExecutionDispatch for ContractsRococoRuntimeExecutor {
}
}
/// Native Westend Glutton executor instance.
pub struct GluttonWestendRuntimeExecutor;
impl sc_executor::NativeExecutionDispatch for GluttonWestendRuntimeExecutor {
type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
glutton_westend_runtime::api::dispatch(method, data)
}
fn native_version() -> sc_executor::NativeVersion {
glutton_westend_runtime::native_version()
}
}
/// Native Glutton executor instance.
pub struct GluttonRuntimeExecutor;