mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 04:41:04 +00:00
DescribeAllTerminal for HashedDescription (#3349)
Make Rococo & Westend XCM's location converter `HashedDescription` more in line with Polkadot/Kusama runtimes. Co-authored-by: Muharem <ismailov.m.h@gmail.com>
This commit is contained in:
@@ -39,7 +39,7 @@ use xcm::latest::prelude::*;
|
|||||||
use xcm_builder::{
|
use xcm_builder::{
|
||||||
AccountId32Aliases, AllowExplicitUnpaidExecutionFrom, AllowKnownQueryResponses,
|
AccountId32Aliases, AllowExplicitUnpaidExecutionFrom, AllowKnownQueryResponses,
|
||||||
AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom, ChildParachainAsNative,
|
AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom, ChildParachainAsNative,
|
||||||
ChildParachainConvertsVia, DescribeBodyTerminal, DescribeFamily, FixedWeightBounds,
|
ChildParachainConvertsVia, DescribeAllTerminal, DescribeFamily, FixedWeightBounds,
|
||||||
FrameTransactionalProcessor, FungibleAdapter, HashedDescription, IsChildSystemParachain,
|
FrameTransactionalProcessor, FungibleAdapter, HashedDescription, IsChildSystemParachain,
|
||||||
IsConcrete, MintLocation, OriginToPluralityVoice, SignedAccountId32AsNative,
|
IsConcrete, MintLocation, OriginToPluralityVoice, SignedAccountId32AsNative,
|
||||||
SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit, TrailingSetTopicAsId,
|
SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit, TrailingSetTopicAsId,
|
||||||
@@ -63,8 +63,8 @@ pub type LocationConverter = (
|
|||||||
ChildParachainConvertsVia<ParaId, AccountId>,
|
ChildParachainConvertsVia<ParaId, AccountId>,
|
||||||
// We can directly alias an `AccountId32` into a local account.
|
// We can directly alias an `AccountId32` into a local account.
|
||||||
AccountId32Aliases<ThisNetwork, AccountId>,
|
AccountId32Aliases<ThisNetwork, AccountId>,
|
||||||
// Allow governance body to be used as a sovereign account.
|
// Foreign locations alias into accounts according to a hash of their standard description.
|
||||||
HashedDescription<AccountId, DescribeFamily<DescribeBodyTerminal>>,
|
HashedDescription<AccountId, DescribeFamily<DescribeAllTerminal>>,
|
||||||
);
|
);
|
||||||
|
|
||||||
/// Our asset transactor. This is what allows us to interest with the runtime facilities from the
|
/// Our asset transactor. This is what allows us to interest with the runtime facilities from the
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ use xcm::latest::prelude::*;
|
|||||||
use xcm_builder::{
|
use xcm_builder::{
|
||||||
AccountId32Aliases, AllowExplicitUnpaidExecutionFrom, AllowKnownQueryResponses,
|
AccountId32Aliases, AllowExplicitUnpaidExecutionFrom, AllowKnownQueryResponses,
|
||||||
AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom, ChildParachainAsNative,
|
AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom, ChildParachainAsNative,
|
||||||
ChildParachainConvertsVia, DescribeBodyTerminal, DescribeFamily, FrameTransactionalProcessor,
|
ChildParachainConvertsVia, DescribeAllTerminal, DescribeFamily, FrameTransactionalProcessor,
|
||||||
FungibleAdapter, HashedDescription, IsConcrete, MintLocation, OriginToPluralityVoice,
|
FungibleAdapter, HashedDescription, IsConcrete, MintLocation, OriginToPluralityVoice,
|
||||||
SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit,
|
SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit,
|
||||||
TrailingSetTopicAsId, UsingComponents, WeightInfoBounds, WithComputedOrigin, WithUniqueTopic,
|
TrailingSetTopicAsId, UsingComponents, WeightInfoBounds, WithComputedOrigin, WithUniqueTopic,
|
||||||
@@ -67,8 +67,8 @@ pub type LocationConverter = (
|
|||||||
ChildParachainConvertsVia<ParaId, AccountId>,
|
ChildParachainConvertsVia<ParaId, AccountId>,
|
||||||
// We can directly alias an `AccountId32` into a local account.
|
// We can directly alias an `AccountId32` into a local account.
|
||||||
AccountId32Aliases<ThisNetwork, AccountId>,
|
AccountId32Aliases<ThisNetwork, AccountId>,
|
||||||
// Allow governance body to be used as a sovereign account.
|
// Foreign locations alias into accounts according to a hash of their standard description.
|
||||||
HashedDescription<AccountId, DescribeFamily<DescribeBodyTerminal>>,
|
HashedDescription<AccountId, DescribeFamily<DescribeAllTerminal>>,
|
||||||
);
|
);
|
||||||
|
|
||||||
pub type LocalAssetTransactor = FungibleAdapter<
|
pub type LocalAssetTransactor = FungibleAdapter<
|
||||||
|
|||||||
Reference in New Issue
Block a user