Bump to latest Substrate metadata (#5807)
* Bump to latest substrate metadata * Bump to latest Substrate metadata * Update type-support docs for metadata * Update docs again * fix compat issues * adjust types
This commit is contained in:
@@ -1,4 +1,34 @@
|
||||
## extraction
|
||||
## Extraction (Current)
|
||||
|
||||
For Substrate -
|
||||
|
||||
Clone the [polkadot-sdk](https://github.com/paritytech/polkadot-sdk) repository and from the ROOT run:
|
||||
|
||||
`cargo build --release && ./target/release/substrate-node --dev`
|
||||
|
||||
`--dev` sets the flag `--tmp` automatically so there is no need for purging the dev db.
|
||||
|
||||
To retrieve the metadata -
|
||||
|
||||
`curl -H "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "state_getMetadata", "params":[]}' http://localhost:9944`
|
||||
|
||||
- Add it to the relevant folders e.g. `v14/{kusama, polkadot, substrate}-hex.json`
|
||||
|
||||
To retrieve the rpc methods -
|
||||
|
||||
`curl -H "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "rpc_methods", "params":[]}' http://localhost:9944`
|
||||
|
||||
- Add it to the relevant folders e.g. `v14/{kusama, polkadot, substrate}-rpc.ts`
|
||||
|
||||
To retrieve the runtime versions -
|
||||
|
||||
`curl -H "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "state_getRuntimeVersion", "params":[]}' http://localhost:9944`
|
||||
|
||||
- Add it to the relevant folders e.g. `v14/{kusama, polkadot, substrate}-ver.ts`
|
||||
|
||||
NOTE: This all works for manual updating, but for an easier process run from root for each respective chain: `node ./scripts/metadata-get.mjs`
|
||||
|
||||
## extraction (Legacy)
|
||||
|
||||
For Substrate & Polkadot (dev chains) -
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -18,6 +18,9 @@ export default {
|
||||
"author_submitExtrinsic",
|
||||
"author_unwatchExtrinsic",
|
||||
"babe_epochAuthorship",
|
||||
"beefy_getFinalizedHead",
|
||||
"beefy_subscribeJustifications",
|
||||
"beefy_unsubscribeJustifications",
|
||||
"chainHead_unstable_body",
|
||||
"chainHead_unstable_call",
|
||||
"chainHead_unstable_continue",
|
||||
@@ -122,8 +125,8 @@ export default {
|
||||
"system_syncState",
|
||||
"system_unstable_networkState",
|
||||
"system_version",
|
||||
"transaction_unstable_submitAndWatch",
|
||||
"transaction_unstable_unwatch",
|
||||
"transactionWatch_unstable_submitAndWatch",
|
||||
"transactionWatch_unstable_unwatch",
|
||||
"unsubscribe_newHead"
|
||||
]
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -84,6 +84,10 @@ export default {
|
||||
"0x899a250cbe84f250",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x49eaaf1b548a0cb0",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x91d5df18b0d2cf58",
|
||||
2
|
||||
|
||||
Reference in New Issue
Block a user