git.delta.rocks / unique-network / refs/commits / 9a601ff5844d

difftreelog

feat pallet maintenance

Daniel Shiposha2022-11-07parent: #71a39d0.patch.diff
in: master

14 files changed

modifiedCargo.lockdiffbeforeafterboth
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5374,6 +5374,7 @@
  "pallet-foreign-assets",
  "pallet-fungible",
  "pallet-inflation",
+ "pallet-maintenance",
  "pallet-nonfungible",
  "pallet-randomness-collective-flip",
  "pallet-refungible",
@@ -6250,6 +6251,18 @@
 ]
 
 [[package]]
+name = "pallet-maintenance"
+version = "0.1.0"
+dependencies = [
+ "frame-benchmarking",
+ "frame-support",
+ "frame-system",
+ "parity-scale-codec 3.2.1",
+ "scale-info",
+ "sp-std",
+]
+
+[[package]]
 name = "pallet-membership"
 version = "4.0.0-dev"
 source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.30#a3ed0119c45cdd0d571ad34e5b3ee7518c8cef8d"
@@ -8834,6 +8847,7 @@
  "pallet-foreign-assets",
  "pallet-fungible",
  "pallet-inflation",
+ "pallet-maintenance",
  "pallet-nonfungible",
  "pallet-randomness-collective-flip",
  "pallet-refungible",
@@ -12964,6 +12978,7 @@
  "pallet-foreign-assets",
  "pallet-fungible",
  "pallet-inflation",
+ "pallet-maintenance",
  "pallet-nonfungible",
  "pallet-randomness-collective-flip",
  "pallet-refungible",
addedpallets/maintenance/Cargo.tomldiffbeforeafterboth
--- /dev/null
+++ b/pallets/maintenance/Cargo.toml
@@ -0,0 +1,35 @@
+[package]
+name = "pallet-maintenance"
+version = "0.1.0"
+authors = ["Unique Network <support@uniquenetwork.io>"]
+edition = "2021"
+license = "GPLv3"
+homepage = "https://unique.network"
+repository = "https://github.com/UniqueNetwork/unique-chain"
+description = "Unique Maintenance pallet"
+readme = "README.md"
+
+[dependencies]
+codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
+scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
+frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
+frame-system = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
+frame-benchmarking = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
+sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
+
+[features]
+default = ["std"]
+std = [
+	"codec/std",
+	"scale-info/std",
+	"frame-support/std",
+	"frame-system/std",
+	"frame-benchmarking/std",
+	"sp-std/std",
+]
+runtime-benchmarks = [
+	"frame-benchmarking",
+	"frame-support/runtime-benchmarks",
+	"frame-system/runtime-benchmarks",
+]
+try-runtime = ["frame-support/try-runtime"]
addedpallets/maintenance/src/benchmarking.rsdiffbeforeafterboth
--- /dev/null
+++ b/pallets/maintenance/src/benchmarking.rs
@@ -0,0 +1,37 @@
+// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// Unique Network is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
+use super::*;
+use crate::{Pallet as Maintenance, Config};
+
+use frame_benchmarking::benchmarks;
+use frame_system::RawOrigin;
+use frame_support::ensure;
+
+benchmarks! {
+	enable {
+	}: _(RawOrigin::Root)
+	verify {
+		ensure!(<Enabled<T>>::get(), "didn't enable the MM");
+	}
+
+	disable {
+		Maintenance::<T>::enable(RawOrigin::Root.into())?;
+	}: _(RawOrigin::Root)
+	verify {
+		ensure!(!<Enabled<T>>::get(), "didn't disable the MM");
+	}
+}
addedpallets/maintenance/src/lib.rsdiffbeforeafterboth
--- /dev/null
+++ b/pallets/maintenance/src/lib.rs
@@ -0,0 +1,80 @@
+// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// Unique Network is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
+#![cfg_attr(not(feature = "std"), no_std)]
+
+pub use pallet::*;
+
+#[cfg(feature = "runtime-benchmarks")]
+pub mod benchmarking;
+
+pub mod weights;
+
+#[frame_support::pallet]
+pub mod pallet {
+	use frame_support::pallet_prelude::*;
+	use frame_system::pallet_prelude::*;
+	use crate::weights::WeightInfo;
+
+	#[pallet::config]
+	pub trait Config: frame_system::Config {
+		type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
+		type WeightInfo: WeightInfo;
+	}
+
+	#[pallet::event]
+	#[pallet::generate_deposit(pub(super) fn deposit_event)]
+	pub enum Event<T: Config> {
+		MaintenanceEnabled,
+		MaintenanceDisabled,
+	}
+
+	#[pallet::pallet]
+	#[pallet::generate_store(pub(super) trait Store)]
+	pub struct Pallet<T>(_);
+
+	#[pallet::storage]
+	#[pallet::getter(fn is_enabled)]
+	pub type Enabled<T> = StorageValue<_, bool, ValueQuery>;
+
+	#[pallet::error]
+	pub enum Error<T> {}
+
+	#[pallet::call]
+	impl<T: Config> Pallet<T> {
+		#[pallet::weight(<T as Config>::WeightInfo::enable())]
+		pub fn enable(origin: OriginFor<T>) -> DispatchResult {
+			ensure_root(origin)?;
+
+			<Enabled<T>>::set(true);
+
+			Self::deposit_event(Event::MaintenanceEnabled);
+
+			Ok(())
+		}
+
+		#[pallet::weight(<T as Config>::WeightInfo::disable())]
+		pub fn disable(origin: OriginFor<T>) -> DispatchResult {
+			ensure_root(origin)?;
+
+			<Enabled<T>>::set(false);
+
+			Self::deposit_event(Event::MaintenanceDisabled);
+
+			Ok(())
+		}
+	}
+}
addedpallets/maintenance/src/weights.rsdiffbeforeafterboth
--- /dev/null
+++ b/pallets/maintenance/src/weights.rs
@@ -0,0 +1,67 @@
+// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs
+
+//! Autogenerated weights for pallet_maintenance
+//!
+//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
+//! DATE: 2022-11-01, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
+
+// Executed Command:
+// target/release/unique-collator
+// benchmark
+// pallet
+// --pallet
+// pallet-maintenance
+// --wasm-execution
+// compiled
+// --extrinsic
+// *
+// --template
+// .maintain/frame-weight-template.hbs
+// --steps=50
+// --repeat=80
+// --heap-pages=4096
+// --output=./pallets/maintenance/src/weights.rs
+
+#![cfg_attr(rustfmt, rustfmt_skip)]
+#![allow(unused_parens)]
+#![allow(unused_imports)]
+#![allow(clippy::unnecessary_cast)]
+
+use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
+use sp_std::marker::PhantomData;
+
+/// Weight functions needed for pallet_maintenance.
+pub trait WeightInfo {
+	fn enable() -> Weight;
+	fn disable() -> Weight;
+}
+
+/// Weights for pallet_maintenance using the Substrate node and recommended hardware.
+pub struct SubstrateWeight<T>(PhantomData<T>);
+impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
+	// Storage: Maintenance Enabled (r:0 w:1)
+	fn enable() -> Weight {
+		Weight::from_ref_time(7_367_000)
+			.saturating_add(T::DbWeight::get().writes(1))
+	}
+	// Storage: Maintenance Enabled (r:0 w:1)
+	fn disable() -> Weight {
+		Weight::from_ref_time(7_273_000)
+			.saturating_add(T::DbWeight::get().writes(1))
+	}
+}
+
+// For backwards compatibility and tests
+impl WeightInfo for () {
+	// Storage: Maintenance Enabled (r:0 w:1)
+	fn enable() -> Weight {
+		Weight::from_ref_time(7_367_000)
+			.saturating_add(RocksDbWeight::get().writes(1))
+	}
+	// Storage: Maintenance Enabled (r:0 w:1)
+	fn disable() -> Weight {
+		Weight::from_ref_time(7_273_000)
+			.saturating_add(RocksDbWeight::get().writes(1))
+	}
+}
modifiedruntime/common/config/pallets/mod.rsdiffbeforeafterboth
--- a/runtime/common/config/pallets/mod.rs
+++ b/runtime/common/config/pallets/mod.rs
@@ -103,3 +103,8 @@
 	type DefaultWeightToFeeCoefficient = ConstU32<{ up_common::constants::WEIGHT_TO_FEE_COEFF }>;
 	type DefaultMinGasPrice = ConstU64<{ up_common::constants::MIN_GAS_PRICE }>;
 }
+
+impl pallet_maintenance::Config for Runtime {
+	type RuntimeEvent = RuntimeEvent;
+	type WeightInfo = pallet_maintenance::weights::SubstrateWeight<Self>;
+}
modifiedruntime/common/construct_runtime/mod.rsdiffbeforeafterboth
--- a/runtime/common/construct_runtime/mod.rs
+++ b/runtime/common/construct_runtime/mod.rs
@@ -94,6 +94,8 @@
                 EvmTransactionPayment: pallet_evm_transaction_payment::{Pallet} = 152,
                 EvmMigration: pallet_evm_migration::{Pallet, Call, Storage} = 153,
 
+                Maintenance: pallet_maintenance::{Pallet, Call, Storage, Event<T>} = 154,
+
                 #[runtimes(opal)]
                 TestUtils: pallet_test_utils = 255,
             }
addedruntime/common/maintenance.rsdiffbeforeafterboth
--- /dev/null
+++ b/runtime/common/maintenance.rs
@@ -0,0 +1,119 @@
+// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// Unique Network is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
+use scale_info::TypeInfo;
+use codec::{Encode, Decode};
+use up_common::types::AccountId;
+use crate::{RuntimeCall, Maintenance};
+
+use sp_runtime::{
+	traits::{DispatchInfoOf, SignedExtension},
+    transaction_validity::{
+		TransactionValidity, ValidTransaction, InvalidTransaction, TransactionValidityError,
+	},
+};
+
+#[derive(Debug, Encode, Decode, PartialEq, Eq, Clone, TypeInfo)]
+pub struct CheckMaintenance;
+
+impl SignedExtension for CheckMaintenance {
+	type AccountId = AccountId;
+	type Call = RuntimeCall;
+	type AdditionalSigned = ();
+	type Pre = ();
+
+	const IDENTIFIER: &'static str = "CheckMaintenance";
+
+	fn additional_signed(&self) -> Result<Self::AdditionalSigned, TransactionValidityError> {
+		Ok(())
+	}
+
+	fn pre_dispatch(
+		self,
+		who: &Self::AccountId,
+		call: &Self::Call,
+		info: &DispatchInfoOf<Self::Call>,
+		len: usize,
+	) -> Result<Self::Pre, TransactionValidityError> {
+		self.validate(who, call, info, len).map(|_| ())
+	}
+
+	fn validate(
+		&self,
+		_who: &Self::AccountId,
+		call: &Self::Call,
+		_info: &DispatchInfoOf<Self::Call>,
+		_len: usize,
+	) -> TransactionValidity {
+		if Maintenance::is_enabled() {
+			match call {
+				RuntimeCall::EvmMigration(_)
+				| RuntimeCall::EVM(_)
+				| RuntimeCall::Ethereum(_)
+				| RuntimeCall::Inflation(_)
+				| RuntimeCall::Maintenance(_)
+				| RuntimeCall::Structure(_)
+				| RuntimeCall::Unique(_) => Err(TransactionValidityError::Invalid(InvalidTransaction::Call)),
+
+                #[cfg(feature = "scheduler")]
+                RuntimeCall::Scheduler(_) => Err(TransactionValidityError::Invalid(InvalidTransaction::Call)),
+
+				#[cfg(feature = "rmrk")]
+				RuntimeCall::RmrkCore(_) | RuntimeCall::RmrkEquip(_) => {
+					Err(TransactionValidityError::Invalid(InvalidTransaction::Call))
+				}
+
+                #[cfg(feature = "app-promotion")]
+                RuntimeCall::AppPromotion(_) => Err(TransactionValidityError::Invalid(InvalidTransaction::Call)),
+
+                #[cfg(feature = "foreign-assets")]
+                RuntimeCall::ForeignAssets(_) => Err(TransactionValidityError::Invalid(InvalidTransaction::Call)),
+
+                #[cfg(feature = "pallet-test-utils")]
+                RuntimeCall::TestUtils(_) => Err(TransactionValidityError::Invalid(InvalidTransaction::Call)),
+
+				_ => Ok(ValidTransaction::default()),
+			}
+		} else {
+			Ok(ValidTransaction::default())
+		}
+	}
+
+	fn pre_dispatch_unsigned(
+		call: &Self::Call,
+		info: &DispatchInfoOf<Self::Call>,
+		len: usize,
+	) -> Result<(), TransactionValidityError> {
+		Self::validate_unsigned(call, info, len).map(|_| ())
+	}
+
+	fn validate_unsigned(
+		call: &Self::Call,
+		_info: &DispatchInfoOf<Self::Call>,
+		_len: usize,
+	) -> TransactionValidity {
+		if Maintenance::is_enabled() {
+			match call {
+				RuntimeCall::EVM(_) | RuntimeCall::Ethereum(_) | RuntimeCall::EvmMigration(_) => {
+					Err(TransactionValidityError::Invalid(InvalidTransaction::Call))
+				}
+				_ => Ok(ValidTransaction::default()),
+			}
+		} else {
+			Ok(ValidTransaction::default())
+		}
+	}
+}
modifiedruntime/common/mod.rsdiffbeforeafterboth
--- a/runtime/common/mod.rs
+++ b/runtime/common/mod.rs
@@ -20,6 +20,7 @@
 pub mod ethereum;
 pub mod instance;
 pub mod runtime_apis;
+pub mod maintenance;
 
 #[cfg(feature = "scheduler")]
 pub mod scheduler;
@@ -90,6 +91,7 @@
 	frame_system::CheckEra<Runtime>,
 	frame_system::CheckNonce<Runtime>,
 	frame_system::CheckWeight<Runtime>,
+	maintenance::CheckMaintenance,
 	ChargeTransactionPayment,
 	//pallet_contract_helpers::ContractHelpersExtension<Runtime>,
 	pallet_ethereum::FakeTransactionFinalizer<Runtime>,
modifiedruntime/common/scheduler.rsdiffbeforeafterboth
--- a/runtime/common/scheduler.rs
+++ b/runtime/common/scheduler.rs
@@ -25,7 +25,7 @@
 	DispatchErrorWithPostInfo, DispatchError,
 };
 use codec::Encode;
-use crate::{Runtime, RuntimeCall, RuntimeOrigin, Balances};
+use crate::{Runtime, RuntimeCall, RuntimeOrigin, Balances, maintenance};
 use up_common::types::{AccountId, Balance};
 use fp_self_contained::SelfContainedCall;
 use pallet_unique_scheduler::DispatchCall;
@@ -41,6 +41,7 @@
 	frame_system::CheckEra<Runtime>,
 	frame_system::CheckNonce<Runtime>,
 	frame_system::CheckWeight<Runtime>,
+	maintenance::CheckMaintenance,
 	ChargeTransactionPayment<Runtime>,
 );
 
@@ -53,6 +54,7 @@
 			from,
 		)),
 		frame_system::CheckWeight::<Runtime>::new(),
+		maintenance::CheckMaintenance,
 		ChargeTransactionPayment::<Runtime>::from(0),
 	)
 }
modifiedruntime/opal/Cargo.tomldiffbeforeafterboth
--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -45,6 +45,7 @@
     'pallet-xcm/runtime-benchmarks',
     'sp-runtime/runtime-benchmarks',
     'xcm-builder/runtime-benchmarks',
+    'pallet-maintenance/runtime-benchmarks',
 ]
 try-runtime = [
     'frame-try-runtime',
@@ -88,6 +89,7 @@
     'pallet-evm-contract-helpers/try-runtime',
     'pallet-evm-transaction-payment/try-runtime',
     'pallet-evm-migration/try-runtime',
+    'pallet-maintenance/try-runtime',
     'pallet-test-utils?/try-runtime',
 ]
 std = [
@@ -169,6 +171,7 @@
     "orml-traits/std",
     "pallet-foreign-assets/std",
 
+    'pallet-maintenance/std',
     'pallet-test-utils?/std',
 ]
 limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']
@@ -485,6 +488,7 @@
 evm-coder = { default-features = false, path = '../../crates/evm-coder' }
 up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.30' }
 pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }
+pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }
 
 ################################################################################
 # Test dependencies
modifiedruntime/quartz/Cargo.tomldiffbeforeafterboth
before · runtime/quartz/Cargo.toml
1################################################################################2# Package34cargo-features = ["workspace-inheritance"]56[package]7authors = ['Unique Network <support@uniquenetwork.io>']8build = 'build.rs'9description = 'Quartz Runtime'10edition = '2021'11homepage = 'https://unique.network'12license = 'GPLv3'13name = 'quartz-runtime'14repository = 'https://github.com/UniqueNetwork/unique-chain'15version = '0.9.30'1617[package.metadata.docs.rs]18targets = ['x86_64-unknown-linux-gnu']1920[features]21default = ['std', 'quartz-runtime']22runtime-benchmarks = [23    'hex-literal',24    'frame-benchmarking',25    'frame-support/runtime-benchmarks',26    'frame-system-benchmarking',27    'frame-system/runtime-benchmarks',28    'pallet-ethereum/runtime-benchmarks',29    'pallet-evm-migration/runtime-benchmarks',30    'pallet-evm-coder-substrate/runtime-benchmarks',31    'pallet-balances/runtime-benchmarks',32    'pallet-timestamp/runtime-benchmarks',33    'pallet-common/runtime-benchmarks',34    'pallet-structure/runtime-benchmarks',35    'pallet-fungible/runtime-benchmarks',36    'pallet-refungible/runtime-benchmarks',37    'pallet-nonfungible/runtime-benchmarks',38    'pallet-proxy-rmrk-core/runtime-benchmarks',39    'pallet-proxy-rmrk-equip/runtime-benchmarks',40    'pallet-unique/runtime-benchmarks',41    'pallet-foreign-assets/runtime-benchmarks',42    'pallet-inflation/runtime-benchmarks',43    'pallet-unique-scheduler/runtime-benchmarks',44    'pallet-xcm/runtime-benchmarks',45    'sp-runtime/runtime-benchmarks',46    'xcm-builder/runtime-benchmarks',47]48try-runtime = [49    'frame-try-runtime',50    'frame-executive/try-runtime',51    'frame-support/try-runtime',52    'frame-system/try-runtime',53    'cumulus-pallet-parachain-system/try-runtime',54    'parachain-info/try-runtime',55    'pallet-aura/try-runtime',56    'cumulus-pallet-aura-ext/try-runtime',57    'pallet-balances/try-runtime',58    'pallet-randomness-collective-flip/try-runtime',59    'pallet-timestamp/try-runtime',60    'pallet-transaction-payment/try-runtime',61    'pallet-treasury/try-runtime',62    'pallet-sudo/try-runtime',63    'orml-vesting/try-runtime',64    'orml-xtokens/try-runtime',65    'orml-tokens/try-runtime',66    'cumulus-pallet-xcmp-queue/try-runtime',67    'pallet-xcm/try-runtime',68    'cumulus-pallet-xcm/try-runtime',69    'cumulus-pallet-dmp-queue/try-runtime',70    'pallet-inflation/try-runtime',71    'pallet-unique/try-runtime',72    'pallet-unique-scheduler/try-runtime',73    'pallet-configuration/try-runtime',74    'pallet-charge-transaction/try-runtime',75    'pallet-common/try-runtime',76    'pallet-fungible/try-runtime',77    'pallet-refungible/try-runtime',78    'pallet-nonfungible/try-runtime',79    'pallet-structure/try-runtime',80    'pallet-proxy-rmrk-core/try-runtime',81    'pallet-proxy-rmrk-equip/try-runtime',82    'pallet-app-promotion/try-runtime',83    'pallet-foreign-assets/try-runtime',84    'pallet-evm/try-runtime',85    'pallet-ethereum/try-runtime',86    'pallet-evm-coder-substrate/try-runtime',87    'pallet-evm-contract-helpers/try-runtime',88    'pallet-evm-transaction-payment/try-runtime',89    'pallet-evm-migration/try-runtime',90]91std = [92    'codec/std',93    'cumulus-pallet-aura-ext/std',94    'cumulus-pallet-parachain-system/std',95    'cumulus-pallet-xcm/std',96    'cumulus-pallet-xcmp-queue/std',97    'cumulus-primitives-core/std',98    'cumulus-primitives-utility/std',99    'frame-try-runtime/std',100    'frame-executive/std',101    'frame-support/std',102    'frame-system/std',103    'frame-system-rpc-runtime-api/std',104    'pallet-aura/std',105    'pallet-balances/std',106    # 'pallet-contracts/std',107    # 'pallet-contracts-primitives/std',108    # 'pallet-contracts-rpc-runtime-api/std',109    # 'pallet-contract-helpers/std',110    'pallet-randomness-collective-flip/std',111    'pallet-sudo/std',112    'pallet-timestamp/std',113    'pallet-transaction-payment/std',114    'pallet-transaction-payment-rpc-runtime-api/std',115    'pallet-treasury/std',116    'pallet-evm/std',117    'pallet-evm-migration/std',118    'pallet-evm-contract-helpers/std',119    'pallet-evm-transaction-payment/std',120    'pallet-evm-coder-substrate/std',121    'pallet-ethereum/std',122    'pallet-base-fee/std',123    'fp-rpc/std',124    'up-rpc/std',125    'app-promotion-rpc/std',126    'fp-evm-mapping/std',127    'fp-self-contained/std',128    'parachain-info/std',129    'serde',130    'pallet-inflation/std',131    'pallet-configuration/std',132    'pallet-common/std',133    'pallet-structure/std',134    'pallet-fungible/std',135    'pallet-refungible/std',136    'pallet-nonfungible/std',137    'pallet-proxy-rmrk-core/std',138    'pallet-proxy-rmrk-equip/std',139    'pallet-unique/std',140    'pallet-unique-scheduler/std',141    'pallet-charge-transaction/std',142    'up-data-structs/std',143    'sp-api/std',144    'sp-block-builder/std',145    "sp-consensus-aura/std",146    'sp-core/std',147    'sp-inherents/std',148    'sp-io/std',149    'sp-offchain/std',150    'sp-runtime/std',151    'sp-session/std',152    'sp-std/std',153    'sp-transaction-pool/std',154    'sp-version/std',155    'xcm/std',156    'xcm-builder/std',157    'xcm-executor/std',158    'up-common/std',159    'rmrk-rpc/std',160    'evm-coder/std',161    'up-sponsorship/std',162163    "orml-vesting/std",164    "orml-tokens/std",165    "orml-xtokens/std",166    "orml-traits/std",167    "pallet-foreign-assets/std",168]169limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']170quartz-runtime = ['refungible']171172refungible = []173scheduler = []174rmrk = []175foreign-assets = []176177################################################################################178# Substrate Dependencies179180[dependencies.codec]181default-features = false182features = ['derive']183package = 'parity-scale-codec'184version = '3.1.2'185186[dependencies.frame-benchmarking]187default-features = false188git = "https://github.com/paritytech/substrate"189optional = true190branch = "polkadot-v0.9.30"191192[dependencies.frame-try-runtime]193default-features = false194git = "https://github.com/paritytech/substrate"195optional = true196branch = "polkadot-v0.9.30"197198[dependencies.frame-executive]199default-features = false200git = "https://github.com/paritytech/substrate"201branch = "polkadot-v0.9.30"202203[dependencies.frame-support]204default-features = false205git = "https://github.com/paritytech/substrate"206branch = "polkadot-v0.9.30"207208[dependencies.frame-system]209default-features = false210git = "https://github.com/paritytech/substrate"211branch = "polkadot-v0.9.30"212213[dependencies.frame-system-benchmarking]214default-features = false215git = "https://github.com/paritytech/substrate"216optional = true217branch = "polkadot-v0.9.30"218219[dependencies.frame-system-rpc-runtime-api]220default-features = false221git = "https://github.com/paritytech/substrate"222branch = "polkadot-v0.9.30"223224[dependencies.hex-literal]225optional = true226version = '0.3.3'227228[dependencies.serde]229default-features = false230features = ['derive']231optional = true232version = '1.0.130'233234[dependencies.pallet-aura]235default-features = false236git = "https://github.com/paritytech/substrate"237branch = "polkadot-v0.9.30"238239[dependencies.pallet-balances]240default-features = false241git = "https://github.com/paritytech/substrate"242branch = "polkadot-v0.9.30"243244# Contracts specific packages245# [dependencies.pallet-contracts]246# git = 'https://github.com/paritytech/substrate'247# default-features = false248# branch = 'master'249# version = '4.0.0-dev'250251# [dependencies.pallet-contracts-primitives]252# git = 'https://github.com/paritytech/substrate'253# default-features = false254# branch = 'master'255# version = '4.0.0-dev'256257# [dependencies.pallet-contracts-rpc-runtime-api]258# git = 'https://github.com/paritytech/substrate'259# default-features = false260# branch = 'master'261# version = '4.0.0-dev'262263[dependencies.pallet-randomness-collective-flip]264default-features = false265git = "https://github.com/paritytech/substrate"266branch = "polkadot-v0.9.30"267268[dependencies.pallet-sudo]269default-features = false270git = "https://github.com/paritytech/substrate"271branch = "polkadot-v0.9.30"272273[dependencies.pallet-timestamp]274default-features = false275git = "https://github.com/paritytech/substrate"276branch = "polkadot-v0.9.30"277278[dependencies.pallet-transaction-payment]279default-features = false280git = "https://github.com/paritytech/substrate"281branch = "polkadot-v0.9.30"282283[dependencies.pallet-transaction-payment-rpc-runtime-api]284default-features = false285git = "https://github.com/paritytech/substrate"286branch = "polkadot-v0.9.30"287288[dependencies.pallet-treasury]289default-features = false290git = "https://github.com/paritytech/substrate"291branch = "polkadot-v0.9.30"292293[dependencies.sp-arithmetic]294default-features = false295git = "https://github.com/paritytech/substrate"296branch = "polkadot-v0.9.30"297298[dependencies.sp-api]299default-features = false300git = "https://github.com/paritytech/substrate"301branch = "polkadot-v0.9.30"302303[dependencies.sp-block-builder]304default-features = false305git = "https://github.com/paritytech/substrate"306branch = "polkadot-v0.9.30"307308[dependencies.sp-core]309default-features = false310git = "https://github.com/paritytech/substrate"311branch = "polkadot-v0.9.30"312313[dependencies.sp-consensus-aura]314default-features = false315git = "https://github.com/paritytech/substrate"316branch = "polkadot-v0.9.30"317318[dependencies.sp-inherents]319default-features = false320git = "https://github.com/paritytech/substrate"321branch = "polkadot-v0.9.30"322323[dependencies.sp-io]324default-features = false325git = "https://github.com/paritytech/substrate"326branch = "polkadot-v0.9.30"327328[dependencies.sp-offchain]329default-features = false330git = "https://github.com/paritytech/substrate"331branch = "polkadot-v0.9.30"332333[dependencies.sp-runtime]334default-features = false335git = "https://github.com/paritytech/substrate"336branch = "polkadot-v0.9.30"337338[dependencies.sp-session]339default-features = false340git = "https://github.com/paritytech/substrate"341branch = "polkadot-v0.9.30"342343[dependencies.sp-std]344default-features = false345git = "https://github.com/paritytech/substrate"346branch = "polkadot-v0.9.30"347348[dependencies.sp-transaction-pool]349default-features = false350git = "https://github.com/paritytech/substrate"351branch = "polkadot-v0.9.30"352353[dependencies.sp-version]354default-features = false355git = "https://github.com/paritytech/substrate"356branch = "polkadot-v0.9.30"357358[dependencies.smallvec]359version = '1.6.1'360361################################################################################362# Cumulus dependencies363364[dependencies.parachain-info]365default-features = false366git = "https://github.com/paritytech/cumulus"367branch = "polkadot-v0.9.30"368369[dependencies.cumulus-pallet-aura-ext]370git = "https://github.com/paritytech/cumulus"371branch = "polkadot-v0.9.30"372default-features = false373374[dependencies.cumulus-pallet-parachain-system]375git = "https://github.com/paritytech/cumulus"376branch = "polkadot-v0.9.30"377default-features = false378379[dependencies.cumulus-primitives-core]380git = "https://github.com/paritytech/cumulus"381branch = "polkadot-v0.9.30"382default-features = false383384[dependencies.cumulus-pallet-xcm]385git = "https://github.com/paritytech/cumulus"386branch = "polkadot-v0.9.30"387default-features = false388389[dependencies.cumulus-pallet-dmp-queue]390git = "https://github.com/paritytech/cumulus"391branch = "polkadot-v0.9.30"392default-features = false393394[dependencies.cumulus-pallet-xcmp-queue]395git = "https://github.com/paritytech/cumulus"396branch = "polkadot-v0.9.30"397default-features = false398399[dependencies.cumulus-primitives-utility]400git = "https://github.com/paritytech/cumulus"401branch = "polkadot-v0.9.30"402default-features = false403404[dependencies.cumulus-primitives-timestamp]405git = "https://github.com/paritytech/cumulus"406branch = "polkadot-v0.9.30"407default-features = false408409################################################################################410# Polkadot dependencies411412[dependencies.polkadot-parachain]413git = "https://github.com/paritytech/polkadot"414branch = "release-v0.9.30"415default-features = false416417[dependencies.xcm]418git = "https://github.com/paritytech/polkadot"419branch = "release-v0.9.30"420default-features = false421422[dependencies.xcm-builder]423git = "https://github.com/paritytech/polkadot"424branch = "release-v0.9.30"425default-features = false426427[dependencies.xcm-executor]428git = "https://github.com/paritytech/polkadot"429branch = "release-v0.9.30"430default-features = false431432[dependencies.pallet-xcm]433git = "https://github.com/paritytech/polkadot"434branch = "release-v0.9.30"435default-features = false436437################################################################################438# RMRK dependencies439440# todo git441[dependencies.rmrk-rpc]442default-features = false443path = "../../primitives/rmrk-rpc"444445################################################################################446# local dependencies447448[dependencies]449orml-vesting.workspace = true450orml-xtokens.workspace = true451orml-tokens.workspace = true452orml-traits.workspace = true453454log = { version = "0.4.16", default-features = false }455up-common = { path = "../../primitives/common", default-features = false }456scale-info = { version = "2.0.1", default-features = false, features = [457    "derive",458] }459derivative = "2.2.0"460pallet-unique = { path = '../../pallets/unique', default-features = false }461up-rpc = { path = "../../primitives/rpc", default-features = false }462app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }463fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }464pallet-inflation = { path = '../../pallets/inflation', default-features = false }465pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }466up-data-structs = { path = '../../primitives/data-structs', default-features = false }467pallet-configuration = { default-features = false, path = "../../pallets/configuration" }468pallet-common = { default-features = false, path = "../../pallets/common" }469pallet-structure = { default-features = false, path = "../../pallets/structure" }470pallet-fungible = { default-features = false, path = "../../pallets/fungible" }471pallet-refungible = { default-features = false, path = "../../pallets/refungible" }472pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }473pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }474pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }475pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }476# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }477pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.30", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }478pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }479pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }480pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }481pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }482pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }483pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }484pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }485fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }486fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }487evm-coder = { default-features = false, path = '../../crates/evm-coder' }488up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.30' }489pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }490491################################################################################492# Other Dependencies493494impl-trait-for-tuples = "0.2.2"495496################################################################################497# Dev Dependencies498499[dev-dependencies.logtest]500version = "2.0.0"501502################################################################################503# Build Dependencies504505[build-dependencies.substrate-wasm-builder]506git = "https://github.com/paritytech/substrate"507branch = "polkadot-v0.9.30"
after · runtime/quartz/Cargo.toml
1################################################################################2# Package34cargo-features = ["workspace-inheritance"]56[package]7authors = ['Unique Network <support@uniquenetwork.io>']8build = 'build.rs'9description = 'Quartz Runtime'10edition = '2021'11homepage = 'https://unique.network'12license = 'GPLv3'13name = 'quartz-runtime'14repository = 'https://github.com/UniqueNetwork/unique-chain'15version = '0.9.30'1617[package.metadata.docs.rs]18targets = ['x86_64-unknown-linux-gnu']1920[features]21default = ['std', 'quartz-runtime']22runtime-benchmarks = [23    'hex-literal',24    'frame-benchmarking',25    'frame-support/runtime-benchmarks',26    'frame-system-benchmarking',27    'frame-system/runtime-benchmarks',28    'pallet-ethereum/runtime-benchmarks',29    'pallet-evm-migration/runtime-benchmarks',30    'pallet-evm-coder-substrate/runtime-benchmarks',31    'pallet-balances/runtime-benchmarks',32    'pallet-timestamp/runtime-benchmarks',33    'pallet-common/runtime-benchmarks',34    'pallet-structure/runtime-benchmarks',35    'pallet-fungible/runtime-benchmarks',36    'pallet-refungible/runtime-benchmarks',37    'pallet-nonfungible/runtime-benchmarks',38    'pallet-proxy-rmrk-core/runtime-benchmarks',39    'pallet-proxy-rmrk-equip/runtime-benchmarks',40    'pallet-unique/runtime-benchmarks',41    'pallet-foreign-assets/runtime-benchmarks',42    'pallet-inflation/runtime-benchmarks',43    'pallet-unique-scheduler/runtime-benchmarks',44    'pallet-xcm/runtime-benchmarks',45    'sp-runtime/runtime-benchmarks',46    'xcm-builder/runtime-benchmarks',47    'pallet-maintenance/runtime-benchmarks',48]49try-runtime = [50    'frame-try-runtime',51    'frame-executive/try-runtime',52    'frame-support/try-runtime',53    'frame-system/try-runtime',54    'cumulus-pallet-parachain-system/try-runtime',55    'parachain-info/try-runtime',56    'pallet-aura/try-runtime',57    'cumulus-pallet-aura-ext/try-runtime',58    'pallet-balances/try-runtime',59    'pallet-randomness-collective-flip/try-runtime',60    'pallet-timestamp/try-runtime',61    'pallet-transaction-payment/try-runtime',62    'pallet-treasury/try-runtime',63    'pallet-sudo/try-runtime',64    'orml-vesting/try-runtime',65    'orml-xtokens/try-runtime',66    'orml-tokens/try-runtime',67    'cumulus-pallet-xcmp-queue/try-runtime',68    'pallet-xcm/try-runtime',69    'cumulus-pallet-xcm/try-runtime',70    'cumulus-pallet-dmp-queue/try-runtime',71    'pallet-inflation/try-runtime',72    'pallet-unique/try-runtime',73    'pallet-unique-scheduler/try-runtime',74    'pallet-configuration/try-runtime',75    'pallet-charge-transaction/try-runtime',76    'pallet-common/try-runtime',77    'pallet-fungible/try-runtime',78    'pallet-refungible/try-runtime',79    'pallet-nonfungible/try-runtime',80    'pallet-structure/try-runtime',81    'pallet-proxy-rmrk-core/try-runtime',82    'pallet-proxy-rmrk-equip/try-runtime',83    'pallet-app-promotion/try-runtime',84    'pallet-foreign-assets/try-runtime',85    'pallet-evm/try-runtime',86    'pallet-ethereum/try-runtime',87    'pallet-evm-coder-substrate/try-runtime',88    'pallet-evm-contract-helpers/try-runtime',89    'pallet-evm-transaction-payment/try-runtime',90    'pallet-evm-migration/try-runtime',91    'pallet-maintenance/try-runtime',92]93std = [94    'codec/std',95    'cumulus-pallet-aura-ext/std',96    'cumulus-pallet-parachain-system/std',97    'cumulus-pallet-xcm/std',98    'cumulus-pallet-xcmp-queue/std',99    'cumulus-primitives-core/std',100    'cumulus-primitives-utility/std',101    'frame-try-runtime/std',102    'frame-executive/std',103    'frame-support/std',104    'frame-system/std',105    'frame-system-rpc-runtime-api/std',106    'pallet-aura/std',107    'pallet-balances/std',108    # 'pallet-contracts/std',109    # 'pallet-contracts-primitives/std',110    # 'pallet-contracts-rpc-runtime-api/std',111    # 'pallet-contract-helpers/std',112    'pallet-randomness-collective-flip/std',113    'pallet-sudo/std',114    'pallet-timestamp/std',115    'pallet-transaction-payment/std',116    'pallet-transaction-payment-rpc-runtime-api/std',117    'pallet-treasury/std',118    'pallet-evm/std',119    'pallet-evm-migration/std',120    'pallet-evm-contract-helpers/std',121    'pallet-evm-transaction-payment/std',122    'pallet-evm-coder-substrate/std',123    'pallet-ethereum/std',124    'pallet-base-fee/std',125    'fp-rpc/std',126    'up-rpc/std',127    'app-promotion-rpc/std',128    'fp-evm-mapping/std',129    'fp-self-contained/std',130    'parachain-info/std',131    'serde',132    'pallet-inflation/std',133    'pallet-configuration/std',134    'pallet-common/std',135    'pallet-structure/std',136    'pallet-fungible/std',137    'pallet-refungible/std',138    'pallet-nonfungible/std',139    'pallet-proxy-rmrk-core/std',140    'pallet-proxy-rmrk-equip/std',141    'pallet-unique/std',142    'pallet-unique-scheduler/std',143    'pallet-charge-transaction/std',144    'up-data-structs/std',145    'sp-api/std',146    'sp-block-builder/std',147    "sp-consensus-aura/std",148    'sp-core/std',149    'sp-inherents/std',150    'sp-io/std',151    'sp-offchain/std',152    'sp-runtime/std',153    'sp-session/std',154    'sp-std/std',155    'sp-transaction-pool/std',156    'sp-version/std',157    'xcm/std',158    'xcm-builder/std',159    'xcm-executor/std',160    'up-common/std',161    'rmrk-rpc/std',162    'evm-coder/std',163    'up-sponsorship/std',164165    "orml-vesting/std",166    "orml-tokens/std",167    "orml-xtokens/std",168    "orml-traits/std",169    "pallet-foreign-assets/std",170    "pallet-maintenance/std",171]172limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']173quartz-runtime = ['refungible']174175refungible = []176scheduler = []177rmrk = []178foreign-assets = []179180################################################################################181# Substrate Dependencies182183[dependencies.codec]184default-features = false185features = ['derive']186package = 'parity-scale-codec'187version = '3.1.2'188189[dependencies.frame-benchmarking]190default-features = false191git = "https://github.com/paritytech/substrate"192optional = true193branch = "polkadot-v0.9.30"194195[dependencies.frame-try-runtime]196default-features = false197git = "https://github.com/paritytech/substrate"198optional = true199branch = "polkadot-v0.9.30"200201[dependencies.frame-executive]202default-features = false203git = "https://github.com/paritytech/substrate"204branch = "polkadot-v0.9.30"205206[dependencies.frame-support]207default-features = false208git = "https://github.com/paritytech/substrate"209branch = "polkadot-v0.9.30"210211[dependencies.frame-system]212default-features = false213git = "https://github.com/paritytech/substrate"214branch = "polkadot-v0.9.30"215216[dependencies.frame-system-benchmarking]217default-features = false218git = "https://github.com/paritytech/substrate"219optional = true220branch = "polkadot-v0.9.30"221222[dependencies.frame-system-rpc-runtime-api]223default-features = false224git = "https://github.com/paritytech/substrate"225branch = "polkadot-v0.9.30"226227[dependencies.hex-literal]228optional = true229version = '0.3.3'230231[dependencies.serde]232default-features = false233features = ['derive']234optional = true235version = '1.0.130'236237[dependencies.pallet-aura]238default-features = false239git = "https://github.com/paritytech/substrate"240branch = "polkadot-v0.9.30"241242[dependencies.pallet-balances]243default-features = false244git = "https://github.com/paritytech/substrate"245branch = "polkadot-v0.9.30"246247# Contracts specific packages248# [dependencies.pallet-contracts]249# git = 'https://github.com/paritytech/substrate'250# default-features = false251# branch = 'master'252# version = '4.0.0-dev'253254# [dependencies.pallet-contracts-primitives]255# git = 'https://github.com/paritytech/substrate'256# default-features = false257# branch = 'master'258# version = '4.0.0-dev'259260# [dependencies.pallet-contracts-rpc-runtime-api]261# git = 'https://github.com/paritytech/substrate'262# default-features = false263# branch = 'master'264# version = '4.0.0-dev'265266[dependencies.pallet-randomness-collective-flip]267default-features = false268git = "https://github.com/paritytech/substrate"269branch = "polkadot-v0.9.30"270271[dependencies.pallet-sudo]272default-features = false273git = "https://github.com/paritytech/substrate"274branch = "polkadot-v0.9.30"275276[dependencies.pallet-timestamp]277default-features = false278git = "https://github.com/paritytech/substrate"279branch = "polkadot-v0.9.30"280281[dependencies.pallet-transaction-payment]282default-features = false283git = "https://github.com/paritytech/substrate"284branch = "polkadot-v0.9.30"285286[dependencies.pallet-transaction-payment-rpc-runtime-api]287default-features = false288git = "https://github.com/paritytech/substrate"289branch = "polkadot-v0.9.30"290291[dependencies.pallet-treasury]292default-features = false293git = "https://github.com/paritytech/substrate"294branch = "polkadot-v0.9.30"295296[dependencies.sp-arithmetic]297default-features = false298git = "https://github.com/paritytech/substrate"299branch = "polkadot-v0.9.30"300301[dependencies.sp-api]302default-features = false303git = "https://github.com/paritytech/substrate"304branch = "polkadot-v0.9.30"305306[dependencies.sp-block-builder]307default-features = false308git = "https://github.com/paritytech/substrate"309branch = "polkadot-v0.9.30"310311[dependencies.sp-core]312default-features = false313git = "https://github.com/paritytech/substrate"314branch = "polkadot-v0.9.30"315316[dependencies.sp-consensus-aura]317default-features = false318git = "https://github.com/paritytech/substrate"319branch = "polkadot-v0.9.30"320321[dependencies.sp-inherents]322default-features = false323git = "https://github.com/paritytech/substrate"324branch = "polkadot-v0.9.30"325326[dependencies.sp-io]327default-features = false328git = "https://github.com/paritytech/substrate"329branch = "polkadot-v0.9.30"330331[dependencies.sp-offchain]332default-features = false333git = "https://github.com/paritytech/substrate"334branch = "polkadot-v0.9.30"335336[dependencies.sp-runtime]337default-features = false338git = "https://github.com/paritytech/substrate"339branch = "polkadot-v0.9.30"340341[dependencies.sp-session]342default-features = false343git = "https://github.com/paritytech/substrate"344branch = "polkadot-v0.9.30"345346[dependencies.sp-std]347default-features = false348git = "https://github.com/paritytech/substrate"349branch = "polkadot-v0.9.30"350351[dependencies.sp-transaction-pool]352default-features = false353git = "https://github.com/paritytech/substrate"354branch = "polkadot-v0.9.30"355356[dependencies.sp-version]357default-features = false358git = "https://github.com/paritytech/substrate"359branch = "polkadot-v0.9.30"360361[dependencies.smallvec]362version = '1.6.1'363364################################################################################365# Cumulus dependencies366367[dependencies.parachain-info]368default-features = false369git = "https://github.com/paritytech/cumulus"370branch = "polkadot-v0.9.30"371372[dependencies.cumulus-pallet-aura-ext]373git = "https://github.com/paritytech/cumulus"374branch = "polkadot-v0.9.30"375default-features = false376377[dependencies.cumulus-pallet-parachain-system]378git = "https://github.com/paritytech/cumulus"379branch = "polkadot-v0.9.30"380default-features = false381382[dependencies.cumulus-primitives-core]383git = "https://github.com/paritytech/cumulus"384branch = "polkadot-v0.9.30"385default-features = false386387[dependencies.cumulus-pallet-xcm]388git = "https://github.com/paritytech/cumulus"389branch = "polkadot-v0.9.30"390default-features = false391392[dependencies.cumulus-pallet-dmp-queue]393git = "https://github.com/paritytech/cumulus"394branch = "polkadot-v0.9.30"395default-features = false396397[dependencies.cumulus-pallet-xcmp-queue]398git = "https://github.com/paritytech/cumulus"399branch = "polkadot-v0.9.30"400default-features = false401402[dependencies.cumulus-primitives-utility]403git = "https://github.com/paritytech/cumulus"404branch = "polkadot-v0.9.30"405default-features = false406407[dependencies.cumulus-primitives-timestamp]408git = "https://github.com/paritytech/cumulus"409branch = "polkadot-v0.9.30"410default-features = false411412################################################################################413# Polkadot dependencies414415[dependencies.polkadot-parachain]416git = "https://github.com/paritytech/polkadot"417branch = "release-v0.9.30"418default-features = false419420[dependencies.xcm]421git = "https://github.com/paritytech/polkadot"422branch = "release-v0.9.30"423default-features = false424425[dependencies.xcm-builder]426git = "https://github.com/paritytech/polkadot"427branch = "release-v0.9.30"428default-features = false429430[dependencies.xcm-executor]431git = "https://github.com/paritytech/polkadot"432branch = "release-v0.9.30"433default-features = false434435[dependencies.pallet-xcm]436git = "https://github.com/paritytech/polkadot"437branch = "release-v0.9.30"438default-features = false439440################################################################################441# RMRK dependencies442443# todo git444[dependencies.rmrk-rpc]445default-features = false446path = "../../primitives/rmrk-rpc"447448################################################################################449# local dependencies450451[dependencies]452orml-vesting.workspace = true453orml-xtokens.workspace = true454orml-tokens.workspace = true455orml-traits.workspace = true456457log = { version = "0.4.16", default-features = false }458up-common = { path = "../../primitives/common", default-features = false }459scale-info = { version = "2.0.1", default-features = false, features = [460    "derive",461] }462derivative = "2.2.0"463pallet-unique = { path = '../../pallets/unique', default-features = false }464up-rpc = { path = "../../primitives/rpc", default-features = false }465app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }466fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }467pallet-inflation = { path = '../../pallets/inflation', default-features = false }468pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }469up-data-structs = { path = '../../primitives/data-structs', default-features = false }470pallet-configuration = { default-features = false, path = "../../pallets/configuration" }471pallet-common = { default-features = false, path = "../../pallets/common" }472pallet-structure = { default-features = false, path = "../../pallets/structure" }473pallet-fungible = { default-features = false, path = "../../pallets/fungible" }474pallet-refungible = { default-features = false, path = "../../pallets/refungible" }475pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }476pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }477pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }478pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }479# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }480pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.30", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }481pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }482pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }483pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }484pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }485pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }486pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }487pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }488fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }489fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }490evm-coder = { default-features = false, path = '../../crates/evm-coder' }491up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.30' }492pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }493pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }494495################################################################################496# Other Dependencies497498impl-trait-for-tuples = "0.2.2"499500################################################################################501# Dev Dependencies502503[dev-dependencies.logtest]504version = "2.0.0"505506################################################################################507# Build Dependencies508509[build-dependencies.substrate-wasm-builder]510git = "https://github.com/paritytech/substrate"511branch = "polkadot-v0.9.30"
modifiedruntime/unique/Cargo.tomldiffbeforeafterboth
--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -45,6 +45,7 @@
     'sp-runtime/runtime-benchmarks',
     'xcm-builder/runtime-benchmarks',
     'up-data-structs/runtime-benchmarks',
+    'pallet-maintenance/runtime-benchmarks',
 ]
 try-runtime = [
     'frame-try-runtime',
@@ -88,6 +89,7 @@
     'pallet-evm-contract-helpers/try-runtime',
     'pallet-evm-transaction-payment/try-runtime',
     'pallet-evm-migration/try-runtime',
+    'pallet-maintenance/try-runtime',
 ]
 std = [
     'codec/std',
@@ -166,6 +168,7 @@
     "orml-xtokens/std",
     "orml-traits/std",
     "pallet-foreign-assets/std",
+    "pallet-maintenance/std",
 ]
 limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']
 unique-runtime = []
@@ -482,6 +485,7 @@
 evm-coder = { default-features = false, path = '../../crates/evm-coder' }
 up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.30' }
 pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }
+pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }
 
 ################################################################################
 # Other Dependencies
modifiedtests/src/pallet-presence.test.tsdiffbeforeafterboth
--- a/tests/src/pallet-presence.test.ts
+++ b/tests/src/pallet-presence.test.ts
@@ -47,6 +47,7 @@
   'configuration',
   'tokens',
   'xtokens',
+  'maintenance',
 ];
 
 // Pallets that depend on consensus and governance configuration