Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include missing known keys #6084

Merged
merged 3 commits into from
Jan 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/types/src/metadata/decorate/storage/substrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ export const substrate: Record<string, Creator> = {
docs: 'Wasm code of the runtime.',
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', {
docs: 'Current extrinsic index (u32) is stored under this key.',
type: 'u32'
Expand All @@ -40,5 +44,13 @@ export const substrate: Record<string, Creator> = {
intrablockEntropy: createSubstrateFn('intrablockEntropy', ':intrablock_entropy', {
docs: 'Current intra-block entropy (a universally unique `[u8; 32]` value) is stored here.',
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'
})
};