diff --git a/pallets/ddc-clusters/src/benchmarking.rs b/pallets/ddc-clusters/src/benchmarking.rs index eece523a7..bf9ec779b 100644 --- a/pallets/ddc-clusters/src/benchmarking.rs +++ b/pallets/ddc-clusters/src/benchmarking.rs @@ -1,20 +1,19 @@ //! DdcStaking pallet benchmarking. -use super::*; -use crate::{cluster::ClusterProps, Pallet as DdcClusters}; use ddc_primitives::{ClusterGovParams, ClusterId, ClusterParams, NodePubKey}; - -use pallet_contracts::chain_extension::UncheckedFrom; -use sp_runtime::{AccountId32, Perbill}; -use sp_std::prelude::*; - pub use frame_benchmarking::{ account, benchmarks, impl_benchmark_test_suite, whitelist_account, whitelisted_caller, BenchmarkError, }; use frame_system::RawOrigin; +use pallet_contracts::chain_extension::UncheckedFrom; +use sp_runtime::{AccountId32, Perbill}; +use sp_std::prelude::*; use testing_utils::*; +use super::*; +use crate::{cluster::ClusterProps, Pallet as DdcClusters}; + const USER_SEED: u32 = 999666; const USER_SEED_2: u32 = 999555; diff --git a/pallets/ddc-clusters/src/testing_utils.rs b/pallets/ddc-clusters/src/testing_utils.rs index d6455ca1f..9e97b0904 100644 --- a/pallets/ddc-clusters/src/testing_utils.rs +++ b/pallets/ddc-clusters/src/testing_utils.rs @@ -1,20 +1,19 @@ //! DdcStaking pallet benchmarking. -use crate::{Pallet as DdcClusters, *}; use ddc_primitives::{ CDNNodeParams, ClusterGovParams, ClusterId, ClusterParams, NodeParams, NodePubKey, }; - -use pallet_contracts::chain_extension::UncheckedFrom; -use pallet_ddc_nodes::Node; -use sp_runtime::Perbill; -use sp_std::prelude::*; - pub use frame_benchmarking::{ account, benchmarks, impl_benchmark_test_suite, whitelist_account, whitelisted_caller, BenchmarkError, }; use frame_system::RawOrigin; +use pallet_contracts::chain_extension::UncheckedFrom; +use pallet_ddc_nodes::Node; +use sp_runtime::Perbill; +use sp_std::prelude::*; + +use crate::{Pallet as DdcClusters, *}; pub fn config_cluster(user: T::AccountId, cluster_id: ClusterId) where