Skip to content

[stable2603] Backport #10384#11327

Closed
paritytech-release-backport-bot[bot] wants to merge 4 commits intostable2603from
backport-10384-to-stable2603
Closed

[stable2603] Backport #10384#11327
paritytech-release-backport-bot[bot] wants to merge 4 commits intostable2603from
backport-10384-to-stable2603

Conversation

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

Backport #10384 into stable2603 from acatangiu.

See the documentation on how to use this bot.

…perations (#10384)

Introduce "ImbalanceAccounting" traits for dynamic dispatch management
of imbalances. These are helper traits to be used for generic Imbalance,
helpful for tracking multiple concrete types of `Imbalance` using
dynamic dispatch of these traits.

`xcm-executor` now tracks imbalances in holding.

Change the xcm executor implementation and inner types and adapters so
that it keeps track of imbalances across the stack.

Previously, XCM operations on fungible assets would break the respective
fungibles' total issuance invariants by burning and minting them in
different stages of XCM processing pipeline.

This commit fixes that by keeping track of the "withdrawn" or
"deposited" fungible assets in holding and other XCM registers as
imbalances. The imbalances are tied to the underlying pallet managing
the asset so that they keep the assets' total issuance correctness
throughout the execution of the XCM program.

Imbalances in XCM registers are resolved by the underlying pallets
managing them whenever they move from XCM registers to other parts of
the stack (e.g. deposited to accounts, burned, etc).

XCM emulated tests now also verify total issuance before/after
transfers, swaps, traps, claims, etc to guarantee implementation
correctness.

---------

Signed-off-by: Adrian Catangiu <adrian@parity.io>
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Daniel Shiposha <dev@shiposha.com>
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: 0xRVE <robertvaneerdewijk@gmail.com>
Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: Sebastian Kunert <skunert49@gmail.com>
Co-authored-by: Paolo La Camera <paolo@parity.io>
Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com>
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com>
Co-authored-by: Manuel Mauro <manuel.mauro@protonmail.com>
Co-authored-by: Alexandre R. Baldé <alexandre.balde@parity.io>
Co-authored-by: Omar <OmarAbdulla7@hotmail.com>
Co-authored-by: BDevParity <bruno.devic@parity.io>
Co-authored-by: Egor_P <egor@parity.io>
Co-authored-by: Andrei Eres <eresav@me.com>
Co-authored-by: Klapeyron <11329616+Klapeyron@users.noreply.github.com>
Co-authored-by: Alexander Theißen <alex.theissen@me.com>
Co-authored-by: Alexandru Gheorghe <49718502+alexggh@users.noreply.github.com>
Co-authored-by: Xavier Lau <x@acg.box>
Co-authored-by: Dónal Murray <donal.murray@parity.io>
(cherry picked from commit 1323611)
@github-actions github-actions Bot added the A3-backport Pull request is already reviewed well in another branch. label Mar 10, 2026
@github-actions github-actions Bot requested a review from acatangiu March 10, 2026 10:58
@paritytech-review-bot paritytech-review-bot Bot requested a review from a team March 10, 2026 10:59
@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.

@EgorPopelyaev EgorPopelyaev enabled auto-merge (squash) March 11, 2026 09:59
@franciscoaguirre
Copy link
Copy Markdown
Contributor

@EgorPopelyaev CI keeps on failing because of semver?

auto-merge was automatically disabled March 17, 2026 17:01

Pull request was closed

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.

4 participants