-
Notifications
You must be signed in to change notification settings - Fork 783
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
[AHs] Support registering assets on Asset Hubs over bridge #5435
[AHs] Support registering assets on Asset Hubs over bridge #5435
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
…ster-assets-over-bridge
impl<AssetsAllowedNetworks: Contains<Location>, OriginLocation: Get<Location>> | ||
ContainsPair<Asset, Location> for RemoteAssetFromLocation<AssetsAllowedNetworks, OriginLocation> | ||
impl< | ||
L: TryInto<Location> + Clone, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe xcm::TryAs
would also work here:
L: TryInto<Location> + Clone, | |
L: TryAs<Location>, |
so we don't need to clone anything here:
let Ok(asset) = asset.try_as() else {
return false;
};
let Ok(origin) = origin.try_as() else {
return false;
};
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the trait TryAs<cumulus_primitives_core::Location>
is not implemented for cumulus_primitives_core::Location
, which is required by `RemoteAssetFromLocation<AssetsAllowedNetworks, OriginLocation>: ContainsPair<cumulus_primitives_core::Location, cumulus_primitives_core::Location>
although it should work...
9714796
Created backport PR for
Please cherry-pick the changes locally and resolve any conflicts. git fetch origin backport-5435-to-stable2407
git worktree add --checkout .worktree/backport-5435-to-stable2407 backport-5435-to-stable2407
cd .worktree/backport-5435-to-stable2407
git reset --hard HEAD^
git cherry-pick -x 9714796ba9544f98c0361be466b9d993056aad50
git push --force-with-lease |
## Changes Allows one Asset Hub on one side, to register assets on the other Asset Hub over the bridge. Rococo <> Ethereum test bridge will be dropped in favor of Westend <> Ethereum test bridge. This PR also changes emulated tests to simulate double bridging from Ethereum<>Westend<>Rococo. ## Tests - [x] e2e test: Westend Asset Hub can register Westend and Ethereum assets on Asset Hub Rococo - [x] e2e test: Rococo Asset Hub can register Rococo assets on Asset Hub Westend - [x] e2e test (existing): Users on Ethereum can register Ethereum assets on Asset Hub Westend - [x] e2e test: transfer Rococo assets from Rococo to Westend and back - [x] e2e test: transfer Westend assets from Westend to Rococo and back - [x] e2e test: transfer Ethereum assets (bridged in through Snowbridge) from Westend to Rococo and back (cherry picked from commit 9714796)
Successfully created backport PR for |
Changes
Allows one Asset Hub on one side, to register assets on the other Asset Hub over the bridge.
Rococo <> Ethereum test bridge will be dropped in favor of Westend <> Ethereum test bridge. This PR also changes emulated tests to simulate double bridging from Ethereum<>Westend<>Rococo.
Tests