6 #ifndef KAGOME_CORE_RUNTIME_STORAGE_WASM_PROVIDER_HPP 7 #define KAGOME_CORE_RUNTIME_STORAGE_WASM_PROVIDER_HPP 15 class EphemeralTrieBatch;
21 class RuntimeUpgradeTracker;
22 using primitives::CodeSubstituteBlockIds;
29 std::shared_ptr<const storage::trie::TrieStorage> storage,
30 std::shared_ptr<RuntimeUpgradeTracker> runtime_upgrade_tracker,
31 std::shared_ptr<const CodeSubstituteBlockIds> code_substitutes,
32 std::shared_ptr<application::ChainSpec> chain_spec);
34 outcome::result<gsl::span<const uint8_t>> getCodeAt(
38 outcome::result<void> setCodeFromBatch(
40 std::shared_ptr<const storage::trie::TrieStorage>
storage_;
51 #endif // KAGOME_CORE_RUNTIME_STORAGE_WASM_PROVIDER_HPP Class represents arbitrary (including empty) byte buffer.
std::shared_ptr< const storage::trie::TrieStorage > storage_
storage::trie::RootHash last_state_root_
common::Buffer cached_code_
std::shared_ptr< soralog::Logger > Logger
std::shared_ptr< RuntimeUpgradeTracker > runtime_upgrade_tracker_
std::shared_ptr< application::ChainSpec > chain_spec_
std::shared_ptr< const CodeSubstituteBlockIds > known_code_substitutes_