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 governance_timings;42pub mod xcm_barrier;4344pub use runtime_common::*;4546pub const TOKEN_SYMBOL: &str = "QTZ";47pub const DECIMALS: u8 = 18;484950#[cfg(not(feature = "become-sapphire"))]51#[sp_version::runtime_version]52pub const VERSION: RuntimeVersion = RuntimeVersion {53 spec_name: create_runtime_str!("quartz"),54 impl_name: create_runtime_str!("quartz"),5556 authoring_version: 1,57 spec_version: 943061,58 impl_version: 0,59 apis: RUNTIME_API_VERSIONS,60 transaction_version: 3,61 state_version: 1,62};63#[cfg(feature = "become-sapphire")]64#[sp_version::runtime_version]65pub const VERSION: RuntimeVersion = RuntimeVersion {66 spec_name: create_runtime_str!("sapphire"),67 impl_name: create_runtime_str!("sapphire"),6869 authoring_version: 1,70 spec_version: 943061,71 impl_version: 0,72 apis: RUNTIME_API_VERSIONS,73 transaction_version: 3,74 state_version: 1,75};7677parameter_types! {78 pub const Version: RuntimeVersion = VERSION;79 pub const RelayNetwork: NetworkId = NetworkId::Kusama;80}81#[cfg(feature = "become-sapphire")]82parameter_types! {83 pub const SS58Prefix: u16 = 8883;84 pub const ChainId: u64 = 8883;85}8687#[cfg(not(feature = "become-sapphire"))]88parameter_types! {89 pub const SS58Prefix: u8 = 255;90 pub const ChainId: u64 = 8881;91}9293construct_runtime!();9495impl_common_runtime_apis!();9697cumulus_pallet_parachain_system::register_validate_block!(98 Runtime = Runtime,99 BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,100 CheckInherents = CheckInherents,101);