open-runtime-module-library
open-runtime-module-library copied to clipboard
error handling support to make transfer atomic
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
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
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?