git.delta.rocks / unique-network / refs/commits / 4de16ed01e1b

difftreelog

build bump spec_version

Yaroslav Bolyukin2023-07-17parent: #8d1c3c9.patch.diff
in: master

4 files changed

modifiedruntime/opal/src/lib.rsdiffbeforeafterboth
--- a/runtime/opal/src/lib.rs
+++ b/runtime/opal/src/lib.rs
@@ -51,7 +51,7 @@
 	spec_name: create_runtime_str!(RUNTIME_NAME),
 	impl_name: create_runtime_str!(RUNTIME_NAME),
 	authoring_version: 1,
-	spec_version: 942057,
+	spec_version: 943060,
 	impl_version: 0,
 	apis: RUNTIME_API_VERSIONS,
 	transaction_version: 3,
modifiedruntime/quartz/src/lib.rsdiffbeforeafterboth
--- a/runtime/quartz/src/lib.rs
+++ b/runtime/quartz/src/lib.rs
@@ -54,7 +54,7 @@
 	spec_name: create_runtime_str!(RUNTIME_NAME),
 	impl_name: create_runtime_str!(RUNTIME_NAME),
 	authoring_version: 1,
-	spec_version: 942057,
+	spec_version: 943060,
 	impl_version: 0,
 	apis: RUNTIME_API_VERSIONS,
 	transaction_version: 3,
modifiedruntime/tests/src/lib.rsdiffbeforeafterboth
--- a/runtime/tests/src/lib.rs
+++ b/runtime/tests/src/lib.rs
@@ -209,7 +209,7 @@
 
 parameter_types! {
 	pub BlockGasLimit: U256 = 0u32.into();
-	pub WeightPerGas: Weight = Weight::from_ref_time(20);
+	pub WeightPerGas: Weight = Weight::from_parts(20, 0);
 	pub const PostBlockAndTxnHashes: PostLogContent = PostLogContent::BlockAndTxnHashes;
 }
 
@@ -244,6 +244,7 @@
 	type BlockHashMapping = SubstrateBlockHashMapping<Self>;
 	type TransactionValidityHack = ();
 	type Timestamp = Timestamp;
+	type GasLimitPovSizeRatio = ConstU64<0>;
 }
 impl pallet_evm_coder_substrate::Config for Test {}
 
modifiedruntime/unique/src/lib.rsdiffbeforeafterboth
before · runtime/unique/src/lib.rs
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"));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::*;4445pub const RUNTIME_NAME: &str = "unique";46pub const TOKEN_SYMBOL: &str = "UNQ";47pub const DECIMALS: u8 = 18;4849/// This runtime version.50pub const VERSION: RuntimeVersion = RuntimeVersion {51	spec_name: create_runtime_str!(RUNTIME_NAME),52	impl_name: create_runtime_str!(RUNTIME_NAME),53	authoring_version: 1,54	spec_version: 942057,55	impl_version: 0,56	apis: RUNTIME_API_VERSIONS,57	transaction_version: 3,58	#[cfg(feature = "state-version-0")]59	state_version: 0,60	#[cfg(not(feature = "state-version-0"))]61	state_version: 1,62};6364parameter_types! {65	pub const Version: RuntimeVersion = VERSION;66	pub const SS58Prefix: u16 = 7391;67	pub const ChainId: u64 = 8880;68	pub const RelayNetwork: NetworkId = NetworkId::Polkadot;69}7071construct_runtime!();7273impl_common_runtime_apis!();7475cumulus_pallet_parachain_system::register_validate_block!(76	Runtime = Runtime,77	BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,78	CheckInherents = CheckInherents,79);
after · runtime/unique/src/lib.rs
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"));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::*;4445pub const RUNTIME_NAME: &str = "unique";46pub const TOKEN_SYMBOL: &str = "UNQ";47pub const DECIMALS: u8 = 18;4849/// This runtime version.50pub const VERSION: RuntimeVersion = RuntimeVersion {51	spec_name: create_runtime_str!(RUNTIME_NAME),52	impl_name: create_runtime_str!(RUNTIME_NAME),53	authoring_version: 1,54	spec_version: 943060,55	impl_version: 0,56	apis: RUNTIME_API_VERSIONS,57	transaction_version: 3,58	#[cfg(feature = "state-version-0")]59	state_version: 0,60	#[cfg(not(feature = "state-version-0"))]61	state_version: 1,62};6364parameter_types! {65	pub const Version: RuntimeVersion = VERSION;66	pub const SS58Prefix: u16 = 7391;67	pub const ChainId: u64 = 8880;68	pub const RelayNetwork: NetworkId = NetworkId::Polkadot;69}7071construct_runtime!();7273impl_common_runtime_apis!();7475cumulus_pallet_parachain_system::register_validate_block!(76	Runtime = Runtime,77	BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,78	CheckInherents = CheckInherents,79);