Scorum
advertising_property_initializator.cpp
Go to the documentation of this file.
2 
4 
5 namespace scorum {
6 namespace chain {
7 namespace genesis {
8 
10 {
11  auto& adv_service = ctx.services().advertising_property_service();
12 
13  FC_ASSERT(!adv_service.is_exists());
14 
15  adv_service.create([&](advertising_property_object& obj) {
16  obj.moderator = SCORUM_MISSING_MODERATOR_ACCOUNT;
17  std::vector<percent_type> coeffs(SCORUM_DEFAULT_BUDGETS_AUCTION_SET);
18  std::copy(std::begin(coeffs), std::end(coeffs), std::back_inserter(obj.auction_post_coefficients));
19  std::copy(std::begin(coeffs), std::end(coeffs), std::back_inserter(obj.auction_banner_coefficients));
20  });
21 }
22 
23 } // namespace genesis
24 } // namespace scorum
25 } // namespace chain
data_service_factory_i & services() const
#define SCORUM_DEFAULT_BUDGETS_AUCTION_SET
Definition: config.hpp:99
Definition: asset.cpp:15