Skip to content

Commit

Permalink
feat: align account derivation ecosystem (#2664)
Browse files Browse the repository at this point in the history
  • Loading branch information
mustermeiszer authored Dec 7, 2023
1 parent c937980 commit 13b831d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions runtime/common/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ use polkadot_parachain_primitives::primitives::Sibling;
use xcm::latest::prelude::*;
use xcm_builder::{
AccountId32Aliases, AllowKnownQueryResponses, AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom,
ParentIsPreset, RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia,
SignedAccountId32AsNative, SovereignSignedViaLocation, TakeRevenue, TakeWeightCredit, TrailingSetTopicAsId,
WithComputedOrigin,
DescribeAllTerminal, DescribeFamily, HashedDescription, ParentIsPreset, RelayChainAsNative,
SiblingParachainAsNative, SiblingParachainConvertsVia, SignedAccountId32AsNative, SovereignSignedViaLocation,
TakeRevenue, TakeWeightCredit, TrailingSetTopicAsId, WithComputedOrigin,
};

/// Type for specifying how a `MultiLocation` can be converted into an `AccountId`. This is used
Expand All @@ -44,6 +44,8 @@ pub type LocationToAccountId<RelayNetwork, EvmAddressMapping> = (
AccountId32Aliases<RelayNetwork, AccountId>,
// Convert `AccountKey20` to `AccountId`
AccountKey20Aliases<RelayNetwork, AccountId, EvmAddressMapping>,
// Generate remote accounts according to polkadot standards
HashedDescription<AccountId, DescribeFamily<DescribeAllTerminal>>,
);

/// This is the type we use to convert an (incoming) XCM origin into a local `RuntimeOrigin`
Expand Down

0 comments on commit 13b831d

Please sign in to comment.