Scorum
genesis_state.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 #include <string>
5 
8 
9 #include <fc/reflect/reflect.hpp>
10 
11 namespace scorum {
12 namespace chain {
13 
17 
19 {
21 };
22 
24 {
25  time_point_sec lock_withdraw_sp_until_timestamp = time_point_sec::min();
26 };
27 
29 {
30  struct account_type
31  {
32  std::string name;
35  };
36 
37  struct founder_type
38  {
39  std::string name;
40  float sp_percent;
41  };
42 
44  {
45  std::string name;
47  };
48 
49  struct witness_type
50  {
51  std::string name;
53  };
54 
56  {
57  uint8_t stage;
58  uint32_t users;
59  uint16_t bonus_percent;
60  };
61 
71  time_point_sec initial_timestamp = time_point_sec::min();
72  std::vector<account_type> accounts;
73  std::vector<founder_type> founders;
74  std::vector<steemit_bounty_account_type> steemit_bounty_accounts;
75  std::vector<witness_type> witness_candidates;
76  std::vector<registration_schedule_item> registration_schedule;
77  std::vector<std::string> registration_committee;
78  std::vector<std::string> development_committee;
79 };
80 
81 } // namespace chain
82 } // namespace scorum
83 
84 // clang-format off
86  (name)
87  (public_key)
88  (scr_amount))
89 
91  (name)
92  (sp_percent))
93 
95  (name)
96  (sp_amount))
97 
99  (name)
100  (block_signing_key))
101 
103  (stage)
104  (users)
105  (bonus_percent))
106 
108  (lock_withdraw_sp_until_timestamp))
109 
111  (total_supply)
112  (registration_supply)
113  (registration_bonus)
114  (accounts_supply)
115  (rewards_supply)
116  (founders_supply)
117  (steemit_bounty_accounts_supply)
118  (development_sp_supply)
119  (development_scr_supply)
120  (initial_timestamp)
121  (accounts)
122  (founders)
123  (steemit_bounty_accounts)
124  (witness_candidates)
125  (registration_schedule)
126  (registration_committee)
127  (development_committee))
128 // clang-format on
#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
fc::sha256 chain_id_type
Definition: types.hpp:61
Definition: asset.cpp:15
std::vector< account_type > accounts
std::vector< registration_schedule_item > registration_schedule
std::vector< witness_type > witness_candidates
std::vector< steemit_bounty_account_type > steemit_bounty_accounts
std::vector< founder_type > founders
std::vector< std::string > registration_committee
std::vector< std::string > development_committee