Skip to content

Commit 203c596

Browse files
Include missing known keys (#6084)
* add defaultChildStorageKeyPrefix * Adds known storage keys mentioned in #5746 * lint
1 parent e86abee commit 203c596

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/types/src/metadata/decorate/storage/substrate.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ export const substrate: Record<string, Creator> = {
2929
docs: 'Wasm code of the runtime.',
3030
type: 'Bytes'
3131
}),
32+
defaultChildStorageKeyPrefix: createSubstrateFn('defaultChildStorageKeyPrefix', ':child_storage:default:', {
33+
docs: 'Prefix of the default child storage keys in the top trie.',
34+
type: 'u32'
35+
}),
3236
extrinsicIndex: createSubstrateFn('extrinsicIndex', ':extrinsic_index', {
3337
docs: 'Current extrinsic index (u32) is stored under this key.',
3438
type: 'u32'
@@ -40,5 +44,13 @@ export const substrate: Record<string, Creator> = {
4044
intrablockEntropy: createSubstrateFn('intrablockEntropy', ':intrablock_entropy', {
4145
docs: 'Current intra-block entropy (a universally unique `[u8; 32]` value) is stored here.',
4246
type: '[u8; 32]'
47+
}),
48+
storageVersionStorageKeyPostfix: createSubstrateFn('storageVersionStorageKeyPostfix', ':__STORAGE_VERSION__:', {
49+
docs: 'The storage key postfix that is used to store the [`StorageVersion`] per pallet.',
50+
type: 'u16'
51+
}),
52+
transactionLevelKey: createSubstrateFn('transactionLevelKey', ':transaction_level:', {
53+
docs: 'The key that holds the current number of active layers.',
54+
type: 'u32'
4355
})
4456
};

0 commit comments

Comments
 (0)