mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 04:01:02 +00:00
Restructure dispatch macro related exports (#1162)
* restructure dispatch macro related exports * moved Dispatchable to lib.rs * fix .gitignore final newline * ".git/.scripts/commands/fmt/fmt.sh" * fix rustdocs * wip --------- Co-authored-by: Liam Aharon <liam.aharon@hotmail.com> Co-authored-by: command-bot <> Co-authored-by: ordian <write@reusable.software>
This commit is contained in:
@@ -24,10 +24,8 @@ mod mock;
|
||||
#[frame_support::pallet]
|
||||
pub mod pallet {
|
||||
use frame_benchmarking::BenchmarkError;
|
||||
use frame_support::{
|
||||
dispatch::{Dispatchable, GetDispatchInfo},
|
||||
pallet_prelude::Encode,
|
||||
};
|
||||
use frame_support::{dispatch::GetDispatchInfo, pallet_prelude::Encode};
|
||||
use sp_runtime::traits::Dispatchable;
|
||||
use xcm::latest::{
|
||||
InteriorMultiLocation, Junction, MultiAsset, MultiAssets, MultiLocation, NetworkId,
|
||||
Response,
|
||||
|
||||
@@ -34,7 +34,8 @@ use frame_support::traits::{
|
||||
use scale_info::TypeInfo;
|
||||
use sp_runtime::{
|
||||
traits::{
|
||||
AccountIdConversion, BadOrigin, BlakeTwo256, BlockNumberProvider, Hash, Saturating, Zero,
|
||||
AccountIdConversion, BadOrigin, BlakeTwo256, BlockNumberProvider, Dispatchable, Hash,
|
||||
Saturating, Zero,
|
||||
},
|
||||
RuntimeDebug,
|
||||
};
|
||||
@@ -43,10 +44,7 @@ use xcm::{latest::QueryResponseInfo, prelude::*};
|
||||
use xcm_executor::traits::{ConvertOrigin, Properties};
|
||||
|
||||
use frame_support::{
|
||||
dispatch::{Dispatchable, GetDispatchInfo},
|
||||
pallet_prelude::*,
|
||||
traits::WithdrawReasons,
|
||||
PalletId,
|
||||
dispatch::GetDispatchInfo, pallet_prelude::*, traits::WithdrawReasons, PalletId,
|
||||
};
|
||||
use frame_system::pallet_prelude::*;
|
||||
pub use pallet::*;
|
||||
@@ -149,11 +147,12 @@ impl WeightInfo for TestWeightInfo {
|
||||
pub mod pallet {
|
||||
use super::*;
|
||||
use frame_support::{
|
||||
dispatch::{Dispatchable, GetDispatchInfo, PostDispatchInfo},
|
||||
dispatch::{GetDispatchInfo, PostDispatchInfo},
|
||||
parameter_types,
|
||||
};
|
||||
use frame_system::Config as SysConfig;
|
||||
use sp_core::H256;
|
||||
use sp_runtime::traits::Dispatchable;
|
||||
use xcm_executor::traits::{MatchesFungible, WeightBounds};
|
||||
|
||||
parameter_types! {
|
||||
|
||||
@@ -28,11 +28,10 @@ pub use crate::{
|
||||
use frame_support::traits::{ContainsPair, Everything};
|
||||
pub use frame_support::{
|
||||
dispatch::{
|
||||
DispatchError, DispatchInfo, DispatchResultWithPostInfo, Dispatchable, GetDispatchInfo,
|
||||
Parameter, PostDispatchInfo,
|
||||
DispatchInfo, DispatchResultWithPostInfo, GetDispatchInfo, Parameter, PostDispatchInfo,
|
||||
},
|
||||
ensure, match_types, parameter_types,
|
||||
sp_runtime::DispatchErrorWithPostInfo,
|
||||
sp_runtime::{traits::Dispatchable, DispatchError, DispatchErrorWithPostInfo},
|
||||
traits::{ConstU32, Contains, Get, IsInVec},
|
||||
};
|
||||
pub use parity_scale_codec::{Decode, Encode};
|
||||
|
||||
@@ -20,9 +20,10 @@ use crate::traits::{
|
||||
WeightTrader,
|
||||
};
|
||||
use frame_support::{
|
||||
dispatch::{Dispatchable, GetDispatchInfo, Parameter, PostDispatchInfo},
|
||||
dispatch::{GetDispatchInfo, Parameter, PostDispatchInfo},
|
||||
traits::{Contains, ContainsPair, Get, PalletsInfoAccess},
|
||||
};
|
||||
use sp_runtime::traits::Dispatchable;
|
||||
use xcm::prelude::*;
|
||||
|
||||
/// The trait to parameterize the `XcmExecutor`.
|
||||
|
||||
@@ -16,12 +16,10 @@
|
||||
|
||||
use crate::Xcm;
|
||||
use core::result;
|
||||
use frame_support::{
|
||||
dispatch::fmt::Debug,
|
||||
pallet_prelude::{Get, TypeInfo},
|
||||
};
|
||||
use frame_support::pallet_prelude::{Get, TypeInfo};
|
||||
use parity_scale_codec::{FullCodec, MaxEncodedLen};
|
||||
use sp_arithmetic::traits::Zero;
|
||||
use sp_std::fmt::Debug;
|
||||
use xcm::latest::{
|
||||
Error as XcmError, InteriorMultiLocation, MultiLocation, QueryId, Response,
|
||||
Result as XcmResult, Weight, XcmContext,
|
||||
|
||||
Reference in New Issue
Block a user