difftreelog
feat benchmark structure
in: master
9 files changed
Makefilediffbeforeafterboth--- a/Makefile
+++ b/Makefile
@@ -57,5 +57,9 @@
bench-nonfungible:
make _bench PALLET=nonfungible
+.PHONY: bench-structure
+bench-structure:
+ make _bench PALLET=structure
+
.PHONY: bench
-bench: bench-evm-migration bench-unique bench-fungible bench-refungible bench-nonfungible
+bench: bench-evm-migration bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible
pallets/structure/Cargo.tomldiffbeforeafterboth--- a/pallets/structure/Cargo.toml
+++ b/pallets/structure/Cargo.toml
@@ -6,6 +6,7 @@
[dependencies]
frame-support = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.17' }
frame-system = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.17' }
+frame-benchmarking = { default-features = false, optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.17' }
sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.17' }
pallet-common = { path = "../common", default-features = false }
parity-scale-codec = { version = "2.0.0", default-features = false, features = [
@@ -21,9 +22,11 @@
std = [
"frame-support/std",
"frame-system/std",
+ "frame-benchmarking/std",
"sp-std/std",
"pallet-common/std",
"scale-info/std",
"parity-scale-codec/std",
"up-data-structs/std",
]
+runtime-benchmarks = ['frame-benchmarking', 'pallet-common/runtime-benchmarks']
pallets/structure/src/benchmarking.rsdiffbeforeafterboth--- /dev/null
+++ b/pallets/structure/src/benchmarking.rs
@@ -0,0 +1,28 @@
+use super::*;
+
+use frame_benchmarking::{benchmarks, account};
+use frame_support::traits::{Currency, Get};
+use up_data_structs::{CreateCollectionData, CollectionMode, CreateItemData, CreateNftData};
+use pallet_common::CrossAccountId;
+
+const SEED: u32 = 1;
+
+benchmarks! {
+ find_parent {
+ let caller: T::AccountId = account("caller", 0, SEED);
+ let caller_cross = T::CrossAccountId::from_sub(caller.clone());
+
+ T::Currency::deposit_creating(&caller, T::CollectionCreationPrice::get());
+ T::CollectionDispatch::create(caller, CreateCollectionData {
+ mode: CollectionMode::NFT,
+ ..Default::default()
+ })?;
+ let dispatch = T::CollectionDispatch::dispatch(CollectionHandle::try_get(CollectionId(1))?);
+ let dispatch = dispatch.as_dyn();
+
+ dispatch.create_item(caller_cross.clone(), caller_cross.clone(), CreateItemData::NFT(CreateNftData::default()))?;
+ }: {
+ let parent = <Pallet<T>>::find_parent(CollectionId(1), TokenId(1))?;
+ assert!(matches!(parent, Parent::Normal(_)))
+ }
+}
pallets/structure/src/weights.rsdiffbeforeafterboth--- /dev/null
+++ b/pallets/structure/src/weights.rs
@@ -0,0 +1,57 @@
+// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs
+
+//! Autogenerated weights for pallet_structure
+//!
+//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
+//! DATE: 2022-03-24, STEPS: `50`, REPEAT: 200, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
+
+// Executed Command:
+// target/release/unique-collator
+// benchmark
+// --pallet
+// pallet-structure
+// --wasm-execution
+// compiled
+// --extrinsic
+// *
+// --template
+// .maintain/frame-weight-template.hbs
+// --steps=50
+// --repeat=200
+// --heap-pages=4096
+// --output=./pallets/structure/src/weights.rs
+
+#![cfg_attr(rustfmt, rustfmt_skip)]
+#![allow(unused_parens)]
+#![allow(unused_imports)]
+#![allow(clippy::unnecessary_cast)]
+
+use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
+use sp_std::marker::PhantomData;
+
+/// Weight functions needed for pallet_structure.
+pub trait WeightInfo {
+ fn find_parent() -> Weight;
+}
+
+/// Weights for pallet_structure using the Substrate node and recommended hardware.
+pub struct SubstrateWeight<T>(PhantomData<T>);
+impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
+ // Storage: Common CollectionById (r:1 w:0)
+ // Storage: Nonfungible TokenData (r:1 w:0)
+ fn find_parent() -> Weight {
+ (6_302_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(2 as Weight))
+ }
+}
+
+// For backwards compatibility and tests
+impl WeightInfo for () {
+ // Storage: Common CollectionById (r:1 w:0)
+ // Storage: Nonfungible TokenData (r:1 w:0)
+ fn find_parent() -> Weight {
+ (6_302_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(2 as Weight))
+ }
+}
runtime/common/src/runtime_apis.rsdiffbeforeafterboth--- a/runtime/common/src/runtime_apis.rs
+++ b/runtime/common/src/runtime_apis.rs
@@ -378,6 +378,7 @@
list_benchmark!(list, extra, pallet_evm_migration, EvmMigration);
list_benchmark!(list, extra, pallet_unique, Unique);
+ list_benchmark!(list, extra, pallet_structure, Structure);
list_benchmark!(list, extra, pallet_inflation, Inflation);
list_benchmark!(list, extra, pallet_fungible, Fungible);
list_benchmark!(list, extra, pallet_refungible, Refungible);
@@ -415,6 +416,7 @@
add_benchmark!(params, batches, pallet_evm_migration, EvmMigration);
add_benchmark!(params, batches, pallet_unique, Unique);
+ add_benchmark!(params, batches, pallet_structure, Structure);
add_benchmark!(params, batches, pallet_inflation, Inflation);
add_benchmark!(params, batches, pallet_fungible, Fungible);
add_benchmark!(params, batches, pallet_refungible, Refungible);
runtime/opal/Cargo.tomldiffbeforeafterboth--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -29,6 +29,7 @@
'pallet-balances/runtime-benchmarks',
'pallet-timestamp/runtime-benchmarks',
'pallet-common/runtime-benchmarks',
+ 'pallet-structure/runtime-benchmarks',
'pallet-fungible/runtime-benchmarks',
'pallet-refungible/runtime-benchmarks',
'pallet-nonfungible/runtime-benchmarks',
@@ -84,6 +85,7 @@
'serde',
'pallet-inflation/std',
'pallet-common/std',
+ 'pallet-structure/std',
'pallet-fungible/std',
'pallet-refungible/std',
'pallet-nonfungible/std',
runtime/opal/src/lib.rsdiffbeforeafterboth--- a/runtime/opal/src/lib.rs
+++ b/runtime/opal/src/lib.rs
@@ -886,6 +886,7 @@
impl pallet_structure::Config for Runtime {
type Event = Event;
type Call = Call;
+ type WeightInfo = pallet_structure::weights::SubstrateWeight<Self>;
}
impl pallet_fungible::Config for Runtime {
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.20'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-fungible/runtime-benchmarks',33 'pallet-refungible/runtime-benchmarks',34 'pallet-nonfungible/runtime-benchmarks',35 'pallet-unique/runtime-benchmarks',36 'pallet-inflation/runtime-benchmarks',37 'pallet-xcm/runtime-benchmarks',38 'sp-runtime/runtime-benchmarks',39 'xcm-builder/runtime-benchmarks',40]41try-runtime = [42 'frame-try-runtime',43 'frame-executive/try-runtime',44 'frame-system/try-runtime',45]46std = [47 'codec/std',48 'cumulus-pallet-aura-ext/std',49 'cumulus-pallet-parachain-system/std',50 'cumulus-pallet-xcm/std',51 'cumulus-pallet-xcmp-queue/std',52 'cumulus-primitives-core/std',53 'cumulus-primitives-utility/std',54 'frame-try-runtime/std',55 'frame-executive/std',56 'frame-support/std',57 'frame-system/std',58 'frame-system-rpc-runtime-api/std',59 'pallet-aura/std',60 'pallet-balances/std',61 # 'pallet-contracts/std',62 # 'pallet-contracts-primitives/std',63 # 'pallet-contracts-rpc-runtime-api/std',64 # 'pallet-contract-helpers/std',65 'pallet-randomness-collective-flip/std',66 'pallet-sudo/std',67 'pallet-timestamp/std',68 'pallet-transaction-payment/std',69 'pallet-transaction-payment-rpc-runtime-api/std',70 'pallet-treasury/std',71 # 'pallet-vesting/std',72 'pallet-evm/std',73 'pallet-evm-migration/std',74 'pallet-evm-contract-helpers/std',75 'pallet-evm-transaction-payment/std',76 'pallet-evm-coder-substrate/std',77 'pallet-ethereum/std',78 'pallet-base-fee/std',79 'fp-rpc/std',80 'up-rpc/std',81 'fp-evm-mapping/std',82 'fp-self-contained/std',83 'parachain-info/std',84 'serde',85 'pallet-inflation/std',86 'pallet-common/std',87 'pallet-structure/std',88 'pallet-fungible/std',89 'pallet-refungible/std',90 'pallet-nonfungible/std',91 'pallet-unique/std',92 'pallet-unq-scheduler/std',93 'pallet-charge-transaction/std',94 'up-data-structs/std',95 'sp-api/std',96 'sp-block-builder/std',97 "sp-consensus-aura/std",98 'sp-core/std',99 'sp-inherents/std',100 'sp-io/std',101 'sp-offchain/std',102 'sp-runtime/std',103 'sp-session/std',104 'sp-std/std',105 'sp-transaction-pool/std',106 'sp-version/std',107 'xcm/std',108 'xcm-builder/std',109 'xcm-executor/std',110 'unique-runtime-common/std',111112 "orml-vesting/std",113]114limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']115116################################################################################117# Substrate Dependencies118119[dependencies.codec]120default-features = false121features = ['derive']122package = 'parity-scale-codec'123version = '3.1.2'124125[dependencies.frame-benchmarking]126default-features = false127git = "https://github.com/paritytech/substrate"128optional = true129branch = "polkadot-v0.9.20"130131[dependencies.frame-try-runtime]132default-features = false133git = 'https://github.com/paritytech/substrate.git'134optional = true135branch = 'polkadot-v0.9.17'136137[dependencies.frame-executive]138default-features = false139git = "https://github.com/paritytech/substrate"140branch = "polkadot-v0.9.20"141142[dependencies.frame-support]143default-features = false144git = "https://github.com/paritytech/substrate"145branch = "polkadot-v0.9.20"146147[dependencies.frame-system]148default-features = false149git = "https://github.com/paritytech/substrate"150branch = "polkadot-v0.9.20"151152[dependencies.frame-system-benchmarking]153default-features = false154git = "https://github.com/paritytech/substrate"155optional = true156branch = "polkadot-v0.9.20"157158[dependencies.frame-system-rpc-runtime-api]159default-features = false160git = "https://github.com/paritytech/substrate"161branch = "polkadot-v0.9.20"162163[dependencies.hex-literal]164optional = true165version = '0.3.3'166167[dependencies.serde]168default-features = false169features = ['derive']170optional = true171version = '1.0.130'172173[dependencies.pallet-aura]174default-features = false175git = "https://github.com/paritytech/substrate"176branch = "polkadot-v0.9.20"177178[dependencies.pallet-balances]179default-features = false180git = "https://github.com/paritytech/substrate"181branch = "polkadot-v0.9.20"182183# Contracts specific packages184# [dependencies.pallet-contracts]185# git = 'https://github.com/paritytech/substrate'186# default-features = false187# branch = 'master'188# version = '4.0.0-dev'189190# [dependencies.pallet-contracts-primitives]191# git = 'https://github.com/paritytech/substrate'192# default-features = false193# branch = 'master'194# version = '4.0.0-dev'195196# [dependencies.pallet-contracts-rpc-runtime-api]197# git = 'https://github.com/paritytech/substrate'198# default-features = false199# branch = 'master'200# version = '4.0.0-dev'201202[dependencies.pallet-randomness-collective-flip]203default-features = false204git = "https://github.com/paritytech/substrate"205branch = "polkadot-v0.9.20"206207[dependencies.pallet-sudo]208default-features = false209git = "https://github.com/paritytech/substrate"210branch = "polkadot-v0.9.20"211212[dependencies.pallet-timestamp]213default-features = false214git = "https://github.com/paritytech/substrate"215branch = "polkadot-v0.9.20"216217[dependencies.pallet-transaction-payment]218default-features = false219git = "https://github.com/paritytech/substrate"220branch = "polkadot-v0.9.20"221222[dependencies.pallet-transaction-payment-rpc-runtime-api]223default-features = false224git = "https://github.com/paritytech/substrate"225branch = "polkadot-v0.9.20"226227[dependencies.pallet-treasury]228default-features = false229git = "https://github.com/paritytech/substrate"230branch = "polkadot-v0.9.20"231232# [dependencies.pallet-vesting]233# default-features = false234# git = 'https://github.com/paritytech/substrate'235# branch = 'master'236237[dependencies.sp-arithmetic]238default-features = false239git = "https://github.com/paritytech/substrate"240branch = "polkadot-v0.9.20"241242[dependencies.sp-api]243default-features = false244git = "https://github.com/paritytech/substrate"245branch = "polkadot-v0.9.20"246247[dependencies.sp-block-builder]248default-features = false249git = "https://github.com/paritytech/substrate"250branch = "polkadot-v0.9.20"251252[dependencies.sp-core]253default-features = false254git = "https://github.com/paritytech/substrate"255branch = "polkadot-v0.9.20"256257[dependencies.sp-consensus-aura]258default-features = false259git = "https://github.com/paritytech/substrate"260branch = "polkadot-v0.9.20"261262[dependencies.sp-inherents]263default-features = false264git = "https://github.com/paritytech/substrate"265branch = "polkadot-v0.9.20"266267[dependencies.sp-io]268default-features = false269git = "https://github.com/paritytech/substrate"270branch = "polkadot-v0.9.20"271272[dependencies.sp-offchain]273default-features = false274git = "https://github.com/paritytech/substrate"275branch = "polkadot-v0.9.20"276277[dependencies.sp-runtime]278default-features = false279git = "https://github.com/paritytech/substrate"280branch = "polkadot-v0.9.20"281282[dependencies.sp-session]283default-features = false284git = "https://github.com/paritytech/substrate"285branch = "polkadot-v0.9.20"286287[dependencies.sp-std]288default-features = false289git = "https://github.com/paritytech/substrate"290branch = "polkadot-v0.9.20"291292[dependencies.sp-transaction-pool]293default-features = false294git = "https://github.com/paritytech/substrate"295branch = "polkadot-v0.9.20"296297[dependencies.sp-version]298default-features = false299git = "https://github.com/paritytech/substrate"300branch = "polkadot-v0.9.20"301302[dependencies.smallvec]303version = '1.6.1'304305################################################################################306# Cumulus dependencies307308[dependencies.parachain-info]309default-features = false310git = "https://github.com/paritytech/cumulus"311branch = "polkadot-v0.9.20"312313[dependencies.cumulus-pallet-aura-ext]314git = "https://github.com/paritytech/cumulus"315branch = "polkadot-v0.9.20"316default-features = false317318[dependencies.cumulus-pallet-parachain-system]319git = "https://github.com/paritytech/cumulus"320branch = "polkadot-v0.9.20"321default-features = false322323[dependencies.cumulus-primitives-core]324git = "https://github.com/paritytech/cumulus"325branch = "polkadot-v0.9.20"326default-features = false327328[dependencies.cumulus-pallet-xcm]329git = "https://github.com/paritytech/cumulus"330branch = "polkadot-v0.9.20"331default-features = false332333[dependencies.cumulus-pallet-dmp-queue]334git = "https://github.com/paritytech/cumulus"335branch = "polkadot-v0.9.20"336default-features = false337338[dependencies.cumulus-pallet-xcmp-queue]339git = "https://github.com/paritytech/cumulus"340branch = "polkadot-v0.9.20"341default-features = false342343[dependencies.cumulus-primitives-utility]344git = "https://github.com/paritytech/cumulus"345branch = "polkadot-v0.9.20"346default-features = false347348[dependencies.cumulus-primitives-timestamp]349git = "https://github.com/paritytech/cumulus"350branch = "polkadot-v0.9.20"351default-features = false352353################################################################################354# Polkadot dependencies355356[dependencies.polkadot-parachain]357git = "https://github.com/paritytech/polkadot"358branch = "release-v0.9.20"359default-features = false360361[dependencies.xcm]362git = "https://github.com/paritytech/polkadot"363branch = "release-v0.9.20"364default-features = false365366[dependencies.xcm-builder]367git = "https://github.com/paritytech/polkadot"368branch = "release-v0.9.20"369default-features = false370371[dependencies.xcm-executor]372git = "https://github.com/paritytech/polkadot"373branch = "release-v0.9.20"374default-features = false375376[dependencies.pallet-xcm]377git = "https://github.com/paritytech/polkadot"378branch = "release-v0.9.20"379default-features = false380381[dependencies.orml-vesting]382git = "https://github.com/uniquenetwork/open-runtime-module-library"383branch = "unique-polkadot-v0.9.20"384version = "0.4.1-dev"385default-features = false386387################################################################################388# local dependencies389390[dependencies]391log = { version = "0.4.16", default-features = false }392unique-runtime-common = { path = "../common", default-features = false }393scale-info = { version = "2.0.1", default-features = false, features = [394 "derive",395] }396derivative = "2.2.0"397pallet-unique = { path = '../../pallets/unique', default-features = false }398up-rpc = { path = "../../primitives/rpc", default-features = false }399fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.20" }400pallet-inflation = { path = '../../pallets/inflation', default-features = false }401up-data-structs = { path = '../../primitives/data-structs', default-features = false }402pallet-common = { default-features = false, path = "../../pallets/common" }403pallet-structure = { default-features = false, path = "../../pallets/structure" }404pallet-fungible = { default-features = false, path = "../../pallets/fungible" }405pallet-refungible = { default-features = false, path = "../../pallets/refungible" }406pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }407pallet-unq-scheduler = { path = '../../pallets/scheduler', default-features = false }408# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }409pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.20", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }410pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }411pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }412pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }413pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }414pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.20" }415pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.20" }416pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.20" }417fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.20" }418fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.20" }419420################################################################################421# Build Dependencies422423[build-dependencies.substrate-wasm-builder]424git = "https://github.com/paritytech/substrate"425branch = "polkadot-v0.9.20"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.20'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-unique/runtime-benchmarks',37 'pallet-inflation/runtime-benchmarks',38 'pallet-xcm/runtime-benchmarks',39 'sp-runtime/runtime-benchmarks',40 'xcm-builder/runtime-benchmarks',41]42try-runtime = [43 'frame-try-runtime',44 'frame-executive/try-runtime',45 'frame-system/try-runtime',46]47std = [48 'codec/std',49 'cumulus-pallet-aura-ext/std',50 'cumulus-pallet-parachain-system/std',51 'cumulus-pallet-xcm/std',52 'cumulus-pallet-xcmp-queue/std',53 'cumulus-primitives-core/std',54 'cumulus-primitives-utility/std',55 'frame-try-runtime/std',56 'frame-executive/std',57 'frame-support/std',58 'frame-system/std',59 'frame-system-rpc-runtime-api/std',60 'pallet-aura/std',61 'pallet-balances/std',62 # 'pallet-contracts/std',63 # 'pallet-contracts-primitives/std',64 # 'pallet-contracts-rpc-runtime-api/std',65 # 'pallet-contract-helpers/std',66 'pallet-randomness-collective-flip/std',67 'pallet-sudo/std',68 'pallet-timestamp/std',69 'pallet-transaction-payment/std',70 'pallet-transaction-payment-rpc-runtime-api/std',71 'pallet-treasury/std',72 # 'pallet-vesting/std',73 'pallet-evm/std',74 'pallet-evm-migration/std',75 'pallet-evm-contract-helpers/std',76 'pallet-evm-transaction-payment/std',77 'pallet-evm-coder-substrate/std',78 'pallet-ethereum/std',79 'pallet-base-fee/std',80 'fp-rpc/std',81 'up-rpc/std',82 'fp-evm-mapping/std',83 'fp-self-contained/std',84 'parachain-info/std',85 'serde',86 'pallet-inflation/std',87 'pallet-common/std',88 'pallet-structure/std',89 'pallet-fungible/std',90 'pallet-refungible/std',91 'pallet-nonfungible/std',92 'pallet-unique/std',93 'pallet-unq-scheduler/std',94 'pallet-charge-transaction/std',95 'up-data-structs/std',96 'sp-api/std',97 'sp-block-builder/std',98 "sp-consensus-aura/std",99 'sp-core/std',100 'sp-inherents/std',101 'sp-io/std',102 'sp-offchain/std',103 'sp-runtime/std',104 'sp-session/std',105 'sp-std/std',106 'sp-transaction-pool/std',107 'sp-version/std',108 'xcm/std',109 'xcm-builder/std',110 'xcm-executor/std',111 'unique-runtime-common/std',112113 "orml-vesting/std",114]115limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']116117################################################################################118# Substrate Dependencies119120[dependencies.codec]121default-features = false122features = ['derive']123package = 'parity-scale-codec'124version = '3.1.2'125126[dependencies.frame-benchmarking]127default-features = false128git = "https://github.com/paritytech/substrate"129optional = true130branch = "polkadot-v0.9.20"131132[dependencies.frame-try-runtime]133default-features = false134git = 'https://github.com/paritytech/substrate.git'135optional = true136branch = 'polkadot-v0.9.17'137138[dependencies.frame-executive]139default-features = false140git = "https://github.com/paritytech/substrate"141branch = "polkadot-v0.9.20"142143[dependencies.frame-support]144default-features = false145git = "https://github.com/paritytech/substrate"146branch = "polkadot-v0.9.20"147148[dependencies.frame-system]149default-features = false150git = "https://github.com/paritytech/substrate"151branch = "polkadot-v0.9.20"152153[dependencies.frame-system-benchmarking]154default-features = false155git = "https://github.com/paritytech/substrate"156optional = true157branch = "polkadot-v0.9.20"158159[dependencies.frame-system-rpc-runtime-api]160default-features = false161git = "https://github.com/paritytech/substrate"162branch = "polkadot-v0.9.20"163164[dependencies.hex-literal]165optional = true166version = '0.3.3'167168[dependencies.serde]169default-features = false170features = ['derive']171optional = true172version = '1.0.130'173174[dependencies.pallet-aura]175default-features = false176git = "https://github.com/paritytech/substrate"177branch = "polkadot-v0.9.20"178179[dependencies.pallet-balances]180default-features = false181git = "https://github.com/paritytech/substrate"182branch = "polkadot-v0.9.20"183184# Contracts specific packages185# [dependencies.pallet-contracts]186# git = 'https://github.com/paritytech/substrate'187# default-features = false188# branch = 'master'189# version = '4.0.0-dev'190191# [dependencies.pallet-contracts-primitives]192# git = 'https://github.com/paritytech/substrate'193# default-features = false194# branch = 'master'195# version = '4.0.0-dev'196197# [dependencies.pallet-contracts-rpc-runtime-api]198# git = 'https://github.com/paritytech/substrate'199# default-features = false200# branch = 'master'201# version = '4.0.0-dev'202203[dependencies.pallet-randomness-collective-flip]204default-features = false205git = "https://github.com/paritytech/substrate"206branch = "polkadot-v0.9.20"207208[dependencies.pallet-sudo]209default-features = false210git = "https://github.com/paritytech/substrate"211branch = "polkadot-v0.9.20"212213[dependencies.pallet-timestamp]214default-features = false215git = "https://github.com/paritytech/substrate"216branch = "polkadot-v0.9.20"217218[dependencies.pallet-transaction-payment]219default-features = false220git = "https://github.com/paritytech/substrate"221branch = "polkadot-v0.9.20"222223[dependencies.pallet-transaction-payment-rpc-runtime-api]224default-features = false225git = "https://github.com/paritytech/substrate"226branch = "polkadot-v0.9.20"227228[dependencies.pallet-treasury]229default-features = false230git = "https://github.com/paritytech/substrate"231branch = "polkadot-v0.9.20"232233# [dependencies.pallet-vesting]234# default-features = false235# git = 'https://github.com/paritytech/substrate'236# branch = 'master'237238[dependencies.sp-arithmetic]239default-features = false240git = "https://github.com/paritytech/substrate"241branch = "polkadot-v0.9.20"242243[dependencies.sp-api]244default-features = false245git = "https://github.com/paritytech/substrate"246branch = "polkadot-v0.9.20"247248[dependencies.sp-block-builder]249default-features = false250git = "https://github.com/paritytech/substrate"251branch = "polkadot-v0.9.20"252253[dependencies.sp-core]254default-features = false255git = "https://github.com/paritytech/substrate"256branch = "polkadot-v0.9.20"257258[dependencies.sp-consensus-aura]259default-features = false260git = "https://github.com/paritytech/substrate"261branch = "polkadot-v0.9.20"262263[dependencies.sp-inherents]264default-features = false265git = "https://github.com/paritytech/substrate"266branch = "polkadot-v0.9.20"267268[dependencies.sp-io]269default-features = false270git = "https://github.com/paritytech/substrate"271branch = "polkadot-v0.9.20"272273[dependencies.sp-offchain]274default-features = false275git = "https://github.com/paritytech/substrate"276branch = "polkadot-v0.9.20"277278[dependencies.sp-runtime]279default-features = false280git = "https://github.com/paritytech/substrate"281branch = "polkadot-v0.9.20"282283[dependencies.sp-session]284default-features = false285git = "https://github.com/paritytech/substrate"286branch = "polkadot-v0.9.20"287288[dependencies.sp-std]289default-features = false290git = "https://github.com/paritytech/substrate"291branch = "polkadot-v0.9.20"292293[dependencies.sp-transaction-pool]294default-features = false295git = "https://github.com/paritytech/substrate"296branch = "polkadot-v0.9.20"297298[dependencies.sp-version]299default-features = false300git = "https://github.com/paritytech/substrate"301branch = "polkadot-v0.9.20"302303[dependencies.smallvec]304version = '1.6.1'305306################################################################################307# Cumulus dependencies308309[dependencies.parachain-info]310default-features = false311git = "https://github.com/paritytech/cumulus"312branch = "polkadot-v0.9.20"313314[dependencies.cumulus-pallet-aura-ext]315git = "https://github.com/paritytech/cumulus"316branch = "polkadot-v0.9.20"317default-features = false318319[dependencies.cumulus-pallet-parachain-system]320git = "https://github.com/paritytech/cumulus"321branch = "polkadot-v0.9.20"322default-features = false323324[dependencies.cumulus-primitives-core]325git = "https://github.com/paritytech/cumulus"326branch = "polkadot-v0.9.20"327default-features = false328329[dependencies.cumulus-pallet-xcm]330git = "https://github.com/paritytech/cumulus"331branch = "polkadot-v0.9.20"332default-features = false333334[dependencies.cumulus-pallet-dmp-queue]335git = "https://github.com/paritytech/cumulus"336branch = "polkadot-v0.9.20"337default-features = false338339[dependencies.cumulus-pallet-xcmp-queue]340git = "https://github.com/paritytech/cumulus"341branch = "polkadot-v0.9.20"342default-features = false343344[dependencies.cumulus-primitives-utility]345git = "https://github.com/paritytech/cumulus"346branch = "polkadot-v0.9.20"347default-features = false348349[dependencies.cumulus-primitives-timestamp]350git = "https://github.com/paritytech/cumulus"351branch = "polkadot-v0.9.20"352default-features = false353354################################################################################355# Polkadot dependencies356357[dependencies.polkadot-parachain]358git = "https://github.com/paritytech/polkadot"359branch = "release-v0.9.20"360default-features = false361362[dependencies.xcm]363git = "https://github.com/paritytech/polkadot"364branch = "release-v0.9.20"365default-features = false366367[dependencies.xcm-builder]368git = "https://github.com/paritytech/polkadot"369branch = "release-v0.9.20"370default-features = false371372[dependencies.xcm-executor]373git = "https://github.com/paritytech/polkadot"374branch = "release-v0.9.20"375default-features = false376377[dependencies.pallet-xcm]378git = "https://github.com/paritytech/polkadot"379branch = "release-v0.9.20"380default-features = false381382[dependencies.orml-vesting]383git = "https://github.com/uniquenetwork/open-runtime-module-library"384branch = "unique-polkadot-v0.9.20"385version = "0.4.1-dev"386default-features = false387388################################################################################389# local dependencies390391[dependencies]392log = { version = "0.4.16", default-features = false }393unique-runtime-common = { path = "../common", default-features = false }394scale-info = { version = "2.0.1", default-features = false, features = [395 "derive",396] }397derivative = "2.2.0"398pallet-unique = { path = '../../pallets/unique', default-features = false }399up-rpc = { path = "../../primitives/rpc", default-features = false }400fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.20" }401pallet-inflation = { path = '../../pallets/inflation', default-features = false }402up-data-structs = { path = '../../primitives/data-structs', default-features = false }403pallet-common = { default-features = false, path = "../../pallets/common" }404pallet-structure = { default-features = false, path = "../../pallets/structure" }405pallet-fungible = { default-features = false, path = "../../pallets/fungible" }406pallet-refungible = { default-features = false, path = "../../pallets/refungible" }407pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }408pallet-unq-scheduler = { path = '../../pallets/scheduler', default-features = false }409# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }410pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.20", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }411pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }412pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }413pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }414pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }415pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.20" }416pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.20" }417pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.20" }418fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.20" }419fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.20" }420421################################################################################422# Build Dependencies423424[build-dependencies.substrate-wasm-builder]425git = "https://github.com/paritytech/substrate"426branch = "polkadot-v0.9.20"runtime/unique/Cargo.tomldiffbeforeafterboth--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -29,6 +29,7 @@
'pallet-balances/runtime-benchmarks',
'pallet-timestamp/runtime-benchmarks',
'pallet-common/runtime-benchmarks',
+ 'pallet-structure/runtime-benchmarks',
'pallet-fungible/runtime-benchmarks',
'pallet-refungible/runtime-benchmarks',
'pallet-nonfungible/runtime-benchmarks',