Scorum
reward_objects.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
7 
8 namespace scorum {
9 namespace chain {
10 
14 
15 template <uint16_t ObjectType, asset_symbol_type SymbolType>
16 class reward_fund_object : public object<ObjectType, reward_fund_object<ObjectType, SymbolType>>
17 {
18 public:
19  CHAINBASE_DEFAULT_CONSTRUCTOR(reward_fund_object)
20 
21  typedef typename object<ObjectType, reward_fund_object<ObjectType, SymbolType>>::id_type id_type;
22 
23  id_type id;
24 
26  fc::uint128_t recent_claims = 0;
27  time_point_sec last_update;
30 
32  {
34  }
35 };
36 
37 template <typename FundObjectType>
39  = shared_multi_index_container<FundObjectType,
40  indexed_by<ordered_unique<tag<by_id>,
41  member<FundObjectType,
42  typename FundObjectType::id_type,
43  &FundObjectType::id>>>>;
44 
49 
54 
55 } // namespace chain
56 } // namespace scorum
57 
59  (id)(activity_reward_balance)(recent_claims)(last_update)(author_reward_curve)(curation_reward_curve))
61  (id)(activity_reward_balance)(recent_claims)(last_update)(author_reward_curve)(curation_reward_curve))
63  (id)(activity_reward_balance)(recent_claims)(last_update)(author_reward_curve)(curation_reward_curve))
64 
object< ObjectType, reward_fund_object< ObjectType, SymbolType > >::id_type id_type
asset_symbol_type symbol() const
FC_REFLECT(appender_args,(appender)(stream)) FC_REFLECT_DERIVED(file_appender_args
Definition: game.cpp:4
reward_fund_index< content_reward_fund_scr_object > content_reward_fund_scr_index
shared_multi_index_container< FundObjectType, indexed_by< ordered_unique< tag< by_id >, member< FundObjectType, typename FundObjectType::id_type, &FundObjectType::id > >> > reward_fund_index
reward_fund_index< content_reward_fund_sp_object > content_reward_fund_sp_index
reward_fund_index< content_fifa_world_cup_2018_bounty_reward_fund_object > content_fifa_world_cup_2018_bounty_reward_fund_index
uint64_t asset_symbol_type
Definition: asset.hpp:13
Definition: asset.cpp:15
asset_symbol_type symbol() const
Definition: asset.hpp:32