git.delta.rocks / unique-network / refs/commits / b6fea42a7f33

difftreelog

source

runtime/unique/src/lib.rs2.2 KiBsourcehistory
1// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.2// This file is part of Unique Network.34// Unique Network is free software: you can redistribute it and/or modify5// it under the terms of the GNU General Public License as published by6// the Free Software Foundation, either version 3 of the License, or7// (at your option) any later version.89// Unique Network is distributed in the hope that it will be useful,10// but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the12// GNU General Public License for more details.1314// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.1617//! The Substrate Node Template runtime. This can be compiled with `#[no_std]`, ready for Wasm.1819#![cfg_attr(not(feature = "std"), no_std)]20// `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256.21#![recursion_limit = "1024"]22#![allow(clippy::from_over_into, clippy::identity_op)]23#![allow(clippy::fn_to_numeric_cast_with_truncation)]24// Make the WASM binary available.25#[cfg(feature = "std")]26include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));2728use frame_support::parameter_types;2930use sp_version::RuntimeVersion;31use sp_runtime::create_runtime_str;3233use up_common::types::*;3435#[path = "../../common/mod.rs"]36mod runtime_common;3738pub mod xcm_config;3940pub use runtime_common::*;4142pub const RUNTIME_NAME: &str = "unique";43pub const TOKEN_SYMBOL: &str = "UNQ";4445/// This runtime version.46pub const VERSION: RuntimeVersion = RuntimeVersion {47	spec_name: create_runtime_str!(RUNTIME_NAME),48	impl_name: create_runtime_str!(RUNTIME_NAME),49	authoring_version: 1,50	spec_version: 927020,51	impl_version: 0,52	apis: RUNTIME_API_VERSIONS,53	transaction_version: 2,54	state_version: 0,55};5657parameter_types! {58	pub const Version: RuntimeVersion = VERSION;59	pub const SS58Prefix: u16 = 7391;60	pub const ChainId: u64 = 8880;61}6263construct_runtime!(unique);6465impl_common_runtime_apis!();6667cumulus_pallet_parachain_system::register_validate_block!(68	Runtime = Runtime,69	BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,70	CheckInherents = CheckInherents,71);