Scorum
devcommittee_history_api.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <fc/api.hpp>
5 
6 #ifndef API_DEVCOMMITTEE_HISTORY
7 #define API_DEVCOMMITTEE_HISTORY "devcommittee_history_api"
8 #endif
9 
10 namespace scorum {
11 namespace app {
12 struct api_context;
13 }
14 } // namespace scorum
15 
16 namespace scorum {
17 namespace blockchain_history {
18 
19 namespace detail {
20 class devcommittee_history_api_impl;
21 }
22 
33 {
34 public:
37 
38  void on_api_startup();
39 
43 
52  std::vector<applied_operation> get_history(uint64_t from, uint32_t limit) const;
53 
54  std::vector<applied_operation> get_scr_to_scr_transfers(uint64_t from, uint32_t limit) const;
55 
56  std::vector<applied_withdraw_operation> get_sp_to_scr_transfers(uint64_t from, uint32_t limit) const;
57 
59 
60 private:
61  std::unique_ptr<detail::devcommittee_history_api_impl> _impl;
62 };
63 } // namespace blockchain_history
64 } // namespace scorum
65 
67  (get_history)(get_scr_to_scr_transfers)(get_sp_to_scr_transfers))
devcommittee_history_api(const scorum::app::api_context &ctx)
std::vector< applied_operation > get_scr_to_scr_transfers(uint64_t from, uint32_t limit) const
std::vector< applied_withdraw_operation > get_sp_to_scr_transfers(uint64_t from, uint32_t limit) const
std::vector< applied_operation > get_history(uint64_t from, uint32_t limit) const
Definition: asset.cpp:15