Update docs in types-support for retrieving metadata for typegen (#5809)
* Update docs in types-support for retrieving metadata for typegen * nit * copy notes * Update packages/types-support/src/metadata/README.md Co-authored-by: Alberto Nicolas Penayo <74352651+bee344@users.noreply.github.com> * Update packages/types-support/src/metadata/README.md Co-authored-by: Alberto Nicolas Penayo <74352651+bee344@users.noreply.github.com> --------- Co-authored-by: Alberto Nicolas Penayo <74352651+bee344@users.noreply.github.com>
This commit is contained in:
co-authored by
Alberto Nicolas Penayo
parent
6a9a53c48c
commit
1797d6b42c
@@ -8,6 +8,29 @@ Clone the [polkadot-sdk](https://github.com/paritytech/polkadot-sdk) repository
|
||||
|
||||
`--dev` sets the flag `--tmp` automatically so there is no need for purging the dev db.
|
||||
|
||||
For Polkadot & Kusama -
|
||||
|
||||
Clone the [polkadot-fellows/runtimes](https://github.com/polkadot-fellows/runtimes/tree/main) repository and from the ROOT run:
|
||||
|
||||
```bash
|
||||
$ unset SKIP_WASM_BUILD
|
||||
$ cargo build --release -p chain-spec-generator --features fast-runtime
|
||||
$ ./target/release/chain-spec-generator polkadot-dev > polkadotDevChainSpec.json
|
||||
```
|
||||
|
||||
- For kusama just change the `polkadotDevChainSpec.json` to `kusamaDevChainSpec.json`.
|
||||
- When you have the `polkadot-sdk` cloned, make sure to copy the chainspec from the `runtimes` repository to `polkadot-sdk` repository.
|
||||
|
||||
Clone the [polkadot-sdk](https://github.com/paritytech/polkadot-sdk) repository, checkout the most recent releases tag and from the ROOT run:
|
||||
|
||||
```bash
|
||||
$ cargo build --release --bin polkadot-prepare-worker --features fast-runtime
|
||||
$ cargo build --release --bin polkadot-execute-worker --features fast-runtime
|
||||
$ cargo build --release --bin polkadot --features fast-runtime
|
||||
$ cp ../runtimes/polkadotDevChainSpec.json .
|
||||
$ ./target/release/polkadot --chain polkadotDevChainSpec.json
|
||||
```
|
||||
|
||||
To retrieve the metadata -
|
||||
|
||||
`curl -H "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "state_getMetadata", "params":[]}' http://localhost:9944`
|
||||
|
||||
Reference in New Issue
Block a user