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
--- 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
before · runtime/unique/Cargo.toml
1################################################################################2# Package34cargo-features = ["workspace-inheritance"]56[package]7authors = ['Unique Network <support@uniquenetwork.io>']8build = 'build.rs'9description = 'Unique Runtime'10edition = '2021'11homepage = 'https://unique.network'12license = 'GPLv3'13name = 'unique-runtime'14repository = 'https://github.com/UniqueNetwork/unique-chain'15version = '0.9.33'1617[package.metadata.docs.rs]18targets = ['x86_64-unknown-linux-gnu']1920[features]21default = ['std', 'unique-runtime']22runtime-benchmarks = [23    'hex-literal',24    'frame-benchmarking',25    'frame-support/runtime-benchmarks',26    'frame-system-benchmarking',27    'frame-system/runtime-benchmarks',28    'pallet-ethereum/runtime-benchmarks',29    'pallet-evm-migration/runtime-benchmarks',30    'pallet-evm-coder-substrate/runtime-benchmarks',31    'pallet-balances/runtime-benchmarks',32    'pallet-timestamp/runtime-benchmarks',33    'pallet-common/runtime-benchmarks',34    'pallet-structure/runtime-benchmarks',35    'pallet-fungible/runtime-benchmarks',36    'pallet-refungible/runtime-benchmarks',37    'pallet-nonfungible/runtime-benchmarks',38    'pallet-proxy-rmrk-core/runtime-benchmarks',39    'pallet-proxy-rmrk-equip/runtime-benchmarks',40    'pallet-unique/runtime-benchmarks',41    'pallet-foreign-assets/runtime-benchmarks',42    'pallet-inflation/runtime-benchmarks',43    'pallet-xcm/runtime-benchmarks',44    'sp-runtime/runtime-benchmarks',45    'xcm-builder/runtime-benchmarks',46    'up-data-structs/runtime-benchmarks',47    'pallet-maintenance/runtime-benchmarks',48]49try-runtime = [50    'frame-try-runtime',51    'frame-executive/try-runtime',52    'frame-support/try-runtime',53    'frame-system/try-runtime',54    'cumulus-pallet-parachain-system/try-runtime',55    'parachain-info/try-runtime',56    'pallet-aura/try-runtime',57    'cumulus-pallet-aura-ext/try-runtime',58    'pallet-balances/try-runtime',59    'pallet-randomness-collective-flip/try-runtime',60    'pallet-timestamp/try-runtime',61    'pallet-transaction-payment/try-runtime',62    'pallet-treasury/try-runtime',63    'pallet-sudo/try-runtime',64    'orml-vesting/try-runtime',65    'orml-xtokens/try-runtime',66    'orml-tokens/try-runtime',67    'cumulus-pallet-xcmp-queue/try-runtime',68    'pallet-xcm/try-runtime',69    'cumulus-pallet-xcm/try-runtime',70    'cumulus-pallet-dmp-queue/try-runtime',71    'pallet-inflation/try-runtime',72    'pallet-unique/try-runtime',73    'pallet-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-coder-substrate/try-runtime',86    'pallet-evm-contract-helpers/try-runtime',87    'pallet-evm-transaction-payment/try-runtime',88    'pallet-evm-migration/try-runtime',89    'pallet-maintenance/try-runtime',90]91std = [92    'codec/std',93    'cumulus-pallet-aura-ext/std',94    'cumulus-pallet-parachain-system/std',95    'cumulus-pallet-xcm/std',96    'cumulus-pallet-xcmp-queue/std',97    'cumulus-primitives-core/std',98    'cumulus-primitives-utility/std',99    'frame-try-runtime/std',100    'frame-executive/std',101    'frame-support/std',102    'frame-system/std',103    'frame-system-rpc-runtime-api/std',104    'pallet-aura/std',105    'pallet-balances/std',106    # 'pallet-contracts/std',107    # 'pallet-contracts-primitives/std',108    # 'pallet-contracts-rpc-runtime-api/std',109    # 'pallet-contract-helpers/std',110    'pallet-randomness-collective-flip/std',111    'pallet-sudo/std',112    'pallet-timestamp/std',113    'pallet-transaction-payment/std',114    'pallet-transaction-payment-rpc-runtime-api/std',115    'pallet-treasury/std',116    'pallet-evm/std',117    'pallet-evm-migration/std',118    'pallet-evm-contract-helpers/std',119    'pallet-evm-transaction-payment/std',120    'pallet-evm-coder-substrate/std',121    'pallet-ethereum/std',122    'pallet-base-fee/std',123    'fp-rpc/std',124    'up-rpc/std',125    'app-promotion-rpc/std',126    'fp-evm-mapping/std',127    'fp-self-contained/std',128    'parachain-info/std',129    'serde',130    'pallet-inflation/std',131    'pallet-configuration/std',132    'pallet-common/std',133    'pallet-structure/std',134    'pallet-fungible/std',135    'pallet-refungible/std',136    'pallet-nonfungible/std',137    'pallet-proxy-rmrk-core/std',138    'pallet-proxy-rmrk-equip/std',139    'pallet-unique/std',140    'pallet-charge-transaction/std',141    'up-data-structs/std',142    'sp-api/std',143    'sp-block-builder/std',144    "sp-consensus-aura/std",145    'sp-core/std',146    'sp-inherents/std',147    'sp-io/std',148    'sp-offchain/std',149    'sp-runtime/std',150    'sp-session/std',151    'sp-std/std',152    'sp-transaction-pool/std',153    'sp-version/std',154    'xcm/std',155    'xcm-builder/std',156    'xcm-executor/std',157    'up-common/std',158    'rmrk-rpc/std',159    'evm-coder/std',160    'up-sponsorship/std',161162    "orml-vesting/std",163    "orml-tokens/std",164    "orml-xtokens/std",165    "orml-traits/std",166    "pallet-foreign-assets/std",167    "pallet-maintenance/std",168]169limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']170unique-runtime = []171stubgen = ["evm-coder/stubgen"]172173refungible = []174scheduler = []175rmrk = []176foreign-assets = []177178################################################################################179# Substrate Dependencies180181[dependencies.codec]182default-features = false183features = ['derive']184package = 'parity-scale-codec'185version = '3.1.2'186187[dependencies.frame-benchmarking]188default-features = false189git = "https://github.com/paritytech/substrate"190optional = true191branch = "polkadot-v0.9.33"192193[dependencies.frame-try-runtime]194default-features = false195git = "https://github.com/paritytech/substrate"196optional = true197branch = "polkadot-v0.9.33"198199[dependencies.frame-executive]200default-features = false201git = "https://github.com/paritytech/substrate"202branch = "polkadot-v0.9.33"203204[dependencies.frame-support]205default-features = false206git = "https://github.com/paritytech/substrate"207branch = "polkadot-v0.9.33"208209[dependencies.frame-system]210default-features = false211git = "https://github.com/paritytech/substrate"212branch = "polkadot-v0.9.33"213214[dependencies.frame-system-benchmarking]215default-features = false216git = "https://github.com/paritytech/substrate"217optional = true218branch = "polkadot-v0.9.33"219220[dependencies.frame-system-rpc-runtime-api]221default-features = false222git = "https://github.com/paritytech/substrate"223branch = "polkadot-v0.9.33"224225[dependencies.hex-literal]226optional = true227version = '0.3.3'228229[dependencies.serde]230default-features = false231features = ['derive']232optional = true233version = '1.0.130'234235[dependencies.pallet-aura]236default-features = false237git = "https://github.com/paritytech/substrate"238branch = "polkadot-v0.9.33"239240[dependencies.pallet-balances]241default-features = false242git = "https://github.com/paritytech/substrate"243branch = "polkadot-v0.9.33"244245# Contracts specific packages246# [dependencies.pallet-contracts]247# git = 'https://github.com/paritytech/substrate'248# default-features = false249# branch = 'master'250# version = '4.0.0-dev'251252# [dependencies.pallet-contracts-primitives]253# git = 'https://github.com/paritytech/substrate'254# default-features = false255# branch = 'master'256# version = '4.0.0-dev'257258# [dependencies.pallet-contracts-rpc-runtime-api]259# git = 'https://github.com/paritytech/substrate'260# default-features = false261# branch = 'master'262# version = '4.0.0-dev'263264[dependencies.pallet-randomness-collective-flip]265default-features = false266git = "https://github.com/paritytech/substrate"267branch = "polkadot-v0.9.33"268269[dependencies.pallet-sudo]270default-features = false271git = "https://github.com/paritytech/substrate"272branch = "polkadot-v0.9.33"273274[dependencies.pallet-timestamp]275default-features = false276git = "https://github.com/paritytech/substrate"277branch = "polkadot-v0.9.33"278279[dependencies.pallet-transaction-payment]280default-features = false281git = "https://github.com/paritytech/substrate"282branch = "polkadot-v0.9.33"283284[dependencies.pallet-transaction-payment-rpc-runtime-api]285default-features = false286git = "https://github.com/paritytech/substrate"287branch = "polkadot-v0.9.33"288289[dependencies.pallet-treasury]290default-features = false291git = "https://github.com/paritytech/substrate"292branch = "polkadot-v0.9.33"293294[dependencies.sp-arithmetic]295default-features = false296git = "https://github.com/paritytech/substrate"297branch = "polkadot-v0.9.33"298299[dependencies.sp-api]300default-features = false301git = "https://github.com/paritytech/substrate"302branch = "polkadot-v0.9.33"303304[dependencies.sp-block-builder]305default-features = false306git = "https://github.com/paritytech/substrate"307branch = "polkadot-v0.9.33"308309[dependencies.sp-core]310default-features = false311git = "https://github.com/paritytech/substrate"312branch = "polkadot-v0.9.33"313314[dependencies.sp-consensus-aura]315default-features = false316git = "https://github.com/paritytech/substrate"317branch = "polkadot-v0.9.33"318319[dependencies.sp-inherents]320default-features = false321git = "https://github.com/paritytech/substrate"322branch = "polkadot-v0.9.33"323324[dependencies.sp-io]325default-features = false326git = "https://github.com/paritytech/substrate"327branch = "polkadot-v0.9.33"328329[dependencies.sp-offchain]330default-features = false331git = "https://github.com/paritytech/substrate"332branch = "polkadot-v0.9.33"333334[dependencies.sp-runtime]335default-features = false336git = "https://github.com/paritytech/substrate"337branch = "polkadot-v0.9.33"338339[dependencies.sp-session]340default-features = false341git = "https://github.com/paritytech/substrate"342branch = "polkadot-v0.9.33"343344[dependencies.sp-std]345default-features = false346git = "https://github.com/paritytech/substrate"347branch = "polkadot-v0.9.33"348349[dependencies.sp-transaction-pool]350default-features = false351git = "https://github.com/paritytech/substrate"352branch = "polkadot-v0.9.33"353354[dependencies.sp-version]355default-features = false356git = "https://github.com/paritytech/substrate"357branch = "polkadot-v0.9.33"358359[dependencies.smallvec]360version = '1.6.1'361362################################################################################363# Cumulus dependencies364365[dependencies.parachain-info]366default-features = false367git = "https://github.com/paritytech/cumulus"368branch = "polkadot-v0.9.33"369370[dependencies.cumulus-pallet-aura-ext]371git = "https://github.com/paritytech/cumulus"372branch = "polkadot-v0.9.33"373default-features = false374375[dependencies.cumulus-pallet-parachain-system]376git = "https://github.com/paritytech/cumulus"377branch = "polkadot-v0.9.33"378default-features = false379380[dependencies.cumulus-primitives-core]381git = "https://github.com/paritytech/cumulus"382branch = "polkadot-v0.9.33"383default-features = false384385[dependencies.cumulus-pallet-xcm]386git = "https://github.com/paritytech/cumulus"387branch = "polkadot-v0.9.33"388default-features = false389390[dependencies.cumulus-pallet-dmp-queue]391git = "https://github.com/paritytech/cumulus"392branch = "polkadot-v0.9.33"393default-features = false394395[dependencies.cumulus-pallet-xcmp-queue]396git = "https://github.com/paritytech/cumulus"397branch = "polkadot-v0.9.33"398default-features = false399400[dependencies.cumulus-primitives-utility]401git = "https://github.com/paritytech/cumulus"402branch = "polkadot-v0.9.33"403default-features = false404405[dependencies.cumulus-primitives-timestamp]406git = "https://github.com/paritytech/cumulus"407branch = "polkadot-v0.9.33"408default-features = false409410################################################################################411# Polkadot dependencies412413[dependencies.polkadot-parachain]414git = "https://github.com/paritytech/polkadot"415branch = "release-v0.9.33"416default-features = false417418[dependencies.xcm]419git = "https://github.com/paritytech/polkadot"420branch = "release-v0.9.33"421default-features = false422423[dependencies.xcm-builder]424git = "https://github.com/paritytech/polkadot"425branch = "release-v0.9.33"426default-features = false427428[dependencies.xcm-executor]429git = "https://github.com/paritytech/polkadot"430branch = "release-v0.9.33"431default-features = false432433[dependencies.pallet-xcm]434git = "https://github.com/paritytech/polkadot"435branch = "release-v0.9.33"436default-features = false437438################################################################################439# local dependencies440441[dependencies]442orml-vesting.workspace = true443orml-xtokens.workspace = true444orml-tokens.workspace = true445orml-traits.workspace = true446447log = { version = "0.4.16", default-features = false }448up-common = { path = "../../primitives/common", default-features = false }449scale-info = { version = "2.0.1", default-features = false, features = [450    "derive",451] }452derivative = "2.2.0"453pallet-unique = { path = '../../pallets/unique', default-features = false }454up-rpc = { path = "../../primitives/rpc", default-features = false }455app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }456rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }457pallet-inflation = { path = '../../pallets/inflation', default-features = false }458pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }459up-data-structs = { path = '../../primitives/data-structs', default-features = false }460pallet-configuration = { default-features = false, path = "../../pallets/configuration" }461pallet-common = { default-features = false, path = "../../pallets/common" }462pallet-structure = { default-features = false, path = "../../pallets/structure" }463pallet-fungible = { default-features = false, path = "../../pallets/fungible" }464pallet-refungible = { default-features = false, path = "../../pallets/refungible" }465pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }466pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }467pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }468# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }469pallet-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" }470pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }471pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }472pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }473pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }474pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }475pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }476pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }477fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }478fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }479fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }480evm-coder = { default-features = false, path = '../../crates/evm-coder' }481up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.33' }482pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }483pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }484485################################################################################486# Other Dependencies487488impl-trait-for-tuples = "0.2.2"489490################################################################################491# Dev Dependencies492493[dev-dependencies.logtest]494version = "2.0.0"495496################################################################################497# Build Dependencies498499[build-dependencies.substrate-wasm-builder]500git = "https://github.com/paritytech/substrate"501branch = "polkadot-v0.9.33"
after · runtime/unique/Cargo.toml
1################################################################################2# Package34[package]5authors = ['Unique Network <support@uniquenetwork.io>']6build = 'build.rs'7description = 'Unique Runtime'8edition = '2021'9homepage = 'https://unique.network'10license = 'GPLv3'11name = 'unique-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', 'unique-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    'up-data-structs/runtime-benchmarks',45    'pallet-maintenance/runtime-benchmarks',46]47try-runtime = [48    'frame-try-runtime',49    'frame-executive/try-runtime',50    'frame-support/try-runtime',51    'frame-system/try-runtime',52    'cumulus-pallet-parachain-system/try-runtime',53    'parachain-info/try-runtime',54    'pallet-aura/try-runtime',55    'cumulus-pallet-aura-ext/try-runtime',56    'pallet-balances/try-runtime',57    'pallet-randomness-collective-flip/try-runtime',58    'pallet-timestamp/try-runtime',59    'pallet-transaction-payment/try-runtime',60    'pallet-treasury/try-runtime',61    'pallet-sudo/try-runtime',62    'orml-vesting/try-runtime',63    'orml-xtokens/try-runtime',64    'orml-tokens/try-runtime',65    'cumulus-pallet-xcmp-queue/try-runtime',66    'pallet-xcm/try-runtime',67    'cumulus-pallet-xcm/try-runtime',68    'cumulus-pallet-dmp-queue/try-runtime',69    'pallet-inflation/try-runtime',70    'pallet-unique/try-runtime',71    'pallet-configuration/try-runtime',72    'pallet-charge-transaction/try-runtime',73    'pallet-common/try-runtime',74    'pallet-fungible/try-runtime',75    'pallet-refungible/try-runtime',76    'pallet-nonfungible/try-runtime',77    'pallet-structure/try-runtime',78    'pallet-proxy-rmrk-core/try-runtime',79    'pallet-proxy-rmrk-equip/try-runtime',80    'pallet-app-promotion/try-runtime',81    'pallet-foreign-assets/try-runtime',82    'pallet-ethereum/try-runtime',83    'pallet-evm-coder-substrate/try-runtime',84    'pallet-evm-contract-helpers/try-runtime',85    'pallet-evm-transaction-payment/try-runtime',86    'pallet-evm-migration/try-runtime',87    'pallet-maintenance/try-runtime',88]89std = [90    'codec/std',91    'cumulus-pallet-aura-ext/std',92    'cumulus-pallet-parachain-system/std',93    'cumulus-pallet-xcm/std',94    'cumulus-pallet-xcmp-queue/std',95    'cumulus-primitives-core/std',96    'cumulus-primitives-utility/std',97    'frame-try-runtime/std',98    'frame-executive/std',99    'frame-support/std',100    'frame-system/std',101    'frame-system-rpc-runtime-api/std',102    'pallet-aura/std',103    'pallet-balances/std',104    # 'pallet-contracts/std',105    # 'pallet-contracts-primitives/std',106    # 'pallet-contracts-rpc-runtime-api/std',107    # 'pallet-contract-helpers/std',108    'pallet-randomness-collective-flip/std',109    'pallet-sudo/std',110    'pallet-timestamp/std',111    'pallet-transaction-payment/std',112    'pallet-transaction-payment-rpc-runtime-api/std',113    'pallet-treasury/std',114    'pallet-evm/std',115    'pallet-evm-migration/std',116    'pallet-evm-contract-helpers/std',117    'pallet-evm-transaction-payment/std',118    'pallet-evm-coder-substrate/std',119    'pallet-ethereum/std',120    'pallet-base-fee/std',121    'fp-rpc/std',122    'up-rpc/std',123    'app-promotion-rpc/std',124    'fp-evm-mapping/std',125    'fp-self-contained/std',126    'parachain-info/std',127    'serde',128    'pallet-inflation/std',129    'pallet-configuration/std',130    'pallet-common/std',131    'pallet-structure/std',132    'pallet-fungible/std',133    'pallet-refungible/std',134    'pallet-nonfungible/std',135    'pallet-proxy-rmrk-core/std',136    'pallet-proxy-rmrk-equip/std',137    'pallet-unique/std',138    'pallet-charge-transaction/std',139    'up-data-structs/std',140    'sp-api/std',141    'sp-block-builder/std',142    "sp-consensus-aura/std",143    'sp-core/std',144    'sp-inherents/std',145    'sp-io/std',146    'sp-offchain/std',147    'sp-runtime/std',148    'sp-session/std',149    'sp-std/std',150    'sp-transaction-pool/std',151    'sp-version/std',152    'xcm/std',153    'xcm-builder/std',154    'xcm-executor/std',155    'up-common/std',156    'rmrk-rpc/std',157    'evm-coder/std',158    'up-sponsorship/std',159160    "orml-vesting/std",161    "orml-tokens/std",162    "orml-xtokens/std",163    "orml-traits/std",164    "pallet-foreign-assets/std",165    "pallet-maintenance/std",166]167limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']168unique-runtime = []169stubgen = ["evm-coder/stubgen"]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# local dependencies438439[dependencies]440orml-vesting.workspace = true441orml-xtokens.workspace = true442orml-tokens.workspace = true443orml-traits.workspace = true444445log = { version = "0.4.16", default-features = false }446up-common = { path = "../../primitives/common", default-features = false }447scale-info = { version = "2.0.1", default-features = false, features = [448    "derive",449] }450derivative = "2.2.0"451pallet-unique = { path = '../../pallets/unique', default-features = false }452up-rpc = { path = "../../primitives/rpc", default-features = false }453app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }454rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }455pallet-inflation = { path = '../../pallets/inflation', default-features = false }456pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }457up-data-structs = { path = '../../primitives/data-structs', default-features = false }458pallet-configuration = { default-features = false, path = "../../pallets/configuration" }459pallet-common = { default-features = false, path = "../../pallets/common" }460pallet-structure = { default-features = false, path = "../../pallets/structure" }461pallet-fungible = { default-features = false, path = "../../pallets/fungible" }462pallet-refungible = { default-features = false, path = "../../pallets/refungible" }463pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }464pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }465pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }466# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }467pallet-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" }468pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }469pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }470pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }471pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }472pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }473pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }474pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }475fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }476fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }477fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }478evm-coder = { default-features = false, path = '../../crates/evm-coder' }479up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.33' }480pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }481pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }482483################################################################################484# Other Dependencies485486impl-trait-for-tuples = "0.2.2"487488################################################################################489# Dev Dependencies490491[dev-dependencies.logtest]492version = "2.0.0"493494################################################################################495# Build Dependencies496497[build-dependencies.substrate-wasm-builder]498git = "https://github.com/paritytech/substrate"499branch = "polkadot-v0.9.33"