Properly pull metadata from v16 (#6201)
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,138 @@
|
||||
// Copyright 2017-2025 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
// cargo run --release -- purge-chain -y --dev && cargo run --release -- --dev
|
||||
|
||||
export default {
|
||||
"methods": [
|
||||
"account_nextIndex",
|
||||
"author_hasKey",
|
||||
"author_hasSessionKeys",
|
||||
"author_insertKey",
|
||||
"author_pendingExtrinsics",
|
||||
"author_removeExtrinsic",
|
||||
"author_rotateKeys",
|
||||
"author_submitAndWatchExtrinsic",
|
||||
"author_submitExtrinsic",
|
||||
"author_unwatchExtrinsic",
|
||||
"babe_epochAuthorship",
|
||||
"beefy_getFinalizedHead",
|
||||
"beefy_subscribeJustifications",
|
||||
"beefy_unsubscribeJustifications",
|
||||
"chainHead_v1_body",
|
||||
"chainHead_v1_call",
|
||||
"chainHead_v1_continue",
|
||||
"chainHead_v1_follow",
|
||||
"chainHead_v1_header",
|
||||
"chainHead_v1_stopOperation",
|
||||
"chainHead_v1_storage",
|
||||
"chainHead_v1_unfollow",
|
||||
"chainHead_v1_unpin",
|
||||
"chainSpec_v1_chainName",
|
||||
"chainSpec_v1_genesisHash",
|
||||
"chainSpec_v1_properties",
|
||||
"chain_getBlock",
|
||||
"chain_getBlockHash",
|
||||
"chain_getFinalisedHead",
|
||||
"chain_getFinalizedHead",
|
||||
"chain_getHead",
|
||||
"chain_getHeader",
|
||||
"chain_getRuntimeVersion",
|
||||
"chain_subscribeAllHeads",
|
||||
"chain_subscribeFinalisedHeads",
|
||||
"chain_subscribeFinalizedHeads",
|
||||
"chain_subscribeNewHead",
|
||||
"chain_subscribeNewHeads",
|
||||
"chain_subscribeRuntimeVersion",
|
||||
"chain_unsubscribeAllHeads",
|
||||
"chain_unsubscribeFinalisedHeads",
|
||||
"chain_unsubscribeFinalizedHeads",
|
||||
"chain_unsubscribeNewHead",
|
||||
"chain_unsubscribeNewHeads",
|
||||
"chain_unsubscribeRuntimeVersion",
|
||||
"childstate_getKeys",
|
||||
"childstate_getKeysPaged",
|
||||
"childstate_getKeysPagedAt",
|
||||
"childstate_getStorage",
|
||||
"childstate_getStorageEntries",
|
||||
"childstate_getStorageHash",
|
||||
"childstate_getStorageSize",
|
||||
"dev_getBlockStats",
|
||||
"grandpa_proveFinality",
|
||||
"grandpa_roundState",
|
||||
"grandpa_subscribeJustifications",
|
||||
"grandpa_unsubscribeJustifications",
|
||||
"mmr_generateProof",
|
||||
"mmr_root",
|
||||
"mmr_verifyProof",
|
||||
"mmr_verifyProofStateless",
|
||||
"offchain_localStorageClear",
|
||||
"offchain_localStorageGet",
|
||||
"offchain_localStorageSet",
|
||||
"payment_queryFeeDetails",
|
||||
"payment_queryInfo",
|
||||
"rpc_methods",
|
||||
"state_call",
|
||||
"state_callAt",
|
||||
"state_getChildReadProof",
|
||||
"state_getKeys",
|
||||
"state_getKeysPaged",
|
||||
"state_getKeysPagedAt",
|
||||
"state_getMetadata",
|
||||
"state_getPairs",
|
||||
"state_getReadProof",
|
||||
"state_getRuntimeVersion",
|
||||
"state_getStorage",
|
||||
"state_getStorageAt",
|
||||
"state_getStorageHash",
|
||||
"state_getStorageHashAt",
|
||||
"state_getStorageSize",
|
||||
"state_getStorageSizeAt",
|
||||
"state_queryStorage",
|
||||
"state_queryStorageAt",
|
||||
"state_subscribeRuntimeVersion",
|
||||
"state_subscribeStorage",
|
||||
"state_traceBlock",
|
||||
"state_trieMigrationStatus",
|
||||
"state_unsubscribeRuntimeVersion",
|
||||
"state_unsubscribeStorage",
|
||||
"statement_broadcasts",
|
||||
"statement_broadcastsStatement",
|
||||
"statement_dump",
|
||||
"statement_posted",
|
||||
"statement_postedClear",
|
||||
"statement_postedClearStatement",
|
||||
"statement_postedStatement",
|
||||
"statement_remove",
|
||||
"statement_submit",
|
||||
"subscribe_newHead",
|
||||
"sync_state_genSyncSpec",
|
||||
"system_accountNextIndex",
|
||||
"system_addLogFilter",
|
||||
"system_addReservedPeer",
|
||||
"system_chain",
|
||||
"system_chainType",
|
||||
"system_dryRun",
|
||||
"system_dryRunAt",
|
||||
"system_health",
|
||||
"system_localListenAddresses",
|
||||
"system_localPeerId",
|
||||
"system_name",
|
||||
"system_nodeRoles",
|
||||
"system_peers",
|
||||
"system_properties",
|
||||
"system_removeReservedPeer",
|
||||
"system_reservedPeers",
|
||||
"system_resetLogFilter",
|
||||
"system_syncState",
|
||||
"system_unstable_networkState",
|
||||
"system_version",
|
||||
"transactionWatch_v1_submitAndWatch",
|
||||
"transactionWatch_v1_unwatch",
|
||||
"transaction_v1_broadcast",
|
||||
"transaction_v1_stop",
|
||||
"unsubscribe_newHead"
|
||||
]
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,123 @@
|
||||
// Copyright 2017-2025 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
// cargo run --release -- purge-chain -y --dev && cargo run --release -- --dev
|
||||
|
||||
export default {
|
||||
"specName": "node",
|
||||
"implName": "substrate-node",
|
||||
"authoringVersion": 10,
|
||||
"specVersion": 268,
|
||||
"implVersion": 0,
|
||||
"apis": [
|
||||
[
|
||||
"0xdf6acb689907609b",
|
||||
5
|
||||
],
|
||||
[
|
||||
"0x37e397fc7c91f5e4",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xccd9de6396c899ca",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x40fe3ad401f8959a",
|
||||
6
|
||||
],
|
||||
[
|
||||
"0xd2bc9897eed08f15",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xbe9fb0c91a8046cf",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xf78b278be53f454c",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xed99c5acb25eedf5",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x17a6bc0d0062aeb3",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x18ef58a3b67ba770",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xcbca25e39f142387",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x687ad44ad37f03c2",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xbc9d89904f5b923f",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x8453b50b22293977",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x68b66ba122c93fa7",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x37c8bb1350a9a2a8",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0x8a8047a53a8277ec",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xf3ff14d5ab527059",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x899a250cbe84f250",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x49eaaf1b548a0cb0",
|
||||
5
|
||||
],
|
||||
[
|
||||
"0x91d5df18b0d2cf58",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x6fd7c327202e4a8d",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xab3c0572291feb8b",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x65f855d6e093c2f1",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xfbc577b9d747efd6",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x8c403e5c4a9fd442",
|
||||
1
|
||||
]
|
||||
],
|
||||
"transactionVersion": 2,
|
||||
"systemVersion": 1,
|
||||
"stateVersion": 1
|
||||
};
|
||||
@@ -4,8 +4,8 @@
|
||||
/* import assetHubKusamaData from '@polkadot/types-support/metadata/v16/asset-hub-kusama-hex';
|
||||
import assetHubPolkadotData from '@polkadot/types-support/metadata/v16/asset-hub-polkadot-hex';
|
||||
import kusamaData from '@polkadot/types-support/metadata/v16/kusama-hex';
|
||||
import polkadotData from '@polkadot/types-support/metadata/v16/polkadot-hex';
|
||||
import substrateData from '@polkadot/types-support/metadata/v16/substrate-hex';*/
|
||||
import polkadotData from '@polkadot/types-support/metadata/v16/polkadot-hex';*/
|
||||
import substrateData from '@polkadot/types-support/metadata/v16/substrate-hex';
|
||||
|
||||
import { testMeta } from '../util/testUtil.js';
|
||||
|
||||
@@ -23,8 +23,8 @@ testMeta(16, {
|
||||
},
|
||||
polkadot: {
|
||||
data: polkadotData
|
||||
},
|
||||
},*/
|
||||
substrate: {
|
||||
data: substrateData
|
||||
}*/
|
||||
}
|
||||
});
|
||||
|
||||
@@ -16,8 +16,8 @@ const CMD = {
|
||||
};
|
||||
|
||||
// V15
|
||||
const META_VERSION_HEX = '0x0f000000';
|
||||
const META_VERSION = 15;
|
||||
const META_VERSION_HEX = '0x10000000';
|
||||
const META_VERSION = 16;
|
||||
|
||||
/**
|
||||
* Parse the specName given any exceptions.
|
||||
|
||||
Reference in New Issue
Block a user