-
Notifications
You must be signed in to change notification settings - Fork 43
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
Discoverability and versioning for transacting #22
base: master
Are you sure you want to change the base?
Conversation
Should we have a |
Maybe also add another Query to get the state root of the remote parachain, so that we can verify any storage item at a certain block height locally. |
@xlc I just did some test to invoke transact xcm and face the same challenge you mentioned here Is there any progress for this issue or what is the safe way to invoke relay chain callable function from parachain side? |
This does not discuss how to get information on the execution of a regular XCM. (e.g. |
The contents of this PR has nothing to do with regular XCM. |
|
||
Query the existence of a particular pallet type. | ||
|
||
- `name: Vec<u8>`: The name of the pallet to query. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this is not bounded vector?
- `query_id: QueryId`: The value to make the returned message identifiable with this query. | ||
- `max_response_weight: Weight`: The value to be used for the `max_weight` field of the `QueryResponse` message. | ||
|
||
Sends a `QueryResponse` to Origin whose data field `PalletsInfo` containing the information of all pallets on the local chain whose name is equal to `name`. This is empty in the case that the local chain is not based on Substrate Frame. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is Substrate Frame
only? or any chain supporting SCALE dispatch? That stuff is quite generic too enum(enum(origin, data)) to be be little be broader than only Substate Frame (i thin of it easy to have WS with JSON RCP which parses SCALE with no Substrate Frame)
- `index: Compact`: The index which identifies the pallet. An error if no pallet exists at this index. | ||
- `name: Vec<u8>`: Name which must be equal to the name of the pallet. | ||
- `module_name: Vec<u8>`: Module name which must be equal to the name of the module in which the pallet exists. | ||
- `crate_major: Compact`: Version number which must be equal to the major version of the crate which implements the pallet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is about exact crate version? Could it be some range (like in Rust)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
,
No description provided.