[XCM in SCs] Extend pallet_revive
to support query creation and response retrieval
#7735
Labels
T6-XCM
This PR/Issue is related to XCM.
T7-smart_contracts
This PR/Issue is related to smart contracts.
We should add
new_query
- which stores a new query inpallet‑xcm
’sQueries
map - andtake_response
(orxcm_receive
) topallet_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 likexcm_execute
andxcm_send
).One nuance is that
new_query
should require a storage deposit to retain the entry in theQueries
map. Fortake_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.The text was updated successfully, but these errors were encountered: