Scorum
withdrawable_actors_impl.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
6 
7 namespace scorum {
8 namespace chain {
9 
10 struct account_service_i;
11 struct dev_pool_service_i;
12 struct dynamic_global_property_service_i;
13 
14 namespace database_ns {
15 
17 
18 // this class implements {withdrawable_id_type} specific only
20 {
21 public:
23 
25 
26  void update_statistic(const withdrawable_id_type& from, const withdrawable_id_type& to, const asset& amount);
27  void update_statistic(const withdrawable_id_type& from);
28 
29  void increase_scr(const withdrawable_id_type& id, const asset& amount);
30 
31  void increase_sp(const withdrawable_id_type& id, const asset& amount);
32 
33  void decrease_sp(const withdrawable_id_type& id, const asset& amount);
34 
35 private:
36  block_task_context& _ctx;
37  account_service_i& _account_service;
38  dev_pool_service_i& _dev_pool_service;
39  dynamic_global_property_service_i& _dprops_service;
40 };
41 }
42 }
43 }
void update_statistic(const withdrawable_id_type &from, const withdrawable_id_type &to, const asset &amount)
asset get_available_scorumpower(const withdrawable_id_type &from)
void decrease_sp(const withdrawable_id_type &id, const asset &amount)
void increase_sp(const withdrawable_id_type &id, const asset &amount)
void increase_scr(const withdrawable_id_type &id, const asset &amount)
fc::static_variant< account_id_type, dev_committee_id_type > withdrawable_id_type
Definition: asset.cpp:15