Skip to content
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

Remove callbacks from the messages pallet #1649

Merged
merged 3 commits into from
Nov 18, 2022

Conversation

svyatonik
Copy link
Contributor

@svyatonik svyatonik commented Nov 18, 2022

part of #1647

Why we are removing callbacks: in our previous vision the messaging pallet was the central pallet, which has been used by end-users and other pallets to build their own apps (e.g. our dead token swap pallet). So callbacks were used to tie pallets together. In current version, messaging pallet is just a transport for the XCM messages, sent by other pallets. Those pallets should have their own callbacks when required + XCM has the QueryPallet instruction to send messages back to the sender (which can be used as a replacement for the OnMessageDelivered callback).

@svyatonik svyatonik added PR-audit-needed A PR has to be audited before going live. PR-breaksruntime A PR that is going to break runtime bridge compatibility. We need to be careful with upgrade. labels Nov 18, 2022
@svyatonik svyatonik merged commit c0c0c7d into master Nov 18, 2022
@svyatonik svyatonik deleted the remove-callbacks-from-send-message branch November 18, 2022 13:15
jiguantong pushed a commit to darwinia-network/darwinia-messages-substrate that referenced this pull request Apr 18, 2023
serban300 pushed a commit to serban300/parity-bridges-common that referenced this pull request Mar 27, 2024
serban300 pushed a commit to serban300/parity-bridges-common that referenced this pull request Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-audit-needed A PR has to be audited before going live. PR-breaksruntime A PR that is going to break runtime bridge compatibility. We need to be careful with upgrade.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants