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
before · runtime/opal/Cargo.toml
1################################################################################2# Package34cargo-features = ["workspace-inheritance"]56[package]7authors = ['Unique Network <support@uniquenetwork.io>']8build = 'build.rs'9description = 'Opal Runtime'10edition = '2021'11homepage = 'https://unique.network'12license = 'GPLv3'13name = 'opal-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', 'opal-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-foreign-assets/runtime-benchmarks',41    'pallet-unique/runtime-benchmarks',42    'pallet-inflation/runtime-benchmarks',43    'pallet-app-promotion/runtime-benchmarks',44    'pallet-unique-scheduler-v2/runtime-benchmarks',45    'pallet-xcm/runtime-benchmarks',46    'sp-runtime/runtime-benchmarks',47    'xcm-builder/runtime-benchmarks',48    'pallet-maintenance/runtime-benchmarks',49]50try-runtime = [51    'frame-try-runtime',52    'frame-try-runtime?/try-runtime',53    'frame-executive/try-runtime',54    'frame-support/try-runtime',55    'frame-system/try-runtime',56    'cumulus-pallet-parachain-system/try-runtime',57    'parachain-info/try-runtime',58    'pallet-aura/try-runtime',59    'cumulus-pallet-aura-ext/try-runtime',60    'pallet-balances/try-runtime',61    'pallet-randomness-collective-flip/try-runtime',62    'pallet-timestamp/try-runtime',63    'pallet-transaction-payment/try-runtime',64    'pallet-treasury/try-runtime',65    'pallet-sudo/try-runtime',66    'orml-vesting/try-runtime',67    'orml-xtokens/try-runtime',68    'orml-tokens/try-runtime',69    'cumulus-pallet-xcmp-queue/try-runtime',70    'pallet-xcm/try-runtime',71    'cumulus-pallet-xcm/try-runtime',72    'cumulus-pallet-dmp-queue/try-runtime',73    'pallet-inflation/try-runtime',74    'pallet-unique/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-ethereum/try-runtime',87    'pallet-evm/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-base-fee/try-runtime',93    'pallet-unique-scheduler-v2/try-runtime',94    'pallet-maintenance/try-runtime',95    'pallet-test-utils?/try-runtime',96]97std = [98    'codec/std',99    'cumulus-pallet-aura-ext/std',100    'cumulus-pallet-parachain-system/std',101    'cumulus-pallet-xcm/std',102    'cumulus-pallet-xcmp-queue/std',103    'cumulus-primitives-core/std',104    'cumulus-primitives-utility/std',105    'frame-try-runtime/std',106    'frame-executive/std',107    'frame-support/std',108    'frame-system/std',109    'frame-system-rpc-runtime-api/std',110    'pallet-aura/std',111    'pallet-balances/std',112    # 'pallet-contracts/std',113    # 'pallet-contracts-primitives/std',114    # 'pallet-contracts-rpc-runtime-api/std',115    # 'pallet-contract-helpers/std',116    'pallet-randomness-collective-flip/std',117    'pallet-sudo/std',118    'pallet-timestamp/std',119    'pallet-transaction-payment/std',120    'pallet-transaction-payment-rpc-runtime-api/std',121    'pallet-treasury/std',122    'pallet-evm/std',123    'pallet-evm-migration/std',124    'pallet-evm-contract-helpers/std',125    'pallet-evm-transaction-payment/std',126    'pallet-evm-coder-substrate/std',127    'pallet-ethereum/std',128    'pallet-base-fee/std',129    'fp-rpc/std',130    'up-rpc/std',131    'app-promotion-rpc/std',132    'fp-evm-mapping/std',133    'fp-self-contained/std',134    'parachain-info/std',135    'serde',136    'pallet-inflation/std',137    'pallet-configuration/std',138    'pallet-app-promotion/std',139    'pallet-common/std',140    'pallet-structure/std',141    'pallet-fungible/std',142    'pallet-refungible/std',143    'pallet-nonfungible/std',144    'pallet-proxy-rmrk-core/std',145    'pallet-proxy-rmrk-equip/std',146    'pallet-unique/std',147    'pallet-unique-scheduler-v2/std',148    'pallet-charge-transaction/std',149    'up-data-structs/std',150    'sp-api/std',151    'sp-block-builder/std',152    "sp-consensus-aura/std",153    'sp-core/std',154    'sp-inherents/std',155    'sp-io/std',156    'sp-offchain/std',157    'sp-runtime/std',158    'sp-session/std',159    'sp-std/std',160    'sp-transaction-pool/std',161    'sp-version/std',162    'xcm/std',163    'xcm-builder/std',164    'xcm-executor/std',165    'up-common/std',166    'rmrk-rpc/std',167    'evm-coder/std',168    'up-sponsorship/std',169170    "orml-vesting/std",171    "orml-tokens/std",172    "orml-xtokens/std",173    "orml-traits/std",174    "pallet-foreign-assets/std",175176    'pallet-maintenance/std',177    'pallet-test-utils?/std',178]179limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']180opal-runtime = [181    'refungible',182    'rmrk',183    'app-promotion',184    'foreign-assets',185    'pallet-test-utils',186]187become-sapphire = []188189refungible = []190scheduler = []191rmrk = []192foreign-assets = []193app-promotion = []194195################################################################################196# Substrate Dependencies197198[dependencies.codec]199default-features = false200features = ['derive']201package = 'parity-scale-codec'202version = '3.1.2'203204[dependencies.frame-benchmarking]205default-features = false206git = "https://github.com/paritytech/substrate"207optional = true208branch = "polkadot-v0.9.33"209210[dependencies.frame-try-runtime]211default-features = false212git = "https://github.com/paritytech/substrate"213optional = true214branch = "polkadot-v0.9.33"215216[dependencies.frame-executive]217default-features = false218git = "https://github.com/paritytech/substrate"219branch = "polkadot-v0.9.33"220221[dependencies.frame-support]222default-features = false223git = "https://github.com/paritytech/substrate"224branch = "polkadot-v0.9.33"225226[dependencies.frame-system]227default-features = false228git = "https://github.com/paritytech/substrate"229branch = "polkadot-v0.9.33"230231[dependencies.frame-system-benchmarking]232default-features = false233git = "https://github.com/paritytech/substrate"234optional = true235branch = "polkadot-v0.9.33"236237[dependencies.frame-system-rpc-runtime-api]238default-features = false239git = "https://github.com/paritytech/substrate"240branch = "polkadot-v0.9.33"241242[dependencies.hex-literal]243optional = true244version = '0.3.3'245246[dependencies.serde]247default-features = false248features = ['derive']249optional = true250version = '1.0.130'251252[dependencies.pallet-aura]253default-features = false254git = "https://github.com/paritytech/substrate"255branch = "polkadot-v0.9.33"256257[dependencies.pallet-balances]258default-features = false259git = "https://github.com/paritytech/substrate"260branch = "polkadot-v0.9.33"261262# Contracts specific packages263# [dependencies.pallet-contracts]264# git = 'https://github.com/paritytech/substrate'265# default-features = false266# branch = 'master'267# version = '4.0.0-dev'268269# [dependencies.pallet-contracts-primitives]270# git = 'https://github.com/paritytech/substrate'271# default-features = false272# branch = 'master'273# version = '4.0.0-dev'274275# [dependencies.pallet-contracts-rpc-runtime-api]276# git = 'https://github.com/paritytech/substrate'277# default-features = false278# branch = 'master'279# version = '4.0.0-dev'280281[dependencies.pallet-randomness-collective-flip]282default-features = false283git = "https://github.com/paritytech/substrate"284branch = "polkadot-v0.9.33"285286[dependencies.pallet-sudo]287default-features = false288git = "https://github.com/paritytech/substrate"289branch = "polkadot-v0.9.33"290291[dependencies.pallet-timestamp]292default-features = false293git = "https://github.com/paritytech/substrate"294branch = "polkadot-v0.9.33"295296[dependencies.pallet-transaction-payment]297default-features = false298git = "https://github.com/paritytech/substrate"299branch = "polkadot-v0.9.33"300301[dependencies.pallet-transaction-payment-rpc-runtime-api]302default-features = false303git = "https://github.com/paritytech/substrate"304branch = "polkadot-v0.9.33"305306[dependencies.pallet-treasury]307default-features = false308git = "https://github.com/paritytech/substrate"309branch = "polkadot-v0.9.33"310311[dependencies.sp-arithmetic]312default-features = false313git = "https://github.com/paritytech/substrate"314branch = "polkadot-v0.9.33"315316[dependencies.sp-api]317default-features = false318git = "https://github.com/paritytech/substrate"319branch = "polkadot-v0.9.33"320321[dependencies.sp-block-builder]322default-features = false323git = "https://github.com/paritytech/substrate"324branch = "polkadot-v0.9.33"325326[dependencies.sp-core]327default-features = false328git = "https://github.com/paritytech/substrate"329branch = "polkadot-v0.9.33"330331[dependencies.sp-consensus-aura]332default-features = false333git = "https://github.com/paritytech/substrate"334branch = "polkadot-v0.9.33"335336[dependencies.sp-inherents]337default-features = false338git = "https://github.com/paritytech/substrate"339branch = "polkadot-v0.9.33"340341[dependencies.sp-io]342default-features = false343git = "https://github.com/paritytech/substrate"344branch = "polkadot-v0.9.33"345346[dependencies.sp-offchain]347default-features = false348git = "https://github.com/paritytech/substrate"349branch = "polkadot-v0.9.33"350351[dependencies.sp-runtime]352default-features = false353git = "https://github.com/paritytech/substrate"354branch = "polkadot-v0.9.33"355356[dependencies.sp-session]357default-features = false358git = "https://github.com/paritytech/substrate"359branch = "polkadot-v0.9.33"360361[dependencies.sp-std]362default-features = false363git = "https://github.com/paritytech/substrate"364branch = "polkadot-v0.9.33"365366[dependencies.sp-transaction-pool]367default-features = false368git = "https://github.com/paritytech/substrate"369branch = "polkadot-v0.9.33"370371[dependencies.sp-version]372default-features = false373git = "https://github.com/paritytech/substrate"374branch = "polkadot-v0.9.33"375376[dependencies.smallvec]377version = '1.6.1'378379################################################################################380# Cumulus dependencies381382[dependencies.parachain-info]383default-features = false384git = "https://github.com/paritytech/cumulus"385branch = "polkadot-v0.9.33"386387[dependencies.cumulus-pallet-aura-ext]388git = "https://github.com/paritytech/cumulus"389branch = "polkadot-v0.9.33"390default-features = false391392[dependencies.cumulus-pallet-parachain-system]393git = "https://github.com/paritytech/cumulus"394branch = "polkadot-v0.9.33"395default-features = false396397[dependencies.cumulus-primitives-core]398git = "https://github.com/paritytech/cumulus"399branch = "polkadot-v0.9.33"400default-features = false401402[dependencies.cumulus-pallet-xcm]403git = "https://github.com/paritytech/cumulus"404branch = "polkadot-v0.9.33"405default-features = false406407[dependencies.cumulus-pallet-dmp-queue]408git = "https://github.com/paritytech/cumulus"409branch = "polkadot-v0.9.33"410default-features = false411412[dependencies.cumulus-pallet-xcmp-queue]413git = "https://github.com/paritytech/cumulus"414branch = "polkadot-v0.9.33"415default-features = false416417[dependencies.cumulus-primitives-utility]418git = "https://github.com/paritytech/cumulus"419branch = "polkadot-v0.9.33"420default-features = false421422[dependencies.cumulus-primitives-timestamp]423git = "https://github.com/paritytech/cumulus"424branch = "polkadot-v0.9.33"425default-features = false426427################################################################################428# Polkadot dependencies429430[dependencies.polkadot-parachain]431git = "https://github.com/paritytech/polkadot"432branch = "release-v0.9.33"433default-features = false434435[dependencies.xcm]436git = "https://github.com/paritytech/polkadot"437branch = "release-v0.9.33"438default-features = false439440[dependencies.xcm-builder]441git = "https://github.com/paritytech/polkadot"442branch = "release-v0.9.33"443default-features = false444445[dependencies.xcm-executor]446git = "https://github.com/paritytech/polkadot"447branch = "release-v0.9.33"448default-features = false449450[dependencies.pallet-xcm]451git = "https://github.com/paritytech/polkadot"452branch = "release-v0.9.33"453default-features = false454455################################################################################456# local dependencies457458[dependencies]459orml-vesting.workspace = true460orml-xtokens.workspace = true461orml-tokens.workspace = true462orml-traits.workspace = true463464log = { version = "0.4.16", default-features = false }465up-common = { path = "../../primitives/common", default-features = false }466scale-info = { version = "2.0.1", default-features = false, features = [467    "derive",468] }469derivative = "2.2.0"470pallet-unique = { path = '../../pallets/unique', default-features = false }471up-rpc = { path = "../../primitives/rpc", default-features = false }472app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }473rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }474fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }475pallet-inflation = { path = '../../pallets/inflation', default-features = false }476pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }477up-data-structs = { path = '../../primitives/data-structs', default-features = false }478pallet-configuration = { default-features = false, path = "../../pallets/configuration" }479pallet-common = { default-features = false, path = "../../pallets/common" }480pallet-structure = { default-features = false, path = "../../pallets/structure" }481pallet-fungible = { default-features = false, path = "../../pallets/fungible" }482pallet-refungible = { default-features = false, path = "../../pallets/refungible" }483pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }484pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }485pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }486pallet-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" }487pallet-unique-scheduler-v2 = { path = '../../pallets/scheduler-v2', default-features = false }488pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }489pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }490pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }491pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }492pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }493pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }494pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }495fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }496fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }497evm-coder = { default-features = false, path = '../../crates/evm-coder' }498up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.33' }499pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }500pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }501502################################################################################503# Test dependencies504505pallet-test-utils = { optional = true, default-features = false, path = "../../test-pallets/utils" }506507################################################################################508# Other Dependencies509510impl-trait-for-tuples = "0.2.2"511512################################################################################513# Dev Dependencies514515[dev-dependencies.logtest]516version = "2.0.0"517518################################################################################519# Build Dependencies520521[build-dependencies.substrate-wasm-builder]522git = "https://github.com/paritytech/substrate"523branch = "polkadot-v0.9.33"
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.33"1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std', 'opal-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-foreign-assets/runtime-benchmarks',39    'pallet-unique/runtime-benchmarks',40    'pallet-inflation/runtime-benchmarks',41    'pallet-app-promotion/runtime-benchmarks',42    'pallet-unique-scheduler-v2/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-try-runtime?/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-configuration/try-runtime',74    'pallet-charge-transaction/try-runtime',75    'pallet-common/try-runtime',76    'pallet-fungible/try-runtime',77    'pallet-refungible/try-runtime',78    'pallet-nonfungible/try-runtime',79    'pallet-structure/try-runtime',80    'pallet-proxy-rmrk-core/try-runtime',81    'pallet-proxy-rmrk-equip/try-runtime',82    'pallet-app-promotion/try-runtime',83    'pallet-foreign-assets/try-runtime',84    'pallet-ethereum/try-runtime',85    'pallet-evm/try-runtime',86    'pallet-evm-coder-substrate/try-runtime',87    'pallet-evm-contract-helpers/try-runtime',88    'pallet-evm-transaction-payment/try-runtime',89    'pallet-evm-migration/try-runtime',90    'pallet-base-fee/try-runtime',91    'pallet-unique-scheduler-v2/try-runtime',92    'pallet-maintenance/try-runtime',93    'pallet-test-utils?/try-runtime',94]95std = [96    'codec/std',97    'cumulus-pallet-aura-ext/std',98    'cumulus-pallet-parachain-system/std',99    'cumulus-pallet-xcm/std',100    'cumulus-pallet-xcmp-queue/std',101    'cumulus-primitives-core/std',102    'cumulus-primitives-utility/std',103    'frame-try-runtime/std',104    'frame-executive/std',105    'frame-support/std',106    'frame-system/std',107    'frame-system-rpc-runtime-api/std',108    'pallet-aura/std',109    'pallet-balances/std',110    # 'pallet-contracts/std',111    # 'pallet-contracts-primitives/std',112    # 'pallet-contracts-rpc-runtime-api/std',113    # 'pallet-contract-helpers/std',114    'pallet-randomness-collective-flip/std',115    'pallet-sudo/std',116    'pallet-timestamp/std',117    'pallet-transaction-payment/std',118    'pallet-transaction-payment-rpc-runtime-api/std',119    'pallet-treasury/std',120    'pallet-evm/std',121    'pallet-evm-migration/std',122    'pallet-evm-contract-helpers/std',123    'pallet-evm-transaction-payment/std',124    'pallet-evm-coder-substrate/std',125    'pallet-ethereum/std',126    'pallet-base-fee/std',127    'fp-rpc/std',128    'up-rpc/std',129    'app-promotion-rpc/std',130    'fp-evm-mapping/std',131    'fp-self-contained/std',132    'parachain-info/std',133    'serde',134    'pallet-inflation/std',135    'pallet-configuration/std',136    'pallet-app-promotion/std',137    'pallet-common/std',138    'pallet-structure/std',139    'pallet-fungible/std',140    'pallet-refungible/std',141    'pallet-nonfungible/std',142    'pallet-proxy-rmrk-core/std',143    'pallet-proxy-rmrk-equip/std',144    'pallet-unique/std',145    'pallet-unique-scheduler-v2/std',146    'pallet-charge-transaction/std',147    'up-data-structs/std',148    'sp-api/std',149    'sp-block-builder/std',150    "sp-consensus-aura/std",151    'sp-core/std',152    'sp-inherents/std',153    'sp-io/std',154    'sp-offchain/std',155    'sp-runtime/std',156    'sp-session/std',157    'sp-std/std',158    'sp-transaction-pool/std',159    'sp-version/std',160    'xcm/std',161    'xcm-builder/std',162    'xcm-executor/std',163    'up-common/std',164    'rmrk-rpc/std',165    'evm-coder/std',166    'up-sponsorship/std',167168    "orml-vesting/std",169    "orml-tokens/std",170    "orml-xtokens/std",171    "orml-traits/std",172    "pallet-foreign-assets/std",173174    'pallet-maintenance/std',175    'pallet-test-utils?/std',176]177limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']178opal-runtime = [179    'refungible',180    'rmrk',181    'app-promotion',182    'foreign-assets',183    'pallet-test-utils',184]185become-sapphire = []186187refungible = []188scheduler = []189rmrk = []190foreign-assets = []191app-promotion = []192193################################################################################194# Substrate Dependencies195196[dependencies.codec]197default-features = false198features = ['derive']199package = 'parity-scale-codec'200version = '3.1.2'201202[dependencies.frame-benchmarking]203default-features = false204git = "https://github.com/paritytech/substrate"205optional = true206branch = "polkadot-v0.9.33"207208[dependencies.frame-try-runtime]209default-features = false210git = "https://github.com/paritytech/substrate"211optional = true212branch = "polkadot-v0.9.33"213214[dependencies.frame-executive]215default-features = false216git = "https://github.com/paritytech/substrate"217branch = "polkadot-v0.9.33"218219[dependencies.frame-support]220default-features = false221git = "https://github.com/paritytech/substrate"222branch = "polkadot-v0.9.33"223224[dependencies.frame-system]225default-features = false226git = "https://github.com/paritytech/substrate"227branch = "polkadot-v0.9.33"228229[dependencies.frame-system-benchmarking]230default-features = false231git = "https://github.com/paritytech/substrate"232optional = true233branch = "polkadot-v0.9.33"234235[dependencies.frame-system-rpc-runtime-api]236default-features = false237git = "https://github.com/paritytech/substrate"238branch = "polkadot-v0.9.33"239240[dependencies.hex-literal]241optional = true242version = '0.3.3'243244[dependencies.serde]245default-features = false246features = ['derive']247optional = true248version = '1.0.130'249250[dependencies.pallet-aura]251default-features = false252git = "https://github.com/paritytech/substrate"253branch = "polkadot-v0.9.33"254255[dependencies.pallet-balances]256default-features = false257git = "https://github.com/paritytech/substrate"258branch = "polkadot-v0.9.33"259260# Contracts specific packages261# [dependencies.pallet-contracts]262# git = 'https://github.com/paritytech/substrate'263# default-features = false264# branch = 'master'265# version = '4.0.0-dev'266267# [dependencies.pallet-contracts-primitives]268# git = 'https://github.com/paritytech/substrate'269# default-features = false270# branch = 'master'271# version = '4.0.0-dev'272273# [dependencies.pallet-contracts-rpc-runtime-api]274# git = 'https://github.com/paritytech/substrate'275# default-features = false276# branch = 'master'277# version = '4.0.0-dev'278279[dependencies.pallet-randomness-collective-flip]280default-features = false281git = "https://github.com/paritytech/substrate"282branch = "polkadot-v0.9.33"283284[dependencies.pallet-sudo]285default-features = false286git = "https://github.com/paritytech/substrate"287branch = "polkadot-v0.9.33"288289[dependencies.pallet-timestamp]290default-features = false291git = "https://github.com/paritytech/substrate"292branch = "polkadot-v0.9.33"293294[dependencies.pallet-transaction-payment]295default-features = false296git = "https://github.com/paritytech/substrate"297branch = "polkadot-v0.9.33"298299[dependencies.pallet-transaction-payment-rpc-runtime-api]300default-features = false301git = "https://github.com/paritytech/substrate"302branch = "polkadot-v0.9.33"303304[dependencies.pallet-treasury]305default-features = false306git = "https://github.com/paritytech/substrate"307branch = "polkadot-v0.9.33"308309[dependencies.sp-arithmetic]310default-features = false311git = "https://github.com/paritytech/substrate"312branch = "polkadot-v0.9.33"313314[dependencies.sp-api]315default-features = false316git = "https://github.com/paritytech/substrate"317branch = "polkadot-v0.9.33"318319[dependencies.sp-block-builder]320default-features = false321git = "https://github.com/paritytech/substrate"322branch = "polkadot-v0.9.33"323324[dependencies.sp-core]325default-features = false326git = "https://github.com/paritytech/substrate"327branch = "polkadot-v0.9.33"328329[dependencies.sp-consensus-aura]330default-features = false331git = "https://github.com/paritytech/substrate"332branch = "polkadot-v0.9.33"333334[dependencies.sp-inherents]335default-features = false336git = "https://github.com/paritytech/substrate"337branch = "polkadot-v0.9.33"338339[dependencies.sp-io]340default-features = false341git = "https://github.com/paritytech/substrate"342branch = "polkadot-v0.9.33"343344[dependencies.sp-offchain]345default-features = false346git = "https://github.com/paritytech/substrate"347branch = "polkadot-v0.9.33"348349[dependencies.sp-runtime]350default-features = false351git = "https://github.com/paritytech/substrate"352branch = "polkadot-v0.9.33"353354[dependencies.sp-session]355default-features = false356git = "https://github.com/paritytech/substrate"357branch = "polkadot-v0.9.33"358359[dependencies.sp-std]360default-features = false361git = "https://github.com/paritytech/substrate"362branch = "polkadot-v0.9.33"363364[dependencies.sp-transaction-pool]365default-features = false366git = "https://github.com/paritytech/substrate"367branch = "polkadot-v0.9.33"368369[dependencies.sp-version]370default-features = false371git = "https://github.com/paritytech/substrate"372branch = "polkadot-v0.9.33"373374[dependencies.smallvec]375version = '1.6.1'376377################################################################################378# Cumulus dependencies379380[dependencies.parachain-info]381default-features = false382git = "https://github.com/paritytech/cumulus"383branch = "polkadot-v0.9.33"384385[dependencies.cumulus-pallet-aura-ext]386git = "https://github.com/paritytech/cumulus"387branch = "polkadot-v0.9.33"388default-features = false389390[dependencies.cumulus-pallet-parachain-system]391git = "https://github.com/paritytech/cumulus"392branch = "polkadot-v0.9.33"393default-features = false394395[dependencies.cumulus-primitives-core]396git = "https://github.com/paritytech/cumulus"397branch = "polkadot-v0.9.33"398default-features = false399400[dependencies.cumulus-pallet-xcm]401git = "https://github.com/paritytech/cumulus"402branch = "polkadot-v0.9.33"403default-features = false404405[dependencies.cumulus-pallet-dmp-queue]406git = "https://github.com/paritytech/cumulus"407branch = "polkadot-v0.9.33"408default-features = false409410[dependencies.cumulus-pallet-xcmp-queue]411git = "https://github.com/paritytech/cumulus"412branch = "polkadot-v0.9.33"413default-features = false414415[dependencies.cumulus-primitives-utility]416git = "https://github.com/paritytech/cumulus"417branch = "polkadot-v0.9.33"418default-features = false419420[dependencies.cumulus-primitives-timestamp]421git = "https://github.com/paritytech/cumulus"422branch = "polkadot-v0.9.33"423default-features = false424425################################################################################426# Polkadot dependencies427428[dependencies.polkadot-parachain]429git = "https://github.com/paritytech/polkadot"430branch = "release-v0.9.33"431default-features = false432433[dependencies.xcm]434git = "https://github.com/paritytech/polkadot"435branch = "release-v0.9.33"436default-features = false437438[dependencies.xcm-builder]439git = "https://github.com/paritytech/polkadot"440branch = "release-v0.9.33"441default-features = false442443[dependencies.xcm-executor]444git = "https://github.com/paritytech/polkadot"445branch = "release-v0.9.33"446default-features = false447448[dependencies.pallet-xcm]449git = "https://github.com/paritytech/polkadot"450branch = "release-v0.9.33"451default-features = false452453################################################################################454# local dependencies455456[dependencies]457orml-vesting.workspace = true458orml-xtokens.workspace = true459orml-tokens.workspace = true460orml-traits.workspace = true461462log = { version = "0.4.16", default-features = false }463up-common = { path = "../../primitives/common", default-features = false }464scale-info = { version = "2.0.1", default-features = false, features = [465    "derive",466] }467derivative = "2.2.0"468pallet-unique = { path = '../../pallets/unique', default-features = false }469up-rpc = { path = "../../primitives/rpc", default-features = false }470app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }471rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }472fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }473pallet-inflation = { path = '../../pallets/inflation', default-features = false }474pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }475up-data-structs = { path = '../../primitives/data-structs', default-features = false }476pallet-configuration = { default-features = false, path = "../../pallets/configuration" }477pallet-common = { default-features = false, path = "../../pallets/common" }478pallet-structure = { default-features = false, path = "../../pallets/structure" }479pallet-fungible = { default-features = false, path = "../../pallets/fungible" }480pallet-refungible = { default-features = false, path = "../../pallets/refungible" }481pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }482pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }483pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }484pallet-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" }485pallet-unique-scheduler-v2 = { path = '../../pallets/scheduler-v2', default-features = false }486pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }487pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }488pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }489pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }490pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }491pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }492pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }493fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }494fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }495evm-coder = { default-features = false, path = '../../crates/evm-coder' }496up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.33' }497pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }498pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }499500################################################################################501# Test dependencies502503pallet-test-utils = { optional = true, default-features = false, path = "../../test-pallets/utils" }504505################################################################################506# Other Dependencies507508impl-trait-for-tuples = "0.2.2"509510################################################################################511# Dev Dependencies512513[dev-dependencies.logtest]514version = "2.0.0"515516################################################################################517# Build Dependencies518519[build-dependencies.substrate-wasm-builder]520git = "https://github.com/paritytech/substrate"521branch = "polkadot-v0.9.33"
modifiedruntime/quartz/Cargo.tomldiffbeforeafterboth
--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -1,8 +1,6 @@
 ################################################################################
 # Package
 
-cargo-features = ["workspace-inheritance"]
-
 [package]
 authors = ['Unique Network <support@uniquenetwork.io>']
 build = 'build.rs'
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'