git.delta.rocks / unique-network / refs/commits / e2ee5ffc10f8

difftreelog

style fix formatting

Yaroslav Bolyukin2023-11-17parent: #c1585fd.patch.diff
in: master

4 files changed

modifiedruntime/common/config/substrate.rsdiffbeforeafterboth
before · runtime/common/config/substrate.rs
1// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.2// This file is part of Unique Network.34// Unique Network is free software: you can redistribute it and/or modify5// it under the terms of the GNU General Public License as published by6// the Free Software Foundation, either version 3 of the License, or7// (at your option) any later version.89// Unique Network is distributed in the hope that it will be useful,10// but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the12// GNU General Public License for more details.1314// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.1617use frame_support::{18	dispatch::DispatchClass,19	ord_parameter_types, parameter_types,20	traits::{ConstBool, ConstU32, ConstU64, Everything, NeverEnsureOrigin, tokens::{PayFromAccount, UnityAssetBalanceConversion}},21	weights::{22		constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight},23		ConstantMultiplier,24	},25	PalletId,26};27use frame_system::{28	limits::{BlockLength, BlockWeights},29	EnsureRoot, EnsureSignedBy,30};31use pallet_transaction_payment::{ConstFeeMultiplier, Multiplier};32use sp_arithmetic::traits::One;33use sp_runtime::{34	traits::{AccountIdLookup, BlakeTwo256, IdentityLookup},35	Perbill, Percent, Permill,36};37use sp_std::vec;38use up_common::{constants::*, types::*};3940use crate::{41	runtime_common::DealWithFees, Balances, Block, OriginCaller, PalletInfo, Runtime, RuntimeCall,42	RuntimeEvent, RuntimeHoldReason, RuntimeFreezeReason, RuntimeOrigin, SS58Prefix, System, Version, Treasury,43};4445parameter_types! {46	pub const BlockHashCount: BlockNumber = 2400;47	pub RuntimeBlockLength: BlockLength =48		BlockLength::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO);49	pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75);50	pub const MaximumBlockLength: u32 = 5 * 1024 * 1024;51	pub RuntimeBlockWeights: BlockWeights = BlockWeights::builder()52		.base_block(BlockExecutionWeight::get())53		.for_class(DispatchClass::all(), |weights| {54			weights.base_extrinsic = ExtrinsicBaseWeight::get();55		})56		.for_class(DispatchClass::Normal, |weights| {57			weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);58		})59		.for_class(DispatchClass::Operational, |weights| {60			weights.max_total = Some(MAXIMUM_BLOCK_WEIGHT);61			// Operational transactions have some extra reserved space, so that they62			// are included even if block reached `MAXIMUM_BLOCK_WEIGHT`.63			weights.reserved = Some(64				MAXIMUM_BLOCK_WEIGHT - NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT65			);66		})67		.avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO)68		.build_or_panic();69}7071impl frame_system::Config for Runtime {72	/// The data to be stored in an account.73	type AccountData = pallet_balances::AccountData<Balance>;74	/// The identifier used to distinguish between accounts.75	type AccountId = AccountId;76	/// The basic call filter to use in dispatchable.77	type BaseCallFilter = Everything;78	/// Maximum number of block number to block hash mappings to keep (oldest pruned first).79	type BlockHashCount = BlockHashCount;80	/// The block type.81	type Block = Block;82	/// The maximum length of a block (in bytes).83	type BlockLength = RuntimeBlockLength;84	/// The weight of the overhead invoked on the block import process, independent of the extrinsics included in that block.85	type BlockWeights = RuntimeBlockWeights;86	/// The aggregated dispatch type that is available for extrinsics.87	type RuntimeCall = RuntimeCall;88	/// The weight of database operations that the runtime can invoke.89	type DbWeight = RocksDbWeight;90	/// The ubiquitous event type.91	type RuntimeEvent = RuntimeEvent;92	/// The type for hashing blocks and tries.93	type Hash = Hash;94	/// The hashing algorithm used.95	type Hashing = BlakeTwo256;96	/// The index type for storing how many extrinsics an account has signed.97	type Nonce = Nonce;98	/// The lookup mechanism to get account ID from whatever is passed in dispatchers.99	type Lookup = AccountIdLookup<AccountId, ()>;100	/// What to do if an account is fully reaped from the system.101	type OnKilledAccount = ();102	/// What to do if a new account is created.103	type OnNewAccount = ();104	type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode<Self>;105	/// The ubiquitous origin type.106	type RuntimeOrigin = RuntimeOrigin;107	/// This type is being generated by `construct_runtime!`.108	type PalletInfo = PalletInfo;109	/// This is used as an identifier of the chain. 42 is the generic substrate prefix.110	type SS58Prefix = SS58Prefix;111	/// Weight information for the extrinsics of this pallet.112	type SystemWeightInfo = frame_system::weights::SubstrateWeight<Self>;113	/// Version of the runtime.114	type Version = Version;115	type MaxConsumers = ConstU32<16>;116}117118parameter_types! {119	pub const MigrationMaxKeyLen: u32 = 512;120}121ord_parameter_types! {122	pub const TrieMigrationSigned: AccountId = AccountId::from(hex_literal::hex!("3e2ee9b68b52c239488e8abbeb31284c0d4342ec7c3b53f8e50855051d54a319"));123}124125impl pallet_state_trie_migration::Config for Runtime {126	type WeightInfo = pallet_state_trie_migration::weights::SubstrateWeight<Self>;127	type RuntimeEvent = RuntimeEvent;128	type Currency = Balances;129	type SignedDepositPerItem = ();130	type SignedDepositBase = ();131	type ControlOrigin = EnsureRoot<AccountId>;132	// Only root can perform this migration133	type SignedFilter = EnsureSignedBy<TrieMigrationSigned, AccountId>;134	type MaxKeyLen = MigrationMaxKeyLen;135}136137impl pallet_timestamp::Config for Runtime {138	/// A timestamp: milliseconds since the unix epoch.139	type Moment = u64;140	type OnTimestampSet = ();141	#[cfg(not(feature = "lookahead"))]142	type MinimumPeriod = ConstU64<{SLOT_DURATION / 2}>;143	#[cfg(feature = "lookahead")]144	type MinimumPeriod = ConstU64<0>;145	type WeightInfo = ();146}147148parameter_types! {149	// pub const ExistentialDeposit: u128 = 500;150	pub const ExistentialDeposit: u128 = EXISTENTIAL_DEPOSIT;151	pub const MaxLocks: u32 = 50;152	pub const MaxReserves: u32 = 50;153	pub const MaxHolds: u32 = 10;154	pub const MaxFreezes: u32 = 10;155}156157impl pallet_balances::Config for Runtime {158	type MaxLocks = MaxLocks;159	type MaxReserves = MaxReserves;160	type ReserveIdentifier = [u8; 16];161	/// The type for recording an account's balance.162	type Balance = Balance;163	/// The ubiquitous event type.164	type RuntimeEvent = RuntimeEvent;165	// FIXME: Is () the new treasury?166	// Switch to real treasury once we start having dust removals167	// Related issue: https://github.com/paritytech/polkadot/issues/7323168	type DustRemoval = ();169	type ExistentialDeposit = ExistentialDeposit;170	type AccountStore = System;171	type WeightInfo = pallet_balances::weights::SubstrateWeight<Self>;172	type RuntimeHoldReason = RuntimeHoldReason;173	type RuntimeFreezeReason = RuntimeFreezeReason;174	type FreezeIdentifier = [u8; 16];175	type MaxHolds = MaxHolds;176	type MaxFreezes = MaxFreezes;177}178179parameter_types! {180	/// This value increases the priority of `Operational` transactions by adding181	/// a "virtual tip" that's equal to the `OperationalFeeMultiplier * final_fee`.182	pub const OperationalFeeMultiplier: u8 = 5;183184	pub FeeMultiplier: Multiplier = Multiplier::one();185}186187impl pallet_transaction_payment::Config for Runtime {188	type RuntimeEvent = RuntimeEvent;189	type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, DealWithFees>;190	type LengthToFee = ConstantMultiplier<Balance, TransactionByteFee>;191	type OperationalFeeMultiplier = OperationalFeeMultiplier;192	type WeightToFee = pallet_configuration::WeightToFee<Self, Balance>;193	type FeeMultiplierUpdate = ConstFeeMultiplier<FeeMultiplier>;194}195196parameter_types! {197	pub const ProposalBond: Permill = Permill::from_percent(5);198	pub const ProposalBondMinimum: Balance = 1 * UNIQUE;199	pub const ProposalBondMaximum: Balance = 1000 * UNIQUE;200	pub const SpendPeriod: BlockNumber = 5 * MINUTES;201	pub const Burn: Permill = Permill::from_percent(0);202	pub const TipCountdown: BlockNumber = 1 * DAYS;203	pub const TipFindersFee: Percent = Percent::from_percent(20);204	pub const TipReportDepositBase: Balance = 1 * UNIQUE;205	pub const DataDepositPerByte: Balance = 1 * CENTIUNIQUE;206	pub const BountyDepositBase: Balance = 1 * UNIQUE;207	pub const BountyDepositPayoutDelay: BlockNumber = 1 * DAYS;208	pub const TreasuryModuleId: PalletId = PalletId(*b"py/trsry");209	pub TreasuryAccount: AccountId = Treasury::account_id();210	pub const BountyUpdatePeriod: BlockNumber = 14 * DAYS;211	pub const MaximumReasonLength: u32 = 16384;212	pub const BountyCuratorDeposit: Permill = Permill::from_percent(50);213	pub const BountyValueMinimum: Balance = 5 * UNIQUE;214	pub const MaxApprovals: u32 = 100;215}216217impl pallet_treasury::Config for Runtime {218	type PalletId = TreasuryModuleId;219	type Currency = Balances;220	type ApproveOrigin = EnsureRoot<AccountId>;221	type RejectOrigin = EnsureRoot<AccountId>;222	type SpendOrigin = NeverEnsureOrigin<u128>;223	type RuntimeEvent = RuntimeEvent;224	type OnSlash = ();225	type ProposalBond = ProposalBond;226	type ProposalBondMinimum = ProposalBondMinimum;227	type ProposalBondMaximum = ProposalBondMaximum;228	type SpendPeriod = SpendPeriod;229	type Burn = Burn;230	type BurnDestination = ();231	type SpendFunds = ();232	type WeightInfo = pallet_treasury::weights::SubstrateWeight<Self>;233	type MaxApprovals = MaxApprovals;234	type AssetKind = ();235	type Beneficiary = AccountId;236	type BeneficiaryLookup = IdentityLookup<Self::Beneficiary>;237	type Paymaster = PayFromAccount<Balances, TreasuryAccount>;238	type BalanceConverter = UnityAssetBalanceConversion;239	type PayoutPeriod = ConstU32<10>;240}241242impl pallet_sudo::Config for Runtime {243	type RuntimeEvent = RuntimeEvent;244	type RuntimeCall = RuntimeCall;245	type WeightInfo = pallet_sudo::weights::SubstrateWeight<Self>;246}247248parameter_types! {249	pub const MaxAuthorities: u32 = 100_000;250}251252impl pallet_aura::Config for Runtime {253	type AuthorityId = AuraId;254	type DisabledValidators = ();255	type MaxAuthorities = MaxAuthorities;256	type AllowMultipleBlocksPerSlot = ConstBool<true>;257	#[cfg(feature = "lookahead")]258	type SlotDuration = ConstU64<SLOT_DURATION>;259}260261impl pallet_utility::Config for Runtime {262	type RuntimeEvent = RuntimeEvent;263	type RuntimeCall = RuntimeCall;264	type PalletsOrigin = OriginCaller;265	type WeightInfo = pallet_utility::weights::SubstrateWeight<Self>;266}
after · runtime/common/config/substrate.rs
1// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.2// This file is part of Unique Network.34// Unique Network is free software: you can redistribute it and/or modify5// it under the terms of the GNU General Public License as published by6// the Free Software Foundation, either version 3 of the License, or7// (at your option) any later version.89// Unique Network is distributed in the hope that it will be useful,10// but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the12// GNU General Public License for more details.1314// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.1617use frame_support::{18	dispatch::DispatchClass,19	ord_parameter_types, parameter_types,20	traits::{21		tokens::{PayFromAccount, UnityAssetBalanceConversion},22		ConstBool, ConstU32, ConstU64, Everything, NeverEnsureOrigin,23	},24	weights::{25		constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight},26		ConstantMultiplier,27	},28	PalletId,29};30use frame_system::{31	limits::{BlockLength, BlockWeights},32	EnsureRoot, EnsureSignedBy,33};34use pallet_transaction_payment::{ConstFeeMultiplier, Multiplier};35use sp_arithmetic::traits::One;36use sp_runtime::{37	traits::{AccountIdLookup, BlakeTwo256, IdentityLookup},38	Perbill, Percent, Permill,39};40use sp_std::vec;41use up_common::{constants::*, types::*};4243use crate::{44	runtime_common::DealWithFees, Balances, Block, OriginCaller, PalletInfo, Runtime, RuntimeCall,45	RuntimeEvent, RuntimeFreezeReason, RuntimeHoldReason, RuntimeOrigin, SS58Prefix, System,46	Treasury, Version,47};4849parameter_types! {50	pub const BlockHashCount: BlockNumber = 2400;51	pub RuntimeBlockLength: BlockLength =52		BlockLength::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO);53	pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75);54	pub const MaximumBlockLength: u32 = 5 * 1024 * 1024;55	pub RuntimeBlockWeights: BlockWeights = BlockWeights::builder()56		.base_block(BlockExecutionWeight::get())57		.for_class(DispatchClass::all(), |weights| {58			weights.base_extrinsic = ExtrinsicBaseWeight::get();59		})60		.for_class(DispatchClass::Normal, |weights| {61			weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);62		})63		.for_class(DispatchClass::Operational, |weights| {64			weights.max_total = Some(MAXIMUM_BLOCK_WEIGHT);65			// Operational transactions have some extra reserved space, so that they66			// are included even if block reached `MAXIMUM_BLOCK_WEIGHT`.67			weights.reserved = Some(68				MAXIMUM_BLOCK_WEIGHT - NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT69			);70		})71		.avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO)72		.build_or_panic();73}7475impl frame_system::Config for Runtime {76	/// The data to be stored in an account.77	type AccountData = pallet_balances::AccountData<Balance>;78	/// The identifier used to distinguish between accounts.79	type AccountId = AccountId;80	/// The basic call filter to use in dispatchable.81	type BaseCallFilter = Everything;82	/// Maximum number of block number to block hash mappings to keep (oldest pruned first).83	type BlockHashCount = BlockHashCount;84	/// The block type.85	type Block = Block;86	/// The maximum length of a block (in bytes).87	type BlockLength = RuntimeBlockLength;88	/// The weight of the overhead invoked on the block import process, independent of the extrinsics included in that block.89	type BlockWeights = RuntimeBlockWeights;90	/// The aggregated dispatch type that is available for extrinsics.91	type RuntimeCall = RuntimeCall;92	/// The weight of database operations that the runtime can invoke.93	type DbWeight = RocksDbWeight;94	/// The ubiquitous event type.95	type RuntimeEvent = RuntimeEvent;96	/// The type for hashing blocks and tries.97	type Hash = Hash;98	/// The hashing algorithm used.99	type Hashing = BlakeTwo256;100	/// The index type for storing how many extrinsics an account has signed.101	type Nonce = Nonce;102	/// The lookup mechanism to get account ID from whatever is passed in dispatchers.103	type Lookup = AccountIdLookup<AccountId, ()>;104	/// What to do if an account is fully reaped from the system.105	type OnKilledAccount = ();106	/// What to do if a new account is created.107	type OnNewAccount = ();108	type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode<Self>;109	/// The ubiquitous origin type.110	type RuntimeOrigin = RuntimeOrigin;111	/// This type is being generated by `construct_runtime!`.112	type PalletInfo = PalletInfo;113	/// This is used as an identifier of the chain. 42 is the generic substrate prefix.114	type SS58Prefix = SS58Prefix;115	/// Weight information for the extrinsics of this pallet.116	type SystemWeightInfo = frame_system::weights::SubstrateWeight<Self>;117	/// Version of the runtime.118	type Version = Version;119	type MaxConsumers = ConstU32<16>;120}121122parameter_types! {123	pub const MigrationMaxKeyLen: u32 = 512;124}125ord_parameter_types! {126	pub const TrieMigrationSigned: AccountId = AccountId::from(hex_literal::hex!("3e2ee9b68b52c239488e8abbeb31284c0d4342ec7c3b53f8e50855051d54a319"));127}128129impl pallet_state_trie_migration::Config for Runtime {130	type WeightInfo = pallet_state_trie_migration::weights::SubstrateWeight<Self>;131	type RuntimeEvent = RuntimeEvent;132	type Currency = Balances;133	type SignedDepositPerItem = ();134	type SignedDepositBase = ();135	type ControlOrigin = EnsureRoot<AccountId>;136	// Only root can perform this migration137	type SignedFilter = EnsureSignedBy<TrieMigrationSigned, AccountId>;138	type MaxKeyLen = MigrationMaxKeyLen;139}140141impl pallet_timestamp::Config for Runtime {142	/// A timestamp: milliseconds since the unix epoch.143	type Moment = u64;144	type OnTimestampSet = ();145	#[cfg(not(feature = "lookahead"))]146	type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>;147	#[cfg(feature = "lookahead")]148	type MinimumPeriod = ConstU64<0>;149	type WeightInfo = ();150}151152parameter_types! {153	// pub const ExistentialDeposit: u128 = 500;154	pub const ExistentialDeposit: u128 = EXISTENTIAL_DEPOSIT;155	pub const MaxLocks: u32 = 50;156	pub const MaxReserves: u32 = 50;157	pub const MaxHolds: u32 = 10;158	pub const MaxFreezes: u32 = 10;159}160161impl pallet_balances::Config for Runtime {162	type MaxLocks = MaxLocks;163	type MaxReserves = MaxReserves;164	type ReserveIdentifier = [u8; 16];165	/// The type for recording an account's balance.166	type Balance = Balance;167	/// The ubiquitous event type.168	type RuntimeEvent = RuntimeEvent;169	// FIXME: Is () the new treasury?170	// Switch to real treasury once we start having dust removals171	// Related issue: https://github.com/paritytech/polkadot/issues/7323172	type DustRemoval = ();173	type ExistentialDeposit = ExistentialDeposit;174	type AccountStore = System;175	type WeightInfo = pallet_balances::weights::SubstrateWeight<Self>;176	type RuntimeHoldReason = RuntimeHoldReason;177	type RuntimeFreezeReason = RuntimeFreezeReason;178	type FreezeIdentifier = [u8; 16];179	type MaxHolds = MaxHolds;180	type MaxFreezes = MaxFreezes;181}182183parameter_types! {184	/// This value increases the priority of `Operational` transactions by adding185	/// a "virtual tip" that's equal to the `OperationalFeeMultiplier * final_fee`.186	pub const OperationalFeeMultiplier: u8 = 5;187188	pub FeeMultiplier: Multiplier = Multiplier::one();189}190191impl pallet_transaction_payment::Config for Runtime {192	type RuntimeEvent = RuntimeEvent;193	type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, DealWithFees>;194	type LengthToFee = ConstantMultiplier<Balance, TransactionByteFee>;195	type OperationalFeeMultiplier = OperationalFeeMultiplier;196	type WeightToFee = pallet_configuration::WeightToFee<Self, Balance>;197	type FeeMultiplierUpdate = ConstFeeMultiplier<FeeMultiplier>;198}199200parameter_types! {201	pub const ProposalBond: Permill = Permill::from_percent(5);202	pub const ProposalBondMinimum: Balance = 1 * UNIQUE;203	pub const ProposalBondMaximum: Balance = 1000 * UNIQUE;204	pub const SpendPeriod: BlockNumber = 5 * MINUTES;205	pub const Burn: Permill = Permill::from_percent(0);206	pub const TipCountdown: BlockNumber = 1 * DAYS;207	pub const TipFindersFee: Percent = Percent::from_percent(20);208	pub const TipReportDepositBase: Balance = 1 * UNIQUE;209	pub const DataDepositPerByte: Balance = 1 * CENTIUNIQUE;210	pub const BountyDepositBase: Balance = 1 * UNIQUE;211	pub const BountyDepositPayoutDelay: BlockNumber = 1 * DAYS;212	pub const TreasuryModuleId: PalletId = PalletId(*b"py/trsry");213	pub TreasuryAccount: AccountId = Treasury::account_id();214	pub const BountyUpdatePeriod: BlockNumber = 14 * DAYS;215	pub const MaximumReasonLength: u32 = 16384;216	pub const BountyCuratorDeposit: Permill = Permill::from_percent(50);217	pub const BountyValueMinimum: Balance = 5 * UNIQUE;218	pub const MaxApprovals: u32 = 100;219}220221impl pallet_treasury::Config for Runtime {222	type PalletId = TreasuryModuleId;223	type Currency = Balances;224	type ApproveOrigin = EnsureRoot<AccountId>;225	type RejectOrigin = EnsureRoot<AccountId>;226	type SpendOrigin = NeverEnsureOrigin<u128>;227	type RuntimeEvent = RuntimeEvent;228	type OnSlash = ();229	type ProposalBond = ProposalBond;230	type ProposalBondMinimum = ProposalBondMinimum;231	type ProposalBondMaximum = ProposalBondMaximum;232	type SpendPeriod = SpendPeriod;233	type Burn = Burn;234	type BurnDestination = ();235	type SpendFunds = ();236	type WeightInfo = pallet_treasury::weights::SubstrateWeight<Self>;237	type MaxApprovals = MaxApprovals;238	type AssetKind = ();239	type Beneficiary = AccountId;240	type BeneficiaryLookup = IdentityLookup<Self::Beneficiary>;241	type Paymaster = PayFromAccount<Balances, TreasuryAccount>;242	type BalanceConverter = UnityAssetBalanceConversion;243	type PayoutPeriod = ConstU32<10>;244}245246impl pallet_sudo::Config for Runtime {247	type RuntimeEvent = RuntimeEvent;248	type RuntimeCall = RuntimeCall;249	type WeightInfo = pallet_sudo::weights::SubstrateWeight<Self>;250}251252parameter_types! {253	pub const MaxAuthorities: u32 = 100_000;254}255256impl pallet_aura::Config for Runtime {257	type AuthorityId = AuraId;258	type DisabledValidators = ();259	type MaxAuthorities = MaxAuthorities;260	type AllowMultipleBlocksPerSlot = ConstBool<true>;261	#[cfg(feature = "lookahead")]262	type SlotDuration = ConstU64<SLOT_DURATION>;263}264265impl pallet_utility::Config for Runtime {266	type RuntimeEvent = RuntimeEvent;267	type RuntimeCall = RuntimeCall;268	type PalletsOrigin = OriginCaller;269	type WeightInfo = pallet_utility::weights::SubstrateWeight<Self>;270}
modifiedruntime/common/config/xcm/foreignassets.rsdiffbeforeafterboth
--- a/runtime/common/config/xcm/foreignassets.rs
+++ b/runtime/common/config/xcm/foreignassets.rs
@@ -132,7 +132,11 @@
 
 	fn check_out(_dest: &MultiLocation, _what: &MultiAsset, _context: &XcmContext) {}
 
-	fn deposit_asset(what: &MultiAsset, who: &MultiLocation, context: Option<&XcmContext>) -> XcmResult {
+	fn deposit_asset(
+		what: &MultiAsset,
+		who: &MultiLocation,
+		context: Option<&XcmContext>,
+	) -> XcmResult {
 		FungiblesTransactor::deposit_asset(what, who, context)
 	}
 
modifiedruntime/common/config/xcm/mod.rsdiffbeforeafterboth
--- a/runtime/common/config/xcm/mod.rs
+++ b/runtime/common/config/xcm/mod.rs
@@ -14,6 +14,7 @@
 // You should have received a copy of the GNU General Public License
 // along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
 
+use cumulus_primitives_core::ParaId;
 use frame_support::{
 	parameter_types,
 	traits::{ConstU32, Contains, Everything, Get, Nothing, ProcessMessageError},
@@ -21,6 +22,7 @@
 use frame_system::EnsureRoot;
 use pallet_xcm::XcmPassthrough;
 use polkadot_parachain_primitives::primitives::Sibling;
+use polkadot_runtime_common::xcm_sender::NoPriceForMessageDelivery;
 use sp_std::marker::PhantomData;
 use staging_xcm::{
 	latest::{prelude::*, MultiLocation, Weight},
@@ -36,8 +38,6 @@
 	XcmExecutor,
 };
 use up_common::types::AccountId;
-use cumulus_primitives_core::ParaId;
-use polkadot_runtime_common::xcm_sender::NoPriceForMessageDelivery;
 
 use crate::{
 	xcm_barrier::Barrier, AllPalletsWithSystem, Balances, ParachainInfo, ParachainSystem,
modifiedruntime/common/mod.rsdiffbeforeafterboth
--- a/runtime/common/mod.rs
+++ b/runtime/common/mod.rs
@@ -43,10 +43,7 @@
 use sp_version::NativeVersion;
 use up_common::types::{AccountId, BlockNumber};
 
-use crate::{
-	AllPalletsWithSystem, Aura, Balances, Runtime, RuntimeCall, Signature,
-	Treasury,
-};
+use crate::{AllPalletsWithSystem, Aura, Balances, Runtime, RuntimeCall, Signature, Treasury};
 
 #[macro_export]
 macro_rules! unsupported {