difftreelog
fix clippy warnings
in: master
12 files changed
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -10145,6 +10145,7 @@
"sp-runtime",
"sp-session",
"sp-std",
+ "sp-storage",
"sp-transaction-pool",
"sp-version",
"staging-xcm",
@@ -14897,6 +14898,7 @@
"sp-runtime",
"sp-session",
"sp-std",
+ "sp-storage",
"sp-transaction-pool",
"sp-version",
"staging-xcm",
node/cli/src/chain_spec.rsdiffbeforeafterboth--- a/node/cli/src/chain_spec.rs
+++ b/node/cli/src/chain_spec.rs
@@ -238,7 +238,7 @@
vesting: VestingConfig { vesting: vec![] },
parachain_info: ParachainInfoConfig {
parachain_id: $id.into(),
- Default::default()
+ ..Default::default()
},
aura: AuraConfig {
authorities: $initial_invulnerables
node/cli/src/command.rsdiffbeforeafterboth--- a/node/cli/src/command.rs
+++ b/node/cli/src/command.rs
@@ -399,6 +399,7 @@
Some(Subcommand::TryRuntime(cmd)) => {
use std::{future::Future, pin::Pin};
+ use polkadot_cli::Block;
use sc_executor::{sp_wasm_interface::ExtendedHostFunctions, NativeExecutionDispatch};
use try_runtime_cli::block_building_info::timestamp_with_aura_info;
node/cli/src/rpc.rsdiffbeforeafterboth--- a/node/cli/src/rpc.rs
+++ b/node/cli/src/rpc.rs
@@ -67,7 +67,7 @@
}
/// Instantiate all Full RPC extensions.
-pub fn create_full<C, P, SC, R, A, B>(
+pub fn create_full<C, P, SC, R, B>(
io: &mut RpcModule<()>,
deps: FullDeps<C, P, SC>,
) -> Result<(), Box<dyn std::error::Error + Send + Sync>>
@@ -244,7 +244,7 @@
EthFilter::new(
client.clone(),
eth_backend,
- graph.clone(),
+ graph,
filter_pool,
500_usize, // max stored filters
max_past_logs,
node/cli/src/service.rsdiffbeforeafterboth--- a/node/cli/src/service.rs
+++ b/node/cli/src/service.rs
@@ -498,7 +498,7 @@
select_chain,
};
- create_full::<_, _, _, Runtime, RuntimeApi, _>(&mut rpc_handle, full_deps)?;
+ create_full::<_, _, _, Runtime, _>(&mut rpc_handle, full_deps)?;
let eth_deps = EthDeps {
client,
@@ -547,7 +547,7 @@
config: parachain_config,
keystore: params.keystore_container.keystore(),
backend: backend.clone(),
- network: network.clone(),
+ network,
sync_service: sync_service.clone(),
system_rpc_tx,
telemetry: telemetry.as_mut(),
@@ -600,19 +600,21 @@
if validator {
start_consensus(
client.clone(),
- backend.clone(),
- prometheus_registry.as_ref(),
- telemetry.as_ref().map(|t| t.handle()),
- &task_manager,
- relay_chain_interface.clone(),
transaction_pool,
- sync_service.clone(),
- params.keystore_container.keystore(),
- overseer_handle,
- relay_chain_slot_duration,
- para_id,
- collator_key.expect("cli args do not allow this"),
- announce_block,
+ StartConsensusParameters {
+ backend: backend.clone(),
+ prometheus_registry: prometheus_registry.as_ref(),
+ telemetry: telemetry.as_ref().map(|t| t.handle()),
+ task_manager: &task_manager,
+ relay_chain_interface: relay_chain_interface.clone(),
+ sync_oracle: sync_service,
+ keystore: params.keystore_container.keystore(),
+ overseer_handle,
+ relay_chain_slot_duration,
+ para_id,
+ collator_key: collator_key.expect("cli args do not allow this"),
+ announce_block,
+ }
)?;
}
@@ -670,16 +672,12 @@
.map_err(Into::into)
}
-pub fn start_consensus<ExecutorDispatch, RuntimeApi, Runtime>(
- client: Arc<FullClient<RuntimeApi, ExecutorDispatch>>,
+pub struct StartConsensusParameters<'a> {
backend: Arc<FullBackend>,
- prometheus_registry: Option<&Registry>,
+ prometheus_registry: Option<&'a Registry>,
telemetry: Option<TelemetryHandle>,
- task_manager: &TaskManager,
+ task_manager: &'a TaskManager,
relay_chain_interface: Arc<dyn RelayChainInterface>,
- transaction_pool: Arc<
- sc_transaction_pool::FullPool<Block, FullClient<RuntimeApi, ExecutorDispatch>>,
- >,
sync_oracle: Arc<SyncingService<Block>>,
keystore: KeystorePtr,
overseer_handle: OverseerHandle,
@@ -687,6 +685,14 @@
para_id: ParaId,
collator_key: CollatorPair,
announce_block: Arc<dyn Fn(Hash, Option<Vec<u8>>) + Send + Sync>,
+}
+
+pub fn start_consensus<ExecutorDispatch, RuntimeApi, Runtime>(
+ client: Arc<FullClient<RuntimeApi, ExecutorDispatch>>,
+ transaction_pool: Arc<
+ sc_transaction_pool::FullPool<Block, FullClient<RuntimeApi, ExecutorDispatch>>,
+ >,
+ parameters: StartConsensusParameters<'_>,
) -> Result<(), sc_service::Error>
where
ExecutorDispatch: NativeExecutionDispatch + 'static,
@@ -697,6 +703,20 @@
RuntimeApi::RuntimeApi: RuntimeApiDep<Runtime> + 'static,
Runtime: RuntimeInstance,
{
+ let StartConsensusParameters {
+ backend,
+ prometheus_registry,
+ telemetry,
+ task_manager,
+ relay_chain_interface,
+ sync_oracle,
+ keystore,
+ overseer_handle,
+ relay_chain_slot_duration,
+ para_id,
+ collator_key,
+ announce_block,
+ } = parameters;
let slot_duration = cumulus_client_consensus_aura::slot_duration(&*client)?;
let proposer_factory = sc_basic_authorship::ProposerFactory::with_proof_recording(
@@ -704,7 +724,7 @@
client.clone(),
transaction_pool,
prometheus_registry,
- telemetry.clone(),
+ telemetry,
);
let proposer = Proposer::new(proposer_factory);
@@ -1043,7 +1063,7 @@
select_chain,
};
- create_full::<_, _, _, Runtime, RuntimeApi, _>(&mut rpc_module, full_deps)?;
+ create_full::<_, _, _, Runtime, _>(&mut rpc_module, full_deps)?;
let eth_deps = EthDeps {
client,
pallets/app-promotion/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/app-promotion/src/benchmarking.rs
+++ b/pallets/app-promotion/src/benchmarking.rs
@@ -161,7 +161,7 @@
T::RelayBlockNumberProvider::set_block_number(30_000.into());
#[extrinsic_call]
- _(RawOrigin::Signed(pallet_admin.clone()), Some(b as u8));
+ _(RawOrigin::Signed(pallet_admin), Some(b as u8));
Ok(())
}
@@ -178,7 +178,7 @@
#[extrinsic_call]
_(
- RawOrigin::Signed(caller.clone()),
+ RawOrigin::Signed(caller),
share * <T as Config>::Currency::total_balance(&caller),
);
@@ -211,7 +211,7 @@
.collect::<Result<Vec<_>, _>>()?;
#[extrinsic_call]
- _(RawOrigin::Signed(caller.clone()));
+ _(RawOrigin::Signed(caller));
Ok(())
}
@@ -242,7 +242,7 @@
#[extrinsic_call]
_(
- RawOrigin::Signed(caller.clone()),
+ RawOrigin::Signed(caller),
Into::<BalanceOf<T>>::into(1000u128) * T::Nominal::get(),
);
@@ -268,7 +268,7 @@
let collection = create_nft_collection::<T>(caller)?;
#[extrinsic_call]
- _(RawOrigin::Signed(pallet_admin.clone()), collection);
+ _(RawOrigin::Signed(pallet_admin), collection);
Ok(())
}
@@ -296,7 +296,7 @@
)?;
#[extrinsic_call]
- _(RawOrigin::Signed(pallet_admin.clone()), collection);
+ _(RawOrigin::Signed(pallet_admin), collection);
Ok(())
}
@@ -319,7 +319,7 @@
<EvmMigrationPallet<T>>::finish(RawOrigin::Root.into(), address, data)?;
#[extrinsic_call]
- _(RawOrigin::Signed(pallet_admin.clone()), address);
+ _(RawOrigin::Signed(pallet_admin), address);
Ok(())
}
@@ -346,7 +346,7 @@
)?;
#[extrinsic_call]
- _(RawOrigin::Signed(pallet_admin.clone()), address);
+ _(RawOrigin::Signed(pallet_admin), address);
Ok(())
}
pallets/nonfungible/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/benchmarking.rs
+++ b/pallets/nonfungible/src/benchmarking.rs
@@ -75,7 +75,7 @@
#[block]
{
- create_max_item(&collection, &sender, to.clone())?;
+ create_max_item(&collection, &sender, to)?;
}
Ok(())
pallets/refungible/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/refungible/src/benchmarking.rs
+++ b/pallets/refungible/src/benchmarking.rs
@@ -82,7 +82,7 @@
#[block]
{
- create_max_item(&collection, &sender, [(to.clone(), 200)])?;
+ create_max_item(&collection, &sender, [(to, 200)])?;
}
Ok(())
pallets/unique/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/unique/src/benchmarking.rs
+++ b/pallets/unique/src/benchmarking.rs
@@ -107,7 +107,7 @@
let collection = create_nft_collection::<T>(caller.clone())?;
#[extrinsic_call]
- _(RawOrigin::Signed(caller.clone()), collection);
+ _(RawOrigin::Signed(caller), collection);
Ok(())
}
@@ -120,7 +120,7 @@
#[extrinsic_call]
_(
- RawOrigin::Signed(caller.clone()),
+ RawOrigin::Signed(caller),
collection,
T::CrossAccountId::from_sub(allowlist_account),
);
@@ -141,7 +141,7 @@
#[extrinsic_call]
_(
- RawOrigin::Signed(caller.clone()),
+ RawOrigin::Signed(caller),
collection,
T::CrossAccountId::from_sub(allowlist_account),
);
@@ -156,7 +156,7 @@
let new_owner: T::AccountId = account("admin", 0, SEED);
#[extrinsic_call]
- _(RawOrigin::Signed(caller.clone()), collection, new_owner);
+ _(RawOrigin::Signed(caller), collection, new_owner);
Ok(())
}
@@ -169,7 +169,7 @@
#[extrinsic_call]
_(
- RawOrigin::Signed(caller.clone()),
+ RawOrigin::Signed(caller),
collection,
T::CrossAccountId::from_sub(new_admin),
);
@@ -190,7 +190,7 @@
#[extrinsic_call]
_(
- RawOrigin::Signed(caller.clone()),
+ RawOrigin::Signed(caller),
collection,
T::CrossAccountId::from_sub(new_admin),
);
@@ -204,11 +204,7 @@
let collection = create_nft_collection::<T>(caller.clone())?;
#[extrinsic_call]
- _(
- RawOrigin::Signed(caller.clone()),
- collection,
- caller.clone(),
- );
+ _(RawOrigin::Signed(caller), collection, caller.clone());
Ok(())
}
@@ -224,7 +220,7 @@
)?;
#[extrinsic_call]
- _(RawOrigin::Signed(caller.clone()), collection);
+ _(RawOrigin::Signed(caller), collection);
Ok(())
}
@@ -241,7 +237,7 @@
<Pallet<T>>::confirm_sponsorship(RawOrigin::Signed(caller.clone()).into(), collection)?;
#[extrinsic_call]
- _(RawOrigin::Signed(caller.clone()), collection);
+ _(RawOrigin::Signed(caller), collection);
Ok(())
}
@@ -252,7 +248,7 @@
let collection = create_nft_collection::<T>(caller.clone())?;
#[extrinsic_call]
- _(RawOrigin::Signed(caller.clone()), collection, false);
+ _(RawOrigin::Signed(caller), collection, false);
Ok(())
}
@@ -275,7 +271,7 @@
};
#[extrinsic_call]
- set_collection_limits(RawOrigin::Signed(caller.clone()), collection, cl);
+ set_collection_limits(RawOrigin::Signed(caller), collection, cl);
Ok(())
}
runtime/common/config/xcm/foreignassets.rsdiffbeforeafterboth--- a/runtime/common/config/xcm/foreignassets.rs
+++ b/runtime/common/config/xcm/foreignassets.rs
@@ -77,19 +77,18 @@
let here_id =
ConvertAssetId::convert(&AssetId::NativeAssetId(NativeCurrency::Here)).unwrap();
- if asset_id.clone() == parent_id {
+ if *asset_id == parent_id {
return Some(MultiLocation::parent());
}
- if asset_id.clone() == here_id {
+ if *asset_id == here_id {
return Some(MultiLocation::new(
1,
X1(Parachain(ParachainInfo::get().into())),
));
}
- let fid =
- <AssetId as TryAsForeign<AssetId, ForeignAssetId>>::try_as_foreign(asset_id.clone())?;
+ let fid = <AssetId as TryAsForeign<AssetId, ForeignAssetId>>::try_as_foreign(*asset_id)?;
XcmForeignAssetIdMapping::<Runtime>::get_multi_location(fid)
}
}
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.workspace = true1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19become-sapphire = []20default = ['quartz-runtime', 'std']21limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']22pov-estimate = []23quartz-runtime = ['app-promotion', 'collator-selection', 'foreign-assets', 'governance', 'preimage', 'refungible']24runtime-benchmarks = [25 "pallet-preimage/runtime-benchmarks",26 'cumulus-pallet-parachain-system/runtime-benchmarks',27 'frame-benchmarking',28 'frame-support/runtime-benchmarks',29 'frame-system-benchmarking',30 'frame-system/runtime-benchmarks',31 'pallet-app-promotion/runtime-benchmarks',32 'pallet-balances/runtime-benchmarks',33 'pallet-collator-selection/runtime-benchmarks',34 'pallet-collective/runtime-benchmarks',35 'pallet-collective/runtime-benchmarks',36 'pallet-common/runtime-benchmarks',37 'pallet-configuration/runtime-benchmarks',38 'pallet-democracy/runtime-benchmarks',39 'pallet-democracy/runtime-benchmarks',40 'pallet-ethereum/runtime-benchmarks',41 'pallet-evm-coder-substrate/runtime-benchmarks',42 'pallet-evm-migration/runtime-benchmarks',43 'pallet-foreign-assets/runtime-benchmarks',44 'pallet-fungible/runtime-benchmarks',45 'pallet-identity/runtime-benchmarks',46 'pallet-inflation/runtime-benchmarks',47 'pallet-maintenance/runtime-benchmarks',48 'pallet-membership/runtime-benchmarks',49 'pallet-membership/runtime-benchmarks',50 'pallet-nonfungible/runtime-benchmarks',51 'pallet-ranked-collective/runtime-benchmarks',52 'pallet-referenda/runtime-benchmarks',53 'pallet-refungible/runtime-benchmarks',54 'pallet-scheduler/runtime-benchmarks',55 'pallet-scheduler/runtime-benchmarks',56 'pallet-structure/runtime-benchmarks',57 'pallet-timestamp/runtime-benchmarks',58 'pallet-unique/runtime-benchmarks',59 'pallet-utility/runtime-benchmarks',60 'pallet-xcm/runtime-benchmarks',61 'sp-runtime/runtime-benchmarks',62 'staging-xcm-builder/runtime-benchmarks',63]64std = [65 'cumulus-pallet-aura-ext/std',66 'cumulus-pallet-parachain-system/std',67 'cumulus-pallet-xcm/std',68 'cumulus-pallet-xcmp-queue/std',69 'cumulus-primitives-core/std',70 'cumulus-primitives-utility/std',71 'frame-executive/std',72 'frame-support/std',73 'frame-system-rpc-runtime-api/std',74 'frame-system/std',75 'frame-try-runtime/std',76 'pallet-aura/std',77 'pallet-balances-adapter/std',78 'pallet-balances/std',79 'pallet-collective/std',80 'pallet-democracy/std',81 'pallet-membership/std',82 'pallet-scheduler/std',83 'parity-scale-codec/std',84 # 'pallet-contracts/std',85 # 'pallet-contracts-primitives/std',86 # 'pallet-contracts-rpc-runtime-api/std',87 # 'pallet-contract-helpers/std',88 "pallet-authorship/std",89 "pallet-identity/std",90 "pallet-preimage/std",91 "pallet-session/std",92 "pallet-state-trie-migration/std",93 "sp-consensus-aura/std",94 'app-promotion-rpc/std',95 'evm-coder/std',96 'fp-rpc/std',97 'fp-self-contained/std',98 'pallet-app-promotion/std',99 'pallet-base-fee/std',100 'pallet-charge-transaction/std',101 'pallet-collator-selection/std',102 'pallet-collective/std',103 'pallet-common/std',104 'pallet-configuration/std',105 'pallet-democracy/std',106 'pallet-ethereum/std',107 'pallet-evm-coder-substrate/std',108 'pallet-evm-contract-helpers/std',109 'pallet-evm-migration/std',110 'pallet-evm-transaction-payment/std',111 'pallet-evm/std',112 'pallet-fungible/std',113 'pallet-gov-origins/std',114 'pallet-inflation/std',115 'pallet-membership/std',116 'pallet-nonfungible/std',117 'pallet-ranked-collective/std',118 'pallet-referenda/std',119 'pallet-refungible/std',120 'pallet-scheduler/std',121 'pallet-structure/std',122 'pallet-sudo/std',123 'pallet-timestamp/std',124 'pallet-transaction-payment-rpc-runtime-api/std',125 'pallet-transaction-payment/std',126 'pallet-treasury/std',127 'pallet-unique/std',128 'pallet-utility/std',129 'parachain-info/std',130 'serde',131 'sp-api/std',132 'sp-block-builder/std',133 'sp-core/std',134 'sp-inherents/std',135 'sp-io/std',136 'sp-offchain/std',137 'sp-runtime/std',138 'sp-session/std',139 'sp-std/std',140 'sp-transaction-pool/std',141 'sp-version/std',142 'staging-xcm-builder/std',143 'staging-xcm-executor/std',144 'staging-xcm/std',145 'up-common/std',146 'up-data-structs/std',147 'up-pov-estimate-rpc/std',148 'up-rpc/std',149 'up-sponsorship/std',150151 "orml-tokens/std",152 "orml-traits/std",153 "orml-vesting/std",154 "orml-xcm-support/std",155 "orml-xtokens/std",156 "pallet-foreign-assets/std",157 "pallet-maintenance/std",158]159try-runtime = [160 "pallet-authorship/try-runtime",161 "pallet-collator-selection/try-runtime",162 "pallet-identity/try-runtime",163 "pallet-preimage/try-runtime",164 "pallet-session/try-runtime",165 "pallet-state-trie-migration/try-runtime",166 'cumulus-pallet-aura-ext/try-runtime',167 'cumulus-pallet-dmp-queue/try-runtime',168 'cumulus-pallet-parachain-system/try-runtime',169 'cumulus-pallet-xcm/try-runtime',170 'cumulus-pallet-xcmp-queue/try-runtime',171 'fp-self-contained/try-runtime',172 'frame-executive/try-runtime',173 'frame-support/try-runtime',174 'frame-system/try-runtime',175 'frame-try-runtime',176 'orml-tokens/try-runtime',177 'orml-vesting/try-runtime',178 'orml-xtokens/try-runtime',179 'pallet-app-promotion/try-runtime',180 'pallet-aura/try-runtime',181 'pallet-balances-adapter/try-runtime',182 'pallet-balances/try-runtime',183 'pallet-charge-transaction/try-runtime',184 'pallet-collective/try-runtime',185 'pallet-common/try-runtime',186 'pallet-configuration/try-runtime',187 'pallet-democracy/try-runtime',188 'pallet-ethereum/try-runtime',189 'pallet-evm-coder-substrate/try-runtime',190 'pallet-evm-contract-helpers/try-runtime',191 'pallet-evm-migration/try-runtime',192 'pallet-evm-transaction-payment/try-runtime',193 'pallet-evm/try-runtime',194 'pallet-foreign-assets/try-runtime',195 'pallet-fungible/try-runtime',196 'pallet-gov-origins/try-runtime',197 'pallet-inflation/try-runtime',198 'pallet-maintenance/try-runtime',199 'pallet-membership/try-runtime',200 'pallet-nonfungible/try-runtime',201 'pallet-ranked-collective/try-runtime',202 'pallet-referenda/try-runtime',203 'pallet-refungible/try-runtime',204 'pallet-scheduler/try-runtime',205 'pallet-structure/try-runtime',206 'pallet-sudo/try-runtime',207 'pallet-timestamp/try-runtime',208 'pallet-transaction-payment/try-runtime',209 'pallet-treasury/try-runtime',210 'pallet-unique/try-runtime',211 'pallet-utility/try-runtime',212 'pallet-xcm/try-runtime',213 'parachain-info/try-runtime',214]215216app-promotion = []217collator-selection = []218foreign-assets = []219gov-test-timings = []220governance = []221preimage = []222refungible = []223session-test-timings = []224225################################################################################226# local dependencies227228[dependencies]229cumulus-pallet-aura-ext = { workspace = true }230cumulus-pallet-dmp-queue = { workspace = true }231cumulus-pallet-parachain-system = { workspace = true }232cumulus-pallet-xcm = { workspace = true }233cumulus-pallet-xcmp-queue = { workspace = true }234cumulus-primitives-core = { workspace = true }235cumulus-primitives-timestamp = { workspace = true }236cumulus-primitives-utility = { workspace = true }237frame-executive = { workspace = true }238frame-support = { workspace = true }239frame-system = { workspace = true }240frame-system-rpc-runtime-api = { workspace = true }241orml-tokens = { workspace = true }242orml-traits = { workspace = true }243orml-vesting = { workspace = true }244orml-xcm-support = { workspace = true }245orml-xtokens = { workspace = true }246pallet-aura = { workspace = true }247pallet-authorship = { workspace = true }248pallet-balances = { features = ["insecure_zero_ed"], workspace = true }249pallet-preimage = { workspace = true }250pallet-session = { workspace = true }251pallet-state-trie-migration = { workspace = true }252pallet-sudo = { workspace = true }253pallet-timestamp = { workspace = true }254pallet-transaction-payment = { workspace = true }255pallet-transaction-payment-rpc-runtime-api = { workspace = true }256pallet-treasury = { workspace = true }257pallet-utility = { workspace = true }258pallet-xcm = { workspace = true }259parachain-info = { workspace = true }260parity-scale-codec = { workspace = true }261polkadot-parachain-primitives = { workspace = true }262smallvec = { workspace = true }263sp-api = { workspace = true }264sp-arithmetic = { workspace = true }265sp-block-builder = { workspace = true }266sp-consensus-aura = { workspace = true }267sp-core = { workspace = true }268sp-inherents = { workspace = true }269sp-io = { workspace = true }270sp-offchain = { workspace = true }271sp-runtime = { workspace = true }272sp-session = { workspace = true }273sp-std = { workspace = true }274sp-transaction-pool = { workspace = true }275sp-version = { workspace = true }276staging-xcm = { workspace = true }277staging-xcm-builder = { workspace = true }278staging-xcm-executor = { workspace = true }279280app-promotion-rpc = { workspace = true }281derivative = { workspace = true }282fp-evm = { workspace = true }283log = { workspace = true }284pallet-app-promotion = { workspace = true }285pallet-balances-adapter = { workspace = true }286pallet-collator-selection = { workspace = true }287pallet-collective = { workspace = true }288pallet-common = { workspace = true }289pallet-configuration = { workspace = true }290pallet-democracy = { workspace = true }291pallet-fungible = { workspace = true }292pallet-gov-origins = { workspace = true }293pallet-identity = { workspace = true }294pallet-inflation = { workspace = true }295pallet-membership = { workspace = true }296pallet-nonfungible = { workspace = true }297pallet-ranked-collective = { workspace = true }298pallet-referenda = { workspace = true }299pallet-refungible = { workspace = true }300pallet-scheduler = { workspace = true }301pallet-structure = { workspace = true }302pallet-unique = { workspace = true }303scale-info = { workspace = true }304up-common = { workspace = true }305up-data-structs = { workspace = true }306up-pov-estimate-rpc = { workspace = true }307up-rpc = { workspace = true }308# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }309evm-coder = { workspace = true }310fp-rpc = { workspace = true }311fp-self-contained = { workspace = true }312num_enum = { version = "0.7.0", default-features = false }313pallet-base-fee = { workspace = true }314pallet-charge-transaction = { workspace = true }315pallet-ethereum = { workspace = true }316pallet-evm = { workspace = true }317pallet-evm-coder-substrate = { workspace = true }318pallet-evm-contract-helpers = { workspace = true }319pallet-evm-migration = { workspace = true }320pallet-evm-precompile-simple = { workspace = true }321pallet-evm-transaction-payment = { workspace = true }322pallet-foreign-assets = { workspace = true }323pallet-maintenance = { workspace = true }324precompile-utils-macro = { workspace = true }325up-sponsorship = { workspace = true }326327################################################################################328# Optional dependencies329330frame-benchmarking = { workspace = true, optional = true }331frame-system-benchmarking = { workspace = true, optional = true }332frame-try-runtime = { workspace = true, optional = true }333serde = { workspace = true, optional = true }334335336################################################################################337# Test dependencies338339pallet-test-utils = { workspace = true }340341################################################################################342# Other Dependencies343344hex-literal = { workspace = true }345impl-trait-for-tuples = { workspace = true }346347[build-dependencies]348substrate-wasm-builder = { workspace = true }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.workspace = true1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19become-sapphire = []20default = ['quartz-runtime', 'std']21limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']22pov-estimate = []23quartz-runtime = ['app-promotion', 'collator-selection', 'foreign-assets', 'governance', 'preimage', 'refungible']24runtime-benchmarks = [25 "pallet-preimage/runtime-benchmarks",26 'cumulus-pallet-parachain-system/runtime-benchmarks',27 'frame-benchmarking',28 'frame-support/runtime-benchmarks',29 'frame-system-benchmarking',30 'frame-system/runtime-benchmarks',31 'pallet-app-promotion/runtime-benchmarks',32 'pallet-balances/runtime-benchmarks',33 'pallet-collator-selection/runtime-benchmarks',34 'pallet-collective/runtime-benchmarks',35 'pallet-collective/runtime-benchmarks',36 'pallet-common/runtime-benchmarks',37 'pallet-configuration/runtime-benchmarks',38 'pallet-democracy/runtime-benchmarks',39 'pallet-democracy/runtime-benchmarks',40 'pallet-ethereum/runtime-benchmarks',41 'pallet-evm-coder-substrate/runtime-benchmarks',42 'pallet-evm-migration/runtime-benchmarks',43 'pallet-foreign-assets/runtime-benchmarks',44 'pallet-fungible/runtime-benchmarks',45 'pallet-identity/runtime-benchmarks',46 'pallet-inflation/runtime-benchmarks',47 'pallet-maintenance/runtime-benchmarks',48 'pallet-membership/runtime-benchmarks',49 'pallet-membership/runtime-benchmarks',50 'pallet-nonfungible/runtime-benchmarks',51 'pallet-ranked-collective/runtime-benchmarks',52 'pallet-referenda/runtime-benchmarks',53 'pallet-refungible/runtime-benchmarks',54 'pallet-scheduler/runtime-benchmarks',55 'pallet-scheduler/runtime-benchmarks',56 'pallet-structure/runtime-benchmarks',57 'pallet-timestamp/runtime-benchmarks',58 'pallet-unique/runtime-benchmarks',59 'pallet-utility/runtime-benchmarks',60 'pallet-xcm/runtime-benchmarks',61 'sp-runtime/runtime-benchmarks',62 'staging-xcm-builder/runtime-benchmarks',63]64std = [65 'cumulus-pallet-aura-ext/std',66 'cumulus-pallet-parachain-system/std',67 'cumulus-pallet-xcm/std',68 'cumulus-pallet-xcmp-queue/std',69 'cumulus-primitives-core/std',70 'cumulus-primitives-utility/std',71 'frame-executive/std',72 'frame-support/std',73 'frame-system-rpc-runtime-api/std',74 'frame-system/std',75 'frame-try-runtime/std',76 'pallet-aura/std',77 'pallet-balances-adapter/std',78 'pallet-balances/std',79 'pallet-collective/std',80 'pallet-democracy/std',81 'pallet-membership/std',82 'pallet-scheduler/std',83 'parity-scale-codec/std',84 # 'pallet-contracts/std',85 # 'pallet-contracts-primitives/std',86 # 'pallet-contracts-rpc-runtime-api/std',87 # 'pallet-contract-helpers/std',88 "pallet-authorship/std",89 "pallet-identity/std",90 "pallet-preimage/std",91 "pallet-session/std",92 "pallet-state-trie-migration/std",93 "sp-consensus-aura/std",94 'app-promotion-rpc/std',95 'evm-coder/std',96 'fp-rpc/std',97 'fp-self-contained/std',98 'pallet-app-promotion/std',99 'pallet-base-fee/std',100 'pallet-charge-transaction/std',101 'pallet-collator-selection/std',102 'pallet-collective/std',103 'pallet-common/std',104 'pallet-configuration/std',105 'pallet-democracy/std',106 'pallet-ethereum/std',107 'pallet-evm-coder-substrate/std',108 'pallet-evm-contract-helpers/std',109 'pallet-evm-migration/std',110 'pallet-evm-transaction-payment/std',111 'pallet-evm/std',112 'pallet-fungible/std',113 'pallet-gov-origins/std',114 'pallet-inflation/std',115 'pallet-membership/std',116 'pallet-nonfungible/std',117 'pallet-ranked-collective/std',118 'pallet-referenda/std',119 'pallet-refungible/std',120 'pallet-scheduler/std',121 'pallet-structure/std',122 'pallet-sudo/std',123 'pallet-timestamp/std',124 'pallet-transaction-payment-rpc-runtime-api/std',125 'pallet-transaction-payment/std',126 'pallet-treasury/std',127 'pallet-unique/std',128 'pallet-utility/std',129 'parachain-info/std',130 'serde',131 'sp-api/std',132 'sp-block-builder/std',133 'sp-core/std',134 'sp-inherents/std',135 'sp-io/std',136 'sp-offchain/std',137 'sp-runtime/std',138 'sp-session/std',139 'sp-std/std',140 'sp-transaction-pool/std',141 'sp-version/std',142 'staging-xcm-builder/std',143 'staging-xcm-executor/std',144 'staging-xcm/std',145 'up-common/std',146 'up-data-structs/std',147 'up-pov-estimate-rpc/std',148 'up-rpc/std',149 'up-sponsorship/std',150151 "orml-tokens/std",152 "orml-traits/std",153 "orml-vesting/std",154 "orml-xcm-support/std",155 "orml-xtokens/std",156 "pallet-foreign-assets/std",157 "pallet-maintenance/std",158]159try-runtime = [160 "pallet-authorship/try-runtime",161 "pallet-collator-selection/try-runtime",162 "pallet-identity/try-runtime",163 "pallet-preimage/try-runtime",164 "pallet-session/try-runtime",165 "pallet-state-trie-migration/try-runtime",166 'cumulus-pallet-aura-ext/try-runtime',167 'cumulus-pallet-dmp-queue/try-runtime',168 'cumulus-pallet-parachain-system/try-runtime',169 'cumulus-pallet-xcm/try-runtime',170 'cumulus-pallet-xcmp-queue/try-runtime',171 'fp-self-contained/try-runtime',172 'frame-executive/try-runtime',173 'frame-support/try-runtime',174 'frame-system/try-runtime',175 'frame-try-runtime',176 'orml-tokens/try-runtime',177 'orml-vesting/try-runtime',178 'orml-xtokens/try-runtime',179 'pallet-app-promotion/try-runtime',180 'pallet-aura/try-runtime',181 'pallet-balances-adapter/try-runtime',182 'pallet-balances/try-runtime',183 'pallet-charge-transaction/try-runtime',184 'pallet-collective/try-runtime',185 'pallet-common/try-runtime',186 'pallet-configuration/try-runtime',187 'pallet-democracy/try-runtime',188 'pallet-ethereum/try-runtime',189 'pallet-evm-coder-substrate/try-runtime',190 'pallet-evm-contract-helpers/try-runtime',191 'pallet-evm-migration/try-runtime',192 'pallet-evm-transaction-payment/try-runtime',193 'pallet-evm/try-runtime',194 'pallet-foreign-assets/try-runtime',195 'pallet-fungible/try-runtime',196 'pallet-gov-origins/try-runtime',197 'pallet-inflation/try-runtime',198 'pallet-maintenance/try-runtime',199 'pallet-membership/try-runtime',200 'pallet-nonfungible/try-runtime',201 'pallet-ranked-collective/try-runtime',202 'pallet-referenda/try-runtime',203 'pallet-refungible/try-runtime',204 'pallet-scheduler/try-runtime',205 'pallet-structure/try-runtime',206 'pallet-sudo/try-runtime',207 'pallet-timestamp/try-runtime',208 'pallet-transaction-payment/try-runtime',209 'pallet-treasury/try-runtime',210 'pallet-unique/try-runtime',211 'pallet-utility/try-runtime',212 'pallet-xcm/try-runtime',213 'parachain-info/try-runtime',214]215216app-promotion = []217collator-selection = []218foreign-assets = []219gov-test-timings = []220governance = []221preimage = []222refungible = []223session-test-timings = []224225################################################################################226# local dependencies227228[dependencies]229cumulus-pallet-aura-ext = { workspace = true }230cumulus-pallet-dmp-queue = { workspace = true }231cumulus-pallet-parachain-system = { workspace = true }232cumulus-pallet-xcm = { workspace = true }233cumulus-pallet-xcmp-queue = { workspace = true }234cumulus-primitives-core = { workspace = true }235cumulus-primitives-timestamp = { workspace = true }236cumulus-primitives-utility = { workspace = true }237frame-executive = { workspace = true }238frame-support = { workspace = true }239frame-system = { workspace = true }240frame-system-rpc-runtime-api = { workspace = true }241orml-tokens = { workspace = true }242orml-traits = { workspace = true }243orml-vesting = { workspace = true }244orml-xcm-support = { workspace = true }245orml-xtokens = { workspace = true }246pallet-aura = { workspace = true }247pallet-authorship = { workspace = true }248pallet-balances = { features = ["insecure_zero_ed"], workspace = true }249pallet-preimage = { workspace = true }250pallet-session = { workspace = true }251pallet-state-trie-migration = { workspace = true }252pallet-sudo = { workspace = true }253pallet-timestamp = { workspace = true }254pallet-transaction-payment = { workspace = true }255pallet-transaction-payment-rpc-runtime-api = { workspace = true }256pallet-treasury = { workspace = true }257pallet-utility = { workspace = true }258pallet-xcm = { workspace = true }259parachain-info = { workspace = true }260parity-scale-codec = { workspace = true }261polkadot-parachain-primitives = { workspace = true }262smallvec = { workspace = true }263sp-api = { workspace = true }264sp-arithmetic = { workspace = true }265sp-block-builder = { workspace = true }266sp-consensus-aura = { workspace = true }267sp-core = { workspace = true }268sp-inherents = { workspace = true }269sp-io = { workspace = true }270sp-offchain = { workspace = true }271sp-runtime = { workspace = true }272sp-session = { workspace = true }273sp-std = { workspace = true }274sp-storage = { workspace = true }275sp-transaction-pool = { workspace = true }276sp-version = { workspace = true }277staging-xcm = { workspace = true }278staging-xcm-builder = { workspace = true }279staging-xcm-executor = { workspace = true }280281app-promotion-rpc = { workspace = true }282derivative = { workspace = true }283fp-evm = { workspace = true }284log = { workspace = true }285pallet-app-promotion = { workspace = true }286pallet-balances-adapter = { workspace = true }287pallet-collator-selection = { workspace = true }288pallet-collective = { workspace = true }289pallet-common = { workspace = true }290pallet-configuration = { workspace = true }291pallet-democracy = { workspace = true }292pallet-fungible = { workspace = true }293pallet-gov-origins = { workspace = true }294pallet-identity = { workspace = true }295pallet-inflation = { workspace = true }296pallet-membership = { workspace = true }297pallet-nonfungible = { workspace = true }298pallet-ranked-collective = { workspace = true }299pallet-referenda = { workspace = true }300pallet-refungible = { workspace = true }301pallet-scheduler = { workspace = true }302pallet-structure = { workspace = true }303pallet-unique = { workspace = true }304scale-info = { workspace = true }305up-common = { workspace = true }306up-data-structs = { workspace = true }307up-pov-estimate-rpc = { workspace = true }308up-rpc = { workspace = true }309# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }310evm-coder = { workspace = true }311fp-rpc = { workspace = true }312fp-self-contained = { workspace = true }313num_enum = { version = "0.7.0", default-features = false }314pallet-base-fee = { workspace = true }315pallet-charge-transaction = { workspace = true }316pallet-ethereum = { workspace = true }317pallet-evm = { workspace = true }318pallet-evm-coder-substrate = { workspace = true }319pallet-evm-contract-helpers = { workspace = true }320pallet-evm-migration = { workspace = true }321pallet-evm-precompile-simple = { workspace = true }322pallet-evm-transaction-payment = { workspace = true }323pallet-foreign-assets = { workspace = true }324pallet-maintenance = { workspace = true }325precompile-utils-macro = { workspace = true }326up-sponsorship = { workspace = true }327328################################################################################329# Optional dependencies330331frame-benchmarking = { workspace = true, optional = true }332frame-system-benchmarking = { workspace = true, optional = true }333frame-try-runtime = { workspace = true, optional = true }334serde = { workspace = true, optional = true }335336337################################################################################338# Test dependencies339340pallet-test-utils = { workspace = true }341342################################################################################343# Other Dependencies344345hex-literal = { workspace = true }346impl-trait-for-tuples = { workspace = true }347348[build-dependencies]349substrate-wasm-builder = { workspace = true }runtime/unique/Cargo.tomldiffbeforeafterboth--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -274,6 +274,7 @@
sp-runtime = { workspace = true }
sp-session = { workspace = true }
sp-std = { workspace = true }
+sp-storage = { workspace = true }
sp-transaction-pool = { workspace = true }
sp-version = { workspace = true }
staging-xcm = { workspace = true }