Skip to content

Commit

Permalink
fixup(imports): post-rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
CertainLach committed Oct 2, 2023
1 parent 2eca527 commit e48f2d1
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 37 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ lto = true
opt-level = 3

[profile.integration-tests]
inherits = "release"
debug-assertions = true
inherits = "release"

[workspace.dependencies]
# Unique
Expand Down
13 changes: 4 additions & 9 deletions node/cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use std::time::Duration;

use codec::Encode;
use cumulus_client_cli::generate_genesis_block;
use cumulus_primitives_core::ParaId;
use log::{debug, info};
use log::info;
use sc_cli::{
ChainSpec, CliConfiguration, DefaultConfigurationValues, ImportParams, KeystoreParams,
NetworkParams, Result, RuntimeVersion, SharedParams, SubstrateCli,
NetworkParams, Result, SharedParams, SubstrateCli,
};
use sc_service::config::{BasePath, PrometheusConfig};
use sp_core::hexdisplay::HexDisplay;
use sp_runtime::traits::{AccountIdConversion, Block as BlockT};
use up_common::types::opaque::{Block, RuntimeId};
use sp_runtime::traits::AccountIdConversion;
use up_common::types::opaque::RuntimeId;

#[cfg(feature = "runtime-benchmarks")]
use crate::chain_spec::default_runtime;
Expand Down
4 changes: 2 additions & 2 deletions node/cli/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -824,8 +824,8 @@ where
{
use fc_consensus::FrontierBlockImport;
use sc_consensus_manual_seal::{
run_manual_seal, run_delayed_finalize, EngineCommand, ManualSealParams,
DelayedFinalizeParams,
run_delayed_finalize, run_manual_seal, DelayedFinalizeParams, EngineCommand,
ManualSealParams,
};

let sc_service::PartialComponents {
Expand Down
6 changes: 3 additions & 3 deletions pallets/collator-selection/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
use frame_benchmarking::{account, benchmarks, impl_benchmark_test_suite, whitelisted_caller};
use frame_support::{
assert_ok,
parity_scale_codec::Decode,
traits::{
fungible::{Inspect, Mutate},
EnsureOrigin, Get,
},
};
use frame_system::{EventRecord, RawOrigin};
use frame_system::{pallet_prelude::*, EventRecord, RawOrigin};
use pallet_authorship::EventHandler;
use pallet_session::{self as session, SessionManager};
use parity_scale_codec::Decode;
use sp_std::prelude::*;

use super::*;
Expand Down Expand Up @@ -338,7 +338,7 @@ benchmarks! {
register_candidates::<T>(c);

let new_block: BlockNumberFor<T>= 1800u32.into();
let zero_block: T::BlockNumber = 0u32.into();
let zero_block: BlockNumberFor<T> = 0u32.into();
let candidates = <Candidates<T>>::get();

let non_removals = c.saturating_sub(r);
Expand Down
2 changes: 1 addition & 1 deletion pallets/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
extern crate alloc;

use core::{
marker::PhantomData,
ops::{Deref, DerefMut},
slice::from_ref,
marker::PhantomData,
};

use evm_coder::ToLog;
Expand Down
2 changes: 1 addition & 1 deletion pallets/configuration/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use frame_benchmarking::benchmarks;
use frame_support::assert_ok;
use frame_system::{EventRecord, RawOrigin};
use frame_system::{pallet_prelude::*, EventRecord, RawOrigin};

use super::*;

Expand Down
10 changes: 5 additions & 5 deletions pallets/inflation/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
#![cfg(feature = "runtime-benchmarks")]

use frame_benchmarking::benchmarks;
use frame_support::traits::OnInitialize;
use frame_support::{pallet_prelude::*, traits::Hooks};

use super::*;
use crate::Pallet as Inflation;

benchmarks! {

on_initialize {
let block1: T::BlockNumber = T::BlockNumber::from(1u32);
let block2: T::BlockNumber = T::BlockNumber::from(2u32);
Inflation::<T>::on_initialize(block1); // Create Treasury account
}: { Inflation::<T>::on_initialize(block2); } // Benchmark deposit_into_existing path
let block1: BlockNumberFor<T> = 1u32.into();
let block2: BlockNumberFor<T> = 2u32.into();
<Inflation<T> as Hooks>::on_initialize(block1); // Create Treasury account
}: { <Inflation<T> as Hooks>::on_initialize(block2); } // Benchmark deposit_into_existing path

}
2 changes: 1 addition & 1 deletion pallets/nonfungible/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use frame_benchmarking::{account, benchmarks};
use pallet_common::{
bench_init,
benchmarking::{
create_collection_raw, property_key, property_value, load_is_admin_and_property_permissions,
create_collection_raw, load_is_admin_and_property_permissions, property_key, property_value,
},
CommonCollectionOperations,
};
Expand Down
12 changes: 6 additions & 6 deletions pallets/nonfungible/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ use frame_support::{
};
pub use pallet::*;
use pallet_common::{
Error as CommonError, Pallet as PalletCommon, Event as CommonEvent, CollectionHandle,
eth::collection_id_to_address, SelfWeightOf as PalletCommonWeightOf,
weights::WeightInfo as CommonWeightInfo, helpers::add_weight_to_post_info,
eth::collection_id_to_address, helpers::add_weight_to_post_info,
weights::WeightInfo as CommonWeightInfo, CollectionHandle, Error as CommonError,
Event as CommonEvent, Pallet as PalletCommon, SelfWeightOf as PalletCommonWeightOf,
};
use pallet_evm::{account::CrossAccountId, Pallet as PalletEvm};
use pallet_evm_coder_substrate::{SubstrateRecorder, WithRecorder};
Expand All @@ -116,9 +116,9 @@ use sp_core::{Get, H160};
use sp_runtime::{ArithmeticError, DispatchError, DispatchResult, TransactionOutcome};
use sp_std::{collections::btree_map::BTreeMap, vec, vec::Vec};
use up_data_structs::{
AccessMode, CollectionId, CustomDataLimit, TokenId, CreateCollectionData, CreateNftExData,
mapping::TokenAddressMapping, budget::Budget, Property, PropertyKey, PropertyValue,
PropertyKeyPermission, PropertyScope, TokenChild, AuxPropertyValue, PropertiesPermissionMap,
budget::Budget, mapping::TokenAddressMapping, AccessMode, AuxPropertyValue, CollectionId,
CreateCollectionData, CreateNftExData, CustomDataLimit, PropertiesPermissionMap, Property,
PropertyKey, PropertyKeyPermission, PropertyScope, PropertyValue, TokenChild, TokenId,
TokenProperties as TokenPropertiesT,
};
use weights::WeightInfo;
Expand Down
2 changes: 1 addition & 1 deletion pallets/refungible/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use frame_benchmarking::{account, benchmarks};
use pallet_common::{
bench_init,
benchmarking::{
create_collection_raw, property_key, property_value, load_is_admin_and_property_permissions,
create_collection_raw, load_is_admin_and_property_permissions, property_key, property_value,
},
};
use sp_std::prelude::*;
Expand Down
2 changes: 1 addition & 1 deletion pallets/refungible/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ use up_data_structs::{
budget::Budget, mapping::TokenAddressMapping, AccessMode, CollectionId, CreateCollectionData,
CreateRefungibleExMultipleOwners, PropertiesPermissionMap, Property, PropertyKey,
PropertyKeyPermission, PropertyScope, PropertyValue, TokenId, TokenOwnerError,
TokenProperties as TokenPropertiesT, TrySetProperty, MAX_REFUNGIBLE_PIECES,
TokenProperties as TokenPropertiesT, MAX_REFUNGIBLE_PIECES,
};

use crate::{erc::ERC721Events, erc_token::ERC20Events};
Expand Down
6 changes: 4 additions & 2 deletions runtime/opal/src/xcm_barrier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.

use frame_support::{match_types, traits::Everything};
use xcm::latest::{Junctions::*, MultiLocation};
use staging_xcm_builder::{AllowTopLevelPaidExecutionFrom, TakeWeightCredit, AllowExplicitUnpaidExecutionFrom};
use staging_xcm::latest::{Junctions::*, MultiLocation};
use staging_xcm_builder::{
AllowExplicitUnpaidExecutionFrom, AllowTopLevelPaidExecutionFrom, TakeWeightCredit,
};

match_types! {
pub type ParentOnly: impl Contains<MultiLocation> = {
Expand Down
4 changes: 2 additions & 2 deletions runtime/quartz/src/xcm_barrier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
use frame_support::{match_types, traits::Everything};
use staging_xcm::latest::{Junctions::*, MultiLocation};
use staging_xcm_builder::{
AllowKnownQueryResponses, AllowSubscriptionsFrom, TakeWeightCredit,
AllowTopLevelPaidExecutionFrom, AllowExplicitUnpaidExecutionFrom,
AllowExplicitUnpaidExecutionFrom, AllowKnownQueryResponses, AllowSubscriptionsFrom,
AllowTopLevelPaidExecutionFrom, TakeWeightCredit,
};

use crate::PolkadotXcm;
Expand Down
4 changes: 2 additions & 2 deletions runtime/unique/src/xcm_barrier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
use frame_support::{match_types, traits::Everything};
use staging_xcm::latest::{Junctions::*, MultiLocation};
use staging_xcm_builder::{
AllowKnownQueryResponses, AllowSubscriptionsFrom, TakeWeightCredit,
AllowTopLevelPaidExecutionFrom, AllowExplicitUnpaidExecutionFrom,
AllowExplicitUnpaidExecutionFrom, AllowKnownQueryResponses, AllowSubscriptionsFrom,
AllowTopLevelPaidExecutionFrom, TakeWeightCredit,
};

use crate::PolkadotXcm;
Expand Down

0 comments on commit e48f2d1

Please sign in to comment.