Skip to content

Commit

Permalink
cargo fix -p kerria-runtime --allow-dirty
Browse files Browse the repository at this point in the history
  • Loading branch information
mclyk committed Sep 17, 2023
1 parent a1ab78d commit 8b65fde
Showing 1 changed file with 16 additions and 30 deletions.
46 changes: 16 additions & 30 deletions runtime/kerria/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,56 +16,48 @@
// `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::{
BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_REF_TIME_PER_SECOND,
},
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")]
Expand Down Expand Up @@ -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};
Expand Down

0 comments on commit 8b65fde

Please sign in to comment.