Skip to content

[stable2506] Backport #9195#9405

Merged
acatangiu merged 1 commit intostable2506from
backport-9195-to-stable2506
Jul 31, 2025
Merged

[stable2506] Backport #9195#9405
acatangiu merged 1 commit intostable2506from
backport-9195-to-stable2506

Conversation

@paritytech-release-backport-bot
Copy link
Copy Markdown

Backport #9195 into stable2506 from karolk91.

See the documentation on how to use this bot.

Relates to: #9093
Requires: #9179

This PR introduces emulated test scenarios:

#### [Scenario 1]
(Penpal -> AH -> Penpal) to showcase usage of remote `Transact` to swap
assets remotely on AssetHub while also making use of
`add_authorized_alias`, to transact as Sender on remote side (instead of
Senders sovereign account).

1. Prepare sovereign accounts funds, create pools, prepare aliasing
rules
2. Send WND from Penpal to AssetHub (AH being remote reserve for WND)
3. Alias into sender account and exchange WNDs for USDT using `Transact`
with `swap_tokens_for_exact_tokens` call inside
4. Send USDT and leftover WND back to Penpal

#### [Scenario 2]
(Penpal -> AH -> Penpal) to showcase usage of remote `Transact` to swap
assets remotely on AssetHub.

1. Prepare sovereign accounts funds, create pools, prepare aliasing
rules
2. Send WND from Penpal to AssetHub (AH being remote reserve for WND)
3. Exchange WNDs for USDT using `Transact` with
`swap_tokens_for_exact_tokens` call inside
4. Send USDT and leftover WND back to Penpal

#### [Scenario 3]
(Penpal -> AH -> Penpal) to showcase same as above but this time using
`ExchangeAsset` XCM instruction instead of `Transact`:

1. Prepare sovereign accounts funds, create pools
2. Send WND from Penpal to AssetHub (AH being remote reserve for WND)
3. Exchange WNDs for USDT using `ExchangeAsset`
4. Send USDT and leftover WND back to Penpal

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Adrian Catangiu <adrian@parity.io>
(cherry picked from commit d9f451a)
@paritytech-release-backport-bot paritytech-release-backport-bot bot requested a review from a team as a code owner July 31, 2025 11:32
@github-actions github-actions bot added the A3-backport Pull request is already reviewed well in another branch. label Jul 31, 2025
@github-actions github-actions bot requested a review from karolk91 July 31, 2025 11:32
@github-actions
Copy link
Copy Markdown
Contributor

This pull request is amending an existing release. Please proceed with extreme caution,
as to not impact downstream teams that rely on the stability of it. Some things to consider:

  • Backports are only for 'patch' or 'minor' changes. No 'major' or other breaking change.
  • Should be a legit fix for some bug, not adding tons of new features.
  • Must either be already audited or not need an audit.
Emergency Bypass

If you really need to bypass this check: add validate: false to each crate
in the Prdoc where a breaking change is introduced. This will release a new major
version of that crate and all its reverse dependencies and basically break the release.

@acatangiu acatangiu merged commit c55944d into stable2506 Jul 31, 2025
246 of 247 checks passed
@acatangiu acatangiu deleted the backport-9195-to-stable2506 branch July 31, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A3-backport Pull request is already reviewed well in another branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants