difftreelog
feat add refungible and new-functionality feature
in: master
5 files changed
runtime/common/Cargo.tomldiffbeforeafterboth--- a/runtime/common/Cargo.toml
+++ b/runtime/common/Cargo.toml
@@ -32,8 +32,10 @@
'frame-support/runtime-benchmarks',
'frame-system/runtime-benchmarks',
]
-unique-runtime = ['std']
-quartz-runtime = ['std']
+unique-runtime = []
+quartz-runtime = []
+
+refungible = []
[dependencies.sp-core]
default-features = false
runtime/common/src/weights.rsdiffbeforeafterboth--- a/runtime/common/src/weights.rs
+++ b/runtime/common/src/weights.rs
@@ -25,33 +25,36 @@
};
use up_data_structs::{CreateItemExData, CreateItemData};
-#[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
macro_rules! max_weight_of {
- ($method:ident ( $($args:tt)* )) => {
- <FungibleWeights<T>>::$method($($args)*)
- .max(<NonfungibleWeights<T>>::$method($($args)*))
- .max(<RefungibleWeights<T>>::$method($($args)*))
- };
+ ($method:ident ( $($args:tt)* )) => {{
+ let max_weight = <FungibleWeights<T>>::$method($($args)*)
+ .max(<NonfungibleWeights<T>>::$method($($args)*));
+
+ #[cfg(feature = "refungible")]
+ let max_weight = max_weight.max(<RefungibleWeights<T>>::$method($($args)*));
+
+ max_weight
+ }};
}
-#[cfg(any(feature = "unique-runtime", feature = "quartz-runtime"))]
-macro_rules! max_weight_of {
- ($method:ident ( $($args:tt)* )) => {
- <FungibleWeights<T>>::$method($($args)*)
- .max(<NonfungibleWeights<T>>::$method($($args)*))
+#[cfg(not(feature = "refungible"))]
+pub trait CommonWeightConfigs: FungibleConfig + NonfungibleConfig {}
+
+#[cfg(not(feature = "refungible"))]
+impl<T: FungibleConfig + NonfungibleConfig> CommonWeightConfigs for T {}
+
+#[cfg(feature = "refungible")]
+pub trait CommonWeightConfigs: FungibleConfig + NonfungibleConfig + RefungibleConfig {}
+
+#[cfg(feature = "refungible")]
+impl<T: FungibleConfig + NonfungibleConfig + RefungibleConfig> CommonWeightConfigs for T {}
- };
-}
-#[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
-pub struct CommonWeights<T>(PhantomData<T>)
-where
- T: FungibleConfig + NonfungibleConfig + RefungibleConfig;
+pub struct CommonWeights<T>(PhantomData<T>);
-#[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
impl<T> CommonWeightInfo<T::CrossAccountId> for CommonWeights<T>
where
- T: FungibleConfig + NonfungibleConfig + RefungibleConfig,
+ T: CommonWeightConfigs,
{
fn create_item() -> Weight {
dispatch_weight::<T>() + max_weight_of!(create_item())
@@ -114,7 +117,7 @@
}
}
-#[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
+#[cfg(feature = "refungible")]
impl<T> RefungibleExtensionsWeightInfo for CommonWeights<T>
where
T: FungibleConfig + NonfungibleConfig + RefungibleConfig,
@@ -124,78 +127,7 @@
}
}
-#[cfg(any(feature = "unique-runtime", feature = "quartz-runtime"))]
-pub struct CommonWeights<T>(PhantomData<T>)
-where
- T: FungibleConfig + NonfungibleConfig;
-
-#[cfg(any(feature = "unique-runtime", feature = "quartz-runtime"))]
-impl<T> CommonWeightInfo<T::CrossAccountId> for CommonWeights<T>
-where
- T: FungibleConfig + NonfungibleConfig,
-{
- fn create_item() -> Weight {
- dispatch_weight::<T>() + max_weight_of!(create_item())
- }
-
- fn create_multiple_items(data: &[CreateItemData]) -> Weight {
- dispatch_weight::<T>() + max_weight_of!(create_multiple_items(data))
- }
-
- fn create_multiple_items_ex(data: &CreateItemExData<T::CrossAccountId>) -> Weight {
- dispatch_weight::<T>() + max_weight_of!(create_multiple_items_ex(data))
- }
-
- fn burn_item() -> Weight {
- dispatch_weight::<T>() + max_weight_of!(burn_item())
- }
-
- fn set_collection_properties(amount: u32) -> Weight {
- dispatch_weight::<T>() + max_weight_of!(set_collection_properties(amount))
- }
-
- fn delete_collection_properties(amount: u32) -> Weight {
- dispatch_weight::<T>() + max_weight_of!(delete_collection_properties(amount))
- }
-
- fn set_token_properties(amount: u32) -> Weight {
- dispatch_weight::<T>() + max_weight_of!(set_token_properties(amount))
- }
-
- fn delete_token_properties(amount: u32) -> Weight {
- dispatch_weight::<T>() + max_weight_of!(delete_token_properties(amount))
- }
-
- fn set_token_property_permissions(amount: u32) -> Weight {
- dispatch_weight::<T>() + max_weight_of!(set_token_property_permissions(amount))
- }
-
- fn transfer() -> Weight {
- dispatch_weight::<T>() + max_weight_of!(transfer())
- }
-
- fn approve() -> Weight {
- dispatch_weight::<T>() + max_weight_of!(approve())
- }
-
- fn transfer_from() -> Weight {
- dispatch_weight::<T>() + max_weight_of!(transfer_from())
- }
-
- fn burn_from() -> Weight {
- dispatch_weight::<T>() + max_weight_of!(burn_from())
- }
-
- fn burn_recursively_self_raw() -> Weight {
- max_weight_of!(burn_recursively_self_raw())
- }
-
- fn burn_recursively_breadth_raw(amount: u32) -> Weight {
- max_weight_of!(burn_recursively_breadth_raw(amount))
- }
-}
-
-#[cfg(any(feature = "unique-runtime", feature = "quartz-runtime"))]
+#[cfg(not(feature = "refungible"))]
impl<T> RefungibleExtensionsWeightInfo for CommonWeights<T>
where
T: FungibleConfig + NonfungibleConfig,
runtime/opal/Cargo.tomldiffbeforeafterboth--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -16,7 +16,7 @@
targets = ['x86_64-unknown-linux-gnu']
[features]
-default = ['std']
+default = ['std', 'new-functionality']
runtime-benchmarks = [
'hex-literal',
'frame-benchmarking',
@@ -119,6 +119,9 @@
"orml-vesting/std",
]
limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']
+new-functionality = [
+ 'unique-runtime-common/refungible',
+]
################################################################################
# Substrate Dependencies
runtime/quartz/Cargo.tomldiffbeforeafterboth1################################################################################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.24'1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std']20runtime-benchmarks = [21 'hex-literal',22 'frame-benchmarking',23 'frame-support/runtime-benchmarks',24 'frame-system-benchmarking',25 'frame-system/runtime-benchmarks',26 'pallet-ethereum/runtime-benchmarks',27 'pallet-evm-migration/runtime-benchmarks',28 'pallet-evm-coder-substrate/runtime-benchmarks',29 'pallet-balances/runtime-benchmarks',30 'pallet-timestamp/runtime-benchmarks',31 'pallet-common/runtime-benchmarks',32 'pallet-structure/runtime-benchmarks',33 'pallet-fungible/runtime-benchmarks',34 'pallet-refungible/runtime-benchmarks',35 'pallet-nonfungible/runtime-benchmarks',36 'pallet-proxy-rmrk-core/runtime-benchmarks',37 'pallet-proxy-rmrk-equip/runtime-benchmarks',38 'pallet-unique/runtime-benchmarks',39 'pallet-inflation/runtime-benchmarks',40 'pallet-unique-scheduler/runtime-benchmarks',41 'pallet-xcm/runtime-benchmarks',42 'sp-runtime/runtime-benchmarks',43 'xcm-builder/runtime-benchmarks',44]45try-runtime = [46 'frame-try-runtime',47 'frame-executive/try-runtime',48 'frame-system/try-runtime',49]50std = [51 'codec/std',52 'cumulus-pallet-aura-ext/std',53 'cumulus-pallet-parachain-system/std',54 'cumulus-pallet-xcm/std',55 'cumulus-pallet-xcmp-queue/std',56 'cumulus-primitives-core/std',57 'cumulus-primitives-utility/std',58 'frame-try-runtime/std',59 'frame-executive/std',60 'frame-support/std',61 'frame-system/std',62 'frame-system-rpc-runtime-api/std',63 'pallet-aura/std',64 'pallet-balances/std',65 # 'pallet-contracts/std',66 # 'pallet-contracts-primitives/std',67 # 'pallet-contracts-rpc-runtime-api/std',68 # 'pallet-contract-helpers/std',69 'pallet-randomness-collective-flip/std',70 'pallet-sudo/std',71 'pallet-timestamp/std',72 'pallet-transaction-payment/std',73 'pallet-transaction-payment-rpc-runtime-api/std',74 'pallet-treasury/std',75 # 'pallet-vesting/std',76 'pallet-evm/std',77 'pallet-evm-migration/std',78 'pallet-evm-contract-helpers/std',79 'pallet-evm-transaction-payment/std',80 'pallet-evm-coder-substrate/std',81 'pallet-ethereum/std',82 'pallet-base-fee/std',83 'fp-rpc/std',84 'up-rpc/std',85 'fp-evm-mapping/std',86 'fp-self-contained/std',87 'parachain-info/std',88 'serde',89 'pallet-inflation/std',90 'pallet-common/std',91 'pallet-structure/std',92 'pallet-fungible/std',93 'pallet-refungible/std',94 'pallet-nonfungible/std',95 'pallet-proxy-rmrk-core/std',96 'pallet-proxy-rmrk-equip/std',97 'pallet-unique/std',98 'pallet-unique-scheduler/std',99 'pallet-charge-transaction/std',100 'up-data-structs/std',101 'sp-api/std',102 'sp-block-builder/std',103 "sp-consensus-aura/std",104 'sp-core/std',105 'sp-inherents/std',106 'sp-io/std',107 'sp-offchain/std',108 'sp-runtime/std',109 'sp-session/std',110 'sp-std/std',111 'sp-transaction-pool/std',112 'sp-version/std',113 'xcm/std',114 'xcm-builder/std',115 'xcm-executor/std',116 'unique-runtime-common/std',117118 "orml-vesting/std",119]120limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']121122################################################################################123# Substrate Dependencies124125[dependencies.codec]126default-features = false127features = ['derive']128package = 'parity-scale-codec'129version = '3.1.2'130131[dependencies.frame-benchmarking]132default-features = false133git = "https://github.com/paritytech/substrate"134optional = true135branch = "polkadot-v0.9.24"136137[dependencies.frame-try-runtime]138default-features = false139git = 'https://github.com/paritytech/substrate'140optional = true141branch = 'polkadot-v0.9.24'142143[dependencies.frame-executive]144default-features = false145git = "https://github.com/paritytech/substrate"146branch = "polkadot-v0.9.24"147148[dependencies.frame-support]149default-features = false150git = "https://github.com/paritytech/substrate"151branch = "polkadot-v0.9.24"152153[dependencies.frame-system]154default-features = false155git = "https://github.com/paritytech/substrate"156branch = "polkadot-v0.9.24"157158[dependencies.frame-system-benchmarking]159default-features = false160git = "https://github.com/paritytech/substrate"161optional = true162branch = "polkadot-v0.9.24"163164[dependencies.frame-system-rpc-runtime-api]165default-features = false166git = "https://github.com/paritytech/substrate"167branch = "polkadot-v0.9.24"168169[dependencies.hex-literal]170optional = true171version = '0.3.3'172173[dependencies.serde]174default-features = false175features = ['derive']176optional = true177version = '1.0.130'178179[dependencies.pallet-aura]180default-features = false181git = "https://github.com/paritytech/substrate"182branch = "polkadot-v0.9.24"183184[dependencies.pallet-balances]185default-features = false186git = "https://github.com/paritytech/substrate"187branch = "polkadot-v0.9.24"188189# Contracts specific packages190# [dependencies.pallet-contracts]191# git = 'https://github.com/paritytech/substrate'192# default-features = false193# branch = 'master'194# version = '4.0.0-dev'195196# [dependencies.pallet-contracts-primitives]197# git = 'https://github.com/paritytech/substrate'198# default-features = false199# branch = 'master'200# version = '4.0.0-dev'201202# [dependencies.pallet-contracts-rpc-runtime-api]203# git = 'https://github.com/paritytech/substrate'204# default-features = false205# branch = 'master'206# version = '4.0.0-dev'207208[dependencies.pallet-randomness-collective-flip]209default-features = false210git = "https://github.com/paritytech/substrate"211branch = "polkadot-v0.9.24"212213[dependencies.pallet-sudo]214default-features = false215git = "https://github.com/paritytech/substrate"216branch = "polkadot-v0.9.24"217218[dependencies.pallet-timestamp]219default-features = false220git = "https://github.com/paritytech/substrate"221branch = "polkadot-v0.9.24"222223[dependencies.pallet-transaction-payment]224default-features = false225git = "https://github.com/paritytech/substrate"226branch = "polkadot-v0.9.24"227228[dependencies.pallet-transaction-payment-rpc-runtime-api]229default-features = false230git = "https://github.com/paritytech/substrate"231branch = "polkadot-v0.9.24"232233[dependencies.pallet-treasury]234default-features = false235git = "https://github.com/paritytech/substrate"236branch = "polkadot-v0.9.24"237238# [dependencies.pallet-vesting]239# default-features = false240# git = 'https://github.com/paritytech/substrate'241# branch = 'master'242243[dependencies.sp-arithmetic]244default-features = false245git = "https://github.com/paritytech/substrate"246branch = "polkadot-v0.9.24"247248[dependencies.sp-api]249default-features = false250git = "https://github.com/paritytech/substrate"251branch = "polkadot-v0.9.24"252253[dependencies.sp-block-builder]254default-features = false255git = "https://github.com/paritytech/substrate"256branch = "polkadot-v0.9.24"257258[dependencies.sp-core]259default-features = false260git = "https://github.com/paritytech/substrate"261branch = "polkadot-v0.9.24"262263[dependencies.sp-consensus-aura]264default-features = false265git = "https://github.com/paritytech/substrate"266branch = "polkadot-v0.9.24"267268[dependencies.sp-inherents]269default-features = false270git = "https://github.com/paritytech/substrate"271branch = "polkadot-v0.9.24"272273[dependencies.sp-io]274default-features = false275git = "https://github.com/paritytech/substrate"276branch = "polkadot-v0.9.24"277278[dependencies.sp-offchain]279default-features = false280git = "https://github.com/paritytech/substrate"281branch = "polkadot-v0.9.24"282283[dependencies.sp-runtime]284default-features = false285git = "https://github.com/paritytech/substrate"286branch = "polkadot-v0.9.24"287288[dependencies.sp-session]289default-features = false290git = "https://github.com/paritytech/substrate"291branch = "polkadot-v0.9.24"292293[dependencies.sp-std]294default-features = false295git = "https://github.com/paritytech/substrate"296branch = "polkadot-v0.9.24"297298[dependencies.sp-transaction-pool]299default-features = false300git = "https://github.com/paritytech/substrate"301branch = "polkadot-v0.9.24"302303[dependencies.sp-version]304default-features = false305git = "https://github.com/paritytech/substrate"306branch = "polkadot-v0.9.24"307308[dependencies.smallvec]309version = '1.6.1'310311################################################################################312# Cumulus dependencies313314[dependencies.parachain-info]315default-features = false316git = "https://github.com/paritytech/cumulus"317branch = "polkadot-v0.9.24"318319[dependencies.cumulus-pallet-aura-ext]320git = "https://github.com/paritytech/cumulus"321branch = "polkadot-v0.9.24"322default-features = false323324[dependencies.cumulus-pallet-parachain-system]325git = "https://github.com/paritytech/cumulus"326branch = "polkadot-v0.9.24"327default-features = false328329[dependencies.cumulus-primitives-core]330git = "https://github.com/paritytech/cumulus"331branch = "polkadot-v0.9.24"332default-features = false333334[dependencies.cumulus-pallet-xcm]335git = "https://github.com/paritytech/cumulus"336branch = "polkadot-v0.9.24"337default-features = false338339[dependencies.cumulus-pallet-dmp-queue]340git = "https://github.com/paritytech/cumulus"341branch = "polkadot-v0.9.24"342default-features = false343344[dependencies.cumulus-pallet-xcmp-queue]345git = "https://github.com/paritytech/cumulus"346branch = "polkadot-v0.9.24"347default-features = false348349[dependencies.cumulus-primitives-utility]350git = "https://github.com/paritytech/cumulus"351branch = "polkadot-v0.9.24"352default-features = false353354[dependencies.cumulus-primitives-timestamp]355git = "https://github.com/paritytech/cumulus"356branch = "polkadot-v0.9.24"357default-features = false358359################################################################################360# Polkadot dependencies361362[dependencies.polkadot-parachain]363git = "https://github.com/paritytech/polkadot"364branch = "release-v0.9.24"365default-features = false366367[dependencies.xcm]368git = "https://github.com/paritytech/polkadot"369branch = "release-v0.9.24"370default-features = false371372[dependencies.xcm-builder]373git = "https://github.com/paritytech/polkadot"374branch = "release-v0.9.24"375default-features = false376377[dependencies.xcm-executor]378git = "https://github.com/paritytech/polkadot"379branch = "release-v0.9.24"380default-features = false381382[dependencies.pallet-xcm]383git = "https://github.com/paritytech/polkadot"384branch = "release-v0.9.24"385default-features = false386387[dependencies.orml-vesting]388git = "https://github.com/uniquenetwork/open-runtime-module-library"389branch = "unique-polkadot-v0.9.24"390version = "0.4.1-dev"391default-features = false392393################################################################################394# RMRK dependencies395396# todo git397[dependencies.rmrk-rpc]398default-features = false399path = "../../primitives/rmrk-rpc"400401################################################################################402# local dependencies403404[dependencies]405log = { version = "0.4.16", default-features = false }406unique-runtime-common = { path = "../common", default-features = false }407scale-info = { version = "2.0.1", default-features = false, features = [408 "derive",409] }410derivative = "2.2.0"411pallet-unique = { path = '../../pallets/unique', default-features = false }412up-rpc = { path = "../../primitives/rpc", default-features = false }413fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }414pallet-inflation = { path = '../../pallets/inflation', default-features = false }415up-data-structs = { path = '../../primitives/data-structs', default-features = false }416pallet-common = { default-features = false, path = "../../pallets/common" }417pallet-structure = { default-features = false, path = "../../pallets/structure" }418pallet-fungible = { default-features = false, path = "../../pallets/fungible" }419pallet-refungible = { default-features = false, path = "../../pallets/refungible" }420pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }421pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }422pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }423pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }424# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }425pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.24", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }426pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }427pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }428pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }429pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }430pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }431pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }432pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }433fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }434fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }435436################################################################################437# Build Dependencies438439[build-dependencies.substrate-wasm-builder]440git = "https://github.com/paritytech/substrate"441branch = "polkadot-v0.9.24"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.24'1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std', 'new-functionality']20runtime-benchmarks = [21 'hex-literal',22 'frame-benchmarking',23 'frame-support/runtime-benchmarks',24 'frame-system-benchmarking',25 'frame-system/runtime-benchmarks',26 'pallet-ethereum/runtime-benchmarks',27 'pallet-evm-migration/runtime-benchmarks',28 'pallet-evm-coder-substrate/runtime-benchmarks',29 'pallet-balances/runtime-benchmarks',30 'pallet-timestamp/runtime-benchmarks',31 'pallet-common/runtime-benchmarks',32 'pallet-structure/runtime-benchmarks',33 'pallet-fungible/runtime-benchmarks',34 'pallet-refungible/runtime-benchmarks',35 'pallet-nonfungible/runtime-benchmarks',36 'pallet-proxy-rmrk-core/runtime-benchmarks',37 'pallet-proxy-rmrk-equip/runtime-benchmarks',38 'pallet-unique/runtime-benchmarks',39 'pallet-inflation/runtime-benchmarks',40 'pallet-unique-scheduler/runtime-benchmarks',41 'pallet-xcm/runtime-benchmarks',42 'sp-runtime/runtime-benchmarks',43 'xcm-builder/runtime-benchmarks',44]45try-runtime = [46 'frame-try-runtime',47 'frame-executive/try-runtime',48 'frame-system/try-runtime',49]50std = [51 'codec/std',52 'cumulus-pallet-aura-ext/std',53 'cumulus-pallet-parachain-system/std',54 'cumulus-pallet-xcm/std',55 'cumulus-pallet-xcmp-queue/std',56 'cumulus-primitives-core/std',57 'cumulus-primitives-utility/std',58 'frame-try-runtime/std',59 'frame-executive/std',60 'frame-support/std',61 'frame-system/std',62 'frame-system-rpc-runtime-api/std',63 'pallet-aura/std',64 'pallet-balances/std',65 # 'pallet-contracts/std',66 # 'pallet-contracts-primitives/std',67 # 'pallet-contracts-rpc-runtime-api/std',68 # 'pallet-contract-helpers/std',69 'pallet-randomness-collective-flip/std',70 'pallet-sudo/std',71 'pallet-timestamp/std',72 'pallet-transaction-payment/std',73 'pallet-transaction-payment-rpc-runtime-api/std',74 'pallet-treasury/std',75 # 'pallet-vesting/std',76 'pallet-evm/std',77 'pallet-evm-migration/std',78 'pallet-evm-contract-helpers/std',79 'pallet-evm-transaction-payment/std',80 'pallet-evm-coder-substrate/std',81 'pallet-ethereum/std',82 'pallet-base-fee/std',83 'fp-rpc/std',84 'up-rpc/std',85 'fp-evm-mapping/std',86 'fp-self-contained/std',87 'parachain-info/std',88 'serde',89 'pallet-inflation/std',90 'pallet-common/std',91 'pallet-structure/std',92 'pallet-fungible/std',93 'pallet-refungible/std',94 'pallet-nonfungible/std',95 'pallet-proxy-rmrk-core/std',96 'pallet-proxy-rmrk-equip/std',97 'pallet-unique/std',98 'pallet-unique-scheduler/std',99 'pallet-charge-transaction/std',100 'up-data-structs/std',101 'sp-api/std',102 'sp-block-builder/std',103 "sp-consensus-aura/std",104 'sp-core/std',105 'sp-inherents/std',106 'sp-io/std',107 'sp-offchain/std',108 'sp-runtime/std',109 'sp-session/std',110 'sp-std/std',111 'sp-transaction-pool/std',112 'sp-version/std',113 'xcm/std',114 'xcm-builder/std',115 'xcm-executor/std',116 'unique-runtime-common/std',117118 "orml-vesting/std",119]120limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']121new-functionality = []122123################################################################################124# Substrate Dependencies125126[dependencies.codec]127default-features = false128features = ['derive']129package = 'parity-scale-codec'130version = '3.1.2'131132[dependencies.frame-benchmarking]133default-features = false134git = "https://github.com/paritytech/substrate"135optional = true136branch = "polkadot-v0.9.24"137138[dependencies.frame-try-runtime]139default-features = false140git = 'https://github.com/paritytech/substrate'141optional = true142branch = 'polkadot-v0.9.24'143144[dependencies.frame-executive]145default-features = false146git = "https://github.com/paritytech/substrate"147branch = "polkadot-v0.9.24"148149[dependencies.frame-support]150default-features = false151git = "https://github.com/paritytech/substrate"152branch = "polkadot-v0.9.24"153154[dependencies.frame-system]155default-features = false156git = "https://github.com/paritytech/substrate"157branch = "polkadot-v0.9.24"158159[dependencies.frame-system-benchmarking]160default-features = false161git = "https://github.com/paritytech/substrate"162optional = true163branch = "polkadot-v0.9.24"164165[dependencies.frame-system-rpc-runtime-api]166default-features = false167git = "https://github.com/paritytech/substrate"168branch = "polkadot-v0.9.24"169170[dependencies.hex-literal]171optional = true172version = '0.3.3'173174[dependencies.serde]175default-features = false176features = ['derive']177optional = true178version = '1.0.130'179180[dependencies.pallet-aura]181default-features = false182git = "https://github.com/paritytech/substrate"183branch = "polkadot-v0.9.24"184185[dependencies.pallet-balances]186default-features = false187git = "https://github.com/paritytech/substrate"188branch = "polkadot-v0.9.24"189190# Contracts specific packages191# [dependencies.pallet-contracts]192# git = 'https://github.com/paritytech/substrate'193# default-features = false194# branch = 'master'195# version = '4.0.0-dev'196197# [dependencies.pallet-contracts-primitives]198# git = 'https://github.com/paritytech/substrate'199# default-features = false200# branch = 'master'201# version = '4.0.0-dev'202203# [dependencies.pallet-contracts-rpc-runtime-api]204# git = 'https://github.com/paritytech/substrate'205# default-features = false206# branch = 'master'207# version = '4.0.0-dev'208209[dependencies.pallet-randomness-collective-flip]210default-features = false211git = "https://github.com/paritytech/substrate"212branch = "polkadot-v0.9.24"213214[dependencies.pallet-sudo]215default-features = false216git = "https://github.com/paritytech/substrate"217branch = "polkadot-v0.9.24"218219[dependencies.pallet-timestamp]220default-features = false221git = "https://github.com/paritytech/substrate"222branch = "polkadot-v0.9.24"223224[dependencies.pallet-transaction-payment]225default-features = false226git = "https://github.com/paritytech/substrate"227branch = "polkadot-v0.9.24"228229[dependencies.pallet-transaction-payment-rpc-runtime-api]230default-features = false231git = "https://github.com/paritytech/substrate"232branch = "polkadot-v0.9.24"233234[dependencies.pallet-treasury]235default-features = false236git = "https://github.com/paritytech/substrate"237branch = "polkadot-v0.9.24"238239# [dependencies.pallet-vesting]240# default-features = false241# git = 'https://github.com/paritytech/substrate'242# branch = 'master'243244[dependencies.sp-arithmetic]245default-features = false246git = "https://github.com/paritytech/substrate"247branch = "polkadot-v0.9.24"248249[dependencies.sp-api]250default-features = false251git = "https://github.com/paritytech/substrate"252branch = "polkadot-v0.9.24"253254[dependencies.sp-block-builder]255default-features = false256git = "https://github.com/paritytech/substrate"257branch = "polkadot-v0.9.24"258259[dependencies.sp-core]260default-features = false261git = "https://github.com/paritytech/substrate"262branch = "polkadot-v0.9.24"263264[dependencies.sp-consensus-aura]265default-features = false266git = "https://github.com/paritytech/substrate"267branch = "polkadot-v0.9.24"268269[dependencies.sp-inherents]270default-features = false271git = "https://github.com/paritytech/substrate"272branch = "polkadot-v0.9.24"273274[dependencies.sp-io]275default-features = false276git = "https://github.com/paritytech/substrate"277branch = "polkadot-v0.9.24"278279[dependencies.sp-offchain]280default-features = false281git = "https://github.com/paritytech/substrate"282branch = "polkadot-v0.9.24"283284[dependencies.sp-runtime]285default-features = false286git = "https://github.com/paritytech/substrate"287branch = "polkadot-v0.9.24"288289[dependencies.sp-session]290default-features = false291git = "https://github.com/paritytech/substrate"292branch = "polkadot-v0.9.24"293294[dependencies.sp-std]295default-features = false296git = "https://github.com/paritytech/substrate"297branch = "polkadot-v0.9.24"298299[dependencies.sp-transaction-pool]300default-features = false301git = "https://github.com/paritytech/substrate"302branch = "polkadot-v0.9.24"303304[dependencies.sp-version]305default-features = false306git = "https://github.com/paritytech/substrate"307branch = "polkadot-v0.9.24"308309[dependencies.smallvec]310version = '1.6.1'311312################################################################################313# Cumulus dependencies314315[dependencies.parachain-info]316default-features = false317git = "https://github.com/paritytech/cumulus"318branch = "polkadot-v0.9.24"319320[dependencies.cumulus-pallet-aura-ext]321git = "https://github.com/paritytech/cumulus"322branch = "polkadot-v0.9.24"323default-features = false324325[dependencies.cumulus-pallet-parachain-system]326git = "https://github.com/paritytech/cumulus"327branch = "polkadot-v0.9.24"328default-features = false329330[dependencies.cumulus-primitives-core]331git = "https://github.com/paritytech/cumulus"332branch = "polkadot-v0.9.24"333default-features = false334335[dependencies.cumulus-pallet-xcm]336git = "https://github.com/paritytech/cumulus"337branch = "polkadot-v0.9.24"338default-features = false339340[dependencies.cumulus-pallet-dmp-queue]341git = "https://github.com/paritytech/cumulus"342branch = "polkadot-v0.9.24"343default-features = false344345[dependencies.cumulus-pallet-xcmp-queue]346git = "https://github.com/paritytech/cumulus"347branch = "polkadot-v0.9.24"348default-features = false349350[dependencies.cumulus-primitives-utility]351git = "https://github.com/paritytech/cumulus"352branch = "polkadot-v0.9.24"353default-features = false354355[dependencies.cumulus-primitives-timestamp]356git = "https://github.com/paritytech/cumulus"357branch = "polkadot-v0.9.24"358default-features = false359360################################################################################361# Polkadot dependencies362363[dependencies.polkadot-parachain]364git = "https://github.com/paritytech/polkadot"365branch = "release-v0.9.24"366default-features = false367368[dependencies.xcm]369git = "https://github.com/paritytech/polkadot"370branch = "release-v0.9.24"371default-features = false372373[dependencies.xcm-builder]374git = "https://github.com/paritytech/polkadot"375branch = "release-v0.9.24"376default-features = false377378[dependencies.xcm-executor]379git = "https://github.com/paritytech/polkadot"380branch = "release-v0.9.24"381default-features = false382383[dependencies.pallet-xcm]384git = "https://github.com/paritytech/polkadot"385branch = "release-v0.9.24"386default-features = false387388[dependencies.orml-vesting]389git = "https://github.com/uniquenetwork/open-runtime-module-library"390branch = "unique-polkadot-v0.9.24"391version = "0.4.1-dev"392default-features = false393394################################################################################395# RMRK dependencies396397# todo git398[dependencies.rmrk-rpc]399default-features = false400path = "../../primitives/rmrk-rpc"401402################################################################################403# local dependencies404405[dependencies]406log = { version = "0.4.16", default-features = false }407unique-runtime-common = { path = "../common", default-features = false }408scale-info = { version = "2.0.1", default-features = false, features = [409 "derive",410] }411derivative = "2.2.0"412pallet-unique = { path = '../../pallets/unique', default-features = false }413up-rpc = { path = "../../primitives/rpc", default-features = false }414fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }415pallet-inflation = { path = '../../pallets/inflation', default-features = false }416up-data-structs = { path = '../../primitives/data-structs', default-features = false }417pallet-common = { default-features = false, path = "../../pallets/common" }418pallet-structure = { default-features = false, path = "../../pallets/structure" }419pallet-fungible = { default-features = false, path = "../../pallets/fungible" }420pallet-refungible = { default-features = false, path = "../../pallets/refungible" }421pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }422pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }423pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }424pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }425# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }426pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.24", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }427pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }428pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }429pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }430pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }431pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }432pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }433pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }434fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }435fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.24" }436437################################################################################438# Build Dependencies439440[build-dependencies.substrate-wasm-builder]441git = "https://github.com/paritytech/substrate"442branch = "polkadot-v0.9.24"runtime/unique/Cargo.tomldiffbeforeafterboth--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -16,7 +16,7 @@
targets = ['x86_64-unknown-linux-gnu']
[features]
-default = ['std', 'unique-runtime']
+default = ['std', 'new-functionality']
runtime-benchmarks = [
'hex-literal',
'frame-benchmarking',
@@ -119,7 +119,7 @@
"orml-vesting/std",
]
limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']
-unique-runtime = []
+new-functionality = []
################################################################################
# Substrate Dependencies