mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 18:41:03 +00:00
Companion for paritytech/substrate#12219 (#5987)
* Companion for paritytech/substrate#12219 * Fixes * update lockfile for {"substrate"} * Fixes * cargo fmt Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -7,7 +7,10 @@ mod mock;
|
||||
#[frame_support::pallet]
|
||||
pub mod pallet {
|
||||
use frame_benchmarking::BenchmarkError;
|
||||
use frame_support::{dispatch::Dispatchable, pallet_prelude::Encode, weights::GetDispatchInfo};
|
||||
use frame_support::{
|
||||
dispatch::{Dispatchable, GetDispatchInfo},
|
||||
pallet_prelude::Encode,
|
||||
};
|
||||
use xcm::latest::{MultiAssets, MultiLocation, Response};
|
||||
|
||||
#[pallet::config]
|
||||
|
||||
@@ -20,11 +20,13 @@ pub use crate::{
|
||||
FixedRateOfFungible, FixedWeightBounds, LocationInverter, TakeWeightCredit,
|
||||
};
|
||||
pub use frame_support::{
|
||||
dispatch::{DispatchError, DispatchInfo, DispatchResultWithPostInfo, Dispatchable, Parameter},
|
||||
dispatch::{
|
||||
DispatchError, DispatchInfo, DispatchResultWithPostInfo, Dispatchable, GetDispatchInfo,
|
||||
Parameter, PostDispatchInfo,
|
||||
},
|
||||
ensure, parameter_types,
|
||||
sp_runtime::DispatchErrorWithPostInfo,
|
||||
traits::{Contains, Get, IsInVec},
|
||||
weights::{GetDispatchInfo, PostDispatchInfo},
|
||||
};
|
||||
pub use parity_scale_codec::{Decode, Encode};
|
||||
pub use sp_std::{
|
||||
|
||||
@@ -15,8 +15,9 @@
|
||||
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use frame_support::{
|
||||
dispatch::GetDispatchInfo,
|
||||
traits::{tokens::currency::Currency as CurrencyT, Get, OnUnbalanced as OnUnbalancedT},
|
||||
weights::{constants::WEIGHT_PER_SECOND, GetDispatchInfo, WeightToFee as WeightToFeeT},
|
||||
weights::{constants::WEIGHT_PER_SECOND, WeightToFee as WeightToFeeT},
|
||||
};
|
||||
use parity_scale_codec::Decode;
|
||||
use sp_runtime::traits::{SaturatedConversion, Saturating, Zero};
|
||||
|
||||
@@ -18,10 +18,7 @@ use crate::traits::{
|
||||
ClaimAssets, ConvertOrigin, DropAssets, FilterAssetLocation, InvertLocation, OnResponse,
|
||||
ShouldExecute, TransactAsset, VersionChangeNotifier, WeightBounds, WeightTrader,
|
||||
};
|
||||
use frame_support::{
|
||||
dispatch::{Dispatchable, Parameter},
|
||||
weights::{GetDispatchInfo, PostDispatchInfo},
|
||||
};
|
||||
use frame_support::dispatch::{Dispatchable, GetDispatchInfo, Parameter, PostDispatchInfo};
|
||||
use xcm::latest::SendXcm;
|
||||
|
||||
/// The trait to parameterize the `XcmExecutor`.
|
||||
|
||||
@@ -16,7 +16,10 @@
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
use frame_support::{dispatch::Dispatchable, ensure, weights::GetDispatchInfo};
|
||||
use frame_support::{
|
||||
dispatch::{Dispatchable, GetDispatchInfo},
|
||||
ensure,
|
||||
};
|
||||
use sp_runtime::traits::Saturating;
|
||||
use sp_std::{marker::PhantomData, prelude::*};
|
||||
use xcm::latest::{
|
||||
|
||||
Reference in New Issue
Block a user