Update metadata generation docs (#4311)
* Update metadata generation docs * Add cross-link
This commit is contained in:
@@ -11,3 +11,7 @@ For Kusama -
|
|||||||
To retrieve the metadata -
|
To retrieve the metadata -
|
||||||
|
|
||||||
`curl -H "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "state_getMetadata", "params":[]}' http://localhost:9933`
|
`curl -H "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "state_getMetadata", "params":[]}' http://localhost:9933`
|
||||||
|
|
||||||
|
- Add it to the relevant folders e.g. `v14/{kusama, polkadot, substrate}-hex.json`
|
||||||
|
- Run `yarn build:interfaces` to re-generate all TS
|
||||||
|
- Run `yarn test:one packages/types/src/metadatra/v14` for Metadata checks
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
# metadata update
|
# metadata update
|
||||||
|
|
||||||
1. New branch :)
|
0. New branch :)
|
||||||
2. `curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "state_getMetadata", "params":[]}' http://localhost:9933`
|
0. Start the node, typically via `cargo run --release -- purge-chain -y --dev && cargo run --release -- --dev` ([types-support/src/metadata/README.md](../../../types-support/src/metadata/README.md) has more information for specific chains)
|
||||||
3. Copy the latest version folder (vx) in `types-support/metadata`
|
0. Retrieve the metadata `curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "state_getMetadata", "params":[]}' http://localhost:9933`
|
||||||
3. Copy the result (hex-only) into `static.ts`, as of now linked to `v6/static.ts`
|
0. Copy into the latest version folder per node type in `types-support/src/metadata` eg. `types-support/src/metadata/v14/substrate-hex.json`
|
||||||
4. Rust Metadata tests, `yarn run test packages/types/src/metadata`
|
0. Re-build the interfaces `yarn build:interfaces`
|
||||||
5. Add new class types as required (find missing in Rust code, add)
|
0. Run Metadata tests, `yarn test:one packages/types/src/metadata`
|
||||||
6. Repeat 4-6 until passing
|
0. All tests
|
||||||
7. All tests
|
0. Make PR
|
||||||
8. Make PR
|
|
||||||
|
|||||||
Reference in New Issue
Block a user