mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 08:21:03 +00:00
Formatting
This commit is contained in:
@@ -4,7 +4,7 @@ use super::{
|
|||||||
};
|
};
|
||||||
use frame_support::{
|
use frame_support::{
|
||||||
match_types, parameter_types,
|
match_types, parameter_types,
|
||||||
traits::{Everything, Nothing, ConstU32},
|
traits::{ConstU32, Everything, Nothing},
|
||||||
weights::Weight,
|
weights::Weight,
|
||||||
};
|
};
|
||||||
use pallet_xcm::XcmPassthrough;
|
use pallet_xcm::XcmPassthrough;
|
||||||
|
|||||||
@@ -178,7 +178,8 @@ pub mod pallet {
|
|||||||
.into(),
|
.into(),
|
||||||
}]),
|
}]),
|
||||||
) {
|
) {
|
||||||
Ok((hash, cost)) => Self::deposit_event(Event::PongSent(para, seq, payload, hash, cost)),
|
Ok((hash, cost)) =>
|
||||||
|
Self::deposit_event(Event::PongSent(para, seq, payload, hash, cost)),
|
||||||
Err(e) => Self::deposit_event(Event::ErrorSendingPong(e, para, seq, payload)),
|
Err(e) => Self::deposit_event(Event::ErrorSendingPong(e, para, seq, payload)),
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));
|
include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));
|
||||||
|
|
||||||
use frame_support::traits::{Nothing, ConstU32};
|
use frame_support::traits::{ConstU32, Nothing};
|
||||||
use sp_api::impl_runtime_apis;
|
use sp_api::impl_runtime_apis;
|
||||||
use sp_core::OpaqueMetadata;
|
use sp_core::OpaqueMetadata;
|
||||||
use sp_runtime::{
|
use sp_runtime::{
|
||||||
@@ -62,8 +62,8 @@ use parachains_common::{
|
|||||||
AssetId,
|
AssetId,
|
||||||
};
|
};
|
||||||
use xcm_builder::{
|
use xcm_builder::{
|
||||||
AllowKnownQueryResponses, AllowSubscriptionsFrom, AsPrefixedGeneralIndex,
|
AllowKnownQueryResponses, AllowSubscriptionsFrom, AsPrefixedGeneralIndex, ConvertedConcreteId,
|
||||||
ConvertedConcreteId, FungiblesAdapter,
|
FungiblesAdapter,
|
||||||
};
|
};
|
||||||
use xcm_executor::traits::JustTry;
|
use xcm_executor::traits::JustTry;
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
use super::{AccountId, Call, Event, Origin, ParachainInfo, Runtime};
|
use super::{AccountId, Call, Event, Origin, ParachainInfo, Runtime};
|
||||||
use frame_support::{match_types, parameter_types, weights::Weight, traits::Nothing};
|
use frame_support::{match_types, parameter_types, traits::Nothing, weights::Weight};
|
||||||
use xcm::latest::prelude::*;
|
use xcm::latest::prelude::*;
|
||||||
use xcm_builder::{
|
use xcm_builder::{
|
||||||
AllowUnpaidExecutionFrom, FixedWeightBounds, LocationInverter, ParentAsSuperuser,
|
AllowUnpaidExecutionFrom, FixedWeightBounds, LocationInverter, ParentAsSuperuser,
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ use super::{
|
|||||||
};
|
};
|
||||||
use frame_support::{
|
use frame_support::{
|
||||||
match_types, parameter_types,
|
match_types, parameter_types,
|
||||||
traits::{Everything, Nothing, PalletInfoAccess, ConstU32},
|
traits::{ConstU32, Everything, Nothing, PalletInfoAccess},
|
||||||
weights::Weight,
|
weights::Weight,
|
||||||
};
|
};
|
||||||
use pallet_xcm::XcmPassthrough;
|
use pallet_xcm::XcmPassthrough;
|
||||||
@@ -29,8 +29,8 @@ use xcm::latest::prelude::*;
|
|||||||
use xcm_builder::{
|
use xcm_builder::{
|
||||||
AccountId32Aliases, AllowKnownQueryResponses, AllowSubscriptionsFrom,
|
AccountId32Aliases, AllowKnownQueryResponses, AllowSubscriptionsFrom,
|
||||||
AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, AsPrefixedGeneralIndex,
|
AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, AsPrefixedGeneralIndex,
|
||||||
ConvertedConcreteId, CurrencyAdapter, EnsureXcmOrigin, FixedWeightBounds,
|
ConvertedConcreteId, CurrencyAdapter, EnsureXcmOrigin, FixedWeightBounds, FungiblesAdapter,
|
||||||
FungiblesAdapter, IsConcrete, LocationInverter, NativeAsset, ParentAsSuperuser, ParentIsPreset,
|
IsConcrete, LocationInverter, NativeAsset, ParentAsSuperuser, ParentIsPreset,
|
||||||
RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia,
|
RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia,
|
||||||
SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit,
|
SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit,
|
||||||
UsingComponents,
|
UsingComponents,
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ use super::{
|
|||||||
};
|
};
|
||||||
use frame_support::{
|
use frame_support::{
|
||||||
match_types, parameter_types,
|
match_types, parameter_types,
|
||||||
traits::{Everything, Nothing, PalletInfoAccess, ConstU32},
|
traits::{ConstU32, Everything, Nothing, PalletInfoAccess},
|
||||||
weights::Weight,
|
weights::Weight,
|
||||||
};
|
};
|
||||||
use pallet_xcm::XcmPassthrough;
|
use pallet_xcm::XcmPassthrough;
|
||||||
@@ -29,8 +29,8 @@ use xcm::latest::prelude::*;
|
|||||||
use xcm_builder::{
|
use xcm_builder::{
|
||||||
AccountId32Aliases, AllowKnownQueryResponses, AllowSubscriptionsFrom,
|
AccountId32Aliases, AllowKnownQueryResponses, AllowSubscriptionsFrom,
|
||||||
AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, AsPrefixedGeneralIndex,
|
AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, AsPrefixedGeneralIndex,
|
||||||
ConvertedConcreteId, CurrencyAdapter, EnsureXcmOrigin, FixedWeightBounds,
|
ConvertedConcreteId, CurrencyAdapter, EnsureXcmOrigin, FixedWeightBounds, FungiblesAdapter,
|
||||||
FungiblesAdapter, IsConcrete, LocationInverter, NativeAsset, ParentAsSuperuser, ParentIsPreset,
|
IsConcrete, LocationInverter, NativeAsset, ParentAsSuperuser, ParentIsPreset,
|
||||||
RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia,
|
RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia,
|
||||||
SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit,
|
SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit,
|
||||||
UsingComponents,
|
UsingComponents,
|
||||||
@@ -212,7 +212,8 @@ impl pallet_xcm::Config for Runtime {
|
|||||||
type CurrencyMatcher = ();
|
type CurrencyMatcher = ();
|
||||||
type TrustedLockers = ();
|
type TrustedLockers = ();
|
||||||
type SovereignAccountOf = LocationToAccountId;
|
type SovereignAccountOf = LocationToAccountId;
|
||||||
type MaxLockers = ConstU32<8>;}
|
type MaxLockers = ConstU32<8>;
|
||||||
|
}
|
||||||
|
|
||||||
impl cumulus_pallet_xcm::Config for Runtime {
|
impl cumulus_pallet_xcm::Config for Runtime {
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
|
|||||||
@@ -29,8 +29,8 @@ use xcm::latest::prelude::*;
|
|||||||
use xcm_builder::{
|
use xcm_builder::{
|
||||||
AccountId32Aliases, AllowKnownQueryResponses, AllowSubscriptionsFrom,
|
AccountId32Aliases, AllowKnownQueryResponses, AllowSubscriptionsFrom,
|
||||||
AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, AsPrefixedGeneralIndex,
|
AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, AsPrefixedGeneralIndex,
|
||||||
ConvertedConcreteId, CurrencyAdapter, EnsureXcmOrigin, FixedWeightBounds,
|
ConvertedConcreteId, CurrencyAdapter, EnsureXcmOrigin, FixedWeightBounds, FungiblesAdapter,
|
||||||
FungiblesAdapter, IsConcrete, LocationInverter, NativeAsset, ParentAsSuperuser, ParentIsPreset,
|
IsConcrete, LocationInverter, NativeAsset, ParentAsSuperuser, ParentIsPreset,
|
||||||
RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia,
|
RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia,
|
||||||
SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit,
|
SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit,
|
||||||
UsingComponents,
|
UsingComponents,
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
use codec::Encode;
|
use codec::Encode;
|
||||||
use cumulus_primitives_core::{MessageSendError, UpwardMessageSender};
|
use cumulus_primitives_core::{MessageSendError, UpwardMessageSender};
|
||||||
use sp_std::{prelude::*, marker::PhantomData};
|
use sp_std::{marker::PhantomData, prelude::*};
|
||||||
use xcm::{latest::prelude::*, WrapVersion};
|
use xcm::{latest::prelude::*, WrapVersion};
|
||||||
|
|
||||||
/// Xcm router which recognises the `Parent` destination and handles it by sending the message into
|
/// Xcm router which recognises the `Parent` destination and handles it by sending the message into
|
||||||
|
|||||||
Reference in New Issue
Block a user