difftreelog
feat pallet maintenance
in: master
14 files changed
Cargo.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",
pallets/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"]
pallets/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");
+ }
+}
pallets/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(())
+ }
+ }
+}
pallets/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))
+ }
+}
runtime/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>;
+}
runtime/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,
}
runtime/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())
+ }
+ }
+}
runtime/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>,
runtime/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),
)
}
runtime/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
runtime/quartz/Cargo.tomldiffbeforeafterboth--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -44,6 +44,7 @@
'pallet-xcm/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
'xcm-builder/runtime-benchmarks',
+ 'pallet-maintenance/runtime-benchmarks',
]
try-runtime = [
'frame-try-runtime',
@@ -87,6 +88,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',
@@ -165,6 +167,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']
quartz-runtime = ['refungible']
@@ -487,6 +490,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
runtime/unique/Cargo.tomldiffbeforeafterboth1################################################################################2# Package34cargo-features = ["workspace-inheritance"]56[package]7authors = ['Unique Network <support@uniquenetwork.io>']8build = 'build.rs'9description = 'Unique Runtime'10edition = '2021'11homepage = 'https://unique.network'12license = 'GPLv3'13name = 'unique-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', 'unique-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 'up-data-structs/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]92std = [93 'codec/std',94 'cumulus-pallet-aura-ext/std',95 'cumulus-pallet-parachain-system/std',96 'cumulus-pallet-xcm/std',97 'cumulus-pallet-xcmp-queue/std',98 'cumulus-primitives-core/std',99 'cumulus-primitives-utility/std',100 'frame-try-runtime/std',101 'frame-executive/std',102 'frame-support/std',103 'frame-system/std',104 'frame-system-rpc-runtime-api/std',105 'pallet-aura/std',106 'pallet-balances/std',107 # 'pallet-contracts/std',108 # 'pallet-contracts-primitives/std',109 # 'pallet-contracts-rpc-runtime-api/std',110 # 'pallet-contract-helpers/std',111 'pallet-randomness-collective-flip/std',112 'pallet-sudo/std',113 'pallet-timestamp/std',114 'pallet-transaction-payment/std',115 'pallet-transaction-payment-rpc-runtime-api/std',116 'pallet-treasury/std',117 'pallet-evm/std',118 'pallet-evm-migration/std',119 'pallet-evm-contract-helpers/std',120 'pallet-evm-transaction-payment/std',121 'pallet-evm-coder-substrate/std',122 'pallet-ethereum/std',123 'pallet-base-fee/std',124 'fp-rpc/std',125 'up-rpc/std',126 'app-promotion-rpc/std',127 'fp-evm-mapping/std',128 'fp-self-contained/std',129 'parachain-info/std',130 'serde',131 'pallet-inflation/std',132 'pallet-configuration/std',133 'pallet-common/std',134 'pallet-structure/std',135 'pallet-fungible/std',136 'pallet-refungible/std',137 'pallet-nonfungible/std',138 'pallet-proxy-rmrk-core/std',139 'pallet-proxy-rmrk-equip/std',140 'pallet-unique/std',141 'pallet-unique-scheduler/std',142 'pallet-charge-transaction/std',143 'up-data-structs/std',144 'sp-api/std',145 'sp-block-builder/std',146 "sp-consensus-aura/std",147 'sp-core/std',148 'sp-inherents/std',149 'sp-io/std',150 'sp-offchain/std',151 'sp-runtime/std',152 'sp-session/std',153 'sp-std/std',154 'sp-transaction-pool/std',155 'sp-version/std',156 'xcm/std',157 'xcm-builder/std',158 'xcm-executor/std',159 'up-common/std',160 'rmrk-rpc/std',161 'evm-coder/std',162 'up-sponsorship/std',163164 "orml-vesting/std",165 "orml-tokens/std",166 "orml-xtokens/std",167 "orml-traits/std",168 "pallet-foreign-assets/std",169]170limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']171unique-runtime = []172stubgen = ["evm-coder/stubgen"]173174refungible = []175scheduler = []176rmrk = []177foreign-assets = []178179################################################################################180# Substrate Dependencies181182[dependencies.codec]183default-features = false184features = ['derive']185package = 'parity-scale-codec'186version = '3.1.2'187188[dependencies.frame-benchmarking]189default-features = false190git = "https://github.com/paritytech/substrate"191optional = true192branch = "polkadot-v0.9.30"193194[dependencies.frame-try-runtime]195default-features = false196git = "https://github.com/paritytech/substrate"197optional = true198branch = "polkadot-v0.9.30"199200[dependencies.frame-executive]201default-features = false202git = "https://github.com/paritytech/substrate"203branch = "polkadot-v0.9.30"204205[dependencies.frame-support]206default-features = false207git = "https://github.com/paritytech/substrate"208branch = "polkadot-v0.9.30"209210[dependencies.frame-system]211default-features = false212git = "https://github.com/paritytech/substrate"213branch = "polkadot-v0.9.30"214215[dependencies.frame-system-benchmarking]216default-features = false217git = "https://github.com/paritytech/substrate"218optional = true219branch = "polkadot-v0.9.30"220221[dependencies.frame-system-rpc-runtime-api]222default-features = false223git = "https://github.com/paritytech/substrate"224branch = "polkadot-v0.9.30"225226[dependencies.hex-literal]227optional = true228version = '0.3.3'229230[dependencies.serde]231default-features = false232features = ['derive']233optional = true234version = '1.0.130'235236[dependencies.pallet-aura]237default-features = false238git = "https://github.com/paritytech/substrate"239branch = "polkadot-v0.9.30"240241[dependencies.pallet-balances]242default-features = false243git = "https://github.com/paritytech/substrate"244branch = "polkadot-v0.9.30"245246# Contracts specific packages247# [dependencies.pallet-contracts]248# git = 'https://github.com/paritytech/substrate'249# default-features = false250# branch = 'master'251# version = '4.0.0-dev'252253# [dependencies.pallet-contracts-primitives]254# git = 'https://github.com/paritytech/substrate'255# default-features = false256# branch = 'master'257# version = '4.0.0-dev'258259# [dependencies.pallet-contracts-rpc-runtime-api]260# git = 'https://github.com/paritytech/substrate'261# default-features = false262# branch = 'master'263# version = '4.0.0-dev'264265[dependencies.pallet-randomness-collective-flip]266default-features = false267git = "https://github.com/paritytech/substrate"268branch = "polkadot-v0.9.30"269270[dependencies.pallet-sudo]271default-features = false272git = "https://github.com/paritytech/substrate"273branch = "polkadot-v0.9.30"274275[dependencies.pallet-timestamp]276default-features = false277git = "https://github.com/paritytech/substrate"278branch = "polkadot-v0.9.30"279280[dependencies.pallet-transaction-payment]281default-features = false282git = "https://github.com/paritytech/substrate"283branch = "polkadot-v0.9.30"284285[dependencies.pallet-transaction-payment-rpc-runtime-api]286default-features = false287git = "https://github.com/paritytech/substrate"288branch = "polkadot-v0.9.30"289290[dependencies.pallet-treasury]291default-features = false292git = "https://github.com/paritytech/substrate"293branch = "polkadot-v0.9.30"294295[dependencies.sp-arithmetic]296default-features = false297git = "https://github.com/paritytech/substrate"298branch = "polkadot-v0.9.30"299300[dependencies.sp-api]301default-features = false302git = "https://github.com/paritytech/substrate"303branch = "polkadot-v0.9.30"304305[dependencies.sp-block-builder]306default-features = false307git = "https://github.com/paritytech/substrate"308branch = "polkadot-v0.9.30"309310[dependencies.sp-core]311default-features = false312git = "https://github.com/paritytech/substrate"313branch = "polkadot-v0.9.30"314315[dependencies.sp-consensus-aura]316default-features = false317git = "https://github.com/paritytech/substrate"318branch = "polkadot-v0.9.30"319320[dependencies.sp-inherents]321default-features = false322git = "https://github.com/paritytech/substrate"323branch = "polkadot-v0.9.30"324325[dependencies.sp-io]326default-features = false327git = "https://github.com/paritytech/substrate"328branch = "polkadot-v0.9.30"329330[dependencies.sp-offchain]331default-features = false332git = "https://github.com/paritytech/substrate"333branch = "polkadot-v0.9.30"334335[dependencies.sp-runtime]336default-features = false337git = "https://github.com/paritytech/substrate"338branch = "polkadot-v0.9.30"339340[dependencies.sp-session]341default-features = false342git = "https://github.com/paritytech/substrate"343branch = "polkadot-v0.9.30"344345[dependencies.sp-std]346default-features = false347git = "https://github.com/paritytech/substrate"348branch = "polkadot-v0.9.30"349350[dependencies.sp-transaction-pool]351default-features = false352git = "https://github.com/paritytech/substrate"353branch = "polkadot-v0.9.30"354355[dependencies.sp-version]356default-features = false357git = "https://github.com/paritytech/substrate"358branch = "polkadot-v0.9.30"359360[dependencies.smallvec]361version = '1.6.1'362363################################################################################364# Cumulus dependencies365366[dependencies.parachain-info]367default-features = false368git = "https://github.com/paritytech/cumulus"369branch = "polkadot-v0.9.30"370371[dependencies.cumulus-pallet-aura-ext]372git = "https://github.com/paritytech/cumulus"373branch = "polkadot-v0.9.30"374default-features = false375376[dependencies.cumulus-pallet-parachain-system]377git = "https://github.com/paritytech/cumulus"378branch = "polkadot-v0.9.30"379default-features = false380381[dependencies.cumulus-primitives-core]382git = "https://github.com/paritytech/cumulus"383branch = "polkadot-v0.9.30"384default-features = false385386[dependencies.cumulus-pallet-xcm]387git = "https://github.com/paritytech/cumulus"388branch = "polkadot-v0.9.30"389default-features = false390391[dependencies.cumulus-pallet-dmp-queue]392git = "https://github.com/paritytech/cumulus"393branch = "polkadot-v0.9.30"394default-features = false395396[dependencies.cumulus-pallet-xcmp-queue]397git = "https://github.com/paritytech/cumulus"398branch = "polkadot-v0.9.30"399default-features = false400401[dependencies.cumulus-primitives-utility]402git = "https://github.com/paritytech/cumulus"403branch = "polkadot-v0.9.30"404default-features = false405406[dependencies.cumulus-primitives-timestamp]407git = "https://github.com/paritytech/cumulus"408branch = "polkadot-v0.9.30"409default-features = false410411################################################################################412# Polkadot dependencies413414[dependencies.polkadot-parachain]415git = "https://github.com/paritytech/polkadot"416branch = "release-v0.9.30"417default-features = false418419[dependencies.xcm]420git = "https://github.com/paritytech/polkadot"421branch = "release-v0.9.30"422default-features = false423424[dependencies.xcm-builder]425git = "https://github.com/paritytech/polkadot"426branch = "release-v0.9.30"427default-features = false428429[dependencies.xcm-executor]430git = "https://github.com/paritytech/polkadot"431branch = "release-v0.9.30"432default-features = false433434[dependencies.pallet-xcm]435git = "https://github.com/paritytech/polkadot"436branch = "release-v0.9.30"437default-features = false438439################################################################################440# local dependencies441442[dependencies]443orml-vesting.workspace = true444orml-xtokens.workspace = true445orml-tokens.workspace = true446orml-traits.workspace = true447448log = { version = "0.4.16", default-features = false }449up-common = { path = "../../primitives/common", default-features = false }450scale-info = { version = "2.0.1", default-features = false, features = [451 "derive",452] }453derivative = "2.2.0"454pallet-unique = { path = '../../pallets/unique', default-features = false }455up-rpc = { path = "../../primitives/rpc", default-features = false }456app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }457rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }458pallet-inflation = { path = '../../pallets/inflation', default-features = false }459pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }460up-data-structs = { path = '../../primitives/data-structs', default-features = false }461pallet-configuration = { default-features = false, path = "../../pallets/configuration" }462pallet-common = { default-features = false, path = "../../pallets/common" }463pallet-structure = { default-features = false, path = "../../pallets/structure" }464pallet-fungible = { default-features = false, path = "../../pallets/fungible" }465pallet-refungible = { default-features = false, path = "../../pallets/refungible" }466pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }467pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }468pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }469pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }470# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }471pallet-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" }472pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }473pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }474pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }475pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }476pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }477pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }478pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }479fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }480fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }481fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }482evm-coder = { default-features = false, path = '../../crates/evm-coder' }483up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.30' }484pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }485486################################################################################487# Other Dependencies488489impl-trait-for-tuples = "0.2.2"490491################################################################################492# Dev Dependencies493494[dev-dependencies.logtest]495version = "2.0.0"496497################################################################################498# Build Dependencies499500[build-dependencies.substrate-wasm-builder]501git = "https://github.com/paritytech/substrate"502branch = "polkadot-v0.9.30"1################################################################################2# Package34cargo-features = ["workspace-inheritance"]56[package]7authors = ['Unique Network <support@uniquenetwork.io>']8build = 'build.rs'9description = 'Unique Runtime'10edition = '2021'11homepage = 'https://unique.network'12license = 'GPLv3'13name = 'unique-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', 'unique-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 'up-data-structs/runtime-benchmarks',48 'pallet-maintenance/runtime-benchmarks',49]50try-runtime = [51 'frame-try-runtime',52 'frame-executive/try-runtime',53 'frame-support/try-runtime',54 'frame-system/try-runtime',55 'cumulus-pallet-parachain-system/try-runtime',56 'parachain-info/try-runtime',57 'pallet-aura/try-runtime',58 'cumulus-pallet-aura-ext/try-runtime',59 'pallet-balances/try-runtime',60 'pallet-randomness-collective-flip/try-runtime',61 'pallet-timestamp/try-runtime',62 'pallet-transaction-payment/try-runtime',63 'pallet-treasury/try-runtime',64 'pallet-sudo/try-runtime',65 'orml-vesting/try-runtime',66 'orml-xtokens/try-runtime',67 'orml-tokens/try-runtime',68 'cumulus-pallet-xcmp-queue/try-runtime',69 'pallet-xcm/try-runtime',70 'cumulus-pallet-xcm/try-runtime',71 'cumulus-pallet-dmp-queue/try-runtime',72 'pallet-inflation/try-runtime',73 'pallet-unique/try-runtime',74 'pallet-unique-scheduler/try-runtime',75 'pallet-configuration/try-runtime',76 'pallet-charge-transaction/try-runtime',77 'pallet-common/try-runtime',78 'pallet-fungible/try-runtime',79 'pallet-refungible/try-runtime',80 'pallet-nonfungible/try-runtime',81 'pallet-structure/try-runtime',82 'pallet-proxy-rmrk-core/try-runtime',83 'pallet-proxy-rmrk-equip/try-runtime',84 'pallet-app-promotion/try-runtime',85 'pallet-foreign-assets/try-runtime',86 'pallet-evm/try-runtime',87 'pallet-ethereum/try-runtime',88 'pallet-evm-coder-substrate/try-runtime',89 'pallet-evm-contract-helpers/try-runtime',90 'pallet-evm-transaction-payment/try-runtime',91 'pallet-evm-migration/try-runtime',92 'pallet-maintenance/try-runtime',93]94std = [95 'codec/std',96 'cumulus-pallet-aura-ext/std',97 'cumulus-pallet-parachain-system/std',98 'cumulus-pallet-xcm/std',99 'cumulus-pallet-xcmp-queue/std',100 'cumulus-primitives-core/std',101 'cumulus-primitives-utility/std',102 'frame-try-runtime/std',103 'frame-executive/std',104 'frame-support/std',105 'frame-system/std',106 'frame-system-rpc-runtime-api/std',107 'pallet-aura/std',108 'pallet-balances/std',109 # 'pallet-contracts/std',110 # 'pallet-contracts-primitives/std',111 # 'pallet-contracts-rpc-runtime-api/std',112 # 'pallet-contract-helpers/std',113 'pallet-randomness-collective-flip/std',114 'pallet-sudo/std',115 'pallet-timestamp/std',116 'pallet-transaction-payment/std',117 'pallet-transaction-payment-rpc-runtime-api/std',118 'pallet-treasury/std',119 'pallet-evm/std',120 'pallet-evm-migration/std',121 'pallet-evm-contract-helpers/std',122 'pallet-evm-transaction-payment/std',123 'pallet-evm-coder-substrate/std',124 'pallet-ethereum/std',125 'pallet-base-fee/std',126 'fp-rpc/std',127 'up-rpc/std',128 'app-promotion-rpc/std',129 'fp-evm-mapping/std',130 'fp-self-contained/std',131 'parachain-info/std',132 'serde',133 'pallet-inflation/std',134 'pallet-configuration/std',135 'pallet-common/std',136 'pallet-structure/std',137 'pallet-fungible/std',138 'pallet-refungible/std',139 'pallet-nonfungible/std',140 'pallet-proxy-rmrk-core/std',141 'pallet-proxy-rmrk-equip/std',142 'pallet-unique/std',143 'pallet-unique-scheduler/std',144 'pallet-charge-transaction/std',145 'up-data-structs/std',146 'sp-api/std',147 'sp-block-builder/std',148 "sp-consensus-aura/std",149 'sp-core/std',150 'sp-inherents/std',151 'sp-io/std',152 'sp-offchain/std',153 'sp-runtime/std',154 'sp-session/std',155 'sp-std/std',156 'sp-transaction-pool/std',157 'sp-version/std',158 'xcm/std',159 'xcm-builder/std',160 'xcm-executor/std',161 'up-common/std',162 'rmrk-rpc/std',163 'evm-coder/std',164 'up-sponsorship/std',165166 "orml-vesting/std",167 "orml-tokens/std",168 "orml-xtokens/std",169 "orml-traits/std",170 "pallet-foreign-assets/std",171 "pallet-maintenance/std",172]173limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']174unique-runtime = []175stubgen = ["evm-coder/stubgen"]176177refungible = []178scheduler = []179rmrk = []180foreign-assets = []181182################################################################################183# Substrate Dependencies184185[dependencies.codec]186default-features = false187features = ['derive']188package = 'parity-scale-codec'189version = '3.1.2'190191[dependencies.frame-benchmarking]192default-features = false193git = "https://github.com/paritytech/substrate"194optional = true195branch = "polkadot-v0.9.30"196197[dependencies.frame-try-runtime]198default-features = false199git = "https://github.com/paritytech/substrate"200optional = true201branch = "polkadot-v0.9.30"202203[dependencies.frame-executive]204default-features = false205git = "https://github.com/paritytech/substrate"206branch = "polkadot-v0.9.30"207208[dependencies.frame-support]209default-features = false210git = "https://github.com/paritytech/substrate"211branch = "polkadot-v0.9.30"212213[dependencies.frame-system]214default-features = false215git = "https://github.com/paritytech/substrate"216branch = "polkadot-v0.9.30"217218[dependencies.frame-system-benchmarking]219default-features = false220git = "https://github.com/paritytech/substrate"221optional = true222branch = "polkadot-v0.9.30"223224[dependencies.frame-system-rpc-runtime-api]225default-features = false226git = "https://github.com/paritytech/substrate"227branch = "polkadot-v0.9.30"228229[dependencies.hex-literal]230optional = true231version = '0.3.3'232233[dependencies.serde]234default-features = false235features = ['derive']236optional = true237version = '1.0.130'238239[dependencies.pallet-aura]240default-features = false241git = "https://github.com/paritytech/substrate"242branch = "polkadot-v0.9.30"243244[dependencies.pallet-balances]245default-features = false246git = "https://github.com/paritytech/substrate"247branch = "polkadot-v0.9.30"248249# Contracts specific packages250# [dependencies.pallet-contracts]251# git = 'https://github.com/paritytech/substrate'252# default-features = false253# branch = 'master'254# version = '4.0.0-dev'255256# [dependencies.pallet-contracts-primitives]257# git = 'https://github.com/paritytech/substrate'258# default-features = false259# branch = 'master'260# version = '4.0.0-dev'261262# [dependencies.pallet-contracts-rpc-runtime-api]263# git = 'https://github.com/paritytech/substrate'264# default-features = false265# branch = 'master'266# version = '4.0.0-dev'267268[dependencies.pallet-randomness-collective-flip]269default-features = false270git = "https://github.com/paritytech/substrate"271branch = "polkadot-v0.9.30"272273[dependencies.pallet-sudo]274default-features = false275git = "https://github.com/paritytech/substrate"276branch = "polkadot-v0.9.30"277278[dependencies.pallet-timestamp]279default-features = false280git = "https://github.com/paritytech/substrate"281branch = "polkadot-v0.9.30"282283[dependencies.pallet-transaction-payment]284default-features = false285git = "https://github.com/paritytech/substrate"286branch = "polkadot-v0.9.30"287288[dependencies.pallet-transaction-payment-rpc-runtime-api]289default-features = false290git = "https://github.com/paritytech/substrate"291branch = "polkadot-v0.9.30"292293[dependencies.pallet-treasury]294default-features = false295git = "https://github.com/paritytech/substrate"296branch = "polkadot-v0.9.30"297298[dependencies.sp-arithmetic]299default-features = false300git = "https://github.com/paritytech/substrate"301branch = "polkadot-v0.9.30"302303[dependencies.sp-api]304default-features = false305git = "https://github.com/paritytech/substrate"306branch = "polkadot-v0.9.30"307308[dependencies.sp-block-builder]309default-features = false310git = "https://github.com/paritytech/substrate"311branch = "polkadot-v0.9.30"312313[dependencies.sp-core]314default-features = false315git = "https://github.com/paritytech/substrate"316branch = "polkadot-v0.9.30"317318[dependencies.sp-consensus-aura]319default-features = false320git = "https://github.com/paritytech/substrate"321branch = "polkadot-v0.9.30"322323[dependencies.sp-inherents]324default-features = false325git = "https://github.com/paritytech/substrate"326branch = "polkadot-v0.9.30"327328[dependencies.sp-io]329default-features = false330git = "https://github.com/paritytech/substrate"331branch = "polkadot-v0.9.30"332333[dependencies.sp-offchain]334default-features = false335git = "https://github.com/paritytech/substrate"336branch = "polkadot-v0.9.30"337338[dependencies.sp-runtime]339default-features = false340git = "https://github.com/paritytech/substrate"341branch = "polkadot-v0.9.30"342343[dependencies.sp-session]344default-features = false345git = "https://github.com/paritytech/substrate"346branch = "polkadot-v0.9.30"347348[dependencies.sp-std]349default-features = false350git = "https://github.com/paritytech/substrate"351branch = "polkadot-v0.9.30"352353[dependencies.sp-transaction-pool]354default-features = false355git = "https://github.com/paritytech/substrate"356branch = "polkadot-v0.9.30"357358[dependencies.sp-version]359default-features = false360git = "https://github.com/paritytech/substrate"361branch = "polkadot-v0.9.30"362363[dependencies.smallvec]364version = '1.6.1'365366################################################################################367# Cumulus dependencies368369[dependencies.parachain-info]370default-features = false371git = "https://github.com/paritytech/cumulus"372branch = "polkadot-v0.9.30"373374[dependencies.cumulus-pallet-aura-ext]375git = "https://github.com/paritytech/cumulus"376branch = "polkadot-v0.9.30"377default-features = false378379[dependencies.cumulus-pallet-parachain-system]380git = "https://github.com/paritytech/cumulus"381branch = "polkadot-v0.9.30"382default-features = false383384[dependencies.cumulus-primitives-core]385git = "https://github.com/paritytech/cumulus"386branch = "polkadot-v0.9.30"387default-features = false388389[dependencies.cumulus-pallet-xcm]390git = "https://github.com/paritytech/cumulus"391branch = "polkadot-v0.9.30"392default-features = false393394[dependencies.cumulus-pallet-dmp-queue]395git = "https://github.com/paritytech/cumulus"396branch = "polkadot-v0.9.30"397default-features = false398399[dependencies.cumulus-pallet-xcmp-queue]400git = "https://github.com/paritytech/cumulus"401branch = "polkadot-v0.9.30"402default-features = false403404[dependencies.cumulus-primitives-utility]405git = "https://github.com/paritytech/cumulus"406branch = "polkadot-v0.9.30"407default-features = false408409[dependencies.cumulus-primitives-timestamp]410git = "https://github.com/paritytech/cumulus"411branch = "polkadot-v0.9.30"412default-features = false413414################################################################################415# Polkadot dependencies416417[dependencies.polkadot-parachain]418git = "https://github.com/paritytech/polkadot"419branch = "release-v0.9.30"420default-features = false421422[dependencies.xcm]423git = "https://github.com/paritytech/polkadot"424branch = "release-v0.9.30"425default-features = false426427[dependencies.xcm-builder]428git = "https://github.com/paritytech/polkadot"429branch = "release-v0.9.30"430default-features = false431432[dependencies.xcm-executor]433git = "https://github.com/paritytech/polkadot"434branch = "release-v0.9.30"435default-features = false436437[dependencies.pallet-xcm]438git = "https://github.com/paritytech/polkadot"439branch = "release-v0.9.30"440default-features = false441442################################################################################443# local dependencies444445[dependencies]446orml-vesting.workspace = true447orml-xtokens.workspace = true448orml-tokens.workspace = true449orml-traits.workspace = true450451log = { version = "0.4.16", default-features = false }452up-common = { path = "../../primitives/common", default-features = false }453scale-info = { version = "2.0.1", default-features = false, features = [454 "derive",455] }456derivative = "2.2.0"457pallet-unique = { path = '../../pallets/unique', default-features = false }458up-rpc = { path = "../../primitives/rpc", default-features = false }459app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }460rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }461pallet-inflation = { path = '../../pallets/inflation', default-features = false }462pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }463up-data-structs = { path = '../../primitives/data-structs', default-features = false }464pallet-configuration = { default-features = false, path = "../../pallets/configuration" }465pallet-common = { default-features = false, path = "../../pallets/common" }466pallet-structure = { default-features = false, path = "../../pallets/structure" }467pallet-fungible = { default-features = false, path = "../../pallets/fungible" }468pallet-refungible = { default-features = false, path = "../../pallets/refungible" }469pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }470pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }471pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }472pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }473# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }474pallet-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" }475pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }476pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }477pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }478pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }479pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }480pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }481pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }482fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }483fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }484fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }485evm-coder = { default-features = false, path = '../../crates/evm-coder' }486up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.30' }487pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }488pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }489490################################################################################491# Other Dependencies492493impl-trait-for-tuples = "0.2.2"494495################################################################################496# Dev Dependencies497498[dev-dependencies.logtest]499version = "2.0.0"500501################################################################################502# Build Dependencies503504[build-dependencies.substrate-wasm-builder]505git = "https://github.com/paritytech/substrate"506branch = "polkadot-v0.9.30"tests/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