6 #ifndef KAGOME_STORAGE_TRIE_IMPL_TRIE_STORAGE_IMPL 7 #define KAGOME_STORAGE_TRIE_IMPL_TRIE_STORAGE_IMPL 22 static outcome::result<std::unique_ptr<TrieStorageImpl>>
createEmpty(
23 const std::shared_ptr<PolkadotTrieFactory> &trie_factory,
24 std::shared_ptr<Codec> codec,
25 std::shared_ptr<TrieSerializer> serializer,
26 std::optional<std::shared_ptr<changes_trie::ChangesTracker>> changes);
29 std::shared_ptr<Codec> codec,
30 std::shared_ptr<TrieSerializer> serializer,
31 std::optional<std::shared_ptr<changes_trie::ChangesTracker>> changes);
43 const RootHash &root)
const override;
47 std::shared_ptr<Codec> codec,
48 std::shared_ptr<TrieSerializer> serializer,
49 std::optional<std::shared_ptr<changes_trie::ChangesTracker>> changes);
54 std::optional<std::shared_ptr<changes_trie::ChangesTracker>>
changes_;
60 #endif // KAGOME_STORAGE_TRIE_IMPL_TRIE_STORAGE_IMPL
~TrieStorageImpl() override=default
TrieStorageImpl(TrieStorageImpl const &)=delete
static outcome::result< std::unique_ptr< TrieStorageImpl > > createFromStorage(std::shared_ptr< Codec > codec, std::shared_ptr< TrieSerializer > serializer, std::optional< std::shared_ptr< changes_trie::ChangesTracker >> changes)
std::shared_ptr< TrieSerializer > serializer_
outcome::result< std::unique_ptr< EphemeralTrieBatch > > getEphemeralBatchAt(const RootHash &root) const override
std::shared_ptr< Codec > codec_
void operator=(const TrieStorageImpl &)=delete
std::shared_ptr< soralog::Logger > Logger
outcome::result< std::unique_ptr< PersistentTrieBatch > > getPersistentBatchAt(const RootHash &root) override
static outcome::result< std::unique_ptr< TrieStorageImpl > > createEmpty(const std::shared_ptr< PolkadotTrieFactory > &trie_factory, std::shared_ptr< Codec > codec, std::shared_ptr< TrieSerializer > serializer, std::optional< std::shared_ptr< changes_trie::ChangesTracker >> changes)
std::optional< std::shared_ptr< changes_trie::ChangesTracker > > changes_