Scorum
close_budget_by_advertising_moderator_evaluator.hpp
Go to the documentation of this file.
1 #pragma once
5 
6 namespace scorum {
7 namespace chain {
8 
9 struct account_service_i;
10 struct post_budget_service_i;
11 struct banner_budget_service_i;
12 struct advertising_property_service_i;
13 template <protocol::budget_type> struct adv_budget_service_i;
14 
16  : public evaluator_impl<data_service_factory_i, close_budget_by_advertising_moderator_evaluator>
17 {
18 public:
20 
21  close_budget_by_advertising_moderator_evaluator(data_service_factory_i& services);
22 
23  void do_apply(const operation_type& op);
24 
25 private:
26  template <protocol::budget_type budget_type_v>
27  void close_budget(adv_budget_service_i<budget_type_v>& budget_svc, const operation_type& op);
28 
29 private:
30  account_service_i& _account_service;
31  post_budget_service_i& _post_budget_service;
32  banner_budget_service_i& _banner_budget_service;
33  advertising_property_service_i& _adv_property_service;
34 };
35 }
36 }
Definition: asset.cpp:15
Closes advertising budget by moderator, remaining funds will be returned to creator.