open-runtime-module-library icon indicating copy to clipboard operation
open-runtime-module-library copied to clipboard

error handling support to make transfer atomic

Open 0x8f701 opened this issue 4 years ago • 2 comments

since error handler & callback has been integrated into polkadot-v0.9.11 (xcm v2), we can try to use callback/error_handler to make the transfer atomic

0x8f701 avatar Aug 14 '21 06:08 0x8f701

some barriers will need to be opened and ResponseHandler needs also to be set to PolkadotXcm to make this work.

Ref: https://github.com/paritytech/polkadot/pull/4136#issuecomment-950262293

0x8f701 avatar Oct 24 '21 07:10 0x8f701

I didn't have a detailed idea for this yet. Maybe xTokens can inherit pallet-xcm and call report_outcome_notify before sending the xcm message?

0x8f701 avatar Oct 24 '21 07:10 0x8f701