partner_chains_cli/
runtime_bindings.rs

1use crate::{CreateChainSpecConfig, keystore::KeyDefinition};
2use authority_selection_inherents::MaybeFromCandidateKeys;
3
4/// Trait defining Partner Chain governance related types.
5pub trait PartnerChainRuntime {
6	/// User keys type
7	type Keys: MaybeFromCandidateKeys;
8	/// User defined function to create a chain spec given the PC configuration
9	fn create_chain_spec(config: &CreateChainSpecConfig<Self::Keys>) -> serde_json::Value;
10	/// Names and schemes of keys used by the runtime.
11	fn key_definitions() -> Vec<KeyDefinition<'static>>;
12}