diff --git a/runtime/kerria/src/lib.rs b/runtime/kerria/src/lib.rs index 3ccc1c815..1ed8bdd79 100644 --- a/runtime/kerria/src/lib.rs +++ b/runtime/kerria/src/lib.rs @@ -16,16 +16,16 @@ // `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256. #![recursion_limit = "256"] -use codec::{Decode, Encode, MaxEncodedLen}; +use codec::Encode; use frame_support::{ construct_runtime, - dispatch::{DispatchClass, DispatchResult, Weight}, + dispatch::{DispatchClass, Weight}, log, match_types, parameter_types, traits::{ fungibles::{InspectMetadata, Mutate}, tokens::BalanceConversion, - AsEnsureOriginWithArg, ChangeMembers, ConstU32, Contains, EitherOfDiverse, - EqualPrivilegeOnly, Everything, FindAuthor, InstanceFilter, NeverEnsureOrigin, Nothing, + AsEnsureOriginWithArg, ConstU32, EitherOfDiverse, EqualPrivilegeOnly, Everything, + NeverEnsureOrigin, Nothing, }, weights::{ constants::{ @@ -33,39 +33,31 @@ use frame_support::{ }, ConstantMultiplier, }, - ConsensusEngineId, PalletId, + PalletId, }; use frame_system::{ limits::{BlockLength, BlockWeights}, EnsureRoot, EnsureSigned, }; -use orml_traits::{ - location::AbsoluteReserveProvider, parameter_type_with_key, DataFeeder, DataProvider, - DataProviderExtended, -}; +use orml_traits::location::AbsoluteReserveProvider; use orml_xcm_support::{IsNativeConcrete, MultiNativeAsset}; // use pallet_ethereum::PostLogContent; // use pallet_evm::{FeeCalculator, Runner}; use pallet_xcm::XcmPassthrough; use polkadot_parachain::primitives::Sibling; use polkadot_runtime_common::SlowAdjustingFeeUpdate; -use scale_info::TypeInfo; + use sp_api::impl_runtime_apis; -use sp_core::{OpaqueMetadata, H160, H256, U256}; +use sp_core::OpaqueMetadata; #[cfg(any(feature = "std", test))] pub use sp_runtime::BuildStorage; use sp_runtime::{ create_runtime_str, generic, impl_opaque_keys, traits::{ - self, AccountIdConversion, AccountIdLookup, BlakeTwo256, Block as BlockT, - BlockNumberProvider, Convert, DispatchInfoOf, Dispatchable, PostDispatchInfoOf, - UniqueSaturatedInto, Verify, Zero, + self, AccountIdConversion, AccountIdLookup, BlakeTwo256, Block as BlockT, Convert, Zero, }, - transaction_validity::{ - TransactionPriority, TransactionSource, TransactionValidity, TransactionValidityError, - }, - ApplyExtrinsicResult, DispatchError, FixedPointNumber, KeyTypeId, Perbill, Permill, - RuntimeDebug, SaturatedConversion, + transaction_validity::{TransactionSource, TransactionValidity}, + ApplyExtrinsicResult, DispatchError, KeyTypeId, Perbill, Permill, SaturatedConversion, }; use sp_std::prelude::*; #[cfg(feature = "std")] @@ -96,20 +88,14 @@ pub use pallet_asset_registry; // pub use pallet_router; // pub use pallet_streaming; -use pallet_traits::{ - xcm::{ - AccountIdToMultiLocation, AsAssetType, AssetType, CurrencyIdConvert, FirstAssetTrader, - MultiCurrencyAdapter, XcmAssetRegistry, - }, - DecimalProvider, EmergencyCallFilter, ValidationDataProvider, +use pallet_traits::xcm::{ + AsAssetType, AssetType, CurrencyIdConvert, FirstAssetTrader, MultiCurrencyAdapter, + XcmAssetRegistry, }; use primitives::{ network::PARALLEL_PREFIX, - paras, - tokens::{DOT, EUSDC, EUSDT, PARA, SDOT}, - AccountId, AuraId, Balance, BlockNumber, ChainId, CurrencyId, DataProviderId, EraIndex, Hash, - Index, Liquidity, Moment, PersistedValidationData, Price, Rate, Ratio, Shortfall, Signature, - DOT_U, + tokens::{DOT, EUSDC, EUSDT, PARA}, + AccountId, AuraId, Balance, BlockNumber, CurrencyId, Hash, Index, Signature, }; use runtime_common::constants::{currency, fee, time};