-
Notifications
You must be signed in to change notification settings - Fork 2.6k
try-runtime-cli: path to being an independent CLI #12975
try-runtime-cli: path to being an independent CLI #12975
Comments
Generally, extracting Since we have the assumption that For such cases, I would propose dividing |
Perhaps the lib-part can go into |
where would we keep the binary (the tool)? other repository? |
I would start with this repo but no dependency on |
Sounds good then |
https://github.com/paritytech/try-runtime-cli is there for me and @pmikolajczyk41 to try this out. |
... and capable of interacting with any substrate-based chain, at any without needing to care about the block format.
As of #12537, the try-runtime-cli does not care about the local runtime anymore. It always uses the path to the wasm file.
If you look at the code now, there are only two reasons why try-runtime-cli is part of substrate/polkadot/cumulus now:
substrate/bin/node/cli/src/command.rs
Lines 241 to 244 in e118df5
The former can be hardcoded and as far as I know we don't really change it. It should simple be
SubstrateHostFunctions
default set.And the latter, should be provided by sub-xt. sub-xt is now capable of fetching the metadata of a remote node and generating types from it, including the block format, at compile-time, which is awesome and exactly what we need.
If done, there'd be one try-runtime-cli, capable of working with all substrate-based chains, with much faster compile-time, and capable of living outside of substrate repo even.
Tasks
The text was updated successfully, but these errors were encountered: