Scorum
registration_pool_evaluator.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
6 
8 
9 #include <memory>
10 
11 namespace scorum {
12 namespace chain {
13 
14 struct data_service_factory_i;
15 struct hardfork_property_service_i;
16 
17 class account_object;
18 class registration_pool_evaluator_impl;
19 
20 class registration_pool_evaluator : public evaluator_impl<data_service_factory_i, registration_pool_evaluator>
21 {
22 public:
24 
25  registration_pool_evaluator(data_service_factory_i& services);
27 
28  void do_apply(const operation_type& op);
29 
30 private:
31  std::unique_ptr<registration_pool_evaluator_impl> _impl;
32 
33  hardfork_property_service_i& _hardfork_svc;
34 };
35 
37 {
38 public:
39  explicit give_bonus_from_registration_pool_task_context(data_service_factory_i& services,
40  const account_object& beneficiary);
41 
42  data_service_factory_i& services() const;
43 
44  const account_object& beneficiary() const;
45 
46 private:
47  data_service_factory_i& _services;
48  const account_object& _beneficiary;
49 };
50 
51 class give_bonus_from_registration_pool_task : public task<give_bonus_from_registration_pool_task_context>
52 {
53 public:
55 };
56 
57 } // namespace chain
58 } // namespace scorum
give_bonus_from_registration_pool_task_context(data_service_factory_i &services, const account_object &beneficiary)
void on_apply(give_bonus_from_registration_pool_task_context &ctx)
registration_pool_evaluator(data_service_factory_i &services)
Definition: asset.cpp:15
Creates new account by registration committee.