hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
burrow_storage.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_AMETSUCHI_BURROW_STORAGE_HPP
7 #define IROHA_AMETSUCHI_BURROW_STORAGE_HPP
8 
9 #include <optional>
10 #include <string>
11 #include <string_view>
12 #include <vector>
13 
14 #include "common/result_fwd.hpp"
15 
16 namespace iroha {
17  namespace ametsuchi {
18 
19  class BurrowStorage {
20  public:
21  virtual ~BurrowStorage() = default;
22 
24  getAccount(std::string_view address) = 0;
25 
27  std::string_view address, std::string_view account) = 0;
28 
30  std::string_view address) = 0;
31 
33  getStorage(std::string_view address, std::string_view key) = 0;
34 
36  std::string_view address,
37  std::string_view key,
38  std::string_view value) = 0;
39 
41  std::string_view address,
42  std::string_view data,
43  std::vector<std::string_view> topics) = 0;
44  };
45  } // namespace ametsuchi
46 } // namespace iroha
47 
48 #endif
virtual expected::Result< void, std::string > setStorage(std::string_view address, std::string_view key, std::string_view value)=0
virtual expected::Result< std::optional< std::string >, std::string > getAccount(std::string_view address)=0
virtual expected::Result< void, std::string > removeAccount(std::string_view address)=0
Definition: result_fwd.hpp:27
virtual expected::Result< std::optional< std::string >, std::string > getStorage(std::string_view address, std::string_view key)=0
Definition: block_query.hpp:15
virtual expected::Result< void, std::string > updateAccount(std::string_view address, std::string_view account)=0
Definition: burrow_storage.hpp:19
virtual ~BurrowStorage()=default
virtual expected::Result< void, std::string > storeLog(std::string_view address, std::string_view data, std::vector< std::string_view > topics)=0