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

difftreelog

chore fix cargo check warnings

Fahrrader2022-12-14parent: #966149d.patch.diff
in: master

10 files changed

modifiedCargo.tomldiffbeforeafterboth
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,5 +1,3 @@
-cargo-features = ["workspace-inheritance"]
-
 [workspace]
 resolver = "2"
 members = [
modifiedpallets/common/src/erc.rsdiffbeforeafterboth
--- a/pallets/common/src/erc.rs
+++ b/pallets/common/src/erc.rs
@@ -701,29 +701,6 @@
 	}
 }
 
-/// ### Note
-/// Do not forget to add: `self.consume_store_reads(1)?;`
-fn check_is_owner_or_admin<T: Config>(
-	caller: caller,
-	collection: &CollectionHandle<T>,
-) -> Result<T::CrossAccountId> {
-	let caller = T::CrossAccountId::from_eth(caller);
-	collection
-		.check_is_owner_or_admin(&caller)
-		.map_err(dispatch_to_evm::<T>)?;
-	Ok(caller)
-}
-
-/// ### Note
-/// Do not forget to add: `self.consume_store_writes(1)?;`
-fn save<T: Config>(collection: &CollectionHandle<T>) -> Result<void> {
-	collection
-		.check_is_internal()
-		.map_err(dispatch_to_evm::<T>)?;
-	collection.save().map_err(dispatch_to_evm::<T>)?;
-	Ok(())
-}
-
 /// Contains static property keys and values.
 pub mod static_property {
 	use evm_coder::{
modifiedpallets/common/src/eth.rsdiffbeforeafterboth
--- a/pallets/common/src/eth.rs
+++ b/pallets/common/src/eth.rs
@@ -121,6 +121,7 @@
 }
 
 impl EthCrossAccount {
+	/// Converts `CrossAccountId` to `EthCrossAccount` to be correctly usable with Ethereum.
 	pub fn from_sub_cross_account<T>(cross_account_id: &T::CrossAccountId) -> Self
 	where
 		T: pallet_evm::Config,
@@ -139,6 +140,7 @@
 		}
 	}
 
+	/// Converts `EthCrossAccount` to `CrossAccountId` to be correctly usable with Substrate.
 	pub fn into_sub_cross_account<T>(&self) -> evm_coder::execution::Result<T::CrossAccountId>
 	where
 		T: pallet_evm::Config,
@@ -155,10 +157,14 @@
 		}
 	}
 }
+
+/// Descriptor of the kind of user to be used within collection permissions on certain operations.
 #[derive(Default, Debug, Clone, Copy, AbiCoder)]
 #[repr(u8)]
 pub enum CollectionPermissions {
+	/// Collection admin.
 	#[default]
 	CollectionAdmin,
+	/// Owner of a token.
 	TokenOwner,
 }
modifiedpallets/foreign-assets/Cargo.tomldiffbeforeafterboth
--- a/pallets/foreign-assets/Cargo.toml
+++ b/pallets/foreign-assets/Cargo.toml
@@ -1,5 +1,3 @@
-cargo-features = ["workspace-inheritance"]
-
 [package]
 name = "pallet-foreign-assets"
 version = "0.1.0"
modifiedpallets/refungible/src/lib.rsdiffbeforeafterboth
--- a/pallets/refungible/src/lib.rs
+++ b/pallets/refungible/src/lib.rs
@@ -90,12 +90,11 @@
 use crate::erc_token::ERC20Events;
 use crate::erc::ERC721Events;
 
-use codec::{Encode, Decode, MaxEncodedLen};
 use core::ops::Deref;
 use derivative::Derivative;
 use evm_coder::ToLog;
 use frame_support::{
-	BoundedBTreeMap, BoundedVec, ensure, fail, storage::with_transaction, transactional,
+	BoundedBTreeMap, ensure, fail, storage::with_transaction, transactional,
 	pallet_prelude::ConstU32,
 };
 use pallet_evm::{account::CrossAccountId, Pallet as PalletEvm};
@@ -105,15 +104,14 @@
 	Event as CommonEvent, Pallet as PalletCommon, erc::CollectionHelpersEvents,
 };
 use pallet_structure::Pallet as PalletStructure;
-use scale_info::TypeInfo;
 use sp_core::{Get, H160};
 use sp_runtime::{ArithmeticError, DispatchError, DispatchResult, TransactionOutcome};
 use sp_std::{vec::Vec, vec, collections::btree_map::BTreeMap};
 use up_data_structs::{
 	AccessMode, budget::Budget, CollectionId, CollectionFlags, CollectionPropertiesVec,
-	CreateCollectionData, CustomDataLimit, mapping::TokenAddressMapping, MAX_ITEMS_PER_BATCH,
-	MAX_REFUNGIBLE_PIECES, Property, PropertyKey, PropertyKeyPermission, PropertyPermission,
-	PropertyScope, PropertyValue, TokenId, TrySetProperty,
+	CreateCollectionData, mapping::TokenAddressMapping, MAX_ITEMS_PER_BATCH, MAX_REFUNGIBLE_PIECES,
+	Property, PropertyKey, PropertyKeyPermission, PropertyPermission, PropertyScope, PropertyValue,
+	TokenId, TrySetProperty,
 };
 
 pub use pallet::*;
@@ -133,17 +131,6 @@
 }
 pub(crate) type SelfWeightOf<T> = <T as Config>::WeightInfo;
 
-/// Token data, stored independently from other data used to describe it
-/// for the convenience of database access. Notably contains the token metadata.
-#[struct_versioning::versioned(version = 2, upper)]
-#[derive(Encode, Decode, Default, TypeInfo, MaxEncodedLen)]
-pub struct ItemData {
-	pub const_data: BoundedVec<u8, CustomDataLimit>,
-
-	#[version(..2)]
-	pub variable_data: BoundedVec<u8, CustomDataLimit>,
-}
-
 #[frame_support::pallet]
 pub mod pallet {
 	use super::*;
@@ -151,7 +138,6 @@
 		Blake2_128, Blake2_128Concat, Twox64Concat, pallet_prelude::*, storage::Key,
 		traits::StorageVersion,
 	};
-	use frame_system::pallet_prelude::*;
 	use up_data_structs::{CollectionId, TokenId};
 	use super::weights::WeightInfo;
 
@@ -192,16 +178,6 @@
 	#[pallet::storage]
 	pub type TokensBurnt<T: Config> =
 		StorageMap<Hasher = Twox64Concat, Key = CollectionId, Value = u32, QueryKind = ValueQuery>;
-
-	/// Token data, used to partially describe a token.
-	// TODO: remove
-	#[pallet::storage]
-	#[deprecated(since = "0.2.0", note = "ItemData is no more contains usefull data")]
-	pub type TokenData<T: Config> = StorageNMap<
-		Key = (Key<Twox64Concat, CollectionId>, Key<Twox64Concat, TokenId>),
-		Value = ItemData,
-		QueryKind = ValueQuery,
-	>;
 
 	/// Amount of pieces a refungible token is split into.
 	#[pallet::storage]
@@ -284,20 +260,6 @@
 		Value = bool,
 		QueryKind = ValueQuery,
 	>;
-
-	#[pallet::hooks]
-	impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
-		fn on_runtime_upgrade() -> Weight {
-			let storage_version = StorageVersion::get::<Pallet<T>>();
-			if storage_version < StorageVersion::new(2) {
-				#[allow(deprecated)]
-				let _ = <TokenData<T>>::clear(u32::MAX, None);
-			}
-			StorageVersion::new(2).put::<Pallet<T>>();
-
-			Weight::zero()
-		}
-	}
 }
 
 pub struct RefungibleHandle<T: Config>(pallet_common::CollectionHandle<T>);
modifiedpallets/unique/src/lib.rsdiffbeforeafterboth
--- a/pallets/unique/src/lib.rs
+++ b/pallets/unique/src/lib.rs
@@ -74,7 +74,7 @@
 extern crate alloc;
 
 use frame_support::{
-	decl_module, decl_storage, decl_error, decl_event,
+	decl_module, decl_storage, decl_error,
 	dispatch::DispatchResult,
 	ensure, fail,
 	weights::{Weight},
@@ -91,7 +91,7 @@
 	CreateItemData, CollectionLimits, CollectionPermissions, CollectionId, CollectionMode, TokenId,
 	CreateCollectionData, CreateItemExData, budget, Property, PropertyKey, PropertyKeyPermission,
 };
-use pallet_evm::{account::CrossAccountId};
+use pallet_evm::account::CrossAccountId;
 use pallet_common::{
 	CollectionHandle, Pallet as PalletCommon, CommonWeightInfo, dispatch::dispatch_tx,
 	dispatch::CollectionDispatch, RefungibleExtensionsWeightInfo,
modifiedruntime/common/config/pallets/app_promotion.rsdiffbeforeafterboth
--- a/runtime/common/config/pallets/app_promotion.rs
+++ b/runtime/common/config/pallets/app_promotion.rs
@@ -22,7 +22,7 @@
 use frame_support::{parameter_types, PalletId};
 use sp_arithmetic::Perbill;
 use up_common::{
-	constants::{UNIQUE, RELAY_DAYS, DAYS},
+	constants::{UNIQUE, RELAY_DAYS},
 	types::Balance,
 };
 
modifiedruntime/opal/Cargo.tomldiffbeforeafterboth
--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -1,8 +1,6 @@
 ################################################################################
 # Package
 
-cargo-features = ["workspace-inheritance"]
-
 [package]
 authors = ['Unique Network <support@uniquenetwork.io>']
 build = 'build.rs'
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.33'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-xcm/runtime-benchmarks',44    'sp-runtime/runtime-benchmarks',45    'xcm-builder/runtime-benchmarks',46    'pallet-maintenance/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-configuration/try-runtime',73    'pallet-charge-transaction/try-runtime',74    'pallet-common/try-runtime',75    'pallet-fungible/try-runtime',76    'pallet-refungible/try-runtime',77    'pallet-nonfungible/try-runtime',78    'pallet-structure/try-runtime',79    'pallet-proxy-rmrk-core/try-runtime',80    'pallet-proxy-rmrk-equip/try-runtime',81    'pallet-app-promotion/try-runtime',82    'pallet-foreign-assets/try-runtime',83    'pallet-ethereum/try-runtime',84    'pallet-evm-coder-substrate/try-runtime',85    'pallet-evm-contract-helpers/try-runtime',86    'pallet-evm-transaction-payment/try-runtime',87    'pallet-evm-migration/try-runtime',88    'pallet-maintenance/try-runtime',89]90std = [91    'codec/std',92    'cumulus-pallet-aura-ext/std',93    'cumulus-pallet-parachain-system/std',94    'cumulus-pallet-xcm/std',95    'cumulus-pallet-xcmp-queue/std',96    'cumulus-primitives-core/std',97    'cumulus-primitives-utility/std',98    'frame-try-runtime/std',99    'frame-executive/std',100    'frame-support/std',101    'frame-system/std',102    'frame-system-rpc-runtime-api/std',103    'pallet-aura/std',104    'pallet-balances/std',105    # 'pallet-contracts/std',106    # 'pallet-contracts-primitives/std',107    # 'pallet-contracts-rpc-runtime-api/std',108    # 'pallet-contract-helpers/std',109    'pallet-randomness-collective-flip/std',110    'pallet-sudo/std',111    'pallet-timestamp/std',112    'pallet-transaction-payment/std',113    'pallet-transaction-payment-rpc-runtime-api/std',114    'pallet-treasury/std',115    'pallet-evm/std',116    'pallet-evm-migration/std',117    'pallet-evm-contract-helpers/std',118    'pallet-evm-transaction-payment/std',119    'pallet-evm-coder-substrate/std',120    'pallet-ethereum/std',121    'pallet-base-fee/std',122    'fp-rpc/std',123    'up-rpc/std',124    'app-promotion-rpc/std',125    'fp-evm-mapping/std',126    'fp-self-contained/std',127    'parachain-info/std',128    'serde',129    'pallet-inflation/std',130    'pallet-configuration/std',131    'pallet-common/std',132    'pallet-structure/std',133    'pallet-fungible/std',134    'pallet-refungible/std',135    'pallet-nonfungible/std',136    'pallet-proxy-rmrk-core/std',137    'pallet-proxy-rmrk-equip/std',138    'pallet-unique/std',139    'pallet-charge-transaction/std',140    'up-data-structs/std',141    'sp-api/std',142    'sp-block-builder/std',143    "sp-consensus-aura/std",144    'sp-core/std',145    'sp-inherents/std',146    'sp-io/std',147    'sp-offchain/std',148    'sp-runtime/std',149    'sp-session/std',150    'sp-std/std',151    'sp-transaction-pool/std',152    'sp-version/std',153    'xcm/std',154    'xcm-builder/std',155    'xcm-executor/std',156    'up-common/std',157    'rmrk-rpc/std',158    'evm-coder/std',159    'up-sponsorship/std',160161    "orml-vesting/std",162    "orml-tokens/std",163    "orml-xtokens/std",164    "orml-traits/std",165    "pallet-foreign-assets/std",166    "pallet-maintenance/std",167]168limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']169quartz-runtime = ['refungible']170171refungible = []172scheduler = []173rmrk = []174foreign-assets = []175176################################################################################177# Substrate Dependencies178179[dependencies.codec]180default-features = false181features = ['derive']182package = 'parity-scale-codec'183version = '3.1.2'184185[dependencies.frame-benchmarking]186default-features = false187git = "https://github.com/paritytech/substrate"188optional = true189branch = "polkadot-v0.9.33"190191[dependencies.frame-try-runtime]192default-features = false193git = "https://github.com/paritytech/substrate"194optional = true195branch = "polkadot-v0.9.33"196197[dependencies.frame-executive]198default-features = false199git = "https://github.com/paritytech/substrate"200branch = "polkadot-v0.9.33"201202[dependencies.frame-support]203default-features = false204git = "https://github.com/paritytech/substrate"205branch = "polkadot-v0.9.33"206207[dependencies.frame-system]208default-features = false209git = "https://github.com/paritytech/substrate"210branch = "polkadot-v0.9.33"211212[dependencies.frame-system-benchmarking]213default-features = false214git = "https://github.com/paritytech/substrate"215optional = true216branch = "polkadot-v0.9.33"217218[dependencies.frame-system-rpc-runtime-api]219default-features = false220git = "https://github.com/paritytech/substrate"221branch = "polkadot-v0.9.33"222223[dependencies.hex-literal]224optional = true225version = '0.3.3'226227[dependencies.serde]228default-features = false229features = ['derive']230optional = true231version = '1.0.130'232233[dependencies.pallet-aura]234default-features = false235git = "https://github.com/paritytech/substrate"236branch = "polkadot-v0.9.33"237238[dependencies.pallet-balances]239default-features = false240git = "https://github.com/paritytech/substrate"241branch = "polkadot-v0.9.33"242243# Contracts specific packages244# [dependencies.pallet-contracts]245# git = 'https://github.com/paritytech/substrate'246# default-features = false247# branch = 'master'248# version = '4.0.0-dev'249250# [dependencies.pallet-contracts-primitives]251# git = 'https://github.com/paritytech/substrate'252# default-features = false253# branch = 'master'254# version = '4.0.0-dev'255256# [dependencies.pallet-contracts-rpc-runtime-api]257# git = 'https://github.com/paritytech/substrate'258# default-features = false259# branch = 'master'260# version = '4.0.0-dev'261262[dependencies.pallet-randomness-collective-flip]263default-features = false264git = "https://github.com/paritytech/substrate"265branch = "polkadot-v0.9.33"266267[dependencies.pallet-sudo]268default-features = false269git = "https://github.com/paritytech/substrate"270branch = "polkadot-v0.9.33"271272[dependencies.pallet-timestamp]273default-features = false274git = "https://github.com/paritytech/substrate"275branch = "polkadot-v0.9.33"276277[dependencies.pallet-transaction-payment]278default-features = false279git = "https://github.com/paritytech/substrate"280branch = "polkadot-v0.9.33"281282[dependencies.pallet-transaction-payment-rpc-runtime-api]283default-features = false284git = "https://github.com/paritytech/substrate"285branch = "polkadot-v0.9.33"286287[dependencies.pallet-treasury]288default-features = false289git = "https://github.com/paritytech/substrate"290branch = "polkadot-v0.9.33"291292[dependencies.sp-arithmetic]293default-features = false294git = "https://github.com/paritytech/substrate"295branch = "polkadot-v0.9.33"296297[dependencies.sp-api]298default-features = false299git = "https://github.com/paritytech/substrate"300branch = "polkadot-v0.9.33"301302[dependencies.sp-block-builder]303default-features = false304git = "https://github.com/paritytech/substrate"305branch = "polkadot-v0.9.33"306307[dependencies.sp-core]308default-features = false309git = "https://github.com/paritytech/substrate"310branch = "polkadot-v0.9.33"311312[dependencies.sp-consensus-aura]313default-features = false314git = "https://github.com/paritytech/substrate"315branch = "polkadot-v0.9.33"316317[dependencies.sp-inherents]318default-features = false319git = "https://github.com/paritytech/substrate"320branch = "polkadot-v0.9.33"321322[dependencies.sp-io]323default-features = false324git = "https://github.com/paritytech/substrate"325branch = "polkadot-v0.9.33"326327[dependencies.sp-offchain]328default-features = false329git = "https://github.com/paritytech/substrate"330branch = "polkadot-v0.9.33"331332[dependencies.sp-runtime]333default-features = false334git = "https://github.com/paritytech/substrate"335branch = "polkadot-v0.9.33"336337[dependencies.sp-session]338default-features = false339git = "https://github.com/paritytech/substrate"340branch = "polkadot-v0.9.33"341342[dependencies.sp-std]343default-features = false344git = "https://github.com/paritytech/substrate"345branch = "polkadot-v0.9.33"346347[dependencies.sp-transaction-pool]348default-features = false349git = "https://github.com/paritytech/substrate"350branch = "polkadot-v0.9.33"351352[dependencies.sp-version]353default-features = false354git = "https://github.com/paritytech/substrate"355branch = "polkadot-v0.9.33"356357[dependencies.smallvec]358version = '1.6.1'359360################################################################################361# Cumulus dependencies362363[dependencies.parachain-info]364default-features = false365git = "https://github.com/paritytech/cumulus"366branch = "polkadot-v0.9.33"367368[dependencies.cumulus-pallet-aura-ext]369git = "https://github.com/paritytech/cumulus"370branch = "polkadot-v0.9.33"371default-features = false372373[dependencies.cumulus-pallet-parachain-system]374git = "https://github.com/paritytech/cumulus"375branch = "polkadot-v0.9.33"376default-features = false377378[dependencies.cumulus-primitives-core]379git = "https://github.com/paritytech/cumulus"380branch = "polkadot-v0.9.33"381default-features = false382383[dependencies.cumulus-pallet-xcm]384git = "https://github.com/paritytech/cumulus"385branch = "polkadot-v0.9.33"386default-features = false387388[dependencies.cumulus-pallet-dmp-queue]389git = "https://github.com/paritytech/cumulus"390branch = "polkadot-v0.9.33"391default-features = false392393[dependencies.cumulus-pallet-xcmp-queue]394git = "https://github.com/paritytech/cumulus"395branch = "polkadot-v0.9.33"396default-features = false397398[dependencies.cumulus-primitives-utility]399git = "https://github.com/paritytech/cumulus"400branch = "polkadot-v0.9.33"401default-features = false402403[dependencies.cumulus-primitives-timestamp]404git = "https://github.com/paritytech/cumulus"405branch = "polkadot-v0.9.33"406default-features = false407408################################################################################409# Polkadot dependencies410411[dependencies.polkadot-parachain]412git = "https://github.com/paritytech/polkadot"413branch = "release-v0.9.33"414default-features = false415416[dependencies.xcm]417git = "https://github.com/paritytech/polkadot"418branch = "release-v0.9.33"419default-features = false420421[dependencies.xcm-builder]422git = "https://github.com/paritytech/polkadot"423branch = "release-v0.9.33"424default-features = false425426[dependencies.xcm-executor]427git = "https://github.com/paritytech/polkadot"428branch = "release-v0.9.33"429default-features = false430431[dependencies.pallet-xcm]432git = "https://github.com/paritytech/polkadot"433branch = "release-v0.9.33"434default-features = false435436################################################################################437# RMRK dependencies438439# todo git440[dependencies.rmrk-rpc]441default-features = false442path = "../../primitives/rmrk-rpc"443444################################################################################445# local dependencies446447[dependencies]448orml-vesting.workspace = true449orml-xtokens.workspace = true450orml-tokens.workspace = true451orml-traits.workspace = true452453log = { version = "0.4.16", default-features = false }454up-common = { path = "../../primitives/common", default-features = false }455scale-info = { version = "2.0.1", default-features = false, features = [456    "derive",457] }458derivative = "2.2.0"459pallet-unique = { path = '../../pallets/unique', default-features = false }460up-rpc = { path = "../../primitives/rpc", default-features = false }461app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }462fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }463pallet-inflation = { path = '../../pallets/inflation', default-features = false }464pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }465up-data-structs = { path = '../../primitives/data-structs', default-features = false }466pallet-configuration = { default-features = false, path = "../../pallets/configuration" }467pallet-common = { default-features = false, path = "../../pallets/common" }468pallet-structure = { default-features = false, path = "../../pallets/structure" }469pallet-fungible = { default-features = false, path = "../../pallets/fungible" }470pallet-refungible = { default-features = false, path = "../../pallets/refungible" }471pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }472pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }473pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }474# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }475pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.33", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }476pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }477pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }478pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }479pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }480pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }481pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }482pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }483fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }484fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }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.33' }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.33"
after · runtime/quartz/Cargo.toml
1################################################################################2# Package34[package]5authors = ['Unique Network <support@uniquenetwork.io>']6build = 'build.rs'7description = 'Quartz Runtime'8edition = '2021'9homepage = 'https://unique.network'10license = 'GPLv3'11name = 'quartz-runtime'12repository = 'https://github.com/UniqueNetwork/unique-chain'13version = '0.9.33'1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std', 'quartz-runtime']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-foreign-assets/runtime-benchmarks',40    'pallet-inflation/runtime-benchmarks',41    'pallet-xcm/runtime-benchmarks',42    'sp-runtime/runtime-benchmarks',43    'xcm-builder/runtime-benchmarks',44    'pallet-maintenance/runtime-benchmarks',45]46try-runtime = [47    'frame-try-runtime',48    'frame-executive/try-runtime',49    'frame-support/try-runtime',50    'frame-system/try-runtime',51    'cumulus-pallet-parachain-system/try-runtime',52    'parachain-info/try-runtime',53    'pallet-aura/try-runtime',54    'cumulus-pallet-aura-ext/try-runtime',55    'pallet-balances/try-runtime',56    'pallet-randomness-collective-flip/try-runtime',57    'pallet-timestamp/try-runtime',58    'pallet-transaction-payment/try-runtime',59    'pallet-treasury/try-runtime',60    'pallet-sudo/try-runtime',61    'orml-vesting/try-runtime',62    'orml-xtokens/try-runtime',63    'orml-tokens/try-runtime',64    'cumulus-pallet-xcmp-queue/try-runtime',65    'pallet-xcm/try-runtime',66    'cumulus-pallet-xcm/try-runtime',67    'cumulus-pallet-dmp-queue/try-runtime',68    'pallet-inflation/try-runtime',69    'pallet-unique/try-runtime',70    'pallet-configuration/try-runtime',71    'pallet-charge-transaction/try-runtime',72    'pallet-common/try-runtime',73    'pallet-fungible/try-runtime',74    'pallet-refungible/try-runtime',75    'pallet-nonfungible/try-runtime',76    'pallet-structure/try-runtime',77    'pallet-proxy-rmrk-core/try-runtime',78    'pallet-proxy-rmrk-equip/try-runtime',79    'pallet-app-promotion/try-runtime',80    'pallet-foreign-assets/try-runtime',81    'pallet-ethereum/try-runtime',82    'pallet-evm-coder-substrate/try-runtime',83    'pallet-evm-contract-helpers/try-runtime',84    'pallet-evm-transaction-payment/try-runtime',85    'pallet-evm-migration/try-runtime',86    'pallet-maintenance/try-runtime',87]88std = [89    'codec/std',90    'cumulus-pallet-aura-ext/std',91    'cumulus-pallet-parachain-system/std',92    'cumulus-pallet-xcm/std',93    'cumulus-pallet-xcmp-queue/std',94    'cumulus-primitives-core/std',95    'cumulus-primitives-utility/std',96    'frame-try-runtime/std',97    'frame-executive/std',98    'frame-support/std',99    'frame-system/std',100    'frame-system-rpc-runtime-api/std',101    'pallet-aura/std',102    'pallet-balances/std',103    # 'pallet-contracts/std',104    # 'pallet-contracts-primitives/std',105    # 'pallet-contracts-rpc-runtime-api/std',106    # 'pallet-contract-helpers/std',107    'pallet-randomness-collective-flip/std',108    'pallet-sudo/std',109    'pallet-timestamp/std',110    'pallet-transaction-payment/std',111    'pallet-transaction-payment-rpc-runtime-api/std',112    'pallet-treasury/std',113    'pallet-evm/std',114    'pallet-evm-migration/std',115    'pallet-evm-contract-helpers/std',116    'pallet-evm-transaction-payment/std',117    'pallet-evm-coder-substrate/std',118    'pallet-ethereum/std',119    'pallet-base-fee/std',120    'fp-rpc/std',121    'up-rpc/std',122    'app-promotion-rpc/std',123    'fp-evm-mapping/std',124    'fp-self-contained/std',125    'parachain-info/std',126    'serde',127    'pallet-inflation/std',128    'pallet-configuration/std',129    'pallet-common/std',130    'pallet-structure/std',131    'pallet-fungible/std',132    'pallet-refungible/std',133    'pallet-nonfungible/std',134    'pallet-proxy-rmrk-core/std',135    'pallet-proxy-rmrk-equip/std',136    'pallet-unique/std',137    'pallet-charge-transaction/std',138    'up-data-structs/std',139    'sp-api/std',140    'sp-block-builder/std',141    "sp-consensus-aura/std",142    'sp-core/std',143    'sp-inherents/std',144    'sp-io/std',145    'sp-offchain/std',146    'sp-runtime/std',147    'sp-session/std',148    'sp-std/std',149    'sp-transaction-pool/std',150    'sp-version/std',151    'xcm/std',152    'xcm-builder/std',153    'xcm-executor/std',154    'up-common/std',155    'rmrk-rpc/std',156    'evm-coder/std',157    'up-sponsorship/std',158159    "orml-vesting/std",160    "orml-tokens/std",161    "orml-xtokens/std",162    "orml-traits/std",163    "pallet-foreign-assets/std",164    "pallet-maintenance/std",165]166limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']167quartz-runtime = ['refungible']168169refungible = []170scheduler = []171rmrk = []172foreign-assets = []173174################################################################################175# Substrate Dependencies176177[dependencies.codec]178default-features = false179features = ['derive']180package = 'parity-scale-codec'181version = '3.1.2'182183[dependencies.frame-benchmarking]184default-features = false185git = "https://github.com/paritytech/substrate"186optional = true187branch = "polkadot-v0.9.33"188189[dependencies.frame-try-runtime]190default-features = false191git = "https://github.com/paritytech/substrate"192optional = true193branch = "polkadot-v0.9.33"194195[dependencies.frame-executive]196default-features = false197git = "https://github.com/paritytech/substrate"198branch = "polkadot-v0.9.33"199200[dependencies.frame-support]201default-features = false202git = "https://github.com/paritytech/substrate"203branch = "polkadot-v0.9.33"204205[dependencies.frame-system]206default-features = false207git = "https://github.com/paritytech/substrate"208branch = "polkadot-v0.9.33"209210[dependencies.frame-system-benchmarking]211default-features = false212git = "https://github.com/paritytech/substrate"213optional = true214branch = "polkadot-v0.9.33"215216[dependencies.frame-system-rpc-runtime-api]217default-features = false218git = "https://github.com/paritytech/substrate"219branch = "polkadot-v0.9.33"220221[dependencies.hex-literal]222optional = true223version = '0.3.3'224225[dependencies.serde]226default-features = false227features = ['derive']228optional = true229version = '1.0.130'230231[dependencies.pallet-aura]232default-features = false233git = "https://github.com/paritytech/substrate"234branch = "polkadot-v0.9.33"235236[dependencies.pallet-balances]237default-features = false238git = "https://github.com/paritytech/substrate"239branch = "polkadot-v0.9.33"240241# Contracts specific packages242# [dependencies.pallet-contracts]243# git = 'https://github.com/paritytech/substrate'244# default-features = false245# branch = 'master'246# version = '4.0.0-dev'247248# [dependencies.pallet-contracts-primitives]249# git = 'https://github.com/paritytech/substrate'250# default-features = false251# branch = 'master'252# version = '4.0.0-dev'253254# [dependencies.pallet-contracts-rpc-runtime-api]255# git = 'https://github.com/paritytech/substrate'256# default-features = false257# branch = 'master'258# version = '4.0.0-dev'259260[dependencies.pallet-randomness-collective-flip]261default-features = false262git = "https://github.com/paritytech/substrate"263branch = "polkadot-v0.9.33"264265[dependencies.pallet-sudo]266default-features = false267git = "https://github.com/paritytech/substrate"268branch = "polkadot-v0.9.33"269270[dependencies.pallet-timestamp]271default-features = false272git = "https://github.com/paritytech/substrate"273branch = "polkadot-v0.9.33"274275[dependencies.pallet-transaction-payment]276default-features = false277git = "https://github.com/paritytech/substrate"278branch = "polkadot-v0.9.33"279280[dependencies.pallet-transaction-payment-rpc-runtime-api]281default-features = false282git = "https://github.com/paritytech/substrate"283branch = "polkadot-v0.9.33"284285[dependencies.pallet-treasury]286default-features = false287git = "https://github.com/paritytech/substrate"288branch = "polkadot-v0.9.33"289290[dependencies.sp-arithmetic]291default-features = false292git = "https://github.com/paritytech/substrate"293branch = "polkadot-v0.9.33"294295[dependencies.sp-api]296default-features = false297git = "https://github.com/paritytech/substrate"298branch = "polkadot-v0.9.33"299300[dependencies.sp-block-builder]301default-features = false302git = "https://github.com/paritytech/substrate"303branch = "polkadot-v0.9.33"304305[dependencies.sp-core]306default-features = false307git = "https://github.com/paritytech/substrate"308branch = "polkadot-v0.9.33"309310[dependencies.sp-consensus-aura]311default-features = false312git = "https://github.com/paritytech/substrate"313branch = "polkadot-v0.9.33"314315[dependencies.sp-inherents]316default-features = false317git = "https://github.com/paritytech/substrate"318branch = "polkadot-v0.9.33"319320[dependencies.sp-io]321default-features = false322git = "https://github.com/paritytech/substrate"323branch = "polkadot-v0.9.33"324325[dependencies.sp-offchain]326default-features = false327git = "https://github.com/paritytech/substrate"328branch = "polkadot-v0.9.33"329330[dependencies.sp-runtime]331default-features = false332git = "https://github.com/paritytech/substrate"333branch = "polkadot-v0.9.33"334335[dependencies.sp-session]336default-features = false337git = "https://github.com/paritytech/substrate"338branch = "polkadot-v0.9.33"339340[dependencies.sp-std]341default-features = false342git = "https://github.com/paritytech/substrate"343branch = "polkadot-v0.9.33"344345[dependencies.sp-transaction-pool]346default-features = false347git = "https://github.com/paritytech/substrate"348branch = "polkadot-v0.9.33"349350[dependencies.sp-version]351default-features = false352git = "https://github.com/paritytech/substrate"353branch = "polkadot-v0.9.33"354355[dependencies.smallvec]356version = '1.6.1'357358################################################################################359# Cumulus dependencies360361[dependencies.parachain-info]362default-features = false363git = "https://github.com/paritytech/cumulus"364branch = "polkadot-v0.9.33"365366[dependencies.cumulus-pallet-aura-ext]367git = "https://github.com/paritytech/cumulus"368branch = "polkadot-v0.9.33"369default-features = false370371[dependencies.cumulus-pallet-parachain-system]372git = "https://github.com/paritytech/cumulus"373branch = "polkadot-v0.9.33"374default-features = false375376[dependencies.cumulus-primitives-core]377git = "https://github.com/paritytech/cumulus"378branch = "polkadot-v0.9.33"379default-features = false380381[dependencies.cumulus-pallet-xcm]382git = "https://github.com/paritytech/cumulus"383branch = "polkadot-v0.9.33"384default-features = false385386[dependencies.cumulus-pallet-dmp-queue]387git = "https://github.com/paritytech/cumulus"388branch = "polkadot-v0.9.33"389default-features = false390391[dependencies.cumulus-pallet-xcmp-queue]392git = "https://github.com/paritytech/cumulus"393branch = "polkadot-v0.9.33"394default-features = false395396[dependencies.cumulus-primitives-utility]397git = "https://github.com/paritytech/cumulus"398branch = "polkadot-v0.9.33"399default-features = false400401[dependencies.cumulus-primitives-timestamp]402git = "https://github.com/paritytech/cumulus"403branch = "polkadot-v0.9.33"404default-features = false405406################################################################################407# Polkadot dependencies408409[dependencies.polkadot-parachain]410git = "https://github.com/paritytech/polkadot"411branch = "release-v0.9.33"412default-features = false413414[dependencies.xcm]415git = "https://github.com/paritytech/polkadot"416branch = "release-v0.9.33"417default-features = false418419[dependencies.xcm-builder]420git = "https://github.com/paritytech/polkadot"421branch = "release-v0.9.33"422default-features = false423424[dependencies.xcm-executor]425git = "https://github.com/paritytech/polkadot"426branch = "release-v0.9.33"427default-features = false428429[dependencies.pallet-xcm]430git = "https://github.com/paritytech/polkadot"431branch = "release-v0.9.33"432default-features = false433434################################################################################435# RMRK dependencies436437# todo git438[dependencies.rmrk-rpc]439default-features = false440path = "../../primitives/rmrk-rpc"441442################################################################################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 }460fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }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" }472# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }473pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.33", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }474pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }475pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }476pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }477pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }478pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }479pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }480pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }481fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }482fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }483evm-coder = { default-features = false, path = '../../crates/evm-coder' }484up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.33' }485pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }486pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }487488################################################################################489# Other Dependencies490491impl-trait-for-tuples = "0.2.2"492493################################################################################494# Dev Dependencies495496[dev-dependencies.logtest]497version = "2.0.0"498499################################################################################500# Build Dependencies501502[build-dependencies.substrate-wasm-builder]503git = "https://github.com/paritytech/substrate"504branch = "polkadot-v0.9.33"
modifiedruntime/unique/Cargo.tomldiffbeforeafterboth
--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -1,8 +1,6 @@
 ################################################################################
 # Package
 
-cargo-features = ["workspace-inheritance"]
-
 [package]
 authors = ['Unique Network <support@uniquenetwork.io>']
 build = 'build.rs'