Include missing known keys (#6084)

* add defaultChildStorageKeyPrefix

* Adds known storage keys mentioned in #5746

* lint
This commit is contained in:
Valentin Fernandez
2025-01-30 08:09:16 -05:00
committed by GitHub
parent e86abeefda
commit 203c59667e
@@ -29,6 +29,10 @@ export const substrate: Record<string, Creator> = {
docs: 'Wasm code of the runtime.', docs: 'Wasm code of the runtime.',
type: 'Bytes' type: 'Bytes'
}), }),
defaultChildStorageKeyPrefix: createSubstrateFn('defaultChildStorageKeyPrefix', ':child_storage:default:', {
docs: 'Prefix of the default child storage keys in the top trie.',
type: 'u32'
}),
extrinsicIndex: createSubstrateFn('extrinsicIndex', ':extrinsic_index', { extrinsicIndex: createSubstrateFn('extrinsicIndex', ':extrinsic_index', {
docs: 'Current extrinsic index (u32) is stored under this key.', docs: 'Current extrinsic index (u32) is stored under this key.',
type: 'u32' type: 'u32'
@@ -40,5 +44,13 @@ export const substrate: Record<string, Creator> = {
intrablockEntropy: createSubstrateFn('intrablockEntropy', ':intrablock_entropy', { intrablockEntropy: createSubstrateFn('intrablockEntropy', ':intrablock_entropy', {
docs: 'Current intra-block entropy (a universally unique `[u8; 32]` value) is stored here.', docs: 'Current intra-block entropy (a universally unique `[u8; 32]` value) is stored here.',
type: '[u8; 32]' type: '[u8; 32]'
}),
storageVersionStorageKeyPostfix: createSubstrateFn('storageVersionStorageKeyPostfix', ':__STORAGE_VERSION__:', {
docs: 'The storage key postfix that is used to store the [`StorageVersion`] per pallet.',
type: 'u16'
}),
transactionLevelKey: createSubstrateFn('transactionLevelKey', ':transaction_level:', {
docs: 'The key that holds the current number of active layers.',
type: 'u32'
}) })
}; };