This repository was archived by the owner on Nov 15, 2023. It is now read-only.
XCM: Location Conversion for AccountKey20#2576
Merged
shawntabrizi merged 1 commit intoparitytech:masterfrom Mar 7, 2021
Merged
XCM: Location Conversion for AccountKey20#2576shawntabrizi merged 1 commit intoparitytech:masterfrom
shawntabrizi merged 1 commit intoparitytech:masterfrom
Conversation
shawntabrizi
approved these changes
Mar 7, 2021
ordian
added a commit
that referenced
this pull request
Mar 9, 2021
* master: Make Substrate deps uniform (#2589) Mostly, let guide reflect #2579 (#2583) add accountkey20 conversion impls (#2576) Substrate companion #8275 (#2575) Make warning nicer (#2569) Print an error if a collator connects to a node without real-overseer (#2563) add log message when real-overseer is enabled (#2565) Jaeger spans for availability distribution (#2559) Fix links in docs. (#2556) bump spec versions in kusama, polkadot and westend again (#2557) Guide update for availability distribution. (#2554) Whole subsystem test for new availability-distribution (#2552) Companion for `ExecuteBlock` changes in Substrate (#2548) Initialize telemetry earlier (#2549)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Most substrate chains use
Junction::AccountId32when referring to their native account id type as a MultiLocation soAccountId32AliasesandSignedAccount32AsNativeare the relevant types to construct theLocationConverter(object that implementstrait LocationConversion<AccountId>).Moonbeam (and any other chains that set
system::AccountId: H160) useJunction::AccountKey20when referring to their native account id type as a MultiLocation. This requires a different implementation forAccountIdAliasesandSignedAccountAsNative, but the only difference is that theAccountIdtrait bounds use[u8; 20]instead of[u8; 32].Let me know if there are any other types that Moonbeam must add to ensure messages sent to the chain form the local account id as
[u8; 20]. These types are already included in this PR with Moonbeam's XCMP pallets.