git.delta.rocks / unique-network / refs/commits / 67532f473fe2

difftreelog

feat add refungible and new-functionality feature

Daniel Shiposha2022-08-01parent: #7a2dbea.patch.diff
in: master

5 files changed

modifiedruntime/common/Cargo.tomldiffbeforeafterboth
--- a/runtime/common/Cargo.toml
+++ b/runtime/common/Cargo.toml
@@ -32,8 +32,10 @@
     'frame-support/runtime-benchmarks',
     'frame-system/runtime-benchmarks',
 ]
-unique-runtime = ['std']
-quartz-runtime = ['std']
+unique-runtime = []
+quartz-runtime = []
+
+refungible = []
 
 [dependencies.sp-core]
 default-features = false
modifiedruntime/common/src/weights.rsdiffbeforeafterboth
--- a/runtime/common/src/weights.rs
+++ b/runtime/common/src/weights.rs
@@ -25,33 +25,36 @@
 };
 use up_data_structs::{CreateItemExData, CreateItemData};
 
-#[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
 macro_rules! max_weight_of {
-	($method:ident ( $($args:tt)* )) => {
-		<FungibleWeights<T>>::$method($($args)*)
-		.max(<NonfungibleWeights<T>>::$method($($args)*))
-		.max(<RefungibleWeights<T>>::$method($($args)*))
-	};
+	($method:ident ( $($args:tt)* )) => {{
+		let max_weight = <FungibleWeights<T>>::$method($($args)*)
+			.max(<NonfungibleWeights<T>>::$method($($args)*));
+
+		#[cfg(feature = "refungible")]
+		let max_weight = max_weight.max(<RefungibleWeights<T>>::$method($($args)*));
+
+		max_weight
+	}};
 }
 
-#[cfg(any(feature = "unique-runtime", feature = "quartz-runtime"))]
-macro_rules! max_weight_of {
-	($method:ident ( $($args:tt)* )) => {
-		<FungibleWeights<T>>::$method($($args)*)
-		.max(<NonfungibleWeights<T>>::$method($($args)*))
+#[cfg(not(feature = "refungible"))]
+pub trait CommonWeightConfigs: FungibleConfig + NonfungibleConfig {}
+
+#[cfg(not(feature = "refungible"))]
+impl<T: FungibleConfig + NonfungibleConfig> CommonWeightConfigs for T {}
+
+#[cfg(feature = "refungible")]
+pub trait CommonWeightConfigs: FungibleConfig + NonfungibleConfig + RefungibleConfig {}
+
+#[cfg(feature = "refungible")]
+impl<T: FungibleConfig + NonfungibleConfig + RefungibleConfig> CommonWeightConfigs for T {}
 
-	};
-}
 
-#[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
-pub struct CommonWeights<T>(PhantomData<T>)
-where
-	T: FungibleConfig + NonfungibleConfig + RefungibleConfig;
+pub struct CommonWeights<T>(PhantomData<T>);
 
-#[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
 impl<T> CommonWeightInfo<T::CrossAccountId> for CommonWeights<T>
 where
-	T: FungibleConfig + NonfungibleConfig + RefungibleConfig,
+	T: CommonWeightConfigs,
 {
 	fn create_item() -> Weight {
 		dispatch_weight::<T>() + max_weight_of!(create_item())
@@ -114,7 +117,7 @@
 	}
 }
 
-#[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
+#[cfg(feature = "refungible")]
 impl<T> RefungibleExtensionsWeightInfo for CommonWeights<T>
 where
 	T: FungibleConfig + NonfungibleConfig + RefungibleConfig,
@@ -124,78 +127,7 @@
 	}
 }
 
-#[cfg(any(feature = "unique-runtime", feature = "quartz-runtime"))]
-pub struct CommonWeights<T>(PhantomData<T>)
-where
-	T: FungibleConfig + NonfungibleConfig;
-
-#[cfg(any(feature = "unique-runtime", feature = "quartz-runtime"))]
-impl<T> CommonWeightInfo<T::CrossAccountId> for CommonWeights<T>
-where
-	T: FungibleConfig + NonfungibleConfig,
-{
-	fn create_item() -> Weight {
-		dispatch_weight::<T>() + max_weight_of!(create_item())
-	}
-
-	fn create_multiple_items(data: &[CreateItemData]) -> Weight {
-		dispatch_weight::<T>() + max_weight_of!(create_multiple_items(data))
-	}
-
-	fn create_multiple_items_ex(data: &CreateItemExData<T::CrossAccountId>) -> Weight {
-		dispatch_weight::<T>() + max_weight_of!(create_multiple_items_ex(data))
-	}
-
-	fn burn_item() -> Weight {
-		dispatch_weight::<T>() + max_weight_of!(burn_item())
-	}
-
-	fn set_collection_properties(amount: u32) -> Weight {
-		dispatch_weight::<T>() + max_weight_of!(set_collection_properties(amount))
-	}
-
-	fn delete_collection_properties(amount: u32) -> Weight {
-		dispatch_weight::<T>() + max_weight_of!(delete_collection_properties(amount))
-	}
-
-	fn set_token_properties(amount: u32) -> Weight {
-		dispatch_weight::<T>() + max_weight_of!(set_token_properties(amount))
-	}
-
-	fn delete_token_properties(amount: u32) -> Weight {
-		dispatch_weight::<T>() + max_weight_of!(delete_token_properties(amount))
-	}
-
-	fn set_token_property_permissions(amount: u32) -> Weight {
-		dispatch_weight::<T>() + max_weight_of!(set_token_property_permissions(amount))
-	}
-
-	fn transfer() -> Weight {
-		dispatch_weight::<T>() + max_weight_of!(transfer())
-	}
-
-	fn approve() -> Weight {
-		dispatch_weight::<T>() + max_weight_of!(approve())
-	}
-
-	fn transfer_from() -> Weight {
-		dispatch_weight::<T>() + max_weight_of!(transfer_from())
-	}
-
-	fn burn_from() -> Weight {
-		dispatch_weight::<T>() + max_weight_of!(burn_from())
-	}
-
-	fn burn_recursively_self_raw() -> Weight {
-		max_weight_of!(burn_recursively_self_raw())
-	}
-
-	fn burn_recursively_breadth_raw(amount: u32) -> Weight {
-		max_weight_of!(burn_recursively_breadth_raw(amount))
-	}
-}
-
-#[cfg(any(feature = "unique-runtime", feature = "quartz-runtime"))]
+#[cfg(not(feature = "refungible"))]
 impl<T> RefungibleExtensionsWeightInfo for CommonWeights<T>
 where
 	T: FungibleConfig + NonfungibleConfig,
modifiedruntime/opal/Cargo.tomldiffbeforeafterboth
before · runtime/opal/Cargo.toml
1################################################################################2# Package34[package]5authors = ['Unique Network <support@uniquenetwork.io>']6build = 'build.rs'7description = 'Opal Runtime'8edition = '2021'9homepage = 'https://unique.network'10license = 'GPLv3'11name = 'opal-runtime'12repository = 'https://github.com/UniqueNetwork/unique-chain'13version = '0.9.24'1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std']20runtime-benchmarks = [21    'hex-literal',22    'frame-benchmarking',23    'frame-support/runtime-benchmarks',24    'frame-system-benchmarking',25    'frame-system/runtime-benchmarks',26    'pallet-ethereum/runtime-benchmarks',27    'pallet-evm-migration/runtime-benchmarks',28    'pallet-evm-coder-substrate/runtime-benchmarks',29    'pallet-balances/runtime-benchmarks',30    'pallet-timestamp/runtime-benchmarks',31    'pallet-common/runtime-benchmarks',32    'pallet-structure/runtime-benchmarks',33    'pallet-fungible/runtime-benchmarks',34    'pallet-refungible/runtime-benchmarks',35    'pallet-nonfungible/runtime-benchmarks',36    'pallet-proxy-rmrk-core/runtime-benchmarks',37    'pallet-proxy-rmrk-equip/runtime-benchmarks',38    'pallet-unique/runtime-benchmarks',39    'pallet-inflation/runtime-benchmarks',40    'pallet-unique-scheduler/runtime-benchmarks',41    'pallet-xcm/runtime-benchmarks',42    'sp-runtime/runtime-benchmarks',43    'xcm-builder/runtime-benchmarks',44]45try-runtime = [46    'frame-try-runtime',47    'frame-executive/try-runtime',48    'frame-system/try-runtime',49]50std = [51    'codec/std',52    'cumulus-pallet-aura-ext/std',53    'cumulus-pallet-parachain-system/std',54    'cumulus-pallet-xcm/std',55    'cumulus-pallet-xcmp-queue/std',56    'cumulus-primitives-core/std',57    'cumulus-primitives-utility/std',58    'frame-try-runtime/std',59    'frame-executive/std',60    'frame-support/std',61    'frame-system/std',62    'frame-system-rpc-runtime-api/std',63    'pallet-aura/std',64    'pallet-balances/std',65    # 'pallet-contracts/std',66    # 'pallet-contracts-primitives/std',67    # 'pallet-contracts-rpc-runtime-api/std',68    # 'pallet-contract-helpers/std',69    'pallet-randomness-collective-flip/std',70    'pallet-sudo/std',71    'pallet-timestamp/std',72    'pallet-transaction-payment/std',73    'pallet-transaction-payment-rpc-runtime-api/std',74    'pallet-treasury/std',75    # 'pallet-vesting/std',76    'pallet-evm/std',77    'pallet-evm-migration/std',78    'pallet-evm-contract-helpers/std',79    'pallet-evm-transaction-payment/std',80    'pallet-evm-coder-substrate/std',81    'pallet-ethereum/std',82    'pallet-base-fee/std',83    'fp-rpc/std',84    'up-rpc/std',85    'fp-evm-mapping/std',86    'fp-self-contained/std',87    'parachain-info/std',88    'serde',89    'pallet-inflation/std',90    'pallet-common/std',91    'pallet-structure/std',92    'pallet-fungible/std',93    'pallet-refungible/std',94    'pallet-nonfungible/std',95    'pallet-proxy-rmrk-core/std',96    'pallet-proxy-rmrk-equip/std',97    'pallet-unique/std',98    'pallet-unique-scheduler/std',99    'pallet-charge-transaction/std',100    'up-data-structs/std',101    'sp-api/std',102    'sp-block-builder/std',103    "sp-consensus-aura/std",104    'sp-core/std',105    'sp-inherents/std',106    'sp-io/std',107    'sp-offchain/std',108    'sp-runtime/std',109    'sp-session/std',110    'sp-std/std',111    'sp-transaction-pool/std',112    'sp-version/std',113    'xcm/std',114    'xcm-builder/std',115    'xcm-executor/std',116    'unique-runtime-common/std',117    'rmrk-rpc/std',118119    "orml-vesting/std",120]121limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']122123################################################################################124# Substrate Dependencies125126[dependencies.codec]127default-features = false128features = ['derive']129package = 'parity-scale-codec'130version = '3.1.2'131132[dependencies.frame-benchmarking]133default-features = false134git = "https://github.com/paritytech/substrate"135optional = true136branch = "polkadot-v0.9.24"137138[dependencies.frame-try-runtime]139default-features = false140git = 'https://github.com/paritytech/substrate'141optional = true142branch = 'polkadot-v0.9.24'143144[dependencies.frame-executive]145default-features = false146git = "https://github.com/paritytech/substrate"147branch = "polkadot-v0.9.24"148149[dependencies.frame-support]150default-features = false151git = "https://github.com/paritytech/substrate"152branch = "polkadot-v0.9.24"153154[dependencies.frame-system]155default-features = false156git = "https://github.com/paritytech/substrate"157branch = "polkadot-v0.9.24"158159[dependencies.frame-system-benchmarking]160default-features = false161git = "https://github.com/paritytech/substrate"162optional = true163branch = "polkadot-v0.9.24"164165[dependencies.frame-system-rpc-runtime-api]166default-features = false167git = "https://github.com/paritytech/substrate"168branch = "polkadot-v0.9.24"169170[dependencies.hex-literal]171optional = true172version = '0.3.3'173174[dependencies.serde]175default-features = false176features = ['derive']177optional = true178version = '1.0.130'179180[dependencies.pallet-aura]181default-features = false182git = "https://github.com/paritytech/substrate"183branch = "polkadot-v0.9.24"184185[dependencies.pallet-balances]186default-features = false187git = "https://github.com/paritytech/substrate"188branch = "polkadot-v0.9.24"189190# Contracts specific packages191# [dependencies.pallet-contracts]192# git = 'https://github.com/paritytech/substrate'193# default-features = false194# branch = 'master'195# version = '4.0.0-dev'196197# [dependencies.pallet-contracts-primitives]198# git = 'https://github.com/paritytech/substrate'199# default-features = false200# branch = 'master'201# version = '4.0.0-dev'202203# [dependencies.pallet-contracts-rpc-runtime-api]204# git = 'https://github.com/paritytech/substrate'205# default-features = false206# branch = 'master'207# version = '4.0.0-dev'208209[dependencies.pallet-randomness-collective-flip]210default-features = false211git = "https://github.com/paritytech/substrate"212branch = "polkadot-v0.9.24"213214[dependencies.pallet-sudo]215default-features = false216git = "https://github.com/paritytech/substrate"217branch = "polkadot-v0.9.24"218219[dependencies.pallet-timestamp]220default-features = false221git = "https://github.com/paritytech/substrate"222branch = "polkadot-v0.9.24"223224[dependencies.pallet-transaction-payment]225default-features = false226git = "https://github.com/paritytech/substrate"227branch = "polkadot-v0.9.24"228229[dependencies.pallet-transaction-payment-rpc-runtime-api]230default-features = false231git = "https://github.com/paritytech/substrate"232branch = "polkadot-v0.9.24"233234[dependencies.pallet-treasury]235default-features = false236git = "https://github.com/paritytech/substrate"237branch = "polkadot-v0.9.24"238239# [dependencies.pallet-vesting]240# default-features = false241# git = 'https://github.com/paritytech/substrate'242# branch = 'master'243244[dependencies.sp-arithmetic]245default-features = false246git = "https://github.com/paritytech/substrate"247branch = "polkadot-v0.9.24"248249[dependencies.sp-api]250default-features = false251git = "https://github.com/paritytech/substrate"252branch = "polkadot-v0.9.24"253254[dependencies.sp-block-builder]255default-features = false256git = "https://github.com/paritytech/substrate"257branch = "polkadot-v0.9.24"258259[dependencies.sp-core]260default-features = false261git = "https://github.com/paritytech/substrate"262branch = "polkadot-v0.9.24"263264[dependencies.sp-consensus-aura]265default-features = false266git = "https://github.com/paritytech/substrate"267branch = "polkadot-v0.9.24"268269[dependencies.sp-inherents]270default-features = false271git = "https://github.com/paritytech/substrate"272branch = "polkadot-v0.9.24"273274[dependencies.sp-io]275default-features = false276git = "https://github.com/paritytech/substrate"277branch = "polkadot-v0.9.24"278279[dependencies.sp-offchain]280default-features = false281git = "https://github.com/paritytech/substrate"282branch = "polkadot-v0.9.24"283284[dependencies.sp-runtime]285default-features = false286git = "https://github.com/paritytech/substrate"287branch = "polkadot-v0.9.24"288289[dependencies.sp-session]290default-features = false291git = "https://github.com/paritytech/substrate"292branch = "polkadot-v0.9.24"293294[dependencies.sp-std]295default-features = false296git = "https://github.com/paritytech/substrate"297branch = "polkadot-v0.9.24"298299[dependencies.sp-transaction-pool]300default-features = false301git = "https://github.com/paritytech/substrate"302branch = "polkadot-v0.9.24"303304[dependencies.sp-version]305default-features = false306git = "https://github.com/paritytech/substrate"307branch = "polkadot-v0.9.24"308309[dependencies.smallvec]310version = '1.6.1'311312################################################################################313# Cumulus dependencies314315[dependencies.parachain-info]316default-features = false317git = "https://github.com/paritytech/cumulus"318branch = "polkadot-v0.9.24"319320[dependencies.cumulus-pallet-aura-ext]321git = "https://github.com/paritytech/cumulus"322branch = "polkadot-v0.9.24"323default-features = false324325[dependencies.cumulus-pallet-parachain-system]326git = "https://github.com/paritytech/cumulus"327branch = "polkadot-v0.9.24"328default-features = false329330[dependencies.cumulus-primitives-core]331git = "https://github.com/paritytech/cumulus"332branch = "polkadot-v0.9.24"333default-features = false334335[dependencies.cumulus-pallet-xcm]336git = "https://github.com/paritytech/cumulus"337branch = "polkadot-v0.9.24"338default-features = false339340[dependencies.cumulus-pallet-dmp-queue]341git = "https://github.com/paritytech/cumulus"342branch = "polkadot-v0.9.24"343default-features = false344345[dependencies.cumulus-pallet-xcmp-queue]346git = "https://github.com/paritytech/cumulus"347branch = "polkadot-v0.9.24"348default-features = false349350[dependencies.cumulus-primitives-utility]351git = "https://github.com/paritytech/cumulus"352branch = "polkadot-v0.9.24"353default-features = false354355[dependencies.cumulus-primitives-timestamp]356git = "https://github.com/paritytech/cumulus"357branch = "polkadot-v0.9.24"358default-features = false359360################################################################################361# Polkadot dependencies362363[dependencies.polkadot-parachain]364git = "https://github.com/paritytech/polkadot"365branch = "release-v0.9.24"366default-features = false367368[dependencies.xcm]369git = "https://github.com/paritytech/polkadot"370branch = "release-v0.9.24"371default-features = false372373[dependencies.xcm-builder]374git = "https://github.com/paritytech/polkadot"375branch = "release-v0.9.24"376default-features = false377378[dependencies.xcm-executor]379git = "https://github.com/paritytech/polkadot"380branch = "release-v0.9.24"381default-features = false382383[dependencies.pallet-xcm]384git = "https://github.com/paritytech/polkadot"385branch = "release-v0.9.24"386default-features = false387388[dependencies.orml-vesting]389git = "https://github.com/uniquenetwork/open-runtime-module-library"390branch = "unique-polkadot-v0.9.24"391version = "0.4.1-dev"392default-features = false393394################################################################################395# local dependencies396397[dependencies]398log = { version = "0.4.16", default-features = false }399unique-runtime-common = { path = "../common", default-features = false }400scale-info = { version = "2.0.1", default-features = false, features = [401    "derive",402] }403derivative = "2.2.0"404pallet-unique = { path = '../../pallets/unique', default-features = false }405up-rpc = { path = "../../primitives/rpc", default-features = false }406rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }407fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }408pallet-inflation = { path = '../../pallets/inflation', default-features = false }409up-data-structs = { path = '../../primitives/data-structs', default-features = false }410pallet-common = { default-features = false, path = "../../pallets/common" }411pallet-structure = { default-features = false, path = "../../pallets/structure" }412pallet-fungible = { default-features = false, path = "../../pallets/fungible" }413pallet-refungible = { default-features = false, path = "../../pallets/refungible" }414pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }415pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }416pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }417pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }418# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }419pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.24", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }420pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }421pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }422pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }423pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }424pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }425pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }426pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }427fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }428fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }429430################################################################################431# Build Dependencies432433[build-dependencies.substrate-wasm-builder]434git = "https://github.com/paritytech/substrate"435branch = "polkadot-v0.9.24"
after · runtime/opal/Cargo.toml
1################################################################################2# Package34[package]5authors = ['Unique Network <support@uniquenetwork.io>']6build = 'build.rs'7description = 'Opal Runtime'8edition = '2021'9homepage = 'https://unique.network'10license = 'GPLv3'11name = 'opal-runtime'12repository = 'https://github.com/UniqueNetwork/unique-chain'13version = '0.9.24'1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std', 'new-functionality']20runtime-benchmarks = [21    'hex-literal',22    'frame-benchmarking',23    'frame-support/runtime-benchmarks',24    'frame-system-benchmarking',25    'frame-system/runtime-benchmarks',26    'pallet-ethereum/runtime-benchmarks',27    'pallet-evm-migration/runtime-benchmarks',28    'pallet-evm-coder-substrate/runtime-benchmarks',29    'pallet-balances/runtime-benchmarks',30    'pallet-timestamp/runtime-benchmarks',31    'pallet-common/runtime-benchmarks',32    'pallet-structure/runtime-benchmarks',33    'pallet-fungible/runtime-benchmarks',34    'pallet-refungible/runtime-benchmarks',35    'pallet-nonfungible/runtime-benchmarks',36    'pallet-proxy-rmrk-core/runtime-benchmarks',37    'pallet-proxy-rmrk-equip/runtime-benchmarks',38    'pallet-unique/runtime-benchmarks',39    'pallet-inflation/runtime-benchmarks',40    'pallet-unique-scheduler/runtime-benchmarks',41    'pallet-xcm/runtime-benchmarks',42    'sp-runtime/runtime-benchmarks',43    'xcm-builder/runtime-benchmarks',44]45try-runtime = [46    'frame-try-runtime',47    'frame-executive/try-runtime',48    'frame-system/try-runtime',49]50std = [51    'codec/std',52    'cumulus-pallet-aura-ext/std',53    'cumulus-pallet-parachain-system/std',54    'cumulus-pallet-xcm/std',55    'cumulus-pallet-xcmp-queue/std',56    'cumulus-primitives-core/std',57    'cumulus-primitives-utility/std',58    'frame-try-runtime/std',59    'frame-executive/std',60    'frame-support/std',61    'frame-system/std',62    'frame-system-rpc-runtime-api/std',63    'pallet-aura/std',64    'pallet-balances/std',65    # 'pallet-contracts/std',66    # 'pallet-contracts-primitives/std',67    # 'pallet-contracts-rpc-runtime-api/std',68    # 'pallet-contract-helpers/std',69    'pallet-randomness-collective-flip/std',70    'pallet-sudo/std',71    'pallet-timestamp/std',72    'pallet-transaction-payment/std',73    'pallet-transaction-payment-rpc-runtime-api/std',74    'pallet-treasury/std',75    # 'pallet-vesting/std',76    'pallet-evm/std',77    'pallet-evm-migration/std',78    'pallet-evm-contract-helpers/std',79    'pallet-evm-transaction-payment/std',80    'pallet-evm-coder-substrate/std',81    'pallet-ethereum/std',82    'pallet-base-fee/std',83    'fp-rpc/std',84    'up-rpc/std',85    'fp-evm-mapping/std',86    'fp-self-contained/std',87    'parachain-info/std',88    'serde',89    'pallet-inflation/std',90    'pallet-common/std',91    'pallet-structure/std',92    'pallet-fungible/std',93    'pallet-refungible/std',94    'pallet-nonfungible/std',95    'pallet-proxy-rmrk-core/std',96    'pallet-proxy-rmrk-equip/std',97    'pallet-unique/std',98    'pallet-unique-scheduler/std',99    'pallet-charge-transaction/std',100    'up-data-structs/std',101    'sp-api/std',102    'sp-block-builder/std',103    "sp-consensus-aura/std",104    'sp-core/std',105    'sp-inherents/std',106    'sp-io/std',107    'sp-offchain/std',108    'sp-runtime/std',109    'sp-session/std',110    'sp-std/std',111    'sp-transaction-pool/std',112    'sp-version/std',113    'xcm/std',114    'xcm-builder/std',115    'xcm-executor/std',116    'unique-runtime-common/std',117    'rmrk-rpc/std',118119    "orml-vesting/std",120]121limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']122new-functionality = [123    'unique-runtime-common/refungible',124]125126################################################################################127# Substrate Dependencies128129[dependencies.codec]130default-features = false131features = ['derive']132package = 'parity-scale-codec'133version = '3.1.2'134135[dependencies.frame-benchmarking]136default-features = false137git = "https://github.com/paritytech/substrate"138optional = true139branch = "polkadot-v0.9.24"140141[dependencies.frame-try-runtime]142default-features = false143git = 'https://github.com/paritytech/substrate'144optional = true145branch = 'polkadot-v0.9.24'146147[dependencies.frame-executive]148default-features = false149git = "https://github.com/paritytech/substrate"150branch = "polkadot-v0.9.24"151152[dependencies.frame-support]153default-features = false154git = "https://github.com/paritytech/substrate"155branch = "polkadot-v0.9.24"156157[dependencies.frame-system]158default-features = false159git = "https://github.com/paritytech/substrate"160branch = "polkadot-v0.9.24"161162[dependencies.frame-system-benchmarking]163default-features = false164git = "https://github.com/paritytech/substrate"165optional = true166branch = "polkadot-v0.9.24"167168[dependencies.frame-system-rpc-runtime-api]169default-features = false170git = "https://github.com/paritytech/substrate"171branch = "polkadot-v0.9.24"172173[dependencies.hex-literal]174optional = true175version = '0.3.3'176177[dependencies.serde]178default-features = false179features = ['derive']180optional = true181version = '1.0.130'182183[dependencies.pallet-aura]184default-features = false185git = "https://github.com/paritytech/substrate"186branch = "polkadot-v0.9.24"187188[dependencies.pallet-balances]189default-features = false190git = "https://github.com/paritytech/substrate"191branch = "polkadot-v0.9.24"192193# Contracts specific packages194# [dependencies.pallet-contracts]195# git = 'https://github.com/paritytech/substrate'196# default-features = false197# branch = 'master'198# version = '4.0.0-dev'199200# [dependencies.pallet-contracts-primitives]201# git = 'https://github.com/paritytech/substrate'202# default-features = false203# branch = 'master'204# version = '4.0.0-dev'205206# [dependencies.pallet-contracts-rpc-runtime-api]207# git = 'https://github.com/paritytech/substrate'208# default-features = false209# branch = 'master'210# version = '4.0.0-dev'211212[dependencies.pallet-randomness-collective-flip]213default-features = false214git = "https://github.com/paritytech/substrate"215branch = "polkadot-v0.9.24"216217[dependencies.pallet-sudo]218default-features = false219git = "https://github.com/paritytech/substrate"220branch = "polkadot-v0.9.24"221222[dependencies.pallet-timestamp]223default-features = false224git = "https://github.com/paritytech/substrate"225branch = "polkadot-v0.9.24"226227[dependencies.pallet-transaction-payment]228default-features = false229git = "https://github.com/paritytech/substrate"230branch = "polkadot-v0.9.24"231232[dependencies.pallet-transaction-payment-rpc-runtime-api]233default-features = false234git = "https://github.com/paritytech/substrate"235branch = "polkadot-v0.9.24"236237[dependencies.pallet-treasury]238default-features = false239git = "https://github.com/paritytech/substrate"240branch = "polkadot-v0.9.24"241242# [dependencies.pallet-vesting]243# default-features = false244# git = 'https://github.com/paritytech/substrate'245# branch = 'master'246247[dependencies.sp-arithmetic]248default-features = false249git = "https://github.com/paritytech/substrate"250branch = "polkadot-v0.9.24"251252[dependencies.sp-api]253default-features = false254git = "https://github.com/paritytech/substrate"255branch = "polkadot-v0.9.24"256257[dependencies.sp-block-builder]258default-features = false259git = "https://github.com/paritytech/substrate"260branch = "polkadot-v0.9.24"261262[dependencies.sp-core]263default-features = false264git = "https://github.com/paritytech/substrate"265branch = "polkadot-v0.9.24"266267[dependencies.sp-consensus-aura]268default-features = false269git = "https://github.com/paritytech/substrate"270branch = "polkadot-v0.9.24"271272[dependencies.sp-inherents]273default-features = false274git = "https://github.com/paritytech/substrate"275branch = "polkadot-v0.9.24"276277[dependencies.sp-io]278default-features = false279git = "https://github.com/paritytech/substrate"280branch = "polkadot-v0.9.24"281282[dependencies.sp-offchain]283default-features = false284git = "https://github.com/paritytech/substrate"285branch = "polkadot-v0.9.24"286287[dependencies.sp-runtime]288default-features = false289git = "https://github.com/paritytech/substrate"290branch = "polkadot-v0.9.24"291292[dependencies.sp-session]293default-features = false294git = "https://github.com/paritytech/substrate"295branch = "polkadot-v0.9.24"296297[dependencies.sp-std]298default-features = false299git = "https://github.com/paritytech/substrate"300branch = "polkadot-v0.9.24"301302[dependencies.sp-transaction-pool]303default-features = false304git = "https://github.com/paritytech/substrate"305branch = "polkadot-v0.9.24"306307[dependencies.sp-version]308default-features = false309git = "https://github.com/paritytech/substrate"310branch = "polkadot-v0.9.24"311312[dependencies.smallvec]313version = '1.6.1'314315################################################################################316# Cumulus dependencies317318[dependencies.parachain-info]319default-features = false320git = "https://github.com/paritytech/cumulus"321branch = "polkadot-v0.9.24"322323[dependencies.cumulus-pallet-aura-ext]324git = "https://github.com/paritytech/cumulus"325branch = "polkadot-v0.9.24"326default-features = false327328[dependencies.cumulus-pallet-parachain-system]329git = "https://github.com/paritytech/cumulus"330branch = "polkadot-v0.9.24"331default-features = false332333[dependencies.cumulus-primitives-core]334git = "https://github.com/paritytech/cumulus"335branch = "polkadot-v0.9.24"336default-features = false337338[dependencies.cumulus-pallet-xcm]339git = "https://github.com/paritytech/cumulus"340branch = "polkadot-v0.9.24"341default-features = false342343[dependencies.cumulus-pallet-dmp-queue]344git = "https://github.com/paritytech/cumulus"345branch = "polkadot-v0.9.24"346default-features = false347348[dependencies.cumulus-pallet-xcmp-queue]349git = "https://github.com/paritytech/cumulus"350branch = "polkadot-v0.9.24"351default-features = false352353[dependencies.cumulus-primitives-utility]354git = "https://github.com/paritytech/cumulus"355branch = "polkadot-v0.9.24"356default-features = false357358[dependencies.cumulus-primitives-timestamp]359git = "https://github.com/paritytech/cumulus"360branch = "polkadot-v0.9.24"361default-features = false362363################################################################################364# Polkadot dependencies365366[dependencies.polkadot-parachain]367git = "https://github.com/paritytech/polkadot"368branch = "release-v0.9.24"369default-features = false370371[dependencies.xcm]372git = "https://github.com/paritytech/polkadot"373branch = "release-v0.9.24"374default-features = false375376[dependencies.xcm-builder]377git = "https://github.com/paritytech/polkadot"378branch = "release-v0.9.24"379default-features = false380381[dependencies.xcm-executor]382git = "https://github.com/paritytech/polkadot"383branch = "release-v0.9.24"384default-features = false385386[dependencies.pallet-xcm]387git = "https://github.com/paritytech/polkadot"388branch = "release-v0.9.24"389default-features = false390391[dependencies.orml-vesting]392git = "https://github.com/uniquenetwork/open-runtime-module-library"393branch = "unique-polkadot-v0.9.24"394version = "0.4.1-dev"395default-features = false396397################################################################################398# local dependencies399400[dependencies]401log = { version = "0.4.16", default-features = false }402unique-runtime-common = { path = "../common", default-features = false }403scale-info = { version = "2.0.1", default-features = false, features = [404    "derive",405] }406derivative = "2.2.0"407pallet-unique = { path = '../../pallets/unique', default-features = false }408up-rpc = { path = "../../primitives/rpc", default-features = false }409rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }410fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }411pallet-inflation = { path = '../../pallets/inflation', default-features = false }412up-data-structs = { path = '../../primitives/data-structs', default-features = false }413pallet-common = { default-features = false, path = "../../pallets/common" }414pallet-structure = { default-features = false, path = "../../pallets/structure" }415pallet-fungible = { default-features = false, path = "../../pallets/fungible" }416pallet-refungible = { default-features = false, path = "../../pallets/refungible" }417pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }418pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }419pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }420pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }421# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }422pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.24", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }423pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }424pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }425pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }426pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }427pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }428pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }429pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }430fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }431fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }432433################################################################################434# Build Dependencies435436[build-dependencies.substrate-wasm-builder]437git = "https://github.com/paritytech/substrate"438branch = "polkadot-v0.9.24"
modifiedruntime/quartz/Cargo.tomldiffbeforeafterboth
--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -16,7 +16,7 @@
 targets = ['x86_64-unknown-linux-gnu']
 
 [features]
-default = ['std']
+default = ['std', 'new-functionality']
 runtime-benchmarks = [
     'hex-literal',
     'frame-benchmarking',
@@ -118,6 +118,7 @@
     "orml-vesting/std",
 ]
 limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']
+new-functionality = []
 
 ################################################################################
 # Substrate Dependencies
modifiedruntime/unique/Cargo.tomldiffbeforeafterboth
--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -16,7 +16,7 @@
 targets = ['x86_64-unknown-linux-gnu']
 
 [features]
-default = ['std', 'unique-runtime']
+default = ['std', 'new-functionality']
 runtime-benchmarks = [
     'hex-literal',
     'frame-benchmarking',
@@ -119,7 +119,7 @@
     "orml-vesting/std",
 ]
 limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']
-unique-runtime = []
+new-functionality = []
 
 ################################################################################
 # Substrate Dependencies