6 #ifndef KAGOME_OFFCHAIN_OFFCHAINSTORAGE 7 #define KAGOME_OFFCHAIN_OFFCHAINSTORAGE 9 #include <boost/optional.hpp> 50 const std::optional<common::BufferView> &expected,
58 virtual outcome::result<common::Buffer>
get(
64 #endif // KAGOME_OFFCHAIN_OFFCHAINSTORAGE Class represents arbitrary (including empty) byte buffer.
virtual outcome::result< void > clear(const common::BufferView &key)=0
Remove a value from the local storage.
virtual outcome::result< bool > compare_and_set(const common::BufferView &key, const std::optional< common::BufferView > &expected, common::Buffer value)=0
Sets a new value in the local storage if the condition matches the current value. ...
virtual ~OffchainStorage()=default