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

[XCM in SCs] Extend pallet_revive to support query creation and response retrieval #7735

Open
Tracked by #6775
tiagobndr opened this issue Feb 26, 2025 · 0 comments
Open
Tracked by #6775
Assignees
Labels
T6-XCM This PR/Issue is related to XCM. T7-smart_contracts This PR/Issue is related to smart contracts.

Comments

@tiagobndr
Copy link

This issue is related to #6775

We should add new_query - which stores a new query in pallet‑xcm’s Queries map - and take_response (or xcm_receive) to pallet_revive in order to support these features for smart contracts. Initially, these could be implemented as unstable APIs, but they should eventually be integrated into the XCM precompile (along with other features like xcm_execute and xcm_send).

One nuance is that new_query should require a storage deposit to retain the entry in the Queries map. For take_response, the idea is to poll for a response corresponding to a previously created query. If the query is still pending, the user should be informed. Otherwise, the user would receive the response, the callback function (if any) would be executed and the storage deposit would be returned.

@tiagobndr tiagobndr self-assigned this Feb 26, 2025
@github-actions github-actions bot added the I10-unconfirmed Issue might be valid, but it's not yet known. label Feb 26, 2025
@tiagobndr tiagobndr added T6-XCM This PR/Issue is related to XCM. T7-smart_contracts This PR/Issue is related to smart contracts. and removed I10-unconfirmed Issue might be valid, but it's not yet known. labels Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T6-XCM This PR/Issue is related to XCM. T7-smart_contracts This PR/Issue is related to smart contracts.
Projects
None yet
Development

No branches or pull requests

1 participant