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::*;3637use ::xcm::latest::NetworkId;3839#[path = "../../common/mod.rs"]40mod runtime_common;4142pub mod xcm_barrier;4344pub use runtime_common::*;4546#[cfg(feature = "become-sapphire")]47pub const RUNTIME_NAME: &str = "sapphire";48#[cfg(not(feature = "become-sapphire"))]49pub const RUNTIME_NAME: &str = "quartz";50pub const TOKEN_SYMBOL: &str = "QTZ";51pub const DECIMALS: u8 = 18;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: 942057,59 impl_version: 0,60 apis: RUNTIME_API_VERSIONS,61 transaction_version: 3,62 #[cfg(feature = "state-version-0")]63 state_version: 0,64 #[cfg(not(feature = "state-version-0"))]65 state_version: 1,66};6768parameter_types! {69 pub const Version: RuntimeVersion = VERSION;70 pub const RelayNetwork: NetworkId = NetworkId::Kusama;71}72#[cfg(feature = "become-sapphire")]73parameter_types! {74 pub const SS58Prefix: u16 = 8883;75 pub const ChainId: u64 = 8883;76}7778#[cfg(not(feature = "become-sapphire"))]79parameter_types! {80 pub const SS58Prefix: u8 = 255;81 pub const ChainId: u64 = 8881;82}8384construct_runtime!();8586impl_common_runtime_apis!();8788cumulus_pallet_parachain_system::register_validate_block!(89 Runtime = Runtime,90 BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,91 CheckInherents = CheckInherents,92);