Kagome
Polkadot Runtime Engine in C++17
predefined_keys.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_STORAGE_PREDEFINED_KEYS_HPP
7 #define KAGOME_CORE_STORAGE_PREDEFINED_KEYS_HPP
8 
9 #include "common/buffer.hpp"
10 
11 #include <fmt/format.h>
12 
13 namespace kagome::storage {
14  using namespace common::literals;
15 
16  inline const common::Buffer kRuntimeCodeKey = ":code"_buf;
17 
18  inline const common::Buffer kExtrinsicIndexKey = ":extrinsic_index"_buf;
19 
21  ":kagome:block_tree_leaves"_buf;
22 
23  inline const common::Buffer kActivePeersKey = ":kagome:last_active_peers"_buf;
24 
26  ":kagome:runtime_hashes"_buf;
27 
28  inline const common::Buffer kOffchainWorkerStoragePrefix = ":kagome:ocw"_buf;
29 
31  ":child_storage:default:"_buf;
32 
34  ":kagome:applying_block"_buf;
35 
37  ":kagome:authority_manager_state"_buf;
38 
40  ":kagome:block_of_incomplete_sync_state"_buf;
41 
42  template <typename Tag>
45  fmt::format(":kagome:babe_config_repo_state:{}", tag));
46  }
47 
48 } // namespace kagome::storage
49 
50 #endif // KAGOME_CORE_STORAGE_PREDEFINED_KEYS_HPP
const common::Buffer kBlockTreeLeavesLookupKey
Class represents arbitrary (including empty) byte buffer.
Definition: buffer.hpp:29
common::Buffer kBabeConfigRepoStateLookupKey(Tag tag)
const common::Buffer kOffchainWorkerStoragePrefix
const common::Buffer kActivePeersKey
const common::Buffer kChildStorageDefaultPrefix
const common::Buffer kBlockOfIncompleteSyncStateLookupKey
const common::Buffer kAuthorityManagerStateLookupKey
static SLBuffer fromString(const std::string_view &src)
stores content of a string to byte array
Definition: buffer.hpp:205
const common::Buffer kExtrinsicIndexKey
const common::Buffer kApplyingBlockInfoLookupKey
const common::Buffer kRuntimeCodeKey
const common::Buffer kRuntimeHashesLookupKey