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 ::staging_xcm::latest::NetworkId;31use frame_support::parameter_types;32use sp_runtime::create_runtime_str;33use sp_version::RuntimeVersion;34use up_common::types::*;3536mod runtime_common;3738pub mod governance_timings;39pub mod xcm_barrier;4041pub use runtime_common::*;4243pub const TOKEN_SYMBOL: &str = "QTZ";44pub const DECIMALS: u8 = 18;454647#[cfg(not(feature = "become-sapphire"))]48#[sp_version::runtime_version]49pub const VERSION: RuntimeVersion = RuntimeVersion {50 spec_name: create_runtime_str!("quartz"),51 impl_name: create_runtime_str!("quartz"),5253 authoring_version: 1,54 spec_version: 943061,55 impl_version: 0,56 apis: RUNTIME_API_VERSIONS,57 transaction_version: 3,58 state_version: 1,59};60#[cfg(feature = "become-sapphire")]61#[sp_version::runtime_version]62pub const VERSION: RuntimeVersion = RuntimeVersion {63 spec_name: create_runtime_str!("sapphire"),64 impl_name: create_runtime_str!("sapphire"),6566 authoring_version: 1,67 spec_version: 943061,68 impl_version: 0,69 apis: RUNTIME_API_VERSIONS,70 transaction_version: 3,71 state_version: 1,72};7374parameter_types! {75 pub const Version: RuntimeVersion = VERSION;76 pub const RelayNetwork: NetworkId = NetworkId::Kusama;77}78#[cfg(feature = "become-sapphire")]79parameter_types! {80 pub const SS58Prefix: u16 = 8883;81 pub const ChainId: u64 = 8883;82}8384#[cfg(not(feature = "become-sapphire"))]85parameter_types! {86 pub const SS58Prefix: u8 = 255;87 pub const ChainId: u64 = 8881;88}8990construct_runtime!();9192impl_common_runtime_apis!();9394cumulus_pallet_parachain_system::register_validate_block!(95 Runtime = Runtime,96 BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,97 CheckInherents = CheckInherents,98);