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(feature = "become-sapphire")]50pub const TOKEN_SYMBOL: &str = "QTZ";5152#[cfg(not(feature = "become-sapphire"))]53pub const RUNTIME_NAME: &str = "opal";54#[cfg(not(feature = "become-sapphire"))]55pub const TOKEN_SYMBOL: &str = "OPL";565758pub const VERSION: RuntimeVersion = RuntimeVersion {59 spec_name: create_runtime_str!(RUNTIME_NAME),60 impl_name: create_runtime_str!(RUNTIME_NAME),61 authoring_version: 1,62 spec_version: 336040,63 impl_version: 0,64 apis: RUNTIME_API_VERSIONS,65 transaction_version: 3,66 state_version: 0,67};6869parameter_types! {70 pub const Version: RuntimeVersion = VERSION;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: u16 = 42;81 pub const ChainId: u64 = 8882;82}8384construct_runtime!(opal);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);