Scorum
dynamic_global_property_object.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <fc/uint128.hpp>
3 
5 
9 
10 namespace scorum {
11 namespace chain {
12 
16 
18 {
20  {
23 
26 
29  };
30 
33 
36 };
37 
39 {
42 };
43 
54  : public object<dynamic_global_property_object_type, dynamic_global_property_object>
55 {
56 public:
57  CHAINBASE_DEFAULT_CONSTRUCTOR(dynamic_global_property_object)
58 
59  id_type id;
60 
62  uint32_t head_block_number = 0;
63 
66 
68  time_point_sec time;
69 
72 
75 
78 
81 
84 
87 
90 
93 
101 
104 
107  uint64_t current_aslot = 0;
108 
111 
113  uint8_t participation_count = 0;
114 
117 
120 
123 };
124 
125 typedef shared_multi_index_container<dynamic_global_property_object,
126  indexed_by<ordered_unique<tag<by_id>,
131 } // namespace chain
132 } // namespace scorum
133 
134 // clang-format off
136  (id)
138  (head_block_id)
139  (time)
141  (total_supply)
150  (current_aslot)
154  (advertising)
155  (betting_stats))
156 
157 FC_REFLECT(scorum::chain::adv_total_stats::budget_type_stat, (volume)(budget_pending_outgo)(owner_pending_income))
158 FC_REFLECT(scorum::chain::adv_total_stats, (post_budgets)(banner_budgets))
159 FC_REFLECT(scorum::chain::betting_total_stats, (pending_bets_volume)(matched_bets_volume))
160 // clang-format on
161 
162 CHAINBASE_SET_INDEX_TYPE(scorum::chain::dynamic_global_property_object, scorum::chain::dynamic_global_property_index)
adv_total_stats advertising
this section display information about advertising totals
uint32_t last_irreversible_block_num
last irreversible block num
betting_total_stats betting_stats
this section display information about betting totals
uint8_t participation_count
Divide by 128 to compute participation percentage.
fc::uint128_t recent_slots_filled
used to compute witness participation.
asset total_scorumpower
Total SP on accounts scorumpower.
asset circulating_capital
Total SCR and SP on circulating (on account balances). circulating_capital <= total_supply.
account_name_type current_witness
Head block signed by current witness.
asset total_supply
Total SCR and SP (circulating_scr + circulating_sp)
asset total_witness_reward_sp
Total amount of SP received by witnesses.
asset total_witness_reward_scr
Total amount of SCR received by witnesses.
#define SP_SYMBOL
Definition: config.hpp:104
#define SCORUM_SYMBOL
Definition: config.hpp:102
FC_REFLECT(appender_args,(appender)(stream)) FC_REFLECT_DERIVED(file_appender_args
Definition: game.cpp:4
scorum::protocol::chain_properties chain_properties
Definition: witness.hpp:18
shared_multi_index_container< dynamic_global_property_object, indexed_by< ordered_unique< tag< by_id >, member< dynamic_global_property_object, dynamic_global_property_object::id_type, &dynamic_global_property_object::id > > > > dynamic_global_property_index
fc::fixed_string_16 account_name_type
Definition: types.hpp:62
fc::ripemd160 block_id_type
Definition: types.hpp:63
Definition: asset.cpp:15
asset budget_pending_outgo
pending volume which will go to the activity pool
asset owner_pending_income
pending volume which will be returned to budget owners
budget_type_stat banner_budgets
total's statistic for advertising banner budgets
budget_type_stat post_budgets
total's statistic for advertising post budgets