try-runtime-cli: path to being an independent CLI #12975
Description
... 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:
- Get the list of host functions from the native executor
- Get the block format
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
- [x] Standalone repo and docs https://github.com/paritytech/try-runtime-cli/pull/6
- [x] Link docs on https://paritytech.github.io/ https://github.com/paritytech/paritytech.github.io/pull/12
- [x] Deprecate node-cli `try-runtime` subcommand https://github.com/paritytech/substrate/pull/14731
- [x] Migrate `try-runtime` issues to new repo
- [x] Update substrate.io docs to point to standalone cli docs https://github.com/substrate-developer-hub/substrate-docs/pull/2043
Metadata
Metadata
Assignees
Labels
Type
Projects
Status