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;3839mod runtime_common;4041pub mod xcm_barrier;4243pub use runtime_common::*;4445#[cfg(feature = "become-sapphire")]46pub const RUNTIME_NAME: &str = "sapphire";47#[cfg(not(feature = "become-sapphire"))]48pub const RUNTIME_NAME: &str = "quartz";49pub const TOKEN_SYMBOL: &str = "QTZ";50pub const DECIMALS: u8 = 18;515253pub const VERSION: RuntimeVersion = RuntimeVersion {54 spec_name: create_runtime_str!(RUNTIME_NAME),55 impl_name: create_runtime_str!(RUNTIME_NAME),56 authoring_version: 1,57 spec_version: 943060,58 impl_version: 0,59 apis: RUNTIME_API_VERSIONS,60 transaction_version: 3,61 #[cfg(feature = "state-version-0")]62 state_version: 0,63 #[cfg(not(feature = "state-version-0"))]64 state_version: 1,65};6667parameter_types! {68 pub const Version: RuntimeVersion = VERSION;69 pub const RelayNetwork: NetworkId = NetworkId::Kusama;70}71#[cfg(feature = "become-sapphire")]72parameter_types! {73 pub const SS58Prefix: u16 = 8883;74 pub const ChainId: u64 = 8883;75}7677#[cfg(not(feature = "become-sapphire"))]78parameter_types! {79 pub const SS58Prefix: u8 = 255;80 pub const ChainId: u64 = 8881;81}8283construct_runtime!();8485impl_common_runtime_apis!();8687cumulus_pallet_parachain_system::register_validate_block!(88 Runtime = Runtime,89 BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,90 CheckInherents = CheckInherents,91);