Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added foreign locations to local accounts converter to all the parachains #5765

Merged
merged 38 commits into from
Oct 2, 2024

Conversation

x3c41a
Copy link
Contributor

@x3c41a x3c41a commented Sep 19, 2024

Added HashedDescription<AccountId, DescribeFamily<DescribeAllTerminal>> foreign locations to local accounts converter to all the parachains.

prdoc/pr_5765.prdoc Outdated Show resolved Hide resolved
prdoc/pr_5765.prdoc Outdated Show resolved Hide resolved
prdoc/pr_5765.prdoc Show resolved Hide resolved
Copy link
Contributor

@acatangiu acatangiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Request changes

Do not remove existing converters to maintain backwards compatibility (see following comments)

Testing

For each chain/runtime, please add unit tests (faster/easier than emulated tests) that cover the newly supported conversions.

E.g. you can add new test for asset-hub-westend here, then run it with cargo test -r -p asset-hub-westend-runtime. Do the same for other runtimes too.

In terms of how to test, very easy way is using LocationToAccountHelper::convert_location()` and pass it locations that use to fail conversion, but with your change now succeed.

You can see an example of how to call LocationToAccountHelper here.

@bkontur
Copy link
Contributor

bkontur commented Sep 19, 2024

bot fmt

@paritytech paritytech deleted a comment from command-bot bot Sep 19, 2024
@paritytech paritytech deleted a comment from command-bot bot Sep 19, 2024
@x3c41a
Copy link
Contributor Author

x3c41a commented Sep 20, 2024

Request changes

Do not remove existing converters to maintain backwards compatibility (see following comments)

Testing

For each chain/runtime, please add unit tests (faster/easier than emulated tests) that cover the newly supported conversions.

E.g. you can add new test for asset-hub-westend here, then run it with cargo test -r -p asset-hub-westend-runtime. Do the same for other runtimes too.

In terms of how to test, very easy way is using LocationToAccountHelper::convert_location()` and pass it locations that use to fail conversion, but with your change now succeed.

You can see an example of how to call LocationToAccountHelper here.

Added the tests. Additionally removed my change and made sure that the tests fail.

@x3c41a x3c41a added A0-needs_burnin Pull request needs to be tested on a live validator node before merge. DevOps is notified via matrix T6-XCM This PR/Issue is related to XCM. and removed A0-needs_burnin Pull request needs to be tested on a live validator node before merge. DevOps is notified via matrix labels Sep 20, 2024
@acatangiu
Copy link
Contributor

bot clean

@command-bot command-bot bot deleted a comment from github-actions bot Sep 27, 2024
Copy link

Review required! Latest push from author must always be reviewed

@x3c41a x3c41a disabled auto-merge October 1, 2024 11:45
@x3c41a x3c41a enabled auto-merge October 1, 2024 16:13
@x3c41a x3c41a added this pull request to the merge queue Oct 2, 2024
Merged via the queue into master with commit 722b028 Oct 2, 2024
217 of 218 checks passed
@x3c41a x3c41a deleted the location-converter branch October 2, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T6-XCM This PR/Issue is related to XCM.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants