12345678910111213141516171819#![cfg_attr(not(feature = "std"), no_std)]2021#![recursion_limit = "1024"]22#![allow(clippy::from_over_into, clippy::identity_op)]23#![allow(clippy::fn_to_numeric_cast_with_truncation)]2425#[cfg(feature = "std")]26include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));2728extern crate alloc;2930use frame_support::parameter_types;3132use sp_version::RuntimeVersion;33use sp_runtime::create_runtime_str;3435use up_common::types::*;3637#[path = "../../common/mod.rs"]38mod runtime_common;3940pub mod xcm_barrier;4142#[cfg(test)]43mod tests;4445pub use runtime_common::*;4647#[cfg(feature = "become-sapphire")]48pub const RUNTIME_NAME: &str = "sapphire";49#[cfg(not(feature = "become-sapphire"))]50pub const RUNTIME_NAME: &str = "quartz";51pub const TOKEN_SYMBOL: &str = "QTZ";525354pub const VERSION: RuntimeVersion = RuntimeVersion {55 spec_name: create_runtime_str!(RUNTIME_NAME),56 impl_name: create_runtime_str!(RUNTIME_NAME),57 authoring_version: 1,58 spec_version: 936050,59 impl_version: 0,60 apis: RUNTIME_API_VERSIONS,61 transaction_version: 3,62 state_version: 0,63};6465parameter_types! {66 pub const Version: RuntimeVersion = VERSION;67}68#[cfg(feature = "become-sapphire")]69parameter_types! {70 pub const SS58Prefix: u16 = 8883;71 pub const ChainId: u64 = 8883;72}7374#[cfg(not(feature = "become-sapphire"))]75parameter_types! {76 pub const SS58Prefix: u8 = 255;77 pub const ChainId: u64 = 8881;78}7980construct_runtime!(quartz);8182impl_common_runtime_apis!();8384cumulus_pallet_parachain_system::register_validate_block!(85 Runtime = Runtime,86 BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,87 CheckInherents = CheckInherents,88);