Skip to content

feat: align derivation accross ecosystem #2664

Merged
xlc merged 1 commit intoAcalaNetwork:masterfrom
centrifuge:feat/xcm-ecosystem-account-derivation
Dec 7, 2023
Merged

feat: align derivation accross ecosystem #2664
xlc merged 1 commit intoAcalaNetwork:masterfrom
centrifuge:feat/xcm-ecosystem-account-derivation

Conversation

@mustermeiszer
Copy link
Copy Markdown
Contributor

@mustermeiszer mustermeiszer commented Dec 6, 2023

Description

Currently, there is no common ecosystem wide approach to derive accounts from xcm-origins. This PR adds a converter both used by

The converter was introduced by Gavin Wood in order to create a general purpose conversion. The idea behind this converter is that a user User1 from ChainA has the ability to have a unique account on any other chain in the ecosystem. This so called remote account can only be controlled from User1 from ChainA.

Motivation and Context

Allows to have remote accounts on Acala for all purposes a native account could be used. Especially useful for when we do not want to deteriorate UX by switching networks in the UI.

How Has This Been Tested?

In production at Centrifuge and Moonbeam for quite some time.

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c937980) 67.53% compared to head (a68b44d) 67.55%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2664      +/-   ##
==========================================
+ Coverage   67.53%   67.55%   +0.02%     
==========================================
  Files          69       71       +2     
  Lines        8430     8713     +283     
==========================================
+ Hits         5693     5886     +193     
- Misses       2737     2827      +90     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xlc xlc merged commit 13b831d into AcalaNetwork:master Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants